@ukic/canary-web-components 3.0.0-canary.1 → 3.0.0-canary.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-33b42cd6.js → helpers-36cdc6cb.js} +24 -1
- package/dist/cjs/helpers-36cdc6cb.js.map +1 -0
- package/dist/cjs/{helpers-6817cfbb.js → helpers-a67ad3a4.js} +15 -129
- package/dist/cjs/helpers-a67ad3a4.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +2 -2
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +2 -2
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +2 -2
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +17 -16
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-horizontal.cjs.entry.js +2 -2
- package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +2 -2
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +21 -14
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +31 -8
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +11 -10
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +4 -2
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +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_2.cjs.entry.js +24 -17
- package/dist/cjs/ic-empty-state_2.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 +2 -2
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +2 -2
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +1012 -0
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-input-label_2.cjs.entry.js +86 -0
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-link.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +5 -5
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +151 -41
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +27 -21
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +20 -10
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +27 -22
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +12 -25
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +2 -2
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +4 -5
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +12 -2
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +7 -4
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +58 -122
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +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 +6 -7
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +3 -3
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +2 -2
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +5 -3
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js +10 -2
- package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +5 -3
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-4cf27b16.js +4 -12
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +8 -8
- package/dist/collection/components/ic-data-table/ic-data-table.css +20 -4
- package/dist/collection/components/ic-data-table/ic-data-table.js +35 -12
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +46 -5
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.css +3 -3
- package/dist/collection/components/ic-date-input/ic-date-input.css +3 -3
- package/dist/collection/components/ic-date-input/ic-date-input.js +27 -8
- package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.css +6 -6
- package/dist/collection/components/ic-date-picker/ic-date-picker.js +20 -0
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +72 -21
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js +2 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -0
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +20 -2
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.css +13 -2
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +23 -3
- 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 +29 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
- package/dist/collection/utils/helpers.js +1 -1
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +22 -1
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/helpers2.js +14 -121
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-accordion.js +1 -1
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +1 -1
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-badge.js +1 -1
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +1 -1
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +6 -7
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-horizontal.js +1 -1
- package/dist/components/ic-card-horizontal.js.map +1 -1
- package/dist/components/ic-card-vertical.js +1 -1
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +2 -2
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +2 -2
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +23 -14
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +1 -1
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-table-title-bar.js +1 -1
- package/dist/components/ic-data-table-title-bar.js.map +1 -1
- package/dist/components/ic-data-table.js +31 -8
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input2.js +12 -10
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-date-picker.js +5 -2
- package/dist/components/ic-date-picker.js.map +1 -1
- package/dist/components/ic-divider2.js +1 -1
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-footer-link-group.js +1 -1
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +1 -1
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +2 -2
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +2 -2
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +1 -1
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +10 -6
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +1 -1
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +1 -1
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +11 -9
- 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 +1 -1
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +450 -167
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-group.js +2 -2
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +2 -2
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +2 -2
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +4 -4
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +27 -17
- package/dist/components/ic-pagination-bar2.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-popover-menu.js +30 -22
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +19 -9
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +27 -22
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +12 -25
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-select2.js +149 -38
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +2 -2
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +5 -5
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-status-tag.js +1 -1
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +4 -4
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +14 -3
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +7 -3
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +58 -122
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-panel.js +1 -1
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +5 -6
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +3 -3
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-toast.js +3 -3
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button.js +1 -1
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +1 -1
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +2 -2
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-tree-item.js +5 -2
- package/dist/components/ic-tree-item.js.map +1 -1
- package/dist/components/ic-tree-view.js +12 -2
- package/dist/components/ic-tree-view.js.map +1 -1
- package/dist/components/ic-typography2.js +4 -2
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.css +661 -37
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-c033e7d6.entry.js → p-036d251b.entry.js} +2 -2
- package/dist/core/{p-9397b15b.js → p-043cf5de.js} +2 -2
- package/dist/core/p-043cf5de.js.map +1 -0
- package/dist/core/p-044689ef.entry.js +2 -0
- package/dist/core/p-044689ef.entry.js.map +1 -0
- package/dist/core/p-095da817.entry.js +2 -0
- package/dist/core/p-095da817.entry.js.map +1 -0
- package/dist/core/{p-cb6cebdd.entry.js → p-13d2db9b.entry.js} +2 -2
- package/dist/core/{p-cb6cebdd.entry.js.map → p-13d2db9b.entry.js.map} +1 -1
- package/dist/core/p-13e01a1e.entry.js +2 -0
- package/dist/core/p-13e01a1e.entry.js.map +1 -0
- package/dist/core/p-1ae71507.entry.js +2 -0
- package/dist/core/p-1ae71507.entry.js.map +1 -0
- package/dist/core/p-2200ca85.entry.js +2 -0
- package/dist/core/p-2200ca85.entry.js.map +1 -0
- package/dist/core/p-2257f5e8.entry.js +2 -0
- package/dist/core/p-2257f5e8.entry.js.map +1 -0
- package/dist/core/{p-897b8d16.entry.js → p-24d03bbd.entry.js} +2 -2
- package/dist/core/{p-a78cf2cb.entry.js → p-266098ee.entry.js} +2 -2
- package/dist/core/{p-5f313e1a.entry.js → p-26613dbd.entry.js} +2 -2
- package/dist/core/{p-5f313e1a.entry.js.map → p-26613dbd.entry.js.map} +1 -1
- package/dist/core/p-283a2274.entry.js +2 -0
- package/dist/core/p-283a2274.entry.js.map +1 -0
- package/dist/core/{p-77a32de5.entry.js → p-2a3bd99a.entry.js} +2 -2
- package/dist/core/p-42f88966.entry.js +2 -0
- package/dist/core/p-42f88966.entry.js.map +1 -0
- package/dist/core/p-44ee5375.entry.js +2 -0
- package/dist/core/p-44ee5375.entry.js.map +1 -0
- package/dist/core/p-48a78218.entry.js +2 -0
- package/dist/core/p-48a78218.entry.js.map +1 -0
- package/dist/core/p-4e316ae5.entry.js +2 -0
- package/dist/core/p-4e316ae5.entry.js.map +1 -0
- package/dist/core/p-50dd2744.entry.js +2 -0
- package/dist/core/p-50dd2744.entry.js.map +1 -0
- package/dist/core/{p-bf670360.entry.js → p-51ea45cb.entry.js} +2 -2
- package/dist/core/{p-bf670360.entry.js.map → p-51ea45cb.entry.js.map} +1 -1
- package/dist/core/p-5458d818.entry.js +2 -0
- package/dist/core/p-5458d818.entry.js.map +1 -0
- package/dist/core/{p-202bc922.entry.js → p-5ad1a7fb.entry.js} +2 -2
- package/dist/core/p-5b061abc.entry.js +2 -0
- package/dist/core/p-5b061abc.entry.js.map +1 -0
- package/dist/core/{p-f98b1afc.entry.js → p-6727166b.entry.js} +2 -2
- package/dist/core/{p-f98b1afc.entry.js.map → p-6727166b.entry.js.map} +1 -1
- package/dist/core/p-6dc00a8f.entry.js +2 -0
- package/dist/core/p-6dc00a8f.entry.js.map +1 -0
- package/dist/core/p-6dffaac0.entry.js +2 -0
- package/dist/core/p-6dffaac0.entry.js.map +1 -0
- package/dist/core/p-6fd89ed5.entry.js +2 -0
- package/dist/core/p-6fd89ed5.entry.js.map +1 -0
- package/dist/core/p-7aa6b76e.entry.js +2 -0
- package/dist/core/p-7aa6b76e.entry.js.map +1 -0
- package/dist/core/{p-e5d99316.entry.js → p-7b90f0ae.entry.js} +2 -2
- package/dist/core/{p-5f5403e2.entry.js → p-7e1603cc.entry.js} +2 -2
- package/dist/core/p-7e1603cc.entry.js.map +1 -0
- package/dist/core/{p-30b046b2.entry.js → p-7e5b0fff.entry.js} +2 -2
- package/dist/core/{p-d8563643.entry.js → p-80b296cd.entry.js} +2 -2
- package/dist/core/p-80b296cd.entry.js.map +1 -0
- package/dist/core/{p-73b40c79.entry.js → p-82aa8136.entry.js} +2 -2
- package/dist/core/{p-73b40c79.entry.js.map → p-82aa8136.entry.js.map} +1 -1
- package/dist/core/p-83b4efe2.entry.js +2 -0
- package/dist/core/p-83b4efe2.entry.js.map +1 -0
- package/dist/core/p-83e4d955.entry.js +2 -0
- package/dist/core/p-83e4d955.entry.js.map +1 -0
- package/dist/core/p-86b608b5.entry.js +2 -0
- package/dist/core/p-86b608b5.entry.js.map +1 -0
- package/dist/core/p-878df16f.entry.js +2 -0
- package/dist/core/p-878df16f.entry.js.map +1 -0
- package/dist/core/p-89be0a21.js +2 -0
- package/dist/core/p-89be0a21.js.map +1 -0
- package/dist/core/{p-306def43.entry.js → p-8bec76d1.entry.js} +2 -2
- package/dist/core/p-8bec76d1.entry.js.map +1 -0
- package/dist/core/p-94141606.entry.js +2 -0
- package/dist/core/p-94141606.entry.js.map +1 -0
- package/dist/core/{p-108a9029.entry.js → p-94416b6b.entry.js} +2 -2
- package/dist/core/p-94416b6b.entry.js.map +1 -0
- package/dist/core/{p-f743b0eb.entry.js → p-a4439688.entry.js} +2 -2
- package/dist/core/{p-f743b0eb.entry.js.map → p-a4439688.entry.js.map} +1 -1
- package/dist/core/p-a8106c56.entry.js +2 -0
- package/dist/core/p-a8106c56.entry.js.map +1 -0
- package/dist/core/p-affd7f55.entry.js +2 -0
- package/dist/core/p-affd7f55.entry.js.map +1 -0
- package/dist/core/{p-c21d0db8.entry.js → p-b3d93bc1.entry.js} +2 -2
- package/dist/core/p-b3d93bc1.entry.js.map +1 -0
- package/dist/core/p-bac2beeb.entry.js +2 -0
- package/dist/core/p-bac2beeb.entry.js.map +1 -0
- package/dist/core/p-c29b2b48.entry.js +2 -0
- package/dist/core/p-c29b2b48.entry.js.map +1 -0
- package/dist/core/p-c40c57ee.entry.js +2 -0
- package/dist/core/p-c40c57ee.entry.js.map +1 -0
- package/dist/core/p-c6a62d1b.entry.js +2 -0
- package/dist/core/p-c6a62d1b.entry.js.map +1 -0
- package/dist/core/{p-266341f5.entry.js → p-cc22644d.entry.js} +2 -2
- package/dist/core/{p-266341f5.entry.js.map → p-cc22644d.entry.js.map} +1 -1
- package/dist/core/p-cfd81370.entry.js +2 -0
- package/dist/core/p-cfd81370.entry.js.map +1 -0
- package/dist/core/p-d53fb899.entry.js +2 -0
- package/dist/core/p-d53fb899.entry.js.map +1 -0
- package/dist/core/p-d5e9cf81.entry.js +2 -0
- package/dist/core/p-d5e9cf81.entry.js.map +1 -0
- package/dist/core/{p-505250cf.entry.js → p-d7632baf.entry.js} +2 -2
- package/dist/core/p-dcccd9c1.entry.js +2 -0
- package/dist/core/{p-aee8d45b.entry.js.map → p-dcccd9c1.entry.js.map} +1 -1
- package/dist/core/p-edfd0946.entry.js +2 -0
- package/dist/core/p-edfd0946.entry.js.map +1 -0
- package/dist/core/p-f1842a68.entry.js +2 -0
- package/dist/core/p-f1842a68.entry.js.map +1 -0
- package/dist/core/{p-f1072c28.entry.js → p-f64abdff.entry.js} +2 -2
- package/dist/core/p-f64abdff.entry.js.map +1 -0
- package/dist/core/p-f8c1d7e8.entry.js +2 -0
- package/dist/core/p-f8c1d7e8.entry.js.map +1 -0
- package/dist/core/{p-d03374fc.entry.js → p-fbb5c8f2.entry.js} +2 -2
- package/dist/core/p-fc2f336d.entry.js +2 -0
- package/dist/core/p-fc2f336d.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-5bd2012a.js → helpers-a7b13f5a.js} +15 -122
- package/dist/esm/helpers-a7b13f5a.js.map +1 -0
- package/dist/esm/{helpers-dab8ddfe.js → helpers-c326255f.js} +23 -2
- package/dist/esm/helpers-c326255f.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +2 -2
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +2 -2
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +2 -2
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +2 -2
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +17 -16
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-horizontal.entry.js +2 -2
- package/dist/esm/ic-card-horizontal.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +2 -2
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +3 -3
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +3 -3
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +22 -15
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +1 -1
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +1 -1
- package/dist/esm/ic-data-table-title-bar.entry.js +2 -2
- package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -1
- package/dist/esm/ic-data-table.entry.js +31 -8
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +11 -10
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +4 -2
- package/dist/esm/ic-date-picker.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +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_2.entry.js +24 -17
- package/dist/esm/ic-empty-state_2.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 +2 -2
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +2 -2
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +2 -2
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/{collection/components/ic-menu-with-multi/ic-menu.js → esm/ic-input-component-container_3.entry.js} +157 -727
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -0
- package/dist/esm/ic-input-label_2.entry.js +81 -0
- package/dist/esm/ic-input-label_2.entry.js.map +1 -0
- package/dist/esm/ic-link.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js +2 -2
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +2 -2
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +2 -2
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +5 -5
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +151 -41
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +27 -21
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +20 -10
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +27 -22
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +12 -25
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +2 -2
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +4 -4
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +2 -2
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +4 -5
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +12 -2
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +7 -4
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +58 -122
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +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 +6 -7
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +3 -3
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +2 -2
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +2 -2
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +5 -3
- package/dist/esm/ic-tree-item.entry.js.map +1 -1
- package/dist/esm/ic-tree-view.entry.js +10 -2
- package/dist/esm/ic-tree-view.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +5 -3
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-93509377.js +4 -12
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +4 -0
- package/dist/types/components/ic-data-table/story-data.d.ts +15 -0
- package/dist/types/components/ic-date-input/ic-date-input.d.ts +4 -0
- package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +4 -0
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +14 -5
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +4 -0
- package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +5 -1
- package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +5 -0
- package/dist/types/components.d.ts +63 -472
- package/dist/types/utils/helpers.d.ts +1 -1
- package/dist/types/utils/types.d.ts +1 -0
- package/hydrate/index.js +3695 -6960
- package/package.json +3 -3
- package/dist/cjs/helpers-33b42cd6.js.map +0 -1
- package/dist/cjs/helpers-6817cfbb.js.map +0 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +0 -156
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js +0 -2738
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-menu.cjs.entry.js +0 -658
- package/dist/cjs/ic-menu.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-select-with-multi.cjs.entry.js +0 -788
- package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +0 -1
- package/dist/collection/components/ic-menu-with-multi/ic-menu.css +0 -712
- package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +0 -1
- package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +0 -1057
- package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +0 -1
- package/dist/collection/components/ic-select-with-multi/assets/Check.svg +0 -3
- package/dist/collection/components/ic-select-with-multi/assets/Clear.svg +0 -3
- package/dist/collection/components/ic-select-with-multi/assets/Expand.svg +0 -3
- package/dist/collection/components/ic-select-with-multi/ic-select.css +0 -695
- package/dist/collection/components/ic-select-with-multi/ic-select.js +0 -1520
- package/dist/collection/components/ic-select-with-multi/ic-select.js.map +0 -1
- package/dist/collection/components/ic-select-with-multi/story-data.js +0 -216
- package/dist/collection/components/ic-select-with-multi/story-data.js.map +0 -1
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js +0 -1518
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js.map +0 -1
- package/dist/components/ic-menu-with-multi.d.ts +0 -11
- package/dist/components/ic-menu-with-multi.js +0 -8
- package/dist/components/ic-menu-with-multi.js.map +0 -1
- package/dist/components/ic-menu3.js +0 -2803
- package/dist/components/ic-menu3.js.map +0 -1
- package/dist/components/ic-select-with-multi.d.ts +0 -11
- package/dist/components/ic-select-with-multi.js +0 -906
- package/dist/components/ic-select-with-multi.js.map +0 -1
- package/dist/core/p-06eeb7f2.entry.js +0 -2
- package/dist/core/p-06eeb7f2.entry.js.map +0 -1
- package/dist/core/p-0922c552.entry.js +0 -2
- package/dist/core/p-0922c552.entry.js.map +0 -1
- package/dist/core/p-0bc0e852.entry.js +0 -2
- package/dist/core/p-0bc0e852.entry.js.map +0 -1
- package/dist/core/p-108a9029.entry.js.map +0 -1
- package/dist/core/p-13100d3c.entry.js +0 -2
- package/dist/core/p-13100d3c.entry.js.map +0 -1
- package/dist/core/p-1769df1d.entry.js +0 -2
- package/dist/core/p-1769df1d.entry.js.map +0 -1
- package/dist/core/p-297e99cf.js +0 -2
- package/dist/core/p-297e99cf.js.map +0 -1
- package/dist/core/p-306def43.entry.js.map +0 -1
- package/dist/core/p-3778cc5e.entry.js +0 -2
- package/dist/core/p-3778cc5e.entry.js.map +0 -1
- package/dist/core/p-383a5a76.entry.js +0 -2
- package/dist/core/p-383a5a76.entry.js.map +0 -1
- package/dist/core/p-3a0510e2.entry.js +0 -2
- package/dist/core/p-3a0510e2.entry.js.map +0 -1
- package/dist/core/p-3ace51f5.entry.js +0 -2
- package/dist/core/p-3ace51f5.entry.js.map +0 -1
- package/dist/core/p-3f0391c1.entry.js +0 -2
- package/dist/core/p-3f0391c1.entry.js.map +0 -1
- package/dist/core/p-41fecc61.entry.js +0 -2
- package/dist/core/p-41fecc61.entry.js.map +0 -1
- package/dist/core/p-46cb94a2.entry.js +0 -2
- package/dist/core/p-46cb94a2.entry.js.map +0 -1
- package/dist/core/p-4e67f127.entry.js +0 -2
- package/dist/core/p-4e67f127.entry.js.map +0 -1
- package/dist/core/p-50e48f4d.entry.js +0 -2
- package/dist/core/p-50e48f4d.entry.js.map +0 -1
- package/dist/core/p-56e7459a.entry.js +0 -2
- package/dist/core/p-56e7459a.entry.js.map +0 -1
- package/dist/core/p-59028160.entry.js +0 -2
- package/dist/core/p-59028160.entry.js.map +0 -1
- package/dist/core/p-5e6fd734.entry.js +0 -2
- package/dist/core/p-5e6fd734.entry.js.map +0 -1
- package/dist/core/p-5f5403e2.entry.js.map +0 -1
- package/dist/core/p-710c6a42.entry.js +0 -2
- package/dist/core/p-710c6a42.entry.js.map +0 -1
- package/dist/core/p-7a9de008.entry.js +0 -2
- package/dist/core/p-7a9de008.entry.js.map +0 -1
- package/dist/core/p-801414e2.entry.js +0 -2
- package/dist/core/p-801414e2.entry.js.map +0 -1
- package/dist/core/p-82ba744d.entry.js +0 -2
- package/dist/core/p-82ba744d.entry.js.map +0 -1
- package/dist/core/p-9397b15b.js.map +0 -1
- package/dist/core/p-9af6adb1.entry.js +0 -2
- package/dist/core/p-9af6adb1.entry.js.map +0 -1
- package/dist/core/p-9b54feca.entry.js +0 -2
- package/dist/core/p-9b54feca.entry.js.map +0 -1
- package/dist/core/p-a57cd616.entry.js +0 -2
- package/dist/core/p-a57cd616.entry.js.map +0 -1
- package/dist/core/p-a5eaed1a.entry.js +0 -2
- package/dist/core/p-a5eaed1a.entry.js.map +0 -1
- package/dist/core/p-a91340b4.entry.js +0 -2
- package/dist/core/p-a91340b4.entry.js.map +0 -1
- package/dist/core/p-aee8d45b.entry.js +0 -2
- package/dist/core/p-badd4c8d.entry.js +0 -2
- package/dist/core/p-badd4c8d.entry.js.map +0 -1
- package/dist/core/p-c07af2d8.entry.js +0 -2
- package/dist/core/p-c07af2d8.entry.js.map +0 -1
- package/dist/core/p-c21d0db8.entry.js.map +0 -1
- package/dist/core/p-c678f73d.entry.js +0 -2
- package/dist/core/p-c678f73d.entry.js.map +0 -1
- package/dist/core/p-c6ae9bad.entry.js +0 -2
- package/dist/core/p-c6ae9bad.entry.js.map +0 -1
- package/dist/core/p-c6c1e08e.entry.js +0 -2
- package/dist/core/p-c6c1e08e.entry.js.map +0 -1
- package/dist/core/p-d16f364a.entry.js +0 -2
- package/dist/core/p-d16f364a.entry.js.map +0 -1
- package/dist/core/p-d239c33b.entry.js +0 -2
- package/dist/core/p-d239c33b.entry.js.map +0 -1
- package/dist/core/p-d8563643.entry.js.map +0 -1
- package/dist/core/p-da40757f.entry.js +0 -2
- package/dist/core/p-da40757f.entry.js.map +0 -1
- package/dist/core/p-de052137.entry.js +0 -2
- package/dist/core/p-de052137.entry.js.map +0 -1
- package/dist/core/p-e89bb650.entry.js +0 -2
- package/dist/core/p-e89bb650.entry.js.map +0 -1
- package/dist/core/p-f1072c28.entry.js.map +0 -1
- package/dist/core/p-f37df214.entry.js +0 -2
- package/dist/core/p-f37df214.entry.js.map +0 -1
- package/dist/core/p-fe13f1ba.entry.js +0 -2
- package/dist/core/p-fe13f1ba.entry.js.map +0 -1
- package/dist/esm/helpers-5bd2012a.js.map +0 -1
- package/dist/esm/helpers-dab8ddfe.js.map +0 -1
- package/dist/esm/ic-input-component-container_4.entry.js +0 -149
- package/dist/esm/ic-input-component-container_4.entry.js.map +0 -1
- package/dist/esm/ic-menu-with-multi.entry.js +0 -2734
- package/dist/esm/ic-menu-with-multi.entry.js.map +0 -1
- package/dist/esm/ic-menu.entry.js +0 -654
- package/dist/esm/ic-menu.entry.js.map +0 -1
- package/dist/esm/ic-select-with-multi.entry.js +0 -784
- package/dist/esm/ic-select-with-multi.entry.js.map +0 -1
- package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +0 -214
- package/dist/types/components/ic-select-with-multi/ic-select.d.ts +0 -259
- package/dist/types/components/ic-select-with-multi/story-data.d.ts +0 -32
- /package/dist/core/{p-c033e7d6.entry.js.map → p-036d251b.entry.js.map} +0 -0
- /package/dist/core/{p-897b8d16.entry.js.map → p-24d03bbd.entry.js.map} +0 -0
- /package/dist/core/{p-a78cf2cb.entry.js.map → p-266098ee.entry.js.map} +0 -0
- /package/dist/core/{p-77a32de5.entry.js.map → p-2a3bd99a.entry.js.map} +0 -0
- /package/dist/core/{p-202bc922.entry.js.map → p-5ad1a7fb.entry.js.map} +0 -0
- /package/dist/core/{p-e5d99316.entry.js.map → p-7b90f0ae.entry.js.map} +0 -0
- /package/dist/core/{p-30b046b2.entry.js.map → p-7e5b0fff.entry.js.map} +0 -0
- /package/dist/core/{p-505250cf.entry.js.map → p-d7632baf.entry.js.map} +0 -0
- /package/dist/core/{p-d03374fc.entry.js.map → p-fbb5c8f2.entry.js.map} +0 -0
@@ -1,906 +0,0 @@
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import { y as getLabelFromValue, z as getFilteredMenuOptions, x as getOptionsWithoutGroupTitlesCount, j as removeFormResetListener, A as inheritAttributes, r as removeDisabledFalse, k as addFormResetListener, o as onComponentRequiredPropUndefined, n as renderHiddenInput, h as getInputDescribedByText, B as hasValidationStatus, C as isMobileOrTablet, I as IcThemeForegroundEnum, D as IC_INHERITED_ARIA, m as IcInformationStatus } from './helpers2.js';
|
3
|
-
import { d as defineCustomElement$a } from './ic-button2.js';
|
4
|
-
import { d as defineCustomElement$9 } from './ic-input-component-container2.js';
|
5
|
-
import { d as defineCustomElement$8 } from './ic-input-container2.js';
|
6
|
-
import { d as defineCustomElement$7 } from './ic-input-label2.js';
|
7
|
-
import { d as defineCustomElement$6 } from './ic-input-validation2.js';
|
8
|
-
import { d as defineCustomElement$5 } from './ic-loading-indicator2.js';
|
9
|
-
import { d as defineCustomElement$4 } from './ic-menu3.js';
|
10
|
-
import { d as defineCustomElement$3 } from './ic-tooltip2.js';
|
11
|
-
import { d as defineCustomElement$2 } from './ic-typography2.js';
|
12
|
-
|
13
|
-
const Expand = `<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
14
|
-
<path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor" />
|
15
|
-
</svg>
|
16
|
-
`;
|
17
|
-
|
18
|
-
const Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
19
|
-
<path d="M12.6666 4.27334L11.7266 3.33334L7.99998 7.06001L4.27331 3.33334L3.33331 4.27334L7.05998 8.00001L3.33331 11.7267L4.27331 12.6667L7.99998 8.94001L11.7266 12.6667L12.6666 11.7267L8.93998 8.00001L12.6666 4.27334Z" fill="currentColor" />
|
20
|
-
</svg>
|
21
|
-
`;
|
22
|
-
|
23
|
-
const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;position:relative;--menu-max-height:100px}:host(.ic-select-full-width){width:100%}ic-input-component-container:hover{--border-color:var(--ic-action-dark-hover)}ic-input-component-container:active{--border-color:var(--ic-action-dark-active);color:var(--ic-action-dark-active)}ic-input-component-container.menu-open{--border-color:var(--ic-architectural-400);color:var(--ic-action-dark)}ic-input-validation .status-icon,ic-input-validation .statustext{visibility:visible}ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{visibility:hidden;transition:visibility 0s}ic-input-label{margin-bottom:var(--ic-space-xs) !important}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-architectural-white);color:var(--ic-color-primary-text);line-height:1.5rem;letter-spacing:0.005rem;width:100%;height:100%;padding-left:0.375rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-position:right 0.375rem center;background-image:url(\"data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}select option,.select-option-selected{color:var(--ic-color-primary-text)}select:disabled{color:var(--ic-architectural-200);background-image:url(\"data:image/svg+xml;utf8,<svg fill='grey' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}select:focus{border:0;outline:0}select:not([disabled]){cursor:pointer}.select-container{width:100%;display:flex;align-items:center;position:relative}.select-input{width:100%;height:100%;padding:0 0.375rem;display:flex;cursor:pointer;align-items:center;justify-content:space-between;background:none;border:none}.select-input:focus{outline:var(--ic-hc-focus-outline)}:host(:not(.ic-select-disabled)) ic-input-component-container:hover .select-input{background-color:var(--ic-architectural-white)}.select-input[disabled]{pointer-events:none}:host(.ic-select-searchable) .select-input{cursor:auto}.select-input.with-clear-button{padding-right:0}.value-text{max-width:calc(100% - (var(--ic-space-lg) + var(--ic-space-xxs)));box-sizing:border-box}.value-text.with-clear-button{padding-right:calc(var(--ic-space-xl) + var(--ic-space-xs))}.value-text p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:0 !important}.searchable-select-container{align-items:center;display:flex;width:100%;position:relative}.expand-icon{height:var(--ic-space-lg);padding-left:var(--ic-space-xxs);color:var(--ic-action-dark)}.expand-icon>svg{display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-select-disabled) .expand-icon,:host(.ic-select-disabled) .expand-icon>svg>path{color:var(--ic-architectural-200)}:host(.ic-select-searchable) .expand-icon{padding-left:0;height:2.25rem}:host(.ic-select-searchable) .expand-icon>svg{height:2.25rem;padding:0 0.375rem}:host(.ic-select-searchable:not(.ic-select-disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-action-dark)}.expand-icon-open,:host(.ic-select-searchable) .expand-icon-open{transform:rotateX(180deg)}:host(.ic-select-disabled) .value-text,.placeholder{color:var(--ic-color-tertiary-text)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex}.divider{width:var(--ic-space-1px);background-color:var(--ic-architectural-400);margin:var(--ic-space-xxs) 0;border-radius:var(--ic-space-1px);height:var(--ic-space-lg)}:host(.ic-select-small) .divider{height:var(--ic-space-md)}:host(.ic-select-large) .divider{height:var(--ic-space-xl)}.clear-button{position:absolute;right:calc(var(--ic-space-xl) + var(--ic-space-xxs));border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus{background-color:var(--ic-focus-blue);box-shadow:inset 0 0 0 0.125rem var(--ic-focus-glow);border-radius:0.25rem}.clear-button:focus *{fill:white}.clear-button.searchable{position:static}.searchable-select-results-status,.multi-select-selected-count{border:0;clip:rect(0, 0, 0, 0, 0);height:var(--ic-space-1px);overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--ic-space-1px)}";
|
24
|
-
|
25
|
-
let inputIds = 0;
|
26
|
-
const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement {
|
27
|
-
constructor() {
|
28
|
-
super();
|
29
|
-
this.__registerHost();
|
30
|
-
this.__attachShadow();
|
31
|
-
this.icBlur = createEvent(this, "icBlur", 7);
|
32
|
-
this.icChange = createEvent(this, "icChange", 7);
|
33
|
-
this.icClear = createEvent(this, "icClear", 7);
|
34
|
-
this.icFocus = createEvent(this, "icFocus", 7);
|
35
|
-
this.icInput = createEvent(this, "icInput", 7);
|
36
|
-
this.icOptionSelect = createEvent(this, "icOptionSelect", 7);
|
37
|
-
this.icOptionDeselect = createEvent(this, "icOptionDeselect", 7);
|
38
|
-
this.icRetryLoad = createEvent(this, "icRetryLoad", 7);
|
39
|
-
this.hasSetDefaultValue = false;
|
40
|
-
this.inheritedAttributes = {};
|
41
|
-
this.initialOptionsEmpty = false;
|
42
|
-
this.inputId = `ic-select-input-${inputIds++}`;
|
43
|
-
this.menuId = `${this.inputId}-menu`;
|
44
|
-
this.searchableMenuItemSelected = false;
|
45
|
-
this.ungroupedOptions = [];
|
46
|
-
this.handleRetry = (ev) => {
|
47
|
-
var _a;
|
48
|
-
if (ev.detail.keyPressed)
|
49
|
-
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
50
|
-
this.blurredBecauseButtonPressed = true;
|
51
|
-
this.retryButtonClick = true;
|
52
|
-
this.hasSetDefaultValue = true;
|
53
|
-
this.icRetryLoad.emit({ value: this.hiddenInputValue });
|
54
|
-
};
|
55
|
-
this.emitIcChange = (value) => {
|
56
|
-
if (!this.searchable) {
|
57
|
-
// If "Select all" button clicked, replace value with new value (array of all option values)
|
58
|
-
if (this.multiple && !Array.isArray(value) && value !== null) {
|
59
|
-
this.handleMultipleSelectChange(value);
|
60
|
-
}
|
61
|
-
else {
|
62
|
-
this.value = value;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
clearTimeout(this.debounceIcChange);
|
66
|
-
this.debounceIcChange = window.setTimeout(() => {
|
67
|
-
const valueToEmit = this.multiple ? this.value : value;
|
68
|
-
this.icChange.emit({ value: valueToEmit });
|
69
|
-
}, this.currDebounce);
|
70
|
-
};
|
71
|
-
this.emitImmediateIcChange = (value) => {
|
72
|
-
this.value = value;
|
73
|
-
clearTimeout(this.debounceIcChange);
|
74
|
-
this.icChange.emit({ value });
|
75
|
-
};
|
76
|
-
/**
|
77
|
-
* Processes the provided array of IcMenuOptions, removing duplicates and reporting them with a console.warn
|
78
|
-
* @param options array of IcMenuOptions
|
79
|
-
* @returns a new options object, with all entries possessing a duplicate 'value' field removed
|
80
|
-
*/
|
81
|
-
this.deduplicateOptions = (options) => {
|
82
|
-
const uniqueValues = [];
|
83
|
-
const dedupedOptions = [];
|
84
|
-
let dedupedChildren;
|
85
|
-
options.forEach((option) => {
|
86
|
-
if (option.children) {
|
87
|
-
//If an option has children, we will loop through them
|
88
|
-
dedupedChildren = [];
|
89
|
-
option.children.forEach((child) => {
|
90
|
-
if (uniqueValues.includes(child.value)) {
|
91
|
-
console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${child.value}) which has been removed.`);
|
92
|
-
}
|
93
|
-
else {
|
94
|
-
uniqueValues.push(child.value);
|
95
|
-
dedupedChildren.push(child);
|
96
|
-
}
|
97
|
-
});
|
98
|
-
// construct a modified option, inserting the deduplicated children alongside the original information
|
99
|
-
const modifiedParent = Object.assign(Object.assign({}, option), { children: dedupedChildren });
|
100
|
-
dedupedOptions.push(modifiedParent);
|
101
|
-
}
|
102
|
-
else {
|
103
|
-
// If an option does not have children, assess to see if it's value has been included already
|
104
|
-
if (uniqueValues.includes(option.value)) {
|
105
|
-
console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${option.value}) which has been removed.`);
|
106
|
-
}
|
107
|
-
else {
|
108
|
-
uniqueValues.push(option.value);
|
109
|
-
dedupedOptions.push(option);
|
110
|
-
}
|
111
|
-
}
|
112
|
-
});
|
113
|
-
return dedupedOptions;
|
114
|
-
};
|
115
|
-
/**
|
116
|
-
* Loop through options array and for all options with no value, infer it from the label
|
117
|
-
*/
|
118
|
-
this.setOptionsValuesFromLabels = () => {
|
119
|
-
if (this.options.length > 0 && this.options.map) {
|
120
|
-
this.options.map((option) => {
|
121
|
-
if (!option.value) {
|
122
|
-
option.value = option.label;
|
123
|
-
}
|
124
|
-
});
|
125
|
-
}
|
126
|
-
};
|
127
|
-
this.setUngroupedOptions = (event) => {
|
128
|
-
this.ungroupedOptions = event.detail.options;
|
129
|
-
};
|
130
|
-
this.setTextColor = () => {
|
131
|
-
if (this.nativeSelectElement.selectedIndex === 0) {
|
132
|
-
this.nativeSelectElement.className = "placeholder";
|
133
|
-
}
|
134
|
-
else {
|
135
|
-
this.nativeSelectElement.className = "select-option-selected";
|
136
|
-
}
|
137
|
-
};
|
138
|
-
this.setMenuChange = (open) => {
|
139
|
-
if (this.open !== open) {
|
140
|
-
this.open = open;
|
141
|
-
}
|
142
|
-
};
|
143
|
-
this.getLabelFromValue = (value) => {
|
144
|
-
return getLabelFromValue(value, this.uniqueOptions);
|
145
|
-
};
|
146
|
-
this.getMultipleOptionsString = (selectedValues) => {
|
147
|
-
const selectedLabels = selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.map((value) => this.getLabelFromValue(value));
|
148
|
-
return selectedLabels === null || selectedLabels === void 0 ? void 0 : selectedLabels.join(", ");
|
149
|
-
};
|
150
|
-
this.getFilteredChildMenuOptions = (option) => {
|
151
|
-
let children = option.children;
|
152
|
-
if (this.searchable) {
|
153
|
-
children = getFilteredMenuOptions(option.children, this.includeDescriptionsInSearch, this.searchableSelectInputValue, this.searchMatchPosition);
|
154
|
-
}
|
155
|
-
else {
|
156
|
-
children = getFilteredMenuOptions(option.children, false, this.pressedCharacters, "start");
|
157
|
-
}
|
158
|
-
const newOption = Object.assign({}, option);
|
159
|
-
newOption.children = children;
|
160
|
-
return newOption;
|
161
|
-
};
|
162
|
-
// (For multi-select) get value array, i.e. selected option values, in order they appear in option list
|
163
|
-
this.getValueSortedByOptions = (value) => {
|
164
|
-
const valueArray = value;
|
165
|
-
const valuesFromAllOptions = this.ungroupedOptions.map((option) => option.value);
|
166
|
-
valueArray.sort((a, b) => valuesFromAllOptions.indexOf(a) - valuesFromAllOptions.indexOf(b));
|
167
|
-
return valueArray;
|
168
|
-
};
|
169
|
-
this.handleNativeSelectChange = () => {
|
170
|
-
this.icOptionSelect.emit({ value: this.nativeSelectElement.value });
|
171
|
-
this.emitImmediateIcChange(this.nativeSelectElement.value);
|
172
|
-
this.setTextColor();
|
173
|
-
};
|
174
|
-
// Handle option select for when a custom input box and menu is rendered
|
175
|
-
// (rather than native <select> - rendered when viewed on a mobile / tablet screen)
|
176
|
-
this.handleCustomSelectChange = (event) => {
|
177
|
-
var _a;
|
178
|
-
const value = event.detail.value;
|
179
|
-
if (this.searchable && event.detail.label === this.emptyOptionListText) {
|
180
|
-
this.searchableSelectElement.focus();
|
181
|
-
return;
|
182
|
-
}
|
183
|
-
if (this.searchable) {
|
184
|
-
this.value = value;
|
185
|
-
this.searchableMenuItemSelected = true;
|
186
|
-
// After editing the input, if selecting the same option as before, set the input value to label again
|
187
|
-
if (this.value === this.currValue) {
|
188
|
-
this.searchableSelectInputValue = this.getLabelFromValue(this.value);
|
189
|
-
}
|
190
|
-
this.inputValueToFilter = null;
|
191
|
-
this.hiddenInputValue = this.getValueFromLabel(this.searchableSelectInputValue);
|
192
|
-
}
|
193
|
-
if (this.multiple && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.includes(value))) {
|
194
|
-
this.icOptionDeselect.emit({ value });
|
195
|
-
}
|
196
|
-
else {
|
197
|
-
this.icOptionSelect.emit({ value });
|
198
|
-
}
|
199
|
-
this.ariaActiveDescendant = event.detail.optionId;
|
200
|
-
this.emitIcChange(value);
|
201
|
-
};
|
202
|
-
// Update selected options - adds / removes them, in order of option list
|
203
|
-
// Create new array if value prop is undefined
|
204
|
-
this.handleMultipleSelectChange = (value) => {
|
205
|
-
if (this.value) {
|
206
|
-
let valueArray = this.value.slice();
|
207
|
-
if (this.value.includes(value)) {
|
208
|
-
const valueIndex = valueArray.indexOf(value);
|
209
|
-
valueArray.splice(valueIndex, 1);
|
210
|
-
}
|
211
|
-
else {
|
212
|
-
valueArray.push(value);
|
213
|
-
valueArray = this.getValueSortedByOptions(valueArray);
|
214
|
-
}
|
215
|
-
this.value = valueArray.length === 0 ? null : valueArray;
|
216
|
-
}
|
217
|
-
else {
|
218
|
-
const valueArray = [];
|
219
|
-
valueArray.push(value);
|
220
|
-
this.value = valueArray;
|
221
|
-
}
|
222
|
-
};
|
223
|
-
this.handleSelectAllChange = (event) => {
|
224
|
-
const selectAllOptions = event.detail.select;
|
225
|
-
const allEnabledOptions = this.ungroupedOptions.filter((option) => !option.disabled);
|
226
|
-
const allValues = allEnabledOptions.map((option) => option.value);
|
227
|
-
let newValue;
|
228
|
-
if (selectAllOptions) {
|
229
|
-
let unselectedValues;
|
230
|
-
// Only emit icOptionSelect for all values that are newly selected
|
231
|
-
if (this.value) {
|
232
|
-
unselectedValues = allValues.filter((value) => this.value && !this.value.includes(value));
|
233
|
-
}
|
234
|
-
else {
|
235
|
-
unselectedValues = allValues;
|
236
|
-
}
|
237
|
-
unselectedValues.forEach((value) => this.icOptionSelect.emit({ value }));
|
238
|
-
newValue = allValues;
|
239
|
-
}
|
240
|
-
else {
|
241
|
-
// Only emit icOptionDeselect for values that were selected
|
242
|
-
this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
|
243
|
-
newValue = null;
|
244
|
-
}
|
245
|
-
this.emitIcChange(newValue);
|
246
|
-
};
|
247
|
-
this.handleMenuChange = (event) => {
|
248
|
-
this.open = event.detail.open;
|
249
|
-
this.pressedCharacters = "";
|
250
|
-
this.searchable && this.handleFocusIndicatorDisplay();
|
251
|
-
};
|
252
|
-
// clears the debounce delay when navigating the menu with arrow keys etc
|
253
|
-
// to prevent delay in change event, which should only occur when typing in input
|
254
|
-
this.handleMenuKeyPress = (ev) => {
|
255
|
-
ev.cancelBubble = true;
|
256
|
-
if (!this.multiple) {
|
257
|
-
this.handleCharacterKeyDown(ev.detail.key);
|
258
|
-
}
|
259
|
-
};
|
260
|
-
this.handleFocusIndicatorDisplay = () => {
|
261
|
-
const focusIndicator = this.el.shadowRoot.querySelector(".focus-indicator");
|
262
|
-
if (this.open) {
|
263
|
-
focusIndicator.classList.add("focus-indicator-enabled");
|
264
|
-
}
|
265
|
-
else {
|
266
|
-
focusIndicator.classList.remove("focus-indicator-enabled");
|
267
|
-
}
|
268
|
-
};
|
269
|
-
this.handleMouseDown = (event) => {
|
270
|
-
if (!this.open) {
|
271
|
-
event.preventDefault();
|
272
|
-
}
|
273
|
-
};
|
274
|
-
this.isExternalFiltering = () => this.searchable && this.disableAutoFiltering;
|
275
|
-
this.handleClick = (event) => {
|
276
|
-
var _a;
|
277
|
-
if (!this.open) {
|
278
|
-
if (this.isExternalFiltering()) {
|
279
|
-
this.menu.options = this.filteredOptions;
|
280
|
-
}
|
281
|
-
else if (!this.hasTimedOut &&
|
282
|
-
!this.loading &&
|
283
|
-
!((_a = this.noOptions) === null || _a === void 0 ? void 0 : _a.length) &&
|
284
|
-
(!this.searchable || this.searchableMenuItemSelected)) {
|
285
|
-
this.noOptions = null;
|
286
|
-
this.menu.options = this.uniqueOptions;
|
287
|
-
}
|
288
|
-
}
|
289
|
-
if (event.detail !== 0) {
|
290
|
-
this.menu.handleClickOpen();
|
291
|
-
}
|
292
|
-
};
|
293
|
-
this.handleExpandIconMouseDown = (event) => {
|
294
|
-
if (!this.disabled) {
|
295
|
-
event.preventDefault();
|
296
|
-
this.searchableSelectElement.focus();
|
297
|
-
this.handleClick(event);
|
298
|
-
}
|
299
|
-
};
|
300
|
-
this.handleClear = (event) => {
|
301
|
-
event.stopPropagation();
|
302
|
-
this.hasTimedOut = false;
|
303
|
-
clearTimeout(this.timeoutTimer);
|
304
|
-
this.noOptions = null;
|
305
|
-
this.emitImmediateIcChange(null);
|
306
|
-
this.icClear.emit();
|
307
|
-
if (this.searchable) {
|
308
|
-
this.searchableSelectElement.value = null;
|
309
|
-
this.searchableSelectInputValue = null;
|
310
|
-
this.filteredOptions = this.uniqueOptions;
|
311
|
-
this.hiddenInputValue = null;
|
312
|
-
this.searchableSelectElement.focus();
|
313
|
-
}
|
314
|
-
else {
|
315
|
-
this.customSelectElement.focus();
|
316
|
-
}
|
317
|
-
};
|
318
|
-
this.handleCharacterKeyDown = (key) => {
|
319
|
-
// Only close menu when space is pressed if not being used alongside character keys to quickly select options
|
320
|
-
if (this.open &&
|
321
|
-
key === " " &&
|
322
|
-
this.pressedCharacters.length === 0 &&
|
323
|
-
!this.hasTimedOut &&
|
324
|
-
!this.loading) {
|
325
|
-
this.setMenuChange(false);
|
326
|
-
}
|
327
|
-
if (key.length === 1 && !this.searchable) {
|
328
|
-
window.clearTimeout(this.characterKeyPressTimer);
|
329
|
-
this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
|
330
|
-
if (!(key === " " && !this.pressedCharacters)) {
|
331
|
-
this.pressedCharacters += key;
|
332
|
-
this.handleFilter();
|
333
|
-
if (!this.noOptions) {
|
334
|
-
this.emitImmediateIcChange(this.filteredOptions[0].value);
|
335
|
-
}
|
336
|
-
}
|
337
|
-
}
|
338
|
-
else {
|
339
|
-
this.pressedCharacters = "";
|
340
|
-
}
|
341
|
-
};
|
342
|
-
this.handleNativeSelectKeyDown = (event) => {
|
343
|
-
if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
|
344
|
-
event.cancelBubble = true;
|
345
|
-
}
|
346
|
-
this.handleCharacterKeyDown(event.key);
|
347
|
-
};
|
348
|
-
this.handleKeyDown = (event) => {
|
349
|
-
if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
|
350
|
-
event.cancelBubble = true;
|
351
|
-
}
|
352
|
-
const isArrowKey = event.key === "ArrowDown" || event.key === "ArrowUp";
|
353
|
-
if (!this.open) {
|
354
|
-
if (this.isExternalFiltering() && (event.key === "Enter" || isArrowKey)) {
|
355
|
-
this.menu.options = this.filteredOptions;
|
356
|
-
}
|
357
|
-
else {
|
358
|
-
if (!this.hasTimedOut) {
|
359
|
-
this.noOptions = null;
|
360
|
-
this.menu.options = this.uniqueOptions;
|
361
|
-
}
|
362
|
-
}
|
363
|
-
}
|
364
|
-
if (this.open && event.key === "Enter") {
|
365
|
-
this.setMenuChange(false);
|
366
|
-
}
|
367
|
-
else {
|
368
|
-
if (!(isArrowKey && this.noOptions !== null)) {
|
369
|
-
if (!(event.key === " " && this.pressedCharacters.length > 0)) {
|
370
|
-
// Keyboard events get passed onto ic-menu
|
371
|
-
this.menu.handleKeyboardOpen(event);
|
372
|
-
}
|
373
|
-
if (!this.multiple) {
|
374
|
-
this.handleCharacterKeyDown(event.key);
|
375
|
-
}
|
376
|
-
}
|
377
|
-
}
|
378
|
-
};
|
379
|
-
this.handleClearButtonFocus = () => {
|
380
|
-
this.clearButtonFocused = true;
|
381
|
-
};
|
382
|
-
this.handleClearButtonBlur = (ev) => {
|
383
|
-
var _a;
|
384
|
-
const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
|
385
|
-
if (!(this.searchableSelectElement &&
|
386
|
-
ev.relatedTarget === this.searchableSelectElement) &&
|
387
|
-
!(retryButton && ev.relatedTarget === retryButton)) {
|
388
|
-
this.setMenuChange(false);
|
389
|
-
this.handleFocusIndicatorDisplay();
|
390
|
-
}
|
391
|
-
this.clearButtonFocused = false;
|
392
|
-
};
|
393
|
-
this.handleFilter = () => {
|
394
|
-
var _a;
|
395
|
-
const options = this.deduplicateOptions(this.searchable ? [...this.uniqueOptions] : this.ungroupedOptions);
|
396
|
-
let isGrouped = false;
|
397
|
-
let newFilteredOptions = [];
|
398
|
-
options.map((option) => {
|
399
|
-
if (option.children)
|
400
|
-
isGrouped = true;
|
401
|
-
});
|
402
|
-
let menuOptionsFiltered;
|
403
|
-
if (this.searchable) {
|
404
|
-
menuOptionsFiltered = getFilteredMenuOptions(options, this.includeDescriptionsInSearch, this.inputValueToFilter, this.searchMatchPosition);
|
405
|
-
this.searchableMenuItemSelected = false;
|
406
|
-
}
|
407
|
-
else {
|
408
|
-
menuOptionsFiltered = getFilteredMenuOptions(options, false, this.pressedCharacters, "start");
|
409
|
-
}
|
410
|
-
if (!isGrouped &&
|
411
|
-
((_a = menuOptionsFiltered[0]) === null || _a === void 0 ? void 0 : _a.label) !== this.emptyOptionListText) {
|
412
|
-
newFilteredOptions = menuOptionsFiltered;
|
413
|
-
}
|
414
|
-
else if (isGrouped) {
|
415
|
-
options.map((option) => {
|
416
|
-
if (this.includeGroupTitlesInSearch) {
|
417
|
-
if (menuOptionsFiltered.indexOf(option) !== -1) {
|
418
|
-
newFilteredOptions.push(option);
|
419
|
-
}
|
420
|
-
else {
|
421
|
-
newFilteredOptions.push(this.getFilteredChildMenuOptions(option));
|
422
|
-
}
|
423
|
-
}
|
424
|
-
else {
|
425
|
-
newFilteredOptions.push(this.getFilteredChildMenuOptions(option));
|
426
|
-
}
|
427
|
-
});
|
428
|
-
}
|
429
|
-
let noChildOptionsWhenFiltered = false;
|
430
|
-
if (isGrouped) {
|
431
|
-
noChildOptionsWhenFiltered = true;
|
432
|
-
newFilteredOptions.map((option) => {
|
433
|
-
if (option.children.length > 0) {
|
434
|
-
noChildOptionsWhenFiltered = false;
|
435
|
-
}
|
436
|
-
});
|
437
|
-
}
|
438
|
-
if (newFilteredOptions.length > 0 && !noChildOptionsWhenFiltered) {
|
439
|
-
this.noOptions = null;
|
440
|
-
this.filteredOptions = newFilteredOptions;
|
441
|
-
}
|
442
|
-
else {
|
443
|
-
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
444
|
-
this.filteredOptions = this.noOptions;
|
445
|
-
}
|
446
|
-
};
|
447
|
-
/**
|
448
|
-
* Put the select component into loading state.
|
449
|
-
* Replace options with the loading message. If timeout is enabled, set the timeout and once passed, replace options with the loading error message
|
450
|
-
*/
|
451
|
-
this.triggerLoading = () => {
|
452
|
-
this.hasTimedOut = false;
|
453
|
-
this.noOptions = [{ label: this.loadingLabel, value: "", loading: true }];
|
454
|
-
if (this.filteredOptions !== this.noOptions && this.searchable) {
|
455
|
-
this.filteredOptions = this.noOptions;
|
456
|
-
}
|
457
|
-
else if (this.uniqueOptions !== this.noOptions && !this.searchable) {
|
458
|
-
this.uniqueOptions = this.noOptions;
|
459
|
-
}
|
460
|
-
if (this.timeout) {
|
461
|
-
this.timeoutTimer = window.setTimeout(() => {
|
462
|
-
this.loading = false;
|
463
|
-
this.hasTimedOut = true;
|
464
|
-
this.noOptions = [
|
465
|
-
{ label: this.loadingErrorLabel, value: "", timedOut: true },
|
466
|
-
];
|
467
|
-
this.filteredOptions = this.noOptions;
|
468
|
-
if (!this.searchable)
|
469
|
-
this.uniqueOptions = this.noOptions;
|
470
|
-
}, this.timeout);
|
471
|
-
}
|
472
|
-
};
|
473
|
-
this.getValueFromLabel = (label) => {
|
474
|
-
var _a;
|
475
|
-
return (_a = this.uniqueOptions.find((option) => option.label === label)) === null || _a === void 0 ? void 0 : _a.value;
|
476
|
-
};
|
477
|
-
this.handleSearchableSelectInput = (event) => {
|
478
|
-
this.searchableSelectInputValue = event.target.value;
|
479
|
-
this.icInput.emit({ value: this.searchableSelectInputValue });
|
480
|
-
this.emitIcChange(this.searchableSelectInputValue);
|
481
|
-
this.hiddenInputValue = this.searchableSelectInputValue;
|
482
|
-
this.inputValueToFilter = this.searchableSelectInputValue;
|
483
|
-
this.setMenuChange(true);
|
484
|
-
if (!this.disableAutoFiltering) {
|
485
|
-
this.handleFilter();
|
486
|
-
this.debounceAriaLiveUpdate();
|
487
|
-
}
|
488
|
-
};
|
489
|
-
this.updateSearchableSelectResultAriaLive = () => {
|
490
|
-
const searchableSelectResultsStatusEl = this.el.shadowRoot.querySelector(".searchable-select-results-status");
|
491
|
-
if (searchableSelectResultsStatusEl) {
|
492
|
-
if (this.noOptions !== null) {
|
493
|
-
searchableSelectResultsStatusEl.innerText = this.emptyOptionListText;
|
494
|
-
}
|
495
|
-
else {
|
496
|
-
searchableSelectResultsStatusEl.innerText = "";
|
497
|
-
}
|
498
|
-
}
|
499
|
-
};
|
500
|
-
this.updateMultiSelectedCountAriaLive = () => {
|
501
|
-
var _a;
|
502
|
-
const multiSelectSelectedCountEl = this.el.shadowRoot.querySelector(".multi-select-selected-count");
|
503
|
-
const selectedCount = `${(_a = this.currValue) === null || _a === void 0 ? void 0 : _a.length} of ${getOptionsWithoutGroupTitlesCount(this.options)} selected`;
|
504
|
-
if (multiSelectSelectedCountEl &&
|
505
|
-
multiSelectSelectedCountEl.innerText !== selectedCount) {
|
506
|
-
multiSelectSelectedCountEl.innerText = selectedCount;
|
507
|
-
}
|
508
|
-
};
|
509
|
-
this.getDefaultValue = (value) => this.getLabelFromValue(value) || value || null;
|
510
|
-
this.setDefaultValue = () => {
|
511
|
-
if (!this.hasSetDefaultValue && this.currValue) {
|
512
|
-
this.searchableSelectInputValue =
|
513
|
-
this.searchable && this.getDefaultValue(this.currValue);
|
514
|
-
this.initialValue = this.currValue;
|
515
|
-
this.hasSetDefaultValue = true;
|
516
|
-
}
|
517
|
-
};
|
518
|
-
this.onFocus = () => {
|
519
|
-
this.icFocus.emit();
|
520
|
-
};
|
521
|
-
this.onBlur = (event) => {
|
522
|
-
var _a;
|
523
|
-
const target = event.relatedTarget;
|
524
|
-
if (target !== null &&
|
525
|
-
target.tagName === "UL" &&
|
526
|
-
target.className.includes("menu")) {
|
527
|
-
return;
|
528
|
-
}
|
529
|
-
const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
|
530
|
-
const isSearchableAndNoFocusedInternalElements = this.searchable &&
|
531
|
-
event.relatedTarget !== this.menu &&
|
532
|
-
!Array.from(this.menu.querySelectorAll("[role='option']")).includes(event.relatedTarget) &&
|
533
|
-
!(this.clearButton && event.relatedTarget === this.clearButton) &&
|
534
|
-
!(retryButton && event.relatedTarget === retryButton);
|
535
|
-
if (isSearchableAndNoFocusedInternalElements) {
|
536
|
-
if (!this.retryButtonClick) {
|
537
|
-
this.setMenuChange(false);
|
538
|
-
}
|
539
|
-
this.handleFocusIndicatorDisplay();
|
540
|
-
}
|
541
|
-
this.retryButtonClick = false;
|
542
|
-
this.icBlur.emit();
|
543
|
-
};
|
544
|
-
this.onTimeoutBlur = (ev) => {
|
545
|
-
if (ev.detail.ev.relatedTarget !==
|
546
|
-
this.searchableSelectElement &&
|
547
|
-
!this.blurredBecauseButtonPressed) {
|
548
|
-
this.setMenuChange(false);
|
549
|
-
this.handleFocusIndicatorDisplay();
|
550
|
-
this.icBlur.emit();
|
551
|
-
}
|
552
|
-
this.blurredBecauseButtonPressed = false;
|
553
|
-
};
|
554
|
-
this.handleFormReset = () => {
|
555
|
-
this.value = this.initialValue;
|
556
|
-
if (this.searchable) {
|
557
|
-
this.searchableSelectInputValue = this.getDefaultValue(this.value);
|
558
|
-
this.hiddenInputValue = this.value;
|
559
|
-
}
|
560
|
-
};
|
561
|
-
this.ariaActiveDescendant = undefined;
|
562
|
-
this.clearButtonFocused = false;
|
563
|
-
this.debounceIcChange = undefined;
|
564
|
-
this.hiddenInputValue = undefined;
|
565
|
-
this.noOptions = null;
|
566
|
-
this.open = false;
|
567
|
-
this.pressedCharacters = "";
|
568
|
-
this.searchableSelectInputValue = null;
|
569
|
-
this.disabled = false;
|
570
|
-
this.disableAutoFiltering = false;
|
571
|
-
this.emptyOptionListText = "No results found";
|
572
|
-
this.form = undefined;
|
573
|
-
this.fullWidth = false;
|
574
|
-
this.helperText = "";
|
575
|
-
this.hideLabel = false;
|
576
|
-
this.includeDescriptionsInSearch = false;
|
577
|
-
this.includeGroupTitlesInSearch = false;
|
578
|
-
this.label = undefined;
|
579
|
-
this.loadingErrorLabel = "Loading Error";
|
580
|
-
this.loadingLabel = "Loading...";
|
581
|
-
this.multiple = false;
|
582
|
-
this.name = this.inputId;
|
583
|
-
this.placeholder = "Select an option";
|
584
|
-
this.readonly = false;
|
585
|
-
this.required = false;
|
586
|
-
this.searchable = false;
|
587
|
-
this.searchMatchPosition = "anywhere";
|
588
|
-
this.selectOnEnter = false;
|
589
|
-
this.showClearButton = false;
|
590
|
-
this.size = "medium";
|
591
|
-
this.timeout = undefined;
|
592
|
-
this.validationStatus = "";
|
593
|
-
this.validationText = "";
|
594
|
-
this.loading = false;
|
595
|
-
this.options = [];
|
596
|
-
this.filteredOptions = this.options;
|
597
|
-
this.uniqueOptions = this.options;
|
598
|
-
this.debounce = 0;
|
599
|
-
this.currDebounce = this.debounce;
|
600
|
-
this.value = undefined;
|
601
|
-
this.initialValue = this.value;
|
602
|
-
this.inputValueToFilter = this.value;
|
603
|
-
this.currValue = this.value;
|
604
|
-
}
|
605
|
-
loadingHandler(newValue) {
|
606
|
-
newValue && this.triggerLoading();
|
607
|
-
}
|
608
|
-
watchOptionsHandler() {
|
609
|
-
if (!this.hasTimedOut && this.options !== this.noOptions) {
|
610
|
-
this.loading = false;
|
611
|
-
clearTimeout(this.timeoutTimer);
|
612
|
-
if (this.isExternalFiltering()) {
|
613
|
-
// When searchable select
|
614
|
-
if (this.options.length > 0) {
|
615
|
-
this.setOptionsValuesFromLabels();
|
616
|
-
this.noOptions = null;
|
617
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
618
|
-
this.filteredOptions = this.uniqueOptions;
|
619
|
-
}
|
620
|
-
else {
|
621
|
-
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
622
|
-
this.uniqueOptions = this.noOptions;
|
623
|
-
this.filteredOptions = this.noOptions;
|
624
|
-
}
|
625
|
-
this.updateSearchableSelectResultAriaLive();
|
626
|
-
this.setDefaultValue();
|
627
|
-
}
|
628
|
-
else {
|
629
|
-
this.setOptionsValuesFromLabels();
|
630
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
631
|
-
this.filteredOptions = this.uniqueOptions;
|
632
|
-
if (this.initialOptionsEmpty) {
|
633
|
-
this.setDefaultValue();
|
634
|
-
this.initialOptionsEmpty = false;
|
635
|
-
}
|
636
|
-
}
|
637
|
-
}
|
638
|
-
else {
|
639
|
-
if (!this.searchable)
|
640
|
-
this.options = this.noOptions;
|
641
|
-
}
|
642
|
-
}
|
643
|
-
debounceChangedHandler(newValue) {
|
644
|
-
this.updateOnChangeDebounce(newValue);
|
645
|
-
}
|
646
|
-
valueChangedHandler() {
|
647
|
-
if (this.value !== this.currValue) {
|
648
|
-
if (this.value && this.multiple) {
|
649
|
-
this.currValue = this.getValueSortedByOptions(this.value);
|
650
|
-
this.updateMultiSelectedCountAriaLive();
|
651
|
-
}
|
652
|
-
else {
|
653
|
-
this.currValue = this.value;
|
654
|
-
}
|
655
|
-
}
|
656
|
-
if (this.searchable) {
|
657
|
-
this.searchableSelectInputValue =
|
658
|
-
this.getLabelFromValue(this.currValue) ||
|
659
|
-
this.currValue;
|
660
|
-
}
|
661
|
-
}
|
662
|
-
disconnectedCallback() {
|
663
|
-
removeFormResetListener(this.el, this.handleFormReset);
|
664
|
-
}
|
665
|
-
componentWillLoad() {
|
666
|
-
this.inheritedAttributes = inheritAttributes(this.el, [
|
667
|
-
...IC_INHERITED_ARIA,
|
668
|
-
"tabindex",
|
669
|
-
"title",
|
670
|
-
]);
|
671
|
-
removeDisabledFalse(this.disabled, this.el);
|
672
|
-
this.setOptionsValuesFromLabels();
|
673
|
-
addFormResetListener(this.el, this.handleFormReset);
|
674
|
-
if (!this.options.length) {
|
675
|
-
this.initialOptionsEmpty = true;
|
676
|
-
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
677
|
-
this.uniqueOptions = this.noOptions;
|
678
|
-
this.filteredOptions = this.noOptions;
|
679
|
-
}
|
680
|
-
else {
|
681
|
-
this.setDefaultValue();
|
682
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
683
|
-
}
|
684
|
-
}
|
685
|
-
componentDidLoad() {
|
686
|
-
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Select");
|
687
|
-
if (this.loading) {
|
688
|
-
this.triggerLoading();
|
689
|
-
}
|
690
|
-
this.hiddenInputValue = this.searchable && this.currValue;
|
691
|
-
}
|
692
|
-
componentDidRender() {
|
693
|
-
if (this.nativeSelectElement && !this.disabled) {
|
694
|
-
this.setTextColor();
|
695
|
-
}
|
696
|
-
}
|
697
|
-
/**
|
698
|
-
* Sets focus on the input box.
|
699
|
-
*/
|
700
|
-
async setFocus() {
|
701
|
-
if (this.nativeSelectElement) {
|
702
|
-
this.nativeSelectElement.focus();
|
703
|
-
}
|
704
|
-
else if (this.customSelectElement) {
|
705
|
-
this.customSelectElement.focus();
|
706
|
-
}
|
707
|
-
else if (this.searchableSelectElement) {
|
708
|
-
this.searchableSelectElement.focus();
|
709
|
-
}
|
710
|
-
}
|
711
|
-
updateOnChangeDebounce(newValue) {
|
712
|
-
if (this.currDebounce !== newValue) {
|
713
|
-
this.currDebounce = newValue;
|
714
|
-
}
|
715
|
-
}
|
716
|
-
debounceAriaLiveUpdate() {
|
717
|
-
clearTimeout(this.debounceAria);
|
718
|
-
window.setTimeout(() => {
|
719
|
-
this.updateSearchableSelectResultAriaLive();
|
720
|
-
}, 800);
|
721
|
-
}
|
722
|
-
render() {
|
723
|
-
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, } = this;
|
724
|
-
// HTML inputs only accept 'string' for their value
|
725
|
-
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
726
|
-
renderHiddenInput(true, this.el, name, this.searchable ? this.hiddenInputValue : currValue, disabled);
|
727
|
-
const invalid = validationStatus === IcInformationStatus.Error ? "true" : "false";
|
728
|
-
const describedBy = getInputDescribedByText(this.inputId, helperText !== "", hasValidationStatus(this.validationStatus, this.disabled)).trim();
|
729
|
-
const optionsSelectedCount = `${currValue === null || currValue === void 0 ? void 0 : currValue.length} of ${getOptionsWithoutGroupTitlesCount(this.options)} selected`;
|
730
|
-
return (h(Host, { class: {
|
731
|
-
["ic-select-disabled"]: disabled,
|
732
|
-
["ic-select-searchable"]: searchable,
|
733
|
-
[`ic-select-${size}`]: size !== "medium",
|
734
|
-
["ic-select-full-width"]: fullWidth,
|
735
|
-
}, onBlur: this.onBlur }, h("ic-input-container", { readonly: readonly }, !hideLabel && (h("ic-input-label", { for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), h("ic-input-component-container", { ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, readonly ? (h("ic-typography", null, h("p", null, multiple
|
736
|
-
? this.getMultipleOptionsString(currValue)
|
737
|
-
: this.getLabelFromValue(currValue)))) : isMobileOrTablet() && !multiple ? (h("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: this.inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: this.form }, this.inheritedAttributes), h("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => {
|
738
|
-
if (option.children) {
|
739
|
-
return (h("optgroup", { label: option.label }, option.children.map((option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
|
740
|
-
}
|
741
|
-
else {
|
742
|
-
return (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label));
|
743
|
-
}
|
744
|
-
}))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: {
|
745
|
-
"select-input": true,
|
746
|
-
"with-clear-button": !!this.searchableSelectInputValue,
|
747
|
-
}, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": this.open ? "true" : "false", "aria-invalid": invalid, "aria-required": required ? "true" : "false", "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: this.inputId, value: this.searchableSelectInputValue, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: this.form }), this.searchableSelectInputValue &&
|
748
|
-
(showClearButton || searchable) && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue && currValue === null
|
749
|
-
? "Clear input"
|
750
|
-
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", appearance: this.clearButtonFocused
|
751
|
-
? IcThemeForegroundEnum.Light
|
752
|
-
: IcThemeForegroundEnum.Dark }), h("div", { class: "divider" }))), h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
753
|
-
"expand-icon": true,
|
754
|
-
"expand-icon-open": this.open,
|
755
|
-
}, innerHTML: Expand, "aria-hidden": "true" }), h("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (h("div", { class: "select-container" }, h("button", { class: "select-input", ref: (el) => (this.customSelectElement = el), id: this.inputId, "aria-label": `${label}, ${(multiple && currValue
|
756
|
-
? `${optionsSelectedCount}, ${this.getMultipleOptionsString(currValue)}`
|
757
|
-
: this.getLabelFromValue(currValue)) ||
|
758
|
-
placeholder}${required ? ", required" : ""}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": this.open ? "true" : "false", "aria-owns": menuId, "aria-controls": menuId, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("ic-typography", { variant: "body", class: {
|
759
|
-
"value-text": true,
|
760
|
-
"with-clear-button": currValue && showClearButton,
|
761
|
-
placeholder: !this.value || (multiple && this.value.length < 1),
|
762
|
-
} }, h("p", null, (multiple
|
763
|
-
? this.getMultipleOptionsString(currValue)
|
764
|
-
: this.getLabelFromValue(currValue)) ||
|
765
|
-
placeholder)), h("div", { class: "select-input-end" }, currValue && showClearButton && (h("div", { class: "divider" })), h("span", { class: {
|
766
|
-
"expand-icon": true,
|
767
|
-
"expand-icon-open": this.open,
|
768
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))), currValue && showClearButton && (h("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", appearance: this.clearButtonFocused
|
769
|
-
? IcThemeForegroundEnum.Light
|
770
|
-
: IcThemeForegroundEnum.Dark }))))), (!isMobileOrTablet() || multiple) && (h("ic-menu-with-multi", { class: {
|
771
|
-
"no-results": this.loading ||
|
772
|
-
this.hasTimedOut ||
|
773
|
-
(this.noOptions !== null &&
|
774
|
-
this.noOptions[0] &&
|
775
|
-
this.noOptions[0].label === this.emptyOptionListText),
|
776
|
-
}, ref: (el) => (this.menu = el), inputEl: searchable
|
777
|
-
? this.searchableSelectElement
|
778
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : this.uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: this.selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: this.searchable || multiple || this.selectOnEnter
|
779
|
-
? "manual"
|
780
|
-
: "automatic", closeOnSelect: !multiple })), this.multiple && (h("div", { "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(this.validationStatus, this.disabled) && (h("ic-input-validation", { class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: this.inputId })))));
|
781
|
-
}
|
782
|
-
static get delegatesFocus() { return true; }
|
783
|
-
get el() { return this; }
|
784
|
-
static get watchers() { return {
|
785
|
-
"loading": ["loadingHandler"],
|
786
|
-
"options": ["watchOptionsHandler"],
|
787
|
-
"debounce": ["debounceChangedHandler"],
|
788
|
-
"value": ["valueChangedHandler"]
|
789
|
-
}; }
|
790
|
-
static get style() { return icSelectCss; }
|
791
|
-
}, [17, "ic-select-with-multi", {
|
792
|
-
"disabled": [516],
|
793
|
-
"disableAutoFiltering": [4, "disable-auto-filtering"],
|
794
|
-
"emptyOptionListText": [1, "empty-option-list-text"],
|
795
|
-
"form": [1],
|
796
|
-
"fullWidth": [4, "full-width"],
|
797
|
-
"helperText": [1, "helper-text"],
|
798
|
-
"hideLabel": [4, "hide-label"],
|
799
|
-
"includeDescriptionsInSearch": [4, "include-descriptions-in-search"],
|
800
|
-
"includeGroupTitlesInSearch": [4, "include-group-titles-in-search"],
|
801
|
-
"label": [1],
|
802
|
-
"loadingErrorLabel": [1, "loading-error-label"],
|
803
|
-
"loadingLabel": [1, "loading-label"],
|
804
|
-
"multiple": [4],
|
805
|
-
"name": [1],
|
806
|
-
"placeholder": [1],
|
807
|
-
"readonly": [4],
|
808
|
-
"required": [4],
|
809
|
-
"searchable": [4],
|
810
|
-
"searchMatchPosition": [1, "search-match-position"],
|
811
|
-
"selectOnEnter": [4, "select-on-enter"],
|
812
|
-
"showClearButton": [4, "show-clear-button"],
|
813
|
-
"size": [1],
|
814
|
-
"timeout": [2],
|
815
|
-
"validationStatus": [1, "validation-status"],
|
816
|
-
"validationText": [1, "validation-text"],
|
817
|
-
"loading": [1028],
|
818
|
-
"options": [16],
|
819
|
-
"debounce": [2],
|
820
|
-
"value": [1025],
|
821
|
-
"ariaActiveDescendant": [32],
|
822
|
-
"clearButtonFocused": [32],
|
823
|
-
"debounceIcChange": [32],
|
824
|
-
"hiddenInputValue": [32],
|
825
|
-
"noOptions": [32],
|
826
|
-
"open": [32],
|
827
|
-
"pressedCharacters": [32],
|
828
|
-
"searchableSelectInputValue": [32],
|
829
|
-
"filteredOptions": [32],
|
830
|
-
"uniqueOptions": [32],
|
831
|
-
"currDebounce": [32],
|
832
|
-
"initialValue": [32],
|
833
|
-
"inputValueToFilter": [32],
|
834
|
-
"currValue": [32],
|
835
|
-
"setFocus": [64]
|
836
|
-
}, undefined, {
|
837
|
-
"loading": ["loadingHandler"],
|
838
|
-
"options": ["watchOptionsHandler"],
|
839
|
-
"debounce": ["debounceChangedHandler"],
|
840
|
-
"value": ["valueChangedHandler"]
|
841
|
-
}]);
|
842
|
-
function defineCustomElement$1() {
|
843
|
-
if (typeof customElements === "undefined") {
|
844
|
-
return;
|
845
|
-
}
|
846
|
-
const components = ["ic-select-with-multi", "ic-button", "ic-input-component-container", "ic-input-container", "ic-input-label", "ic-input-validation", "ic-loading-indicator", "ic-menu-with-multi", "ic-tooltip", "ic-typography"];
|
847
|
-
components.forEach(tagName => { switch (tagName) {
|
848
|
-
case "ic-select-with-multi":
|
849
|
-
if (!customElements.get(tagName)) {
|
850
|
-
customElements.define(tagName, Select);
|
851
|
-
}
|
852
|
-
break;
|
853
|
-
case "ic-button":
|
854
|
-
if (!customElements.get(tagName)) {
|
855
|
-
defineCustomElement$a();
|
856
|
-
}
|
857
|
-
break;
|
858
|
-
case "ic-input-component-container":
|
859
|
-
if (!customElements.get(tagName)) {
|
860
|
-
defineCustomElement$9();
|
861
|
-
}
|
862
|
-
break;
|
863
|
-
case "ic-input-container":
|
864
|
-
if (!customElements.get(tagName)) {
|
865
|
-
defineCustomElement$8();
|
866
|
-
}
|
867
|
-
break;
|
868
|
-
case "ic-input-label":
|
869
|
-
if (!customElements.get(tagName)) {
|
870
|
-
defineCustomElement$7();
|
871
|
-
}
|
872
|
-
break;
|
873
|
-
case "ic-input-validation":
|
874
|
-
if (!customElements.get(tagName)) {
|
875
|
-
defineCustomElement$6();
|
876
|
-
}
|
877
|
-
break;
|
878
|
-
case "ic-loading-indicator":
|
879
|
-
if (!customElements.get(tagName)) {
|
880
|
-
defineCustomElement$5();
|
881
|
-
}
|
882
|
-
break;
|
883
|
-
case "ic-menu-with-multi":
|
884
|
-
if (!customElements.get(tagName)) {
|
885
|
-
defineCustomElement$4();
|
886
|
-
}
|
887
|
-
break;
|
888
|
-
case "ic-tooltip":
|
889
|
-
if (!customElements.get(tagName)) {
|
890
|
-
defineCustomElement$3();
|
891
|
-
}
|
892
|
-
break;
|
893
|
-
case "ic-typography":
|
894
|
-
if (!customElements.get(tagName)) {
|
895
|
-
defineCustomElement$2();
|
896
|
-
}
|
897
|
-
break;
|
898
|
-
} });
|
899
|
-
}
|
900
|
-
|
901
|
-
const IcSelectWithMulti = Select;
|
902
|
-
const defineCustomElement = defineCustomElement$1;
|
903
|
-
|
904
|
-
export { IcSelectWithMulti, defineCustomElement };
|
905
|
-
|
906
|
-
//# sourceMappingURL=ic-select-with-multi.js.map
|