@ukic/canary-web-components 3.0.0-canary.16 → 3.0.0-canary.18
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 +19 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-d01564f7.js → helpers-6f33d131.js} +31 -33
- package/dist/cjs/helpers-6f33d131.js.map +1 -0
- package/dist/cjs/{helpers-199b92d5.js → helpers-f4e7322b.js} +36 -73
- package/dist/cjs/helpers-f4e7322b.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-back-to-top.cjs.entry.js.map +1 -1
- 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-horizontal.cjs.entry.js +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_3.cjs.entry.js +38 -37
- package/dist/cjs/ic-checkbox_3.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-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +15 -19
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +1 -1
- 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-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-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +4 -4
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +5 -5
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +9 -9
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- 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-group.cjs.entry.js.map +1 -1
- 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-button.cjs.entry.js.map +1 -1
- 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-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +83 -83
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- 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-group.cjs.entry.js.map +1 -1
- 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-section-container.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-skeleton.cjs.entry.js.map +1 -1
- 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-stepper.cjs.entry.js.map +1 -1
- 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-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab.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-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +4 -4
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- 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-tree-item.cjs.entry.js +8 -3
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js +7 -6
- package/dist/cjs/ic-tree-view.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-data-table/ic-data-table.js +14 -18
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +8 -7
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +23 -2
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.js +6 -5
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js +13 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js.map +1 -1
- package/dist/collection/utils/constants.js +40 -1
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/helpers.js +177 -135
- 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/helpers2.js +30 -32
- package/dist/components/helpers2.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-back-to-top.js.map +1 -1
- 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-checkbox2.js +37 -36
- package/dist/components/ic-checkbox2.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-classification-banner.js.map +1 -1
- package/dist/components/ic-data-list.js +2 -2
- package/dist/components/ic-data-list.js.map +1 -1
- package/dist/components/ic-data-row.js +3 -3
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-data-table.js +14 -18
- package/dist/components/ic-data-table.js.map +1 -1
- 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-state2.js +2 -2
- package/dist/components/ic-empty-state2.js.map +1 -1
- 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-link.js.map +1 -1
- package/dist/components/ic-footer.js +4 -4
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +5 -5
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +6 -6
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +4 -4
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +5 -5
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +4 -4
- package/dist/components/ic-input-validation2.js.map +1 -1
- 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-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu-group.js.map +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-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +2 -2
- package/dist/components/ic-navigation-button.js.map +1 -1
- 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-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination2.js +4 -4
- package/dist/components/ic-pagination2.js.map +1 -1
- 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-group.js.map +1 -1
- 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-section-container2.js.map +1 -1
- package/dist/components/ic-select2.js +47 -50
- package/dist/components/ic-select2.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-skeleton.js.map +1 -1
- 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-stepper.js.map +1 -1
- 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-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +2 -2
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +32 -29
- package/dist/components/ic-text-field2.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-region.js.map +1 -1
- package/dist/components/ic-toast.js +4 -4
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- 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-tree-item.js +8 -2
- package/dist/components/ic-tree-item.js.map +1 -1
- package/dist/components/ic-tree-view.js +6 -5
- package/dist/components/ic-tree-view.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-09f54ca3.entry.js +2 -0
- package/dist/core/p-09f54ca3.entry.js.map +1 -0
- package/dist/core/{p-f5e9c8c8.entry.js → p-0a0b25c5.entry.js} +2 -2
- package/dist/core/{p-a2fcea60.entry.js → p-0e3a62cc.entry.js} +2 -2
- package/dist/core/p-10703715.entry.js +2 -0
- package/dist/core/p-10703715.entry.js.map +1 -0
- package/dist/core/{p-643a94c2.entry.js → p-1aed572a.entry.js} +2 -2
- package/dist/core/{p-643a94c2.entry.js.map → p-1aed572a.entry.js.map} +1 -1
- package/dist/core/{p-37df68fe.entry.js → p-1be17f22.entry.js} +2 -2
- package/dist/core/{p-37df68fe.entry.js.map → p-1be17f22.entry.js.map} +1 -1
- package/dist/core/p-1fd22368.entry.js +2 -0
- package/dist/core/{p-ca5d3a21.entry.js.map → p-1fd22368.entry.js.map} +1 -1
- package/dist/core/{p-214a48c6.entry.js → p-266686d0.entry.js} +2 -2
- package/dist/core/p-266686d0.entry.js.map +1 -0
- package/dist/core/{p-2d9c36a6.entry.js → p-33f4abc9.entry.js} +2 -2
- package/dist/core/p-33f4abc9.entry.js.map +1 -0
- package/dist/core/p-3800cda8.entry.js +2 -0
- package/dist/core/p-3800cda8.entry.js.map +1 -0
- package/dist/core/{p-336be00c.entry.js → p-45f32fea.entry.js} +2 -2
- package/dist/core/p-45f32fea.entry.js.map +1 -0
- package/dist/core/{p-fa02a267.entry.js → p-4b6818d9.entry.js} +2 -2
- package/dist/core/{p-fa02a267.entry.js.map → p-4b6818d9.entry.js.map} +1 -1
- package/dist/core/{p-3ee70c45.entry.js → p-5744b8b3.entry.js} +2 -2
- package/dist/core/{p-3ee70c45.entry.js.map → p-5744b8b3.entry.js.map} +1 -1
- package/dist/core/{p-f2beca5c.entry.js → p-59bc9fe7.entry.js} +2 -2
- package/dist/core/{p-f2beca5c.entry.js.map → p-59bc9fe7.entry.js.map} +1 -1
- package/dist/core/{p-858dd362.entry.js → p-5c363e21.entry.js} +2 -2
- package/dist/core/p-671acf27.entry.js +2 -0
- package/dist/core/p-671acf27.entry.js.map +1 -0
- package/dist/core/p-6724039c.entry.js +2 -0
- package/dist/core/p-6724039c.entry.js.map +1 -0
- package/dist/core/{p-65ddc948.entry.js → p-6e0f4278.entry.js} +2 -2
- package/dist/core/p-6e0f4278.entry.js.map +1 -0
- package/dist/core/{p-8856dff4.entry.js → p-72c117b6.entry.js} +2 -2
- package/dist/core/{p-8856dff4.entry.js.map → p-72c117b6.entry.js.map} +1 -1
- package/dist/core/{p-91b8ee39.entry.js → p-7c096c5e.entry.js} +2 -2
- package/dist/core/{p-91b8ee39.entry.js.map → p-7c096c5e.entry.js.map} +1 -1
- package/dist/core/p-824cbf95.entry.js +2 -0
- package/dist/core/p-824cbf95.entry.js.map +1 -0
- package/dist/core/p-84daed4d.entry.js +2 -0
- package/dist/core/p-84daed4d.entry.js.map +1 -0
- package/dist/core/p-8ae0fd6f.entry.js +2 -0
- package/dist/core/p-8ae0fd6f.entry.js.map +1 -0
- package/dist/core/p-8b5022bc.entry.js +2 -0
- package/dist/core/p-8b5022bc.entry.js.map +1 -0
- package/dist/core/p-92a969b3.entry.js +2 -0
- package/dist/core/p-92a969b3.entry.js.map +1 -0
- package/dist/core/{p-a12dd148.entry.js → p-93e154e0.entry.js} +2 -2
- package/dist/core/{p-a12dd148.entry.js.map → p-93e154e0.entry.js.map} +1 -1
- package/dist/core/p-954959d4.entry.js +2 -0
- package/dist/core/p-954959d4.entry.js.map +1 -0
- package/dist/core/{p-7b13ccd0.entry.js → p-95868542.entry.js} +2 -2
- package/dist/core/{p-7b13ccd0.entry.js.map → p-95868542.entry.js.map} +1 -1
- package/dist/core/p-9882c572.entry.js +2 -0
- package/dist/core/p-9882c572.entry.js.map +1 -0
- package/dist/core/p-9918c411.entry.js +2 -0
- package/dist/core/p-9918c411.entry.js.map +1 -0
- package/dist/core/{p-110486f0.entry.js → p-9ca147f3.entry.js} +2 -2
- package/dist/core/{p-110486f0.entry.js.map → p-9ca147f3.entry.js.map} +1 -1
- package/dist/core/{p-5ec11974.entry.js → p-a054bb1b.entry.js} +2 -2
- package/dist/core/{p-5ec11974.entry.js.map → p-a054bb1b.entry.js.map} +1 -1
- package/dist/core/p-aa83f828.entry.js +2 -0
- package/dist/core/p-aa83f828.entry.js.map +1 -0
- package/dist/core/{p-9bf0ce9e.entry.js → p-ad390076.entry.js} +2 -2
- package/dist/core/{p-9bf0ce9e.entry.js.map → p-ad390076.entry.js.map} +1 -1
- package/dist/core/p-ad45f8f8.entry.js +2 -0
- package/dist/core/p-ad45f8f8.entry.js.map +1 -0
- package/dist/core/{p-bb9142fe.entry.js → p-af1d6e41.entry.js} +2 -2
- package/dist/core/{p-cd0dbcea.entry.js → p-b7d117e8.entry.js} +2 -2
- package/dist/core/{p-cd0dbcea.entry.js.map → p-b7d117e8.entry.js.map} +1 -1
- package/dist/core/{p-1b31a720.entry.js → p-b92e5fb3.entry.js} +2 -2
- package/dist/core/{p-1b31a720.entry.js.map → p-b92e5fb3.entry.js.map} +1 -1
- package/dist/core/{p-701696aa.entry.js → p-b9459ba2.entry.js} +2 -2
- package/dist/core/{p-701696aa.entry.js.map → p-b9459ba2.entry.js.map} +1 -1
- package/dist/core/p-b947e4ff.entry.js +2 -0
- package/dist/core/p-b947e4ff.entry.js.map +1 -0
- package/dist/core/{p-50f4d151.entry.js → p-bc2ca778.entry.js} +2 -2
- package/dist/core/{p-50f4d151.entry.js.map → p-bc2ca778.entry.js.map} +1 -1
- package/dist/core/{p-19c4cc6c.entry.js → p-bff6fef6.entry.js} +2 -2
- package/dist/core/{p-19c4cc6c.entry.js.map → p-bff6fef6.entry.js.map} +1 -1
- package/dist/core/p-c472cb32.entry.js +2 -0
- package/dist/core/p-c472cb32.entry.js.map +1 -0
- package/dist/core/p-cd770df5.entry.js +2 -0
- package/dist/core/{p-48465394.entry.js.map → p-cd770df5.entry.js.map} +1 -1
- package/dist/core/p-d328f6fc.entry.js +2 -0
- package/dist/core/p-d328f6fc.entry.js.map +1 -0
- package/dist/core/p-d3d48548.entry.js +2 -0
- package/dist/core/p-d3d48548.entry.js.map +1 -0
- package/dist/core/{p-071f4748.entry.js → p-df88ff5b.entry.js} +2 -2
- package/dist/core/{p-071f4748.entry.js.map → p-df88ff5b.entry.js.map} +1 -1
- package/dist/core/p-e38b20bf.entry.js +2 -0
- package/dist/core/p-e38b20bf.entry.js.map +1 -0
- package/dist/core/{p-ed416362.entry.js → p-e64e27be.entry.js} +2 -2
- package/dist/core/{p-ed416362.entry.js.map → p-e64e27be.entry.js.map} +1 -1
- package/dist/core/{p-8402fcf7.entry.js → p-e7c00131.entry.js} +2 -2
- package/dist/core/p-e7c00131.entry.js.map +1 -0
- package/dist/core/{p-5bd43e19.entry.js → p-e9683f52.entry.js} +2 -2
- package/dist/core/{p-5bd43e19.entry.js.map → p-e9683f52.entry.js.map} +1 -1
- package/dist/core/{p-b88ae211.entry.js → p-ead9900a.entry.js} +2 -2
- package/dist/core/{p-b88ae211.entry.js.map → p-ead9900a.entry.js.map} +1 -1
- package/dist/core/p-eb74cab5.entry.js +2 -0
- package/dist/core/p-eb74cab5.entry.js.map +1 -0
- package/dist/core/{p-944ea274.entry.js → p-eb88b348.entry.js} +2 -2
- package/dist/core/{p-944ea274.entry.js.map → p-eb88b348.entry.js.map} +1 -1
- package/dist/core/p-eca2fea1.js +2 -0
- package/dist/core/p-eca2fea1.js.map +1 -0
- package/dist/core/p-ed542433.js +2 -0
- package/dist/core/p-ed542433.js.map +1 -0
- package/dist/core/p-edeb3823.entry.js +2 -0
- package/dist/core/p-edeb3823.entry.js.map +1 -0
- package/dist/core/{p-91d5efc0.entry.js → p-ef07630d.entry.js} +2 -2
- package/dist/core/{p-91d5efc0.entry.js.map → p-ef07630d.entry.js.map} +1 -1
- package/dist/core/p-f6141c29.entry.js +2 -0
- package/dist/core/p-f6141c29.entry.js.map +1 -0
- package/dist/core/{p-b006976c.entry.js → p-f6eaec92.entry.js} +2 -2
- package/dist/core/p-f6eaec92.entry.js.map +1 -0
- package/dist/core/{p-c3f26b24.entry.js → p-f9a16fa8.entry.js} +2 -2
- package/dist/core/{p-c3f26b24.entry.js.map → p-f9a16fa8.entry.js.map} +1 -1
- package/dist/core/{p-2c7e9e71.entry.js → p-fb1fce87.entry.js} +2 -2
- package/dist/core/{p-2c7e9e71.entry.js.map → p-fb1fce87.entry.js.map} +1 -1
- package/dist/core/{p-520dce89.entry.js → p-fb8214a9.entry.js} +2 -2
- package/dist/core/p-fb8214a9.entry.js.map +1 -0
- package/dist/core/{p-6cfd6b56.entry.js → p-fb8d27fa.entry.js} +2 -2
- package/dist/core/{p-6cfd6b56.entry.js.map → p-fb8d27fa.entry.js.map} +1 -1
- package/dist/core/{p-123bd8ce.entry.js → p-fbcc2a11.entry.js} +2 -2
- package/dist/core/p-fbcc2a11.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-ddc2008a.js → helpers-0bb68835.js} +31 -33
- package/dist/esm/helpers-0bb68835.js.map +1 -0
- package/dist/esm/{helpers-9fe45194.js → helpers-fc03923c.js} +37 -74
- package/dist/esm/helpers-fc03923c.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-back-to-top.entry.js.map +1 -1
- 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-horizontal.entry.js +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_3.entry.js +38 -37
- package/dist/esm/ic-checkbox_3.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-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +3 -3
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
- package/dist/esm/ic-data-table.entry.js +15 -19
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +1 -1
- package/dist/esm/ic-date-picker.entry.js +1 -1
- 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-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-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +4 -4
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +5 -5
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +9 -9
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +8 -8
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- 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-group.entry.js.map +1 -1
- 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-button.entry.js.map +1 -1
- 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-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +7 -7
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +83 -83
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- 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-group.entry.js.map +1 -1
- 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-section-container.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-skeleton.entry.js.map +1 -1
- 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-stepper.entry.js.map +1 -1
- 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-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -3
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +3 -3
- package/dist/esm/ic-tab.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-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +4 -4
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +3 -3
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- 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-tree-item.entry.js +8 -3
- package/dist/esm/ic-tree-item.entry.js.map +1 -1
- package/dist/esm/ic-tree-view.entry.js +7 -6
- package/dist/esm/ic-tree-view.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-data-table/ic-data-table.d.ts +0 -1
- package/dist/types/components/ic-data-table/story-data.d.ts +4 -4
- package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +7 -0
- package/dist/types/components.d.ts +5 -0
- package/dist/types/utils/constants.d.ts +1 -0
- package/dist/types/utils/helpers.d.ts +72 -46
- package/dist/types/utils/types.d.ts +32 -7
- package/hydrate/index.js +872 -895
- package/hydrate/index.mjs +872 -895
- package/package.json +4 -4
- package/dist/cjs/helpers-199b92d5.js.map +0 -1
- package/dist/cjs/helpers-d01564f7.js.map +0 -1
- package/dist/core/p-09e8b002.entry.js +0 -2
- package/dist/core/p-09e8b002.entry.js.map +0 -1
- package/dist/core/p-123bd8ce.entry.js.map +0 -1
- package/dist/core/p-12d4803e.entry.js +0 -2
- package/dist/core/p-12d4803e.entry.js.map +0 -1
- package/dist/core/p-19ecd2a6.entry.js +0 -2
- package/dist/core/p-19ecd2a6.entry.js.map +0 -1
- package/dist/core/p-1bfead5b.entry.js +0 -2
- package/dist/core/p-1bfead5b.entry.js.map +0 -1
- package/dist/core/p-214a48c6.entry.js.map +0 -1
- package/dist/core/p-236dc1a6.entry.js +0 -2
- package/dist/core/p-236dc1a6.entry.js.map +0 -1
- package/dist/core/p-2d9c36a6.entry.js.map +0 -1
- package/dist/core/p-336be00c.entry.js.map +0 -1
- package/dist/core/p-38f612b0.entry.js +0 -2
- package/dist/core/p-38f612b0.entry.js.map +0 -1
- package/dist/core/p-3cf6ca89.entry.js +0 -2
- package/dist/core/p-3cf6ca89.entry.js.map +0 -1
- package/dist/core/p-46f64dc5.entry.js +0 -2
- package/dist/core/p-46f64dc5.entry.js.map +0 -1
- package/dist/core/p-48465394.entry.js +0 -2
- package/dist/core/p-520dce89.entry.js.map +0 -1
- package/dist/core/p-65ddc948.entry.js.map +0 -1
- package/dist/core/p-69f6db9f.entry.js +0 -2
- package/dist/core/p-69f6db9f.entry.js.map +0 -1
- package/dist/core/p-7d054704.js +0 -2
- package/dist/core/p-7d054704.js.map +0 -1
- package/dist/core/p-8402fcf7.entry.js.map +0 -1
- package/dist/core/p-87c92ab1.entry.js +0 -2
- package/dist/core/p-87c92ab1.entry.js.map +0 -1
- package/dist/core/p-951669ca.entry.js +0 -2
- package/dist/core/p-951669ca.entry.js.map +0 -1
- package/dist/core/p-9e5e6070.entry.js +0 -2
- package/dist/core/p-9e5e6070.entry.js.map +0 -1
- package/dist/core/p-a6031c41.entry.js +0 -2
- package/dist/core/p-a6031c41.entry.js.map +0 -1
- package/dist/core/p-b006976c.entry.js.map +0 -1
- package/dist/core/p-b17f6b1d.entry.js +0 -2
- package/dist/core/p-b17f6b1d.entry.js.map +0 -1
- package/dist/core/p-b334a20d.entry.js +0 -2
- package/dist/core/p-b334a20d.entry.js.map +0 -1
- package/dist/core/p-b603b9ef.entry.js +0 -2
- package/dist/core/p-b603b9ef.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-b9e73154.js +0 -2
- package/dist/core/p-b9e73154.js.map +0 -1
- package/dist/core/p-c1dbb35b.entry.js +0 -2
- package/dist/core/p-c1dbb35b.entry.js.map +0 -1
- package/dist/core/p-c1f653d4.entry.js +0 -2
- package/dist/core/p-c1f653d4.entry.js.map +0 -1
- package/dist/core/p-ca5d3a21.entry.js +0 -2
- package/dist/core/p-cda2a461.entry.js +0 -2
- package/dist/core/p-cda2a461.entry.js.map +0 -1
- package/dist/core/p-f3bb5006.entry.js +0 -2
- package/dist/core/p-f3bb5006.entry.js.map +0 -1
- package/dist/core/p-fa18f9c6.entry.js +0 -2
- package/dist/core/p-fa18f9c6.entry.js.map +0 -1
- package/dist/core/p-fb01a001.entry.js +0 -2
- package/dist/core/p-fb01a001.entry.js.map +0 -1
- package/dist/esm/helpers-9fe45194.js.map +0 -1
- package/dist/esm/helpers-ddc2008a.js.map +0 -1
- /package/dist/core/{p-f5e9c8c8.entry.js.map → p-0a0b25c5.entry.js.map} +0 -0
- /package/dist/core/{p-a2fcea60.entry.js.map → p-0e3a62cc.entry.js.map} +0 -0
- /package/dist/core/{p-858dd362.entry.js.map → p-5c363e21.entry.js.map} +0 -0
- /package/dist/core/{p-bb9142fe.entry.js.map → p-af1d6e41.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import {
|
2
|
+
import { L as getFilteredMenuOptions, K as getLabelFromValue, Y as handleHiddenFormButtonClick, r as removeDisabledFalse, N as debounceEvent, o as onComponentRequiredPropUndefined, v as getInputDescribedByText, t as renderHiddenInput } from './helpers.js';
|
3
3
|
import { d as defineCustomElement$9 } from './ic-button2.js';
|
4
4
|
import { d as defineCustomElement$8 } from './ic-input-component-container2.js';
|
5
5
|
import { d as defineCustomElement$7 } from './ic-input-container2.js';
|
@@ -39,7 +39,6 @@ const SearchBar = /*@__PURE__*/ proxyCustomElement(class SearchBar extends HTMLE
|
|
39
39
|
this.icSearchBarBlur = createEvent(this, "icSearchBarBlur", 7);
|
40
40
|
this.icSearchBarFocus = createEvent(this, "icSearchBarFocus", 7);
|
41
41
|
this.icKeydown = createEvent(this, "icKeydown", 7);
|
42
|
-
this.assistiveHintEl = null;
|
43
42
|
this.hasTimedOut = false;
|
44
43
|
this.inputId = `ic-search-bar-input-${inputIds++}`;
|
45
44
|
this.menuCloseFromMenuChangeEvent = false;
|
@@ -48,6 +47,7 @@ const SearchBar = /*@__PURE__*/ proxyCustomElement(class SearchBar extends HTMLE
|
|
48
47
|
this.preventSubmit = false;
|
49
48
|
this.prevNoOption = false;
|
50
49
|
this.retryButtonClick = false;
|
50
|
+
this.retryViaKeyPress = false;
|
51
51
|
this.truncateValue = false;
|
52
52
|
this.clearButtonFocused = false;
|
53
53
|
this.open = false;
|
@@ -191,46 +191,57 @@ const SearchBar = /*@__PURE__*/ proxyCustomElement(class SearchBar extends HTMLE
|
|
191
191
|
this.preventSubmit = true;
|
192
192
|
}
|
193
193
|
};
|
194
|
-
this.onInput = (
|
195
|
-
this.value =
|
194
|
+
this.onInput = ({ target }) => {
|
195
|
+
this.value = target.value;
|
196
196
|
this.icInput.emit({ value: this.value });
|
197
|
-
const noOptions = [
|
198
|
-
{ [this.labelField]: this.emptyOptionListText, [this.valueField]: "" },
|
199
|
-
];
|
200
197
|
if (this.options.length > 0) {
|
201
198
|
this.setMenuChange(true);
|
202
199
|
this.preLoad = false;
|
203
200
|
if (this.disableAutoFiltering === false) {
|
204
201
|
const rawFilteredOptions = getFilteredMenuOptions(this.options, false, this.value, "anywhere", this.labelField);
|
205
202
|
this.filteredOptions =
|
206
|
-
rawFilteredOptions.length > 0
|
203
|
+
rawFilteredOptions.length > 0
|
204
|
+
? rawFilteredOptions
|
205
|
+
: [
|
206
|
+
{
|
207
|
+
[this.labelField]: this.emptyOptionListText,
|
208
|
+
[this.valueField]: "",
|
209
|
+
},
|
210
|
+
];
|
207
211
|
}
|
208
212
|
}
|
209
|
-
if (!this.showClearButton)
|
210
|
-
this.
|
211
|
-
}
|
213
|
+
if (!this.showClearButton)
|
214
|
+
this.showClearButton = true;
|
212
215
|
this.debounceAriaLiveUpdate();
|
213
216
|
};
|
214
|
-
this.onInputBlur = (
|
215
|
-
|
216
|
-
|
217
|
-
|
217
|
+
this.onInputBlur = ({ target, relatedTarget }) => {
|
218
|
+
this.icSearchBarBlur.emit({
|
219
|
+
value: target.value,
|
220
|
+
relatedTarget,
|
221
|
+
});
|
218
222
|
};
|
219
|
-
this.onInputFocus = (
|
220
|
-
|
221
|
-
this.
|
222
|
-
this.handleShowClearButton(true);
|
223
|
+
this.onInputFocus = ({ target }) => {
|
224
|
+
this.icSearchBarFocus.emit({ value: target.value });
|
225
|
+
this.showClearButton = true;
|
223
226
|
};
|
224
|
-
this.handleClearBlur = (
|
225
|
-
|
226
|
-
this.icClearBlur.emit({ relatedTarget: nextFocus });
|
227
|
+
this.handleClearBlur = ({ relatedTarget }) => {
|
228
|
+
this.icClearBlur.emit({ relatedTarget });
|
227
229
|
this.clearButtonFocused = false;
|
228
230
|
};
|
229
|
-
this.handleSubmitSearchBlur = (
|
230
|
-
|
231
|
-
this.icSubmitSearchBlur.emit({ relatedTarget: nextFocus });
|
231
|
+
this.handleSubmitSearchBlur = ({ relatedTarget }) => {
|
232
|
+
this.icSubmitSearchBlur.emit({ relatedTarget });
|
232
233
|
this.searchSubmitFocused = false;
|
233
234
|
};
|
235
|
+
this.setInputValue = (newValue) => {
|
236
|
+
if (this.inputEl) {
|
237
|
+
const label = getLabelFromValue(newValue, this.options, this.valueField, this.labelField);
|
238
|
+
if (label)
|
239
|
+
this.inputEl.value = label;
|
240
|
+
else if (this.inputEl.value !== newValue) {
|
241
|
+
this.inputEl.value = newValue;
|
242
|
+
}
|
243
|
+
}
|
244
|
+
};
|
234
245
|
this.handleMouseDown = (ev) => {
|
235
246
|
ev.preventDefault();
|
236
247
|
};
|
@@ -238,7 +249,8 @@ const SearchBar = /*@__PURE__*/ proxyCustomElement(class SearchBar extends HTMLE
|
|
238
249
|
this.searchSubmitFocused = true;
|
239
250
|
};
|
240
251
|
this.handleSubmitSearch = () => {
|
241
|
-
|
252
|
+
if (this.highlightedValue)
|
253
|
+
this.value = this.highlightedValue;
|
242
254
|
this.highlightedValue = undefined;
|
243
255
|
this.icSubmitSearch.emit({ value: this.value });
|
244
256
|
const form = this.el.closest("FORM");
|
@@ -289,15 +301,10 @@ const SearchBar = /*@__PURE__*/ proxyCustomElement(class SearchBar extends HTMLE
|
|
289
301
|
this.icOptionSelect.emit({ value: this.value });
|
290
302
|
};
|
291
303
|
this.handleMenuOptionHighlight = (ev) => {
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
this.ariaActiveDescendant = ev.detail.optionId;
|
297
|
-
}
|
298
|
-
else {
|
299
|
-
this.ariaActiveDescendant = "";
|
300
|
-
}
|
304
|
+
const { optionId } = ev.detail;
|
305
|
+
if (optionId)
|
306
|
+
this.highlightedValue = optionId.replace(`${this.menuId}-`, "");
|
307
|
+
this.ariaActiveDescendant = optionId || "";
|
301
308
|
};
|
302
309
|
this.handleMenuChange = (ev) => {
|
303
310
|
this.setMenuChange(ev.detail.open);
|
@@ -315,15 +322,14 @@ const SearchBar = /*@__PURE__*/ proxyCustomElement(class SearchBar extends HTMLE
|
|
315
322
|
if (this.options && this.value && !this.menuCloseFromMenuChangeEvent) {
|
316
323
|
this.setMenuChange(true);
|
317
324
|
}
|
318
|
-
this.
|
325
|
+
this.truncateValue = false;
|
319
326
|
this.icSearchBarFocus.emit();
|
320
327
|
};
|
321
|
-
this.handleHostBlur = (
|
328
|
+
this.handleHostBlur = ({ relatedTarget }) => {
|
322
329
|
var _a;
|
323
|
-
const nextFocus = ev.relatedTarget;
|
324
330
|
if (this.open &&
|
325
331
|
this.options &&
|
326
|
-
|
332
|
+
relatedTarget !== this.menu &&
|
327
333
|
!this.retryViaKeyPress &&
|
328
334
|
!this.retryButtonClick) {
|
329
335
|
this.setMenuChange(false);
|
@@ -331,35 +337,30 @@ const SearchBar = /*@__PURE__*/ proxyCustomElement(class SearchBar extends HTMLE
|
|
331
337
|
if (this.retryButtonClick || this.retryViaKeyPress) {
|
332
338
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
333
339
|
}
|
334
|
-
this.
|
340
|
+
this.showClearButton = false;
|
335
341
|
this.menuCloseFromMenuChangeEvent = false;
|
336
|
-
this.
|
337
|
-
this.icSearchBarBlur.emit({
|
342
|
+
this.truncateValue = true;
|
343
|
+
this.icSearchBarBlur.emit({
|
344
|
+
relatedTarget,
|
345
|
+
value: this.value,
|
346
|
+
});
|
338
347
|
this.retryViaKeyPress = false;
|
339
348
|
this.retryButtonClick = false;
|
340
349
|
};
|
341
|
-
this.handleShowClearButton = (visible) => {
|
342
|
-
this.showClearButton = visible;
|
343
|
-
};
|
344
350
|
this.handleFocusClearButton = () => {
|
345
351
|
this.clearButtonFocused = true;
|
346
352
|
};
|
347
|
-
this.handleTruncateValue = (truncate) => {
|
348
|
-
this.truncateValue = truncate;
|
349
|
-
};
|
350
353
|
this.renderAssistiveHintEl = () => {
|
351
|
-
var _a;
|
354
|
+
var _a, _b;
|
352
355
|
const input = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`#${this.inputId}`);
|
353
356
|
if (input &&
|
354
357
|
Object.keys(input).length > 0 &&
|
355
358
|
this.hasOptionsOrFilterDisabled()) {
|
356
359
|
this.assistiveHintEl = document.createElement("span");
|
357
|
-
this.assistiveHintEl.innerText = this.assistiveHintText
|
360
|
+
this.assistiveHintEl.innerText = this.assistiveHintText;
|
358
361
|
this.assistiveHintEl.id = `${this.inputId}-assistive-hint`;
|
359
362
|
this.assistiveHintEl.style.display = "none";
|
360
|
-
|
361
|
-
input.after(this.assistiveHintEl);
|
362
|
-
}
|
363
|
+
(_b = input.after) === null || _b === void 0 ? void 0 : _b.call(input, this.assistiveHintEl);
|
363
364
|
}
|
364
365
|
};
|
365
366
|
this.updateSearchResultAriaLive = () => {
|
@@ -375,41 +376,22 @@ const SearchBar = /*@__PURE__*/ proxyCustomElement(class SearchBar extends HTMLE
|
|
375
376
|
this.filteredOptions.length > 0 &&
|
376
377
|
this.open &&
|
377
378
|
!this.filteredOptions[0].loading) {
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
else {
|
382
|
-
searchResultsStatusEl.innerText = `${this.filteredOptions.length} result${this.filteredOptions.length > 1 ? "s" : ""} available`;
|
383
|
-
}
|
379
|
+
searchResultsStatusEl.innerText = this.hadNoOptions()
|
380
|
+
? this.emptyOptionListText
|
381
|
+
: `${this.filteredOptions.length} result${this.filteredOptions.length > 1 ? "s" : ""} available`;
|
384
382
|
}
|
385
383
|
}
|
386
384
|
};
|
387
|
-
this.hasOptionsOrFilterDisabled = () => this.options.length > 0 ||
|
385
|
+
this.hasOptionsOrFilterDisabled = () => this.options.length > 0 || this.disableAutoFiltering;
|
388
386
|
this.hadNoOptions = () => this.filteredOptions.length === 1 &&
|
389
387
|
this.filteredOptions[0][this.labelField] === this.emptyOptionListText &&
|
390
388
|
this.searchMode === "navigation";
|
391
|
-
this.isSubmitDisabled = () =>
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
this.hadNoOptions() ||
|
398
|
-
this.hasTimedOut ||
|
399
|
-
!!this.loading);
|
400
|
-
};
|
401
|
-
this.highlightFirstOptionAfterNoResults = () => {
|
402
|
-
if (this.prevNoOption && this.menu && !this.hasTimedOut) {
|
403
|
-
this.menu.handleSetFirstOption();
|
404
|
-
this.prevNoOption = false;
|
405
|
-
}
|
406
|
-
const prevNoOptionsList = this.filteredOptions.find((filteredOption) => filteredOption[this.labelField] === this.emptyOptionListText ||
|
407
|
-
filteredOption[this.labelField] === this.loadingErrorLabel ||
|
408
|
-
filteredOption[this.labelField] === this.loadingLabel);
|
409
|
-
if (prevNoOptionsList) {
|
410
|
-
this.prevNoOption = true;
|
411
|
-
}
|
412
|
-
};
|
389
|
+
this.isSubmitDisabled = () => !this.value ||
|
390
|
+
this.value.length < this.charactersUntilSuggestion ||
|
391
|
+
this.disabled ||
|
392
|
+
this.hadNoOptions() ||
|
393
|
+
this.hasTimedOut ||
|
394
|
+
this.loading;
|
413
395
|
}
|
414
396
|
watchDisabledHandler() {
|
415
397
|
removeDisabledFalse(this.disabled, this.el);
|
@@ -438,40 +420,32 @@ const SearchBar = /*@__PURE__*/ proxyCustomElement(class SearchBar extends HTMLE
|
|
438
420
|
return;
|
439
421
|
}
|
440
422
|
this.setMenuChange(true);
|
441
|
-
!this.preLoad
|
442
|
-
|
423
|
+
if (!this.preLoad) {
|
424
|
+
this.filteredOptions = [
|
443
425
|
{
|
444
426
|
[this.labelField]: this.emptyOptionListText,
|
445
427
|
[this.valueField]: "",
|
446
428
|
},
|
447
|
-
]
|
429
|
+
];
|
430
|
+
}
|
448
431
|
this.preLoad = true;
|
449
432
|
}
|
450
433
|
}
|
451
434
|
this.debounceAriaLiveUpdate();
|
452
435
|
}
|
453
436
|
watchValueHandler(newValue) {
|
454
|
-
|
455
|
-
this.options &&
|
456
|
-
!!getLabelFromValue(newValue, this.options, this.valueField, this.labelField)) {
|
457
|
-
this.inputEl.value =
|
458
|
-
getLabelFromValue(newValue, this.options, this.valueField, this.labelField) || "";
|
459
|
-
}
|
460
|
-
else if (this.inputEl && this.inputEl.value !== newValue) {
|
461
|
-
this.inputEl.value = newValue;
|
462
|
-
}
|
437
|
+
this.setInputValue(newValue);
|
463
438
|
this.icChange.emit({ value: newValue });
|
464
439
|
}
|
465
440
|
connectedCallback() {
|
466
441
|
this.debounceChanged();
|
467
442
|
}
|
468
443
|
disconnectedCallback() {
|
469
|
-
|
470
|
-
|
471
|
-
}
|
444
|
+
var _a;
|
445
|
+
(_a = this.assistiveHintEl) === null || _a === void 0 ? void 0 : _a.remove();
|
472
446
|
}
|
473
447
|
componentWillLoad() {
|
474
|
-
this.
|
448
|
+
this.setInputValue(this.value);
|
475
449
|
removeDisabledFalse(this.disabled, this.el);
|
476
450
|
}
|
477
451
|
componentDidLoad() {
|
@@ -487,7 +461,15 @@ const SearchBar = /*@__PURE__*/ proxyCustomElement(class SearchBar extends HTMLE
|
|
487
461
|
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Search Bar");
|
488
462
|
}
|
489
463
|
componentWillRender() {
|
490
|
-
this.
|
464
|
+
if (this.prevNoOption && this.menu && !this.hasTimedOut) {
|
465
|
+
this.menu.handleSetFirstOption();
|
466
|
+
this.prevNoOption = false;
|
467
|
+
}
|
468
|
+
if (this.filteredOptions.find((filteredOption) => filteredOption[this.labelField] === this.emptyOptionListText ||
|
469
|
+
filteredOption[this.labelField] === this.loadingErrorLabel ||
|
470
|
+
filteredOption[this.labelField] === this.loadingLabel)) {
|
471
|
+
this.prevNoOption = true;
|
472
|
+
}
|
491
473
|
}
|
492
474
|
handleKeyDown(event) {
|
493
475
|
this.icKeydown.emit({ event });
|
@@ -526,62 +508,57 @@ const SearchBar = /*@__PURE__*/ proxyCustomElement(class SearchBar extends HTMLE
|
|
526
508
|
}, 500);
|
527
509
|
}
|
528
510
|
render() {
|
529
|
-
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;
|
511
|
+
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;
|
530
512
|
const disabledMode = readonly || disabled;
|
531
513
|
const describedBy = getInputDescribedByText(inputId, helperText !== "", false).trim();
|
532
|
-
let describedById;
|
514
|
+
let describedById = undefined;
|
533
515
|
if (describedBy !== "" && this.hasOptionsOrFilterDisabled()) {
|
534
|
-
describedById = `${describedBy} ${
|
516
|
+
describedById = `${describedBy} ${inputId}-assistive-hint`;
|
535
517
|
}
|
536
518
|
else if (this.hasOptionsOrFilterDisabled()) {
|
537
|
-
describedById = `${
|
519
|
+
describedById = `${inputId}-assistive-hint`;
|
538
520
|
}
|
539
521
|
else if (describedBy !== "") {
|
540
522
|
describedById = describedBy;
|
541
523
|
}
|
542
|
-
else {
|
543
|
-
describedById = undefined;
|
544
|
-
}
|
545
524
|
const hasSuggestedSearch = !!value && this.hasOptionsOrFilterDisabled();
|
546
525
|
const menuOpen = hasSuggestedSearch && open && filteredOptions.length > 0;
|
547
|
-
const menuRendered = menuOpen && value.length >=
|
548
|
-
const labelValue = getLabelFromValue(value, options,
|
549
|
-
renderHiddenInput(
|
550
|
-
return (h(Host, { key: '
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
526
|
+
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
527
|
+
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
528
|
+
renderHiddenInput(this.el, value, name, disabledMode);
|
529
|
+
return (h(Host, { key: '5120b79da9d0840d87421287913f49cda06da4f3', class: {
|
530
|
+
"ic-search-bar-search": true,
|
531
|
+
"ic-search-bar-full-width": fullWidth,
|
532
|
+
"ic-search-bar-disabled": disabled,
|
533
|
+
"ic-search-bar-small": size === "small",
|
555
534
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
556
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, h("ic-input-container", { key: '
|
557
|
-
"no-left-pad":
|
558
|
-
readonly
|
535
|
+
}, 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: {
|
536
|
+
"no-left-pad": readonly,
|
537
|
+
readonly,
|
559
538
|
"truncate-value": truncateValue,
|
560
|
-
}, 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: '
|
539
|
+
}, 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: {
|
561
540
|
"clear-button-container": true,
|
562
|
-
"clear-button-visible": !!value && !disabledMode &&
|
563
|
-
} }, h("ic-button", { key: '
|
541
|
+
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
542
|
+
} }, h("ic-button", { key: '561c5cbe830f34bc80967e0899f2dc8526c1c4f7', id: "clear-button", class: {
|
564
543
|
"clear-button": true,
|
565
|
-
"clear-button-unfocused": !
|
566
|
-
}, "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:
|
544
|
+
"clear-button-unfocused": !clearButtonFocused,
|
545
|
+
}, "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: {
|
567
546
|
"search-submit-button-container": true,
|
568
547
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
569
|
-
} }, h("ic-button", { key: '
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
}, 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:
|
548
|
+
} }, h("ic-button", { key: '785dbe4deb7549662d263f74b75c759b932399fb', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
549
|
+
"search-submit-button": true,
|
550
|
+
"search-submit-button-small": size === "small",
|
551
|
+
"search-submit-button-unfocused": !searchSubmitFocused,
|
552
|
+
"search-submit-button-disabled": this.isSubmitDisabled(),
|
553
|
+
}, 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: {
|
575
554
|
"menu-container": true,
|
576
|
-
fullwidth:
|
577
|
-
} }, menuRendered && (h("ic-menu", { key: '
|
555
|
+
fullwidth: fullWidth,
|
556
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (h("ic-menu", { key: 'd527adddfc250b1f0fe605cbaec5f08ea1e25c04', class: {
|
578
557
|
"no-results": this.hadNoOptions() ||
|
579
558
|
(filteredOptions.length === 1 &&
|
580
|
-
(filteredOptions[0][
|
581
|
-
|
582
|
-
|
583
|
-
this.loadingErrorLabel)),
|
584
|
-
}, 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" })));
|
559
|
+
(filteredOptions[0][labelField] === loadingLabel ||
|
560
|
+
filteredOptions[0][labelField] === loadingErrorLabel)),
|
561
|
+
}, 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" })));
|
585
562
|
}
|
586
563
|
static get delegatesFocus() { return true; }
|
587
564
|
get el() { return this; }
|