@ukic/web-components 2.1.0-beta.11 → 2.1.0-beta.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +2 -2
- package/dist/cjs/ic-alert.cjs.entry.js +2 -2
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +2 -2
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +44 -10
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card.cjs.entry.js +4 -4
- package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +16 -18
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +11 -4
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +2 -2
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-entity.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-row.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-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +4 -2
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +2 -2
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +146 -63
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +1 -1
- 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-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -2
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +2 -2
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination-item.cjs.entry.js +51 -0
- package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-pagination.cjs.entry.js +206 -0
- package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-popover-menu.cjs.entry.js +8 -7
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +3 -3
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +79 -12
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +1 -1
- package/dist/cjs/ic-select.cjs.entry.js +153 -54
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +11 -3
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +2 -2
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +2 -2
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +42 -5
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +3 -2
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +11 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +14 -2
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +50 -11
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- 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 +5 -1
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +7 -5
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +2 -2
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-f79a4e53.js → index-a62312a7.js} +11 -1
- package/dist/cjs/index-a62312a7.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/types-3eb02246.js.map +1 -1
- package/dist/collection/assets/pagination-first-last.svg +3 -0
- package/dist/collection/assets/pagination-next-previous.svg +3 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/ic-alert/ic-alert.css +1 -1
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +3 -3
- package/dist/collection/components/ic-button/ic-button.css +6 -2
- package/dist/collection/components/ic-button/ic-button.js +118 -1
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-card/ic-card.css +17 -7
- package/dist/collection/components/ic-card/ic-card.js +2 -2
- package/dist/collection/components/ic-card/ic-card.js.map +1 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +11 -8
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +28 -2
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +3 -3
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +15 -21
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.types.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.css +11 -10
- package/dist/collection/components/ic-data-entity/ic-data-entity.css +1 -1
- package/dist/collection/components/ic-data-row/ic-data-row.css +1 -1
- package/dist/collection/components/ic-divider/ic-divider.css +1 -1
- package/dist/collection/components/ic-hero/ic-hero.css +23 -22
- package/dist/collection/components/ic-hero/ic-hero.js +2 -0
- package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +4 -8
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +6 -5
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +4 -4
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +11 -3
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
- package/dist/collection/components/ic-menu/ic-menu.css +39 -10
- package/dist/collection/components/ic-menu/ic-menu.js +188 -61
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +1 -6
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +4 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +2 -2
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +2 -2
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +1 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +18 -14
- package/dist/collection/components/ic-page-header/ic-page-header.css +1 -1
- package/dist/collection/components/ic-pagination/ic-pagination.css +490 -0
- package/dist/collection/components/ic-pagination/ic-pagination.js +435 -0
- package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -0
- package/dist/collection/components/ic-pagination/ic-pagination.test.a11y.js +11 -0
- package/dist/collection/components/ic-pagination/ic-pagination.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-pagination/ic-pagination.types.js +2 -0
- package/dist/collection/components/ic-pagination/ic-pagination.types.js.map +1 -0
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.css +581 -0
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +225 -0
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js.map +1 -0
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.types.js +2 -0
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.types.js.map +1 -0
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +2 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +7 -6
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +4 -4
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +6 -6
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +1 -1
- package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.css +6 -10
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +172 -11
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select.css +4 -4
- package/dist/collection/components/ic-select/ic-select.js +247 -53
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +43 -20
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +9 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +8 -7
- package/dist/collection/components/ic-step/ic-step.css +1 -1
- package/dist/collection/components/ic-switch/ic-switch.css +4 -4
- package/dist/collection/components/ic-tab/ic-tab.css +4 -4
- package/dist/collection/components/ic-tab/ic-tab.js +50 -0
- package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +79 -4
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.css +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +6 -2
- package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +0 -4
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +56 -3
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.css +2 -3
- package/dist/collection/components/ic-text-field/ic-text-field.js +129 -9
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +7 -3
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +53 -4
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +21 -15
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +5 -3
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.css +19 -1
- package/dist/collection/components/ic-typography/ic-typography.js +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/ic-alert.js +1 -1
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +1 -1
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-button2.js +23 -2
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card.js +3 -3
- package/dist/components/ic-card.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +16 -19
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +11 -3
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +1 -1
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-data-entity.js +1 -1
- package/dist/components/ic-data-entity.js.map +1 -1
- package/dist/components/ic-data-row.js +1 -1
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-divider2.js +1 -1
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-hero.js +3 -1
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +1 -1
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +1 -1
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +12 -4
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-item2.js +1 -1
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +164 -64
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +1 -1
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +1 -1
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +2 -1
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +1 -1
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +1 -1
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-item.d.ts +11 -0
- package/dist/components/ic-pagination-item.js +8 -0
- package/dist/components/ic-pagination-item.js.map +1 -0
- package/dist/components/ic-pagination-item2.js +77 -0
- package/dist/components/ic-pagination-item2.js.map +1 -0
- package/dist/components/ic-pagination.d.ts +11 -0
- package/dist/components/ic-pagination.js +266 -0
- package/dist/components/ic-pagination.js.map +1 -0
- package/dist/components/ic-popover-menu.js +8 -8
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +2 -2
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +2 -2
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +82 -12
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-select.js +158 -53
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +10 -2
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-status-tag.js +1 -1
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +1 -1
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-switch.js +1 -1
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +44 -6
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +2 -1
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +11 -2
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +13 -1
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +54 -10
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-toast.js +7 -3
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-tooltip2.js +1817 -8
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +6 -4
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +1 -1
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/types.js.map +1 -1
- package/dist/core/core.css +8 -3
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-25b208ae.entry.js → p-002a63e9.entry.js} +2 -2
- package/dist/core/p-002a63e9.entry.js.map +1 -0
- package/dist/core/p-0575a77f.entry.js +2 -0
- package/dist/core/p-0575a77f.entry.js.map +1 -0
- package/dist/core/p-0a41c3cb.entry.js +2 -0
- package/dist/core/p-0a41c3cb.entry.js.map +1 -0
- package/dist/core/{p-b7fc1f35.entry.js → p-100dbcec.entry.js} +2 -2
- package/dist/core/{p-c9068822.entry.js → p-14835d6f.entry.js} +2 -2
- package/dist/core/p-14835d6f.entry.js.map +1 -0
- package/dist/core/p-1eb0992b.entry.js +2 -0
- package/dist/core/p-1eb0992b.entry.js.map +1 -0
- package/dist/core/{p-62b3516e.entry.js → p-223a214f.entry.js} +2 -2
- package/dist/core/{p-dd71a986.entry.js → p-276f7ecb.entry.js} +2 -2
- package/dist/core/{p-3d84a743.entry.js → p-28bc3bf0.entry.js} +2 -2
- package/dist/core/{p-8ffa00c9.entry.js → p-312c10b0.entry.js} +2 -2
- package/dist/core/p-3845b769.entry.js +2 -0
- package/dist/core/p-3845b769.entry.js.map +1 -0
- package/dist/core/{p-cc62d065.entry.js → p-3a67718c.entry.js} +2 -2
- package/dist/core/p-3c23f963.entry.js +2 -0
- package/dist/core/p-3c23f963.entry.js.map +1 -0
- package/dist/core/{p-ed6cf9b9.entry.js → p-3dc2ff7b.entry.js} +2 -2
- package/dist/core/p-3dc2ff7b.entry.js.map +1 -0
- package/dist/core/p-3e5eb873.entry.js +2 -0
- package/dist/core/p-3e5eb873.entry.js.map +1 -0
- package/dist/core/{p-58ff516f.entry.js → p-3fb307e6.entry.js} +2 -2
- package/dist/core/{p-d2508752.entry.js → p-454b1ecd.entry.js} +2 -2
- package/dist/core/{p-33a0aabe.entry.js → p-47b0ed42.entry.js} +2 -2
- package/dist/core/p-47b0ed42.entry.js.map +1 -0
- package/dist/core/p-4b87445b.entry.js +2 -0
- package/dist/core/p-4b87445b.entry.js.map +1 -0
- package/dist/core/p-4c8fcfe6.entry.js +2 -0
- package/dist/core/p-4c8fcfe6.entry.js.map +1 -0
- package/dist/core/p-52fd3533.entry.js +2 -0
- package/dist/core/p-52fd3533.entry.js.map +1 -0
- package/dist/core/{p-0a463a65.entry.js → p-546b620e.entry.js} +2 -2
- package/dist/core/p-56fe91ad.entry.js +2 -0
- package/dist/core/p-56fe91ad.entry.js.map +1 -0
- package/dist/core/{p-5450cebf.js → p-589f6dd3.js} +3 -3
- package/dist/core/p-589f6dd3.js.map +1 -0
- package/dist/core/p-5d077cf7.entry.js +2 -0
- package/dist/core/p-5d077cf7.entry.js.map +1 -0
- package/dist/core/{p-8c9cc4d5.entry.js → p-6a77992e.entry.js} +2 -2
- package/dist/core/{p-acb08809.entry.js → p-6b39f8b4.entry.js} +2 -2
- package/dist/core/p-6b39f8b4.entry.js.map +1 -0
- package/dist/core/p-6f57b13c.js.map +1 -1
- package/dist/core/p-80eff050.entry.js +2 -0
- package/dist/core/p-80eff050.entry.js.map +1 -0
- package/dist/core/p-864b46bf.entry.js +2 -0
- package/dist/core/p-864b46bf.entry.js.map +1 -0
- package/dist/core/p-8780890e.entry.js +2 -0
- package/dist/core/p-8780890e.entry.js.map +1 -0
- package/dist/core/p-895bda21.entry.js +2 -0
- package/dist/core/p-895bda21.entry.js.map +1 -0
- package/dist/core/p-92c4fa7f.entry.js +2 -0
- package/dist/core/p-92c4fa7f.entry.js.map +1 -0
- package/dist/core/{p-dbfdfa8a.entry.js → p-9413d639.entry.js} +2 -2
- package/dist/core/p-9413d639.entry.js.map +1 -0
- package/dist/core/{p-81652a98.entry.js → p-a0f4e641.entry.js} +2 -2
- package/dist/core/p-a0f4e641.entry.js.map +1 -0
- package/dist/core/{p-4d8392fe.entry.js → p-a33a04b2.entry.js} +2 -2
- package/dist/core/p-a5bee11f.entry.js +2 -0
- package/dist/core/p-a5bee11f.entry.js.map +1 -0
- package/dist/core/p-b61e76e2.entry.js +2 -0
- package/dist/core/p-b61e76e2.entry.js.map +1 -0
- package/dist/core/p-c0813424.entry.js +2 -0
- package/dist/core/p-c0813424.entry.js.map +1 -0
- package/dist/core/p-cb437317.entry.js +2 -0
- package/dist/core/p-cb437317.entry.js.map +1 -0
- package/dist/core/p-d5d9923a.entry.js +2 -0
- package/dist/core/p-d5d9923a.entry.js.map +1 -0
- package/dist/core/{p-f777679c.entry.js → p-db7131b6.entry.js} +2 -2
- package/dist/core/p-dc0b9e80.entry.js +2 -0
- package/dist/core/p-dc0b9e80.entry.js.map +1 -0
- package/dist/core/{p-7fd50355.entry.js → p-de45134c.entry.js} +2 -2
- package/dist/core/p-de45134c.entry.js.map +1 -0
- package/dist/core/p-de891d3d.entry.js +2 -0
- package/dist/core/p-de891d3d.entry.js.map +1 -0
- package/dist/core/p-e0f24ccd.entry.js +2 -0
- package/dist/core/p-e0f24ccd.entry.js.map +1 -0
- package/dist/core/{p-741b4ea3.entry.js → p-e384aaee.entry.js} +2 -2
- package/dist/core/{p-26c9e522.entry.js → p-e41e701a.entry.js} +2 -2
- package/dist/core/p-e41e701a.entry.js.map +1 -0
- package/dist/core/p-e839e5dc.entry.js +2 -0
- package/dist/core/p-e839e5dc.entry.js.map +1 -0
- package/dist/core/p-ea526b54.entry.js +2 -0
- package/dist/core/p-ea526b54.entry.js.map +1 -0
- package/dist/core/{p-4ee03271.entry.js → p-ec8b228c.entry.js} +2 -2
- package/dist/core/p-ec8b228c.entry.js.map +1 -0
- package/dist/core/p-f3e10149.entry.js +2 -0
- package/dist/core/p-f3e10149.entry.js.map +1 -0
- package/dist/core/{p-ad2477d8.entry.js → p-fc7dce3d.entry.js} +2 -2
- package/dist/core/p-ff6583e6.entry.js +2 -0
- package/dist/core/p-ff6583e6.entry.js.map +1 -0
- package/dist/esm/core.js +2 -2
- package/dist/esm/ic-alert.entry.js +2 -2
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +2 -2
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +44 -10
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card.entry.js +4 -4
- package/dist/esm/ic-card.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +16 -18
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +11 -4
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +2 -2
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +1 -1
- package/dist/esm/ic-data-entity.entry.js +2 -2
- package/dist/esm/ic-data-entity.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +2 -2
- package/dist/esm/ic-data-row.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-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +1 -1
- package/dist/esm/ic-footer.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js +4 -2
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +2 -2
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +146 -63
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +1 -1
- package/dist/esm/ic-link.entry.js +1 -1
- package/dist/esm/ic-menu-group.entry.js +1 -1
- package/dist/esm/ic-menu-item.entry.js +2 -2
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +2 -2
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +2 -2
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +3 -2
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +2 -2
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +2 -2
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination-item.entry.js +47 -0
- package/dist/esm/ic-pagination-item.entry.js.map +1 -0
- package/dist/esm/ic-pagination.entry.js +202 -0
- package/dist/esm/ic-pagination.entry.js.map +1 -0
- package/dist/esm/ic-popover-menu.entry.js +8 -7
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +3 -3
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +3 -3
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +79 -12
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +1 -1
- package/dist/esm/ic-select.entry.js +153 -54
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +11 -3
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +1 -1
- package/dist/esm/ic-status-tag.entry.js +2 -2
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +2 -2
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +1 -1
- package/dist/esm/ic-switch.entry.js +2 -2
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +42 -5
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -2
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +11 -2
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +14 -2
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-text-field.entry.js +50 -11
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +1 -1
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +5 -1
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +7 -5
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +2 -2
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/{index-90721b3c.js → index-3b144b17.js} +11 -2
- package/dist/esm/index-3b144b17.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/types-dd515332.js.map +1 -1
- package/dist/types/components/ic-button/ic-button.d.ts +24 -0
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +4 -0
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +1 -3
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.types.d.ts +5 -0
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +2 -0
- package/dist/types/components/ic-menu/ic-menu.d.ts +26 -7
- package/dist/types/components/ic-pagination/ic-pagination.d.ts +74 -0
- package/dist/types/components/ic-pagination/ic-pagination.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-pagination/ic-pagination.types.d.ts +4 -0
- package/dist/types/components/ic-pagination-item/ic-pagination-item.d.ts +46 -0
- package/dist/types/components/ic-pagination-item/ic-pagination-item.types.d.ts +1 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +30 -1
- package/dist/types/components/ic-select/ic-select.d.ts +31 -3
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +2 -1
- package/dist/types/components/ic-tab/ic-tab.d.ts +11 -0
- package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +13 -6
- package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +2 -1
- package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +25 -5
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +19 -0
- package/dist/types/components/ic-toast/ic-toast.d.ts +1 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +7 -0
- package/dist/types/components.d.ts +359 -19
- package/dist/types/utils/types.d.ts +4 -1
- package/hydrate/index.js +931 -219
- package/package.json +3 -3
- package/dist/cjs/index-f79a4e53.js.map +0 -1
- package/dist/components/popper.js +0 -1801
- package/dist/components/popper.js.map +0 -1
- package/dist/core/p-037dfe9d.entry.js +0 -2
- package/dist/core/p-037dfe9d.entry.js.map +0 -1
- package/dist/core/p-05c5c6c4.entry.js +0 -2
- package/dist/core/p-05c5c6c4.entry.js.map +0 -1
- package/dist/core/p-0faf328a.entry.js +0 -2
- package/dist/core/p-0faf328a.entry.js.map +0 -1
- package/dist/core/p-102281fd.entry.js +0 -2
- package/dist/core/p-102281fd.entry.js.map +0 -1
- package/dist/core/p-1549adc1.entry.js +0 -2
- package/dist/core/p-1549adc1.entry.js.map +0 -1
- package/dist/core/p-25b208ae.entry.js.map +0 -1
- package/dist/core/p-26c9e522.entry.js.map +0 -1
- package/dist/core/p-31a595c1.entry.js +0 -2
- package/dist/core/p-31a595c1.entry.js.map +0 -1
- package/dist/core/p-33a0aabe.entry.js.map +0 -1
- package/dist/core/p-360adc51.entry.js +0 -2
- package/dist/core/p-360adc51.entry.js.map +0 -1
- package/dist/core/p-3fd4f8eb.entry.js +0 -2
- package/dist/core/p-3fd4f8eb.entry.js.map +0 -1
- package/dist/core/p-48a5c2a7.entry.js +0 -2
- package/dist/core/p-48a5c2a7.entry.js.map +0 -1
- package/dist/core/p-4ee03271.entry.js.map +0 -1
- package/dist/core/p-5450cebf.js.map +0 -1
- package/dist/core/p-73fddc63.entry.js +0 -2
- package/dist/core/p-73fddc63.entry.js.map +0 -1
- package/dist/core/p-7dcb9104.entry.js +0 -2
- package/dist/core/p-7dcb9104.entry.js.map +0 -1
- package/dist/core/p-7fd50355.entry.js.map +0 -1
- package/dist/core/p-81652a98.entry.js.map +0 -1
- package/dist/core/p-87c7ba3b.entry.js +0 -2
- package/dist/core/p-87c7ba3b.entry.js.map +0 -1
- package/dist/core/p-897e967a.entry.js +0 -2
- package/dist/core/p-897e967a.entry.js.map +0 -1
- package/dist/core/p-a2c7dc6c.entry.js +0 -2
- package/dist/core/p-a2c7dc6c.entry.js.map +0 -1
- package/dist/core/p-a3742d40.entry.js +0 -2
- package/dist/core/p-a3742d40.entry.js.map +0 -1
- package/dist/core/p-a44a0500.entry.js +0 -2
- package/dist/core/p-a44a0500.entry.js.map +0 -1
- package/dist/core/p-a8e969ea.entry.js +0 -2
- package/dist/core/p-a8e969ea.entry.js.map +0 -1
- package/dist/core/p-ac6ecdb6.entry.js +0 -2
- package/dist/core/p-ac6ecdb6.entry.js.map +0 -1
- package/dist/core/p-acb08809.entry.js.map +0 -1
- package/dist/core/p-affb42c7.entry.js +0 -2
- package/dist/core/p-affb42c7.entry.js.map +0 -1
- package/dist/core/p-b8b960a5.entry.js +0 -2
- package/dist/core/p-b8b960a5.entry.js.map +0 -1
- package/dist/core/p-b921bb19.entry.js +0 -2
- package/dist/core/p-b921bb19.entry.js.map +0 -1
- package/dist/core/p-c9068822.entry.js.map +0 -1
- package/dist/core/p-c996810e.entry.js +0 -2
- package/dist/core/p-c996810e.entry.js.map +0 -1
- package/dist/core/p-d28d7f24.entry.js +0 -2
- package/dist/core/p-d28d7f24.entry.js.map +0 -1
- package/dist/core/p-dbfdfa8a.entry.js.map +0 -1
- package/dist/core/p-e4547265.entry.js +0 -2
- package/dist/core/p-e4547265.entry.js.map +0 -1
- package/dist/core/p-ea0c4aca.entry.js +0 -2
- package/dist/core/p-ea0c4aca.entry.js.map +0 -1
- package/dist/core/p-ed6cf9b9.entry.js.map +0 -1
- package/dist/core/p-f6ddd32f.entry.js +0 -2
- package/dist/core/p-f6ddd32f.entry.js.map +0 -1
- package/dist/esm/index-90721b3c.js.map +0 -1
- /package/dist/core/{p-b7fc1f35.entry.js.map → p-100dbcec.entry.js.map} +0 -0
- /package/dist/core/{p-62b3516e.entry.js.map → p-223a214f.entry.js.map} +0 -0
- /package/dist/core/{p-dd71a986.entry.js.map → p-276f7ecb.entry.js.map} +0 -0
- /package/dist/core/{p-3d84a743.entry.js.map → p-28bc3bf0.entry.js.map} +0 -0
- /package/dist/core/{p-8ffa00c9.entry.js.map → p-312c10b0.entry.js.map} +0 -0
- /package/dist/core/{p-cc62d065.entry.js.map → p-3a67718c.entry.js.map} +0 -0
- /package/dist/core/{p-58ff516f.entry.js.map → p-3fb307e6.entry.js.map} +0 -0
- /package/dist/core/{p-d2508752.entry.js.map → p-454b1ecd.entry.js.map} +0 -0
- /package/dist/core/{p-0a463a65.entry.js.map → p-546b620e.entry.js.map} +0 -0
- /package/dist/core/{p-8c9cc4d5.entry.js.map → p-6a77992e.entry.js.map} +0 -0
- /package/dist/core/{p-4d8392fe.entry.js.map → p-a33a04b2.entry.js.map} +0 -0
- /package/dist/core/{p-f777679c.entry.js.map → p-db7131b6.entry.js.map} +0 -0
- /package/dist/core/{p-741b4ea3.entry.js.map → p-e384aaee.entry.js.map} +0 -0
- /package/dist/core/{p-ad2477d8.entry.js.map → p-fc7dce3d.entry.js.map} +0 -0
@@ -1,10 +1,10 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent, F as Fragment } from './index-3b144b17.js';
|
2
2
|
import { a as IcInformationStatus } from './types-dd515332.js';
|
3
3
|
import { i as isSlotUsed, L as successIcon, a as onComponentRequiredPropUndefined } from './helpers-b2b47a7d.js';
|
4
4
|
import { C as Check } from './check-icon-abb210ec.js';
|
5
5
|
import { c as createPopper } from './popper-f860750c.js';
|
6
6
|
|
7
|
-
const icInputComponentContainerCss = "ic-input-component-container{display:flex;border:
|
7
|
+
const icInputComponentContainerCss = "ic-input-component-container{display:flex;border:var(--ic-space-1px) solid\n var(--border-color, var(--ic-architectural-400));border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-slow);height:2.5rem;width:var(--input-width, 20rem);padding:var(--ic-space-1px);background-color:var(--ic-architectural-white);box-sizing:border-box;fill:var(--ic-architectural-400);outline:none}ic-input-component-container.fullwidth{width:100%}ic-input-component-container.disabled,ic-input-component-container.disabled:hover{border:var(--ic-space-1px) dashed var(--ic-architectural-200)}ic-input-component-container.readonly,ic-input-component-container.readonly:hover{border:none;padding:0}ic-input-component-container.error{border:var(--ic-space-xxxs) solid var(--ic-status-error);padding:0}ic-input-component-container.warning{border:var(--ic-space-xxxs) solid var(--ic-status-warning-mid);padding:0}ic-input-component-container.success{border:var(--ic-space-xxxs) solid var(--ic-status-success);padding:0}ic-input-component-container.small{height:var(--ic-space-xl)}ic-input-component-container.multiline{height:auto}ic-input-component-container .icon-container{margin-top:var(--ic-space-xxs);margin-left:0.438rem;display:flex;align-items:center}ic-input-component-container.multiline .icon-container,ic-input-component-container.multiline.small .icon-container{margin-top:0.375rem;display:block}ic-input-component-container.readonly .icon-container{margin-left:-0.313rem}ic-input-component-container.disabled ::-moz-placeholder{display:none}ic-input-component-container.disabled ::placeholder{display:none}ic-input-component-container .inline-success{margin:var(--ic-space-xs) 0.375rem;display:flex;align-items:center}ic-input-component-container.dark:hover{--border-color:var(--ic-architectural-400)}ic-input-component-container .inline-success>svg{fill:var(--ic-status-success);height:1.25rem;width:1.25rem}ic-input-component-container:hover{border-color:var(--ic-action-dark-hover);color:var(--ic-action-dark-hover)}.focus-indicator{display:flex;width:100%;margin:-0.125rem;padding:0.125rem;border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast)}.focus-indicator:focus-within,.focus-indicator-enabled{box-shadow:var(--ic-border-focus)}.focus-indicator.dark:focus-within{box-shadow:var(--ic-border-focus)}@media (forced-colors: active){ic-input-component-container,.focus-indicator{transition:none}ic-input-component-container:focus-within{border:var(--ic-space-1px) solid Highlight;outline:0.125rem solid Highlight}ic-input-component-container.disabled,ic-input-component-container.disabled:hover{border:var(--ic-space-1px) dashed GrayText}}";
|
8
8
|
|
9
9
|
const InputComponentContainer = class {
|
10
10
|
constructor(hostRef) {
|
@@ -63,7 +63,7 @@ const InputContainer = class {
|
|
63
63
|
};
|
64
64
|
InputContainer.style = icInputContainerCss;
|
65
65
|
|
66
|
-
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){
|
66
|
+
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.open.sc-ic-menu-h .menu.sc-ic-menu{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-h{border-radius:var(--ic-border-radius);max-height:0;width:var(--input-width, 20rem);color:var(--ic-color-primary-text);background-color:var(--ic-architectural-white);position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay)}.sc-ic-menu-h:not(.no-focus):focus-within{box-shadow:var(--ic-border-focus)}#retry-button.sc-ic-menu::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu #retry-button.sc-ic-menu::part(button){height:var(--ic-space-md)}.menu.sc-ic-menu{text-decoration:none;list-style-type:none;border:var(--ic-space-1px) solid var(--ic-architectural-400);border-radius:var(--ic-border-radius);background-color:var(--ic-architectural-white);visibility:hidden;max-height:0;overflow-y:hidden}.menu-scroll.sc-ic-menu{overflow-y:auto}.menu.sc-ic-menu:focus-visible{outline:none}.open.sc-ic-menu-h{max-height:none;display:block}.open.sc-ic-menu-h .menu.sc-ic-menu{visibility:visible;max-height:20.125rem}.full-width.sc-ic-menu-h{width:100%}.option.sc-ic-menu{padding:0.5rem 0.438rem;cursor:pointer;display:flex;align-items:center}.option.sc-ic-menu:not(.loading-option){justify-content:space-between}.small.sc-ic-menu-h .option.sc-ic-menu{padding:0.25rem 0.438rem}.option.sc-ic-menu:last-child{border-radius:0 0 var(--ic-space-1px) var(--ic-space-1px)}.option.sc-ic-menu:first-child{border-radius:var(--ic-space-1px) var(--ic-space-1px) 0 0}.option.sc-ic-menu:not(.disabled-option):hover{background-color:var(--ic-action-dark-bg-hover)}.option.sc-ic-menu:not(.disabled-option):active{background-color:var(--ic-action-dark-bg-active)}.option.sc-ic-menu:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu:not(.disabled-option) .option-description.sc-ic-menu{color:var(--ic-color-secondary-text)}.option-text-container.sc-ic-menu{pointer-events:none}.option.loading-option.sc-ic-menu .option-text-container.sc-ic-menu{margin-left:0.625rem;color:var(--ic-color-secondary-text)}.error-icon-svg.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-status-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu{display:flex}.check-icon.sc-ic-menu{height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:0.5rem;pointer-events:none}.focused-option.sc-ic-menu .check-icon.sc-ic-menu *.sc-ic-menu{fill:currentcolor}.option-group-title.sc-ic-menu{padding:1.5rem 0.438rem 0.5rem;color:var(--ic-color-tertiary-text)}.small.sc-ic-menu-h .option-group-title.sc-ic-menu{padding:0.75rem 0.438rem 0.25rem}.last-recommended-option.sc-ic-menu{border-bottom:var(--ic-space-1px) solid var(--ic-architectural-400)}.disabled-option.sc-ic-menu{color:var(--ic-architectural-200);cursor:default;pointer-events:none}.focused-option.sc-ic-menu,.focused-option.sc-ic-menu .option-description.sc-ic-menu{background-color:var(--ic-focus-blue) !important;color:var(--ic-color-white-text) !important}.no-results.sc-ic-menu-h li.sc-ic-menu{cursor:no-drop}.no-results.sc-ic-menu-h li.sc-ic-menu:hover{background-color:transparent}@media (forced-colors: active){.focused-option.sc-ic-menu:focus{outline:none;border:0.125rem solid transparent}}";
|
67
67
|
|
68
68
|
const Menu = class {
|
69
69
|
constructor(hostRef) {
|
@@ -73,6 +73,15 @@ const Menu = class {
|
|
73
73
|
this.menuOptionId = createEvent(this, "menuOptionId", 7);
|
74
74
|
this.menuKeyPress = createEvent(this, "menuKeyPress", 7);
|
75
75
|
this.ungroupedOptionsSet = createEvent(this, "ungroupedOptionsSet", 7);
|
76
|
+
this.retryButtonClicked = createEvent(this, "retryButtonClicked", 7);
|
77
|
+
this.timeoutBlur = createEvent(this, "timeoutBlur", 7);
|
78
|
+
this.ungroupedOptions = [];
|
79
|
+
this.isSearchBar = false;
|
80
|
+
this.isSearchableSelect = false;
|
81
|
+
// Prevents menu re-opening immediately after it is closed on blur when clicking input.
|
82
|
+
this.preventClickOpen = false;
|
83
|
+
this.hasTimedOut = false;
|
84
|
+
this.isLoading = false;
|
76
85
|
this.handleClearListener = () => {
|
77
86
|
this.optionHighlighted = "";
|
78
87
|
};
|
@@ -80,10 +89,6 @@ const Menu = class {
|
|
80
89
|
const highlightedOptionIndex = this.options.findIndex((option) => option.value === this.optionHighlighted);
|
81
90
|
this.setInputValue(highlightedOptionIndex);
|
82
91
|
};
|
83
|
-
this.ungroupedOptions = [];
|
84
|
-
// Prevents menu re-opening immediately after it is closed on blur when clicking input
|
85
|
-
this.preventClickOpen = false;
|
86
|
-
this.isSearchBar = false;
|
87
92
|
this.handleMenuChange = (open, focusInput) => {
|
88
93
|
if (!open)
|
89
94
|
this.popperInstance.destroy();
|
@@ -121,18 +126,31 @@ const Menu = class {
|
|
121
126
|
});
|
122
127
|
}
|
123
128
|
};
|
129
|
+
this.getParentEl = (parent) => {
|
130
|
+
if (parent.tagName === "IC-SEARCH-BAR") {
|
131
|
+
this.isSearchBar = true;
|
132
|
+
}
|
133
|
+
else if (parent.tagName === "IC-SELECT" &&
|
134
|
+
parent.getAttribute("searchable") !== null &&
|
135
|
+
parent.getAttribute("searchable") !== undefined) {
|
136
|
+
this.isSearchableSelect = true;
|
137
|
+
}
|
138
|
+
};
|
124
139
|
this.arrowBehaviour = (event) => {
|
125
140
|
event.preventDefault();
|
126
141
|
this.handleMenuChange(true);
|
127
142
|
};
|
143
|
+
this.setMenuOptions = () => this.isSearchBar ? this.options : this.ungroupedOptions;
|
128
144
|
this.setHighlightedOption = (highlightedIndex) => {
|
129
|
-
|
145
|
+
const menuOptions = this.setMenuOptions();
|
146
|
+
menuOptions[highlightedIndex] &&
|
147
|
+
!menuOptions[highlightedIndex].timedOut &&
|
148
|
+
(this.optionHighlighted =
|
149
|
+
menuOptions[highlightedIndex].value || undefined);
|
130
150
|
};
|
131
151
|
this.autoSetInputValueKeyboardOpen = (event) => {
|
132
|
-
var _a;
|
133
152
|
const selectedOptionIndex = this.ungroupedOptions.findIndex((option) => option.value === this.value);
|
134
153
|
this.keyboardNav = false;
|
135
|
-
const isSearchableSelect = ((_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.tagName) === "INPUT";
|
136
154
|
switch (event.key) {
|
137
155
|
case "ArrowDown":
|
138
156
|
this.keyboardNav = true;
|
@@ -150,25 +168,19 @@ const Menu = class {
|
|
150
168
|
this.handleMenuChange(true);
|
151
169
|
}
|
152
170
|
break;
|
153
|
-
case "Backspace":
|
154
|
-
if (isSearchableSelect) {
|
155
|
-
this.inputEl.focus();
|
156
|
-
}
|
157
|
-
break;
|
158
|
-
default:
|
159
|
-
if (isSearchableSelect && event.key !== "Tab") {
|
160
|
-
this.inputEl.focus();
|
161
|
-
}
|
162
|
-
break;
|
163
171
|
}
|
164
172
|
};
|
165
173
|
this.manSetInputValueKeyboardOpen = (event) => {
|
166
|
-
|
167
|
-
const
|
174
|
+
var _a;
|
175
|
+
const menuOptions = this.setMenuOptions();
|
176
|
+
this.keyboardNav = false;
|
177
|
+
const highlightedOptionIndex = menuOptions.findIndex((option) => option.value === this.optionHighlighted);
|
178
|
+
const getOptionId = (index) => { var _a; return (_a = Array.from(this.host.querySelectorAll("li"))[index]) === null || _a === void 0 ? void 0 : _a.id; };
|
168
179
|
switch (event.key) {
|
169
180
|
case "ArrowDown":
|
181
|
+
this.keyboardNav = true;
|
170
182
|
this.arrowBehaviour(event);
|
171
|
-
if (highlightedOptionIndex <
|
183
|
+
if (highlightedOptionIndex < menuOptions.length - 1) {
|
172
184
|
this.setHighlightedOption(highlightedOptionIndex + 1);
|
173
185
|
this.menuOptionId.emit({
|
174
186
|
optionId: getOptionId(highlightedOptionIndex + 1),
|
@@ -184,12 +196,13 @@ const Menu = class {
|
|
184
196
|
this.focusFromSearchKeypress = false;
|
185
197
|
break;
|
186
198
|
case "ArrowUp":
|
199
|
+
this.keyboardNav = true;
|
187
200
|
this.arrowBehaviour(event);
|
188
201
|
if (highlightedOptionIndex <= 0 ||
|
189
|
-
highlightedOptionIndex >
|
190
|
-
this.setHighlightedOption(
|
202
|
+
highlightedOptionIndex > menuOptions.length + 1) {
|
203
|
+
this.setHighlightedOption(menuOptions.length - 1);
|
191
204
|
this.menuOptionId.emit({
|
192
|
-
optionId: getOptionId(
|
205
|
+
optionId: getOptionId(menuOptions.length - 1),
|
193
206
|
});
|
194
207
|
}
|
195
208
|
else {
|
@@ -201,9 +214,28 @@ const Menu = class {
|
|
201
214
|
this.preventIncorrectTabOrder = false;
|
202
215
|
this.focusFromSearchKeypress = false;
|
203
216
|
break;
|
217
|
+
case "Home":
|
218
|
+
this.keyboardNav = true;
|
219
|
+
event.preventDefault();
|
220
|
+
this.arrowBehaviour(event);
|
221
|
+
this.setHighlightedOption(0);
|
222
|
+
this.menuOptionId.emit({
|
223
|
+
optionId: getOptionId(0),
|
224
|
+
});
|
225
|
+
break;
|
226
|
+
case "End":
|
227
|
+
this.keyboardNav = true;
|
228
|
+
event.preventDefault();
|
229
|
+
this.arrowBehaviour(event);
|
230
|
+
this.setHighlightedOption(menuOptions.length - 1);
|
231
|
+
this.menuOptionId.emit({
|
232
|
+
optionId: getOptionId(menuOptions.length - 1),
|
233
|
+
});
|
234
|
+
break;
|
204
235
|
case "Enter":
|
205
236
|
event.preventDefault();
|
206
237
|
this.setInputValue(highlightedOptionIndex);
|
238
|
+
this.value = (_a = menuOptions[highlightedOptionIndex]) === null || _a === void 0 ? void 0 : _a.value;
|
207
239
|
break;
|
208
240
|
case "Escape":
|
209
241
|
this.handleMenuChange(false);
|
@@ -211,40 +243,66 @@ const Menu = class {
|
|
211
243
|
break;
|
212
244
|
case "Shift":
|
213
245
|
case "Tab":
|
246
|
+
if (this.isSearchBar) {
|
247
|
+
this.keyboardNav = true;
|
248
|
+
}
|
214
249
|
this.preventIncorrectTabOrder = true;
|
215
250
|
break;
|
216
251
|
case "Backspace":
|
217
252
|
if (this.isSearchBar) {
|
218
253
|
this.parentEl.setFocus();
|
219
|
-
this.focusFromSearchKeypress = true;
|
220
254
|
this.setHighlightedOption(0);
|
221
255
|
}
|
256
|
+
else if (this.isSearchableSelect) {
|
257
|
+
this.parentEl.setFocus();
|
258
|
+
this.value = null;
|
259
|
+
}
|
260
|
+
this.focusFromSearchKeypress = true;
|
222
261
|
break;
|
223
262
|
default:
|
224
|
-
if (
|
225
|
-
this.
|
263
|
+
if (event.key !== "Tab") {
|
264
|
+
if (this.isSearchBar) {
|
265
|
+
this.parentEl.setFocus();
|
266
|
+
this.setHighlightedOption(0);
|
267
|
+
}
|
268
|
+
else if (this.isSearchableSelect) {
|
269
|
+
this.parentEl.setFocus();
|
270
|
+
this.value = null;
|
271
|
+
}
|
226
272
|
this.focusFromSearchKeypress = true;
|
227
|
-
this.setHighlightedOption(0);
|
228
273
|
}
|
229
274
|
break;
|
230
275
|
}
|
231
276
|
};
|
232
277
|
this.setInputValue = (highlightedOptionIndex) => {
|
233
278
|
var _a;
|
234
|
-
|
279
|
+
const menuOptions = this.setMenuOptions();
|
280
|
+
if (menuOptions[highlightedOptionIndex]) {
|
235
281
|
this.menuOptionSelect.emit({
|
236
|
-
value: (_a =
|
282
|
+
value: (_a = menuOptions[highlightedOptionIndex]) === null || _a === void 0 ? void 0 : _a.value,
|
237
283
|
});
|
238
284
|
this.optionHighlighted = undefined;
|
239
285
|
this.menuOptionId.emit({ optionId: undefined });
|
240
286
|
}
|
241
|
-
this.
|
287
|
+
if (!this.hasTimedOut)
|
288
|
+
this.handleMenuChange(false);
|
289
|
+
else
|
290
|
+
this.parentEl.setFocus();
|
242
291
|
};
|
243
292
|
this.handleOptionClick = (event) => {
|
244
293
|
const { value, label } = event.target.dataset;
|
245
294
|
this.menuOptionSelect.emit({ value, label });
|
246
295
|
this.handleMenuChange(false);
|
247
296
|
};
|
297
|
+
this.handleRetry = () => {
|
298
|
+
this.retryButtonClicked.emit({ value: this.value });
|
299
|
+
};
|
300
|
+
this.handleRetryKeyDown = (ev) => {
|
301
|
+
if (ev.key === "Enter" || ev.key === " ") {
|
302
|
+
ev.preventDefault();
|
303
|
+
this.retryButtonClicked.emit({ value: this.value, keyPressed: ev.key });
|
304
|
+
}
|
305
|
+
};
|
248
306
|
this.handleBlur = (event) => {
|
249
307
|
if (event.relatedTarget !== this.inputEl) {
|
250
308
|
if (!this.menu.contains(event.relatedTarget)) {
|
@@ -263,6 +321,9 @@ const Menu = class {
|
|
263
321
|
if (this.activationType === "automatic") {
|
264
322
|
this.autoSetValueOnMenuKeyDown(event);
|
265
323
|
}
|
324
|
+
else if (this.activationType === "manual" && this.isSearchableSelect) {
|
325
|
+
this.manSetInputValueKeyboardOpen(event);
|
326
|
+
}
|
266
327
|
};
|
267
328
|
this.emitMenuKeyPress = (isNavKey, key) => {
|
268
329
|
this.menuKeyPress.emit({ isNavKey: isNavKey, key: key });
|
@@ -273,15 +334,22 @@ const Menu = class {
|
|
273
334
|
const isSearchableSelect = this.inputEl.tagName === "INPUT";
|
274
335
|
this.keyboardNav = false;
|
275
336
|
switch (event.key) {
|
276
|
-
case "
|
337
|
+
case " ":
|
277
338
|
event.preventDefault();
|
278
|
-
|
279
|
-
|
339
|
+
break;
|
340
|
+
case "ArrowUp":
|
341
|
+
if (!this.hasTimedOut) {
|
342
|
+
event.preventDefault();
|
343
|
+
this.setPreviousOptionValue(selectedOptionIndex);
|
344
|
+
this.keyboardNav = true;
|
345
|
+
}
|
280
346
|
break;
|
281
347
|
case "ArrowDown":
|
282
|
-
|
283
|
-
|
284
|
-
|
348
|
+
if (!this.hasTimedOut) {
|
349
|
+
event.preventDefault();
|
350
|
+
this.setNextOptionValue(selectedOptionIndex);
|
351
|
+
this.keyboardNav = true;
|
352
|
+
}
|
285
353
|
break;
|
286
354
|
case "Home":
|
287
355
|
this.menuOptionSelect.emit({
|
@@ -296,6 +364,8 @@ const Menu = class {
|
|
296
364
|
this.keyboardNav = true;
|
297
365
|
break;
|
298
366
|
case "Enter":
|
367
|
+
!this.hasTimedOut && this.handleMenuChange(false);
|
368
|
+
break;
|
299
369
|
case "Escape":
|
300
370
|
this.handleMenuChange(false);
|
301
371
|
break;
|
@@ -307,7 +377,7 @@ const Menu = class {
|
|
307
377
|
case "Shift":
|
308
378
|
break;
|
309
379
|
default:
|
310
|
-
if (isSearchableSelect && event.key !== "Tab") {
|
380
|
+
if (isSearchableSelect && event.key !== "Tab" && !this.hasTimedOut) {
|
311
381
|
this.inputEl.focus();
|
312
382
|
}
|
313
383
|
if (event.key.length === 1) {
|
@@ -379,24 +449,35 @@ const Menu = class {
|
|
379
449
|
this.menu.classList.add("menu-scroll");
|
380
450
|
}
|
381
451
|
};
|
452
|
+
this.handleTimeoutBlur = (ev) => {
|
453
|
+
this.timeoutBlur.emit({ ev });
|
454
|
+
};
|
455
|
+
this.optionContent = (option) => {
|
456
|
+
var _a;
|
457
|
+
return (h(Fragment, null, option.loading && h("ic-loading-indicator", { size: "icon" }), h("div", { class: "option-text-container" }, h("ic-typography", { variant: "body", "aria-hidden": "true" }, h("p", null, option.label)), option.description && (h("ic-typography", { id: `${this.getOptionId(option === null || option === void 0 ? void 0 : option.value)}-description`, class: "option-description", variant: "caption", "aria-hidden": "true" }, h("p", null, option.description)))), !!option.value &&
|
458
|
+
!!this.value &&
|
459
|
+
(option === null || option === void 0 ? void 0 : option.value.toLowerCase()) === ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toLowerCase()) &&
|
460
|
+
this.parentEl.tagName !== "IC-SEARCH-BAR" && (h("span", { class: "check-icon", innerHTML: Check }))));
|
461
|
+
};
|
382
462
|
this.displayOption = (option, index, parentOption) => {
|
383
|
-
const { open, value } = this;
|
463
|
+
const { open, value, keyboardNav, isManualMode, initialOptionsListRender, optionHighlighted, options, } = this;
|
384
464
|
return (h("li", { id: this.getOptionId(option.value), class: {
|
385
465
|
option: true,
|
386
|
-
"focused-option":
|
387
|
-
? (
|
388
|
-
option.value ===
|
389
|
-
:
|
466
|
+
"focused-option": isManualMode
|
467
|
+
? (keyboardNav || initialOptionsListRender) &&
|
468
|
+
option.value === optionHighlighted
|
469
|
+
: keyboardNav && option.value === value,
|
390
470
|
"last-recommended-option": option.recommended &&
|
391
|
-
|
392
|
-
!
|
471
|
+
options[index + 1] &&
|
472
|
+
!options[index + 1].recommended,
|
393
473
|
"disabled-option": option.disabled,
|
474
|
+
"loading-option": option.loading,
|
475
|
+
timeout: option.timedOut,
|
394
476
|
}, role: "option", tabindex: open &&
|
395
|
-
(option.value === value || option.value ===
|
396
|
-
|
477
|
+
(option.value === value || option.value === optionHighlighted) &&
|
478
|
+
keyboardNav
|
397
479
|
? "0"
|
398
|
-
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": option.value === value, "aria-disabled": option.disabled ? "true" : "false", onClick: this.handleOptionClick, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, "data-value": option.value, "data-label": option.label }, h("div", { class: "
|
399
|
-
this.parentEl.tagName !== "IC-SEARCH-BAR" && (h("span", { class: "check-icon", innerHTML: Check }))));
|
480
|
+
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": option.value === value, "aria-disabled": option.disabled ? "true" : "false", onClick: !option.timedOut && !option.loading && this.handleOptionClick, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, "data-value": option.value, "data-label": option.label }, option.timedOut ? (h(Fragment, null, h("div", { class: "loading-error-info" }, h("svg", { class: "error-icon-svg", "aria-labelledby": "error-title", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#000000" }, h("title", { id: "error-title" }, "Error"), h("path", { d: "M0 0h24v24H0z", fill: "none" }), h("path", { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" })), h("ic-typography", { variant: "label" }, option.label)), h("ic-button", { size: "small", variant: "tertiary", onClick: this.handleRetry, onKeyDown: this.handleRetryKeyDown, onBlur: this.handleTimeoutBlur, id: "retry-button" }, "Retry"))) : (this.optionContent(option))));
|
400
481
|
};
|
401
482
|
this.open = undefined;
|
402
483
|
this.options = undefined;
|
@@ -416,7 +497,9 @@ const Menu = class {
|
|
416
497
|
this.initialOptionsListRender = false;
|
417
498
|
this.preventIncorrectTabOrder = false;
|
418
499
|
}
|
419
|
-
watchOptionsHandler() {
|
500
|
+
watchOptionsHandler(newOptions) {
|
501
|
+
this.hasTimedOut = newOptions.some((opt) => opt.timedOut);
|
502
|
+
this.isLoading = newOptions.some((opt) => opt.loading);
|
420
503
|
this.ungroupedOptions = [];
|
421
504
|
this.loadUngroupedOptions();
|
422
505
|
}
|
@@ -441,7 +524,6 @@ const Menu = class {
|
|
441
524
|
this.autoSetInputValueKeyboardOpen(event);
|
442
525
|
}
|
443
526
|
else {
|
444
|
-
this.keyboardNav = true;
|
445
527
|
this.manSetInputValueKeyboardOpen(event);
|
446
528
|
}
|
447
529
|
}
|
@@ -452,17 +534,18 @@ const Menu = class {
|
|
452
534
|
this.setHighlightedOption(0);
|
453
535
|
}
|
454
536
|
connectedCallback() {
|
455
|
-
|
456
|
-
if (
|
537
|
+
this.getParentEl(this.parentEl);
|
538
|
+
if (this.isSearchBar) {
|
457
539
|
this.setHighlightedOption(0);
|
458
540
|
this.initialOptionsListRender = true;
|
459
541
|
}
|
460
542
|
}
|
461
543
|
componentWillLoad() {
|
462
544
|
this.loadUngroupedOptions();
|
463
|
-
this.isSearchBar = this.parentEl.tagName === "IC-SEARCH-BAR";
|
464
545
|
this.parentEl.addEventListener("icClear", this.handleClearListener);
|
465
546
|
this.parentEl.addEventListener("icSubmitSearch", this.handleSubmitSearch);
|
547
|
+
this.hasTimedOut = this.options.some((opt) => opt.timedOut);
|
548
|
+
this.isLoading = this.options.some((opt) => opt.loading);
|
466
549
|
}
|
467
550
|
componentDidLoad() {
|
468
551
|
if (this.isSearchBar &&
|
@@ -511,7 +594,8 @@ const Menu = class {
|
|
511
594
|
if (this.value &&
|
512
595
|
this.keyboardNav &&
|
513
596
|
inputValueInOptions &&
|
514
|
-
this.autoFocusOnSelected
|
597
|
+
this.autoFocusOnSelected &&
|
598
|
+
!this.isSearchableSelect) {
|
515
599
|
this.scrollToSelected(this.menu);
|
516
600
|
}
|
517
601
|
else if (this.inputEl.tagName !== "IC-TEXT-FIELD" &&
|
@@ -533,14 +617,13 @@ const Menu = class {
|
|
533
617
|
this.parentEl.removeEventListener("icSubmitSearch", this.handleSubmitSearch);
|
534
618
|
}
|
535
619
|
render() {
|
536
|
-
|
537
|
-
const { inputLabel, options, menuId, value, fullWidth } = this;
|
620
|
+
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, small, open, inputEl, keyboardNav, } = this;
|
538
621
|
return (h(Host, { class: {
|
539
622
|
"full-width": fullWidth,
|
540
|
-
"no-focus": (
|
541
|
-
|
542
|
-
|
543
|
-
|
623
|
+
"no-focus": (inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" || hasTimedOut || isLoading,
|
624
|
+
small: small,
|
625
|
+
open: open,
|
626
|
+
} }, options.length !== 0 && (h("ul", { id: menuId, class: "menu", role: "listbox", "aria-label": inputLabel, "aria-activedescendant": value != null && value !== "" ? this.getOptionId(value) : "", tabindex: open && !keyboardNav && (inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ? "0" : "-1", ref: (el) => (this.menu = el), onKeyDown: this.handleMenuKeyDown, onKeyUp: this.handleMenuKeyUp, onBlur: this.handleBlur }, this.getSortedOptions(options).map((option, index) => {
|
544
627
|
if (option.children) {
|
545
628
|
if (option.children.length > 0) {
|
546
629
|
return (h("div", null, h("ic-typography", { class: "option-group-title", role: "presentation", variant: "subtitle-small" }, h("p", null, option.label)), option.children.map((childOption) => this.displayOption(childOption, index, option))));
|