@ukic/web-components 3.21.0 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-3a796e7a.js → helpers-81cd6930.js} +3 -16
- package/dist/cjs/helpers-81cd6930.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-action-chip.cjs.entry.js +7 -3
- package/dist/cjs/ic-action-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +7 -3
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +13 -5
- 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-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +212 -80
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
- package/dist/cjs/ic-pagination-bar.cjs.entry.js +389 -0
- package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-pagination_3.cjs.entry.js +1412 -0
- package/dist/cjs/ic-pagination_3.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +11 -11
- 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-side-navigation.cjs.entry.js +18 -9
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-step.cjs.entry.js +14 -14
- 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 +5 -5
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -2
- 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-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +2 -2
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +8 -7
- 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.cjs.entry.js +3 -3
- package/dist/cjs/ic-top-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +1 -1
- package/dist/cjs/index-d337cd8a.js +12 -16
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/ic-action-chip/ic-action-chip.css +15 -2
- package/dist/collection/components/ic-action-chip/ic-action-chip.js +5 -1
- package/dist/collection/components/ic-action-chip/ic-action-chip.js.map +1 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +4 -5
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.css +15 -3
- package/dist/collection/components/ic-chip/ic-chip.js +5 -1
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +33 -5
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.stories.js +32 -0
- package/dist/collection/components/ic-menu/ic-menu.css +6 -1
- package/dist/collection/components/ic-menu/ic-menu.js +184 -53
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.css +104 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +895 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.stories.js +215 -0
- 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-popover-menu/ic-popover-menu.js +4 -4
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +10 -11
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.css +1 -2
- package/dist/collection/components/ic-select/ic-select.js +414 -589
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select.types.js +2 -0
- package/dist/collection/components/ic-select/ic-select.types.js.map +1 -0
- package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +26 -21
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +18 -9
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
- package/dist/collection/components/ic-step/ic-step.js +13 -13
- package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
- package/dist/collection/components/ic-switch/ic-switch.js +4 -4
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -2
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +7 -6
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
- package/dist/collection/utils/helpers.js +2 -15
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/components/helpers.js +3 -16
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-action-chip.js +6 -2
- package/dist/components/ic-action-chip.js.map +1 -1
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox.js +4 -4
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +6 -2
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +14 -5
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-menu2.js +213 -79
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-pagination-bar.d.ts +11 -0
- package/dist/components/ic-pagination-bar.js +523 -0
- package/dist/components/ic-pagination-bar.js.map +1 -0
- package/dist/components/ic-pagination.js +1 -375
- package/dist/components/ic-pagination.js.map +1 -1
- package/dist/{esm/ic-pagination.entry.js → components/ic-pagination2.js} +82 -11
- package/dist/components/ic-pagination2.js.map +1 -0
- package/dist/components/ic-popover-menu.js +4 -4
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +11 -11
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select.js +1 -994
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-select2.js +804 -0
- package/dist/components/ic-select2.js.map +1 -0
- package/dist/components/ic-side-navigation.js +18 -9
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skip-link.js +2 -2
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-step.js +13 -13
- package/dist/components/ic-stepper.js +2 -2
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +4 -4
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +1 -2
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-text-field.js +1 -528
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/{esm/ic-text-field.entry.js → components/ic-text-field2.js} +114 -11
- package/dist/components/ic-text-field2.js.map +1 -0
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +7 -6
- 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.js +2 -2
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-0a24c536.entry.js → p-05fd2707.entry.js} +2 -2
- package/dist/core/{p-85e15d01.entry.js → p-09505807.entry.js} +2 -2
- package/dist/core/{p-96bc7d24.entry.js → p-09caf7ed.entry.js} +2 -2
- package/dist/core/p-09caf7ed.entry.js.map +1 -0
- package/dist/core/{p-9057a186.entry.js → p-0b728f50.entry.js} +2 -2
- package/dist/core/{p-9057a186.entry.js.map → p-0b728f50.entry.js.map} +1 -1
- package/dist/core/p-0fb7f915.entry.js +2 -0
- package/dist/core/p-0fb7f915.entry.js.map +1 -0
- package/dist/core/{p-41a5da12.entry.js → p-1b81ec88.entry.js} +2 -2
- package/dist/core/{p-99951365.entry.js → p-2691cc80.entry.js} +2 -2
- package/dist/core/{p-94916588.entry.js → p-2a124daf.entry.js} +2 -2
- package/dist/core/{p-04c77b2d.entry.js → p-2b87c592.entry.js} +2 -2
- package/dist/core/{p-4aa56990.entry.js → p-2bd80913.entry.js} +2 -2
- package/dist/core/{p-aed1c7e7.entry.js → p-347cc084.entry.js} +2 -2
- package/dist/core/p-393af2bc.entry.js +2 -0
- package/dist/core/p-393af2bc.entry.js.map +1 -0
- package/dist/core/{p-a3dea729.entry.js → p-3aed13ba.entry.js} +2 -2
- package/dist/core/{p-8da90b72.entry.js → p-46fd555f.entry.js} +2 -2
- package/dist/core/{p-43cc0f1d.entry.js → p-48a628f0.entry.js} +2 -2
- package/dist/core/{p-9a4e067f.entry.js → p-4f56acff.entry.js} +2 -2
- package/dist/core/{p-3021290f.entry.js → p-506d428a.entry.js} +2 -2
- package/dist/core/{p-a1b2f483.entry.js → p-50dca790.entry.js} +2 -2
- package/dist/core/p-53ab3c0f.entry.js +2 -0
- package/dist/core/p-53ab3c0f.entry.js.map +1 -0
- package/dist/core/{p-feef7c2c.entry.js → p-56de4f4b.entry.js} +2 -2
- package/dist/core/{p-b4e322fe.entry.js → p-5900cb65.entry.js} +2 -2
- package/dist/core/{p-78a54069.entry.js → p-5976de6e.entry.js} +2 -2
- package/dist/core/{p-2af89564.entry.js → p-61d79fc6.entry.js} +2 -2
- package/dist/core/{p-2af89564.entry.js.map → p-61d79fc6.entry.js.map} +1 -1
- package/dist/core/p-659d048d.entry.js +2 -0
- package/dist/core/{p-1edf2689.entry.js → p-67de1290.entry.js} +2 -2
- package/dist/core/p-6b4ec95f.entry.js +3 -0
- package/dist/core/p-6b4ec95f.entry.js.map +1 -0
- package/dist/core/{p-f700b759.entry.js → p-73043f57.entry.js} +2 -2
- package/dist/core/{p-7b8e5926.entry.js → p-735d3096.entry.js} +2 -2
- package/dist/core/{p-07075461.entry.js → p-7b538fd1.entry.js} +2 -2
- package/dist/core/{p-cfd43558.entry.js → p-80d85403.entry.js} +2 -2
- package/dist/core/{p-7f279c8a.entry.js → p-83578f1d.entry.js} +2 -2
- package/dist/core/{p-7f279c8a.entry.js.map → p-83578f1d.entry.js.map} +1 -1
- package/dist/core/{p-b8c0c142.entry.js → p-880f7548.entry.js} +2 -2
- package/dist/core/p-880f7548.entry.js.map +1 -0
- package/dist/core/{p-79949920.entry.js → p-8a833e82.entry.js} +2 -2
- package/dist/core/{p-0aba9e31.entry.js → p-90678e67.entry.js} +2 -2
- package/dist/core/{p-a851eb65.entry.js → p-9502fb86.entry.js} +2 -2
- package/dist/core/{p-2ca7f050.entry.js → p-99433296.entry.js} +2 -2
- package/dist/core/p-99433296.entry.js.map +1 -0
- package/dist/core/{p-f6de08fb.entry.js → p-9c2b2cb9.entry.js} +2 -2
- package/dist/core/{p-949d08d3.entry.js → p-9cb83a2e.entry.js} +2 -2
- package/dist/core/{p-f0ecb80b.entry.js → p-a08d6b46.entry.js} +2 -2
- package/dist/core/p-a321feee.entry.js +2 -0
- package/dist/core/p-a321feee.entry.js.map +1 -0
- package/dist/core/{p-208f470f.entry.js → p-a780a34b.entry.js} +2 -2
- package/dist/core/{p-387b7bca.entry.js → p-aad03a3c.entry.js} +2 -2
- package/dist/core/{p-ec14c783.entry.js → p-aaf4e367.entry.js} +2 -2
- package/dist/core/{p-707ae6e9.entry.js → p-b52c44eb.entry.js} +2 -2
- package/dist/core/{p-716e7eaf.entry.js → p-b777f0a1.entry.js} +2 -2
- package/dist/core/p-b777f0a1.entry.js.map +1 -0
- package/dist/core/p-b77b1e1f.js +2 -0
- package/dist/core/p-b77b1e1f.js.map +1 -0
- package/dist/core/{p-780babc0.entry.js → p-b997ad5e.entry.js} +2 -2
- package/dist/core/{p-a0af1b0a.entry.js → p-bb7652cd.entry.js} +2 -2
- package/dist/core/{p-ded4cd76.entry.js → p-cbca04bb.entry.js} +2 -2
- package/dist/core/{p-99687bce.entry.js → p-cc64e5ef.entry.js} +2 -2
- package/dist/core/{p-812c5e61.entry.js → p-cfbacca1.entry.js} +2 -2
- package/dist/core/{p-0da2caa2.entry.js → p-daec7e69.entry.js} +2 -2
- package/dist/core/{p-1590fd69.entry.js → p-e7767c0d.entry.js} +2 -2
- package/dist/core/p-e938eb31.entry.js +2 -0
- package/dist/core/p-e938eb31.entry.js.map +1 -0
- package/dist/core/{p-dce11b9d.entry.js → p-ea7a3d30.entry.js} +2 -2
- package/dist/core/{p-880afd4b.entry.js → p-ebd688b9.entry.js} +2 -2
- package/dist/core/p-ebd688b9.entry.js.map +1 -0
- package/dist/core/{p-a674b13b.entry.js → p-ef70ea50.entry.js} +2 -2
- package/dist/core/{p-d25d0aad.entry.js → p-f64996f1.entry.js} +2 -2
- package/dist/core/{p-db17a793.entry.js → p-f661ba76.entry.js} +2 -2
- package/dist/core/{p-a03bb31c.entry.js → p-f84ac9c6.entry.js} +2 -2
- package/dist/core/{p-f3406b42.entry.js → p-fb9376f0.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-0f85537f.js → helpers-66681c73.js} +4 -17
- package/dist/esm/helpers-66681c73.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-action-chip.entry.js +7 -3
- package/dist/esm/ic-action-chip.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +1 -1
- package/dist/esm/ic-checkbox.entry.js +5 -5
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +7 -3
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +13 -5
- 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-dialog.entry.js +1 -1
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-empty-state.entry.js +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +1 -1
- package/dist/esm/ic-footer.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +212 -80
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +1 -1
- package/dist/esm/ic-link.entry.js +1 -1
- package/dist/esm/ic-menu-group.entry.js +1 -1
- package/dist/esm/ic-menu-item.entry.js +1 -1
- package/dist/esm/ic-navigation-button.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +1 -1
- package/dist/esm/ic-page-header.entry.js +1 -1
- package/dist/esm/ic-pagination-bar.entry.js +385 -0
- package/dist/esm/ic-pagination-bar.entry.js.map +1 -0
- package/dist/esm/ic-pagination-item.entry.js +1 -1
- package/dist/esm/ic-pagination_3.entry.js +1406 -0
- package/dist/esm/ic-pagination_3.entry.js.map +1 -0
- package/dist/esm/ic-popover-menu.entry.js +5 -5
- package/dist/esm/ic-radio-group.entry.js +1 -1
- package/dist/esm/ic-radio-option.entry.js +1 -1
- package/dist/esm/ic-search-bar.entry.js +11 -11
- 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-side-navigation.entry.js +18 -9
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js +2 -2
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-step.entry.js +14 -14
- package/dist/esm/ic-stepper.entry.js +3 -3
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +5 -5
- package/dist/esm/ic-tab-context.entry.js +1 -2
- 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-panel.entry.js +2 -2
- package/dist/esm/ic-tab.entry.js +1 -1
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +8 -7
- 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.entry.js +3 -3
- package/dist/esm/ic-top-navigation.entry.js +1 -1
- package/dist/esm/ic-typography.entry.js +1 -1
- package/dist/esm/index-a7a720e7.js +12 -16
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +4 -0
- package/dist/types/components/ic-menu/ic-menu.d.ts +11 -1
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +162 -0
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +8 -0
- package/dist/types/components/ic-select/ic-select.d.ts +53 -80
- package/dist/types/components/ic-select/ic-select.types.d.ts +43 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +3 -2
- package/dist/types/components.d.ts +234 -5
- package/dist/types/utils/helpers.d.ts +2 -4
- package/hydrate/index.js +1141 -771
- package/hydrate/index.mjs +1141 -771
- package/package.json +2 -2
- package/vscode-data.json +131 -0
- package/dist/cjs/helpers-3a796e7a.js.map +0 -1
- package/dist/cjs/ic-pagination.cjs.entry.js +0 -312
- package/dist/cjs/ic-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-select.cjs.entry.js +0 -879
- package/dist/cjs/ic-select.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +0 -433
- package/dist/cjs/ic-text-field.cjs.entry.js.map +0 -1
- package/dist/core/p-0d7fd892.entry.js +0 -2
- package/dist/core/p-29b61bb5.entry.js +0 -3
- package/dist/core/p-29b61bb5.entry.js.map +0 -1
- package/dist/core/p-2ca7f050.entry.js.map +0 -1
- package/dist/core/p-4aadabc8.entry.js +0 -2
- package/dist/core/p-4aadabc8.entry.js.map +0 -1
- package/dist/core/p-716e7eaf.entry.js.map +0 -1
- package/dist/core/p-808e1ef5.entry.js +0 -2
- package/dist/core/p-808e1ef5.entry.js.map +0 -1
- package/dist/core/p-880afd4b.entry.js.map +0 -1
- package/dist/core/p-8fe4e0ad.entry.js +0 -2
- package/dist/core/p-8fe4e0ad.entry.js.map +0 -1
- package/dist/core/p-96bc7d24.entry.js.map +0 -1
- package/dist/core/p-b8c0c142.entry.js.map +0 -1
- package/dist/core/p-c5b9519d.entry.js +0 -2
- package/dist/core/p-c5b9519d.entry.js.map +0 -1
- package/dist/core/p-d1730d4d.entry.js +0 -2
- package/dist/core/p-d1730d4d.entry.js.map +0 -1
- package/dist/core/p-dbc8bf0c.js +0 -2
- package/dist/core/p-dbc8bf0c.js.map +0 -1
- package/dist/core/p-fdb587ab.entry.js +0 -2
- package/dist/core/p-fdb587ab.entry.js.map +0 -1
- package/dist/esm/helpers-0f85537f.js.map +0 -1
- package/dist/esm/ic-pagination.entry.js.map +0 -1
- package/dist/esm/ic-select.entry.js +0 -875
- package/dist/esm/ic-select.entry.js.map +0 -1
- package/dist/esm/ic-text-field.entry.js.map +0 -1
- /package/dist/core/{p-0a24c536.entry.js.map → p-05fd2707.entry.js.map} +0 -0
- /package/dist/core/{p-85e15d01.entry.js.map → p-09505807.entry.js.map} +0 -0
- /package/dist/core/{p-41a5da12.entry.js.map → p-1b81ec88.entry.js.map} +0 -0
- /package/dist/core/{p-99951365.entry.js.map → p-2691cc80.entry.js.map} +0 -0
- /package/dist/core/{p-94916588.entry.js.map → p-2a124daf.entry.js.map} +0 -0
- /package/dist/core/{p-04c77b2d.entry.js.map → p-2b87c592.entry.js.map} +0 -0
- /package/dist/core/{p-4aa56990.entry.js.map → p-2bd80913.entry.js.map} +0 -0
- /package/dist/core/{p-aed1c7e7.entry.js.map → p-347cc084.entry.js.map} +0 -0
- /package/dist/core/{p-a3dea729.entry.js.map → p-3aed13ba.entry.js.map} +0 -0
- /package/dist/core/{p-8da90b72.entry.js.map → p-46fd555f.entry.js.map} +0 -0
- /package/dist/core/{p-43cc0f1d.entry.js.map → p-48a628f0.entry.js.map} +0 -0
- /package/dist/core/{p-9a4e067f.entry.js.map → p-4f56acff.entry.js.map} +0 -0
- /package/dist/core/{p-3021290f.entry.js.map → p-506d428a.entry.js.map} +0 -0
- /package/dist/core/{p-a1b2f483.entry.js.map → p-50dca790.entry.js.map} +0 -0
- /package/dist/core/{p-feef7c2c.entry.js.map → p-56de4f4b.entry.js.map} +0 -0
- /package/dist/core/{p-b4e322fe.entry.js.map → p-5900cb65.entry.js.map} +0 -0
- /package/dist/core/{p-78a54069.entry.js.map → p-5976de6e.entry.js.map} +0 -0
- /package/dist/core/{p-0d7fd892.entry.js.map → p-659d048d.entry.js.map} +0 -0
- /package/dist/core/{p-1edf2689.entry.js.map → p-67de1290.entry.js.map} +0 -0
- /package/dist/core/{p-f700b759.entry.js.map → p-73043f57.entry.js.map} +0 -0
- /package/dist/core/{p-7b8e5926.entry.js.map → p-735d3096.entry.js.map} +0 -0
- /package/dist/core/{p-07075461.entry.js.map → p-7b538fd1.entry.js.map} +0 -0
- /package/dist/core/{p-cfd43558.entry.js.map → p-80d85403.entry.js.map} +0 -0
- /package/dist/core/{p-79949920.entry.js.map → p-8a833e82.entry.js.map} +0 -0
- /package/dist/core/{p-0aba9e31.entry.js.map → p-90678e67.entry.js.map} +0 -0
- /package/dist/core/{p-a851eb65.entry.js.map → p-9502fb86.entry.js.map} +0 -0
- /package/dist/core/{p-f6de08fb.entry.js.map → p-9c2b2cb9.entry.js.map} +0 -0
- /package/dist/core/{p-949d08d3.entry.js.map → p-9cb83a2e.entry.js.map} +0 -0
- /package/dist/core/{p-f0ecb80b.entry.js.map → p-a08d6b46.entry.js.map} +0 -0
- /package/dist/core/{p-208f470f.entry.js.map → p-a780a34b.entry.js.map} +0 -0
- /package/dist/core/{p-387b7bca.entry.js.map → p-aad03a3c.entry.js.map} +0 -0
- /package/dist/core/{p-ec14c783.entry.js.map → p-aaf4e367.entry.js.map} +0 -0
- /package/dist/core/{p-707ae6e9.entry.js.map → p-b52c44eb.entry.js.map} +0 -0
- /package/dist/core/{p-780babc0.entry.js.map → p-b997ad5e.entry.js.map} +0 -0
- /package/dist/core/{p-a0af1b0a.entry.js.map → p-bb7652cd.entry.js.map} +0 -0
- /package/dist/core/{p-ded4cd76.entry.js.map → p-cbca04bb.entry.js.map} +0 -0
- /package/dist/core/{p-99687bce.entry.js.map → p-cc64e5ef.entry.js.map} +0 -0
- /package/dist/core/{p-812c5e61.entry.js.map → p-cfbacca1.entry.js.map} +0 -0
- /package/dist/core/{p-0da2caa2.entry.js.map → p-daec7e69.entry.js.map} +0 -0
- /package/dist/core/{p-1590fd69.entry.js.map → p-e7767c0d.entry.js.map} +0 -0
- /package/dist/core/{p-dce11b9d.entry.js.map → p-ea7a3d30.entry.js.map} +0 -0
- /package/dist/core/{p-a674b13b.entry.js.map → p-ef70ea50.entry.js.map} +0 -0
- /package/dist/core/{p-d25d0aad.entry.js.map → p-f64996f1.entry.js.map} +0 -0
- /package/dist/core/{p-db17a793.entry.js.map → p-f661ba76.entry.js.map} +0 -0
- /package/dist/core/{p-a03bb31c.entry.js.map → p-f84ac9c6.entry.js.map} +0 -0
- /package/dist/core/{p-f3406b42.entry.js.map → p-fb9376f0.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -3291,7 +3291,6 @@ const IC_TAB_CONTEXT = "IC-TAB-CONTEXT";
|
|
|
3291
3291
|
const IC_TEXT_FIELD = "IC-TEXT-FIELD";
|
|
3292
3292
|
|
|
3293
3293
|
const DARK_MODE_THRESHOLD = 133.3505;
|
|
3294
|
-
const ANYWHERE_SEARCH_POSITION = "anywhere";
|
|
3295
3294
|
const icInput = "ic-input";
|
|
3296
3295
|
/**
|
|
3297
3296
|
* Used to inherit global attributes set on the host. Called in componentWillLoad and assigned
|
|
@@ -3495,25 +3494,13 @@ const getLabelFromValue = (value, options, valueField = "value", labelField = "l
|
|
|
3495
3494
|
/**
|
|
3496
3495
|
* Filters the options based on the search string.
|
|
3497
3496
|
* @param options - array of options
|
|
3498
|
-
* @param includeDescriptions - determines whether option descriptions are included when filtering options
|
|
3499
3497
|
* @param searchString - string used to filter the options
|
|
3500
|
-
* @param position - whether the search string matches the start of or anywhere in the options
|
|
3501
3498
|
* @returns filtered array of options
|
|
3502
3499
|
*/
|
|
3503
|
-
const getFilteredMenuOptions = (options,
|
|
3504
|
-
var _a;
|
|
3500
|
+
const getFilteredMenuOptions = (options, searchString, labelField = "label") => options.filter((option) => {
|
|
3505
3501
|
const label = option[labelField].toLowerCase();
|
|
3506
|
-
const description = (_a = option.description) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
3507
3502
|
const lowerSearchString = searchString.toLowerCase();
|
|
3508
|
-
return
|
|
3509
|
-
? includeDescriptions
|
|
3510
|
-
? label.includes(lowerSearchString) ||
|
|
3511
|
-
(description === null || description === void 0 ? void 0 : description.includes(lowerSearchString))
|
|
3512
|
-
: label.includes(lowerSearchString)
|
|
3513
|
-
: includeDescriptions
|
|
3514
|
-
? label.startsWith(lowerSearchString) ||
|
|
3515
|
-
(description === null || description === void 0 ? void 0 : description.startsWith(lowerSearchString))
|
|
3516
|
-
: label.startsWith(lowerSearchString);
|
|
3503
|
+
return label.includes(lowerSearchString);
|
|
3517
3504
|
});
|
|
3518
3505
|
/**
|
|
3519
3506
|
* Gets count of options where only group title "parent" options have been removed.
|
|
@@ -4212,7 +4199,7 @@ class AccordionGroup {
|
|
|
4212
4199
|
|
|
4213
4200
|
var OpenInNew = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></svg>`;
|
|
4214
4201
|
|
|
4215
|
-
const icActionChipCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n:host {\n display: inline-block;\n max-width: 100%;\n vertical-align: middle;\n}\n\n.chip {\n --icon-color: var(--ic-action-chip-filled-icon);\n --text-color: var(--ic-action-chip-filled-label);\n --ic-typography-color: var(--text-color);\n\n align-items: center;\n background-color: var(--ic-action-chip-filled-background-default);\n border: var(--ic-border-width) solid transparent;\n border-radius: var(--ic-space-md);\n color: var(--text-color);\n cursor: pointer;\n display: flex;\n padding: calc(var(--ic-space-xxs) - var(--ic-space-1px)) var(--ic-space-xxs);\n position: relative;\n text-decoration: none;\n\n &:hover {\n background-color: var(--ic-action-chip-filled-background-hover);\n }\n\n &:active {\n background-color: var(--ic-action-chip-filled-background-pressed);\n }\n\n &:focus {\n box-shadow: var(--ic-border-focus);\n outline: var(--ic-hc-focus-outline);\n z-index: 1;\n }\n}\n\n.small {\n border-radius: calc(var(--ic-space-md) - var(--ic-space-xxxs));\n padding: var(--ic-space-1px) var(--ic-space-xxxs);\n}\n\n.large {\n border-radius: calc(var(--ic-space-md) + var(--ic-space-xxs));\n padding: calc(var(--ic-space-xs) - var(--ic-space-1px)) var(--ic-space-xs);\n}\n\n.outlined {\n --icon-color: var(--ic-action-chip-outlined-icon);\n --text-color: var(--ic-action-chip-outlined-label);\n\n background-color: transparent;\n border-color: var(--ic-action-chip-outlined-border-default);\n\n &.non-transparent {\n background-color: var(--ic-action-chip-outlined-background-default);\n }\n\n &:hover {\n --icon-color: var(--ic-action-chip-outlined-icon-hover);\n --text-color: var(--ic-action-chip-outlined-label-hover);\n\n background-color: var(--ic-action-chip-outlined-background-hover);\n border-color: var(--ic-action-chip-outlined-border-hover);\n }\n\n &:active {\n --icon-color: var(--ic-action-chip-outlined-icon-pressed);\n --text-color: var(--ic-action-chip-outlined-label-pressed);\n\n background-color: var(--ic-action-chip-outlined-background-pressed);\n border-color: var(--ic-action-chip-outlined-border-pressed);\n }\n}\n\n.monochrome {\n &.filled {\n background-color: var(\n --ic-action-chip-monochrome-filled-background-default\n );\n\n &:hover {\n background-color: var(\n --ic-action-chip-monochrome-filled-background-hover\n );\n }\n\n &:active {\n background-color: var(\n --ic-action-chip-monochrome-filled-background-pressed\n );\n }\n }\n\n &.outlined {\n --icon-color: var(--ic-action-chip-monochrome-outlined-icon);\n --text-color: var(--ic-action-chip-monochrome-outlined-label);\n\n border-color: var(--ic-action-chip-monochrome-outlined-border-default);\n\n &.non-transparent {\n background-color: var(\n --ic-action-chip-monochrome-outlined-background-default\n );\n }\n\n &:hover {\n --icon-color: var(--ic-action-chip-monochrome-outlined-icon-hover);\n --text-color: var(--ic-action-chip-monochrome-outlined-label-hover);\n\n background-color: var(\n --ic-action-chip-monochrome-outlined-background-hover\n );\n border-color: var(--ic-action-chip-monochrome-outlined-border-hover);\n }\n\n &:active {\n --icon-color: var(--ic-action-chip-monochrome-outlined-icon-pressed);\n --text-color: var(--ic-action-chip-monochrome-outlined-label-pressed);\n\n background-color: var(\n --ic-action-chip-monochrome-outlined-background-pressed\n );\n border-color: var(--ic-action-chip-monochrome-outlined-border-pressed);\n }\n }\n}\n\n.disabled {\n --icon-color: var(--ic-action-chip-icon-disabled) !important;\n --text-color: var(--ic-action-chip-label-disabled) !important;\n\n background-color: var(--ic-action-chip-background-disabled) !important;\n cursor: default;\n\n &.outlined {\n border-color: var(--ic-action-chip-outlined-border-disabled) !important;\n border-style: dashed;\n\n &:not(.non-transparent) {\n background-color: transparent !important;\n }\n }\n}\n\n.label {\n padding: 0 var(--ic-space-xs);\n}\n\n.icon {\n box-sizing: border-box;\n color: var(--icon-color);\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n padding: var(--ic-space-xxxs);\n}\n\n.open-in-new-icon {\n box-sizing: border-box;\n height: var(--ic-space-md);\n width: var(--ic-space-md);\n}\n\n.open-in-new-icon > svg {\n fill: var(--icon-color);\n height: inherit;\n width: inherit;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .chip {\n transition: var(--ic-easing-transition-fast);\n }\n}\n\n@media (forced-colors: active) {\n .chip {\n border: var(--ic-border-hc);\n\n &.disabled {\n --text-color: GrayText;\n\n -webkit-appearance: none;\n\n -moz-appearance: none;\n\n appearance: none;\n border-color: GrayText;\n\n svg,\n ::slotted(svg) {\n fill: GrayText;\n }\n }\n\n &:focus {\n border-color: Highlight;\n outline: none;\n }\n }\n}\n";
|
|
4202
|
+
const icActionChipCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n:host {\n display: inline-block;\n max-width: 100%;\n vertical-align: middle;\n}\n\n.chip {\n --icon-color: var(--ic-action-chip-filled-icon);\n --text-color: var(--ic-action-chip-filled-label);\n --ic-typography-color: var(--text-color);\n\n align-items: center;\n background-color: var(--ic-action-chip-filled-background-default);\n border: var(--ic-border-width) solid transparent;\n border-radius: var(--ic-space-md);\n color: var(--text-color);\n cursor: pointer;\n display: flex;\n padding: calc(var(--ic-space-xxs) - var(--ic-space-1px)) var(--ic-space-xxs);\n position: relative;\n text-decoration: none;\n\n &:hover {\n background-color: var(--ic-action-chip-filled-background-hover);\n }\n\n &:active {\n background-color: var(--ic-action-chip-filled-background-pressed);\n }\n\n &:focus {\n box-shadow: var(--ic-border-focus);\n outline: var(--ic-hc-focus-outline);\n z-index: 1;\n }\n}\n\n.small {\n border-radius: calc(var(--ic-space-md) - var(--ic-space-xxxs));\n padding: var(--ic-space-1px) var(--ic-space-xs);\n}\n\n.medium {\n border-radius: var(--ic-space-md);\n padding: calc(var(--ic-space-xxs) - var(--ic-space-1px)) var(--ic-space-xs);\n}\n\n.large {\n border-radius: calc(var(--ic-space-md) + var(--ic-space-xxs));\n padding: calc(var(--ic-space-xs) - var(--ic-space-1px)) var(--ic-space-xs);\n}\n\n.outlined {\n --icon-color: var(--ic-action-chip-outlined-icon);\n --text-color: var(--ic-action-chip-outlined-label);\n\n background-color: transparent;\n border-color: var(--ic-action-chip-outlined-border-default);\n\n &.non-transparent {\n background-color: var(--ic-action-chip-outlined-background-default);\n }\n\n &:hover {\n --icon-color: var(--ic-action-chip-outlined-icon-hover);\n --text-color: var(--ic-action-chip-outlined-label-hover);\n\n background-color: var(--ic-action-chip-outlined-background-hover);\n border-color: var(--ic-action-chip-outlined-border-hover);\n }\n\n &:active {\n --icon-color: var(--ic-action-chip-outlined-icon-pressed);\n --text-color: var(--ic-action-chip-outlined-label-pressed);\n\n background-color: var(--ic-action-chip-outlined-background-pressed);\n border-color: var(--ic-action-chip-outlined-border-pressed);\n }\n}\n\n.monochrome {\n &.filled {\n background-color: var(\n --ic-action-chip-monochrome-filled-background-default\n );\n\n &:hover {\n background-color: var(\n --ic-action-chip-monochrome-filled-background-hover\n );\n }\n\n &:active {\n background-color: var(\n --ic-action-chip-monochrome-filled-background-pressed\n );\n }\n }\n\n &.outlined {\n --icon-color: var(--ic-action-chip-monochrome-outlined-icon);\n --text-color: var(--ic-action-chip-monochrome-outlined-label);\n\n border-color: var(--ic-action-chip-monochrome-outlined-border-default);\n\n &.non-transparent {\n background-color: var(\n --ic-action-chip-monochrome-outlined-background-default\n );\n }\n\n &:hover {\n --icon-color: var(--ic-action-chip-monochrome-outlined-icon-hover);\n --text-color: var(--ic-action-chip-monochrome-outlined-label-hover);\n\n background-color: var(\n --ic-action-chip-monochrome-outlined-background-hover\n );\n border-color: var(--ic-action-chip-monochrome-outlined-border-hover);\n }\n\n &:active {\n --icon-color: var(--ic-action-chip-monochrome-outlined-icon-pressed);\n --text-color: var(--ic-action-chip-monochrome-outlined-label-pressed);\n\n background-color: var(\n --ic-action-chip-monochrome-outlined-background-pressed\n );\n border-color: var(--ic-action-chip-monochrome-outlined-border-pressed);\n }\n }\n}\n\n.disabled {\n --icon-color: var(--ic-action-chip-icon-disabled) !important;\n --text-color: var(--ic-action-chip-label-disabled) !important;\n\n background-color: var(--ic-action-chip-background-disabled) !important;\n cursor: default;\n\n &.outlined {\n border-color: var(--ic-action-chip-outlined-border-disabled) !important;\n border-style: dashed;\n\n &:not(.non-transparent) {\n background-color: transparent !important;\n }\n }\n}\n\n.label.small {\n padding: 0 var(--ic-space-xxs);\n}\n\n.label.medium {\n padding: 0 calc(var(--ic-space-xs) - var(--ic-space-xxxs));\n}\n\n.label.large {\n padding: 0 var(--ic-space-xs);\n}\n\n.icon {\n box-sizing: border-box;\n color: var(--icon-color);\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n padding: var(--ic-space-xxxs);\n}\n\n.open-in-new-icon {\n box-sizing: border-box;\n height: var(--ic-space-md);\n width: var(--ic-space-md);\n}\n\n.open-in-new-icon > svg {\n fill: var(--icon-color);\n height: inherit;\n width: inherit;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .chip {\n transition: var(--ic-easing-transition-fast);\n }\n}\n\n@media (forced-colors: active) {\n .chip {\n border: var(--ic-border-hc);\n\n &.disabled {\n --text-color: GrayText;\n\n -webkit-appearance: none;\n\n -moz-appearance: none;\n\n appearance: none;\n border-color: GrayText;\n\n svg,\n ::slotted(svg) {\n fill: GrayText;\n }\n }\n\n &:focus {\n border-color: Highlight;\n outline: none;\n }\n }\n}\n";
|
|
4216
4203
|
var IcActionChipStyle0 = icActionChipCss;
|
|
4217
4204
|
|
|
4218
4205
|
/**
|
|
@@ -4311,7 +4298,11 @@ class ActionChip {
|
|
|
4311
4298
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
|
4312
4299
|
[`${size}`]: true,
|
|
4313
4300
|
[`${variant}`]: true,
|
|
4314
|
-
}, ref: (el) => (this.chipEl = el) }, chipAttrs), isSlotUsed(this.el, "icon") && (hAsync("div", { key: 'cac34c4420e0b92337b4421088389e79dc2d3e78', class: "icon" }, hAsync("slot", { key: 'fbbdfcf2089a6a31785a33ddc74c66ad433ebe4c', name: "icon" }))), hAsync("ic-typography", { key: '
|
|
4301
|
+
}, ref: (el) => (this.chipEl = el) }, chipAttrs), isSlotUsed(this.el, "icon") && (hAsync("div", { key: 'cac34c4420e0b92337b4421088389e79dc2d3e78', class: "icon" }, hAsync("slot", { key: 'fbbdfcf2089a6a31785a33ddc74c66ad433ebe4c', name: "icon" }))), hAsync("ic-typography", { key: '40643c5bb5b15a64a94913076d06ba0007bac14a', variant: "label", class: {
|
|
4302
|
+
label: true,
|
|
4303
|
+
[`${size}`]: true,
|
|
4304
|
+
"in-ag-grid": isElInAGGrid(this.el),
|
|
4305
|
+
} }, hAsync("span", { key: '84e78294e0f906e9348d0223bd6afb92b90f4263' }, label)), !isButtonElement && target === "_blank" && (hAsync("span", { key: '8767227d1ed7c1822fff1fe71103a26587b00d6e', class: "open-in-new-icon", innerHTML: OpenInNew })), isSlotUsed(this.el, "badge") && hAsync("slot", { key: '8b791d90dadc0a781c88d1a68542929b73495858', name: "badge" }))));
|
|
4315
4306
|
}
|
|
4316
4307
|
static get delegatesFocus() { return true; }
|
|
4317
4308
|
get el() { return getElement(this); }
|
|
@@ -5263,7 +5254,7 @@ var arrowDropdown = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
|
5263
5254
|
const icButtonCss = "/*! 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:inline-block;position:relative;--icon-width:100%;--icon-height:100%}.button,::slotted(a){font-family:var(--ic-font-body-family);text-decoration:none;font-weight:600;font-size:0.875rem;transition:var(--ic-easing-transition-fast);border-radius:var(--ic-border-radius);min-width:var(--min-width, 6.25rem);display:inline-flex;flex-direction:row;justify-content:center;align-items:center;background:none;border:none;box-sizing:border-box;white-space:nowrap;vertical-align:middle}:host(.with-badge) .button{border-radius:0.2188rem}.button:hover,::slotted(a:hover){cursor:pointer}.button:focus,::slotted(a:focus){box-shadow:var(--ic-border-focus)}.button:focus-visible,::slotted(a:focus-visible){outline:var(--ic-hc-focus-outline)}:host(.ic-button-disabled),:host(.ic-button-disabled) .button,:host(.ic-button-disabled) ::slotted(a),:host(.ic-button-loading),:host(.ic-button-loading) .button{pointer-events:none}:host(.top-icon) .button{flex-direction:column;--height:fit-content}:host(.top-icon) .button .icon-container{margin-right:0}:host(.ic-button-variant-primary) .button,:host(.ic-button-variant-icon-primary) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background)}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon)}:host(.ic-button-variant-primary) ::slotted(a),:host(.ic-button-variant-icon-primary) ::slotted(a){--ic-typography-color:var(--ic-button-primary-text);color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background) !important}:host(.ic-button-variant-primary) .button:hover,:host(.ic-button-variant-icon-primary) .button:hover{background-color:var(--ic-button-primary-background-hover)}:host(.ic-button-variant-primary) ::slotted(a:hover),:host(.ic-button-variant-icon-primary) ::slotted(a:hover){background-color:var(--ic-button-primary-background-hover) !important}:host(.ic-button-variant-primary.ic-button-loading) .button,:host(.ic-button-variant-primary) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading) .button,:host(.ic-button-variant-icon-primary) .button:active{background-color:var(--ic-button-primary-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-primary-background-pressed)}:host(.ic-button-variant-primary) ::slotted(a:active),:host(.ic-button-variant-icon-primary) ::slotted(a:active){background-color:var(--ic-button-primary-background-pressed) !important}:host(.ic-button-variant-primary.ic-button-disabled) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled) .button{background:var(--ic-button-primary-background-disabled);color:var(--ic-button-primary-text-disabled)}:host(.ic-button-variant-primary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled) ::slotted(a){background:var(--ic-button-primary-background-disabled) !important;--ic-typography-color:var(--ic-button-primary-text-disabled) !important;color:var(--ic-button-primary-text-disabled) !important}:host(.ic-button-variant-primary.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button{color:var(--ic-button-primary-text-monochrome);background-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a){background-color:var(--ic-button-primary-background-monochrome) !important}:host(.ic-button-variant-primary.monochrome) .button:hover,:host(.ic-button-variant-icon-primary.monochrome) .button:hover{background-color:var(--ic-button-primary-background-hover-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-primary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-primary.monochrome) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button:active{background-color:var(--ic-button-primary-background-pressed-monochrome);--button-loading-inner-color:var(--ic-button-primary-text-monochrome);--button-loading-outer-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-primary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) .button{background-color:var(--ic-button-primary-background-disabled-monochrome);color:var(--ic-button-primary-text-disabled-monochrome)}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) ::slotted(a){background-color:var(\n --ic-button-primary-background-disabled-monochrome\n ) !important}:host(.ic-button-variant-secondary) .button,:host(.ic-button-variant-icon-secondary) .button{border:var(--ic-border-width) solid var(--ic-button-secondary-border);color:var(--ic-button-secondary-text)}:host(.ic-button-variant-secondary) ::slotted(a),:host(.ic-button-variant-icon-secondary) ::slotted(a){border:var(--ic-border-width) solid var(--ic-button-secondary-border) !important;color:var(--ic-button-secondary-text) !important;--ic-typography-color:var(--ic-button-secondary-text) !important}:host(.ic-button-variant-secondary) .button:hover,:host(.ic-button-variant-icon-secondary) .button:hover{background-color:var(--ic-button-secondary-background-hover-active);border-color:var(--ic-button-secondary-border-hover);color:var(--ic-button-secondary-text-hover-active)}:host(.ic-button-variant-secondary) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-active\n ) !important}:host(.ic-button-variant-secondary) .button:active,:host(.ic-button-variant-icon-secondary) .button:active{border-color:var(--ic-button-secondary-border-pressed);background-color:var(--ic-button-secondary-background-pressed-active);color:var(--ic-button-secondary-text-pressed-active)}:host(.ic-button-variant-secondary) ::slotted(a:active),:host(.ic-button-variant-icon-secondary) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-active\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading) .button{border-color:var(--ic-button-secondary-border-pressed);background-color:var(\n --loading-button-background,\n var(--ic-button-secondary-background-pressed-active)\n ) !important;color:var(--ic-button-secondary-text-pressed-active);--button-loading-inner-color:var(--ic-button-secondary-border-pressed);--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-active\n )}:host(.ic-button-variant-secondary.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled) .button{border-color:var(--ic-button-secondary-border-disabled);color:var(--ic-button-secondary-text-disabled);background:none}:host(.ic-button-variant-secondary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background) .button,:host(.ic-button-variant-icon-secondary.background) .button{background-color:var(--ic-button-secondary-background)}:host(.ic-button-variant-secondary.background) ::slotted(a),:host(.ic-button-variant-icon-secondary.background) ::slotted(a){background-color:var(--ic-button-secondary-background) !important}:host(.ic-button-variant-secondary.background) .button:hover,:host(.ic-button-variant-icon-secondary.background) .button:hover{background-image:var(--ic-button-secondary-background-non-transparent-hover)}:host(.ic-button-variant-secondary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-secondary.background) .button:active,:host(.ic-button-variant-icon-secondary.background) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-active\n )}:host(.ic-button-variant-secondary.background) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button,:host(.ic-button-variant-icon-secondary.monochrome) .button{background-color:none;border:var(--ic-border-width) solid\n var(--ic-button-secondary-border-monochrome);color:var(--ic-button-secondary-text-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a){background-color:none !important}:host(.ic-button-variant-secondary.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.monochrome) .button:hover{background-color:var(--ic-button-secondary-background-hover-monochrome);border-color:var(--ic-button-secondary-border-hover-monochrome);color:var(--ic-button-secondary-text-hover-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.monochrome) .button:active{background-color:var(--ic-button-secondary-background-pressed-monochrome);border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading.monochrome) .button{background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important;border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-secondary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-monochrome\n )}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) .button{background:none;border-color:var(--ic-button-secondary-border-disabled-monochrome);color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background.monochrome) .button,:host(.ic-button-variant-icon-secondary.background.monochrome) .button{background-color:var(--ic-button-secondary-background-monochrome)}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a){background-color:var(--ic-button-secondary-background-monochrome) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:hover{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-tertiary) .button,:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-tertiary) ::slotted(a),:host(.ic-button-variant-icon-tertiary) ::slotted(a){color:var(--ic-button-tertiary-text-active);--ic-typography-color:var(--ic-button-tertiary-text-active)}:host(.ic-button-variant-tertiary) .button:hover,:host(.ic-button-variant-icon-tertiary) .button:hover{background-color:var(--ic-button-tertiary-background-hover-active);color:var(--ic-button-tertiary-text-hover-active)}:host(.ic-button-variant-tertiary) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-active\n ) !important}:host(.ic-button-variant-tertiary) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading) .button,:host(.ic-button-variant-icon-tertiary) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading) .button{background-color:var(--ic-button-tertiary-background-pressed-active);color:var(--ic-button-tertiary-text-pressed-active);--button-loading-inner-color:var(--ic-button-tertiary-text-pressed-active);--button-loading-outer-color:var(--ic-button-tertiary-background-pressed)}:host(.ic-button-variant-tertiary) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-active\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled) .button{color:var(--ic-button-tertiary-text-disabled);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background) .button,:host(.ic-button-variant-icon-tertiary.background) .button{background-color:var(--ic-button-tertiary-background)}:host(.ic-button-variant-tertiary.background) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a){background-color:var(--ic-button-tertiary-background) !important}:host(.ic-button-variant-tertiary.background) .button:hover,:host(.ic-button-variant-icon-tertiary.background) .button:hover{background-image:var(--ic-button-tertiary-background-non-transparent-hover)}:host(.ic-button-variant-tertiary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-tertiary.background) .button:active,:host(.ic-button-variant-icon-tertiary.background) .button:active{background-image:var(--ic-button-tertiary-background-non-transparent-active)}:host(.ic-button-variant-tertiary.background) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button,:host(.ic-button-variant-tertiary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a){color:var(--ic-button-tertiary-text-monochrome);--ic-typography-color:var(--ic-button-tertiary-text-monochrome)}:host(.ic-button-variant-tertiary.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.monochrome) .button:hover{background-color:var(--ic-button-tertiary-background-hover-monochrome);color:var(--ic-button-tertiary-text-hover-monochrome)}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading.monochrome) .button{background-color:var(--ic-button-tertiary-background-pressed-monochrome);color:var(--ic-button-tertiary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-tertiary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n )}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) .button{color:var(--ic-button-tertiary-text-disabled-monochrome);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background.monochrome) .button,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button{background-color:var(--ic-button-tertiary-background-monochrome)}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a){background-color:var(--ic-button-tertiary-background-monochrome) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:hover{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:active{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-destructive) .button,:host(.ic-button-variant-icon-destructive) .button{color:var(--ic-button-destructive-text);background-color:var(--ic-button-destructive-background);text-transform:uppercase}:host(.ic-button-variant-destructive) ::slotted(a),:host(.ic-button-variant-icon-destructive) ::slotted(a){color:var(--ic-button-destructive-text) !important;--ic-typography-color:var(--ic-button-destructive-text) !important;background-color:var(--ic-button-destructive-background) !important;text-transform:uppercase !important}:host(.ic-button-variant-destructive) .button:hover,:host(.ic-button-variant-icon-destructive) .button:hover{background-color:var(--ic-button-destructive-background-hover)}:host(.ic-button-variant-destructive) ::slotted(a:hover),:host(.ic-button-variant-icon-destructive) ::slotted(a:hover){background-color:var(--ic-button-destructive-background-hover) !important}:host(.ic-button-variant-destructive) .button:active,:host(.ic-button-variant-destructive.ic-button-loading) .button,:host(.ic-button-variant-icon-destructive.ic-button-loading) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-destructive-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-destructive-background-pressed)}:host(.ic-button-variant-destructive) ::slotted(a:active),:host(.ic-button-variant-icon-destructive) ::slotted(a:active){background-color:var(--ic-button-destructive-background-pressed) !important}:host(.ic-button-variant-destructive.ic-button-disabled) .button,:host(.ic-button-variant-icon-destructive.ic-button-disabled) .button{background-color:var(--ic-button-destructive-background-disabled);color:var(--ic-button-destructive-text-disabled)}:host(.ic-button-variant-destructive.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-destructive.ic-button-disabled) ::slotted(a){background-color:var(--ic-button-destructive-background-disabled) !important}:host(.ic-button-variant-icon) .button{color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background);min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) ::slotted(a){color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background) !important;min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon) .button:hover{color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover)}:host(.ic-button-variant-icon) ::slotted(a:hover){color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover) !important}:host(.ic-button-variant-icon) .button:active:not(:focus),:host(.ic-button-variant-icon.ic-button-loading) .button{color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active)}:host(.ic-button-variant-icon) ::slotted(a:active:not(:focus)){color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active) !important}:host(.ic-button-variant-icon.ic-button-disabled) .button{color:var(--ic-color-icon-disabled-mid);background:none}:host(.ic-button-variant-icon.ic-button-disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none !important}:host(.ic-button-variant-icon-primary) .button,:host(.ic-button-variant-icon-primary) ::slotted(a){min-width:0;gap:var(--ic-space-xs);color:var(--ic-button-primary-icon)}:host(.ic-button-variant-icon-primary.monochrome) .button,:host(.ic-button-variant-primary.monochrome:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon-monochrome)}:host(.ic-button-variant-icon-primary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:var(--ic-button-icon-monochrome)}:host(.ic-button-variant-icon-secondary) .button,:host(.ic-button-variant-icon-secondary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-secondary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-icon-tertiary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-tertiary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon-destructive) .button,:host(.ic-button-variant-icon-destructive) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-destructive) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-size-medium) .button{height:var(--height, 2.5rem);padding:var(--ic-space-xs) var(--ic-space-md)}:host(.ic-button-size-medium) ::slotted(a){height:var(--height, 2.5rem) !important;padding:var(--ic-space-xs) var(--ic-space-md) !important}:host(.ic-button-size-small) .button{height:var(--height, var(--ic-space-xl));padding:var(--ic-space-xxs) var(--ic-space-md)}:host(.ic-button-size-small) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;padding:var(--ic-space-xxs) var(--ic-space-md) !important}:host(.ic-button-size-large) .button{height:var(--height, var(--ic-space-xxl));padding:var(--ic-space-sm) var(--ic-space-md)}:host(.ic-button-size-large) ::slotted(a){height:var(--height, var(--ic-space-xxl)) !important;padding:var(--ic-space-sm) var(--ic-space-md) !important}:host(.ic-button-size-medium.ic-button-variant-icon) .button,:host(.ic-button-size-medium.ic-button-variant-icon-primary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-xl));width:var(--ic-space-xl);padding:0.375rem}:host(.ic-button-size-medium.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-destructive) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;width:var(--ic-space-xl) !important;padding:0.375rem !important}:host(.ic-button-size-small.ic-button-variant-icon) .button,:host(.ic-button-size-small.ic-button-variant-icon-primary) .button,:host(.ic-button-size-small.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-small.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-small.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-lg));width:var(--ic-space-lg);padding:var(--ic-space-xxs)}:host(.ic-button-size-small.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon) ::slotted(a){height:var(--height, var(--ic-space-lg)) !important;width:var(--ic-space-lg) !important;padding:var(--ic-space-xxs) !important}:host(.ic-button-size-large.ic-button-variant-icon) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) .button,:host(.ic-button-size-large.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-large.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button{height:var(--height, 2.5rem);width:2.5rem;padding:var(--ic-space-xs)}:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon) ::slotted(a){height:var(--height, 2.5rem) !important;width:2.5rem !important;padding:var(--ic-space-xs) !important}:host(.ic-button-full-width),:host(.ic-button-full-width) .button{width:100%}:host(.ic-button-full-width) ::slotted(a){width:100% !important}div.loading-container{position:relative;align-items:center;width:100%}.loading-indicator-icon-button{--circular-diameter:var(--ic-space-md)}:host(.ic-button-size-small) .loading-indicator-icon-button{--circular-diameter:calc(var(--ic-space-sm) + var(--ic-space-xxxs))}:host(.ic-button-size-large) .loading-indicator-icon-button{--circular-diameter:calc(var(--ic-space-sm) + var(--ic-space-xs))}ic-loading-indicator{--inner-color:var(--button-loading-inner-color);--outer-color:var(--button-loading-outer-color), transparent}@keyframes loading-animation{0%{width:0%;left:0%}25%{width:0%;left:0%;opacity:0}50%{width:100%;left:0%;opacity:1}75%{width:0%;left:100%}100%{width:0%;left:100%;opacity:0}}div.icon-container{box-sizing:border-box;width:var(--ic-space-lg);height:var(--ic-space-lg);display:flex;justify-content:center;align-items:center;margin-right:var(--ic-space-xs)}div.right-icon{margin-right:auto;margin-left:var(--ic-space-xs)}:host(.ic-button-full-width) .right-icon{margin-right:var(--ic-space-xs)}::slotted(:not(ic-badge)){width:var(--icon-width) !important;height:var(--icon-height) !important;fill:currentcolor !important;pointer-events:none}:host(.ic-button-variant-icon) .button .icon-container{margin:0;pointer-events:none}:host(.search-submit-button) ::slotted(svg){--icon-height:1.25rem;--icon-width:1.25rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button-small) ::slotted(svg){--icon-height:1rem;--icon-width:1rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:not(:active):focus{box-shadow:none;background-color:var(--ic-action-default-bg-hover)}:host(.search-submit-button) .button:not(:active):focus ::slotted(svg){color:var(--ic-button-primary-text)}:host(.search-submit-button){display:flex;align-items:center;margin:0 var(--ic-space-xxs)}:host(.ic-button-variant-icon) .button,:host(.ic-button-variant-icon) ::slotted(a){background-color:inherit;min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .button,:host(.button-variant-icon) ::slotted(a){color:var(--button-default);min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button:hover,:host(.button-variant-icon) ::slotted(a:hover){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-icon) .button:active:not(:focus),:host(.button-variant-icon) ::slotted(a:active:not(:focus)),:host(.button-variant-icon.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-icon.disabled) .button,:host(.button-variant-icon.disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none}:host(.clear-button){color:var(--ic-atoms-input-clear-button);margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus,:host(.clock-button) .button:focus{box-shadow:none}:host(.clear-button) .button,:host(.clear-button) ::slotted(a){background-color:inherit;color:var(--ic-atoms-input-clear-button)}:host(.clear-button) .button:hover,:host(.clear-button) ::slotted(a:hover){color:var(--ic-atoms-input-clear-button)}:host(.clear-button) .button:not(:active):focus ::slotted(svg){background-color:var(--ic-atoms-input-clear-button-focus-inner);color:var(--ic-button-primary-text);}:host(.menu-close-button) ::slotted(svg){--icon-height:0.875rem;--icon-width:0.875rem;color:var(--ic-top-navigation-icon-active)}:host(.popout-menu-button) .button{height:var(--height);justify-content:left;border-radius:0;white-space:pre-line;text-align:start}:host(.popout-menu-button) div.icon-container{flex:none}:host(.popout-menu-button) .button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}.ic-button-describedby{display:none}:host .ic-tooltip{display:block}:host .arrow-dropdown{margin-top:auto}:host .dropdown-expanded{transform:rotate(180deg);margin-bottom:var(--ic-space-xxxs)}:host(.dropdown-no-icon) .button{padding-right:var(--ic-space-xs)}slot[name=\"router-item\"]::slotted(a){pointer-events:all}::slotted(a){font-size:0.875rem !important;border:none !important;vertical-align:middle !important}:host(#menu-button.ic-theme-dark){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-dark-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-dark-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover-dark\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed-dark\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-dark\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-pressed-dark\n )}:host(#menu-button.ic-theme-light){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-light-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-light-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-light\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-default\n )}@media (forced-colors: active){.button,::slotted(a){border:0.125rem solid transparent !important}.search-submit-button ::slotted(a),.ic-button-variant-icon ::slotted(a),.clear-button ::slotted(a),.search-submit-button ::slotted(svg),.ic-button-variant-icon ::slotted(svg),.clear-button ::slotted(svg){color:HighlightText}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:white}:host(.clear-button) .button:not(:active):focus ::slotted(svg){color:white !important;background-color:inherit}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:currentcolor !important}}@media (prefers-reduced-motion: reduce){.button,::slotted(a){transition:none}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
|
|
5264
5255
|
var IcButtonStyle0 = icButtonCss;
|
|
5265
5256
|
|
|
5266
|
-
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
5257
|
+
var __rest$1 = (undefined && undefined.__rest) || function (s, e) {
|
|
5267
5258
|
var t = {};
|
|
5268
5259
|
for (var p in s)
|
|
5269
5260
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -5526,7 +5517,7 @@ class Button {
|
|
|
5526
5517
|
this.setHasTooltip();
|
|
5527
5518
|
}
|
|
5528
5519
|
componentWillLoad() {
|
|
5529
|
-
const _a = inheritAttributes(this.el, [...IC_INHERITED_ARIA, "title"]), { title, "aria-label": ariaLabel } = _a, restInheritedAttributes = __rest(_a, ["title", "aria-label"]);
|
|
5520
|
+
const _a = inheritAttributes(this.el, [...IC_INHERITED_ARIA, "title"]), { title, "aria-label": ariaLabel } = _a, restInheritedAttributes = __rest$1(_a, ["title", "aria-label"]);
|
|
5530
5521
|
this.title = title;
|
|
5531
5522
|
this.ariaLabel = ariaLabel;
|
|
5532
5523
|
this.inheritedAttributes = restInheritedAttributes;
|
|
@@ -6140,7 +6131,6 @@ var IcCheckboxStyle0 = icCheckboxCss;
|
|
|
6140
6131
|
* @slot additional-field - Content to be displayed alongside a checkbox.
|
|
6141
6132
|
* @slot label - Label for the checkbox.
|
|
6142
6133
|
*/
|
|
6143
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6144
6134
|
class Checkbox {
|
|
6145
6135
|
constructor(hostRef) {
|
|
6146
6136
|
registerInstance(this, hostRef);
|
|
@@ -6268,17 +6258,17 @@ class Checkbox {
|
|
|
6268
6258
|
? renderHiddenInput(el, value, name, disabled)
|
|
6269
6259
|
: removeHiddenInput(el);
|
|
6270
6260
|
const LabelContent = () => this.hasLabelSlot() ? (hAsync("slot", { name: "label" })) : (hAsync("ic-typography", { class: "checkbox-label", variant: "body" }, hAsync("label", { htmlFor: inputId }, label)));
|
|
6271
|
-
return (hAsync(Host, { key: '
|
|
6261
|
+
return (hAsync(Host, { key: 'cbbef34df584e10e50b731c4ea44b4c5a5f29917', class: {
|
|
6272
6262
|
"ic-checkbox-disabled": disabled,
|
|
6273
6263
|
[`ic-checkbox-${size}`]: !!size,
|
|
6274
6264
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6275
|
-
} }, hAsync("div", { key: '
|
|
6265
|
+
} }, hAsync("div", { key: 'b15e0cc68627b692ea251994d13c707a71935332', class: "container" }, displayIndeterminate ? (hAsync("div", { class: "indeterminate-symbol" })) : (checked && (hAsync("svg", { class: "checkmark", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "fill-rule": "evenodd", "clip-rule": "evenodd" }, hAsync("title", null, "checkmark icon"), hAsync("path", { d: "M21 6.285l-11.16 12.733-6.84-6.018 1.319-1.49 5.341 4.686 9.865-11.196 1.475 1.285z" })))), hAsync("input", { key: '8443271bb0f24104dadfc95c0f0e97551f8f32fb', role: "checkbox", class: {
|
|
6276
6266
|
checkbox: true,
|
|
6277
6267
|
checked,
|
|
6278
6268
|
indeterminate: displayIndeterminate,
|
|
6279
|
-
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: inputId, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel || this.hasLabelSlot() ? label : undefined }), !hideLabel && hAsync(LabelContent, { key: '
|
|
6269
|
+
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: inputId, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel || this.hasLabelSlot() ? label : undefined }), !hideLabel && hAsync(LabelContent, { key: '29c975e697e9b5e8f32c845111686e23ee4de32f' })), hAsync("span", { key: '3901c6b2f84633d2cb0bf6602e1644760dfa78dd', id: `${inputId}-additional-field-description`, role: "alert", class: "sr-only" }, isDynamicAdditionalField && checked ? dynamicText : ""), isSlotUsed(el, "additional-field") && (hAsync("div", { key: '68b7bbd59a084ff452924d0fb82446c0a5b46900', class: "dynamic-container", ref: (el) => (this.additionalFieldContainer = el) }, isDynamicAdditionalField && hAsync("div", { key: '2095e98f6a8ae633892a83f8a8a9a37941186802', class: "branch-corner" }), hAsync("div", { key: 'f92c2ff935d5d72a70bba8479bc7a2b27705da1d', class: "dynamic-field-container" }, isDynamicAdditionalField && (hAsync("ic-typography", { key: '1e69f0fb80ad6f047bd2943b5b348bd539b567ce', variant: "caption" }, hAsync("p", { key: '27f350e13e088275e340332570e3eee32c7ad1be', class: "dynamic-text" }, isDynamicAdditionalField && checked ? dynamicText : ""))), hAsync("div", { key: '98795e79ffb9d719d9d1aae8931f67f8009c273f', class: {
|
|
6280
6270
|
"additional-field-wrapper": !isDynamicAdditionalField,
|
|
6281
|
-
} }, hAsync("slot", { key: '
|
|
6271
|
+
} }, hAsync("slot", { key: '36a8e7ffaa67981e3054240dda02b04936280f91', name: "additional-field" })))))));
|
|
6282
6272
|
}
|
|
6283
6273
|
static get delegatesFocus() { return true; }
|
|
6284
6274
|
get el() { return getElement(this); }
|
|
@@ -6482,7 +6472,7 @@ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org
|
|
|
6482
6472
|
</svg>
|
|
6483
6473
|
`;
|
|
6484
6474
|
|
|
6485
|
-
const icChipCss = "/*! 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:inline-block;max-width:100%;vertical-align:middle}:host(.ic-chip-dismissed){display:none}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding:calc(var(--ic-space-xxs) - var(--ic-space-1px)) var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;position:relative;background-color:var(--chip-bg-color);border:var(--ic-border-width) solid transparent;justify-content:space-between;width:-moz-fit-content;width:fit-content;box-sizing:border-box;max-width:100%}.chip.full-width{width:100%}:host(.ic-chip-full-width){width:100%}@media (prefers-reduced-motion: no-preference){.chip{transition:var(--ic-easing-transition-fast)}}.chip.small{padding:var(--ic-space-
|
|
6475
|
+
const icChipCss = "/*! 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:inline-block;max-width:100%;vertical-align:middle}:host(.ic-chip-dismissed){display:none}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding:calc(var(--ic-space-xxs) - var(--ic-space-1px)) var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;position:relative;background-color:var(--chip-bg-color);border:var(--ic-border-width) solid transparent;justify-content:space-between;width:-moz-fit-content;width:fit-content;box-sizing:border-box;max-width:100%}.chip.full-width{width:100%}:host(.ic-chip-full-width){width:100%}@media (prefers-reduced-motion: no-preference){.chip{transition:var(--ic-easing-transition-fast)}}.chip.small{padding:var(--ic-space-xxxs) var(--ic-space-xs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.chip.medium{padding:calc(var(--ic-space-xxs) - var(--ic-space-1px)) var(--ic-space-xs);border-radius:var(--ic-space-md)}.chip.large{padding:calc(var(--ic-space-xs) - var(--ic-space-1px)) var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.label.small{padding:0 var(--ic-space-xxs)}.label.medium{padding:0 calc(var(--ic-space-xs) - var(--ic-space-xxxs))}.label.large{padding:0 var(--ic-space-xs)}.chip:focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);z-index:1}ic-tooltip:focus-within{z-index:1}.filled{--chip-bg-color:var(\n --chip-custom-color,\n var(--ic-chip-background-filled-default)\n );--ic-typography-color:var(\n --chip-custom-foreground-color,\n var(--ic-chip-label)\n );color:var(--chip-custom-foreground-color, var(--ic-chip-label))}.filled.disabled{--chip-bg-color:var(--ic-chip-background-filled-inactive)}:host(.ic-chip-dark-text){--chip-custom-foreground-color:var(--ic-architectural-black)}:host(.ic-chip-light-text){--chip-custom-foreground-color:var(--ic-architectural-white)}:host(.ic-chip-dark-text) .chip.filled.hovered:not(:focus-within){--chip-hover-bg:var(--ic-action-dark-bg-hover)}:host(.ic-chip-dark-text) .chip.filled:focus-within{--chip-pressed-bg:var(--ic-action-dark-bg-pressed)}:host(.ic-chip-light-text) .chip.filled.hovered:not(:focus-within){--chip-hover-bg:var(--ic-action-light-bg-hover)}:host(.ic-chip-light-text) .chip.filled:focus-within{--chip-pressed-bg:var(--ic-action-light-bg-pressed)}.outlined{color:var(--ic-chip-outline-label);border-color:var(--chip-custom-color, var(--ic-chip-outline));padding:calc(var(--ic-space-xxs));--ic-typography-color:var(--ic-chip-outline-label)}.outlined.disabled{border:var(--ic-border-disabled);border-color:var(--ic-chip-outline-inactive)}.chip.disabled ic-typography{--ic-typography-color:var(--ic-chip-label-inactive)}.dismiss-icon{border:none;border-radius:50%;padding:0;color:currentcolor;background:none;cursor:pointer;margin:var(--ic-space-xxxs);height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs))}.dismiss-icon:focus{outline:var(--ic-hc-focus-outline)}.dismiss-icon[disabled]{pointer-events:none;color:var(--ic-chip-icon-inactive)}.icon{padding:var(--ic-space-xxxs);box-sizing:border-box}.icon,ic-tooltip{height:var(--ic-space-lg)}.chip.disabled path,.chip.disabled ::slotted(svg){fill:var(--ic-chip-icon-inactive)}.outlined.non-transparent{background-color:var(--ic-chip-outline-background)}:host .chip.hovered:not(:focus-within){background-image:linear-gradient(var(--chip-hover-bg) 0 0)}:host .chip:focus-within{background-image:linear-gradient(var(--chip-pressed-bg) 0 0)}.sr-only{position:absolute;left:-9999px}.sr-only:dir(rtl){right:-9999px}@media (forced-colors: active){.chip{border:var(--ic-border-hc)}.chip.disabled{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.chip.disabled ic-typography{--ic-typography-color:GrayText}.chip.disabled path,.chip.disabled ::slotted(svg){fill:GrayText}.chip:focus-within{outline:none;border-color:Highlight}}";
|
|
6486
6476
|
var IcChipStyle0 = icChipCss;
|
|
6487
6477
|
|
|
6488
6478
|
/**
|
|
@@ -6595,7 +6585,11 @@ class Chip {
|
|
|
6595
6585
|
hovered,
|
|
6596
6586
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
|
6597
6587
|
"full-width": fullWidth,
|
|
6598
|
-
} }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '3d12f1e7c932cd91f0835f3fe7c76ec6784bc44f', class: "icon" }, hAsync("slot", { key: '5307ba63af7c7342cf32072ccebf02788265e0f5', name: "icon" }))), hAsync("ic-typography", { key: '
|
|
6588
|
+
} }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '3d12f1e7c932cd91f0835f3fe7c76ec6784bc44f', class: "icon" }, hAsync("slot", { key: '5307ba63af7c7342cf32072ccebf02788265e0f5', name: "icon" }))), hAsync("ic-typography", { key: 'e30c971835f38594a238e36d849fd1625aeb4e38', variant: "label", "apply-vertical-margins": false, class: {
|
|
6589
|
+
label: true,
|
|
6590
|
+
[`${size}`]: true,
|
|
6591
|
+
"in-ag-grid": isElInAGGrid(this.el),
|
|
6592
|
+
} }, hAsync("span", { key: '40f476a368fbb16cee45b53c7de24d85b94a21a7' }, label)), dismissible && (hAsync("ic-tooltip", { key: 'd8ff86e2c616f8233104b364bb8f698473c3448a', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, hAsync("button", { key: '290db0fd020cc7114403e9c6145c1cc454537476', id: "dismiss-icon", class: "dismiss-icon", ref: (el) => (this.buttonEl = el), "aria-label": `${dismissLabel} ${ariaLabel}`, disabled: disabled, tabindex: disabled ? -1 : 0, onClick: this.dismissAction, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, innerHTML: dismissIcon }))), isSlotUsed(this.el, "badge") && hAsync("slot", { key: 'd4f25acf6b19a63c9683d6aac41a04319cbea203', name: "badge" }))), dismissible && (hAsync("div", { key: '6f5d1ad6395e82d3ec7cd588aa3944922e7a13de', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
|
|
6599
6593
|
}
|
|
6600
6594
|
static get delegatesFocus() { return true; }
|
|
6601
6595
|
get el() { return getElement(this); }
|
|
@@ -6654,6 +6648,10 @@ class ClassificationBanner {
|
|
|
6654
6648
|
* The optional text that will be displayed before classification to specify relevant country/countries.
|
|
6655
6649
|
*/
|
|
6656
6650
|
this.country = "uk";
|
|
6651
|
+
/**
|
|
6652
|
+
* The custom text that will appear on the banner. If set, the `additionalSelectors`, `country` and `upTo` props are ignored.
|
|
6653
|
+
*/
|
|
6654
|
+
this.customClassificationText = "";
|
|
6657
6655
|
/**
|
|
6658
6656
|
* If `true`, the banner will appear inline with the page, instead of sticking to the bottom of the page.
|
|
6659
6657
|
*/
|
|
@@ -6666,7 +6664,7 @@ class ClassificationBanner {
|
|
|
6666
6664
|
render() {
|
|
6667
6665
|
const { inline, upTo } = this;
|
|
6668
6666
|
// In case of unrecognized props, fallback to default
|
|
6669
|
-
let { country, additionalSelectors, classification } = this;
|
|
6667
|
+
let { country, additionalSelectors, classification, customClassificationText, } = this;
|
|
6670
6668
|
if (!country)
|
|
6671
6669
|
country = "";
|
|
6672
6670
|
if (!additionalSelectors)
|
|
@@ -6674,12 +6672,16 @@ class ClassificationBanner {
|
|
|
6674
6672
|
if (!classification ||
|
|
6675
6673
|
(classification && !classificationText[classification]))
|
|
6676
6674
|
classification = "default";
|
|
6677
|
-
|
|
6675
|
+
if (!customClassificationText)
|
|
6676
|
+
customClassificationText = "";
|
|
6677
|
+
return (hAsync(Host, { key: 'dbf7b4fe92229fd32723c06070338a3611939bd5', class: { ["ic-classification-banner-inline"]: !!inline } }, hAsync("banner", { key: '23e95a6a2ca33447e1b64cda93690cf6781bd14f', "aria-label": "Protective marking", class: {
|
|
6678
6678
|
["classification-banner"]: true,
|
|
6679
6679
|
[`${classification}`]: classification,
|
|
6680
|
-
} }, classification !== "default" ? (hAsync("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, hAsync("ic-typography", { key: '
|
|
6681
|
-
?
|
|
6682
|
-
:
|
|
6680
|
+
} }, classification !== "default" ? (hAsync("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, hAsync("ic-typography", { key: 'ff41a45d594eeeffe2f078b3ae3a99792a6f38c3', variant: "caption-uppercase" }, customClassificationText !== ""
|
|
6681
|
+
? customClassificationText
|
|
6682
|
+
: classification === "default"
|
|
6683
|
+
? classificationText[classification]
|
|
6684
|
+
: `${upTo ? "up to" : ""}
|
|
6683
6685
|
${country}
|
|
6684
6686
|
${classificationText[classification]}
|
|
6685
6687
|
${additionalSelectors}`))));
|
|
@@ -6692,6 +6694,7 @@ class ClassificationBanner {
|
|
|
6692
6694
|
"additionalSelectors": [1, "additional-selectors"],
|
|
6693
6695
|
"classification": [1],
|
|
6694
6696
|
"country": [1],
|
|
6697
|
+
"customClassificationText": [1, "custom-classification-text"],
|
|
6695
6698
|
"inline": [4],
|
|
6696
6699
|
"upTo": [4, "up-to"]
|
|
6697
6700
|
},
|
|
@@ -10672,7 +10675,7 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
10672
10675
|
|
|
10673
10676
|
var purify = {exports: {}};
|
|
10674
10677
|
|
|
10675
|
-
/*! @license DOMPurify 3.
|
|
10678
|
+
/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
|
|
10676
10679
|
|
|
10677
10680
|
(function (module, exports) {
|
|
10678
10681
|
(function (global, factory) {
|
|
@@ -10705,12 +10708,18 @@ var purify = {exports: {}};
|
|
|
10705
10708
|
};
|
|
10706
10709
|
}
|
|
10707
10710
|
if (!apply) {
|
|
10708
|
-
apply = function apply(
|
|
10709
|
-
|
|
10711
|
+
apply = function apply(func, thisArg) {
|
|
10712
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
10713
|
+
args[_key - 2] = arguments[_key];
|
|
10714
|
+
}
|
|
10715
|
+
return func.apply(thisArg, args);
|
|
10710
10716
|
};
|
|
10711
10717
|
}
|
|
10712
10718
|
if (!construct) {
|
|
10713
|
-
construct = function construct(Func
|
|
10719
|
+
construct = function construct(Func) {
|
|
10720
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
10721
|
+
args[_key2 - 1] = arguments[_key2];
|
|
10722
|
+
}
|
|
10714
10723
|
return new Func(...args);
|
|
10715
10724
|
};
|
|
10716
10725
|
}
|
|
@@ -10739,8 +10748,8 @@ var purify = {exports: {}};
|
|
|
10739
10748
|
if (thisArg instanceof RegExp) {
|
|
10740
10749
|
thisArg.lastIndex = 0;
|
|
10741
10750
|
}
|
|
10742
|
-
for (var
|
|
10743
|
-
args[
|
|
10751
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
10752
|
+
args[_key3 - 1] = arguments[_key3];
|
|
10744
10753
|
}
|
|
10745
10754
|
return apply(func, thisArg, args);
|
|
10746
10755
|
};
|
|
@@ -10751,12 +10760,12 @@ var purify = {exports: {}};
|
|
|
10751
10760
|
* @param func - The constructor function to be wrapped and called.
|
|
10752
10761
|
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
|
10753
10762
|
*/
|
|
10754
|
-
function unconstruct(
|
|
10763
|
+
function unconstruct(Func) {
|
|
10755
10764
|
return function () {
|
|
10756
|
-
for (var
|
|
10757
|
-
args[
|
|
10765
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
10766
|
+
args[_key4] = arguments[_key4];
|
|
10758
10767
|
}
|
|
10759
|
-
return construct(
|
|
10768
|
+
return construct(Func, args);
|
|
10760
10769
|
};
|
|
10761
10770
|
}
|
|
10762
10771
|
/**
|
|
@@ -10855,8 +10864,8 @@ var purify = {exports: {}};
|
|
|
10855
10864
|
return fallbackValue;
|
|
10856
10865
|
}
|
|
10857
10866
|
|
|
10858
|
-
const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
|
|
10859
|
-
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
10867
|
+
const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'search', 'section', 'select', 'shadow', 'slot', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
|
|
10868
|
+
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
10860
10869
|
const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
|
|
10861
10870
|
// List of SVG elements that are disallowed by default.
|
|
10862
10871
|
// We still need to know them so that we can do namespace
|
|
@@ -10869,8 +10878,8 @@ var purify = {exports: {}};
|
|
|
10869
10878
|
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
|
10870
10879
|
const text = freeze(['#text']);
|
|
10871
10880
|
|
|
10872
|
-
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
10873
|
-
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
10881
|
+
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
10882
|
+
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'mask-type', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
10874
10883
|
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
|
|
10875
10884
|
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
10876
10885
|
|
|
@@ -10977,7 +10986,7 @@ var purify = {exports: {}};
|
|
|
10977
10986
|
function createDOMPurify() {
|
|
10978
10987
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
10979
10988
|
const DOMPurify = root => createDOMPurify(root);
|
|
10980
|
-
DOMPurify.version = '3.
|
|
10989
|
+
DOMPurify.version = '3.3.3';
|
|
10981
10990
|
DOMPurify.removed = [];
|
|
10982
10991
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
10983
10992
|
// Not running in a browser, provide a factory function
|
|
@@ -11088,6 +11097,21 @@ var purify = {exports: {}};
|
|
|
11088
11097
|
let FORBID_TAGS = null;
|
|
11089
11098
|
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
|
11090
11099
|
let FORBID_ATTR = null;
|
|
11100
|
+
/* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
|
|
11101
|
+
const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
11102
|
+
tagCheck: {
|
|
11103
|
+
writable: true,
|
|
11104
|
+
configurable: false,
|
|
11105
|
+
enumerable: true,
|
|
11106
|
+
value: null
|
|
11107
|
+
},
|
|
11108
|
+
attributeCheck: {
|
|
11109
|
+
writable: true,
|
|
11110
|
+
configurable: false,
|
|
11111
|
+
enumerable: true,
|
|
11112
|
+
value: null
|
|
11113
|
+
}
|
|
11114
|
+
}));
|
|
11091
11115
|
/* Decide if ARIA attributes are okay */
|
|
11092
11116
|
let ALLOW_ARIA_ATTR = true;
|
|
11093
11117
|
/* Decide if custom data attributes are okay */
|
|
@@ -11257,7 +11281,7 @@ var purify = {exports: {}};
|
|
|
11257
11281
|
/* Parse profile info */
|
|
11258
11282
|
if (USE_PROFILES) {
|
|
11259
11283
|
ALLOWED_TAGS = addToSet({}, text);
|
|
11260
|
-
ALLOWED_ATTR =
|
|
11284
|
+
ALLOWED_ATTR = create(null);
|
|
11261
11285
|
if (USE_PROFILES.html === true) {
|
|
11262
11286
|
addToSet(ALLOWED_TAGS, html$1);
|
|
11263
11287
|
addToSet(ALLOWED_ATTR, html);
|
|
@@ -11278,18 +11302,33 @@ var purify = {exports: {}};
|
|
|
11278
11302
|
addToSet(ALLOWED_ATTR, xml);
|
|
11279
11303
|
}
|
|
11280
11304
|
}
|
|
11305
|
+
/* Prevent function-based ADD_ATTR / ADD_TAGS from leaking across calls */
|
|
11306
|
+
if (!objectHasOwnProperty(cfg, 'ADD_TAGS')) {
|
|
11307
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = null;
|
|
11308
|
+
}
|
|
11309
|
+
if (!objectHasOwnProperty(cfg, 'ADD_ATTR')) {
|
|
11310
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
11311
|
+
}
|
|
11281
11312
|
/* Merge configuration parameters */
|
|
11282
11313
|
if (cfg.ADD_TAGS) {
|
|
11283
|
-
if (
|
|
11284
|
-
|
|
11314
|
+
if (typeof cfg.ADD_TAGS === 'function') {
|
|
11315
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
11316
|
+
} else {
|
|
11317
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
11318
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
11319
|
+
}
|
|
11320
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
11285
11321
|
}
|
|
11286
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
11287
11322
|
}
|
|
11288
11323
|
if (cfg.ADD_ATTR) {
|
|
11289
|
-
if (
|
|
11290
|
-
|
|
11324
|
+
if (typeof cfg.ADD_ATTR === 'function') {
|
|
11325
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
11326
|
+
} else {
|
|
11327
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
11328
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
11329
|
+
}
|
|
11330
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
11291
11331
|
}
|
|
11292
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
11293
11332
|
}
|
|
11294
11333
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
11295
11334
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -11300,6 +11339,12 @@ var purify = {exports: {}};
|
|
|
11300
11339
|
}
|
|
11301
11340
|
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
11302
11341
|
}
|
|
11342
|
+
if (cfg.ADD_FORBID_CONTENTS) {
|
|
11343
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
11344
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
11345
|
+
}
|
|
11346
|
+
addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
|
|
11347
|
+
}
|
|
11303
11348
|
/* Add #text in case KEEP_CONTENT is set to true */
|
|
11304
11349
|
if (KEEP_CONTENT) {
|
|
11305
11350
|
ALLOWED_TAGS['#text'] = true;
|
|
@@ -11597,7 +11642,7 @@ var purify = {exports: {}};
|
|
|
11597
11642
|
return true;
|
|
11598
11643
|
}
|
|
11599
11644
|
/* Remove element if anything forbids its presence */
|
|
11600
|
-
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
11645
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
11601
11646
|
/* Check if we have a custom element to handle */
|
|
11602
11647
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
11603
11648
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
@@ -11661,6 +11706,10 @@ var purify = {exports: {}};
|
|
|
11661
11706
|
*/
|
|
11662
11707
|
// eslint-disable-next-line complexity
|
|
11663
11708
|
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
11709
|
+
/* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */
|
|
11710
|
+
if (FORBID_ATTR[lcName]) {
|
|
11711
|
+
return false;
|
|
11712
|
+
}
|
|
11664
11713
|
/* Make sure attribute cannot clobber */
|
|
11665
11714
|
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
11666
11715
|
return false;
|
|
@@ -11669,12 +11718,12 @@ var purify = {exports: {}};
|
|
|
11669
11718
|
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
11670
11719
|
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
11671
11720
|
We don't need to check the value; it's always URI safe. */
|
|
11672
|
-
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
11721
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
11673
11722
|
if (
|
|
11674
11723
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
11675
11724
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
11676
11725
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
11677
|
-
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||
|
|
11726
|
+
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) ||
|
|
11678
11727
|
// Alternative, second condition checks if it's an `is`-attribute, AND
|
|
11679
11728
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
11680
11729
|
lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {
|
|
@@ -11753,7 +11802,12 @@ var purify = {exports: {}};
|
|
|
11753
11802
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
11754
11803
|
}
|
|
11755
11804
|
/* Work around a security issue with comments inside attributes */
|
|
11756
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
11805
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
|
|
11806
|
+
_removeAttribute(name, currentNode);
|
|
11807
|
+
continue;
|
|
11808
|
+
}
|
|
11809
|
+
/* Make sure we cannot easily use animated hrefs, even if animations are allowed */
|
|
11810
|
+
if (lcName === 'attributename' && stringMatch(value, 'href')) {
|
|
11757
11811
|
_removeAttribute(name, currentNode);
|
|
11758
11812
|
continue;
|
|
11759
11813
|
}
|
|
@@ -12043,10 +12097,9 @@ const sanitizeHTMLIconString = (html) => {
|
|
|
12043
12097
|
return purifier.sanitize(html, getCustomElementHandling(false));
|
|
12044
12098
|
};
|
|
12045
12099
|
|
|
12046
|
-
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));color:var(--menu-item-text-color, var(--ic-menu-list-option-text-color));--ic-typography-color:var(\n --menu-item-text-color,\n var(--ic-menu-list-option-text-color)\n );background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.ic-menu-open.sc-ic-menu-h:not(.ic-menu-no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.ic-select-select-all-focused.sc-ic-menu-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu #retry-button.sc-ic-menu::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-h{inset:auto !important}.menu.sc-ic-menu{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu:has(+.option-bar).sc-ic-menu{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu{overflow-y:auto}.menu.sc-ic-menu:focus-visible{outline:none}.ic-menu-open.sc-ic-menu-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid\n var(--menu-border-color, var(--ic-menu-border-color));transition:box-shadow var(--ic-easing-transition-fast)}.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.ic-menu-open.sc-ic-menu-h .option-bar.sc-ic-menu{visibility:visible}.ic-menu-open.sc-ic-menu-h .select-all-button.sc-ic-menu{display:block}.ic-menu-full-width.sc-ic-menu-h{width:100%}.option.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center;gap:var(--ic-space-xs)}.loading-option.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.option.sc-ic-menu:not(.loading-option){justify-content:space-between}.ic-menu-small.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.ic-menu-large.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu:last-child{border-radius:0 0 1px 1px}.sc-ic-menu:not(.menu:has(+.option-bar)).sc-ic-menu .option.sc-ic-menu:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu:not(.disabled-option):hover{background-color:var(--ic-menu-list-option-hover-background-color)}.option.sc-ic-menu:not(.disabled-option):active{background-color:var(--ic-menu-list-option-pressed-background-color)}.option.sc-ic-menu:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu:not(.disabled-option) .option-description.sc-ic-menu{--ic-typography-color:var(\n --menu-item-desc-text-color,\n var(--ic-menu-list-option-description-text-color)\n )}.option.sc-ic-menu .option-label.sc-ic-menu{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu .option-label.sc-ic-menu ic-typography.sc-ic-menu{max-width:100%;word-wrap:break-word}.option.sc-ic-menu .option-element.sc-ic-menu{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu .option-icon.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxs)}.option-text-container.sc-ic-menu{pointer-events:none;width:100%}.option-text-container.show-check-icon.sc-ic-menu{flex-grow:1}.option.loading-option.sc-ic-menu .option-text-container.sc-ic-menu{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-menu-loading-list-option-text-color);--ic-typography-color:var(--ic-menu-loading-list-option-text-color)}.error-icon-svg.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-atoms-status-icon-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu{display:flex}.check-icon.sc-ic-menu{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);pointer-events:none}.focused-option.sc-ic-menu .check-icon.sc-ic-menu *.sc-ic-menu{fill:currentcolor}.option-group-title.sc-ic-menu{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);--ic-typography-color:var(--ic-menu-option-group-label-text-color)}.ic-menu-small.sc-ic-menu-h .option-group-title.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu{border-bottom:var(--ic-menu-last-recommended-option-border)}.disabled-option.sc-ic-menu{color:var(--ic-atoms-list-option-text-disabled-light);--ic-typography-color:var(--ic-atoms-list-option-text-disabled-light);cursor:default;pointer-events:none}.focused-option.sc-ic-menu,.focused-option.sc-ic-menu .option-description.sc-ic-menu{background-color:var(--ic-color-focus-inner) !important;color:var(--ic-atoms-list-option-text-focused-light) !important;--ic-typography-color:var(\n --ic-atoms-list-option-text-focused-light\n ) !important}.no-results.sc-ic-menu-h li.sc-ic-menu{cursor:no-drop}.no-results.sc-ic-menu-h li.sc-ic-menu:hover{background-color:transparent}.option-bar.sc-ic-menu{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-menu-option-bar-background-color);visibility:hidden;border-bottom:var(--ic-border-width) solid\n var(--ic-menu-option-bar-divider-color);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.ic-menu-large.sc-ic-menu-h .option-bar.sc-ic-menu{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu{display:none}.select-all-button.sc-ic-menu:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu:focus{outline:none;border:0.125rem solid transparent}.disabled-option.sc-ic-menu{color:GrayText;--ic-typography-color:GrayText}}@media screen AND (max-width: 22rem){.sc-ic-menu-h{max-width:var(--menu-width, var(--input-width, 20rem));width:100%}}@media (prefers-reduced-motion: reduce){.ic-menu-open.sc-ic-menu-h{transition:none}}";
|
|
12100
|
+
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));color:var(--menu-item-text-color, var(--ic-menu-list-option-text-color));--ic-typography-color:var(\n --menu-item-text-color,\n var(--ic-menu-list-option-text-color)\n );background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.ic-menu-open.sc-ic-menu-h:not(.ic-menu-no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.ic-select-select-all-focused.sc-ic-menu-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu #retry-button.sc-ic-menu::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-h{inset:auto !important}.menu.sc-ic-menu{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu:has(+.option-bar).sc-ic-menu{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu{overflow-y:auto}.menu.sc-ic-menu:focus-visible{outline:none}.ic-menu-open.sc-ic-menu-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid\n var(--menu-border-color, var(--ic-menu-border-color));transition:box-shadow var(--ic-easing-transition-fast)}.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.ic-menu-open.sc-ic-menu-h .option-bar.sc-ic-menu{visibility:visible}.ic-menu-open.sc-ic-menu-h .select-all-button.sc-ic-menu{display:block}.ic-menu-full-width.sc-ic-menu-h{width:100%}.option.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center;gap:var(--ic-space-xs)}.loading-option.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.option.sc-ic-menu:not(.loading-option){justify-content:space-between}.ic-menu-small.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.ic-menu-large.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu:last-child{border-radius:0 0 1px 1px}.sc-ic-menu:not(.menu:has(+.option-bar)).sc-ic-menu .option.sc-ic-menu:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu:not(.disabled-option):hover{background-color:var(--ic-menu-list-option-hover-background-color)}.option.sc-ic-menu:not(.disabled-option):active{background-color:var(--ic-menu-list-option-pressed-background-color)}.option.sc-ic-menu:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu:not(.disabled-option) .option-description.sc-ic-menu{--ic-typography-color:var(\n --menu-item-desc-text-color,\n var(--ic-menu-list-option-description-text-color)\n )}.option.sc-ic-menu .option-label.sc-ic-menu{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu .option-label.sc-ic-menu ic-typography.sc-ic-menu{max-width:100%;word-wrap:break-word}.option.sc-ic-menu .option-element.sc-ic-menu{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu .option-icon.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxs)}.option-text-container.sc-ic-menu{pointer-events:none;width:100%}.option-text-container.show-check-icon.sc-ic-menu{flex-grow:1}.option.loading-option.sc-ic-menu .option-text-container.sc-ic-menu{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-menu-loading-list-option-text-color);--ic-typography-color:var(--ic-menu-loading-list-option-text-color)}.error-icon-svg.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-atoms-status-icon-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu{display:flex}.check-icon.sc-ic-menu{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);pointer-events:none}.focused-option.sc-ic-menu .check-icon.sc-ic-menu *.sc-ic-menu{fill:currentcolor}.sc-ic-menu:first-child>.option-group-title.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs)}.option-group-title.sc-ic-menu{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);--ic-typography-color:var(--ic-menu-option-group-label-text-color)}.ic-menu-small.sc-ic-menu-h .option-group-title.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu{border-bottom:var(--ic-menu-last-recommended-option-border)}.disabled-option.sc-ic-menu{color:var(--ic-atoms-list-option-text-disabled-light);--ic-typography-color:var(--ic-atoms-list-option-text-disabled-light);cursor:default;pointer-events:none}.focused-option.sc-ic-menu,.focused-option.sc-ic-menu .option-description.sc-ic-menu{background-color:var(--ic-color-focus-inner) !important;color:var(--ic-atoms-list-option-text-focused-light) !important;--ic-typography-color:var(\n --ic-atoms-list-option-text-focused-light\n ) !important}.no-results.sc-ic-menu-h li.sc-ic-menu{cursor:no-drop}.no-results.sc-ic-menu-h li.sc-ic-menu:hover{background-color:transparent}.option-bar.sc-ic-menu{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-menu-option-bar-background-color);visibility:hidden;border-bottom:var(--ic-border-width) solid\n var(--ic-menu-option-bar-divider-color);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.ic-menu-large.sc-ic-menu-h .option-bar.sc-ic-menu{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu{display:none}.select-all-button.sc-ic-menu:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu{outline:none;border:0.125rem solid transparent}.disabled-option.sc-ic-menu{color:GrayText;--ic-typography-color:GrayText}}@media screen AND (max-width: 22rem){.sc-ic-menu-h{max-width:var(--menu-width, var(--input-width, 20rem));width:100%}}@media (prefers-reduced-motion: reduce){.ic-menu-open.sc-ic-menu-h{transition:none}}";
|
|
12047
12101
|
var IcMenuStyle0 = icMenuCss;
|
|
12048
12102
|
|
|
12049
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12050
12103
|
class Menu {
|
|
12051
12104
|
constructor(hostRef) {
|
|
12052
12105
|
registerInstance(this, hostRef);
|
|
@@ -12126,6 +12179,30 @@ class Menu {
|
|
|
12126
12179
|
* The custom name for the value field for IcMenuOption.
|
|
12127
12180
|
*/
|
|
12128
12181
|
this.valueField = "value";
|
|
12182
|
+
/**
|
|
12183
|
+
* @internal If `true`, allows the menu to receive focus when opened.
|
|
12184
|
+
*/
|
|
12185
|
+
this.allowMenuFocus = true;
|
|
12186
|
+
this.emitOptionId = (index) => {
|
|
12187
|
+
let option;
|
|
12188
|
+
if (index >= 0 && index < this.ungroupedOptions.length) {
|
|
12189
|
+
option = this.ungroupedOptions[index];
|
|
12190
|
+
}
|
|
12191
|
+
else if (this.ungroupedOptions.length > 0) {
|
|
12192
|
+
option =
|
|
12193
|
+
index < 0
|
|
12194
|
+
? this.ungroupedOptions[this.ungroupedOptions.length - 1]
|
|
12195
|
+
: this.ungroupedOptions[0];
|
|
12196
|
+
}
|
|
12197
|
+
if (option) {
|
|
12198
|
+
this.menuOptionId.emit({
|
|
12199
|
+
optionId: this.getOptionId(option[this.valueField]),
|
|
12200
|
+
});
|
|
12201
|
+
}
|
|
12202
|
+
else {
|
|
12203
|
+
this.menuOptionId.emit({ optionId: undefined });
|
|
12204
|
+
}
|
|
12205
|
+
};
|
|
12129
12206
|
this.handleClearListener = () => {
|
|
12130
12207
|
this.optionHighlighted = "";
|
|
12131
12208
|
};
|
|
@@ -12138,7 +12215,9 @@ class Menu {
|
|
|
12138
12215
|
this.menuStateChange.emit({ open, focusInput });
|
|
12139
12216
|
if (!open) {
|
|
12140
12217
|
if (focusInput !== false) {
|
|
12141
|
-
(
|
|
12218
|
+
if (this.allowMenuFocus) {
|
|
12219
|
+
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
12220
|
+
}
|
|
12142
12221
|
this.preventClickOpen = false;
|
|
12143
12222
|
}
|
|
12144
12223
|
// Reset optionHighlighted so previously highlighted option doesn't get reselected when Enter pressed
|
|
@@ -12197,16 +12276,42 @@ class Menu {
|
|
|
12197
12276
|
const selectedOptionIndex = this.ungroupedOptions.findIndex((option) => option[this.valueField] === this.value);
|
|
12198
12277
|
this.keyboardNav = false;
|
|
12199
12278
|
switch (event.key) {
|
|
12200
|
-
case "ArrowDown":
|
|
12279
|
+
case "ArrowDown": {
|
|
12201
12280
|
this.keyboardNav = true;
|
|
12202
12281
|
this.arrowBehaviour(event);
|
|
12282
|
+
const nextIndex = selectedOptionIndex < this.ungroupedOptions.length - 1
|
|
12283
|
+
? selectedOptionIndex + 1
|
|
12284
|
+
: 0;
|
|
12203
12285
|
this.setNextOptionValue(selectedOptionIndex);
|
|
12286
|
+
this.emitOptionId(nextIndex);
|
|
12204
12287
|
break;
|
|
12205
|
-
|
|
12288
|
+
}
|
|
12289
|
+
case "ArrowUp": {
|
|
12206
12290
|
this.keyboardNav = true;
|
|
12207
12291
|
this.arrowBehaviour(event);
|
|
12292
|
+
const prevIndex = selectedOptionIndex > 0
|
|
12293
|
+
? selectedOptionIndex - 1
|
|
12294
|
+
: this.ungroupedOptions.length - 1;
|
|
12208
12295
|
this.setPreviousOptionValue(selectedOptionIndex);
|
|
12296
|
+
this.emitOptionId(prevIndex);
|
|
12297
|
+
break;
|
|
12298
|
+
}
|
|
12299
|
+
case "Home": {
|
|
12300
|
+
this.keyboardNav = true;
|
|
12301
|
+
event.preventDefault();
|
|
12302
|
+
this.arrowBehaviour(event);
|
|
12303
|
+
this.setNextOptionValue(-1);
|
|
12304
|
+
this.emitOptionId(0);
|
|
12305
|
+
break;
|
|
12306
|
+
}
|
|
12307
|
+
case "End": {
|
|
12308
|
+
this.keyboardNav = true;
|
|
12309
|
+
event.preventDefault();
|
|
12310
|
+
this.arrowBehaviour(event);
|
|
12311
|
+
this.setPreviousOptionValue(this.ungroupedOptions.length);
|
|
12312
|
+
this.emitOptionId(this.ungroupedOptions.length - 1);
|
|
12209
12313
|
break;
|
|
12314
|
+
}
|
|
12210
12315
|
case " ":
|
|
12211
12316
|
case "Enter":
|
|
12212
12317
|
if (event.target.id !== this.CLEAR_BUTTON_ID) {
|
|
@@ -12406,14 +12511,15 @@ class Menu {
|
|
|
12406
12511
|
if (this.open) {
|
|
12407
12512
|
event.stopImmediatePropagation();
|
|
12408
12513
|
}
|
|
12409
|
-
this.handleMenuChange(false);
|
|
12514
|
+
this.handleMenuChange(false, !this.allowMenuFocus);
|
|
12410
12515
|
this.menuOptionId.emit({ optionId: undefined });
|
|
12411
12516
|
break;
|
|
12412
12517
|
case "a":
|
|
12413
12518
|
// Checks if Cmd (meta) key is pressed if Mac device (while excluding meta key on Windows)
|
|
12414
12519
|
// Otherwise, if a different OS, checks Ctrl key
|
|
12415
|
-
if (
|
|
12416
|
-
(
|
|
12520
|
+
if (this.multiSelect &&
|
|
12521
|
+
((isMacDevice() && event.metaKey) ||
|
|
12522
|
+
(!isMacDevice() && event.ctrlKey))) {
|
|
12417
12523
|
this.emitSelectAllEvents();
|
|
12418
12524
|
this.lastOptionFocused = null;
|
|
12419
12525
|
this.lastOptionSelected = null;
|
|
@@ -12518,14 +12624,6 @@ class Menu {
|
|
|
12518
12624
|
this.handleMouseDown = (event) => {
|
|
12519
12625
|
event.preventDefault();
|
|
12520
12626
|
};
|
|
12521
|
-
this.handleMenuKeyDown = (event) => {
|
|
12522
|
-
if (this.activationType === "automatic") {
|
|
12523
|
-
this.autoSetValueOnMenuKeyDown(event);
|
|
12524
|
-
}
|
|
12525
|
-
else if (this.activationType === "manual" && !this.searchBar) {
|
|
12526
|
-
this.manualSetInputValueKeyboardOpen(event);
|
|
12527
|
-
}
|
|
12528
|
-
};
|
|
12529
12627
|
this.handleMenuKeyUp = (event) => {
|
|
12530
12628
|
if (event.key === "Tab" && event.shiftKey) {
|
|
12531
12629
|
this.preventClickOpen = false;
|
|
@@ -12541,15 +12639,19 @@ class Menu {
|
|
|
12541
12639
|
this.handleSelectAllClick = () => {
|
|
12542
12640
|
var _a;
|
|
12543
12641
|
this.keyboardNav = false;
|
|
12544
|
-
(
|
|
12642
|
+
if (this.allowMenuFocus) {
|
|
12643
|
+
(_a = this.menu) === null || _a === void 0 ? void 0 : _a.focus();
|
|
12644
|
+
}
|
|
12545
12645
|
this.emitSelectAllEvents();
|
|
12546
12646
|
this.lastOptionFocused = null;
|
|
12547
12647
|
this.lastOptionSelected = null;
|
|
12548
12648
|
};
|
|
12549
12649
|
this.handleSelectAllBlur = (event) => {
|
|
12550
|
-
var _a;
|
|
12650
|
+
var _a, _b, _c;
|
|
12551
12651
|
this.host.classList.remove("ic-select-select-all-focused");
|
|
12552
|
-
|
|
12652
|
+
const relatedTarget = event.relatedTarget;
|
|
12653
|
+
if (!((_a = this.menu) === null || _a === void 0 ? void 0 : _a.contains(relatedTarget)) &&
|
|
12654
|
+
!((_c = (_b = this.parentEl) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.contains(relatedTarget))) {
|
|
12553
12655
|
this.handleMenuChange(false, false);
|
|
12554
12656
|
}
|
|
12555
12657
|
};
|
|
@@ -12633,7 +12735,7 @@ class Menu {
|
|
|
12633
12735
|
// (i.e. you don't have to press Enter select an option - just focus on it)
|
|
12634
12736
|
// and menu is focused
|
|
12635
12737
|
this.autoSetValueOnMenuKeyDown = (event) => {
|
|
12636
|
-
var _a
|
|
12738
|
+
var _a;
|
|
12637
12739
|
event.cancelBubble = true;
|
|
12638
12740
|
const selectedOptionIndex = this.ungroupedOptions.findIndex((option) => option[this.valueField] === this.value);
|
|
12639
12741
|
const isSearchableSelect = !!this.inputEl && this.inputEl.tagName === "INPUT";
|
|
@@ -12646,6 +12748,9 @@ class Menu {
|
|
|
12646
12748
|
if (!this.hasTimedOut) {
|
|
12647
12749
|
event.preventDefault();
|
|
12648
12750
|
this.setPreviousOptionValue(selectedOptionIndex);
|
|
12751
|
+
this.emitOptionId(selectedOptionIndex > 0
|
|
12752
|
+
? selectedOptionIndex - 1
|
|
12753
|
+
: this.ungroupedOptions.length - 1);
|
|
12649
12754
|
this.keyboardNav = true;
|
|
12650
12755
|
}
|
|
12651
12756
|
break;
|
|
@@ -12653,6 +12758,9 @@ class Menu {
|
|
|
12653
12758
|
if (!this.hasTimedOut) {
|
|
12654
12759
|
event.preventDefault();
|
|
12655
12760
|
this.setNextOptionValue(selectedOptionIndex);
|
|
12761
|
+
this.emitOptionId(selectedOptionIndex < this.ungroupedOptions.length - 1
|
|
12762
|
+
? selectedOptionIndex + 1
|
|
12763
|
+
: 0);
|
|
12656
12764
|
this.keyboardNav = true;
|
|
12657
12765
|
}
|
|
12658
12766
|
break;
|
|
@@ -12660,30 +12768,29 @@ class Menu {
|
|
|
12660
12768
|
this.menuOptionSelect.emit({
|
|
12661
12769
|
value: this.ungroupedOptions[0][this.valueField],
|
|
12662
12770
|
});
|
|
12771
|
+
this.emitOptionId(0);
|
|
12663
12772
|
this.keyboardNav = true;
|
|
12664
12773
|
break;
|
|
12665
12774
|
case "End":
|
|
12666
12775
|
this.menuOptionSelect.emit({
|
|
12667
12776
|
value: this.ungroupedOptions[this.ungroupedOptions.length - 1][this.valueField],
|
|
12668
12777
|
});
|
|
12778
|
+
this.emitOptionId(this.ungroupedOptions.length - 1);
|
|
12669
12779
|
this.keyboardNav = true;
|
|
12670
12780
|
break;
|
|
12671
12781
|
case "Enter":
|
|
12672
12782
|
!this.hasTimedOut && this.handleMenuChange(false);
|
|
12673
12783
|
break;
|
|
12674
12784
|
case "Escape":
|
|
12675
|
-
this.handleMenuChange(false);
|
|
12785
|
+
this.handleMenuChange(false, !this.allowMenuFocus);
|
|
12676
12786
|
break;
|
|
12677
12787
|
case "Backspace":
|
|
12678
|
-
if (isSearchableSelect) {
|
|
12679
|
-
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
12680
|
-
}
|
|
12681
12788
|
break;
|
|
12682
12789
|
case "Shift":
|
|
12683
12790
|
break;
|
|
12684
12791
|
default:
|
|
12685
12792
|
if (isSearchableSelect && event.key !== "Tab" && !this.hasTimedOut) {
|
|
12686
|
-
(
|
|
12793
|
+
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
12687
12794
|
}
|
|
12688
12795
|
if (event.key.length === 1) {
|
|
12689
12796
|
this.keyboardNav = true;
|
|
@@ -12722,21 +12829,28 @@ class Menu {
|
|
|
12722
12829
|
return menuOptions.findIndex((option) => option[this.valueField] === this.optionHighlighted);
|
|
12723
12830
|
};
|
|
12724
12831
|
this.isManualMode = this.activationType === "manual";
|
|
12725
|
-
|
|
12832
|
+
// Scroll to highlighted option, or selected option if no highlighted option (i.e. when the menu opens)
|
|
12833
|
+
this.scrollToSelected = () => {
|
|
12726
12834
|
var _a;
|
|
12727
|
-
const
|
|
12835
|
+
const menu = this.menu;
|
|
12836
|
+
const selectedOption = this.selectOnEnter || this.searchableSelect || this.multiSelect
|
|
12728
12837
|
? this.host.querySelector(`li[data-value="${this.optionHighlighted}"]`)
|
|
12729
12838
|
: menu.querySelector(".option[aria-selected='true']");
|
|
12730
12839
|
if (selectedOption) {
|
|
12731
|
-
const
|
|
12732
|
-
|
|
12733
|
-
|
|
12734
|
-
menu.scrollTop
|
|
12840
|
+
const menuRect = menu.getBoundingClientRect();
|
|
12841
|
+
const optionRect = selectedOption.getBoundingClientRect();
|
|
12842
|
+
if (optionRect.top < menuRect.top) {
|
|
12843
|
+
menu.scrollTop -= menuRect.top - optionRect.top;
|
|
12844
|
+
}
|
|
12845
|
+
else if (optionRect.bottom > menuRect.bottom) {
|
|
12846
|
+
menu.scrollTop += optionRect.bottom - menuRect.bottom;
|
|
12735
12847
|
}
|
|
12736
12848
|
// 'aria-activedescendant' affects screen reader focus
|
|
12737
12849
|
// https://www.w3.org/TR/2017/WD-wai-aria-practices-1.1-20170628/#kbd_focus_activedescendant
|
|
12738
12850
|
(_a = this.menu) === null || _a === void 0 ? void 0 : _a.setAttribute(this.ACTIVE_DESCENDANT, selectedOption.id);
|
|
12739
|
-
|
|
12851
|
+
if (this.allowMenuFocus) {
|
|
12852
|
+
selectedOption.focus();
|
|
12853
|
+
}
|
|
12740
12854
|
}
|
|
12741
12855
|
};
|
|
12742
12856
|
// Set 'ungroupedOptions' variable and emit its value
|
|
@@ -12779,7 +12893,7 @@ class Menu {
|
|
|
12779
12893
|
"show-check-icon": showCheckIcon,
|
|
12780
12894
|
} }, (option.icon || !option.hideLabel) && (hAsync("div", { class: "option-label" }, option.icon && (hAsync("div", { class: "option-icon", innerHTML: sanitizeHTMLIconString(option.icon), "aria-hidden": "true" })), !option.hideLabel && (hAsync("ic-typography", { variant: "body", "aria-hidden": "true" }, option[this.labelField])))), option.description && (hAsync("ic-typography", { id: `${this.getOptionId(option[this.valueField])}-description`, class: "option-description", variant: "caption", "aria-hidden": "true" }, hAsync("p", null, option.description))), option.element && (hAsync("div", { class: {
|
|
12781
12895
|
"option-element": option.icon || !option.hideLabel || option.description,
|
|
12782
|
-
}, innerHTML: sanitizeHTMLString(option.element.component), "aria-hidden": "true" }))), showCheckIcon && hAsync("span", { class: "check-icon", innerHTML: checkIcon })));
|
|
12896
|
+
}, innerHTML: sanitizeHTMLString(option.element.component), "aria-hidden": "true" }))), showCheckIcon && (hAsync("span", { class: "check-icon", innerHTML: checkIcon, "aria-hidden": "true" }))));
|
|
12783
12897
|
};
|
|
12784
12898
|
this.displayOption = (option, selected, index, parentOption) => {
|
|
12785
12899
|
var _a;
|
|
@@ -12796,11 +12910,13 @@ class Menu {
|
|
|
12796
12910
|
"disabled-option": !!option.disabled,
|
|
12797
12911
|
"loading-option": !!option.loading,
|
|
12798
12912
|
timeout: !!option.timedOut,
|
|
12799
|
-
}, role: "option", tabindex:
|
|
12800
|
-
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
-
|
|
12913
|
+
}, role: "option", tabindex: !this.allowMenuFocus
|
|
12914
|
+
? "-1"
|
|
12915
|
+
: open &&
|
|
12916
|
+
(selected || option[this.valueField] === optionHighlighted) &&
|
|
12917
|
+
keyboardNav
|
|
12918
|
+
? "0"
|
|
12919
|
+
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": selected ? "true" : "false", "aria-disabled": option.disabled ? "true" : "false", onClick: !option.timedOut && !option.loading
|
|
12804
12920
|
? this.handleOptionClick
|
|
12805
12921
|
: undefined, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, "data-value": option[this.valueField], "data-label": option[this.labelField] }, ((_a = option.htmlProps) !== null && _a !== void 0 ? _a : {})), option.timedOut ? (hAsync(Fragment, null, hAsync("div", { class: "loading-error-info" }, hAsync("svg", { class: "error-icon-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#000000" }, hAsync("title", null, "Error"), hAsync("g", null, hAsync("path", { d: "M8.77 3L3.5 8.27V15.73L8.77 21H16.23L21.5 15.73V8.27L16.23 3M8.91 7L12.5 10.59L16.09 7L17.5 8.41L13.91 12L17.5 15.59L16.09 17L12.5 13.41L8.91 17L7.5 15.59L11.09 12L7.5 8.41" }))), hAsync("ic-typography", { variant: "label" }, option[this.labelField])), hAsync("ic-button", { size: "small", variant: "tertiary", onClick: this.handleRetry, onKeyDown: this.handleRetryKeyDown, onBlur: this.handleTimeoutBlur, id: "retry-button" }, "Retry"))) : (this.optionContent(option, selected))));
|
|
12806
12922
|
};
|
|
@@ -12862,10 +12978,7 @@ class Menu {
|
|
|
12862
12978
|
inputValueInOptions &&
|
|
12863
12979
|
this.autofocusOnSelected &&
|
|
12864
12980
|
!this.searchableSelect) {
|
|
12865
|
-
this.scrollToSelected(
|
|
12866
|
-
}
|
|
12867
|
-
else if (this.selectOnEnter) {
|
|
12868
|
-
this.menu.focus();
|
|
12981
|
+
this.scrollToSelected();
|
|
12869
12982
|
}
|
|
12870
12983
|
else if (!!this.optionHighlighted &&
|
|
12871
12984
|
!this.focusFromSearchKeypress &&
|
|
@@ -12873,15 +12986,19 @@ class Menu {
|
|
|
12873
12986
|
const highlightedEl = this.host.querySelector(`li[data-value="${this.optionHighlighted}"]`);
|
|
12874
12987
|
if (highlightedEl) {
|
|
12875
12988
|
this.menu.setAttribute(this.ACTIVE_DESCENDANT, highlightedEl.id);
|
|
12876
|
-
|
|
12989
|
+
if (this.allowMenuFocus) {
|
|
12990
|
+
highlightedEl.focus();
|
|
12991
|
+
}
|
|
12877
12992
|
}
|
|
12878
12993
|
}
|
|
12879
|
-
else if (this.inputEl &&
|
|
12994
|
+
else if (this.inputEl &&
|
|
12995
|
+
this.inputEl.tagName !== "INPUT" &&
|
|
12996
|
+
this.allowMenuFocus) {
|
|
12880
12997
|
this.menu.focus();
|
|
12881
12998
|
}
|
|
12882
12999
|
}
|
|
12883
|
-
if (this.menu && this.open
|
|
12884
|
-
this.scrollToSelected(
|
|
13000
|
+
if (this.menu && this.open) {
|
|
13001
|
+
this.scrollToSelected();
|
|
12885
13002
|
}
|
|
12886
13003
|
this.preventMenuFocus = false;
|
|
12887
13004
|
}
|
|
@@ -12916,6 +13033,19 @@ class Menu {
|
|
|
12916
13033
|
this.manualSetInputValueKeyboardOpen(event);
|
|
12917
13034
|
}
|
|
12918
13035
|
}
|
|
13036
|
+
/**
|
|
13037
|
+
* Used alongside activationType
|
|
13038
|
+
* If menu is open and user navigates options via keyboard, emit optionSelect custom event.
|
|
13039
|
+
* @param {KeyboardEvent} event The keyboard event which is available when handleMenuKeydown is invoked.
|
|
13040
|
+
*/
|
|
13041
|
+
async handleMenuKeyDown(event) {
|
|
13042
|
+
if (this.activationType === "automatic") {
|
|
13043
|
+
this.autoSetValueOnMenuKeyDown(event);
|
|
13044
|
+
}
|
|
13045
|
+
else if (this.activationType === "manual" && !this.searchBar) {
|
|
13046
|
+
this.manualSetInputValueKeyboardOpen(event);
|
|
13047
|
+
}
|
|
13048
|
+
}
|
|
12919
13049
|
/**
|
|
12920
13050
|
* @internal Used to highlight the first option in the menu.
|
|
12921
13051
|
*/
|
|
@@ -12969,7 +13099,7 @@ class Menu {
|
|
|
12969
13099
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
|
12970
13100
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
|
12971
13101
|
const hasNoResults = this.host.classList.contains("no-results");
|
|
12972
|
-
return (hAsync(Host, { key: '
|
|
13102
|
+
return (hAsync(Host, { key: '8b0e06f14c1979c3658e6e13fca3e4c6828c795d', class: {
|
|
12973
13103
|
"ic-menu-full-width": !!fullWidth,
|
|
12974
13104
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
|
12975
13105
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
|
@@ -12978,12 +13108,16 @@ class Menu {
|
|
|
12978
13108
|
[`ic-menu-${size}`]: true,
|
|
12979
13109
|
"ic-menu-open": open && options.length !== 0,
|
|
12980
13110
|
"ic-menu-multiple": multiSelect,
|
|
12981
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
13111
|
+
} }, options.length !== 0 && (hAsync("ul", { key: '5af8ebaf798f09d020cab17adf4ef04e0fe2f9d4', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", "aria-activedescendant": this.optionHighlighted
|
|
13112
|
+
? this.getOptionId(this.optionHighlighted)
|
|
13113
|
+
: undefined, tabindex: !this.allowMenuFocus
|
|
13114
|
+
? "-1"
|
|
13115
|
+
: open &&
|
|
13116
|
+
!keyboardNav &&
|
|
13117
|
+
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
|
13118
|
+
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
|
13119
|
+
? "0"
|
|
13120
|
+
: "-1", ref: (el) => (this.menu = el), onKeyDown: this.handleMenuKeyDown, onKeyUp: this.handleMenuKeyUp, onBlur: this.handleBlur }, this.getSortedOptions(options).map((option, index) => {
|
|
12987
13121
|
if (option.children) {
|
|
12988
13122
|
if (option.children.length > 0) {
|
|
12989
13123
|
return (hAsync("div", null, hAsync("ic-typography", { class: "option-group-title", role: "presentation", variant: "subtitle-small" }, hAsync("p", null, option[this.labelField])), option.children.map((childOption) => childOption[this.labelField] &&
|
|
@@ -13006,7 +13140,7 @@ class Menu {
|
|
|
13006
13140
|
multiSelect &&
|
|
13007
13141
|
!isLoading &&
|
|
13008
13142
|
!hasTimedOut &&
|
|
13009
|
-
!hasNoResults && (hAsync("div", { key: '
|
|
13143
|
+
!hasNoResults && (hAsync("div", { key: 'f1a670781a41df910d8d55d2a956e062faf5a425', class: "option-bar" }, hAsync("ic-typography", { key: '9687b26a0a275e9a6cff54180f2962d836ef4262' }, hAsync("p", { key: '33e219ebba6ad3eb4ed60d77d9ed86551cb93a48' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: '05e39e54ef176fb303ba59dcc3b91745cf38deef', class: "select-all-button", "aria-label": `${selectAllButtonText} options for ${inputLabel}`, ref: (el) => (this.selectAllButton = el), variant: "tertiary", onClick: this.handleSelectAllClick, onMouseDown: this.handleSelectAllMouseDown, onBlur: this.handleSelectAllBlur, onFocus: this.handleSelectAllFocus, size: size === "small" ? "small" : "medium" }, selectAllButtonText)))));
|
|
13010
13144
|
}
|
|
13011
13145
|
get host() { return getElement(this); }
|
|
13012
13146
|
static get watchers() { return {
|
|
@@ -13038,6 +13172,7 @@ class Menu {
|
|
|
13038
13172
|
"options": [16],
|
|
13039
13173
|
"value": [1],
|
|
13040
13174
|
"valueField": [1, "value-field"],
|
|
13175
|
+
"allowMenuFocus": [4, "allow-menu-focus"],
|
|
13041
13176
|
"focusFromSearchKeypress": [32],
|
|
13042
13177
|
"initialOptionsListRender": [32],
|
|
13043
13178
|
"keyboardNav": [32],
|
|
@@ -13047,6 +13182,7 @@ class Menu {
|
|
|
13047
13182
|
"popperProps": [32],
|
|
13048
13183
|
"handleClickOpen": [64],
|
|
13049
13184
|
"handleKeyboardOpen": [64],
|
|
13185
|
+
"handleMenuKeyDown": [64],
|
|
13050
13186
|
"handleSetFirstOption": [64],
|
|
13051
13187
|
"initPopperJs": [64],
|
|
13052
13188
|
"setExternalPopperProps": [64]
|
|
@@ -14551,6 +14687,427 @@ class Pagination {
|
|
|
14551
14687
|
}; }
|
|
14552
14688
|
}
|
|
14553
14689
|
|
|
14690
|
+
const icPaginationBarCss = ":host(){display:block}.pagination-bar{height:3.5rem;display:flex;align-items:center;justify-content:flex-end;gap:var(--ic-space-xl);padding:var(--ic-space-xs) var(--ic-space-md);box-sizing:border-box;--ic-typography-color:var(--ic-pagination-text)}.pagination-bar-left{justify-content:flex-start}.item-controls{display:flex;align-items:center;gap:var(--ic-space-xl)}.pagination-bar-space-between .item-controls{margin-right:auto}.items-per-page-holder{display:flex;align-items:center;gap:var(--ic-space-xs)}.items-per-page-input{--input-width:5rem;--ic-typography-color:var(--ic-pagination-select-content)}.pagination-controls{display:flex;align-items:center;gap:var(--ic-space-xl)}.pagination-controls-wrap{flex-direction:column;align-items:flex-end;gap:var(--ic-space-xs)}.pagination-bar-space-between .pagination-controls{margin-left:auto}.go-to-page-holder{display:flex;align-items:center;gap:var(--ic-space-xs)}.go-to-page-input{--input-width:var(--ic-space-xl)}.go-to-page-button{--min-width:var(--ic-space-xl)}.items-per-page-control-label{white-space:nowrap}@media screen and (max-width: 768px){.pagination-bar{flex-direction:column;align-items:flex-end;height:-moz-fit-content;height:fit-content;gap:var(--ic-space-xs)}.pagination-bar-left{align-items:flex-start}}@media screen and (max-width: 320px){.item-controls,.pagination-controls{flex-direction:column;align-items:flex-end;gap:var(--ic-space-xs)}.pagination-bar-left .item-controls,.pagination-bar-left .pagination-controls,.pagination-bar-space-between .item-controls,.pagination-bar-space-between .pagination-controls{align-items:flex-start}}";
|
|
14691
|
+
var IcPaginationBarStyle0 = icPaginationBarCss;
|
|
14692
|
+
|
|
14693
|
+
class PaginationBar {
|
|
14694
|
+
constructor(hostRef) {
|
|
14695
|
+
registerInstance(this, hostRef);
|
|
14696
|
+
this.icPageChange = createEvent(this, "icPageChange", 7);
|
|
14697
|
+
this.icItemsPerPageChange = createEvent(this, "icItemsPerPageChange", 7);
|
|
14698
|
+
this.PAGE_INPUT_FIELD_ID = "go-to-page-input";
|
|
14699
|
+
this.INVALID_PAGE_ERROR = "Please enter a valid page";
|
|
14700
|
+
this.resizeObserver = null;
|
|
14701
|
+
this.activePage = 1;
|
|
14702
|
+
this.inputError = "Please enter a valid page";
|
|
14703
|
+
this.itemsPerPage = 10;
|
|
14704
|
+
this.itemsPerPageString = "10";
|
|
14705
|
+
this.lowerBound = 1;
|
|
14706
|
+
this.paginationWrapped = false;
|
|
14707
|
+
/**
|
|
14708
|
+
* The accessible label passed down to the pagination component to provide context for screen reader users.
|
|
14709
|
+
*/
|
|
14710
|
+
this.accessibleLabel = "Pagination Navigation";
|
|
14711
|
+
/**
|
|
14712
|
+
* Sets the alignment of the items in the pagination bar.
|
|
14713
|
+
*/
|
|
14714
|
+
this.alignment = "right";
|
|
14715
|
+
/**
|
|
14716
|
+
* The current page number to be displayed on the pagination bar.
|
|
14717
|
+
*/
|
|
14718
|
+
this.currentPage = 1;
|
|
14719
|
+
/**
|
|
14720
|
+
* If `true`, the 'All' option will be hidden from the 'items per page' select input.
|
|
14721
|
+
*/
|
|
14722
|
+
this.hideAllFromItemsPerPage = false;
|
|
14723
|
+
/**
|
|
14724
|
+
* If `true`, the current page of the simple pagination will not be displayed.
|
|
14725
|
+
*/
|
|
14726
|
+
this.hideCurrentPage = false;
|
|
14727
|
+
/**
|
|
14728
|
+
* If `true`, the first and last page buttons will not be displayed.
|
|
14729
|
+
*/
|
|
14730
|
+
this.hideFirstAndLastPageButton = false;
|
|
14731
|
+
/**
|
|
14732
|
+
* The text which will be used in place of 'Item' on the pagination bar.
|
|
14733
|
+
*/
|
|
14734
|
+
this.itemLabel = "Item";
|
|
14735
|
+
/**
|
|
14736
|
+
* If `true`, the pagination bar will display as black in the light theme, and white in dark theme.
|
|
14737
|
+
*/
|
|
14738
|
+
this.monochrome = false;
|
|
14739
|
+
/**
|
|
14740
|
+
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
|
14741
|
+
*/
|
|
14742
|
+
this.theme = "inherit";
|
|
14743
|
+
/**
|
|
14744
|
+
* Whether the displayed pagination is simple or complex.
|
|
14745
|
+
*/
|
|
14746
|
+
this.type = "simple";
|
|
14747
|
+
/**
|
|
14748
|
+
* Whether total number of items and current item range or total number of pages and current page is displayed.
|
|
14749
|
+
*/
|
|
14750
|
+
this.rangeLabelType = "page";
|
|
14751
|
+
/**
|
|
14752
|
+
* The text which will be used in place of 'Page' on the pagination bar.
|
|
14753
|
+
*/
|
|
14754
|
+
this.pageLabel = "Page";
|
|
14755
|
+
/**
|
|
14756
|
+
* If `true`, the 'go to page' control should be displayed.
|
|
14757
|
+
*/
|
|
14758
|
+
this.showGoToPageControl = false;
|
|
14759
|
+
/**
|
|
14760
|
+
* If `true`, the number of total items and current item range or number of total pages and current page will be hidden.
|
|
14761
|
+
*/
|
|
14762
|
+
this.hideRangeLabel = false;
|
|
14763
|
+
/**
|
|
14764
|
+
* If `false`, the value in the items per page control will be set immediately on ArrowUp and ArrowDown instead of when Enter is pressed.
|
|
14765
|
+
*/
|
|
14766
|
+
this.selectItemsPerPageOnEnter = true;
|
|
14767
|
+
/**
|
|
14768
|
+
* If `true`, the select input to control 'items per page' should be displayed.
|
|
14769
|
+
*/
|
|
14770
|
+
this.showItemsPerPageControl = false;
|
|
14771
|
+
/**
|
|
14772
|
+
If `true`, the pagination bar is set to the first page when the 'items per page' changes
|
|
14773
|
+
*/
|
|
14774
|
+
this.setToFirstPageOnPaginationChange = false;
|
|
14775
|
+
this.setSelectedItemsPerPage = (selectedItemsPerPage, displayedItemsPerPageOptions = []) => {
|
|
14776
|
+
const isSelectedItemsPerPagePresent = displayedItemsPerPageOptions === null || displayedItemsPerPageOptions === void 0 ? void 0 : displayedItemsPerPageOptions.some(({ value }) => { var _a; return value === ((_a = this.selectedItemsPerPage) === null || _a === void 0 ? void 0 : _a.toString()); });
|
|
14777
|
+
if (isSelectedItemsPerPagePresent) {
|
|
14778
|
+
this.setItemsPerPage(selectedItemsPerPage, false);
|
|
14779
|
+
}
|
|
14780
|
+
else {
|
|
14781
|
+
console.error(`The selected items per page option "${this.selectedItemsPerPage}" does not exist`);
|
|
14782
|
+
this.setItemsPerPage(+this.totalItems, false);
|
|
14783
|
+
}
|
|
14784
|
+
};
|
|
14785
|
+
this.changeItemsPerPage = () => {
|
|
14786
|
+
this.setItemsPerPage(Number(this.pageDropdownEl.value));
|
|
14787
|
+
this.userSetItemsPerPage = Number(this.pageDropdownEl.value);
|
|
14788
|
+
};
|
|
14789
|
+
this.changePage = (page) => {
|
|
14790
|
+
this.activePage = page;
|
|
14791
|
+
this.lowerBound = page !== 1 ? (page - 1) * this.itemsPerPage + 1 : page;
|
|
14792
|
+
this.setUpperBound();
|
|
14793
|
+
};
|
|
14794
|
+
this.focusElFromLabel = (el) => {
|
|
14795
|
+
var _a, _b;
|
|
14796
|
+
(_b = (_a = this.paginationBarEl) === null || _a === void 0 ? void 0 : _a.querySelector(el)) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
14797
|
+
};
|
|
14798
|
+
this.goToPage = () => {
|
|
14799
|
+
var _a;
|
|
14800
|
+
const input = this.pageInputEl;
|
|
14801
|
+
const page = Number(input.value);
|
|
14802
|
+
if (page <= this.totalPages && page > 0) {
|
|
14803
|
+
this.changePage(page);
|
|
14804
|
+
(_a = this.paginationEl) === null || _a === void 0 ? void 0 : _a.setCurrentPage(page);
|
|
14805
|
+
this.activePage = page;
|
|
14806
|
+
input.value = "";
|
|
14807
|
+
this.icPageChange.emit({ value: page });
|
|
14808
|
+
this.pageInputTooltipEl.displayTooltip(false, false);
|
|
14809
|
+
input.validationStatus = "";
|
|
14810
|
+
}
|
|
14811
|
+
else {
|
|
14812
|
+
this.setInputError(input, this.INVALID_PAGE_ERROR);
|
|
14813
|
+
}
|
|
14814
|
+
};
|
|
14815
|
+
this.goToPageLabelClickHandler = () => {
|
|
14816
|
+
this.focusElFromLabel("ic-text-field");
|
|
14817
|
+
};
|
|
14818
|
+
this.handleBlur = () => {
|
|
14819
|
+
const textField = this.pageInputEl;
|
|
14820
|
+
if ((Number(textField.value) <= this.totalPages &&
|
|
14821
|
+
Number(textField.value) > 0) ||
|
|
14822
|
+
textField.value === "") {
|
|
14823
|
+
textField.validationStatus = "";
|
|
14824
|
+
}
|
|
14825
|
+
this.pageInputTooltipEl.displayTooltip(false, false);
|
|
14826
|
+
};
|
|
14827
|
+
this.handleFocus = () => {
|
|
14828
|
+
if (this.pageInputEl.validationStatus === "error") {
|
|
14829
|
+
this.pageInputTooltipEl.displayTooltip(true, true);
|
|
14830
|
+
}
|
|
14831
|
+
};
|
|
14832
|
+
this.handleInputChange = () => {
|
|
14833
|
+
const inputValue = parseInt(this.pageInputEl.value);
|
|
14834
|
+
if (inputValue > this.totalPages || inputValue <= 0) {
|
|
14835
|
+
this.setInputError(this.pageInputEl, this.INVALID_PAGE_ERROR);
|
|
14836
|
+
this.pageInputTooltipEl.displayTooltip(true, true);
|
|
14837
|
+
}
|
|
14838
|
+
};
|
|
14839
|
+
this.handleKeydown = (ev) => {
|
|
14840
|
+
if (ev.key === "Enter") {
|
|
14841
|
+
if (this.pageInputEl.validationStatus === "error") {
|
|
14842
|
+
this.pageInputTooltipEl.displayTooltip(true, true);
|
|
14843
|
+
}
|
|
14844
|
+
else {
|
|
14845
|
+
this.goToPage();
|
|
14846
|
+
}
|
|
14847
|
+
}
|
|
14848
|
+
else {
|
|
14849
|
+
this.pageInputTooltipEl.displayTooltip(false, false);
|
|
14850
|
+
this.pageInputEl.validationStatus = "";
|
|
14851
|
+
}
|
|
14852
|
+
};
|
|
14853
|
+
this.handleKeyUp = (ev) => {
|
|
14854
|
+
if (Number.isNaN(parseInt(this.pageInputEl.value)) &&
|
|
14855
|
+
ev.key !== "Backspace" &&
|
|
14856
|
+
ev.key !== "Enter" &&
|
|
14857
|
+
ev.key !== "Tab" &&
|
|
14858
|
+
ev.key !== "Shift") {
|
|
14859
|
+
this.setInputError(this.pageInputEl, "Please enter a number", false);
|
|
14860
|
+
this.pageInputTooltipEl.displayTooltip(true, false);
|
|
14861
|
+
}
|
|
14862
|
+
};
|
|
14863
|
+
this.itemsPerPageLabelClickHandler = () => {
|
|
14864
|
+
this.focusElFromLabel("ic-select");
|
|
14865
|
+
};
|
|
14866
|
+
this.paginationShouldWrap = () => {
|
|
14867
|
+
if (this.type === "simple") {
|
|
14868
|
+
this.paginationWrapped = this.paginationEl.clientHeight > 63;
|
|
14869
|
+
}
|
|
14870
|
+
};
|
|
14871
|
+
this.runResizeObserver = () => {
|
|
14872
|
+
if (this.paginationBarEl) {
|
|
14873
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
14874
|
+
const { clientWidth } = this.paginationBarEl;
|
|
14875
|
+
if (clientWidth - this.paginationWidth > 50 ||
|
|
14876
|
+
clientWidth - this.paginationWidth < -50) {
|
|
14877
|
+
this.paginationWidth = clientWidth;
|
|
14878
|
+
this.paginationShouldWrap();
|
|
14879
|
+
}
|
|
14880
|
+
});
|
|
14881
|
+
this.resizeObserver.observe(this.paginationBarEl);
|
|
14882
|
+
}
|
|
14883
|
+
};
|
|
14884
|
+
this.setInputError = (el, error, focus = true) => {
|
|
14885
|
+
this.inputError = error;
|
|
14886
|
+
el.validationStatus = "error";
|
|
14887
|
+
if (focus)
|
|
14888
|
+
el.setFocus();
|
|
14889
|
+
};
|
|
14890
|
+
this.setToFirstPage = () => {
|
|
14891
|
+
var _a;
|
|
14892
|
+
const firstPage = 1;
|
|
14893
|
+
this.changePage(firstPage);
|
|
14894
|
+
(_a = this.paginationEl) === null || _a === void 0 ? void 0 : _a.setCurrentPage(firstPage);
|
|
14895
|
+
this.activePage = firstPage;
|
|
14896
|
+
this.icPageChange.emit({ value: firstPage });
|
|
14897
|
+
};
|
|
14898
|
+
this.setItemsPerPage = (newValue, isUserAction = true) => {
|
|
14899
|
+
var _a;
|
|
14900
|
+
if (this.itemsPerPage !== newValue) {
|
|
14901
|
+
this.itemsPerPage = newValue;
|
|
14902
|
+
this.itemsPerPageString = newValue.toString();
|
|
14903
|
+
this.icItemsPerPageChange.emit({
|
|
14904
|
+
value: this.itemsPerPage,
|
|
14905
|
+
isUserAction,
|
|
14906
|
+
});
|
|
14907
|
+
if (this.setToFirstPageOnPaginationChange) {
|
|
14908
|
+
this.setToFirstPage();
|
|
14909
|
+
}
|
|
14910
|
+
}
|
|
14911
|
+
this.totalPages =
|
|
14912
|
+
this.totalItems > this.itemsPerPage
|
|
14913
|
+
? Math.ceil(this.totalItems / this.itemsPerPage)
|
|
14914
|
+
: 1;
|
|
14915
|
+
this.setUpperBound();
|
|
14916
|
+
if (this.activePage > this.totalPages) {
|
|
14917
|
+
(_a = this.paginationEl) === null || _a === void 0 ? void 0 : _a.setCurrentPage(this.totalPages);
|
|
14918
|
+
this.activePage = this.totalPages;
|
|
14919
|
+
}
|
|
14920
|
+
this.icPageChange.emit({ value: this.activePage, fromItemsPerPage: true });
|
|
14921
|
+
};
|
|
14922
|
+
this.setPaginationBarContent = () => {
|
|
14923
|
+
const clonedItemsPerPageOptions = this.itemsPerPageOptions
|
|
14924
|
+
? JSON.parse(JSON.stringify(this.itemsPerPageOptions))
|
|
14925
|
+
: null;
|
|
14926
|
+
const displayedItemsPerPageOptions = clonedItemsPerPageOptions ||
|
|
14927
|
+
(this.totalItems <= 100
|
|
14928
|
+
? [
|
|
14929
|
+
{ label: "10", value: "10" },
|
|
14930
|
+
{ label: "25", value: "25" },
|
|
14931
|
+
{ label: "50", value: "50" },
|
|
14932
|
+
]
|
|
14933
|
+
: [
|
|
14934
|
+
{ label: "25", value: "25" },
|
|
14935
|
+
{ label: "100", value: "100" },
|
|
14936
|
+
{ label: "1000", value: "1000" },
|
|
14937
|
+
]);
|
|
14938
|
+
!this.hideAllFromItemsPerPage &&
|
|
14939
|
+
displayedItemsPerPageOptions.push({
|
|
14940
|
+
label: "All",
|
|
14941
|
+
value: String(this.totalItems),
|
|
14942
|
+
});
|
|
14943
|
+
this.displayedItemsPerPageOptions = displayedItemsPerPageOptions.filter(({ value }) => this.totalItems >= Number(value));
|
|
14944
|
+
let lastOptionValue = 0;
|
|
14945
|
+
if (this.userSetItemsPerPage) {
|
|
14946
|
+
this.displayedItemsPerPageOptions.some(({ value }) => {
|
|
14947
|
+
lastOptionValue = Number(value);
|
|
14948
|
+
return this.userSetItemsPerPage <= lastOptionValue;
|
|
14949
|
+
});
|
|
14950
|
+
this.setItemsPerPage(lastOptionValue);
|
|
14951
|
+
}
|
|
14952
|
+
else {
|
|
14953
|
+
if (this.selectedItemsPerPage !== null &&
|
|
14954
|
+
this.selectedItemsPerPage !== undefined) {
|
|
14955
|
+
this.setSelectedItemsPerPage(this.selectedItemsPerPage, this.displayedItemsPerPageOptions);
|
|
14956
|
+
}
|
|
14957
|
+
else {
|
|
14958
|
+
const updated = this.displayedItemsPerPageOptions.some(({ value }) => {
|
|
14959
|
+
lastOptionValue = Number(value);
|
|
14960
|
+
return this.itemsPerPage <= lastOptionValue;
|
|
14961
|
+
});
|
|
14962
|
+
this.setItemsPerPage(updated || (!updated && this.itemsPerPage > lastOptionValue)
|
|
14963
|
+
? lastOptionValue
|
|
14964
|
+
: this.itemsPerPage, false);
|
|
14965
|
+
}
|
|
14966
|
+
}
|
|
14967
|
+
};
|
|
14968
|
+
this.setUpperBound = () => {
|
|
14969
|
+
this.upperBound = Math.min(this.lowerBound + this.itemsPerPage - 1, this.totalItems);
|
|
14970
|
+
};
|
|
14971
|
+
}
|
|
14972
|
+
watchPageNumberHandler() {
|
|
14973
|
+
this.setPaginationBarContent();
|
|
14974
|
+
if (typeof this.currentPage === "number" && this.currentPage) {
|
|
14975
|
+
if (this.currentPage < 1 ||
|
|
14976
|
+
(this.totalPages && this.currentPage > this.totalPages)) {
|
|
14977
|
+
console.warn(`The current page (${this.currentPage}) must be a number greater than zero but less than or equal to the total number of pages (${this.totalPages})`);
|
|
14978
|
+
}
|
|
14979
|
+
else {
|
|
14980
|
+
this.activePage = this.currentPage;
|
|
14981
|
+
}
|
|
14982
|
+
}
|
|
14983
|
+
}
|
|
14984
|
+
watchSelectedItemsPerPageHandler() {
|
|
14985
|
+
if (this.selectedItemsPerPage !== null &&
|
|
14986
|
+
this.selectedItemsPerPage !== undefined) {
|
|
14987
|
+
this.setSelectedItemsPerPage(this.selectedItemsPerPage, this.displayedItemsPerPageOptions);
|
|
14988
|
+
}
|
|
14989
|
+
}
|
|
14990
|
+
watchItemLabelHandler() {
|
|
14991
|
+
this.capitalizedItemLabel = capitalize(this.itemLabel);
|
|
14992
|
+
this.lowerCaseItemLabel = this.itemLabel.toLowerCase();
|
|
14993
|
+
}
|
|
14994
|
+
watchItemsPerPageOptionsHandler(newVal, oldVal) {
|
|
14995
|
+
if (JSON.stringify(newVal) === JSON.stringify(oldVal))
|
|
14996
|
+
return;
|
|
14997
|
+
this.setPaginationBarContent();
|
|
14998
|
+
}
|
|
14999
|
+
watchPageLabelHandler() {
|
|
15000
|
+
this.capitalizedPageLabel = capitalize(this.pageLabel);
|
|
15001
|
+
this.lowerCasePageLabel = this.pageLabel.toLowerCase();
|
|
15002
|
+
}
|
|
15003
|
+
watchTotalItemsHandler() {
|
|
15004
|
+
this.setPaginationBarContent();
|
|
15005
|
+
}
|
|
15006
|
+
watchSetToFirstPageOnPaginationChange() {
|
|
15007
|
+
this.setPaginationBarContent();
|
|
15008
|
+
}
|
|
15009
|
+
disconnectedCallback() {
|
|
15010
|
+
var _a;
|
|
15011
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
15012
|
+
}
|
|
15013
|
+
componentWillLoad() {
|
|
15014
|
+
this.watchPageNumberHandler();
|
|
15015
|
+
this.watchPageLabelHandler();
|
|
15016
|
+
this.watchItemLabelHandler();
|
|
15017
|
+
this.setPaginationBarContent();
|
|
15018
|
+
}
|
|
15019
|
+
componentDidLoad() {
|
|
15020
|
+
var _a, _b, _c;
|
|
15021
|
+
this.paginationWidth = ((_a = this.paginationBarEl) === null || _a === void 0 ? void 0 : _a.clientWidth) || 0;
|
|
15022
|
+
checkResizeObserver(this.runResizeObserver);
|
|
15023
|
+
const textField = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(`.${this.PAGE_INPUT_FIELD_ID}`);
|
|
15024
|
+
if (textField) {
|
|
15025
|
+
const input = (_c = textField === null || textField === void 0 ? void 0 : textField.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector("input");
|
|
15026
|
+
if (input) {
|
|
15027
|
+
input.style.textAlign = "center";
|
|
15028
|
+
input.style.padding = "0";
|
|
15029
|
+
}
|
|
15030
|
+
}
|
|
15031
|
+
this.paginationShouldWrap();
|
|
15032
|
+
}
|
|
15033
|
+
pageChangeHandler(ev) {
|
|
15034
|
+
const page = ev.detail.value;
|
|
15035
|
+
this.changePage(page);
|
|
15036
|
+
}
|
|
15037
|
+
render() {
|
|
15038
|
+
const { accessibleLabel, alignment, displayedItemsPerPageOptions, PAGE_INPUT_FIELD_ID, type, rangeLabelType, hideRangeLabel, showItemsPerPageControl, showGoToPageControl, pageLabel, capitalizedPageLabel, lowerCasePageLabel, capitalizedItemLabel, lowerCaseItemLabel, totalPages, activePage, itemsPerPageString, theme, monochrome, selectItemsPerPageOnEnter, hideCurrentPage, hideFirstAndLastPageButton, } = this;
|
|
15039
|
+
return (hAsync(Host, { key: 'c11938d14250e5435166136014565a78c8fbe1b0', class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '14cef9faa92a11d48b0f569524f69a75924fcea5', class: {
|
|
15040
|
+
["pagination-bar"]: true,
|
|
15041
|
+
[`pagination-bar-${alignment}`]: true,
|
|
15042
|
+
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { key: 'ce45782788e8a0fa10c1c4be4c88dd66238abc0d', class: "item-controls" }, showItemsPerPageControl && (hAsync("div", { key: '988fd5587d581f707c859b116c0523a09b1fc629', class: "items-per-page-holder" }, hAsync("ic-typography", { key: '78062c53ca82dcc53fa6de6da987284760a75411', class: {
|
|
15043
|
+
["items-per-page-control-label"]: true,
|
|
15044
|
+
}, variant: "label", onClick: this.itemsPerPageLabelClickHandler }, capitalizedItemLabel, "s per ", lowerCasePageLabel), hAsync("ic-select", { key: '5f661cc9f2aa0f691d2e099d34531651acfd4623', theme: theme, size: "small", label: "items-per-page-input", class: "items-per-page-input", hideLabel: true, options: displayedItemsPerPageOptions, selectOnEnter: selectItemsPerPageOnEnter, value: itemsPerPageString, onIcChange: this.changeItemsPerPage, ref: (el) => (this.pageDropdownEl = el) }))), !hideRangeLabel &&
|
|
15045
|
+
(rangeLabelType === "data" ? (hAsync("ic-typography", { class: {
|
|
15046
|
+
["item-pagination-label"]: true,
|
|
15047
|
+
}, variant: "label", "aria-live": "polite" }, this.upperBound === 0 && `0 ${lowerCaseItemLabel}s`, this.upperBound > 0 &&
|
|
15048
|
+
`${this.lowerBound} - ${this.upperBound} of ${this.totalItems} ${lowerCaseItemLabel}${this.totalItems > 1 ? "s" : ""}`)) : (hAsync("ic-typography", { class: {
|
|
15049
|
+
["page-pagination-label"]: true,
|
|
15050
|
+
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: '2fe098d17de85749fb85b9da97e821c1102e30d5', class: {
|
|
15051
|
+
["pagination-controls"]: true,
|
|
15052
|
+
["pagination-controls-wrap"]: this.paginationWrapped,
|
|
15053
|
+
} }, hAsync("div", { key: '2df84c3e3e46f8915c3cc223343af2d628025f9f', class: "pagination-holder" }, hAsync("ic-pagination", { key: 'ad3217739a5828cbd6e438692ca5a987eab25d51', accessibleLabel: accessibleLabel, type: type, pages: totalPages, label: pageLabel, ref: (el) => (this.paginationEl = el), currentPage: activePage, theme: theme, monochrome: monochrome, hideCurrentPage: hideCurrentPage, hideFirstAndLastPageButton: hideFirstAndLastPageButton })), showGoToPageControl && (hAsync("div", { key: '107a7b12ce7d9dd3f3ea2b62bd43c5556dfc2145', class: "go-to-page-holder" }, hAsync("ic-typography", { key: '6042313933f74fa385a6cd5244eb32f650b3efe6', variant: "label", onClick: this.goToPageLabelClickHandler }, "Go to ", lowerCasePageLabel), hAsync("ic-tooltip", { key: '2667de79e971e45b48b17f6479f17c34b94b9630', label: this.inputError, target: `#${PAGE_INPUT_FIELD_ID}`, disableHover: true, disableClick: true, ref: (el) => (this.pageInputTooltipEl = el) }, hAsync("ic-text-field", { key: 'd0039eb822e6bc06d9e9c35c24c962017fffc818', theme: theme, type: "number", size: "small", label: PAGE_INPUT_FIELD_ID, class: PAGE_INPUT_FIELD_ID, id: PAGE_INPUT_FIELD_ID, hideLabel: true, onKeyDown: this.handleKeydown, onKeyUp: this.handleKeyUp, onInput: this.handleInputChange, max: totalPages, min: "1", validationInlineInternal: true, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: (el) => (this.pageInputEl = el) })), hAsync("ic-button", { key: 'a5159ea7b8994d71d04a13e4e7dd2f778b9e6e63', variant: "secondary", onClick: this.goToPage, size: "small", class: "go-to-page-button" }, "Go")))))));
|
|
15054
|
+
}
|
|
15055
|
+
get el() { return getElement(this); }
|
|
15056
|
+
static get watchers() { return {
|
|
15057
|
+
"currentPage": ["watchPageNumberHandler"],
|
|
15058
|
+
"selectedItemsPerPage": ["watchSelectedItemsPerPageHandler"],
|
|
15059
|
+
"itemLabel": ["watchItemLabelHandler"],
|
|
15060
|
+
"itemsPerPageOptions": ["watchItemsPerPageOptionsHandler"],
|
|
15061
|
+
"pageLabel": ["watchPageLabelHandler"],
|
|
15062
|
+
"totalItems": ["watchTotalItemsHandler"],
|
|
15063
|
+
"setToFirstPageOnPaginationChange": ["watchSetToFirstPageOnPaginationChange"]
|
|
15064
|
+
}; }
|
|
15065
|
+
static get style() { return IcPaginationBarStyle0; }
|
|
15066
|
+
static get cmpMeta() { return {
|
|
15067
|
+
"$flags$": 9,
|
|
15068
|
+
"$tagName$": "ic-pagination-bar",
|
|
15069
|
+
"$members$": {
|
|
15070
|
+
"accessibleLabel": [1, "accessible-label"],
|
|
15071
|
+
"alignment": [1],
|
|
15072
|
+
"currentPage": [2, "current-page"],
|
|
15073
|
+
"selectedItemsPerPage": [2, "selected-items-per-page"],
|
|
15074
|
+
"hideAllFromItemsPerPage": [4, "hide-all-from-items-per-page"],
|
|
15075
|
+
"hideCurrentPage": [4, "hide-current-page"],
|
|
15076
|
+
"hideFirstAndLastPageButton": [4, "hide-first-and-last-page-button"],
|
|
15077
|
+
"itemLabel": [1, "item-label"],
|
|
15078
|
+
"itemsPerPageOptions": [16],
|
|
15079
|
+
"monochrome": [4],
|
|
15080
|
+
"theme": [1],
|
|
15081
|
+
"type": [1],
|
|
15082
|
+
"rangeLabelType": [1, "range-label-type"],
|
|
15083
|
+
"pageLabel": [1, "page-label"],
|
|
15084
|
+
"showGoToPageControl": [4, "show-go-to-page-control"],
|
|
15085
|
+
"hideRangeLabel": [4, "hide-range-label"],
|
|
15086
|
+
"selectItemsPerPageOnEnter": [4, "select-items-per-page-on-enter"],
|
|
15087
|
+
"showItemsPerPageControl": [4, "show-items-per-page-control"],
|
|
15088
|
+
"totalItems": [2, "total-items"],
|
|
15089
|
+
"setToFirstPageOnPaginationChange": [4, "set-to-first-page-on-pagination-change"],
|
|
15090
|
+
"capitalizedItemLabel": [32],
|
|
15091
|
+
"capitalizedPageLabel": [32],
|
|
15092
|
+
"activePage": [32],
|
|
15093
|
+
"displayedItemsPerPageOptions": [32],
|
|
15094
|
+
"inputError": [32],
|
|
15095
|
+
"itemsPerPage": [32],
|
|
15096
|
+
"itemsPerPageString": [32],
|
|
15097
|
+
"lowerBound": [32],
|
|
15098
|
+
"lowerCaseItemLabel": [32],
|
|
15099
|
+
"lowerCasePageLabel": [32],
|
|
15100
|
+
"paginationWidth": [32],
|
|
15101
|
+
"paginationWrapped": [32],
|
|
15102
|
+
"totalPages": [32],
|
|
15103
|
+
"upperBound": [32]
|
|
15104
|
+
},
|
|
15105
|
+
"$listeners$": [[0, "icPageChange", "pageChangeHandler"]],
|
|
15106
|
+
"$lazyBundleId$": "-",
|
|
15107
|
+
"$attrsToReflect$": []
|
|
15108
|
+
}; }
|
|
15109
|
+
}
|
|
15110
|
+
|
|
14554
15111
|
const icPaginationItemCss = "/*! 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}a{text-align:center}.item-container{display:flex;justify-content:center;align-items:center;width:calc(var(--ic-space-xl) + var(--ic-space-sm));height:var(--ic-space-xl);margin:var(--ic-space-xxs) var(--ic-space-xxxs);cursor:pointer;text-decoration:none}button{background:none;border:none;outline:inherit;position:relative}.ellipsis{pointer-events:none;--ic-typography-color:var(--ic-pagination-ellipsis)}.monochrome .ellipsis{--ic-typography-color:var(--ic-pagination-ellipsis-monochrome)}.item-container:focus{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast)}.page{--ic-typography-color:var(--ic-pagination-page-number)}.monochrome .page{--ic-typography-color:var(--ic-pagination-page-number-monochrome)}.simple-current{min-width:calc(var(--ic-space-xxl) + var(--ic-space-md));height:var(--ic-space-lg);cursor:default}.item-container.page:hover:not(.selected):not(:focus){border-radius:var(--ic-border-radius);background-color:var(--ic-pagination-hover)}.item-container.page:active:not(.selected):not(:focus){background-color:var(--ic-pagination-pressed)}.monochrome .item-container.page:hover:not(.selected):not(:focus){background-color:var(--ic-pagination-hover-monochrome)}.monochrome .item-container.page:active:not(.selected):not(:focus){background-color:var(--ic-pagination-pressed-monochrome)}.selected{pointer-events:none;outline:none}.selected::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-pagination-selected-banner)}.monochrome .selected::after{background-color:var(--ic-pagination-selected-banner-monochrome)}.page-selected{--ic-typography-color:var(--ic-pagination-text)}.item-container.page.light:hover:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-hover)}.item-container.page.light:active:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-pressed)}ic-typography.light,ic-typography.page-selected.light{--ic-typography-color:var(--ic-architectural-white)}.selected.light::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-monochrome)}.item-container.page.dark:hover:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-hover)}.item-container.page.dark:active:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-pressed)}ic-typography.dark{--ic-typography-color:var(--ic-color-text-primary)}.selected.dark::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-monochrome-dark)}.disabled{--ic-typography-color:var(--ic-pagination-text-disabled);pointer-events:none;cursor:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.disabled.page ic-typography{--ic-typography-color:var(--ic-pagination-page-number-disabled)}.disabled.ellipsis{--ic-typography-color:var(--ic-pagination-ellipsis-disabled)}.monochrome .disabled.page{--ic-typography-color:var(--ic-pagination-page-number-monochrome-disabled)}.monochrome .disabled.ellipsis{--ic-typography-color:var(--ic-pagination-ellipsis-monochrome-disabled)}@media (forced-colors: active){.selected::after{background-color:Highlight}.selected.light::after{background-color:Highlight}.selected.dark::after{background-color:Highlight}.disabled{--ic-typography-color:GrayText}}@media (prefers-reduced-motion: reduce){.item-container:focus{transition:none}}";
|
|
14555
15112
|
var IcPaginationItemStyle0 = icPaginationItemCss;
|
|
14556
15113
|
|
|
@@ -14913,17 +15470,17 @@ class PopoverMenu {
|
|
|
14913
15470
|
this.popperProps = props;
|
|
14914
15471
|
}
|
|
14915
15472
|
render() {
|
|
14916
|
-
return (hAsync(Host, { key: '
|
|
15473
|
+
return (hAsync(Host, { key: '2df7f8dce86b2a069e36c528cde49fab2a59e14d', class: {
|
|
14917
15474
|
["ic-popover-menu-open"]: !!this.open,
|
|
14918
15475
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
14919
|
-
} }, hAsync("div", { key: '
|
|
15476
|
+
} }, hAsync("div", { key: '274adfbbf14f57d3538bd5076d4f3eaba4246b9f', id: this.parentPopover === undefined
|
|
14920
15477
|
? `ic-popover-submenu-${this.submenuId}`
|
|
14921
15478
|
: "", class: {
|
|
14922
15479
|
menu: true,
|
|
14923
|
-
} }, hAsync("span", { key: '
|
|
15480
|
+
} }, hAsync("span", { key: 'dbb75e11d95ab6dd331e8fdde4c698627ebce128', class: {
|
|
14924
15481
|
"opening-from-parent": this.openingFromParent,
|
|
14925
15482
|
"opening-from-child": this.openingFromChild,
|
|
14926
|
-
} }, isPropDefined(this.submenuId) && (hAsync("span", { key: '
|
|
15483
|
+
} }, isPropDefined(this.submenuId) && (hAsync("span", { key: 'd4f921888dbb9225abcb2470dd28df727f3beee0' }, hAsync("span", { key: '35d3b4ef74cb4d777f50299aa374a9e3cee34889', role: "menu" }, hAsync("ic-menu-item", { key: '1f389ff42de3e6a71f8d119a0d77c303bdd680a8', class: "ic-popover-submenu-back-button", ref: (el) => (this.backButton = el), label: "Back", onClick: this.handleBackButtonClick, id: `ic-popover-submenu-back-button-${this.submenuLevel}` }, hAsync("svg", { key: '68719e50bc2f6735c0f7dcf6f44c9ff63c5acdea', slot: "icon", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "submenu-back-icon" }, hAsync("path", { key: '2ba5c53d18fb50b729ae2246817f7c9cf30257b0', d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z", fill: "currentColor" })))), hAsync("ic-typography", { key: '6932f008b6d3444e0c9310c60c3fcbafae48f3ff', variant: "subtitle-small", class: "parent-label" }, this.parentLabel))), hAsync("div", { key: '75f0187e8474d97fce7f8436cba7e6168cfd2b63', class: "menu-body", "aria-label": this.getMenuAriaLabel(), role: "menu" }, hAsync("slot", { key: 'a547d619787fda1c2f529a0b4ec7fe3745f416ab' }))))));
|
|
14927
15484
|
}
|
|
14928
15485
|
static get delegatesFocus() { return true; }
|
|
14929
15486
|
get el() { return getElement(this); }
|
|
@@ -15443,7 +16000,6 @@ let inputIds$3 = 0;
|
|
|
15443
16000
|
/**
|
|
15444
16001
|
* @slot helper-text - Content is set as the helper text for the search bar.
|
|
15445
16002
|
*/
|
|
15446
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15447
16003
|
class SearchBar {
|
|
15448
16004
|
constructor(hostRef) {
|
|
15449
16005
|
registerInstance(this, hostRef);
|
|
@@ -15623,7 +16179,7 @@ class SearchBar {
|
|
|
15623
16179
|
this.setMenuChange(true);
|
|
15624
16180
|
this.preLoad = false;
|
|
15625
16181
|
if (this.disableAutoFiltering === false) {
|
|
15626
|
-
const rawFilteredOptions = getFilteredMenuOptions(this.options,
|
|
16182
|
+
const rawFilteredOptions = getFilteredMenuOptions(this.options, this.value, this.labelField);
|
|
15627
16183
|
this.filteredOptions =
|
|
15628
16184
|
rawFilteredOptions.length > 0
|
|
15629
16185
|
? rawFilteredOptions
|
|
@@ -15978,39 +16534,39 @@ class SearchBar {
|
|
|
15978
16534
|
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
|
15979
16535
|
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
|
15980
16536
|
renderHiddenInput(this.el, value, name, disabledMode);
|
|
15981
|
-
return (hAsync(Host, { key: '
|
|
16537
|
+
return (hAsync(Host, { key: '04e5c15ac492b502e560a905f83f3a250412ca06', class: {
|
|
15982
16538
|
"ic-search-bar-search": true,
|
|
15983
16539
|
"ic-search-bar-full-width": fullWidth,
|
|
15984
16540
|
"ic-search-bar-disabled": disabled,
|
|
15985
16541
|
"ic-search-bar-small": size === "small",
|
|
15986
16542
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
15987
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '
|
|
16543
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '8fef7c014864aef9293542ab21524aa45d9241ac', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '43f1de8b93e14b829f581e0d394a75cb03c9d946', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly }, hAsync("slot", { key: 'f5f1c33908f9083f84e162e6967e8b40d903f264', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: '9fa5ed5c57101c905259eacdf81a1d7f8189f086', ref: (el) => (this.anchorEl = el), size: size, disabled: disabledMode, readonly: readonly, fullWidth: fullWidth }, hAsync("input", { key: '853c5c33a1760d96d447332df4c3bff6e79f91f8', id: inputId, name: name, ref: (el) => (this.inputEl = el), value: options && !!labelValue ? labelValue : value, class: {
|
|
15988
16544
|
"no-left-pad": readonly,
|
|
15989
16545
|
readonly,
|
|
15990
16546
|
"truncate-value": truncateValue,
|
|
15991
|
-
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : undefined, "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" }), hAsync("div", { key: '
|
|
16547
|
+
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : undefined, "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" }), hAsync("div", { key: '0d72210be324fa78ae66ce350c163e9633917978', class: {
|
|
15992
16548
|
"clear-button-container": true,
|
|
15993
16549
|
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
|
15994
|
-
} }, hAsync("ic-button", { key: '
|
|
16550
|
+
} }, hAsync("ic-button", { key: 'be2a08dde69a638dc26f0c479c691e65d80ece9e', id: "clear-button", class: {
|
|
15995
16551
|
"clear-button": true,
|
|
15996
16552
|
"clear-button-unfocused": !clearButtonFocused,
|
|
15997
|
-
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "button", variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { key: '
|
|
16553
|
+
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "button", variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { key: '5043e6629e6c2c925bc8464a65339bad98e915dc', class: "divider" })), hAsync("div", { key: 'a36f9243178a2dc0da8e45e7dfe649816cf2b978', class: {
|
|
15998
16554
|
"search-submit-button-container": true,
|
|
15999
16555
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
|
16000
|
-
} }, hAsync("ic-button", { key: '
|
|
16556
|
+
} }, hAsync("ic-button", { key: '9bdca735d409bd35d38d586b69172a72673fd275', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
|
16001
16557
|
"search-submit-button": true,
|
|
16002
16558
|
"search-submit-button-small": size === "small",
|
|
16003
16559
|
"search-submit-button-unfocused": !searchSubmitFocused,
|
|
16004
16560
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
|
16005
|
-
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: searchButtonType, variant: "icon-tertiary", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: '
|
|
16561
|
+
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: searchButtonType, variant: "icon-tertiary", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: '642e60a52c92b6fda82276a827236c4651d0cbf7', class: {
|
|
16006
16562
|
"menu-container": true,
|
|
16007
16563
|
fullwidth: fullWidth,
|
|
16008
|
-
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '
|
|
16564
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '025843659ad91751380c71f373c8e8f9fa118eb1', class: {
|
|
16009
16565
|
"no-results": this.hadNoOptions() ||
|
|
16010
16566
|
(filteredOptions.length === 1 &&
|
|
16011
16567
|
(filteredOptions[0][labelField] === loadingLabel ||
|
|
16012
16568
|
filteredOptions[0][labelField] === loadingErrorLabel)),
|
|
16013
|
-
}, 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, searchBar: true })))), hAsync("div", { key: '
|
|
16569
|
+
}, 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, searchBar: true })))), hAsync("div", { key: '17f2a14197fa3051a70345fd10e30a5cb98a13de', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
|
16014
16570
|
}
|
|
16015
16571
|
static get delegatesFocus() { return true; }
|
|
16016
16572
|
get el() { return getElement(this); }
|
|
@@ -16094,12 +16650,12 @@ class SectionContainer {
|
|
|
16094
16650
|
}
|
|
16095
16651
|
render() {
|
|
16096
16652
|
const { aligned, fullHeight } = this;
|
|
16097
|
-
return (hAsync(Host, { key: '
|
|
16653
|
+
return (hAsync(Host, { key: '141dc39bbd1e9fda7617f8bff574f1e25ada9fe8', class: {
|
|
16098
16654
|
["aligned-left"]: aligned === "left" || aligned === null,
|
|
16099
16655
|
["aligned-center"]: aligned === "center",
|
|
16100
16656
|
["aligned-full-width"]: aligned === "full-width",
|
|
16101
16657
|
["no-vertical-padding"]: !!fullHeight,
|
|
16102
|
-
} }, hAsync("slot", { key: '
|
|
16658
|
+
} }, hAsync("slot", { key: '8f1f0cdc5a22c0de9e0e3346ba1b7dcc8c3bf295' })));
|
|
16103
16659
|
}
|
|
16104
16660
|
static get style() { return IcSectionContainerStyle0; }
|
|
16105
16661
|
static get cmpMeta() { return {
|
|
@@ -16125,19 +16681,31 @@ var Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w
|
|
|
16125
16681
|
</svg>
|
|
16126
16682
|
`;
|
|
16127
16683
|
|
|
16128
|
-
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;--ic-input-label-helpertext-padding:var(--ic-space-xs);--menu-max-height:100px;--border-color:var(--ic-select-field-border);--border-color-hover:var(--ic-select-field-border-hover);--border-color-pressed:var(--ic-select-field-border-pressed);--border-color-disabled:var(--ic-select-field-border-disabled);--border-color-error:var(--ic-select-field-border-error);--border-color-error-hover:var(--ic-select-field-border-error-hover);--border-color-error-pressed:var(--ic-select-field-border-error-pressed);--border-color-success:var(--ic-select-field-border-success);--border-color-success-hover:var(--ic-select-field-border-success-hover);--border-color-success-pressed:var(--ic-select-field-border-success-pressed);--border-color-warning:var(--ic-select-field-border-warning);--border-color-warning-hover:var(--ic-select-field-border-warning-hover);--border-color-warning-pressed:var(--ic-select-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-select-field-label);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle\n );--ic-input-validation-status-text-color:var(--ic-select-state-text);--ic-input-validation-error:var(--ic-select-state-icon-error);--ic-input-validation-warning-icon-color:var(--ic-select-state-icon-warning);--ic-input-validation-success-icon-color:var(--ic-select-state-icon-success);--menu-item-text-color:var(--ic-select-list-option-text);--menu-bg-color:var(--ic-select-list-option-background);--menu-border-color:var(--ic-select-dropdown-list-border)}:host(.ic-select-disabled){--ic-input-label-text-color:var(--ic-select-field-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle-disabled\n )}:host(.ic-select-full-width){width:100%}ic-input-component-container.menu-open{--border-color:var(--ic-select-field-border-pressed)}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)}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-select-field-background);color:var(--ic-select-content-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:var(--ic-select-mobile-dropdown-icon);caret-color:var(--ic-select-input-field-text-cursor)}select option,.select-option-selected{color:var(--ic-select-list-option-text)}select:disabled{color:var(--ic-select-content-text-disabled);background-image:var(--ic-select-mobile-dropdown-icon-disabled)}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;background-color:var(--ic-select-field-background);color:var(--ic-select-content-text)}.select-input:focus{outline:none}.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;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:0 !important}.value-text.with-clear-button{padding-right:calc(var(--ic-space-xl) + var(--ic-space-xs))}.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-select-expand-icon-color)}.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-select-disabled-expand-icon-color)}:host(.ic-select-searchable) .expand-icon{padding-left:0;height:2.25rem}:host(.ic-select-searchable) .expand-icon>svg{height:2.25rem;padding:0 calc(var(--ic-space-xxxs) + var(--ic-space-xxs)) 0\n var(--ic-space-xxs)}:host(.ic-select-searchable:not(.ic-select-disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-select-expand-icon-color)}.expand-icon-open,:host(.ic-select-searchable) .expand-icon-open{transform:rotateX(180deg)}.placeholder{color:var(--ic-select-content-placeholder-text)}:host(.ic-select-disabled.ic-select-searchable) .select-input::-moz-placeholder{color:var(--ic-select-content-text-disabled)}:host(.ic-select-disabled) .value-text,:host(.ic-select-disabled) .select-input,:host(.ic-select-disabled) .placeholder,:host(.ic-select-disabled.ic-select-searchable) .select-input::placeholder{color:var(--ic-select-content-text-disabled)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex;align-items:center}.divider{width:var(--ic-space-1px);background-color:var(--ic-select-content-divider);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{color:var(--ic-select-clear-button);position:absolute;right:calc(var(--ic-space-xl) + var(--ic-space-xxs) - var(--ic-space-1px));border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus,.clear-button:active{background-color:var(--ic-color-focus-inner);box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer);border-radius:0.25rem}.clear-button:focus,.clear-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button.searchable{position:static}.
|
|
16684
|
+
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;--ic-input-label-helpertext-padding:var(--ic-space-xs);--menu-max-height:100px;--border-color:var(--ic-select-field-border);--border-color-hover:var(--ic-select-field-border-hover);--border-color-pressed:var(--ic-select-field-border-pressed);--border-color-disabled:var(--ic-select-field-border-disabled);--border-color-error:var(--ic-select-field-border-error);--border-color-error-hover:var(--ic-select-field-border-error-hover);--border-color-error-pressed:var(--ic-select-field-border-error-pressed);--border-color-success:var(--ic-select-field-border-success);--border-color-success-hover:var(--ic-select-field-border-success-hover);--border-color-success-pressed:var(--ic-select-field-border-success-pressed);--border-color-warning:var(--ic-select-field-border-warning);--border-color-warning-hover:var(--ic-select-field-border-warning-hover);--border-color-warning-pressed:var(--ic-select-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-select-field-label);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle\n );--ic-input-validation-status-text-color:var(--ic-select-state-text);--ic-input-validation-error:var(--ic-select-state-icon-error);--ic-input-validation-warning-icon-color:var(--ic-select-state-icon-warning);--ic-input-validation-success-icon-color:var(--ic-select-state-icon-success);--menu-item-text-color:var(--ic-select-list-option-text);--menu-bg-color:var(--ic-select-list-option-background);--menu-border-color:var(--ic-select-dropdown-list-border)}:host(.ic-select-disabled){--ic-input-label-text-color:var(--ic-select-field-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle-disabled\n )}:host(.ic-select-full-width){width:100%}ic-input-component-container.menu-open{--border-color:var(--ic-select-field-border-pressed)}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)}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-select-field-background);color:var(--ic-select-content-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:var(--ic-select-mobile-dropdown-icon);caret-color:var(--ic-select-input-field-text-cursor)}select option,.select-option-selected{color:var(--ic-select-list-option-text)}select:disabled{color:var(--ic-select-content-text-disabled);background-image:var(--ic-select-mobile-dropdown-icon-disabled)}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;background-color:var(--ic-select-field-background);color:var(--ic-select-content-text)}.select-input:focus{outline:none}.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;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:0 !important}.value-text.with-clear-button{padding-right:calc(var(--ic-space-xl) + var(--ic-space-xs))}.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-select-expand-icon-color)}.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-select-disabled-expand-icon-color)}:host(.ic-select-searchable) .expand-icon{padding-left:0;height:2.25rem}:host(.ic-select-searchable) .expand-icon>svg{height:2.25rem;padding:0 calc(var(--ic-space-xxxs) + var(--ic-space-xxs)) 0\n var(--ic-space-xxs)}:host(.ic-select-searchable:not(.ic-select-disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-select-expand-icon-color)}.expand-icon-open,:host(.ic-select-searchable) .expand-icon-open{transform:rotateX(180deg)}.placeholder{color:var(--ic-select-content-placeholder-text)}:host(.ic-select-disabled.ic-select-searchable) .select-input::-moz-placeholder{color:var(--ic-select-content-text-disabled)}:host(.ic-select-disabled) .value-text,:host(.ic-select-disabled) .select-input,:host(.ic-select-disabled) .placeholder,:host(.ic-select-disabled.ic-select-searchable) .select-input::placeholder{color:var(--ic-select-content-text-disabled)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex;align-items:center}.divider{width:var(--ic-space-1px);background-color:var(--ic-select-content-divider);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{color:var(--ic-select-clear-button);position:absolute;right:calc(var(--ic-space-xl) + var(--ic-space-xxs) - var(--ic-space-1px));border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus,.clear-button:active{background-color:var(--ic-color-focus-inner);box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer);border-radius:0.25rem}.clear-button:focus,.clear-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button.searchable{position:static}.aria-live-hidden-text{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)}::slotted([slot=\"icon\"]){fill:var(--ic-select-content-placeholder-text)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-select-content-text)}.readonly ::slotted([slot=\"icon\"]){padding:0.375rem;margin-bottom:0.75rem}@media (forced-colors: active){.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}@media (prefers-reduced-motion: reduce){.clear-button,ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{transition:none}}";
|
|
16129
16685
|
var IcSelectStyle0 = icSelectCss;
|
|
16130
16686
|
|
|
16131
|
-
|
|
16132
|
-
|
|
16133
|
-
|
|
16134
|
-
|
|
16135
|
-
|
|
16136
|
-
|
|
16137
|
-
|
|
16138
|
-
|
|
16139
|
-
|
|
16140
|
-
|
|
16687
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
16688
|
+
var t = {};
|
|
16689
|
+
for (var p in s)
|
|
16690
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16691
|
+
t[p] = s[p];
|
|
16692
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16693
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16694
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
16695
|
+
t[p[i]] = s[p[i]];
|
|
16696
|
+
}
|
|
16697
|
+
return t;
|
|
16698
|
+
};
|
|
16699
|
+
let inputIds$2 = 0;
|
|
16700
|
+
const MUTABLE_ATTRIBUTES$1 = [...IC_INHERITED_ARIA, "tabindex", "title"];
|
|
16701
|
+
/**
|
|
16702
|
+
* @slot helper-text - Content is set as the helper text for the select.
|
|
16703
|
+
* @slot icon - Content will be placed to the left of the select text input.
|
|
16704
|
+
*/
|
|
16705
|
+
class Select {
|
|
16706
|
+
constructor(hostRef) {
|
|
16707
|
+
registerInstance(this, hostRef);
|
|
16708
|
+
this.icBlur = createEvent(this, "icBlur", 7);
|
|
16141
16709
|
this.icChange = createEvent(this, "icChange", 7);
|
|
16142
16710
|
this.icClear = createEvent(this, "icClear", 7);
|
|
16143
16711
|
this.icClose = createEvent(this, "icClose", 7);
|
|
@@ -16147,22 +16715,18 @@ class Select {
|
|
|
16147
16715
|
this.icOptionSelect = createEvent(this, "icOptionSelect", 7);
|
|
16148
16716
|
this.icOptionDeselect = createEvent(this, "icOptionDeselect", 7);
|
|
16149
16717
|
this.icRetryLoad = createEvent(this, "icRetryLoad", 7);
|
|
16150
|
-
this.blurredBecauseButtonPressed = false;
|
|
16151
|
-
this.hasSetDefaultValue = false;
|
|
16152
|
-
this.hasTimedOut = false;
|
|
16153
|
-
this.inheritedAttributes = {};
|
|
16154
|
-
this.initialOptionsEmpty = false;
|
|
16155
16718
|
this.inputId = `ic-select-input-${inputIds$2++}`;
|
|
16156
16719
|
this.menuId = `${this.inputId}-menu`;
|
|
16157
|
-
this.
|
|
16158
|
-
this.searchableMenuItemSelected = false;
|
|
16159
|
-
this.ungroupedOptions = [];
|
|
16720
|
+
this.inheritedAttributes = {};
|
|
16160
16721
|
this.hostMutationObserver = null;
|
|
16161
|
-
this.
|
|
16162
|
-
this.
|
|
16163
|
-
this.
|
|
16722
|
+
this.timeoutTimer = null;
|
|
16723
|
+
this.hasTimedOut = false;
|
|
16724
|
+
this.initialRender = true;
|
|
16164
16725
|
this.pressedCharacters = "";
|
|
16165
|
-
this.
|
|
16726
|
+
this.hasError = false;
|
|
16727
|
+
this.searchableSelectInputValue = "";
|
|
16728
|
+
this.selectButtonAriaLiveText = "";
|
|
16729
|
+
this.selectInputAriaLiveText = "";
|
|
16166
16730
|
/**
|
|
16167
16731
|
* If `true`, the disabled state will be set.
|
|
16168
16732
|
*/
|
|
@@ -16259,6 +16823,10 @@ class Select {
|
|
|
16259
16823
|
* The text to display as the validation message.
|
|
16260
16824
|
*/
|
|
16261
16825
|
this.validationText = "";
|
|
16826
|
+
/**
|
|
16827
|
+
* If `true` and on a mobile or tablet device, the native select element will be used instead of the custom select component for better usability.
|
|
16828
|
+
*/
|
|
16829
|
+
this.useNativeSelectOnMobile = true;
|
|
16262
16830
|
/**
|
|
16263
16831
|
* If `true`, the loading state will be triggered when fetching options asynchronously.
|
|
16264
16832
|
*/
|
|
@@ -16267,8 +16835,7 @@ class Select {
|
|
|
16267
16835
|
* The possible selection options.
|
|
16268
16836
|
*/
|
|
16269
16837
|
this.options = [];
|
|
16270
|
-
this.
|
|
16271
|
-
this.uniqueOptions = this.options;
|
|
16838
|
+
this.flatOptions = [];
|
|
16272
16839
|
/**
|
|
16273
16840
|
* The amount of time, in milliseconds, to wait to trigger the `icInput` event after each keystroke.
|
|
16274
16841
|
*/
|
|
@@ -16281,142 +16848,125 @@ class Select {
|
|
|
16281
16848
|
*/
|
|
16282
16849
|
this.value = null;
|
|
16283
16850
|
this.initialValue = this.value;
|
|
16284
|
-
this.
|
|
16285
|
-
|
|
16286
|
-
|
|
16287
|
-
|
|
16288
|
-
|
|
16289
|
-
|
|
16290
|
-
|
|
16291
|
-
|
|
16292
|
-
|
|
16293
|
-
|
|
16294
|
-
|
|
16295
|
-
|
|
16296
|
-
|
|
16297
|
-
|
|
16298
|
-
|
|
16299
|
-
|
|
16300
|
-
|
|
16301
|
-
|
|
16302
|
-
|
|
16303
|
-
this.
|
|
16304
|
-
|
|
16305
|
-
|
|
16306
|
-
|
|
16307
|
-
|
|
16308
|
-
|
|
16309
|
-
|
|
16310
|
-
|
|
16311
|
-
|
|
16312
|
-
|
|
16313
|
-
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
|
|
16851
|
+
this.open = false;
|
|
16852
|
+
this.getValidatedValue = (value) => {
|
|
16853
|
+
const validValues = this.flatOptions.map((opt) => opt.value);
|
|
16854
|
+
if (validValues.length === 0)
|
|
16855
|
+
return value;
|
|
16856
|
+
if (this.multiple) {
|
|
16857
|
+
if (!value)
|
|
16858
|
+
return null;
|
|
16859
|
+
const arr = Array.isArray(value) ? value : [value]; // Ensure value is an array
|
|
16860
|
+
const filtered = validValues.filter((v) => arr.includes(v)); // Keep only valid values
|
|
16861
|
+
return filtered.length > 0 ? filtered : null;
|
|
16862
|
+
}
|
|
16863
|
+
else {
|
|
16864
|
+
return validValues.includes(value) ? value : null;
|
|
16865
|
+
}
|
|
16866
|
+
};
|
|
16867
|
+
this.getFilteredOptions = (searchString, searchMatchPosition, includeDescriptionsInSearch, includeGroupTitlesInSearch) => {
|
|
16868
|
+
const search = searchString.toLowerCase();
|
|
16869
|
+
const match = (text, method) => method === "anywhere" ? text.includes(search) : text.startsWith(search);
|
|
16870
|
+
return this.unflattenOptions(this.flatOptions.filter((option) => {
|
|
16871
|
+
var _a, _b, _c, _d;
|
|
16872
|
+
const label = option.label.toLowerCase();
|
|
16873
|
+
const group = (_b = (_a = option.group) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : "";
|
|
16874
|
+
const description = (_d = (_c = option.description) === null || _c === void 0 ? void 0 : _c.toLowerCase()) !== null && _d !== void 0 ? _d : "";
|
|
16875
|
+
return (match(label, searchMatchPosition) ||
|
|
16876
|
+
(includeDescriptionsInSearch &&
|
|
16877
|
+
match(description, searchMatchPosition)) ||
|
|
16878
|
+
(includeGroupTitlesInSearch && match(group, searchMatchPosition)));
|
|
16879
|
+
}));
|
|
16880
|
+
};
|
|
16881
|
+
this.getOptions = () => {
|
|
16882
|
+
const options = this.searchable &&
|
|
16883
|
+
!this.disableAutoFiltering &&
|
|
16884
|
+
this.searchableSelectInputValue
|
|
16885
|
+
? this.getFilteredOptions(this.searchableSelectInputValue, this.searchMatchPosition, this.includeDescriptionsInSearch, this.includeGroupTitlesInSearch)
|
|
16886
|
+
: this.unflattenOptions(this.flatOptions);
|
|
16887
|
+
if (this.hasTimedOut)
|
|
16888
|
+
return [{ label: this.loadingErrorLabel, value: "", timedOut: true }];
|
|
16889
|
+
if (this.loading)
|
|
16890
|
+
return [{ label: this.loadingLabel, value: "", loading: true }];
|
|
16891
|
+
if (options.length > 0)
|
|
16892
|
+
return options;
|
|
16893
|
+
return [{ label: this.emptyOptionListText, value: "" }];
|
|
16894
|
+
};
|
|
16895
|
+
this.getFlatOptions = (options) => options.flatMap((item) => ("children" in item && item.children
|
|
16896
|
+
? [...item.children.map((child) => (Object.assign({ group: item.label }, child)))]
|
|
16897
|
+
: [item]));
|
|
16898
|
+
this.unflattenOptions = (flatOptions) => {
|
|
16899
|
+
const groupMap = new Map();
|
|
16900
|
+
const result = [];
|
|
16901
|
+
for (const option of flatOptions) {
|
|
16902
|
+
if (option.group) {
|
|
16903
|
+
let group = groupMap.get(option.group);
|
|
16904
|
+
if (!group) {
|
|
16905
|
+
group = { label: option.group, children: [] };
|
|
16906
|
+
groupMap.set(option.group, group);
|
|
16907
|
+
result.push(group);
|
|
16325
16908
|
}
|
|
16326
|
-
|
|
16909
|
+
const rest = __rest(option, ["group"]);
|
|
16910
|
+
group.children.push(rest);
|
|
16327
16911
|
}
|
|
16328
16912
|
else {
|
|
16329
|
-
|
|
16913
|
+
result.push(option);
|
|
16330
16914
|
}
|
|
16331
16915
|
}
|
|
16332
|
-
|
|
16333
|
-
|
|
16916
|
+
return result;
|
|
16917
|
+
};
|
|
16918
|
+
this.getLabelFromValue = (value) => { var _a, _b; return (_b = (_a = this.flatOptions.find((option) => option.value === value)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : ""; };
|
|
16919
|
+
// Construct the string that will be shown in the select input or button
|
|
16920
|
+
this.getLabelString = () => {
|
|
16921
|
+
if (Array.isArray(this.value)) {
|
|
16922
|
+
return this.value.map(this.getLabelFromValue).filter(Boolean).join(", ");
|
|
16334
16923
|
}
|
|
16335
|
-
this.
|
|
16924
|
+
return (this.getLabelFromValue(this.value) ||
|
|
16925
|
+
(this.searchable ? "" : this.placeholder));
|
|
16336
16926
|
};
|
|
16337
|
-
this.
|
|
16338
|
-
|
|
16339
|
-
|
|
16927
|
+
this.handleClick = (event) => {
|
|
16928
|
+
var _a;
|
|
16929
|
+
if (event.detail !== 0) {
|
|
16930
|
+
(_a = this.menu) === null || _a === void 0 ? void 0 : _a.handleClickOpen();
|
|
16931
|
+
}
|
|
16340
16932
|
};
|
|
16341
|
-
this.
|
|
16342
|
-
|
|
16343
|
-
|
|
16344
|
-
|
|
16345
|
-
|
|
16346
|
-
|
|
16347
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
|
16348
|
-
}
|
|
16349
|
-
else {
|
|
16350
|
-
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
|
16351
|
-
this.uniqueOptions = this.noOptions;
|
|
16352
|
-
}
|
|
16353
|
-
this.filteredOptions = this.uniqueOptions;
|
|
16354
|
-
if (this.isExternalFiltering()) {
|
|
16355
|
-
// When searchable select
|
|
16356
|
-
this.noOptions = null;
|
|
16357
|
-
this.updateSearchableSelectResultAriaLive();
|
|
16358
|
-
this.setDefaultValue();
|
|
16359
|
-
}
|
|
16360
|
-
else if (this.initialOptionsEmpty) {
|
|
16361
|
-
this.setDefaultValue();
|
|
16362
|
-
this.initialOptionsEmpty = false;
|
|
16363
|
-
}
|
|
16933
|
+
this.handleExpandIconMouseDown = (event) => {
|
|
16934
|
+
var _a;
|
|
16935
|
+
if (!this.disabled) {
|
|
16936
|
+
event.preventDefault();
|
|
16937
|
+
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
16938
|
+
this.handleClick(event);
|
|
16364
16939
|
}
|
|
16365
|
-
|
|
16366
|
-
|
|
16940
|
+
};
|
|
16941
|
+
this.handleBlur = ({ relatedTarget }) => {
|
|
16942
|
+
var _a, _b;
|
|
16943
|
+
const target = relatedTarget;
|
|
16944
|
+
if (this.el.contains(target) ||
|
|
16945
|
+
((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(target)) ||
|
|
16946
|
+
((_b = this.menu) === null || _b === void 0 ? void 0 : _b.contains(target)) ||
|
|
16947
|
+
target === this.clearButton) {
|
|
16948
|
+
return;
|
|
16367
16949
|
}
|
|
16950
|
+
this.open = false;
|
|
16951
|
+
this.handleFocusIndicatorDisplay();
|
|
16952
|
+
if (this.searchable) {
|
|
16953
|
+
this.searchableSelectInputValue = "";
|
|
16954
|
+
}
|
|
16955
|
+
this.icBlur.emit();
|
|
16368
16956
|
};
|
|
16369
|
-
|
|
16370
|
-
|
|
16371
|
-
* @param options array of IcMenuOptions
|
|
16372
|
-
* @returns a new options object, with all entries possessing a duplicate 'value' field removed
|
|
16373
|
-
*/
|
|
16374
|
-
this.deduplicateOptions = (options) => {
|
|
16375
|
-
const uniqueValues = [];
|
|
16376
|
-
const dedupedOptions = [];
|
|
16377
|
-
options.forEach((option) => {
|
|
16378
|
-
if (option.children) {
|
|
16379
|
-
//If an option has children, we will loop through them
|
|
16380
|
-
const dedupedChildren = [];
|
|
16381
|
-
option.children.forEach((child) => {
|
|
16382
|
-
if (uniqueValues.includes(child.value)) {
|
|
16383
|
-
console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${child.value}) which has been removed.`);
|
|
16384
|
-
}
|
|
16385
|
-
else {
|
|
16386
|
-
uniqueValues.push(child.value);
|
|
16387
|
-
dedupedChildren.push(child);
|
|
16388
|
-
}
|
|
16389
|
-
});
|
|
16390
|
-
// construct a modified option, inserting the deduplicated children alongside the original information
|
|
16391
|
-
dedupedOptions.push(Object.assign(Object.assign({}, option), { children: dedupedChildren }));
|
|
16392
|
-
}
|
|
16393
|
-
else {
|
|
16394
|
-
// If an option does not have children, assess to see if it's value has been included already
|
|
16395
|
-
if (uniqueValues.includes(option.value)) {
|
|
16396
|
-
console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${option.value}) which has been removed.`);
|
|
16397
|
-
}
|
|
16398
|
-
else {
|
|
16399
|
-
uniqueValues.push(option.value);
|
|
16400
|
-
dedupedOptions.push(option);
|
|
16401
|
-
}
|
|
16402
|
-
}
|
|
16403
|
-
});
|
|
16404
|
-
return dedupedOptions;
|
|
16957
|
+
this.handleTimeoutBlur = (event) => {
|
|
16958
|
+
this.handleBlur(event.detail.ev);
|
|
16405
16959
|
};
|
|
16406
|
-
|
|
16407
|
-
|
|
16408
|
-
*/
|
|
16409
|
-
this.setOptionsValuesFromLabels = () => {
|
|
16410
|
-
if (this.options.length > 0) {
|
|
16411
|
-
this.options.map((option) => {
|
|
16412
|
-
if (!option.value) {
|
|
16413
|
-
option.value = option.label;
|
|
16414
|
-
}
|
|
16415
|
-
});
|
|
16416
|
-
}
|
|
16960
|
+
this.handleFocus = () => {
|
|
16961
|
+
this.icFocus.emit();
|
|
16417
16962
|
};
|
|
16418
|
-
this.
|
|
16419
|
-
this.
|
|
16963
|
+
this.handleClear = () => {
|
|
16964
|
+
this.clearTimer();
|
|
16965
|
+
this.loading = false;
|
|
16966
|
+
this.value = null;
|
|
16967
|
+
this.searchableSelectInputValue = "";
|
|
16968
|
+
this.icClear.emit();
|
|
16969
|
+
this.setFocus();
|
|
16420
16970
|
};
|
|
16421
16971
|
this.setTextColor = () => {
|
|
16422
16972
|
if (this.nativeSelectElement) {
|
|
@@ -16426,94 +16976,13 @@ class Select {
|
|
|
16426
16976
|
: "select-option-selected";
|
|
16427
16977
|
}
|
|
16428
16978
|
};
|
|
16429
|
-
this.setMenuChange = (open) => {
|
|
16430
|
-
if (this.open !== open) {
|
|
16431
|
-
this.open = open;
|
|
16432
|
-
}
|
|
16433
|
-
};
|
|
16434
|
-
this.getLabelFromValue = (value) => getLabelFromValue(value, this.uniqueOptions);
|
|
16435
|
-
this.getMultipleOptionsString = (selectedValues) => selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.map((value) => this.getLabelFromValue(value)).filter((label) => !!label).join(", ");
|
|
16436
|
-
this.getFilteredChildMenuOptions = (option) => (Object.assign(Object.assign({}, option), { children: option.children &&
|
|
16437
|
-
getFilteredMenuOptions(option.children, this.searchable && !!this.includeDescriptionsInSearch, this.searchable
|
|
16438
|
-
? this.searchableSelectInputValue || ""
|
|
16439
|
-
: this.pressedCharacters, this.searchable ? this.searchMatchPosition : "start") }));
|
|
16440
|
-
// (For multi-select) get value array, i.e. selected option values, in order they appear in option list
|
|
16441
|
-
this.getValueSortedByOptions = (value) => {
|
|
16442
|
-
const valueArray = value;
|
|
16443
|
-
const valuesFromAllOptions = this.ungroupedOptions.map((option) => option.value);
|
|
16444
|
-
valueArray.sort((a, b) => valuesFromAllOptions.indexOf(a) - valuesFromAllOptions.indexOf(b));
|
|
16445
|
-
return valueArray;
|
|
16446
|
-
};
|
|
16447
16979
|
this.handleNativeSelectChange = () => {
|
|
16448
16980
|
if (this.nativeSelectElement) {
|
|
16449
16981
|
this.icOptionSelect.emit({ value: this.nativeSelectElement.value });
|
|
16450
|
-
this.
|
|
16982
|
+
this.icChange.emit({ value: this.nativeSelectElement.value });
|
|
16451
16983
|
}
|
|
16452
16984
|
this.setTextColor();
|
|
16453
16985
|
};
|
|
16454
|
-
// Handle option select for when a custom input box and menu is rendered
|
|
16455
|
-
// (rather than native <select> - rendered when viewed on a mobile / tablet screen)
|
|
16456
|
-
this.handleCustomSelectChange = (event) => {
|
|
16457
|
-
var _a, _b;
|
|
16458
|
-
const { value, label, optionId } = event.detail;
|
|
16459
|
-
if (label === this.emptyOptionListText) {
|
|
16460
|
-
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
16461
|
-
return;
|
|
16462
|
-
}
|
|
16463
|
-
if (this.searchable) {
|
|
16464
|
-
this.value = value || null;
|
|
16465
|
-
this.searchableMenuItemSelected = true;
|
|
16466
|
-
// After editing the input, if selecting the same option as before, set the input value to label again
|
|
16467
|
-
if (this.value === this.currValue) {
|
|
16468
|
-
this.searchableSelectInputValue =
|
|
16469
|
-
this.getLabelFromValue(this.value) || null;
|
|
16470
|
-
}
|
|
16471
|
-
this.inputValueToFilter = null;
|
|
16472
|
-
this.hiddenInputValue =
|
|
16473
|
-
this.getValueFromLabel(this.searchableSelectInputValue) || null;
|
|
16474
|
-
}
|
|
16475
|
-
if (value) {
|
|
16476
|
-
if (this.multiple && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(value))) {
|
|
16477
|
-
this.icOptionDeselect.emit({ value });
|
|
16478
|
-
}
|
|
16479
|
-
else {
|
|
16480
|
-
this.icOptionSelect.emit({ value });
|
|
16481
|
-
}
|
|
16482
|
-
}
|
|
16483
|
-
this.ariaActiveDescendant = optionId;
|
|
16484
|
-
this.emitIcChange(value || null);
|
|
16485
|
-
};
|
|
16486
|
-
this.handleSelectAllChange = ({ detail, }) => {
|
|
16487
|
-
const allValues = this.ungroupedOptions
|
|
16488
|
-
.filter((option) => !option.disabled)
|
|
16489
|
-
.map((option) => option.value);
|
|
16490
|
-
if (detail.select) {
|
|
16491
|
-
// Only emit icOptionSelect for all values that are newly selected
|
|
16492
|
-
const unselectedValues = this.value
|
|
16493
|
-
? allValues.filter((value) => this.value && !this.value.includes(value))
|
|
16494
|
-
: allValues;
|
|
16495
|
-
unselectedValues.forEach((value) => this.icOptionSelect.emit({ value }));
|
|
16496
|
-
}
|
|
16497
|
-
else {
|
|
16498
|
-
// Only emit icOptionDeselect for values that were selected
|
|
16499
|
-
this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
|
|
16500
|
-
}
|
|
16501
|
-
this.emitIcChange(detail.select ? allValues : null);
|
|
16502
|
-
};
|
|
16503
|
-
this.handleMenuChange = (event) => {
|
|
16504
|
-
this.open = event.detail.open;
|
|
16505
|
-
this.pressedCharacters = "";
|
|
16506
|
-
if (this.searchable)
|
|
16507
|
-
this.handleFocusIndicatorDisplay();
|
|
16508
|
-
};
|
|
16509
|
-
// clears the debounce delay when navigating the menu with arrow keys etc
|
|
16510
|
-
// to prevent delay in change event, which should only occur when typing in input
|
|
16511
|
-
this.handleMenuKeyPress = (ev) => {
|
|
16512
|
-
ev.cancelBubble = true;
|
|
16513
|
-
if (!this.multiple) {
|
|
16514
|
-
this.handleCharacterKeyDown(ev.detail.key);
|
|
16515
|
-
}
|
|
16516
|
-
};
|
|
16517
16986
|
this.handleFocusIndicatorDisplay = () => {
|
|
16518
16987
|
var _a;
|
|
16519
16988
|
const focusIndicator = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".focus-indicator");
|
|
@@ -16526,58 +16995,27 @@ class Select {
|
|
|
16526
16995
|
}
|
|
16527
16996
|
}
|
|
16528
16997
|
};
|
|
16529
|
-
this.
|
|
16530
|
-
if (!this.open) {
|
|
16531
|
-
event.preventDefault();
|
|
16532
|
-
}
|
|
16533
|
-
};
|
|
16534
|
-
this.isExternalFiltering = () => this.searchable && !!this.disableAutoFiltering;
|
|
16535
|
-
this.handleClick = (event) => {
|
|
16998
|
+
this.handleKeyDown = (event) => {
|
|
16536
16999
|
var _a, _b;
|
|
16537
|
-
if (!
|
|
16538
|
-
if (this.
|
|
16539
|
-
this.menu
|
|
17000
|
+
if (!(event.key === " " && this.pressedCharacters.length > 0)) {
|
|
17001
|
+
if (this.open) {
|
|
17002
|
+
(_a = this.menu) === null || _a === void 0 ? void 0 : _a.handleMenuKeyDown(event);
|
|
16540
17003
|
}
|
|
16541
|
-
else
|
|
16542
|
-
|
|
16543
|
-
!((_a = this.noOptions) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
16544
|
-
(!this.searchable || this.searchableMenuItemSelected)) {
|
|
16545
|
-
this.noOptions = null;
|
|
16546
|
-
this.menu.options = this.uniqueOptions;
|
|
17004
|
+
else {
|
|
17005
|
+
(_b = this.menu) === null || _b === void 0 ? void 0 : _b.handleKeyboardOpen(event);
|
|
16547
17006
|
}
|
|
16548
17007
|
}
|
|
16549
|
-
if (
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
var _a;
|
|
16555
|
-
if (!this.disabled) {
|
|
16556
|
-
event.preventDefault();
|
|
16557
|
-
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
16558
|
-
this.handleClick(event);
|
|
16559
|
-
}
|
|
16560
|
-
};
|
|
16561
|
-
this.handleClear = (event) => {
|
|
16562
|
-
var _a, _b;
|
|
16563
|
-
event.stopPropagation();
|
|
16564
|
-
this.hasTimedOut = false;
|
|
16565
|
-
clearTimeout(this.timeoutTimer);
|
|
16566
|
-
this.clearInput();
|
|
16567
|
-
this.emitIcChange(null);
|
|
16568
|
-
this.icClear.emit();
|
|
16569
|
-
if (this.searchable) {
|
|
16570
|
-
this.hiddenInputValue = null;
|
|
16571
|
-
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
16572
|
-
}
|
|
16573
|
-
else {
|
|
16574
|
-
(_b = this.customSelectElement) === null || _b === void 0 ? void 0 : _b.focus();
|
|
17008
|
+
if (!this.multiple &&
|
|
17009
|
+
!this.searchable &&
|
|
17010
|
+
!this.selectOnEnter &&
|
|
17011
|
+
/^[a-zA-Z0-9 ]$/.test(event.key)) {
|
|
17012
|
+
this.handleCharacterKeyDown(event.key);
|
|
16575
17013
|
}
|
|
16576
17014
|
};
|
|
16577
17015
|
this.handleCharacterKeyDown = (key) => {
|
|
16578
17016
|
// Only close menu when space is pressed if not being used alongside character keys to quickly select options
|
|
16579
17017
|
if (this.open && key === " " && this.pressedCharacters.length === 0) {
|
|
16580
|
-
this.
|
|
17018
|
+
this.open = false;
|
|
16581
17019
|
}
|
|
16582
17020
|
if (key.length !== 1 || this.searchable) {
|
|
16583
17021
|
this.pressedCharacters = "";
|
|
@@ -16587,385 +17025,309 @@ class Select {
|
|
|
16587
17025
|
this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
|
|
16588
17026
|
if (key !== " " || !!this.pressedCharacters) {
|
|
16589
17027
|
this.pressedCharacters += key;
|
|
16590
|
-
this.
|
|
16591
|
-
if (
|
|
16592
|
-
|
|
17028
|
+
const filteredOptions = this.getFilteredOptions(this.pressedCharacters, "start", false, false);
|
|
17029
|
+
if (filteredOptions.length > 0) {
|
|
17030
|
+
const firstOption = filteredOptions[0];
|
|
17031
|
+
if ("children" in firstOption) {
|
|
17032
|
+
this.value = firstOption.children[0].value;
|
|
17033
|
+
}
|
|
17034
|
+
else {
|
|
17035
|
+
this.value = firstOption.value;
|
|
17036
|
+
}
|
|
16593
17037
|
}
|
|
16594
17038
|
}
|
|
16595
17039
|
};
|
|
16596
17040
|
this.handleNativeSelectKeyDown = (event) => {
|
|
16597
|
-
|
|
16598
|
-
event.cancelBubble = true;
|
|
16599
|
-
}
|
|
16600
|
-
this.handleCharacterKeyDown(event.key);
|
|
17041
|
+
this.handleKeyDown(event);
|
|
16601
17042
|
};
|
|
16602
|
-
this.
|
|
16603
|
-
|
|
16604
|
-
if (
|
|
16605
|
-
|
|
17043
|
+
this.handleSelectChange = (event) => {
|
|
17044
|
+
const { value } = event.detail;
|
|
17045
|
+
if (!value || this.getLabelFromValue(value) === this.emptyOptionListText) {
|
|
17046
|
+
this.value = null;
|
|
17047
|
+
return;
|
|
16606
17048
|
}
|
|
16607
|
-
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
17049
|
+
if (this.multiple) {
|
|
17050
|
+
let valueArray = Array.isArray(this.value) ? [...this.value] : [];
|
|
17051
|
+
const index = valueArray.indexOf(value);
|
|
17052
|
+
if (index > -1) {
|
|
17053
|
+
valueArray.splice(index, 1);
|
|
17054
|
+
this.icOptionDeselect.emit({ value });
|
|
16611
17055
|
}
|
|
16612
|
-
else
|
|
16613
|
-
this.
|
|
16614
|
-
|
|
17056
|
+
else {
|
|
17057
|
+
this.icOptionSelect.emit({ value });
|
|
17058
|
+
valueArray.push(value);
|
|
17059
|
+
valueArray = this.getValidatedValue(valueArray);
|
|
16615
17060
|
}
|
|
16616
|
-
|
|
16617
|
-
if (this.open && event.key === "Enter") {
|
|
16618
|
-
this.setMenuChange(false);
|
|
17061
|
+
this.value = valueArray.length ? valueArray : null;
|
|
16619
17062
|
}
|
|
16620
17063
|
else {
|
|
16621
|
-
|
|
16622
|
-
|
|
16623
|
-
|
|
16624
|
-
|
|
16625
|
-
((isMacDevice() && event.metaKey) ||
|
|
16626
|
-
(!isMacDevice() && event.ctrlKey));
|
|
16627
|
-
if (!(this.searchable && isCtrlA)) {
|
|
16628
|
-
(_a = this.menu) === null || _a === void 0 ? void 0 : _a.handleKeyboardOpen(event);
|
|
16629
|
-
}
|
|
16630
|
-
}
|
|
16631
|
-
if (!this.multiple) {
|
|
16632
|
-
this.handleCharacterKeyDown(event.key);
|
|
16633
|
-
}
|
|
16634
|
-
}
|
|
16635
|
-
}
|
|
16636
|
-
};
|
|
16637
|
-
this.handleClearButtonFocus = () => {
|
|
16638
|
-
this.clearButtonFocused = true;
|
|
16639
|
-
};
|
|
16640
|
-
this.handleClearButtonBlur = (ev) => {
|
|
16641
|
-
var _a;
|
|
16642
|
-
const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
|
|
16643
|
-
if ((!this.searchableSelectElement ||
|
|
16644
|
-
ev.relatedTarget !== this.searchableSelectElement) &&
|
|
16645
|
-
(!retryButton || ev.relatedTarget !== retryButton)) {
|
|
16646
|
-
this.setMenuChange(false);
|
|
16647
|
-
this.handleFocusIndicatorDisplay();
|
|
17064
|
+
this.icOptionSelect.emit({ value });
|
|
17065
|
+
this.value = value;
|
|
17066
|
+
if (this.searchable)
|
|
17067
|
+
this.searchableSelectInputValue = "";
|
|
16648
17068
|
}
|
|
16649
|
-
this.clearButtonFocused = false;
|
|
16650
17069
|
};
|
|
16651
|
-
this.
|
|
16652
|
-
|
|
16653
|
-
|
|
16654
|
-
|
|
16655
|
-
|
|
16656
|
-
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
|
|
17070
|
+
this.handleSelectAllChange = ({ detail, }) => {
|
|
17071
|
+
const allSelectableValues = this.flatOptions
|
|
17072
|
+
.filter((option) => !option.disabled)
|
|
17073
|
+
.map((option) => option.value);
|
|
17074
|
+
if (detail.select) {
|
|
17075
|
+
allSelectableValues
|
|
17076
|
+
.filter((value) => { var _a; return !((_a = this.value) !== null && _a !== void 0 ? _a : []).includes(value); })
|
|
17077
|
+
.forEach((value) => {
|
|
17078
|
+
this.icOptionSelect.emit({ value });
|
|
17079
|
+
});
|
|
17080
|
+
this.value = allSelectableValues;
|
|
16660
17081
|
}
|
|
16661
17082
|
else {
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
if (!isGrouped &&
|
|
16665
|
-
((_a = menuOptionsFiltered[0]) === null || _a === void 0 ? void 0 : _a.label) !== this.emptyOptionListText) {
|
|
16666
|
-
newFilteredOptions = menuOptionsFiltered;
|
|
16667
|
-
}
|
|
16668
|
-
else if (isGrouped) {
|
|
16669
|
-
newFilteredOptions = options.map((option) => this.includeGroupTitlesInSearch &&
|
|
16670
|
-
menuOptionsFiltered.indexOf(option) !== -1
|
|
16671
|
-
? option
|
|
16672
|
-
: this.getFilteredChildMenuOptions(option));
|
|
16673
|
-
}
|
|
16674
|
-
if (newFilteredOptions.length > 0 &&
|
|
16675
|
-
(!isGrouped ||
|
|
16676
|
-
newFilteredOptions.some(({ children }) => children && children.length > 0))) {
|
|
16677
|
-
this.noOptions = null;
|
|
16678
|
-
this.filteredOptions = newFilteredOptions;
|
|
17083
|
+
this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
|
|
17084
|
+
this.value = null;
|
|
16679
17085
|
}
|
|
16680
|
-
|
|
16681
|
-
|
|
16682
|
-
|
|
17086
|
+
};
|
|
17087
|
+
this.handleFormReset = () => {
|
|
17088
|
+
this.value = this.initialValue;
|
|
17089
|
+
this.searchableSelectInputValue = "";
|
|
17090
|
+
if (this.searchable) {
|
|
17091
|
+
this.hiddenInputValue = this.initialValue;
|
|
16683
17092
|
}
|
|
16684
17093
|
};
|
|
16685
|
-
|
|
16686
|
-
|
|
16687
|
-
* Replace options with the loading message. If timeout is enabled, set the timeout and once passed, replace options with the loading error message
|
|
16688
|
-
*/
|
|
16689
|
-
this.triggerLoading = () => {
|
|
17094
|
+
this.handleRetry = () => {
|
|
17095
|
+
this.clearTimer();
|
|
16690
17096
|
this.hasTimedOut = false;
|
|
16691
|
-
this.
|
|
16692
|
-
|
|
16693
|
-
|
|
16694
|
-
|
|
16695
|
-
|
|
16696
|
-
|
|
16697
|
-
}
|
|
16698
|
-
|
|
16699
|
-
this.timeoutTimer = window.setTimeout(() => {
|
|
16700
|
-
this.loading = false;
|
|
16701
|
-
this.hasTimedOut = true;
|
|
16702
|
-
this.noOptions = [
|
|
16703
|
-
{ label: this.loadingErrorLabel, value: "", timedOut: true },
|
|
16704
|
-
];
|
|
16705
|
-
this.filteredOptions = this.noOptions;
|
|
16706
|
-
if (!this.searchable)
|
|
16707
|
-
this.uniqueOptions = this.noOptions;
|
|
16708
|
-
}, this.timeout);
|
|
16709
|
-
}
|
|
17097
|
+
this.hasError = false;
|
|
17098
|
+
this.loading = true;
|
|
17099
|
+
this.icRetryLoad.emit({
|
|
17100
|
+
value: this.searchable
|
|
17101
|
+
? this.searchableSelectInputValue
|
|
17102
|
+
: this.hiddenInputValue,
|
|
17103
|
+
});
|
|
17104
|
+
this.setFocus();
|
|
16710
17105
|
};
|
|
16711
|
-
this.getValueFromLabel = (label) => { var _a; return label && ((_a = this.uniqueOptions.find((option) => option.label === label)) === null || _a === void 0 ? void 0 : _a.value); };
|
|
16712
17106
|
this.handleSearchableSelectInput = (event) => {
|
|
16713
|
-
this.searchableSelectInputValue = event.target.value;
|
|
16714
|
-
this.emitIcInput(this.searchableSelectInputValue);
|
|
16715
|
-
// De-select previous selection when input is edited
|
|
16716
|
-
// Only emit icChange once when editing input
|
|
16717
|
-
if (this.value != null) {
|
|
16718
|
-
this.emitIcChange(null);
|
|
16719
|
-
}
|
|
16720
|
-
this.hiddenInputValue = null;
|
|
16721
|
-
this.inputValueToFilter = this.searchableSelectInputValue;
|
|
16722
|
-
this.setMenuChange(true);
|
|
16723
|
-
if (!this.disableAutoFiltering) {
|
|
16724
|
-
this.handleFilter();
|
|
16725
|
-
clearTimeout(this.debounceAria);
|
|
16726
|
-
window.setTimeout(() => {
|
|
16727
|
-
this.updateSearchableSelectResultAriaLive();
|
|
16728
|
-
}, 800);
|
|
16729
|
-
}
|
|
16730
|
-
};
|
|
16731
|
-
this.updateSearchableSelectResultAriaLive = () => {
|
|
16732
17107
|
var _a;
|
|
16733
|
-
|
|
16734
|
-
if (
|
|
16735
|
-
|
|
16736
|
-
this.noOptions !== null ? this.emptyOptionListText : "";
|
|
16737
|
-
}
|
|
16738
|
-
};
|
|
16739
|
-
this.updateMultiSelectedCountAriaLive = () => {
|
|
16740
|
-
var _a, _b;
|
|
16741
|
-
const multiSelectSelectedCountEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".multi-select-selected-count");
|
|
16742
|
-
const selectedCount = `${(_b = this.currValue) === null || _b === void 0 ? void 0 : _b.length} of ${getOptionsWithoutGroupTitlesCount(this.options)} selected`;
|
|
16743
|
-
if (multiSelectSelectedCountEl &&
|
|
16744
|
-
multiSelectSelectedCountEl.innerText !== selectedCount) {
|
|
16745
|
-
multiSelectSelectedCountEl.innerText = selectedCount;
|
|
16746
|
-
}
|
|
16747
|
-
};
|
|
16748
|
-
this.getDefaultValue = (value) => this.getLabelFromValue(value) || null;
|
|
16749
|
-
this.setDefaultValue = () => {
|
|
16750
|
-
if (!this.hasSetDefaultValue && this.currValue) {
|
|
16751
|
-
this.searchableSelectInputValue = this.searchable
|
|
16752
|
-
? this.getDefaultValue(this.currValue)
|
|
16753
|
-
: null;
|
|
16754
|
-
this.initialValue = this.currValue;
|
|
16755
|
-
this.hasSetDefaultValue = true;
|
|
17108
|
+
this.updateSearchableSelectResultAriaLive();
|
|
17109
|
+
if (!this.multiple) {
|
|
17110
|
+
this.value = null;
|
|
16756
17111
|
}
|
|
17112
|
+
this.searchableSelectInputValue =
|
|
17113
|
+
(_a = event.target.value) !== null && _a !== void 0 ? _a : "";
|
|
17114
|
+
this.open = true;
|
|
17115
|
+
clearTimeout(this.debounceIcInput);
|
|
17116
|
+
this.debounceIcInput = window.setTimeout(() => this.icInput.emit({ value: this.searchableSelectInputValue }), this.currDebounce);
|
|
16757
17117
|
};
|
|
16758
|
-
this.
|
|
16759
|
-
|
|
16760
|
-
|
|
16761
|
-
|
|
16762
|
-
|
|
16763
|
-
|
|
16764
|
-
if (target !== null &&
|
|
16765
|
-
((target.tagName === "UL" && target.className.includes("menu")) ||
|
|
16766
|
-
(target.tagName === "LI" && target.className.includes("option")))) {
|
|
16767
|
-
return;
|
|
16768
|
-
}
|
|
16769
|
-
const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
|
|
16770
|
-
if (this.searchable &&
|
|
16771
|
-
!!this.menu &&
|
|
16772
|
-
target !== this.menu &&
|
|
16773
|
-
!Array.from(this.menu.querySelectorAll("[role='option']")).includes(target) &&
|
|
16774
|
-
(!this.clearButton || target !== this.clearButton) &&
|
|
16775
|
-
(!retryButton || target !== retryButton)) {
|
|
16776
|
-
if (!this.retryButtonClick) {
|
|
16777
|
-
this.setMenuChange(false);
|
|
16778
|
-
// Clear input field on blur when searchable if no option is selected
|
|
16779
|
-
if (!this.value) {
|
|
16780
|
-
this.clearInput();
|
|
17118
|
+
this.hostMutationCallback = (mutationList) => {
|
|
17119
|
+
mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
|
|
17120
|
+
if (attributeName) {
|
|
17121
|
+
const attribute = this.el.getAttribute(attributeName);
|
|
17122
|
+
if (attribute && MUTABLE_ATTRIBUTES$1.includes(attributeName)) {
|
|
17123
|
+
this.inheritedAttributes[attributeName] = attribute;
|
|
16781
17124
|
}
|
|
16782
17125
|
}
|
|
16783
|
-
|
|
16784
|
-
|
|
16785
|
-
|
|
16786
|
-
|
|
17126
|
+
else if (type === "childList") {
|
|
17127
|
+
checkSlotInChildMutations(addedNodes, removedNodes, "icon");
|
|
17128
|
+
}
|
|
17129
|
+
});
|
|
16787
17130
|
};
|
|
16788
|
-
this.
|
|
16789
|
-
|
|
16790
|
-
|
|
16791
|
-
|
|
16792
|
-
this.
|
|
16793
|
-
|
|
16794
|
-
|
|
16795
|
-
}
|
|
16796
|
-
this.blurredBecauseButtonPressed = false;
|
|
17131
|
+
this.updateSelectButtonAriaLive = () => {
|
|
17132
|
+
const value_label = this.getLabelFromValue(this.value);
|
|
17133
|
+
this.selectButtonAriaLiveText = this.multiple
|
|
17134
|
+
? `${this.value ? this.value.length : 0} of ${this.flatOptions.length} selected`
|
|
17135
|
+
: this.value
|
|
17136
|
+
? value_label !== null && value_label !== void 0 ? value_label : `${value_label} selected`
|
|
17137
|
+
: "";
|
|
16797
17138
|
};
|
|
16798
|
-
this.
|
|
16799
|
-
|
|
16800
|
-
|
|
16801
|
-
|
|
16802
|
-
|
|
16803
|
-
|
|
17139
|
+
this.updateSearchableSelectResultAriaLive = () => {
|
|
17140
|
+
var _a, _b;
|
|
17141
|
+
this.selectInputAriaLiveText =
|
|
17142
|
+
((_b = (_a = this.getOptions()) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.label) == this.emptyOptionListText
|
|
17143
|
+
? this.emptyOptionListText
|
|
17144
|
+
: "";
|
|
16804
17145
|
};
|
|
16805
|
-
this.
|
|
16806
|
-
|
|
16807
|
-
|
|
16808
|
-
|
|
16809
|
-
|
|
16810
|
-
|
|
16811
|
-
|
|
16812
|
-
|
|
17146
|
+
this.updateAriaActiveDescendant = (event) => {
|
|
17147
|
+
this.ariaActiveDescendant = event.detail.optionId;
|
|
17148
|
+
};
|
|
17149
|
+
this.handleMenuChange = (event) => {
|
|
17150
|
+
this.open = event.detail.open;
|
|
17151
|
+
this.pressedCharacters = "";
|
|
17152
|
+
};
|
|
17153
|
+
this.getDeduplicatedOptions = (flatOptions) => {
|
|
17154
|
+
const seen = new Set();
|
|
17155
|
+
return flatOptions.filter((option) => {
|
|
17156
|
+
if (option.value && seen.has(option.value)) {
|
|
17157
|
+
console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${option.value}) which has been removed.`);
|
|
17158
|
+
return false;
|
|
17159
|
+
}
|
|
17160
|
+
if (option.value)
|
|
17161
|
+
seen.add(option.value);
|
|
17162
|
+
return true;
|
|
17163
|
+
});
|
|
16813
17164
|
};
|
|
16814
|
-
this.renderNativeOption = (option) => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === this.
|
|
17165
|
+
this.renderNativeOption = (option) => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === this.value }, option.label));
|
|
16815
17166
|
}
|
|
16816
17167
|
watchDisabledHandler() {
|
|
16817
17168
|
removeDisabledFalse(this.disabled, this.el);
|
|
16818
17169
|
}
|
|
16819
17170
|
loadingHandler(newValue) {
|
|
16820
|
-
|
|
17171
|
+
this.hasTimedOut = false;
|
|
17172
|
+
if (newValue) {
|
|
17173
|
+
this.hasError = false;
|
|
17174
|
+
if (this.timeout) {
|
|
17175
|
+
if (this.timeoutTimer) {
|
|
17176
|
+
this.clearTimer();
|
|
17177
|
+
}
|
|
17178
|
+
this.timeoutTimer = window.setTimeout(() => {
|
|
17179
|
+
this.loading = false;
|
|
17180
|
+
this.hasTimedOut = true;
|
|
17181
|
+
}, this.timeout);
|
|
17182
|
+
}
|
|
17183
|
+
}
|
|
17184
|
+
else {
|
|
17185
|
+
if (this.timeoutTimer) {
|
|
17186
|
+
this.clearTimer();
|
|
17187
|
+
}
|
|
17188
|
+
}
|
|
16821
17189
|
}
|
|
16822
|
-
|
|
16823
|
-
this.
|
|
17190
|
+
clearTimer() {
|
|
17191
|
+
if (this.timeoutTimer) {
|
|
17192
|
+
clearTimeout(this.timeoutTimer);
|
|
17193
|
+
this.timeoutTimer = null;
|
|
17194
|
+
}
|
|
17195
|
+
}
|
|
17196
|
+
optionsChangedHandler() {
|
|
17197
|
+
const flat = this.getFlatOptions(this.options)
|
|
17198
|
+
.filter((option) => option.value != null || option.label != null) // filter out options missing both value and label
|
|
17199
|
+
.map((option) => {
|
|
17200
|
+
var _a, _b;
|
|
17201
|
+
return (Object.assign(Object.assign({}, option), { value: (_a = option.value) !== null && _a !== void 0 ? _a : option.label, label: (_b = option.label) !== null && _b !== void 0 ? _b : option.value }));
|
|
17202
|
+
});
|
|
17203
|
+
this.flatOptions = this.getDeduplicatedOptions(flat);
|
|
17204
|
+
if (!this.initialRender)
|
|
17205
|
+
this.loading = false;
|
|
17206
|
+
this.clearTimer();
|
|
17207
|
+
this.updateSelectButtonAriaLive();
|
|
16824
17208
|
}
|
|
16825
17209
|
debounceChangedHandler(newValue) {
|
|
16826
17210
|
if (this.currDebounce !== newValue) {
|
|
16827
17211
|
this.currDebounce = newValue;
|
|
16828
17212
|
}
|
|
16829
17213
|
}
|
|
16830
|
-
valueChangedHandler() {
|
|
16831
|
-
|
|
16832
|
-
|
|
16833
|
-
|
|
16834
|
-
|
|
16835
|
-
|
|
16836
|
-
|
|
16837
|
-
|
|
16838
|
-
|
|
16839
|
-
this.currValue = this.getLabelFromValue(this.value)
|
|
16840
|
-
? this.value
|
|
16841
|
-
: null;
|
|
16842
|
-
}
|
|
16843
|
-
}
|
|
16844
|
-
if (this.searchable && this.value) {
|
|
16845
|
-
// Only set if value not null - prevents whole input value being cleared when edited
|
|
16846
|
-
this.searchableSelectInputValue =
|
|
16847
|
-
this.getLabelFromValue(String(this.currValue)) || null;
|
|
17214
|
+
valueChangedHandler(newValue) {
|
|
17215
|
+
const validated = this.getValidatedValue(newValue);
|
|
17216
|
+
const isEqual = Array.isArray(validated) && Array.isArray(this.value)
|
|
17217
|
+
? validated.length === this.value.length &&
|
|
17218
|
+
validated.every((v, i) => v === this.value[i])
|
|
17219
|
+
: validated === this.value;
|
|
17220
|
+
if (!isEqual) {
|
|
17221
|
+
this.value = validated;
|
|
17222
|
+
return;
|
|
16848
17223
|
}
|
|
17224
|
+
this.updateSelectButtonAriaLive();
|
|
17225
|
+
this.icChange.emit({ value: this.value });
|
|
16849
17226
|
}
|
|
16850
17227
|
openChangedHandler() {
|
|
16851
17228
|
this.open ? this.icOpen.emit() : this.icClose.emit();
|
|
17229
|
+
if (!this.open) {
|
|
17230
|
+
this.ariaActiveDescendant = undefined;
|
|
17231
|
+
}
|
|
17232
|
+
this.handleFocusIndicatorDisplay();
|
|
17233
|
+
}
|
|
17234
|
+
/**
|
|
17235
|
+
* Sets focus on the select component.
|
|
17236
|
+
*/
|
|
17237
|
+
async setFocus() {
|
|
17238
|
+
if (this.nativeSelectElement) {
|
|
17239
|
+
this.nativeSelectElement.focus();
|
|
17240
|
+
}
|
|
17241
|
+
else if (this.selectElement) {
|
|
17242
|
+
this.selectElement.focus();
|
|
17243
|
+
}
|
|
17244
|
+
else if (this.searchableSelectElement) {
|
|
17245
|
+
this.searchableSelectElement.focus();
|
|
17246
|
+
}
|
|
17247
|
+
}
|
|
17248
|
+
componentDidRender() {
|
|
17249
|
+
if (this.nativeSelectElement && !this.disabled) {
|
|
17250
|
+
this.setTextColor();
|
|
17251
|
+
}
|
|
17252
|
+
this.initialRender = false;
|
|
16852
17253
|
}
|
|
16853
17254
|
disconnectedCallback() {
|
|
16854
17255
|
var _a;
|
|
16855
17256
|
removeFormResetListener(this.el, this.handleFormReset);
|
|
16856
17257
|
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
16857
|
-
|
|
16858
|
-
componentWillLoad() {
|
|
16859
|
-
const valueInOptions = this.multiple
|
|
16860
|
-
? this.getMultipleOptionsString(this.value)
|
|
16861
|
-
: this.getLabelFromValue(this.value);
|
|
16862
|
-
this.currValue = valueInOptions ? this.value : null;
|
|
16863
|
-
this.inheritedAttributes = inheritAttributes(this.el, MUTABLE_ATTRIBUTES$1);
|
|
16864
|
-
removeDisabledFalse(this.disabled, this.el);
|
|
16865
|
-
this.setOptionsValuesFromLabels();
|
|
16866
|
-
addFormResetListener(this.el, this.handleFormReset);
|
|
16867
|
-
if (!this.options.length) {
|
|
16868
|
-
this.initialOptionsEmpty = true;
|
|
16869
|
-
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
|
16870
|
-
this.uniqueOptions = this.noOptions;
|
|
16871
|
-
this.filteredOptions = this.noOptions;
|
|
16872
|
-
}
|
|
16873
|
-
else {
|
|
16874
|
-
this.setDefaultValue();
|
|
16875
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
|
16876
|
-
}
|
|
17258
|
+
this.clearTimer();
|
|
16877
17259
|
}
|
|
16878
17260
|
componentDidLoad() {
|
|
16879
|
-
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Select");
|
|
16880
|
-
if (this.loading) {
|
|
16881
|
-
this.triggerLoading();
|
|
16882
|
-
}
|
|
16883
|
-
if (this.searchable) {
|
|
16884
|
-
this.hiddenInputValue = this.currValue;
|
|
16885
|
-
}
|
|
16886
17261
|
this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
|
|
16887
17262
|
this.hostMutationObserver.observe(this.el, {
|
|
16888
17263
|
attributes: true,
|
|
16889
17264
|
childList: true,
|
|
16890
17265
|
});
|
|
16891
17266
|
}
|
|
16892
|
-
|
|
16893
|
-
|
|
16894
|
-
|
|
16895
|
-
|
|
16896
|
-
|
|
16897
|
-
|
|
16898
|
-
|
|
16899
|
-
*/
|
|
16900
|
-
async setFocus() {
|
|
16901
|
-
if (this.nativeSelectElement) {
|
|
16902
|
-
this.nativeSelectElement.focus();
|
|
16903
|
-
}
|
|
16904
|
-
else if (this.customSelectElement) {
|
|
16905
|
-
this.customSelectElement.focus();
|
|
16906
|
-
}
|
|
16907
|
-
else if (this.searchableSelectElement) {
|
|
16908
|
-
this.searchableSelectElement.focus();
|
|
16909
|
-
}
|
|
17267
|
+
componentWillLoad() {
|
|
17268
|
+
this.optionsChangedHandler();
|
|
17269
|
+
this.value = this.getValidatedValue(this.value);
|
|
17270
|
+
this.initialValue = this.value;
|
|
17271
|
+
if (this.loading)
|
|
17272
|
+
this.loadingHandler(true);
|
|
17273
|
+
addFormResetListener(this.el, this.handleFormReset);
|
|
16910
17274
|
}
|
|
16911
17275
|
render() {
|
|
16912
|
-
|
|
16913
|
-
const
|
|
16914
|
-
|
|
16915
|
-
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
|
16916
|
-
renderHiddenInput(this.el, searchable ? hiddenInputValue : currValue, name || inputId, disabled);
|
|
16917
|
-
const invalid = `${validationStatus === IcInformationStatus.Error}`;
|
|
16918
|
-
const showValidation = hasValidationStatus(validationStatus, !!disabled);
|
|
16919
|
-
const describedBy = getInputDescribedByText(this.el, inputId, helperText !== "", showValidation).trim();
|
|
16920
|
-
const valueLabelString = multiple
|
|
16921
|
-
? this.getMultipleOptionsString(currValue)
|
|
16922
|
-
: this.getLabelFromValue(currValue);
|
|
17276
|
+
const { disabled, searchable, size, fullWidth, theme, readonly, hideLabel, inputId, label, helperText, required, value, options, menuId, multiple, validationStatus, open, showClearButton, selectOnEnter, loading, searchableSelectInputValue, validationText, validationAriaLive, form, ariaActiveDescendant, placeholder, name, inheritedAttributes, selectInputAriaLiveText, selectButtonAriaLiveText, } = this;
|
|
17277
|
+
const hasValue = !!value;
|
|
17278
|
+
const hasInput = !!searchableSelectInputValue;
|
|
16923
17279
|
const isClearable = !disabled &&
|
|
16924
|
-
(searchable
|
|
16925
|
-
|
|
16926
|
-
|
|
16927
|
-
|
|
17280
|
+
((searchable && (hasInput || hasValue)) ||
|
|
17281
|
+
(!searchable && hasValue && !loading && showClearButton));
|
|
17282
|
+
const showValidation = !!validationStatus && !disabled;
|
|
17283
|
+
const invalid = validationStatus === IcInformationStatus.Error;
|
|
17284
|
+
const describedBy = getInputDescribedByText(this.el, inputId, helperText !== "", showValidation).trim();
|
|
17285
|
+
const menuOptions = this.getOptions();
|
|
17286
|
+
const noOptions = disabled ||
|
|
17287
|
+
(menuOptions.length === 1 &&
|
|
17288
|
+
(menuOptions[0].label === this.emptyOptionListText ||
|
|
17289
|
+
"loading" in menuOptions[0] ||
|
|
17290
|
+
"timedOut" in menuOptions[0]));
|
|
17291
|
+
renderHiddenInput(this.el, value, name || inputId, disabled);
|
|
17292
|
+
const ClearButton = () => (hAsync("ic-button", { key: '983b6bfae4f3a9d439f23fe022652605d91f0a1e', ref: (el) => (this.clearButton = el), id: "clear-button", "aria-label": this.searchable ? "Clear input" : "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onBlur: this.handleBlur, size: size, variant: "icon-tertiary" }));
|
|
17293
|
+
const NativeSelect = () => (hAsync("select", Object.assign({ key: '2fb628398e722cff8c3759229af969600e553485', ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid ? "true" : "false", onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleNativeSelectKeyDown, form: form }, inheritedAttributes), hAsync("option", { key: '5fb827fef7ab7c597a2361ac4d019f9e07adb55f', value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => "children" in option ? (hAsync("optgroup", { label: option.label }, option.children.map((child) => this.renderNativeOption(child)))) : (this.renderNativeOption(option)))));
|
|
17294
|
+
const SelectButton = () => (hAsync("div", { key: '47ad04d6da391fcb88a8b6a6a841dec93f53cd74', class: "select-container" }, hAsync("button", { key: '7ee23a4f16c4aca4b287391ac5bf5f6ee4441b07', class: "select-input", role: "combobox", ref: (el) => (this.selectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && value
|
|
17295
|
+
? `${value.length} of ${this.flatOptions.length} selected, ${this.getLabelString()}`
|
|
17296
|
+
: this.getLabelString()) || placeholder}`, onClick: this.handleClick, "aria-describedby": describedBy, "aria-invalid": invalid ? "true" : "false", "aria-haspopup": "listbox", "aria-expanded": `${open}`, "aria-controls": menuId, "aria-required": `${required}`, disabled: disabled, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-activedescendant": ariaActiveDescendant }, hAsync("ic-typography", { key: '438cce7c257e37d0a0aef5247d28d31586725a1e', variant: "body", class: {
|
|
17297
|
+
"value-text": true,
|
|
17298
|
+
"with-clear-button": !!isClearable,
|
|
17299
|
+
placeholder: !value,
|
|
17300
|
+
} }, this.getLabelString()), hAsync("div", { key: '8926d05851401339717c159651b802fb41e53096', class: "select-input-end" }, isClearable && hAsync("div", { key: '5c94e4ba98ad972001890d639b00c82887e0fb5d', class: "divider" }), hAsync("span", { key: '23569f5196d66f2b4a834d44006f6a05446598cd', class: {
|
|
17301
|
+
"expand-icon": true,
|
|
17302
|
+
"expand-icon-open": open,
|
|
17303
|
+
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && hAsync(ClearButton, { key: 'e4165cb01b0bdc1681e3d9490007182b934f40ea' }), hAsync("div", { key: '6208229358ee8ba7a007a08f5e551d494015a347', "aria-live": "polite", "aria-atomic": "true", class: "aria-live-hidden-text" }, selectButtonAriaLiveText)));
|
|
17304
|
+
const SelectInput = () => (hAsync("div", { key: 'af39791c29e8d792c16fed1fffe08db8f621fcac', class: "searchable-select-container" }, hAsync("input", { key: '366bd3c57ad76f130d73ab2390c557b9e8fe98c8', class: {
|
|
17305
|
+
"value-text": true,
|
|
17306
|
+
"select-input": true,
|
|
17307
|
+
"with-clear-button": !!searchableSelectInputValue,
|
|
17308
|
+
}, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${open}`, "aria-invalid": invalid ? "true" : "false", "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: inputId, value: multiple
|
|
17309
|
+
? ""
|
|
17310
|
+
: value
|
|
17311
|
+
? this.getLabelString()
|
|
17312
|
+
: searchableSelectInputValue || undefined, disabled: disabled, placeholder: placeholder, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown, form: form }), isClearable && (hAsync("div", { key: 'e9260358a6c8ac3683d1de3015064665d32d907f', class: "clear-button-container" }, hAsync(ClearButton, { key: '0c05ed1cf92ac8fde61ba55192a8a1511338239e' }), hAsync("div", { key: 'e44933edcc7c79459f1ecd551eec43a86fd53b11', class: "divider" }))), hAsync("span", { key: '36e7fe34e7d438caab2967fae27bfe4fb2e49041', onMouseDown: this.handleExpandIconMouseDown, class: {
|
|
17313
|
+
"expand-icon": true,
|
|
17314
|
+
"expand-icon-open": open,
|
|
17315
|
+
}, innerHTML: Expand, "aria-hidden": "true" }), hAsync("div", { key: 'c3e06f04e62b273b8a7a6f9df0aa27bf71060ed4', "aria-live": "polite", role: "status", class: "aria-live-hidden-text" }, selectInputAriaLiveText)));
|
|
17316
|
+
const ReadOnly = () => (hAsync("ic-typography", { key: '979d342f453fdb2ed79a6cf231d9a40275662a44' }, hAsync("p", { key: '221530958da8731657b5ad4d455041dc3934718f' }, this.getLabelString() === placeholder ? "" : this.getLabelString())));
|
|
17317
|
+
return (hAsync(Host, { key: 'efbdccb0f0b7e86142cd530d52a86f7ce95d6c1c', class: {
|
|
16928
17318
|
"ic-select-disabled": disabled,
|
|
16929
17319
|
"ic-select-searchable": searchable,
|
|
16930
17320
|
[`ic-select-${size}`]: size !== "medium",
|
|
16931
17321
|
"ic-select-full-width": fullWidth,
|
|
16932
17322
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
16933
|
-
}
|
|
17323
|
+
} }, hAsync("ic-input-container", { key: '48fe83c1c79ec578f94a2d8af4b8b452570a421f', readonly: readonly }, !hideLabel && (hAsync("ic-input-label", { key: '8410dabe6d0d62c7c1459991631807cfa6546735', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly }, hAsync("slot", { key: '77ce0ab9ca879ecf515de633ff27ba8e2320cf2c', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: '699375a82eb49f5eb351cf95b4822b4cad7bcc1a', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, isSlotUsed(this.el, "icon") &&
|
|
16934
17324
|
!disabled &&
|
|
16935
|
-
(!readonly || !!value) && (hAsync("span", { key: '
|
|
17325
|
+
(!readonly || !!value) && (hAsync("span", { key: 'fcfec6b75fdb0eb41950460af3c6d7dc5ad43657', slot: "left-icon", class: {
|
|
16936
17326
|
readonly,
|
|
16937
17327
|
"has-value": !!value,
|
|
16938
|
-
} }, hAsync("slot", { key: '
|
|
16939
|
-
|
|
16940
|
-
|
|
16941
|
-
"with-clear-button": !!searchableSelectInputValue,
|
|
16942
|
-
}, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: inputId, value: searchableSelectInputValue || undefined, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: form }), isClearable && (hAsync("div", { class: "clear-button-container" }, hAsync("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": searchableSelectInputValue &&
|
|
16943
|
-
(currValue === null || loading)
|
|
16944
|
-
? "Clear input"
|
|
16945
|
-
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { class: "divider" }))), hAsync("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
|
16946
|
-
"expand-icon": true,
|
|
16947
|
-
"expand-icon-open": open,
|
|
16948
|
-
}, innerHTML: Expand, "aria-hidden": "true" }), hAsync("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (hAsync("div", { class: "select-container" }, hAsync("button", { role: "combobox", class: "select-input", ref: (el) => (this.customSelectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && currValue
|
|
16949
|
-
? `${currValue.length} of ${getOptionsWithoutGroupTitlesCount(options)} selected, ${valueLabelString}`
|
|
16950
|
-
: valueLabelString) || placeholder}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": `${open}`, "aria-owns": menuId, "aria-controls": menuId, "aria-required": `${required}`, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, hAsync("ic-typography", { variant: "body", class: {
|
|
16951
|
-
"value-text": true,
|
|
16952
|
-
"with-clear-button": isClearable,
|
|
16953
|
-
placeholder: !loading && multiple
|
|
16954
|
-
? !value || value.length < 1
|
|
16955
|
-
: !this.getLabelFromValue(currValue),
|
|
16956
|
-
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
|
16957
|
-
"expand-icon": true,
|
|
16958
|
-
"expand-icon-open": open,
|
|
16959
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (hAsync("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-tertiary", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: 'bb2e95961d8685349e46edf1c93a2dce9792657b', class: {
|
|
16960
|
-
"no-results": loading ||
|
|
16961
|
-
hasTimedOut ||
|
|
16962
|
-
(searchable &&
|
|
16963
|
-
((_b = (_a = this.filteredOptions) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.label) === emptyOptionListText) ||
|
|
16964
|
-
(!searchable &&
|
|
16965
|
-
((_d = (_c = this.uniqueOptions) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.label) === emptyOptionListText),
|
|
16966
|
-
}, ref: (el) => (this.menu = el), inputEl: searchable
|
|
16967
|
-
? this.searchableSelectElement
|
|
16968
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: 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: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple, multiSelect: multiple ? true : false, searchableSelect: searchable ? true : false })), multiple && (hAsync("div", { key: '5d6db7b55942499db04a942c7980ad09e5db65f8', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hAsync("ic-input-validation", { key: '5133bf75be8a86fe3134491d659b934dac271e57', class: {
|
|
17328
|
+
} }, hAsync("slot", { key: '08d321011ba86b6d50bf3c8c85bf16595c8df657', name: "icon" }))), isMobileOrTablet() && this.useNativeSelectOnMobile && !multiple ? (hAsync(NativeSelect, null)) : readonly ? (hAsync(ReadOnly, null)) : !searchable ? (hAsync(SelectButton, null)) : (hAsync(SelectInput, null))), !(isMobileOrTablet() &&
|
|
17329
|
+
this.useNativeSelectOnMobile &&
|
|
17330
|
+
!multiple) && (hAsync("ic-menu", { key: '3fc0ee9172a93e744174e2f2b7a16c4f327a82c9', ref: (el) => (this.menu = el), class: { "no-results": noOptions }, inputEl: searchable ? this.searchableSelectElement : this.selectElement, allowMenuFocus: false, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: this.getOptions(), value: multiple ? value : value, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onTimeoutBlur: this.handleTimeoutBlur, onMenuOptionId: this.updateAriaActiveDescendant, onClick: this.setFocus, parentEl: this.el, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", onRetryButtonClicked: this.handleRetry, closeOnSelect: !multiple, multiSelect: multiple, searchableSelect: searchable })), hAsync("ic-input-validation", { key: '6b8bd66f22d67776d418e0aac1b41d2f03f3c9cd', class: {
|
|
16969
17331
|
"menu-open": open,
|
|
16970
17332
|
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
|
|
16971
17333
|
}
|
|
@@ -16974,7 +17336,7 @@ class Select {
|
|
|
16974
17336
|
static get watchers() { return {
|
|
16975
17337
|
"disabled": ["watchDisabledHandler"],
|
|
16976
17338
|
"loading": ["loadingHandler"],
|
|
16977
|
-
"options": ["
|
|
17339
|
+
"options": ["optionsChangedHandler"],
|
|
16978
17340
|
"debounce": ["debounceChangedHandler"],
|
|
16979
17341
|
"value": ["valueChangedHandler"],
|
|
16980
17342
|
"open": ["openChangedHandler"]
|
|
@@ -17011,24 +17373,22 @@ class Select {
|
|
|
17011
17373
|
"validationAriaLive": [1, "validation-aria-live"],
|
|
17012
17374
|
"validationStatus": [1, "validation-status"],
|
|
17013
17375
|
"validationText": [1, "validation-text"],
|
|
17376
|
+
"useNativeSelectOnMobile": [4, "use-native-select-on-mobile"],
|
|
17014
17377
|
"loading": [1028],
|
|
17015
17378
|
"options": [16],
|
|
17016
17379
|
"debounce": [2],
|
|
17017
17380
|
"value": [1025],
|
|
17018
17381
|
"ariaActiveDescendant": [32],
|
|
17019
|
-
"clearButtonFocused": [32],
|
|
17020
17382
|
"debounceIcInput": [32],
|
|
17021
17383
|
"hiddenInputValue": [32],
|
|
17022
|
-
"
|
|
17023
|
-
"open": [32],
|
|
17024
|
-
"pressedCharacters": [32],
|
|
17384
|
+
"hasError": [32],
|
|
17025
17385
|
"searchableSelectInputValue": [32],
|
|
17026
|
-
"
|
|
17027
|
-
"
|
|
17386
|
+
"selectButtonAriaLiveText": [32],
|
|
17387
|
+
"selectInputAriaLiveText": [32],
|
|
17388
|
+
"flatOptions": [32],
|
|
17028
17389
|
"currDebounce": [32],
|
|
17029
17390
|
"initialValue": [32],
|
|
17030
|
-
"
|
|
17031
|
-
"currValue": [32],
|
|
17391
|
+
"open": [32],
|
|
17032
17392
|
"setFocus": [64]
|
|
17033
17393
|
},
|
|
17034
17394
|
"$listeners$": undefined,
|
|
@@ -17060,10 +17420,11 @@ class SideNavigation {
|
|
|
17060
17420
|
this.ANIMATION_DURATION = window.matchMedia("(prefers-reduced-motion: reduce)").matches
|
|
17061
17421
|
? 0
|
|
17062
17422
|
: parseInt(getCssProperty("--ic-transition-duration-slow")) || 0;
|
|
17063
|
-
this.IC_NAVIGATION_ITEM = "ic-navigation-item";
|
|
17064
|
-
this.resizeObserver = null;
|
|
17065
17423
|
this.COLLAPSED_ICON_LABELS_END = "collapsed-icon-labels-end";
|
|
17066
17424
|
this.COLLAPSED_ICON_LABELS_START = "collapsed-icon-labels-start";
|
|
17425
|
+
this.IC_NAVIGATION_ITEM = "ic-navigation-item";
|
|
17426
|
+
this.hostMutationObserver = null;
|
|
17427
|
+
this.resizeObserver = null;
|
|
17067
17428
|
this.deviceSize = getCurrentDeviceSize();
|
|
17068
17429
|
this.deviceSizeAppTitle = DEVICE_SIZES.S;
|
|
17069
17430
|
this.foregroundColor = getBrandForegroundAppearance();
|
|
@@ -17472,13 +17833,21 @@ class SideNavigation {
|
|
|
17472
17833
|
}
|
|
17473
17834
|
!isSlotUsed(this.el, "app-title") &&
|
|
17474
17835
|
onComponentRequiredPropUndefined([{ prop: this.appTitle, propName: "app-title" }], "Side Navigation");
|
|
17836
|
+
this.hostMutationObserver = new MutationObserver((mutationList) => {
|
|
17837
|
+
renderDynamicChildSlots(mutationList, ["primary-navigation", "secondary-navigation"]);
|
|
17838
|
+
this.arrangeSlottedNavigationItem(this.menuExpanded);
|
|
17839
|
+
});
|
|
17840
|
+
this.hostMutationObserver.observe(this.el, {
|
|
17841
|
+
childList: true,
|
|
17842
|
+
});
|
|
17475
17843
|
}
|
|
17476
17844
|
disconnectedCallback() {
|
|
17477
|
-
var _a;
|
|
17845
|
+
var _a, _b;
|
|
17478
17846
|
if (this.resizeObserver !== null) {
|
|
17479
17847
|
this.resizeObserver.disconnect();
|
|
17480
17848
|
}
|
|
17481
|
-
(_a = this.
|
|
17849
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
17850
|
+
(_b = this.el) === null || _b === void 0 ? void 0 : _b.removeEventListener("transitionend", this.transitionEndHandler);
|
|
17482
17851
|
if (this.closeOnNavItemClick) {
|
|
17483
17852
|
this.el.removeEventListener("navItemClicked", this.handleNavItemClicked);
|
|
17484
17853
|
}
|
|
@@ -17502,7 +17871,7 @@ class SideNavigation {
|
|
|
17502
17871
|
isAppNameSubtitleVariant,
|
|
17503
17872
|
appTitle: appTitle || "",
|
|
17504
17873
|
};
|
|
17505
|
-
return (hAsync(Host, { key: '
|
|
17874
|
+
return (hAsync(Host, { key: '886d59eacfc6a79fa8b4caae8a2cdb775dff6067', class: {
|
|
17506
17875
|
"xs-menu-open": menuOpen && isSDevice,
|
|
17507
17876
|
"xs-menu-close": !menuOpen && isSDevice,
|
|
17508
17877
|
"sm-collapsed": !isSDevice && !menuExpanded,
|
|
@@ -17511,12 +17880,12 @@ class SideNavigation {
|
|
|
17511
17880
|
[`ic-side-navigation-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
|
17512
17881
|
["collapsed-labels"]: !isSDevice && !menuExpanded && !!collapsedIconLabels,
|
|
17513
17882
|
["ic-side-navigation-inline"]: !!inline,
|
|
17514
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '
|
|
17883
|
+
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '92d8098c0824f92ff4f639385d9ef1aae6fda26e', class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '5a35143cf052d624a03308c8a727b8714e1896a6', class: "side-navigation-inner" }, isSlotUsed(this.el, "primary-navigation") && (hAsync("nav", { key: '4239354cce9eede321351b68744550e0de08c3ae', class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { key: 'f8a95a420530e9114eb4560a8e77b5be51282906', "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { key: 'b660e71252c4c16dda5f3850c2769312b26397ff', class: "navigation-list" }, hAsync("slot", { key: 'b3c7b371935ef0f4b5d604c5ebe1dda873419d75', name: "primary-navigation" }))))), hAsync("div", { key: '2fcca3fc56a443b064541f3c595214693fe76b37', class: {
|
|
17515
17884
|
["bottom-wrapper"]: true,
|
|
17516
17885
|
["classification-spacing"]: hasClassificationBanner(),
|
|
17517
|
-
} }, isSlotUsed(this.el, "secondary-navigation") && (hAsync("nav", { key: '
|
|
17886
|
+
} }, isSlotUsed(this.el, "secondary-navigation") && (hAsync("nav", { key: '3b0b5d0d656206768109c4e4065c14d831962cb2', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { key: '637fe5abe5383946e97277b089c7dd1d46e703a3', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { key: '78640f1d84d55e53414094fff6abad155b44f35d', class: "navigation-list" }, hAsync("slot", { key: '35d6d19470f2b2694084b55c08905cfc8e3a0a97', name: "secondary-navigation" })))), hAsync("div", { key: '78cd12a09800d0e83634ad7ca75daa2bd1adcd35', class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", { key: 'b600544aa406b829069b6f7cdefeee16e9b4c40f' }), displayExpandBtn && (hAsync("button", { key: 'a48355b059c6e41f141a41ca1aed6bf363be51cc', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { key: '6f51db95e92d73c8c59ca5e337e0e6083e0d95b5', class: "app-status-wrapper" }, status && (hAsync("div", { key: 'aea4cbab412fd1a89d65517d355a41538505527c', class: {
|
|
17518
17887
|
["app-status"]: true,
|
|
17519
|
-
} }, hAsync("ic-typography", { key: '
|
|
17888
|
+
} }, hAsync("ic-typography", { key: '1a23249530701743408ac1003ce89a0c91f5165c', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version && (hAsync("ic-typography", { key: '430aa919fdf4eaca59e0fa6523f014a1885de38a', variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
|
17520
17889
|
}
|
|
17521
17890
|
get el() { return getElement(this); }
|
|
17522
17891
|
static get watchers() { return {
|
|
@@ -17595,11 +17964,11 @@ class Skeleton {
|
|
|
17595
17964
|
width: el.style.width || width || DEFAULT_WIDTHS[variant],
|
|
17596
17965
|
}
|
|
17597
17966
|
: undefined;
|
|
17598
|
-
return (hAsync(Host, { key: '
|
|
17967
|
+
return (hAsync(Host, { key: 'a68ad9122c6ad09b2283f2d6168e6286c8c8157f', class: {
|
|
17599
17968
|
skeleton: true,
|
|
17600
17969
|
"ic-skeleton-circle": variant === "circle",
|
|
17601
17970
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
17602
|
-
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: '
|
|
17971
|
+
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: 'a44bc7abbfb1f33581eec83e06556936ee410636' })));
|
|
17603
17972
|
}
|
|
17604
17973
|
get el() { return getElement(this); }
|
|
17605
17974
|
static get style() { return IcSkeletonStyle0; }
|
|
@@ -17658,9 +18027,9 @@ class SkipLink {
|
|
|
17658
18027
|
}
|
|
17659
18028
|
render() {
|
|
17660
18029
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
|
17661
|
-
return (hAsync(Host, { key: '
|
|
18030
|
+
return (hAsync(Host, { key: '90a25f2594d0169a8ee6f1d03b30a30fccb17168', class: {
|
|
17662
18031
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
17663
|
-
} }, hAsync("ic-link", { key: '
|
|
18032
|
+
} }, hAsync("ic-link", { key: '79c0f5121c3ac8bae5992756f3c628f381ebe576', class: {
|
|
17664
18033
|
"display-top": !inline,
|
|
17665
18034
|
"full-width": !!fullWidth,
|
|
17666
18035
|
"show-background": !transparentBackground,
|
|
@@ -17725,12 +18094,12 @@ class StatusTag {
|
|
|
17725
18094
|
}
|
|
17726
18095
|
render() {
|
|
17727
18096
|
const { label, status, variant, size, announced, theme, uppercase } = this;
|
|
17728
|
-
return (hAsync(Host, { key: '
|
|
18097
|
+
return (hAsync(Host, { key: 'e6dae50277c14c03b3d42bc12b880fa421ba5e5b', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, hAsync("strong", { key: 'e92f10182a350fd9ea993bb6376b77463a865c6d', class: {
|
|
17729
18098
|
["tag"]: true,
|
|
17730
18099
|
[`${variant}-${status}`]: true,
|
|
17731
18100
|
["outlined"]: variant === "outlined",
|
|
17732
18101
|
[`${size}`]: true,
|
|
17733
|
-
} }, hAsync("ic-typography", { key: '
|
|
18102
|
+
} }, hAsync("ic-typography", { key: 'b3a5f6504550096511aa0b0e577be5ed46b9fd84', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, hAsync("span", { key: 'd7cdc4dc4b3e635432d57799cbaea26d5380fea9' }, label)))));
|
|
17734
18103
|
}
|
|
17735
18104
|
static get style() { return IcStatusTagStyle0; }
|
|
17736
18105
|
static get cmpMeta() { return {
|
|
@@ -17834,27 +18203,27 @@ class Step {
|
|
|
17834
18203
|
// STATUS ICON FOR COMPACT STEP
|
|
17835
18204
|
let statusIcon;
|
|
17836
18205
|
if (type === "completed" || compactStepStyling === "completed") {
|
|
17837
|
-
statusIcon = (hAsync("span", { key: '
|
|
18206
|
+
statusIcon = (hAsync("span", { key: '3e6a788d03556019e87781e4e58306d0081da72a', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
|
17838
18207
|
}
|
|
17839
18208
|
else if (type === "disabled" || compactStepStyling === "disabled") {
|
|
17840
|
-
statusIcon = (hAsync("span", { key: '
|
|
18209
|
+
statusIcon = (hAsync("span", { key: 'd3df77790e474794ac3a74cc99c98ec73a51530a', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
17841
18210
|
}
|
|
17842
18211
|
// COMPACT STEP COMPONENT
|
|
17843
|
-
const compactStep = (hAsync("div", { key: '
|
|
18212
|
+
const compactStep = (hAsync("div", { key: '58e72e89eb93fd00ea4a76704c3744050eed25d2', class: {
|
|
17844
18213
|
["step"]: true,
|
|
17845
18214
|
["current"]: !!current,
|
|
17846
18215
|
[`compact-step-${compactStepStyling}`]: !!compactStepStyling,
|
|
17847
18216
|
["disabled"]: type === "disabled" || compactStepStyling === "disabled",
|
|
17848
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
|
18217
|
+
} }, hAsync("ic-loading-indicator", { key: 'c7a6e8e70fe3e3a485a5b0c9353b6a7eaf5888d0', class: {
|
|
17849
18218
|
"compact-step-progress-indicator": true,
|
|
17850
18219
|
"not-required": type === "disabled" || compactStepStyling === "disabled",
|
|
17851
|
-
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), hAsync("div", { key: '
|
|
18220
|
+
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), hAsync("div", { key: '13209e08fa212f80ee2b6b2f04dd65cd3a36f461', class: "heading-area" }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (hAsync("ic-typography", { variant: "h4", class: "heading" }, heading)), hAsync("div", { key: '7c71fc4f8ce1b59c792c60f2d18cc464ebfc3b0f', class: "info-line" }, hAsync("ic-typography", { key: '942f6be75ff898fccda479f36003b80dcdcad9ed', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, hAsync("span", { key: 'a3ced0ecff13af724c007fa1ca32f7396f114612', class: "visually-hidden" }, ` ${icI18n.steps}`)), (this.subheading ||
|
|
17852
18221
|
type === "completed" ||
|
|
17853
18222
|
type === "disabled" ||
|
|
17854
18223
|
(this.variant === "compact" &&
|
|
17855
18224
|
!!compactStepStyling &&
|
|
17856
18225
|
compactStepStyling !== "active") ||
|
|
17857
|
-
!!status) && (hAsync("div", { key: '
|
|
18226
|
+
!!status) && (hAsync("div", { key: '04bb305951a0de96241c64e478b26e12afcd838a', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (hAsync("ic-typography", { key: '3487444c46756faf3f1a88ce4cebd129cbd14d87', variant: "caption" }, subheading !== null && isPropDefined(subheading)
|
|
17858
18227
|
? subheading
|
|
17859
18228
|
: type === "disabled" ||
|
|
17860
18229
|
(variant === "compact" &&
|
|
@@ -17867,26 +18236,26 @@ class Step {
|
|
|
17867
18236
|
// ICON FOR DEFAULT STEP
|
|
17868
18237
|
let icon;
|
|
17869
18238
|
if (type !== "completed") {
|
|
17870
|
-
icon = (hAsync("ic-typography", { key: '
|
|
18239
|
+
icon = (hAsync("ic-typography", { key: 'e25e3e2da7abbf17fcf8ede4dde3ce26010f68e0', variant: "subtitle-small" }, hAsync("span", { key: 'ae4b4e77475d060dc7ce62796118fd03a0cbdb1f', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
|
17871
18240
|
}
|
|
17872
18241
|
else {
|
|
17873
|
-
icon = (hAsync("div", { key: '
|
|
18242
|
+
icon = (hAsync("div", { key: '86b31c3ca79c025e185a5461c210be965b42dc2a', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: '9854c6981f84ed0984fb98666a123de0c2a32048', class: "check-icon", innerHTML: checkIcon })));
|
|
17874
18243
|
}
|
|
17875
18244
|
// STEP CONNECT FOR DEFAULT STEP
|
|
17876
|
-
const partialBar = type === "current" && (hAsync("div", { key: '
|
|
17877
|
-
const finalStep = !lastStep && (hAsync("div", { key: '
|
|
18245
|
+
const partialBar = type === "current" && (hAsync("div", { key: 'af4367f38115d9ee7f0e2112ab62ae7fdfe5b801', class: "step-connect-inner" }));
|
|
18246
|
+
const finalStep = !lastStep && (hAsync("div", { key: '979da51621c8e026ab2b2d59d7ad83764e0330a7', class: {
|
|
17878
18247
|
["step-connect"]: true,
|
|
17879
18248
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
|
17880
18249
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
17881
18250
|
} }, partialBar));
|
|
17882
18251
|
// DEFAULT STEP COMPONENT
|
|
17883
|
-
const defaultStep = (hAsync("div", { key: '
|
|
18252
|
+
const defaultStep = (hAsync("div", { key: 'd91c5752a70b8062c91c7a2563229968ed832a2f', class: {
|
|
17884
18253
|
["step"]: true,
|
|
17885
18254
|
[`${type}`]: true,
|
|
17886
|
-
} }, hAsync("div", { key: '
|
|
18255
|
+
} }, hAsync("div", { key: 'df780502b324c87db8eb701d9b4c43e12e6d6b32', class: "step-top" }, hAsync("div", { key: '7e2b4c244ecfe20c71f53d8f825938af39b62f71', class: "step-icon" }, icon), finalStep), (hasHeading || subheading || status) && (hAsync("div", { key: 'e645cb62ca795ee554a1b580e6fdae6555bc410c', class: "heading-area" }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (hAsync("ic-typography", { variant: "subtitle-large", class: "heading" }, heading)), hasHeading && (subheading || status) && (hAsync("ic-typography", { key: '8498b50dd12915ac9e39ad329e35b0a585c77f46', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined(subheading)
|
|
17887
18256
|
? subheading
|
|
17888
18257
|
: stepStatus))))));
|
|
17889
|
-
return (hAsync(Host, { key: '
|
|
18258
|
+
return (hAsync(Host, { key: '356617f292b301db2b92d8c1d111fa32831705c1', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
|
|
17890
18259
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
|
17891
18260
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
17892
18261
|
[`ic-step-${variant}`]: true,
|
|
@@ -18206,11 +18575,11 @@ class Stepper {
|
|
|
18206
18575
|
checkResizeObserver(this.runResizeObserver);
|
|
18207
18576
|
}
|
|
18208
18577
|
render() {
|
|
18209
|
-
return (hAsync(Host, { key: '
|
|
18578
|
+
return (hAsync(Host, { key: '457ee30e4513044d1160e73ab9e868c796d996e2', class: {
|
|
18210
18579
|
[`ic-stepper-${this.variant}`]: true,
|
|
18211
18580
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
|
18212
18581
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
18213
|
-
} }, hAsync("ul", { key: '
|
|
18582
|
+
} }, hAsync("ul", { key: '32a6e9ee86bc0a89d9997aa7f74250874f1e466f', class: "step-item-list" }, hAsync("slot", { key: '9571c50056c525a853cd0469d81fa2dead8cec1f' }))));
|
|
18214
18583
|
}
|
|
18215
18584
|
get el() { return getElement(this); }
|
|
18216
18585
|
static get watchers() { return {
|
|
@@ -18341,16 +18710,16 @@ class Switch {
|
|
|
18341
18710
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
|
18342
18711
|
const isSmall = size === "small";
|
|
18343
18712
|
renderHiddenInput(this.el, checkedState ? value : "", name, disabled);
|
|
18344
|
-
return (hAsync(Host, { key: '
|
|
18713
|
+
return (hAsync(Host, { key: '88d2bde84ec11e0b5e23de8b291684eae49ba48f', class: {
|
|
18345
18714
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18346
|
-
} }, hAsync("label", { key: '
|
|
18715
|
+
} }, hAsync("label", { key: '46de14be85f760c6267141eb1fe36bc710a9e251', class: {
|
|
18347
18716
|
"ic-switch-container": true,
|
|
18348
18717
|
"ic-switch-disabled": !!disabled,
|
|
18349
18718
|
"ic-switch-small": isSmall,
|
|
18350
|
-
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '
|
|
18719
|
+
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: 'c361f411bf189a5aae8c90e331bc5a07535c3b64', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
|
|
18351
18720
|
"ic-switch-label": true,
|
|
18352
18721
|
"ic-switch-label-small": isSmall,
|
|
18353
|
-
} }, hAsync("slot", { key: '
|
|
18722
|
+
} }, hAsync("slot", { key: 'd0ec1f628328f0e3938964248ac38c576ee602ce', name: "helper-text", slot: "helper-text" }))), !hideLabel && hAsync("span", { key: '60474539357c0bd43823042d06e0292f1769a879', class: "ic-switch-line-break" }), hAsync("input", { key: 'e9f17d56e514e1a545fae25631c835a714515461', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText(this.el, inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), hAsync("span", { key: 'ec6530e9f6d0a9248d6104068a8dc08c98142d44', class: "ic-switch-toggle" }, hAsync("svg", { key: '9dbe1ccb311d5d3cf836b1db84f783f3f4aa1b1c', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("line", { key: '019b9a398510349b9fbb41784aa01f77af2c482f', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), hAsync("svg", { key: '36806f4ca85eb87212f155f42293cffc9d7b2f2e', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: '5d34317d431ea7b8e10d6a379b02148b4fc69b4e', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), hAsync("slot", { key: 'bfb4599c8cfad3efa9466eefe7dc84b580a2a3d2', name: "right-adornment" }))));
|
|
18354
18723
|
}
|
|
18355
18724
|
static get delegatesFocus() { return true; }
|
|
18356
18725
|
get el() { return getElement(this); }
|
|
@@ -18625,7 +18994,6 @@ class TabContext {
|
|
|
18625
18994
|
this.selectedTab = newIndex;
|
|
18626
18995
|
}
|
|
18627
18996
|
else {
|
|
18628
|
-
/* eslint-disable no-unexpected-multiline */
|
|
18629
18997
|
this.icTabSelect.emit({
|
|
18630
18998
|
tabIndex: newIndex,
|
|
18631
18999
|
tabLabel: ((_b = (_a = this.el.querySelectorAll("ic-tab")[newIndex]) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) ||
|
|
@@ -18736,7 +19104,7 @@ class TabContext {
|
|
|
18736
19104
|
}
|
|
18737
19105
|
}
|
|
18738
19106
|
render() {
|
|
18739
|
-
return hAsync("slot", { key: '
|
|
19107
|
+
return hAsync("slot", { key: '6a473d128002201d91b16855f088cb013b3e6b09' });
|
|
18740
19108
|
}
|
|
18741
19109
|
get el() { return getElement(this); }
|
|
18742
19110
|
static get watchers() { return {
|
|
@@ -18783,11 +19151,11 @@ class TabGroup {
|
|
|
18783
19151
|
}
|
|
18784
19152
|
render() {
|
|
18785
19153
|
const { inline, theme, label, monochrome } = this;
|
|
18786
|
-
return (hAsync(Host, { key: '
|
|
19154
|
+
return (hAsync(Host, { key: '1e0f683aa804fe2dde78bce4c8d9b60c5d6a4396', role: "tablist", "aria-label": label, class: {
|
|
18787
19155
|
["ic-tab-group-inline"]: !!inline,
|
|
18788
19156
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18789
19157
|
["ic-tab-group-monochrome"]: !!monochrome,
|
|
18790
|
-
} }, hAsync("ic-horizontal-scroll", { key: '
|
|
19158
|
+
} }, hAsync("ic-horizontal-scroll", { key: 'fdca176d28c2e6619d787f3d141a78c3cf06176a', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, hAsync("div", { key: 'f3255d04eebecdd81e5badd671fee33b885df3c5', class: "tabs-container" }, hAsync("slot", { key: '9499e87ed5fd26e3936fcc7c9af353d7acd2fb36' })))));
|
|
18791
19159
|
}
|
|
18792
19160
|
static get delegatesFocus() { return true; }
|
|
18793
19161
|
static get style() { return IcTabGroupStyle0; }
|
|
@@ -18830,10 +19198,10 @@ class TabPanel {
|
|
|
18830
19198
|
}
|
|
18831
19199
|
render() {
|
|
18832
19200
|
const { active, theme } = this;
|
|
18833
|
-
return (hAsync(Host, { key: '
|
|
19201
|
+
return (hAsync(Host, { key: '7daba74123d072e8ebdac9f217451b67a734dbc4', class: {
|
|
18834
19202
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18835
19203
|
"ic-tab-panel-hidden": !active,
|
|
18836
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '
|
|
19204
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '552b91bfa6a9570da568982b693d13f5ce8911e7' }, hAsync("slot", { key: '3f2f5d3de12ab65d949bccfdc9aa5ea09a6dfa8d' }))));
|
|
18837
19205
|
}
|
|
18838
19206
|
get el() { return getElement(this); }
|
|
18839
19207
|
static get style() { return IcTabPanelStyle0; }
|
|
@@ -19404,7 +19772,7 @@ class Theme {
|
|
|
19404
19772
|
}
|
|
19405
19773
|
render() {
|
|
19406
19774
|
const { themeClass } = this;
|
|
19407
|
-
return (hAsync(Host, { key: '
|
|
19775
|
+
return (hAsync(Host, { key: '29325dda558601bd748d1712aa146bfd5c2d1240', class: themeClass }, hAsync("slot", { key: 'c352dc6c92ee972a7542c01f8fefa62c38575034' })));
|
|
19408
19776
|
}
|
|
19409
19777
|
static get watchers() { return {
|
|
19410
19778
|
"brandColor": ["watchBrandColorPropHandler"],
|
|
@@ -19597,7 +19965,8 @@ class Toast {
|
|
|
19597
19965
|
return null;
|
|
19598
19966
|
}
|
|
19599
19967
|
else {
|
|
19600
|
-
|
|
19968
|
+
this.interactiveElements[0] &&
|
|
19969
|
+
window.setTimeout(() => this.interactiveElements[0].setFocus(), 200);
|
|
19601
19970
|
return document.activeElement;
|
|
19602
19971
|
}
|
|
19603
19972
|
}
|
|
@@ -19633,20 +20002,20 @@ class Toast {
|
|
|
19633
20002
|
}
|
|
19634
20003
|
render() {
|
|
19635
20004
|
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, theme, } = this;
|
|
19636
|
-
return (hAsync(Host, { key: '
|
|
20005
|
+
return (hAsync(Host, { key: 'ff2cb4fa83ec20e9226dac7e6d65692877f6ba18', class: {
|
|
19637
20006
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19638
20007
|
["ic-toast-hidden"]: !visible,
|
|
19639
20008
|
[`ic-toast-variant-${variant}`]: variant !== undefined,
|
|
19640
|
-
}, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: '
|
|
20009
|
+
}, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: '96a06262e46b6fd4eefe8e3eb84c3b67c5a85335', class: {
|
|
19641
20010
|
["container"]: true,
|
|
19642
20011
|
[`container-${variant}`]: variant !== undefined,
|
|
19643
|
-
} }, variant && visible && (hAsync("div", { key: '
|
|
20012
|
+
} }, variant && visible && (hAsync("div", { key: '30eec9ac65d800405983859cada0514bce740b6a', class: "toast-icon-container" }, hAsync("div", { key: '741228b2fa872bc5f6c4a2e57d76b2ce1ae313da', class: {
|
|
19644
20013
|
["divider"]: true,
|
|
19645
20014
|
[`divider-${variant}`]: true,
|
|
19646
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
|
20015
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '5068418007424fb1e8074a51c3d48b44d3d4960d', class: {
|
|
19647
20016
|
["toast-content"]: true,
|
|
19648
20017
|
["no-icon"]: variant === "neutral" && !isSlotUsed(this.el, "neutral-icon"),
|
|
19649
|
-
} }, hAsync("div", { key: '
|
|
20018
|
+
} }, hAsync("div", { key: '99bb37a24570386689e6712e1b5e55cfce64fba9', class: "toast-text" }, hAsync("ic-typography", { key: '017c9e715e6f60aeb95ee28d67130541b6df4888', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? hAsync("h5", null, heading) : hAsync("p", null, heading))), message && (hAsync("ic-typography", { key: '30d276906aec46c8ac41ef3275dc3b7b5c96177b', variant: "body", class: "toast-message" }, visible && hAsync("p", { key: 'f1648dc19f63770974cc92ef9da333e000677bb9' }, message)))), isSlotUsed(this.el, "action") && (hAsync("div", { key: 'a8e396c4263d937de7c76c15aa68cf499ad5df78', class: "toast-action-container" }, hAsync("slot", { key: '22d5e4ef0f50a3b65067c27d305ade75eab441a0', name: "action" })))), !isManual ? (hAsync("ic-loading-indicator", { class: "toast-dismiss-timer", theme: "dark", monochrome: true, size: "icon", progress: this.timerProgress, description: "Dismiss timer" })) : (hAsync("ic-button", { id: "dismiss-button", innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon-tertiary", "aria-label": dismissButtonAriaLabel })))));
|
|
19650
20019
|
}
|
|
19651
20020
|
get el() { return getElement(this); }
|
|
19652
20021
|
static get watchers() { return {
|
|
@@ -19719,7 +20088,7 @@ class ToastRegion {
|
|
|
19719
20088
|
}
|
|
19720
20089
|
}
|
|
19721
20090
|
render() {
|
|
19722
|
-
return hAsync("slot", { key: '
|
|
20091
|
+
return hAsync("slot", { key: 'a8f7702ec7c396139a9fa455dd6900e4d3232f73' });
|
|
19723
20092
|
}
|
|
19724
20093
|
get el() { return getElement(this); }
|
|
19725
20094
|
static get watchers() { return {
|
|
@@ -19892,7 +20261,7 @@ class ToggleButton {
|
|
|
19892
20261
|
render() {
|
|
19893
20262
|
const { accessibleLabel, checked, disabled, fullWidth, iconPlacement, monochrome, label, loading, outline, size, theme, tooltipPlacement, variant, } = this;
|
|
19894
20263
|
const iconVariant = variant === "icon";
|
|
19895
|
-
return (hAsync(Host, { key: '
|
|
20264
|
+
return (hAsync(Host, { key: '40cd81ec38848d6b7b68707348ae0a2b7ee5a976', class: {
|
|
19896
20265
|
"ic-toggle-button-checked": checked,
|
|
19897
20266
|
"ic-toggle-button-disabled": disabled,
|
|
19898
20267
|
"ic-toggle-button-icon": iconVariant,
|
|
@@ -19902,7 +20271,7 @@ class ToggleButton {
|
|
|
19902
20271
|
"ic-toggle-button-hide-outline": !outline,
|
|
19903
20272
|
[`ic-toggle-button-${size}`]: true,
|
|
19904
20273
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19905
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '
|
|
20274
|
+
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: 'ba600a5f546ef45e668800e9f26226f6f7e4985a', "aria-pressed": `${checked}`, variant: iconVariant ? "icon-tertiary" : "secondary", onClick: this.handleClick, title: accessibleLabel, "aria-label": `${accessibleLabel ? accessibleLabel : label}, ${checked ? "ticked" : "unticked"}`, disabled: disabled, size: size, fullWidth: fullWidth, loading: loading, tooltipPlacement: tooltipPlacement }, !iconVariant && label, hAsync("slot", { key: '881f7a3d2789ee1d5ba98851380c7dd8527a5ae2' }), isSlotUsed(this.el, "icon") && (hAsync("slot", { key: '2ef62044db8f5c13f280b74cfcadcf6dcec7859e', name: "icon", slot: `${iconPlacement}-icon` })), isSlotUsed(this.el, "badge") && (hAsync("slot", { key: '6fcb625790392bc0602cd58a2ce669aa55073e57', name: "badge", slot: "badge" })))));
|
|
19906
20275
|
}
|
|
19907
20276
|
static get delegatesFocus() { return true; }
|
|
19908
20277
|
get el() { return getElement(this); }
|
|
@@ -20182,14 +20551,14 @@ class ToggleButtonGroup {
|
|
|
20182
20551
|
}
|
|
20183
20552
|
render() {
|
|
20184
20553
|
const { accessibleLabel, disabled, fullWidth, loading, monochrome, outline, theme, } = this;
|
|
20185
|
-
return (hAsync(Host, { key: '
|
|
20554
|
+
return (hAsync(Host, { key: '1238ec0b93b309a3945791eff6f847fb10b0abf5', role: "group", "aria-label": accessibleLabel, tabindex: disabled ? -1 : 0, class: {
|
|
20186
20555
|
"ic-toggle-button-group-disabled": disabled,
|
|
20187
20556
|
"ic-toggle-button-group-full-width": fullWidth,
|
|
20188
20557
|
"ic-toggle-button-group-loading": loading,
|
|
20189
20558
|
"ic-toggle-button-group-monochrome": monochrome,
|
|
20190
20559
|
"ic-toggle-button-group-hide-outline": !outline,
|
|
20191
20560
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
20192
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
|
20561
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '6dfd004b9e0c386362d8172334dfca2f1e6274fc' })));
|
|
20193
20562
|
}
|
|
20194
20563
|
get el() { return getElement(this); }
|
|
20195
20564
|
static get watchers() { return {
|
|
@@ -21004,6 +21373,7 @@ registerComponents([
|
|
|
21004
21373
|
NavigationMenu,
|
|
21005
21374
|
PageHeader,
|
|
21006
21375
|
Pagination,
|
|
21376
|
+
PaginationBar,
|
|
21007
21377
|
PaginationItem,
|
|
21008
21378
|
PopoverMenu,
|
|
21009
21379
|
RadioGroup,
|