@ukic/web-components 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-a0a128bd.js → helpers-fc4016d2.js} +36 -73
- package/dist/cjs/helpers-fc4016d2.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +63 -36
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +4 -4
- package/dist/cjs/ic-badge.cjs.entry.js +41 -17
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +56 -76
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +32 -51
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +135 -131
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +6 -6
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +9 -10
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +35 -34
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +26 -38
- 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 +3 -3
- package/dist/cjs/ic-dialog.cjs.entry.js +3 -3
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +2 -2
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer.cjs.entry.js +4 -4
- package/dist/cjs/ic-hero.cjs.entry.js +5 -5
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +9 -9
- package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
- package/dist/cjs/ic-link.cjs.entry.js +21 -3
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js +5 -5
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +12 -7
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
- package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-pagination.cjs.entry.js +5 -5
- package/dist/cjs/ic-popover-menu.cjs.entry.js +8 -7
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-option.cjs.entry.js +6 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +112 -135
- 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 +47 -50
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +6 -6
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js +10 -3
- package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +15 -15
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
- package/dist/cjs/ic-switch.cjs.entry.js +6 -6
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +3 -3
- package/dist/cjs/ic-text-field.cjs.entry.js +32 -29
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +4 -2
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +4 -4
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -5
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +4 -4
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-accordion/ic-accordion.css +3 -0
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.css +1 -0
- package/dist/collection/components/ic-alert/ic-alert.css +3 -1
- package/dist/collection/components/ic-alert/ic-alert.js +85 -50
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +3 -3
- package/dist/collection/components/ic-badge/ic-badge.css +1 -1
- package/dist/collection/components/ic-badge/ic-badge.js +39 -15
- package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +40 -59
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +65 -86
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.css +123 -59
- package/dist/collection/components/ic-button/ic-button.js +141 -162
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.stories.js +39 -54
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.css +20 -4
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +4 -4
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +3 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +71 -73
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +24 -25
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.css +9 -0
- package/dist/collection/components/ic-chip/ic-chip.js +66 -72
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.stories.js +2 -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.css +2 -1
- package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
- package/dist/collection/components/ic-divider/ic-divider.css +7 -4
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
- package/dist/collection/components/ic-footer/ic-footer.js +3 -3
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +0 -3
- package/dist/collection/components/ic-hero/ic-hero.js +4 -4
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
- package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
- package/dist/collection/components/ic-input-label/ic-input-label.js +4 -4
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
- package/dist/collection/components/ic-link/ic-link.js +23 -2
- package/dist/collection/components/ic-link/ic-link.js.map +1 -1
- package/dist/collection/components/ic-link/ic-link.stories.js +28 -5
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +3 -3
- package/dist/collection/components/ic-menu/ic-menu.js +3 -3
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +2 -5
- package/dist/collection/components/ic-menu-item/ic-menu-item.js +3 -3
- package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +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.css +0 -4
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +20 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +11 -6
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
- package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
- package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +0 -5
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +6 -5
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +2 -1
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +169 -192
- 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 +46 -49
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +3 -2
- 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-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skip-link/ic-skip-link.js +31 -3
- package/dist/collection/components/ic-skip-link/ic-skip-link.js.map +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +6 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
- package/dist/collection/components/ic-step/ic-step.css +0 -3
- package/dist/collection/components/ic-step/ic-step.js +13 -13
- package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
- package/dist/collection/components/ic-switch/ic-switch.js +5 -5
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- 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 +112 -95
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-theme/ic-theme.js +31 -3
- package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +3 -3
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.css +6 -8
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +32 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +3 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +4 -4
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.css +2 -2
- package/dist/collection/components/ic-typography/ic-typography.js +2 -2
- package/dist/collection/utils/helpers.js +35 -72
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +36 -73
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +66 -37
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +3 -3
- package/dist/components/ic-badge.js +40 -16
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +57 -78
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +32 -51
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +105 -126
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +5 -5
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +9 -10
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +37 -36
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +28 -40
- 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 +3 -3
- package/dist/components/ic-dialog.js +2 -2
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-divider2.js +2 -2
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-empty-state.js +2 -2
- package/dist/components/ic-footer-link-group.js +1 -1
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-footer.js +4 -4
- package/dist/components/ic-hero.js +5 -5
- package/dist/components/ic-horizontal-scroll2.js +6 -6
- package/dist/components/ic-input-component-container2.js +4 -4
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-label2.js +5 -5
- package/dist/components/ic-input-validation2.js +4 -4
- package/dist/components/ic-link2.js +23 -3
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +3 -3
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu-item2.js +4 -4
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +4 -4
- package/dist/components/ic-navigation-button.js +2 -2
- package/dist/components/ic-navigation-group.js +3 -3
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +12 -7
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +5 -5
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination.js +4 -4
- package/dist/components/ic-popover-menu.js +7 -6
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +5 -5
- package/dist/components/ic-radio-option.js +6 -6
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +112 -135
- 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 +47 -50
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +6 -6
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skip-link.js +12 -4
- package/dist/components/ic-skip-link.js.map +1 -1
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +14 -14
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +3 -3
- package/dist/components/ic-switch.js +6 -6
- package/dist/components/ic-switch.js.map +1 -1
- 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.js +2 -2
- package/dist/components/ic-text-field.js +32 -29
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-theme.js +3 -1
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +4 -4
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +3 -3
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +30 -2
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +5 -5
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +3 -3
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.css +160 -110
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-00bc353b.entry.js +2 -0
- package/dist/core/p-00bc353b.entry.js.map +1 -0
- package/dist/core/{p-45595f98.entry.js → p-0a436c47.entry.js} +2 -2
- package/dist/core/p-0a436c47.entry.js.map +1 -0
- package/dist/core/{p-a55e7988.entry.js → p-10e1e227.entry.js} +2 -2
- package/dist/core/p-1440847f.entry.js +2 -0
- package/dist/core/p-1440847f.entry.js.map +1 -0
- package/dist/core/{p-729745d3.entry.js → p-15b7adaf.entry.js} +2 -2
- package/dist/core/p-16f55230.entry.js +2 -0
- package/dist/core/p-16f55230.entry.js.map +1 -0
- package/dist/core/{p-5c349c9d.entry.js → p-1838d1e9.entry.js} +2 -2
- package/dist/core/p-1838d1e9.entry.js.map +1 -0
- package/dist/core/{p-972671ea.entry.js → p-18714198.entry.js} +2 -2
- package/dist/core/{p-a20a7cd3.entry.js → p-1b2690b4.entry.js} +2 -2
- package/dist/core/p-1b2690b4.entry.js.map +1 -0
- package/dist/core/{p-37df68fe.entry.js → p-1be17f22.entry.js} +2 -2
- package/dist/core/p-206c2a26.entry.js +2 -0
- package/dist/core/p-206c2a26.entry.js.map +1 -0
- package/dist/core/{p-17cf7b50.entry.js → p-267a19d4.entry.js} +2 -2
- package/dist/core/p-26dfc4db.entry.js +2 -0
- package/dist/core/p-26dfc4db.entry.js.map +1 -0
- package/dist/core/p-2c17cc67.entry.js +2 -0
- package/dist/core/p-2c17cc67.entry.js.map +1 -0
- package/dist/core/{p-8b268274.entry.js → p-2c371198.entry.js} +2 -2
- package/dist/core/p-2e44cf53.entry.js +2 -0
- package/dist/core/p-2e44cf53.entry.js.map +1 -0
- package/dist/core/p-42a7d0b6.entry.js +2 -0
- package/dist/core/{p-fa02a267.entry.js → p-4b6818d9.entry.js} +2 -2
- package/dist/core/p-513628ef.entry.js +2 -0
- package/dist/core/p-513628ef.entry.js.map +1 -0
- package/dist/core/{p-1ac08e6d.entry.js → p-628c32b8.entry.js} +2 -2
- package/dist/core/p-70a6cff1.entry.js +2 -0
- package/dist/core/p-70a6cff1.entry.js.map +1 -0
- package/dist/core/{p-8856dff4.entry.js → p-72c117b6.entry.js} +2 -2
- package/dist/core/p-730d2f6e.entry.js +2 -0
- package/dist/core/p-730d2f6e.entry.js.map +1 -0
- package/dist/core/{p-0d016565.entry.js → p-788c96ac.entry.js} +2 -2
- package/dist/core/{p-78e7a859.entry.js → p-7fb79e87.entry.js} +2 -2
- package/dist/core/p-8242c24f.js +2 -0
- package/dist/core/p-8242c24f.js.map +1 -0
- package/dist/core/{p-7e79bd0e.entry.js → p-83764268.entry.js} +2 -2
- package/dist/core/p-8b5022bc.entry.js +2 -0
- package/dist/core/p-8b5022bc.entry.js.map +1 -0
- package/dist/core/{p-f34efc17.entry.js → p-8c4f7c63.entry.js} +2 -2
- package/dist/core/{p-1f455336.entry.js → p-910f5f14.entry.js} +2 -2
- package/dist/core/{p-10cd26dc.entry.js → p-9479f272.entry.js} +2 -2
- package/dist/core/{p-10cd26dc.entry.js.map → p-9479f272.entry.js.map} +1 -1
- package/dist/core/p-9c47521d.entry.js +2 -0
- package/dist/core/p-9c47521d.entry.js.map +1 -0
- package/dist/core/{p-110486f0.entry.js → p-9ca147f3.entry.js} +2 -2
- package/dist/core/{p-d9aec0dd.entry.js → p-9cfc2bac.entry.js} +2 -2
- package/dist/core/{p-74600ed8.entry.js → p-a0161990.entry.js} +2 -2
- package/dist/core/p-a17499ff.entry.js +2 -0
- package/dist/core/p-a17499ff.entry.js.map +1 -0
- package/dist/core/{p-4f2a1950.entry.js → p-a4f9b5bf.entry.js} +2 -2
- package/dist/core/{p-c9726fbd.entry.js → p-aad10013.entry.js} +2 -2
- package/dist/core/p-aad10013.entry.js.map +1 -0
- package/dist/core/{p-44e32417.entry.js → p-b371a498.entry.js} +2 -2
- package/dist/core/{p-44e32417.entry.js.map → p-b371a498.entry.js.map} +1 -1
- package/dist/core/p-b7568944.entry.js +2 -0
- package/dist/core/p-b7568944.entry.js.map +1 -0
- package/dist/core/p-b8da5c07.entry.js +2 -0
- package/dist/core/p-b8da5c07.entry.js.map +1 -0
- package/dist/core/{p-701696aa.entry.js → p-b9459ba2.entry.js} +2 -2
- package/dist/core/{p-2537f33e.entry.js → p-ba600947.entry.js} +2 -2
- package/dist/core/p-ba600947.entry.js.map +1 -0
- package/dist/core/{p-50f4d151.entry.js → p-bc2ca778.entry.js} +2 -2
- package/dist/core/{p-69e4daec.entry.js → p-bdc72446.entry.js} +2 -2
- package/dist/core/p-c45023b7.entry.js +2 -0
- package/dist/core/p-c45023b7.entry.js.map +1 -0
- package/dist/core/p-c4663e1a.entry.js +2 -0
- package/dist/core/p-c4663e1a.entry.js.map +1 -0
- package/dist/core/{p-a103068b.entry.js → p-c8cf1ad5.entry.js} +2 -2
- package/dist/core/p-c9a4fe37.entry.js +2 -0
- package/dist/core/p-c9a4fe37.entry.js.map +1 -0
- package/dist/core/p-cdf56a5d.entry.js +2 -0
- package/dist/core/p-cdf56a5d.entry.js.map +1 -0
- package/dist/core/{p-a71055c9.entry.js → p-d45d66c0.entry.js} +2 -2
- package/dist/core/p-d6c50565.entry.js +2 -0
- package/dist/core/p-d6c50565.entry.js.map +1 -0
- package/dist/core/{p-85734ebf.entry.js → p-d975bf2f.entry.js} +2 -2
- package/dist/core/p-d975bf2f.entry.js.map +1 -0
- package/dist/core/p-dede4974.entry.js +2 -0
- package/dist/core/p-dede4974.entry.js.map +1 -0
- package/dist/core/{p-071f4748.entry.js → p-df88ff5b.entry.js} +2 -2
- package/dist/core/p-e86a6d2d.entry.js +2 -0
- package/dist/core/{p-20c4d90b.entry.js → p-ebab7a9e.entry.js} +2 -2
- package/dist/core/p-eeab3a2e.entry.js +2 -0
- package/dist/core/p-eeab3a2e.entry.js.map +1 -0
- package/dist/core/{p-264ce7a0.entry.js → p-ef36181d.entry.js} +2 -2
- package/dist/core/p-ef36181d.entry.js.map +1 -0
- package/dist/core/p-f0388d68.entry.js +2 -0
- package/dist/core/p-f0388d68.entry.js.map +1 -0
- package/dist/core/{p-2b1a331b.entry.js → p-fbf57f0a.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-dd035d0d.js → helpers-f2ffaa7c.js} +37 -74
- package/dist/esm/helpers-f2ffaa7c.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +63 -36
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +4 -4
- package/dist/esm/ic-badge.entry.js +41 -17
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +56 -76
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +32 -51
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +136 -132
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +6 -6
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +9 -10
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +35 -34
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +26 -38
- 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 +3 -3
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +2 -2
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-empty-state.entry.js +3 -3
- package/dist/esm/ic-footer-link-group.entry.js +2 -2
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +3 -3
- package/dist/esm/ic-footer.entry.js +4 -4
- package/dist/esm/ic-hero.entry.js +5 -5
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
- package/dist/esm/ic-input-component-container_3.entry.js +9 -9
- package/dist/esm/ic-input-label_2.entry.js +8 -8
- package/dist/esm/ic-link.entry.js +21 -3
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +2 -2
- package/dist/esm/ic-menu-item.entry.js +5 -5
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +3 -3
- package/dist/esm/ic-navigation-group.entry.js +3 -3
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +12 -7
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +5 -5
- package/dist/esm/ic-page-header.entry.js +7 -7
- package/dist/esm/ic-pagination-item.entry.js +2 -2
- package/dist/esm/ic-pagination.entry.js +5 -5
- package/dist/esm/ic-popover-menu.entry.js +8 -7
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +5 -5
- package/dist/esm/ic-radio-option.entry.js +6 -6
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +112 -135
- 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 +47 -50
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +6 -6
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js +10 -3
- package/dist/esm/ic-skip-link.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +15 -15
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +3 -3
- package/dist/esm/ic-switch.entry.js +6 -6
- package/dist/esm/ic-switch.entry.js.map +1 -1
- 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 +32 -29
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +4 -2
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +4 -4
- package/dist/esm/ic-toggle-button-group.entry.js +3 -3
- package/dist/esm/ic-toggle-button.entry.js +4 -4
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +5 -5
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +4 -4
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-alert/ic-alert.d.ts +17 -9
- package/dist/types/components/ic-badge/ic-badge.d.ts +4 -0
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +4 -6
- package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +9 -15
- package/dist/types/components/ic-button/ic-button.d.ts +29 -22
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +14 -13
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +8 -9
- package/dist/types/components/ic-chip/ic-chip.d.ts +13 -15
- package/dist/types/components/ic-link/ic-link.d.ts +2 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +38 -40
- package/dist/types/components/ic-select/ic-select.d.ts +1 -0
- package/dist/types/components/ic-skip-link/ic-skip-link.d.ts +5 -0
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +37 -32
- package/dist/types/components/ic-theme/ic-theme.d.ts +6 -2
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +147 -133
- package/dist/types/utils/helpers.d.ts +13 -9
- package/dist/types/utils/types.d.ts +1 -0
- package/hydrate/index.js +809 -832
- package/hydrate/index.mjs +809 -832
- package/package.json +3 -3
- package/vscode-data.json +167 -3
- package/dist/cjs/helpers-a0a128bd.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js +0 -2
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js.map +0 -1
- package/dist/core/p-06d97789.entry.js +0 -2
- package/dist/core/p-06d97789.entry.js.map +0 -1
- package/dist/core/p-09070f61.entry.js +0 -2
- package/dist/core/p-0c0ac69d.entry.js +0 -2
- package/dist/core/p-0c0ac69d.entry.js.map +0 -1
- package/dist/core/p-0e96d4d8.entry.js +0 -2
- package/dist/core/p-0e96d4d8.entry.js.map +0 -1
- package/dist/core/p-116ad73d.entry.js +0 -2
- package/dist/core/p-116ad73d.entry.js.map +0 -1
- package/dist/core/p-1171a945.entry.js +0 -2
- package/dist/core/p-1171a945.entry.js.map +0 -1
- package/dist/core/p-2537f33e.entry.js.map +0 -1
- package/dist/core/p-264ce7a0.entry.js.map +0 -1
- package/dist/core/p-28656111.entry.js +0 -2
- package/dist/core/p-28656111.entry.js.map +0 -1
- package/dist/core/p-33243fff.entry.js +0 -2
- package/dist/core/p-33243fff.entry.js.map +0 -1
- package/dist/core/p-45595f98.entry.js.map +0 -1
- package/dist/core/p-49768069.entry.js +0 -2
- package/dist/core/p-49768069.entry.js.map +0 -1
- package/dist/core/p-4c68494c.entry.js +0 -2
- package/dist/core/p-4c68494c.entry.js.map +0 -1
- package/dist/core/p-55a37101.entry.js +0 -2
- package/dist/core/p-55a37101.entry.js.map +0 -1
- package/dist/core/p-5c349c9d.entry.js.map +0 -1
- package/dist/core/p-5e1fd097.entry.js +0 -2
- package/dist/core/p-5e1fd097.entry.js.map +0 -1
- package/dist/core/p-73fc198f.entry.js +0 -2
- package/dist/core/p-73fc198f.entry.js.map +0 -1
- package/dist/core/p-7eaf8da8.entry.js +0 -2
- package/dist/core/p-811d447b.entry.js +0 -2
- package/dist/core/p-811d447b.entry.js.map +0 -1
- package/dist/core/p-85734ebf.entry.js.map +0 -1
- package/dist/core/p-85b7d931.entry.js +0 -2
- package/dist/core/p-85b7d931.entry.js.map +0 -1
- package/dist/core/p-98328cb9.entry.js +0 -2
- package/dist/core/p-98328cb9.entry.js.map +0 -1
- package/dist/core/p-a20a7cd3.entry.js.map +0 -1
- package/dist/core/p-a22658fb.entry.js +0 -2
- package/dist/core/p-a22658fb.entry.js.map +0 -1
- package/dist/core/p-a794b724.entry.js +0 -2
- package/dist/core/p-a794b724.entry.js.map +0 -1
- package/dist/core/p-b21b4fea.entry.js +0 -2
- package/dist/core/p-b21b4fea.entry.js.map +0 -1
- package/dist/core/p-b953b22f.entry.js +0 -2
- package/dist/core/p-b953b22f.entry.js.map +0 -1
- package/dist/core/p-c9726fbd.entry.js.map +0 -1
- package/dist/core/p-d981598e.entry.js +0 -2
- package/dist/core/p-d981598e.entry.js.map +0 -1
- package/dist/core/p-ed8957da.js +0 -2
- package/dist/core/p-ed8957da.js.map +0 -1
- package/dist/core/p-f3315216.entry.js +0 -2
- package/dist/core/p-f3315216.entry.js.map +0 -1
- package/dist/core/p-f43f411a.entry.js +0 -2
- package/dist/core/p-f43f411a.entry.js.map +0 -1
- package/dist/core/p-ff995eb8.entry.js +0 -2
- package/dist/core/p-ff995eb8.entry.js.map +0 -1
- package/dist/esm/helpers-dd035d0d.js.map +0 -1
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.types.d.ts +0 -1
- /package/dist/core/{p-a55e7988.entry.js.map → p-10e1e227.entry.js.map} +0 -0
- /package/dist/core/{p-729745d3.entry.js.map → p-15b7adaf.entry.js.map} +0 -0
- /package/dist/core/{p-972671ea.entry.js.map → p-18714198.entry.js.map} +0 -0
- /package/dist/core/{p-37df68fe.entry.js.map → p-1be17f22.entry.js.map} +0 -0
- /package/dist/core/{p-17cf7b50.entry.js.map → p-267a19d4.entry.js.map} +0 -0
- /package/dist/core/{p-8b268274.entry.js.map → p-2c371198.entry.js.map} +0 -0
- /package/dist/core/{p-09070f61.entry.js.map → p-42a7d0b6.entry.js.map} +0 -0
- /package/dist/core/{p-fa02a267.entry.js.map → p-4b6818d9.entry.js.map} +0 -0
- /package/dist/core/{p-1ac08e6d.entry.js.map → p-628c32b8.entry.js.map} +0 -0
- /package/dist/core/{p-8856dff4.entry.js.map → p-72c117b6.entry.js.map} +0 -0
- /package/dist/core/{p-0d016565.entry.js.map → p-788c96ac.entry.js.map} +0 -0
- /package/dist/core/{p-78e7a859.entry.js.map → p-7fb79e87.entry.js.map} +0 -0
- /package/dist/core/{p-7e79bd0e.entry.js.map → p-83764268.entry.js.map} +0 -0
- /package/dist/core/{p-f34efc17.entry.js.map → p-8c4f7c63.entry.js.map} +0 -0
- /package/dist/core/{p-1f455336.entry.js.map → p-910f5f14.entry.js.map} +0 -0
- /package/dist/core/{p-110486f0.entry.js.map → p-9ca147f3.entry.js.map} +0 -0
- /package/dist/core/{p-d9aec0dd.entry.js.map → p-9cfc2bac.entry.js.map} +0 -0
- /package/dist/core/{p-74600ed8.entry.js.map → p-a0161990.entry.js.map} +0 -0
- /package/dist/core/{p-4f2a1950.entry.js.map → p-a4f9b5bf.entry.js.map} +0 -0
- /package/dist/core/{p-701696aa.entry.js.map → p-b9459ba2.entry.js.map} +0 -0
- /package/dist/core/{p-50f4d151.entry.js.map → p-bc2ca778.entry.js.map} +0 -0
- /package/dist/core/{p-69e4daec.entry.js.map → p-bdc72446.entry.js.map} +0 -0
- /package/dist/core/{p-a103068b.entry.js.map → p-c8cf1ad5.entry.js.map} +0 -0
- /package/dist/core/{p-a71055c9.entry.js.map → p-d45d66c0.entry.js.map} +0 -0
- /package/dist/core/{p-071f4748.entry.js.map → p-df88ff5b.entry.js.map} +0 -0
- /package/dist/core/{p-7eaf8da8.entry.js.map → p-e86a6d2d.entry.js.map} +0 -0
- /package/dist/core/{p-20c4d90b.entry.js.map → p-ebab7a9e.entry.js.map} +0 -0
- /package/dist/core/{p-2b1a331b.entry.js.map → p-fbf57f0a.entry.js.map} +0 -0
@@ -6,7 +6,6 @@ let inputIds = 0;
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
7
7
|
export class SearchBar {
|
8
8
|
constructor() {
|
9
|
-
this.assistiveHintEl = null;
|
10
9
|
this.hasTimedOut = false;
|
11
10
|
this.inputId = `ic-search-bar-input-${inputIds++}`;
|
12
11
|
this.menuCloseFromMenuChangeEvent = false;
|
@@ -15,6 +14,7 @@ export class SearchBar {
|
|
15
14
|
this.preventSubmit = false;
|
16
15
|
this.prevNoOption = false;
|
17
16
|
this.retryButtonClick = false;
|
17
|
+
this.retryViaKeyPress = false;
|
18
18
|
this.truncateValue = false;
|
19
19
|
this.clearButtonFocused = false;
|
20
20
|
this.open = false;
|
@@ -158,46 +158,57 @@ export class SearchBar {
|
|
158
158
|
this.preventSubmit = true;
|
159
159
|
}
|
160
160
|
};
|
161
|
-
this.onInput = (
|
162
|
-
this.value =
|
161
|
+
this.onInput = ({ target }) => {
|
162
|
+
this.value = target.value;
|
163
163
|
this.icInput.emit({ value: this.value });
|
164
|
-
const noOptions = [
|
165
|
-
{ [this.labelField]: this.emptyOptionListText, [this.valueField]: "" },
|
166
|
-
];
|
167
164
|
if (this.options.length > 0) {
|
168
165
|
this.setMenuChange(true);
|
169
166
|
this.preLoad = false;
|
170
167
|
if (this.disableAutoFiltering === false) {
|
171
168
|
const rawFilteredOptions = getFilteredMenuOptions(this.options, false, this.value, "anywhere", this.labelField);
|
172
169
|
this.filteredOptions =
|
173
|
-
rawFilteredOptions.length > 0
|
170
|
+
rawFilteredOptions.length > 0
|
171
|
+
? rawFilteredOptions
|
172
|
+
: [
|
173
|
+
{
|
174
|
+
[this.labelField]: this.emptyOptionListText,
|
175
|
+
[this.valueField]: "",
|
176
|
+
},
|
177
|
+
];
|
174
178
|
}
|
175
179
|
}
|
176
|
-
if (!this.showClearButton)
|
177
|
-
this.
|
178
|
-
}
|
180
|
+
if (!this.showClearButton)
|
181
|
+
this.showClearButton = true;
|
179
182
|
this.debounceAriaLiveUpdate();
|
180
183
|
};
|
181
|
-
this.onInputBlur = (
|
182
|
-
|
183
|
-
|
184
|
-
|
184
|
+
this.onInputBlur = ({ target, relatedTarget }) => {
|
185
|
+
this.icSearchBarBlur.emit({
|
186
|
+
value: target.value,
|
187
|
+
relatedTarget,
|
188
|
+
});
|
185
189
|
};
|
186
|
-
this.onInputFocus = (
|
187
|
-
|
188
|
-
this.
|
189
|
-
this.handleShowClearButton(true);
|
190
|
+
this.onInputFocus = ({ target }) => {
|
191
|
+
this.icSearchBarFocus.emit({ value: target.value });
|
192
|
+
this.showClearButton = true;
|
190
193
|
};
|
191
|
-
this.handleClearBlur = (
|
192
|
-
|
193
|
-
this.icClearBlur.emit({ relatedTarget: nextFocus });
|
194
|
+
this.handleClearBlur = ({ relatedTarget }) => {
|
195
|
+
this.icClearBlur.emit({ relatedTarget });
|
194
196
|
this.clearButtonFocused = false;
|
195
197
|
};
|
196
|
-
this.handleSubmitSearchBlur = (
|
197
|
-
|
198
|
-
this.icSubmitSearchBlur.emit({ relatedTarget: nextFocus });
|
198
|
+
this.handleSubmitSearchBlur = ({ relatedTarget }) => {
|
199
|
+
this.icSubmitSearchBlur.emit({ relatedTarget });
|
199
200
|
this.searchSubmitFocused = false;
|
200
201
|
};
|
202
|
+
this.setInputValue = (newValue) => {
|
203
|
+
if (this.inputEl) {
|
204
|
+
const label = getLabelFromValue(newValue, this.options, this.valueField, this.labelField);
|
205
|
+
if (label)
|
206
|
+
this.inputEl.value = label;
|
207
|
+
else if (this.inputEl.value !== newValue) {
|
208
|
+
this.inputEl.value = newValue;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
};
|
201
212
|
this.handleMouseDown = (ev) => {
|
202
213
|
ev.preventDefault();
|
203
214
|
};
|
@@ -205,7 +216,8 @@ export class SearchBar {
|
|
205
216
|
this.searchSubmitFocused = true;
|
206
217
|
};
|
207
218
|
this.handleSubmitSearch = () => {
|
208
|
-
|
219
|
+
if (this.highlightedValue)
|
220
|
+
this.value = this.highlightedValue;
|
209
221
|
this.highlightedValue = undefined;
|
210
222
|
this.icSubmitSearch.emit({ value: this.value });
|
211
223
|
const form = this.el.closest("FORM");
|
@@ -256,15 +268,10 @@ export class SearchBar {
|
|
256
268
|
this.icOptionSelect.emit({ value: this.value });
|
257
269
|
};
|
258
270
|
this.handleMenuOptionHighlight = (ev) => {
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
this.ariaActiveDescendant = ev.detail.optionId;
|
264
|
-
}
|
265
|
-
else {
|
266
|
-
this.ariaActiveDescendant = "";
|
267
|
-
}
|
271
|
+
const { optionId } = ev.detail;
|
272
|
+
if (optionId)
|
273
|
+
this.highlightedValue = optionId.replace(`${this.menuId}-`, "");
|
274
|
+
this.ariaActiveDescendant = optionId || "";
|
268
275
|
};
|
269
276
|
this.handleMenuChange = (ev) => {
|
270
277
|
this.setMenuChange(ev.detail.open);
|
@@ -282,15 +289,14 @@ export class SearchBar {
|
|
282
289
|
if (this.options && this.value && !this.menuCloseFromMenuChangeEvent) {
|
283
290
|
this.setMenuChange(true);
|
284
291
|
}
|
285
|
-
this.
|
292
|
+
this.truncateValue = false;
|
286
293
|
this.icSearchBarFocus.emit();
|
287
294
|
};
|
288
|
-
this.handleHostBlur = (
|
295
|
+
this.handleHostBlur = ({ relatedTarget }) => {
|
289
296
|
var _a;
|
290
|
-
const nextFocus = ev.relatedTarget;
|
291
297
|
if (this.open &&
|
292
298
|
this.options &&
|
293
|
-
|
299
|
+
relatedTarget !== this.menu &&
|
294
300
|
!this.retryViaKeyPress &&
|
295
301
|
!this.retryButtonClick) {
|
296
302
|
this.setMenuChange(false);
|
@@ -298,35 +304,30 @@ export class SearchBar {
|
|
298
304
|
if (this.retryButtonClick || this.retryViaKeyPress) {
|
299
305
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
300
306
|
}
|
301
|
-
this.
|
307
|
+
this.showClearButton = false;
|
302
308
|
this.menuCloseFromMenuChangeEvent = false;
|
303
|
-
this.
|
304
|
-
this.icSearchBarBlur.emit({
|
309
|
+
this.truncateValue = true;
|
310
|
+
this.icSearchBarBlur.emit({
|
311
|
+
relatedTarget,
|
312
|
+
value: this.value,
|
313
|
+
});
|
305
314
|
this.retryViaKeyPress = false;
|
306
315
|
this.retryButtonClick = false;
|
307
316
|
};
|
308
|
-
this.handleShowClearButton = (visible) => {
|
309
|
-
this.showClearButton = visible;
|
310
|
-
};
|
311
317
|
this.handleFocusClearButton = () => {
|
312
318
|
this.clearButtonFocused = true;
|
313
319
|
};
|
314
|
-
this.handleTruncateValue = (truncate) => {
|
315
|
-
this.truncateValue = truncate;
|
316
|
-
};
|
317
320
|
this.renderAssistiveHintEl = () => {
|
318
|
-
var _a;
|
321
|
+
var _a, _b;
|
319
322
|
const input = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`#${this.inputId}`);
|
320
323
|
if (input &&
|
321
324
|
Object.keys(input).length > 0 &&
|
322
325
|
this.hasOptionsOrFilterDisabled()) {
|
323
326
|
this.assistiveHintEl = document.createElement("span");
|
324
|
-
this.assistiveHintEl.innerText = this.assistiveHintText
|
327
|
+
this.assistiveHintEl.innerText = this.assistiveHintText;
|
325
328
|
this.assistiveHintEl.id = `${this.inputId}-assistive-hint`;
|
326
329
|
this.assistiveHintEl.style.display = "none";
|
327
|
-
|
328
|
-
input.after(this.assistiveHintEl);
|
329
|
-
}
|
330
|
+
(_b = input.after) === null || _b === void 0 ? void 0 : _b.call(input, this.assistiveHintEl);
|
330
331
|
}
|
331
332
|
};
|
332
333
|
this.updateSearchResultAriaLive = () => {
|
@@ -342,41 +343,22 @@ export class SearchBar {
|
|
342
343
|
this.filteredOptions.length > 0 &&
|
343
344
|
this.open &&
|
344
345
|
!this.filteredOptions[0].loading) {
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
else {
|
349
|
-
searchResultsStatusEl.innerText = `${this.filteredOptions.length} result${this.filteredOptions.length > 1 ? "s" : ""} available`;
|
350
|
-
}
|
346
|
+
searchResultsStatusEl.innerText = this.hadNoOptions()
|
347
|
+
? this.emptyOptionListText
|
348
|
+
: `${this.filteredOptions.length} result${this.filteredOptions.length > 1 ? "s" : ""} available`;
|
351
349
|
}
|
352
350
|
}
|
353
351
|
};
|
354
|
-
this.hasOptionsOrFilterDisabled = () => this.options.length > 0 ||
|
352
|
+
this.hasOptionsOrFilterDisabled = () => this.options.length > 0 || this.disableAutoFiltering;
|
355
353
|
this.hadNoOptions = () => this.filteredOptions.length === 1 &&
|
356
354
|
this.filteredOptions[0][this.labelField] === this.emptyOptionListText &&
|
357
355
|
this.searchMode === "navigation";
|
358
|
-
this.isSubmitDisabled = () =>
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
this.hadNoOptions() ||
|
365
|
-
this.hasTimedOut ||
|
366
|
-
!!this.loading);
|
367
|
-
};
|
368
|
-
this.highlightFirstOptionAfterNoResults = () => {
|
369
|
-
if (this.prevNoOption && this.menu && !this.hasTimedOut) {
|
370
|
-
this.menu.handleSetFirstOption();
|
371
|
-
this.prevNoOption = false;
|
372
|
-
}
|
373
|
-
const prevNoOptionsList = this.filteredOptions.find((filteredOption) => filteredOption[this.labelField] === this.emptyOptionListText ||
|
374
|
-
filteredOption[this.labelField] === this.loadingErrorLabel ||
|
375
|
-
filteredOption[this.labelField] === this.loadingLabel);
|
376
|
-
if (prevNoOptionsList) {
|
377
|
-
this.prevNoOption = true;
|
378
|
-
}
|
379
|
-
};
|
356
|
+
this.isSubmitDisabled = () => !this.value ||
|
357
|
+
this.value.length < this.charactersUntilSuggestion ||
|
358
|
+
this.disabled ||
|
359
|
+
this.hadNoOptions() ||
|
360
|
+
this.hasTimedOut ||
|
361
|
+
this.loading;
|
380
362
|
}
|
381
363
|
watchDisabledHandler() {
|
382
364
|
removeDisabledFalse(this.disabled, this.el);
|
@@ -405,40 +387,32 @@ export class SearchBar {
|
|
405
387
|
return;
|
406
388
|
}
|
407
389
|
this.setMenuChange(true);
|
408
|
-
!this.preLoad
|
409
|
-
|
390
|
+
if (!this.preLoad) {
|
391
|
+
this.filteredOptions = [
|
410
392
|
{
|
411
393
|
[this.labelField]: this.emptyOptionListText,
|
412
394
|
[this.valueField]: "",
|
413
395
|
},
|
414
|
-
]
|
396
|
+
];
|
397
|
+
}
|
415
398
|
this.preLoad = true;
|
416
399
|
}
|
417
400
|
}
|
418
401
|
this.debounceAriaLiveUpdate();
|
419
402
|
}
|
420
403
|
watchValueHandler(newValue) {
|
421
|
-
|
422
|
-
this.options &&
|
423
|
-
!!getLabelFromValue(newValue, this.options, this.valueField, this.labelField)) {
|
424
|
-
this.inputEl.value =
|
425
|
-
getLabelFromValue(newValue, this.options, this.valueField, this.labelField) || "";
|
426
|
-
}
|
427
|
-
else if (this.inputEl && this.inputEl.value !== newValue) {
|
428
|
-
this.inputEl.value = newValue;
|
429
|
-
}
|
404
|
+
this.setInputValue(newValue);
|
430
405
|
this.icChange.emit({ value: newValue });
|
431
406
|
}
|
432
407
|
connectedCallback() {
|
433
408
|
this.debounceChanged();
|
434
409
|
}
|
435
410
|
disconnectedCallback() {
|
436
|
-
|
437
|
-
|
438
|
-
}
|
411
|
+
var _a;
|
412
|
+
(_a = this.assistiveHintEl) === null || _a === void 0 ? void 0 : _a.remove();
|
439
413
|
}
|
440
414
|
componentWillLoad() {
|
441
|
-
this.
|
415
|
+
this.setInputValue(this.value);
|
442
416
|
removeDisabledFalse(this.disabled, this.el);
|
443
417
|
}
|
444
418
|
componentDidLoad() {
|
@@ -454,7 +428,15 @@ export class SearchBar {
|
|
454
428
|
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Search Bar");
|
455
429
|
}
|
456
430
|
componentWillRender() {
|
457
|
-
this.
|
431
|
+
if (this.prevNoOption && this.menu && !this.hasTimedOut) {
|
432
|
+
this.menu.handleSetFirstOption();
|
433
|
+
this.prevNoOption = false;
|
434
|
+
}
|
435
|
+
if (this.filteredOptions.find((filteredOption) => filteredOption[this.labelField] === this.emptyOptionListText ||
|
436
|
+
filteredOption[this.labelField] === this.loadingErrorLabel ||
|
437
|
+
filteredOption[this.labelField] === this.loadingLabel)) {
|
438
|
+
this.prevNoOption = true;
|
439
|
+
}
|
458
440
|
}
|
459
441
|
handleKeyDown(event) {
|
460
442
|
this.icKeydown.emit({ event });
|
@@ -493,62 +475,57 @@ export class SearchBar {
|
|
493
475
|
}, 500);
|
494
476
|
}
|
495
477
|
render() {
|
496
|
-
const { inputId, name, label, required, size, placeholder, helperText, disabled, value, readonly, spellcheck, fullWidth, options, open, hideLabel, menuId, ariaActiveDescendant, truncateValue, autofocus, autocapitalize, autocomplete, filteredOptions, theme, } = this;
|
478
|
+
const { inputId, name, label, required, size, placeholder, helperText, disabled, value, readonly, spellcheck, fullWidth, options, open, hideLabel, menuId, ariaActiveDescendant, truncateValue, autofocus, autocapitalize, autocomplete, filteredOptions, theme, charactersUntilSuggestion, labelField, valueField, loadingLabel, loadingErrorLabel, searchMode, showClearButton, searchSubmitFocused, clearButtonFocused, } = this;
|
497
479
|
const disabledMode = readonly || disabled;
|
498
480
|
const describedBy = getInputDescribedByText(inputId, helperText !== "", false).trim();
|
499
|
-
let describedById;
|
481
|
+
let describedById = undefined;
|
500
482
|
if (describedBy !== "" && this.hasOptionsOrFilterDisabled()) {
|
501
|
-
describedById = `${describedBy} ${
|
483
|
+
describedById = `${describedBy} ${inputId}-assistive-hint`;
|
502
484
|
}
|
503
485
|
else if (this.hasOptionsOrFilterDisabled()) {
|
504
|
-
describedById = `${
|
486
|
+
describedById = `${inputId}-assistive-hint`;
|
505
487
|
}
|
506
488
|
else if (describedBy !== "") {
|
507
489
|
describedById = describedBy;
|
508
490
|
}
|
509
|
-
else {
|
510
|
-
describedById = undefined;
|
511
|
-
}
|
512
491
|
const hasSuggestedSearch = !!value && this.hasOptionsOrFilterDisabled();
|
513
492
|
const menuOpen = hasSuggestedSearch && open && filteredOptions.length > 0;
|
514
|
-
const menuRendered = menuOpen && value.length >=
|
515
|
-
const labelValue = getLabelFromValue(value, options,
|
516
|
-
renderHiddenInput(
|
517
|
-
return (h(Host, { key: '
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
493
|
+
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
494
|
+
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
495
|
+
renderHiddenInput(this.el, value, name, disabledMode);
|
496
|
+
return (h(Host, { key: '5120b79da9d0840d87421287913f49cda06da4f3', class: {
|
497
|
+
"ic-search-bar-search": true,
|
498
|
+
"ic-search-bar-full-width": fullWidth,
|
499
|
+
"ic-search-bar-disabled": disabled,
|
500
|
+
"ic-search-bar-small": size === "small",
|
522
501
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
523
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, h("ic-input-container", { key: '
|
524
|
-
"no-left-pad":
|
525
|
-
readonly
|
502
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, h("ic-input-container", { key: '246484c51e7169a8f9944b66499126ea3d86921a', readonly: readonly, disabled: disabledMode }, !hideLabel && (h("ic-input-label", { key: '043651daee6abf565a44ad6c1c090e8d6dd85f8a', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly })), h("ic-input-component-container", { key: '880ab5440ec935340d56dd69e64e467879f3bbc5', ref: (el) => (this.anchorEl = el), size: size, disabled: disabledMode, readonly: readonly, fullWidth: fullWidth }, h("input", { key: '37ece1e8c9f5ab12f2f3a303544c882192a07107', id: inputId, name: name, ref: (el) => (this.inputEl = el), value: options && !!labelValue ? labelValue : value, class: {
|
503
|
+
"no-left-pad": readonly,
|
504
|
+
readonly,
|
526
505
|
"truncate-value": truncateValue,
|
527
|
-
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": label, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), h("div", { key: '
|
506
|
+
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": label, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), h("div", { key: '4498fbe2293958c1ae6f6ddfeab15b2ff29ca2a8', class: {
|
528
507
|
"clear-button-container": true,
|
529
|
-
"clear-button-visible": !!value && !disabledMode &&
|
530
|
-
} }, h("ic-button", { key: '
|
508
|
+
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
509
|
+
} }, h("ic-button", { key: '561c5cbe830f34bc80967e0899f2dc8526c1c4f7', id: "clear-button", class: {
|
531
510
|
"clear-button": true,
|
532
|
-
"clear-button-unfocused": !
|
533
|
-
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "submit", variant: "icon", theme:
|
511
|
+
"clear-button-unfocused": !clearButtonFocused,
|
512
|
+
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "submit", variant: "icon", theme: clearButtonFocused ? "light" : "dark" }), h("div", { key: '9c783d276ad0a931e538a79ce303ad060db1fa1b', class: "divider" })), h("div", { key: '5babcd978eb8263ca710b32ead6926c95f558838', class: {
|
534
513
|
"search-submit-button-container": true,
|
535
514
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
536
|
-
} }, h("ic-button", { key: '
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: "submit", variant: "icon", theme:
|
515
|
+
} }, h("ic-button", { key: '785dbe4deb7549662d263f74b75c759b932399fb', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
516
|
+
"search-submit-button": true,
|
517
|
+
"search-submit-button-small": size === "small",
|
518
|
+
"search-submit-button-unfocused": !searchSubmitFocused,
|
519
|
+
"search-submit-button-disabled": this.isSubmitDisabled(),
|
520
|
+
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: "submit", variant: "icon", theme: searchSubmitFocused ? "light" : "dark" }))), h("div", { key: '78297ce56515a4f1f50a8108949a20837c87828f', class: {
|
542
521
|
"menu-container": true,
|
543
|
-
fullwidth:
|
544
|
-
} }, menuRendered && (h("ic-menu", { key: '
|
522
|
+
fullwidth: fullWidth,
|
523
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (h("ic-menu", { key: 'd527adddfc250b1f0fe605cbaec5f08ea1e25c04', class: {
|
545
524
|
"no-results": this.hadNoOptions() ||
|
546
525
|
(filteredOptions.length === 1 &&
|
547
|
-
(filteredOptions[0][
|
548
|
-
|
549
|
-
|
550
|
-
this.loadingErrorLabel)),
|
551
|
-
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: this.searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: !!menuRendered, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: this.labelField, valueField: this.valueField })))), h("div", { key: 'd3a4abf5d1d7ca686b696c283e86a6c84ff39f92', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
526
|
+
(filteredOptions[0][labelField] === loadingLabel ||
|
527
|
+
filteredOptions[0][labelField] === loadingErrorLabel)),
|
528
|
+
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: true, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: labelField, valueField: valueField })))), h("div", { key: '716cd74ed9726cd134772aba2b98e374face0753', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
552
529
|
}
|
553
530
|
static get is() { return "ic-search-bar"; }
|
554
531
|
static get encapsulation() { return "shadow"; }
|
@@ -569,8 +546,8 @@ export class SearchBar {
|
|
569
546
|
"type": "string",
|
570
547
|
"mutable": false,
|
571
548
|
"complexType": {
|
572
|
-
"original": "string
|
573
|
-
"resolved": "string
|
549
|
+
"original": "string",
|
550
|
+
"resolved": "string",
|
574
551
|
"references": {}
|
575
552
|
},
|
576
553
|
"required": false,
|
@@ -590,7 +567,7 @@ export class SearchBar {
|
|
590
567
|
"mutable": false,
|
591
568
|
"complexType": {
|
592
569
|
"original": "IcAutocompleteTypes",
|
593
|
-
"resolved": "
|
570
|
+
"resolved": "\"on\" | \"off\" | \"name\" | \"honorific-prefix\" | \"given-name\" | \"additional-name\" | \"family-name\" | \"honorific-suffix\" | \"nickname\" | \"email\" | \"username\" | \"new-password\" | \"current-password\" | \"one-time-code\" | \"organization-title\" | \"organization\" | \"street-address\" | \"address-line1\" | \"address-line2\" | \"address-line3\" | \"address-level4\" | \"address-level3\" | \"address-level2\" | \"address-level1\" | \"country\" | \"country-name\" | \"postal-code\" | \"cc-name\" | \"cc-given-name\" | \"cc-additional-name\" | \"cc-family-name\" | \"cc-number\" | \"cc-exp\" | \"cc-exp-month\" | \"cc-exp-year\" | \"cc-csc\" | \"cc-type\" | \"transaction-currency\" | \"transaction-amount\" | \"language\" | \"bday\" | \"bday-day\" | \"bday-month\" | \"bday-year\" | \"sex\" | \"tel\" | \"tel-country-code\" | \"tel-national\" | \"tel-area-code\" | \"tel-local\" | \"tel-extension\" | \"impp\" | \"url\" | \"photo\"",
|
594
571
|
"references": {
|
595
572
|
"IcAutocompleteTypes": {
|
596
573
|
"location": "import",
|
@@ -600,7 +577,7 @@ export class SearchBar {
|
|
600
577
|
}
|
601
578
|
},
|
602
579
|
"required": false,
|
603
|
-
"optional":
|
580
|
+
"optional": false,
|
604
581
|
"docs": {
|
605
582
|
"tags": [],
|
606
583
|
"text": "The state of autocompletion the browser can apply on the text value."
|
@@ -616,7 +593,7 @@ export class SearchBar {
|
|
616
593
|
"mutable": false,
|
617
594
|
"complexType": {
|
618
595
|
"original": "IcAutocorrectStates",
|
619
|
-
"resolved": "\"off\" | \"on\"
|
596
|
+
"resolved": "\"off\" | \"on\"",
|
620
597
|
"references": {
|
621
598
|
"IcAutocorrectStates": {
|
622
599
|
"location": "import",
|
@@ -626,7 +603,7 @@ export class SearchBar {
|
|
626
603
|
}
|
627
604
|
},
|
628
605
|
"required": false,
|
629
|
-
"optional":
|
606
|
+
"optional": false,
|
630
607
|
"docs": {
|
631
608
|
"tags": [],
|
632
609
|
"text": "The state of autocorrection the browser can apply when the user is entering/editing the text value."
|
@@ -641,8 +618,8 @@ export class SearchBar {
|
|
641
618
|
"type": "boolean",
|
642
619
|
"mutable": false,
|
643
620
|
"complexType": {
|
644
|
-
"original": "boolean
|
645
|
-
"resolved": "boolean
|
621
|
+
"original": "boolean",
|
622
|
+
"resolved": "boolean",
|
646
623
|
"references": {}
|
647
624
|
},
|
648
625
|
"required": false,
|
@@ -662,11 +639,11 @@ export class SearchBar {
|
|
662
639
|
"mutable": false,
|
663
640
|
"complexType": {
|
664
641
|
"original": "number",
|
665
|
-
"resolved": "number
|
642
|
+
"resolved": "number",
|
666
643
|
"references": {}
|
667
644
|
},
|
668
645
|
"required": false,
|
669
|
-
"optional":
|
646
|
+
"optional": false,
|
670
647
|
"docs": {
|
671
648
|
"tags": [],
|
672
649
|
"text": "The number of characters until suggestions appear. The submit button will be disabled until the inputted value is equal to or greater than this number."
|
@@ -682,11 +659,11 @@ export class SearchBar {
|
|
682
659
|
"mutable": false,
|
683
660
|
"complexType": {
|
684
661
|
"original": "boolean",
|
685
|
-
"resolved": "boolean
|
662
|
+
"resolved": "boolean",
|
686
663
|
"references": {}
|
687
664
|
},
|
688
665
|
"required": false,
|
689
|
-
"optional":
|
666
|
+
"optional": false,
|
690
667
|
"docs": {
|
691
668
|
"tags": [],
|
692
669
|
"text": "If `true`, the disabled state will be set."
|
@@ -702,11 +679,11 @@ export class SearchBar {
|
|
702
679
|
"mutable": false,
|
703
680
|
"complexType": {
|
704
681
|
"original": "boolean",
|
705
|
-
"resolved": "boolean
|
682
|
+
"resolved": "boolean",
|
706
683
|
"references": {}
|
707
684
|
},
|
708
685
|
"required": false,
|
709
|
-
"optional":
|
686
|
+
"optional": false,
|
710
687
|
"docs": {
|
711
688
|
"tags": [],
|
712
689
|
"text": "Specify whether to disable the built in filtering. For example, if options will already be filtered from external source.\nIf `true`, all options provided will be displayed."
|
@@ -722,11 +699,11 @@ export class SearchBar {
|
|
722
699
|
"mutable": false,
|
723
700
|
"complexType": {
|
724
701
|
"original": "number",
|
725
|
-
"resolved": "number
|
702
|
+
"resolved": "number",
|
726
703
|
"references": {}
|
727
704
|
},
|
728
705
|
"required": false,
|
729
|
-
"optional":
|
706
|
+
"optional": false,
|
730
707
|
"docs": {
|
731
708
|
"tags": [],
|
732
709
|
"text": "The amount of time, in milliseconds, to wait to trigger the `icChange` event after each keystroke."
|
@@ -742,11 +719,11 @@ export class SearchBar {
|
|
742
719
|
"mutable": false,
|
743
720
|
"complexType": {
|
744
721
|
"original": "string",
|
745
|
-
"resolved": "string
|
722
|
+
"resolved": "string",
|
746
723
|
"references": {}
|
747
724
|
},
|
748
725
|
"required": false,
|
749
|
-
"optional":
|
726
|
+
"optional": false,
|
750
727
|
"docs": {
|
751
728
|
"tags": [],
|
752
729
|
"text": "The text displayed when there are no options in the option list."
|
@@ -762,11 +739,11 @@ export class SearchBar {
|
|
762
739
|
"mutable": false,
|
763
740
|
"complexType": {
|
764
741
|
"original": "boolean",
|
765
|
-
"resolved": "boolean
|
742
|
+
"resolved": "boolean",
|
766
743
|
"references": {}
|
767
744
|
},
|
768
745
|
"required": false,
|
769
|
-
"optional":
|
746
|
+
"optional": false,
|
770
747
|
"docs": {
|
771
748
|
"tags": [],
|
772
749
|
"text": "If `true`, the search bar will be focused when component loaded."
|
@@ -782,11 +759,11 @@ export class SearchBar {
|
|
782
759
|
"mutable": false,
|
783
760
|
"complexType": {
|
784
761
|
"original": "boolean",
|
785
|
-
"resolved": "boolean
|
762
|
+
"resolved": "boolean",
|
786
763
|
"references": {}
|
787
764
|
},
|
788
765
|
"required": false,
|
789
|
-
"optional":
|
766
|
+
"optional": false,
|
790
767
|
"docs": {
|
791
768
|
"tags": [],
|
792
769
|
"text": "Specify whether the search bar fills the full width of the container.\nIf `true`, this overrides the --input-width CSS variable."
|
@@ -802,11 +779,11 @@ export class SearchBar {
|
|
802
779
|
"mutable": false,
|
803
780
|
"complexType": {
|
804
781
|
"original": "string",
|
805
|
-
"resolved": "string
|
782
|
+
"resolved": "string",
|
806
783
|
"references": {}
|
807
784
|
},
|
808
785
|
"required": false,
|
809
|
-
"optional":
|
786
|
+
"optional": false,
|
810
787
|
"docs": {
|
811
788
|
"tags": [],
|
812
789
|
"text": "The helper text that will be displayed for additional field guidance."
|
@@ -822,11 +799,11 @@ export class SearchBar {
|
|
822
799
|
"mutable": false,
|
823
800
|
"complexType": {
|
824
801
|
"original": "boolean",
|
825
|
-
"resolved": "boolean
|
802
|
+
"resolved": "boolean",
|
826
803
|
"references": {}
|
827
804
|
},
|
828
805
|
"required": false,
|
829
|
-
"optional":
|
806
|
+
"optional": false,
|
830
807
|
"docs": {
|
831
808
|
"tags": [],
|
832
809
|
"text": "If `true`, the label will be hidden and the required label value will be applied as an aria-label."
|
@@ -842,11 +819,11 @@ export class SearchBar {
|
|
842
819
|
"mutable": false,
|
843
820
|
"complexType": {
|
844
821
|
"original": "string",
|
845
|
-
"resolved": "string
|
822
|
+
"resolved": "string",
|
846
823
|
"references": {}
|
847
824
|
},
|
848
825
|
"required": false,
|
849
|
-
"optional":
|
826
|
+
"optional": false,
|
850
827
|
"docs": {
|
851
828
|
"tags": [],
|
852
829
|
"text": "The hint text for the hidden assistive description element."
|
@@ -881,11 +858,11 @@ export class SearchBar {
|
|
881
858
|
"mutable": false,
|
882
859
|
"complexType": {
|
883
860
|
"original": "string",
|
884
|
-
"resolved": "string
|
861
|
+
"resolved": "string",
|
885
862
|
"references": {}
|
886
863
|
},
|
887
864
|
"required": false,
|
888
|
-
"optional":
|
865
|
+
"optional": false,
|
889
866
|
"docs": {
|
890
867
|
"tags": [],
|
891
868
|
"text": "The custom name for the label field to correspond with the IcMenuOption type."
|
@@ -901,11 +878,11 @@ export class SearchBar {
|
|
901
878
|
"mutable": true,
|
902
879
|
"complexType": {
|
903
880
|
"original": "boolean",
|
904
|
-
"resolved": "boolean
|
881
|
+
"resolved": "boolean",
|
905
882
|
"references": {}
|
906
883
|
},
|
907
884
|
"required": false,
|
908
|
-
"optional":
|
885
|
+
"optional": false,
|
909
886
|
"docs": {
|
910
887
|
"tags": [],
|
911
888
|
"text": "Trigger loading state when fetching options asynchronously"
|
@@ -921,11 +898,11 @@ export class SearchBar {
|
|
921
898
|
"mutable": false,
|
922
899
|
"complexType": {
|
923
900
|
"original": "string",
|
924
|
-
"resolved": "string
|
901
|
+
"resolved": "string",
|
925
902
|
"references": {}
|
926
903
|
},
|
927
904
|
"required": false,
|
928
|
-
"optional":
|
905
|
+
"optional": false,
|
929
906
|
"docs": {
|
930
907
|
"tags": [],
|
931
908
|
"text": "Change the message displayed when external loading times out."
|
@@ -941,11 +918,11 @@ export class SearchBar {
|
|
941
918
|
"mutable": false,
|
942
919
|
"complexType": {
|
943
920
|
"original": "string",
|
944
|
-
"resolved": "string
|
921
|
+
"resolved": "string",
|
945
922
|
"references": {}
|
946
923
|
},
|
947
924
|
"required": false,
|
948
|
-
"optional":
|
925
|
+
"optional": false,
|
949
926
|
"docs": {
|
950
927
|
"tags": [],
|
951
928
|
"text": "Change the message displayed whilst the options are being loaded externally."
|
@@ -961,11 +938,11 @@ export class SearchBar {
|
|
961
938
|
"mutable": false,
|
962
939
|
"complexType": {
|
963
940
|
"original": "string",
|
964
|
-
"resolved": "string
|
941
|
+
"resolved": "string",
|
965
942
|
"references": {}
|
966
943
|
},
|
967
944
|
"required": false,
|
968
|
-
"optional":
|
945
|
+
"optional": false,
|
969
946
|
"docs": {
|
970
947
|
"tags": [],
|
971
948
|
"text": "The name of the control, which is submitted with the form data."
|
@@ -981,11 +958,11 @@ export class SearchBar {
|
|
981
958
|
"mutable": false,
|
982
959
|
"complexType": {
|
983
960
|
"original": "string",
|
984
|
-
"resolved": "string
|
961
|
+
"resolved": "string",
|
985
962
|
"references": {}
|
986
963
|
},
|
987
964
|
"required": false,
|
988
|
-
"optional":
|
965
|
+
"optional": false,
|
989
966
|
"docs": {
|
990
967
|
"tags": [],
|
991
968
|
"text": "The placeholder value to display."
|
@@ -1001,11 +978,11 @@ export class SearchBar {
|
|
1001
978
|
"mutable": false,
|
1002
979
|
"complexType": {
|
1003
980
|
"original": "boolean",
|
1004
|
-
"resolved": "boolean
|
981
|
+
"resolved": "boolean",
|
1005
982
|
"references": {}
|
1006
983
|
},
|
1007
984
|
"required": false,
|
1008
|
-
"optional":
|
985
|
+
"optional": false,
|
1009
986
|
"docs": {
|
1010
987
|
"tags": [],
|
1011
988
|
"text": "If `true`, the readonly state will be set."
|
@@ -1021,11 +998,11 @@ export class SearchBar {
|
|
1021
998
|
"mutable": false,
|
1022
999
|
"complexType": {
|
1023
1000
|
"original": "boolean",
|
1024
|
-
"resolved": "boolean
|
1001
|
+
"resolved": "boolean",
|
1025
1002
|
"references": {}
|
1026
1003
|
},
|
1027
1004
|
"required": false,
|
1028
|
-
"optional":
|
1005
|
+
"optional": false,
|
1029
1006
|
"docs": {
|
1030
1007
|
"tags": [],
|
1031
1008
|
"text": "If `true`, the search bar will require a value."
|
@@ -1041,7 +1018,7 @@ export class SearchBar {
|
|
1041
1018
|
"mutable": false,
|
1042
1019
|
"complexType": {
|
1043
1020
|
"original": "IcSearchBarSearchModes",
|
1044
|
-
"resolved": "\"navigation\" | \"query\"
|
1021
|
+
"resolved": "\"navigation\" | \"query\"",
|
1045
1022
|
"references": {
|
1046
1023
|
"IcSearchBarSearchModes": {
|
1047
1024
|
"location": "import",
|
@@ -1051,7 +1028,7 @@ export class SearchBar {
|
|
1051
1028
|
}
|
1052
1029
|
},
|
1053
1030
|
"required": false,
|
1054
|
-
"optional":
|
1031
|
+
"optional": false,
|
1055
1032
|
"docs": {
|
1056
1033
|
"tags": [],
|
1057
1034
|
"text": "Specify the mode search bar uses to search. `navigation` allows for quick lookups of a set of values, `query` allows for more general searches."
|
@@ -1067,7 +1044,7 @@ export class SearchBar {
|
|
1067
1044
|
"mutable": false,
|
1068
1045
|
"complexType": {
|
1069
1046
|
"original": "IcSizesNoLarge",
|
1070
|
-
"resolved": "\"medium\" | \"small\"
|
1047
|
+
"resolved": "\"medium\" | \"small\"",
|
1071
1048
|
"references": {
|
1072
1049
|
"IcSizesNoLarge": {
|
1073
1050
|
"location": "import",
|
@@ -1077,7 +1054,7 @@ export class SearchBar {
|
|
1077
1054
|
}
|
1078
1055
|
},
|
1079
1056
|
"required": false,
|
1080
|
-
"optional":
|
1057
|
+
"optional": false,
|
1081
1058
|
"docs": {
|
1082
1059
|
"tags": [],
|
1083
1060
|
"text": "The size of the search bar component."
|
@@ -1092,8 +1069,8 @@ export class SearchBar {
|
|
1092
1069
|
"type": "boolean",
|
1093
1070
|
"mutable": false,
|
1094
1071
|
"complexType": {
|
1095
|
-
"original": "boolean
|
1096
|
-
"resolved": "boolean
|
1072
|
+
"original": "boolean",
|
1073
|
+
"resolved": "boolean",
|
1097
1074
|
"references": {}
|
1098
1075
|
},
|
1099
1076
|
"required": false,
|
@@ -1113,7 +1090,7 @@ export class SearchBar {
|
|
1113
1090
|
"mutable": false,
|
1114
1091
|
"complexType": {
|
1115
1092
|
"original": "IcThemeMode",
|
1116
|
-
"resolved": "\"dark\" | \"inherit\" | \"light\"
|
1093
|
+
"resolved": "\"dark\" | \"inherit\" | \"light\"",
|
1117
1094
|
"references": {
|
1118
1095
|
"IcThemeMode": {
|
1119
1096
|
"location": "import",
|
@@ -1123,7 +1100,7 @@ export class SearchBar {
|
|
1123
1100
|
}
|
1124
1101
|
},
|
1125
1102
|
"required": false,
|
1126
|
-
"optional":
|
1103
|
+
"optional": false,
|
1127
1104
|
"docs": {
|
1128
1105
|
"tags": [],
|
1129
1106
|
"text": "Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component."
|
@@ -1158,11 +1135,11 @@ export class SearchBar {
|
|
1158
1135
|
"mutable": false,
|
1159
1136
|
"complexType": {
|
1160
1137
|
"original": "string",
|
1161
|
-
"resolved": "string
|
1138
|
+
"resolved": "string",
|
1162
1139
|
"references": {}
|
1163
1140
|
},
|
1164
1141
|
"required": false,
|
1165
|
-
"optional":
|
1142
|
+
"optional": false,
|
1166
1143
|
"docs": {
|
1167
1144
|
"tags": [],
|
1168
1145
|
"text": "The custom name for the value field to correspond with the IcMenuOption type."
|
@@ -1178,7 +1155,7 @@ export class SearchBar {
|
|
1178
1155
|
"mutable": false,
|
1179
1156
|
"complexType": {
|
1180
1157
|
"original": "IcMenuOption[]",
|
1181
|
-
"resolved": "IcMenuOption[]
|
1158
|
+
"resolved": "IcMenuOption[]",
|
1182
1159
|
"references": {
|
1183
1160
|
"IcMenuOption": {
|
1184
1161
|
"location": "import",
|
@@ -1188,7 +1165,7 @@ export class SearchBar {
|
|
1188
1165
|
}
|
1189
1166
|
},
|
1190
1167
|
"required": false,
|
1191
|
-
"optional":
|
1168
|
+
"optional": false,
|
1192
1169
|
"docs": {
|
1193
1170
|
"tags": [],
|
1194
1171
|
"text": "The suggested search options."
|
@@ -1202,11 +1179,11 @@ export class SearchBar {
|
|
1202
1179
|
"mutable": true,
|
1203
1180
|
"complexType": {
|
1204
1181
|
"original": "string",
|
1205
|
-
"resolved": "string
|
1182
|
+
"resolved": "string",
|
1206
1183
|
"references": {}
|
1207
1184
|
},
|
1208
1185
|
"required": false,
|
1209
|
-
"optional":
|
1186
|
+
"optional": false,
|
1210
1187
|
"docs": {
|
1211
1188
|
"tags": [],
|
1212
1189
|
"text": "The value of the search input."
|