@ukic/web-components 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-789082d4.js → helpers-fc4016d2.js} +21 -37
- package/dist/cjs/helpers-fc4016d2.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +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 +4 -4
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +56 -76
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +32 -51
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +110 -131
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +5 -5
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +9 -10
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +34 -33
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +26 -38
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
- package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +5 -5
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +9 -9
- package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
- package/dist/cjs/ic-link.cjs.entry.js +21 -3
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js +5 -5
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
- package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-pagination.cjs.entry.js +5 -5
- package/dist/cjs/ic-popover-menu.cjs.entry.js +8 -7
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
- package/dist/cjs/ic-search-bar.cjs.entry.js +112 -135
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-select.cjs.entry.js +7 -7
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +6 -6
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js +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-switch.cjs.entry.js +6 -6
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +3 -3
- package/dist/cjs/ic-text-field.cjs.entry.js +32 -29
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +2 -2
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +4 -4
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -5
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-badge/ic-badge.css +1 -1
- package/dist/collection/components/ic-badge/ic-badge.js +2 -2
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +40 -59
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +65 -86
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.css +105 -54
- package/dist/collection/components/ic-button/ic-button.js +141 -162
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.stories.js +10 -2
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +4 -4
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +71 -73
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +24 -25
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.css +9 -0
- package/dist/collection/components/ic-chip/ic-chip.js +66 -72
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.stories.js +2 -1
- package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
- package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
- package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-hero/ic-hero.js +4 -4
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
- package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
- package/dist/collection/components/ic-input-label/ic-input-label.js +4 -4
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
- package/dist/collection/components/ic-link/ic-link.js +23 -2
- package/dist/collection/components/ic-link/ic-link.js.map +1 -1
- package/dist/collection/components/ic-link/ic-link.stories.js +28 -5
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +3 -3
- package/dist/collection/components/ic-menu/ic-menu.js +3 -3
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +0 -5
- package/dist/collection/components/ic-menu-item/ic-menu-item.js +3 -3
- package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +2 -2
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +2 -2
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
- package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
- package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +0 -5
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +6 -5
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +169 -192
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.js +6 -6
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skip-link/ic-skip-link.js +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-switch/ic-switch.js +5 -5
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- package/dist/collection/components/ic-tab/ic-tab.js +2 -2
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
- package/dist/collection/components/ic-text-field/ic-text-field.js +112 -95
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +3 -3
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +2 -2
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +4 -4
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.js +2 -2
- package/dist/collection/utils/helpers.js +20 -36
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/components/helpers.js +21 -37
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-badge.js +3 -3
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +57 -78
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +32 -51
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +105 -126
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +4 -4
- package/dist/components/ic-checkbox-group.js +8 -9
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +36 -35
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +28 -40
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-data-list.js +2 -2
- package/dist/components/ic-data-row.js +2 -2
- package/dist/components/ic-dialog.js +1 -1
- package/dist/components/ic-empty-state.js +2 -2
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-hero.js +4 -4
- package/dist/components/ic-horizontal-scroll2.js +5 -5
- package/dist/components/ic-input-component-container2.js +3 -3
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-label2.js +4 -4
- package/dist/components/ic-input-validation2.js +3 -3
- package/dist/components/ic-link2.js +23 -3
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +3 -3
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu-item2.js +4 -4
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +3 -3
- package/dist/components/ic-navigation-button.js +2 -2
- package/dist/components/ic-navigation-group.js +1 -1
- package/dist/components/ic-navigation-item.js +2 -2
- package/dist/components/ic-navigation-menu2.js +4 -4
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-pagination-item2.js +1 -1
- package/dist/components/ic-pagination.js +4 -4
- package/dist/components/ic-popover-menu.js +7 -6
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +4 -4
- package/dist/components/ic-radio-option.js +4 -4
- package/dist/components/ic-search-bar.js +112 -135
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select.js +7 -7
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +5 -5
- 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-switch.js +5 -5
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +2 -2
- package/dist/components/ic-text-field.js +32 -29
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +3 -3
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +2 -2
- package/dist/components/ic-tooltip2.js +2 -2
- package/dist/components/ic-top-navigation.js +4 -4
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +2 -2
- package/dist/core/core.css +159 -109
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-4245a976.entry.js → p-00bc353b.entry.js} +2 -2
- package/dist/core/{p-ef09b450.entry.js → p-0a436c47.entry.js} +2 -2
- package/dist/core/{p-fbde763c.entry.js → p-10e1e227.entry.js} +2 -2
- package/dist/core/{p-88924aef.entry.js → p-1440847f.entry.js} +2 -2
- package/dist/core/{p-bbe5596b.entry.js → p-15b7adaf.entry.js} +2 -2
- package/dist/core/p-16f55230.entry.js +2 -0
- package/dist/core/p-16f55230.entry.js.map +1 -0
- package/dist/core/{p-45432bf5.entry.js → p-1838d1e9.entry.js} +2 -2
- package/dist/core/{p-3eb7ef1d.entry.js → p-18714198.entry.js} +2 -2
- package/dist/core/{p-3b5d3e24.entry.js → p-1b2690b4.entry.js} +2 -2
- package/dist/core/p-1b2690b4.entry.js.map +1 -0
- package/dist/core/{p-b3ac38c5.entry.js → p-1be17f22.entry.js} +2 -2
- package/dist/core/p-206c2a26.entry.js +2 -0
- package/dist/core/p-206c2a26.entry.js.map +1 -0
- package/dist/core/{p-b3d6d5be.entry.js → p-267a19d4.entry.js} +2 -2
- package/dist/core/{p-81a12e36.entry.js → p-26dfc4db.entry.js} +2 -2
- package/dist/core/{p-81a12e36.entry.js.map → p-26dfc4db.entry.js.map} +1 -1
- package/dist/core/p-2c17cc67.entry.js +2 -0
- package/dist/core/p-2c17cc67.entry.js.map +1 -0
- package/dist/core/{p-f3c72ffb.entry.js → p-2c371198.entry.js} +2 -2
- package/dist/core/{p-63fe83ad.entry.js → p-2e44cf53.entry.js} +2 -2
- package/dist/core/{p-63fe83ad.entry.js.map → p-2e44cf53.entry.js.map} +1 -1
- package/dist/core/{p-70700c7a.entry.js → p-42a7d0b6.entry.js} +2 -2
- package/dist/core/p-513628ef.entry.js +2 -0
- package/dist/core/p-513628ef.entry.js.map +1 -0
- package/dist/core/{p-33c86ba6.entry.js → p-628c32b8.entry.js} +2 -2
- package/dist/core/{p-0631c3ab.entry.js → p-70a6cff1.entry.js} +2 -2
- package/dist/core/{p-f815f8c9.entry.js → p-72c117b6.entry.js} +2 -2
- package/dist/core/p-730d2f6e.entry.js +2 -0
- package/dist/core/p-730d2f6e.entry.js.map +1 -0
- package/dist/core/{p-7dfe0284.entry.js → p-788c96ac.entry.js} +2 -2
- package/dist/core/{p-fe833509.entry.js → p-7fb79e87.entry.js} +2 -2
- package/dist/core/p-8242c24f.js +2 -0
- package/dist/core/p-8242c24f.js.map +1 -0
- package/dist/core/{p-6de6b6b7.entry.js → p-83764268.entry.js} +2 -2
- package/dist/core/{p-4b601e06.entry.js → p-8b5022bc.entry.js} +2 -2
- package/dist/core/{p-1e4cdd2d.entry.js → p-8c4f7c63.entry.js} +2 -2
- package/dist/core/{p-5e18b899.entry.js → p-910f5f14.entry.js} +2 -2
- package/dist/core/{p-7afc71d0.entry.js → p-9479f272.entry.js} +2 -2
- package/dist/core/{p-acebb05c.entry.js → p-9c47521d.entry.js} +2 -2
- package/dist/core/{p-40f2f58e.entry.js → p-9ca147f3.entry.js} +2 -2
- package/dist/core/{p-e56d0db2.entry.js → p-9cfc2bac.entry.js} +2 -2
- package/dist/core/{p-abaea607.entry.js → p-a0161990.entry.js} +2 -2
- package/dist/core/p-a17499ff.entry.js +2 -0
- package/dist/core/p-a17499ff.entry.js.map +1 -0
- package/dist/core/{p-c2ca6274.entry.js → p-a4f9b5bf.entry.js} +2 -2
- package/dist/core/{p-005cd8a8.entry.js → p-aad10013.entry.js} +2 -2
- package/dist/core/{p-959a9cdf.entry.js → p-b371a498.entry.js} +2 -2
- package/dist/core/{p-959a9cdf.entry.js.map → p-b371a498.entry.js.map} +1 -1
- package/dist/core/p-b7568944.entry.js +2 -0
- package/dist/core/p-b7568944.entry.js.map +1 -0
- package/dist/core/{p-3675c4b4.entry.js → p-b8da5c07.entry.js} +2 -2
- package/dist/core/{p-de43d375.entry.js → p-b9459ba2.entry.js} +2 -2
- package/dist/core/p-ba600947.entry.js +2 -0
- package/dist/core/p-ba600947.entry.js.map +1 -0
- package/dist/core/{p-f34eee68.entry.js → p-bc2ca778.entry.js} +2 -2
- package/dist/core/{p-7c0914e7.entry.js → p-bdc72446.entry.js} +2 -2
- package/dist/core/{p-a9c96e3e.entry.js → p-c45023b7.entry.js} +2 -2
- package/dist/core/p-c4663e1a.entry.js +2 -0
- package/dist/core/p-c4663e1a.entry.js.map +1 -0
- package/dist/core/{p-5206a978.entry.js → p-c8cf1ad5.entry.js} +2 -2
- package/dist/core/p-c9a4fe37.entry.js +2 -0
- package/dist/core/p-c9a4fe37.entry.js.map +1 -0
- package/dist/core/p-cdf56a5d.entry.js +2 -0
- package/dist/core/p-cdf56a5d.entry.js.map +1 -0
- package/dist/core/{p-23d059ff.entry.js → p-d45d66c0.entry.js} +2 -2
- package/dist/core/{p-9ea9a4ce.entry.js → p-d6c50565.entry.js} +2 -2
- package/dist/core/{p-950db960.entry.js → p-d975bf2f.entry.js} +2 -2
- package/dist/core/{p-950db960.entry.js.map → p-d975bf2f.entry.js.map} +1 -1
- package/dist/core/{p-3132270d.entry.js → p-dede4974.entry.js} +2 -2
- package/dist/core/{p-23ed8b99.entry.js → p-df88ff5b.entry.js} +2 -2
- package/dist/core/{p-c04f36c5.entry.js → p-e86a6d2d.entry.js} +2 -2
- package/dist/core/{p-7a0d238b.entry.js → p-ebab7a9e.entry.js} +2 -2
- package/dist/core/{p-517d7afb.entry.js → p-eeab3a2e.entry.js} +2 -2
- package/dist/core/{p-44e4e8c1.entry.js → p-ef36181d.entry.js} +2 -2
- package/dist/core/{p-fc50d582.entry.js → p-f0388d68.entry.js} +2 -2
- package/dist/core/{p-e2f893f0.entry.js → p-fbf57f0a.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-46a2d1fd.js → helpers-f2ffaa7c.js} +22 -38
- package/dist/esm/helpers-f2ffaa7c.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-alert.entry.js +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +4 -4
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +56 -76
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +32 -51
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +111 -132
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +5 -5
- package/dist/esm/ic-checkbox-group.entry.js +9 -10
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +34 -33
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +26 -38
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-row.entry.js +3 -3
- package/dist/esm/ic-dialog.entry.js +2 -2
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-empty-state.entry.js +3 -3
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +3 -3
- package/dist/esm/ic-footer.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js +5 -5
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
- package/dist/esm/ic-input-component-container_3.entry.js +9 -9
- package/dist/esm/ic-input-label_2.entry.js +8 -8
- package/dist/esm/ic-link.entry.js +21 -3
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +2 -2
- package/dist/esm/ic-menu-item.entry.js +5 -5
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +3 -3
- package/dist/esm/ic-navigation-group.entry.js +2 -2
- package/dist/esm/ic-navigation-item.entry.js +3 -3
- package/dist/esm/ic-navigation-menu.entry.js +5 -5
- package/dist/esm/ic-page-header.entry.js +7 -7
- package/dist/esm/ic-pagination-item.entry.js +2 -2
- package/dist/esm/ic-pagination.entry.js +5 -5
- package/dist/esm/ic-popover-menu.entry.js +8 -7
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +5 -5
- package/dist/esm/ic-radio-option.entry.js +5 -5
- package/dist/esm/ic-search-bar.entry.js +112 -135
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-select.entry.js +7 -7
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +6 -6
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js +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-switch.entry.js +6 -6
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -3
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab.entry.js +3 -3
- package/dist/esm/ic-text-field.entry.js +32 -29
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +4 -4
- package/dist/esm/ic-toggle-button-group.entry.js +3 -3
- package/dist/esm/ic-toggle-button.entry.js +3 -3
- package/dist/esm/ic-top-navigation.entry.js +5 -5
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +4 -6
- package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +9 -15
- package/dist/types/components/ic-button/ic-button.d.ts +29 -22
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +14 -13
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +8 -9
- package/dist/types/components/ic-chip/ic-chip.d.ts +13 -15
- package/dist/types/components/ic-link/ic-link.d.ts +2 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +38 -40
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +37 -32
- package/dist/types/components.d.ts +127 -122
- package/dist/types/utils/helpers.d.ts +8 -8
- package/hydrate/index.js +590 -680
- package/hydrate/index.mjs +590 -680
- package/package.json +2 -2
- package/vscode-data.json +167 -3
- package/dist/cjs/helpers-789082d4.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js +0 -2
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js.map +0 -1
- package/dist/core/p-0a8b3967.entry.js +0 -2
- package/dist/core/p-0a8b3967.entry.js.map +0 -1
- package/dist/core/p-0b4350df.entry.js +0 -2
- package/dist/core/p-0b4350df.entry.js.map +0 -1
- package/dist/core/p-0e618fc5.entry.js +0 -2
- package/dist/core/p-0e618fc5.entry.js.map +0 -1
- package/dist/core/p-18ecba80.entry.js +0 -2
- package/dist/core/p-18ecba80.entry.js.map +0 -1
- package/dist/core/p-281ce313.js +0 -2
- package/dist/core/p-281ce313.js.map +0 -1
- package/dist/core/p-30abe545.entry.js +0 -2
- package/dist/core/p-30abe545.entry.js.map +0 -1
- package/dist/core/p-3b5d3e24.entry.js.map +0 -1
- package/dist/core/p-5d4b0480.entry.js +0 -2
- package/dist/core/p-5d4b0480.entry.js.map +0 -1
- package/dist/core/p-6337fe1f.entry.js +0 -2
- package/dist/core/p-6337fe1f.entry.js.map +0 -1
- package/dist/core/p-8ba129fc.entry.js +0 -2
- package/dist/core/p-8ba129fc.entry.js.map +0 -1
- package/dist/core/p-ac7db165.entry.js +0 -2
- package/dist/core/p-ac7db165.entry.js.map +0 -1
- package/dist/core/p-c62318a8.entry.js +0 -2
- package/dist/core/p-c62318a8.entry.js.map +0 -1
- package/dist/core/p-e586ae7b.entry.js +0 -2
- package/dist/core/p-e586ae7b.entry.js.map +0 -1
- package/dist/esm/helpers-46a2d1fd.js.map +0 -1
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.types.d.ts +0 -1
- /package/dist/core/{p-4245a976.entry.js.map → p-00bc353b.entry.js.map} +0 -0
- /package/dist/core/{p-ef09b450.entry.js.map → p-0a436c47.entry.js.map} +0 -0
- /package/dist/core/{p-fbde763c.entry.js.map → p-10e1e227.entry.js.map} +0 -0
- /package/dist/core/{p-88924aef.entry.js.map → p-1440847f.entry.js.map} +0 -0
- /package/dist/core/{p-bbe5596b.entry.js.map → p-15b7adaf.entry.js.map} +0 -0
- /package/dist/core/{p-45432bf5.entry.js.map → p-1838d1e9.entry.js.map} +0 -0
- /package/dist/core/{p-3eb7ef1d.entry.js.map → p-18714198.entry.js.map} +0 -0
- /package/dist/core/{p-b3ac38c5.entry.js.map → p-1be17f22.entry.js.map} +0 -0
- /package/dist/core/{p-b3d6d5be.entry.js.map → p-267a19d4.entry.js.map} +0 -0
- /package/dist/core/{p-f3c72ffb.entry.js.map → p-2c371198.entry.js.map} +0 -0
- /package/dist/core/{p-70700c7a.entry.js.map → p-42a7d0b6.entry.js.map} +0 -0
- /package/dist/core/{p-33c86ba6.entry.js.map → p-628c32b8.entry.js.map} +0 -0
- /package/dist/core/{p-0631c3ab.entry.js.map → p-70a6cff1.entry.js.map} +0 -0
- /package/dist/core/{p-f815f8c9.entry.js.map → p-72c117b6.entry.js.map} +0 -0
- /package/dist/core/{p-7dfe0284.entry.js.map → p-788c96ac.entry.js.map} +0 -0
- /package/dist/core/{p-fe833509.entry.js.map → p-7fb79e87.entry.js.map} +0 -0
- /package/dist/core/{p-6de6b6b7.entry.js.map → p-83764268.entry.js.map} +0 -0
- /package/dist/core/{p-4b601e06.entry.js.map → p-8b5022bc.entry.js.map} +0 -0
- /package/dist/core/{p-1e4cdd2d.entry.js.map → p-8c4f7c63.entry.js.map} +0 -0
- /package/dist/core/{p-5e18b899.entry.js.map → p-910f5f14.entry.js.map} +0 -0
- /package/dist/core/{p-7afc71d0.entry.js.map → p-9479f272.entry.js.map} +0 -0
- /package/dist/core/{p-acebb05c.entry.js.map → p-9c47521d.entry.js.map} +0 -0
- /package/dist/core/{p-40f2f58e.entry.js.map → p-9ca147f3.entry.js.map} +0 -0
- /package/dist/core/{p-e56d0db2.entry.js.map → p-9cfc2bac.entry.js.map} +0 -0
- /package/dist/core/{p-abaea607.entry.js.map → p-a0161990.entry.js.map} +0 -0
- /package/dist/core/{p-c2ca6274.entry.js.map → p-a4f9b5bf.entry.js.map} +0 -0
- /package/dist/core/{p-005cd8a8.entry.js.map → p-aad10013.entry.js.map} +0 -0
- /package/dist/core/{p-3675c4b4.entry.js.map → p-b8da5c07.entry.js.map} +0 -0
- /package/dist/core/{p-de43d375.entry.js.map → p-b9459ba2.entry.js.map} +0 -0
- /package/dist/core/{p-f34eee68.entry.js.map → p-bc2ca778.entry.js.map} +0 -0
- /package/dist/core/{p-7c0914e7.entry.js.map → p-bdc72446.entry.js.map} +0 -0
- /package/dist/core/{p-a9c96e3e.entry.js.map → p-c45023b7.entry.js.map} +0 -0
- /package/dist/core/{p-5206a978.entry.js.map → p-c8cf1ad5.entry.js.map} +0 -0
- /package/dist/core/{p-23d059ff.entry.js.map → p-d45d66c0.entry.js.map} +0 -0
- /package/dist/core/{p-9ea9a4ce.entry.js.map → p-d6c50565.entry.js.map} +0 -0
- /package/dist/core/{p-3132270d.entry.js.map → p-dede4974.entry.js.map} +0 -0
- /package/dist/core/{p-23ed8b99.entry.js.map → p-df88ff5b.entry.js.map} +0 -0
- /package/dist/core/{p-c04f36c5.entry.js.map → p-e86a6d2d.entry.js.map} +0 -0
- /package/dist/core/{p-7a0d238b.entry.js.map → p-ebab7a9e.entry.js.map} +0 -0
- /package/dist/core/{p-517d7afb.entry.js.map → p-eeab3a2e.entry.js.map} +0 -0
- /package/dist/core/{p-44e4e8c1.entry.js.map → p-ef36181d.entry.js.map} +0 -0
- /package/dist/core/{p-fc50d582.entry.js.map → p-f0388d68.entry.js.map} +0 -0
- /package/dist/core/{p-e2f893f0.entry.js.map → p-fbf57f0a.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
@@ -3269,7 +3269,6 @@ const IGNORED_KEYBOARD_CHARACTERS = [
|
|
3269
3269
|
const DARK_MODE_THRESHOLD = 133.3505;
|
3270
3270
|
const ANYWHERE_SEARCH_POSITION = "anywhere";
|
3271
3271
|
const icInput = "ic-input";
|
3272
|
-
const linkIcInput = "input.ic-input";
|
3273
3272
|
/**
|
3274
3273
|
* Used to inherit global attributes set on the host. Called in componentWillLoad and assigned
|
3275
3274
|
* to a variable that is later used in the render function.
|
@@ -3280,11 +3279,9 @@ const linkIcInput = "input.ic-input";
|
|
3280
3279
|
const inheritAttributes = (element, attributes = []) => {
|
3281
3280
|
const attributeObject = {};
|
3282
3281
|
attributes.forEach((attr) => {
|
3283
|
-
|
3284
|
-
|
3285
|
-
|
3286
|
-
attributeObject[attr] = value;
|
3287
|
-
}
|
3282
|
+
const value = element.getAttribute(attr);
|
3283
|
+
if (value !== null) {
|
3284
|
+
attributeObject[attr] = value;
|
3288
3285
|
element.removeAttribute(attr);
|
3289
3286
|
}
|
3290
3287
|
});
|
@@ -3311,34 +3308,27 @@ const debounce$1 = (func, wait = 0) => {
|
|
3311
3308
|
* allows it to be picked up inside of forms. It should contain the same
|
3312
3309
|
* values as the host element.
|
3313
3310
|
*
|
3314
|
-
* @param always Add a hidden input even if the container does not use Shadow
|
3315
3311
|
* @param container The element where the input will be added
|
3316
|
-
* @param name The name of the input
|
3317
3312
|
* @param value The value of the input
|
3313
|
+
* @param name The name of the input
|
3318
3314
|
* @param disabled If true, the input is disabled
|
3315
|
+
* @param always Add a hidden input even if the container does not use Shadow
|
3319
3316
|
*/
|
3320
|
-
const renderHiddenInput = (
|
3321
|
-
if (name
|
3322
|
-
|
3323
|
-
|
3324
|
-
const filtered = inputEls.filter((el) => container === el.parentElement);
|
3325
|
-
let input = filtered[0];
|
3326
|
-
if (input === null || input === undefined) {
|
3317
|
+
const renderHiddenInput = (container, value, name, disabled = false, always = true) => {
|
3318
|
+
if (name && (always || hasShadowDom(container))) {
|
3319
|
+
let input = getHiddenInputElement(container);
|
3320
|
+
if (!input) {
|
3327
3321
|
input = container.ownerDocument.createElement("input");
|
3328
3322
|
input.type = "hidden";
|
3329
3323
|
input.classList.add(icInput);
|
3330
3324
|
container.appendChild(input);
|
3331
3325
|
}
|
3332
|
-
input.disabled =
|
3326
|
+
input.disabled = disabled;
|
3333
3327
|
input.name = name;
|
3334
|
-
|
3335
|
-
input.value = value ? value.toISOString() : "";
|
3336
|
-
}
|
3337
|
-
else {
|
3338
|
-
input.value = value || "";
|
3339
|
-
}
|
3328
|
+
input.value = value instanceof Date ? value.toISOString() : value || "";
|
3340
3329
|
}
|
3341
3330
|
};
|
3331
|
+
const getHiddenInputElement = (container) => Array.from(container.querySelectorAll(`input.${icInput}`)).filter((el) => container === el.parentElement)[0];
|
3342
3332
|
/**
|
3343
3333
|
* This method is used to add a hidden file input to a host element that contains
|
3344
3334
|
* a Shadow DOM. It does not add the input inside of the Shadow root which
|
@@ -3348,17 +3338,14 @@ const renderHiddenInput = (always, container, name, value, disabled) => {
|
|
3348
3338
|
* @param event: The event that is emitted once a file is selected.
|
3349
3339
|
* @param container The element where the input will be added
|
3350
3340
|
* @param multiple If true, multiple files can be selected
|
3351
|
-
* @param name The name of the input
|
3352
|
-
* @param value The value of the input
|
3353
3341
|
* @param disabled If true, the input is disabled
|
3354
3342
|
* @param accept A string of the accepted files
|
3343
|
+
* @param name The name of the input
|
3344
|
+
* @param value The value of the input
|
3355
3345
|
*/
|
3356
|
-
const renderFileHiddenInput = (event, container, multiple,
|
3346
|
+
const renderFileHiddenInput = (event, container, multiple, disabled, accept, name, value) => {
|
3357
3347
|
if (name !== undefined && hasShadowDom(container)) {
|
3358
|
-
|
3359
|
-
const inputEls = Array.from(inputs);
|
3360
|
-
const filtered = inputEls.filter((el) => container === el.parentElement);
|
3361
|
-
let input = filtered[0];
|
3348
|
+
let input = getHiddenInputElement(container);
|
3362
3349
|
if (input === null || input === undefined) {
|
3363
3350
|
input = container.ownerDocument.createElement("input");
|
3364
3351
|
input.classList.add(icInput);
|
@@ -3380,13 +3367,10 @@ const renderFileHiddenInput = (event, container, multiple, name, value, disabled
|
|
3380
3367
|
}
|
3381
3368
|
};
|
3382
3369
|
const removeHiddenInput = (container) => {
|
3383
|
-
|
3384
|
-
|
3385
|
-
const filtered = inputEls.filter((el) => container === el.parentElement);
|
3386
|
-
const input = filtered[0];
|
3387
|
-
input === null || input === void 0 ? void 0 : input.remove();
|
3370
|
+
var _a;
|
3371
|
+
(_a = getHiddenInputElement(container)) === null || _a === void 0 ? void 0 : _a.remove();
|
3388
3372
|
};
|
3389
|
-
const hasShadowDom = (el) => el
|
3373
|
+
const hasShadowDom = (el) => !!el && !!el.shadowRoot && !!el.attachShadow;
|
3390
3374
|
const getInputHelperTextID = (id) => id + "-helper-text";
|
3391
3375
|
const getInputValidationTextID = (id) => id + "-validation-text";
|
3392
3376
|
const getInputDescribedByText = (inputId, helperText, validationText) => `${helperText ? getInputHelperTextID(inputId) : ""} ${validationText ? getInputValidationTextID(inputId) : ""}`.trim();
|
@@ -3448,7 +3432,7 @@ const handleHiddenFormButtonClick = (form, button) => {
|
|
3448
3432
|
hiddenFormButton.click();
|
3449
3433
|
hiddenFormButton.remove();
|
3450
3434
|
};
|
3451
|
-
const isEmptyString = (value) => value
|
3435
|
+
const isEmptyString = (value) => !value || value.trim().length === 0;
|
3452
3436
|
// A helper function that checks if a prop has been defined
|
3453
3437
|
const isPropDefined = (prop) => prop !== undefined ? prop : undefined;
|
3454
3438
|
/**
|
@@ -4341,7 +4325,7 @@ class BackToTop {
|
|
4341
4325
|
}; }
|
4342
4326
|
}
|
4343
4327
|
|
4344
|
-
const icBadgeCss = "@media (prefers-reduced-motion: no-preference){:host(.ic-badge-show){animation:expand var(--ic-transition-duration-slow)}:host(.ic-badge-hide){animation:shrink var(--ic-transition-duration-slow)}}:host{display:flex;height:var(--ic-space-md);min-width:var(--ic-space-md);width:-moz-fit-content;width:fit-content;border-radius:calc(2 * var(--ic-space-xxl));position:absolute}:host ic-typography{--ic-typography-color:var(--ic-badge-text)}:host(.ic-badge-neutral){background-color:var(--ic-badge-dark) !important}:host(.ic-badge-light) ic-typography{--ic-typography-color:var(--ic-badge-text-monochrome)}:host(.ic-badge-light) ::slotted(*){fill:var(--ic-badge-icon-monochrome)}:host(.ic-badge-info){background-color:var(--ic-badge-info) !important}:host(.ic-badge-light){background-color:var(--ic-badge-light) !important}:host(.ic-badge-warning){background-color:var(--ic-badge-warning) !important}:host(.ic-badge-warning) ic-typography{--ic-typography-color:var(--ic-badge-warning-text)}:host(.ic-badge-warning) ::slotted(*){fill:var(--ic-badge-warning-icon)}:host(.ic-badge-error){background-color:var(--ic-badge-error) !important}:host(.ic-badge-success){background-color:var(--ic-badge-success) !important}:host(.ic-badge-small){height:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host(.ic-badge-large){height:calc(var(--ic-space-md) + var(--ic-space-xxs));min-width:calc(var(--ic-space-md) + var(--ic-space-xxs))}:host(.ic-badge-dot.ic-badge-medium){height:var(--ic-space-xs);width:var(--ic-space-xs);min-width:var(--ic-space-xs)}:host(.ic-badge-dot.ic-badge-small){height:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));min-width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs))}:host(.ic-badge-dot.ic-badge-large){height:var(--ic-space-sm);width:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host ::slotted(*){fill:var(--ic-badge-icon)}:host(.ic-badge-foreground-dark) ::slotted(*){fill:var(--ic-color-text-primary-light)}:host(.ic-badge-foreground-light) ::slotted(*){fill:white}:host(.ic-badge-foreground-dark) ic-typography{--ic-typography-color:var(--ic-color-text-primary-light)}:host(.ic-badge-foreground-light) ic-typography{--ic-typography-color:var(--ic-color-primary-
|
4328
|
+
const icBadgeCss = "@media (prefers-reduced-motion: no-preference){:host(.ic-badge-show){animation:expand var(--ic-transition-duration-slow)}:host(.ic-badge-hide){animation:shrink var(--ic-transition-duration-slow)}}:host{display:flex;height:var(--ic-space-md);min-width:var(--ic-space-md);width:-moz-fit-content;width:fit-content;border-radius:calc(2 * var(--ic-space-xxl));position:absolute}:host ic-typography{--ic-typography-color:var(--ic-badge-text)}:host(.ic-badge-neutral){background-color:var(--ic-badge-dark) !important}:host(.ic-badge-light) ic-typography{--ic-typography-color:var(--ic-badge-text-monochrome)}:host(.ic-badge-light) ::slotted(*){fill:var(--ic-badge-icon-monochrome)}:host(.ic-badge-info){background-color:var(--ic-badge-info) !important}:host(.ic-badge-light){background-color:var(--ic-badge-light) !important}:host(.ic-badge-warning){background-color:var(--ic-badge-warning) !important}:host(.ic-badge-warning) ic-typography{--ic-typography-color:var(--ic-badge-warning-text)}:host(.ic-badge-warning) ::slotted(*){fill:var(--ic-badge-warning-icon)}:host(.ic-badge-error){background-color:var(--ic-badge-error) !important}:host(.ic-badge-success){background-color:var(--ic-badge-success) !important}:host(.ic-badge-small){height:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host(.ic-badge-large){height:calc(var(--ic-space-md) + var(--ic-space-xxs));min-width:calc(var(--ic-space-md) + var(--ic-space-xxs))}:host(.ic-badge-dot.ic-badge-medium){height:var(--ic-space-xs);width:var(--ic-space-xs);min-width:var(--ic-space-xs)}:host(.ic-badge-dot.ic-badge-small){height:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));min-width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs))}:host(.ic-badge-dot.ic-badge-large){height:var(--ic-space-sm);width:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host ::slotted(*){fill:var(--ic-badge-icon)}:host(.ic-badge-foreground-dark) ::slotted(*){fill:var(--ic-color-text-primary-light)}:host(.ic-badge-foreground-light) ::slotted(*){fill:white}:host(.ic-badge-foreground-dark) ic-typography{--ic-typography-color:var(--ic-color-text-primary-light)}:host(.ic-badge-foreground-light) ic-typography{--ic-typography-color:var(--ic-color-text-primary-dark)}:host(.ic-badge-text) ic-typography{align-self:center;padding:0 calc((var(--ic-space-xs) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px)}:host(.ic-badge-text.ic-badge-small) ic-typography{padding:0 0.2132rem}:host(.ic-badge-text.ic-badge-large) ic-typography{padding:0 calc((var(--ic-space-sm) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px)}:host(.ic-badge-icon) ::slotted(svg){width:var(--ic-space-sm);height:var(--ic-space-sm);padding:var(--ic-space-xxxs)}:host(.ic-badge-icon.ic-badge-small) ::slotted(svg){width:var(--ic-space-xs);height:var(--ic-space-xs)}:host(.ic-badge-icon.ic-badge-large) ::slotted(svg){width:calc(var(--ic-space-sm) + var(--ic-space-xxxs));height:calc(var(--ic-space-sm) + var(--ic-space-xxxs));padding:calc(var(--ic-space-xxxs) + var(--ic-space-1px))}:host(.ic-badge-far){top:calc(-1 * var(--ic-space-xs));right:calc(-1 * var(--ic-space-xs))}:host(.ic-badge-far.ic-badge-small),:host(.ic-badge-dot.ic-badge-far.ic-badge-large){top:calc(-1 * var(--ic-space-xxs));right:calc(-1 * var(--ic-space-xxs))}:host(.ic-badge-dot.ic-badge-far),:host(.ic-badge-dot.ic-badge-far.ic-badge-small){top:calc(-1 * var(--ic-space-xxxs));right:calc(-1 * var(--ic-space-xxxs))}:host(.ic-badge-near){top:calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)));right:calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)))}:host(.ic-badge-dot.ic-badge-near){top:calc(-1 * var(--ic-space-1px));right:calc(-1 * var(--ic-space-1px))}:host(.ic-badge-inline){position:static}:host(.ic-badge-hide){visibility:hidden !important;transition:visibility var(--ic-transition-duration-slow)}.sr-only{position:absolute;left:-9999px}.sr-only:dir(rtl){right:-9999px}@keyframes expand{from{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes shrink{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}";
|
4345
4329
|
var IcBadgeStyle0 = icBadgeCss;
|
4346
4330
|
|
4347
4331
|
const TOP_NAVIGATION = "IC-TOP-NAVIGATION";
|
@@ -4490,7 +4474,7 @@ class Badge {
|
|
4490
4474
|
}
|
4491
4475
|
render() {
|
4492
4476
|
const { ariaLabel, el, foregroundColour, getLabel, position, size, label, type, variant, visible, theme, } = this;
|
4493
|
-
return (hAsync(Host, { key: '
|
4477
|
+
return (hAsync(Host, { key: '720f5c35c4d16cc484ea53a0f277befdbb087883', class: {
|
4494
4478
|
[`ic-badge-${position}`]: true,
|
4495
4479
|
[`ic-badge-${size}`]: true,
|
4496
4480
|
[`ic-badge-${variant}`]: true,
|
@@ -4498,7 +4482,7 @@ class Badge {
|
|
4498
4482
|
[`ic-badge-foreground-${foregroundColour}`]: foregroundColour !== null && variant === "custom",
|
4499
4483
|
[`${visible ? "ic-badge-show" : "ic-badge-hide"}`]: true,
|
4500
4484
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
4501
|
-
}, id: el.id || null, "aria-label": ariaLabel, role: "status" }, type === "icon" && hAsync("slot", { key: '
|
4485
|
+
}, id: el.id || null, "aria-label": ariaLabel, role: "status" }, type === "icon" && hAsync("slot", { key: '611a931cbdbfd72a7031adaec19d9cd5f83b097a', name: "badge-icon" }), type === "text" && label && (hAsync("ic-typography", { key: '57620b02829df5547546474ad337f3cc23bb19c4', variant: size === "small" ? "badge-small" : "badge" }, getLabel())), type === "dot" && hAsync("span", { key: '6f583cc04572a1818afc11e43cb5b41f95afe630', class: "sr-only" }, "badge")));
|
4502
4486
|
}
|
4503
4487
|
static get delegatesFocus() { return true; }
|
4504
4488
|
get el() { return getElement(this); }
|
@@ -4545,6 +4529,9 @@ class Breadcrumb {
|
|
4545
4529
|
constructor(hostRef) {
|
4546
4530
|
registerInstance(this, hostRef);
|
4547
4531
|
this.HREF_ATTR = "href";
|
4532
|
+
this.linkSlotContent = null;
|
4533
|
+
this.slottedLinkEl = null;
|
4534
|
+
this.slottedLinkHref = null;
|
4548
4535
|
/**
|
4549
4536
|
* If `true`, aria-current will be set on the breadcrumb.
|
4550
4537
|
*/
|
@@ -4563,54 +4550,27 @@ class Breadcrumb {
|
|
4563
4550
|
this.theme = "inherit";
|
4564
4551
|
// Prevent focus on breadcrumb if current page and contains slotted link
|
4565
4552
|
this.updatedSlottedLinkFocus = () => {
|
4553
|
+
var _a, _b;
|
4566
4554
|
// Sets tabindex on wrong element in unit test snapshots
|
4567
4555
|
// - related to known Jest issue: https://github.com/ionic-team/stencil/issues/2830
|
4568
4556
|
if (this.linkSlotContent) {
|
4569
4557
|
this.linkSlotContent.tabIndex = this.current ? -1 : 0; // Prevent focus
|
4570
4558
|
}
|
4571
|
-
if (this.
|
4572
|
-
|
4573
|
-
|
4574
|
-
|
4575
|
-
|
4576
|
-
this.slottedLinkHref &&
|
4577
|
-
this.slottedLinkEl.setAttribute(this.HREF_ATTR, this.slottedLinkHref);
|
4578
|
-
}
|
4559
|
+
if (this.current) {
|
4560
|
+
(_a = this.slottedLinkEl) === null || _a === void 0 ? void 0 : _a.removeAttribute(this.HREF_ATTR); // Prevent screen reader announcing breadcrumb as a link
|
4561
|
+
}
|
4562
|
+
else if (this.slottedLinkHref) {
|
4563
|
+
(_b = this.slottedLinkEl) === null || _b === void 0 ? void 0 : _b.setAttribute(this.HREF_ATTR, this.slottedLinkHref);
|
4579
4564
|
}
|
4580
4565
|
};
|
4581
4566
|
this.getSlottedLinkEl = () => {
|
4582
|
-
|
4583
|
-
|
4584
|
-
|
4585
|
-
|
4586
|
-
|
4587
|
-
return elWithHref;
|
4588
|
-
}
|
4589
|
-
return null;
|
4567
|
+
if (!this.linkSlotContent)
|
4568
|
+
return null;
|
4569
|
+
return this.linkSlotContent.hasAttribute(this.HREF_ATTR)
|
4570
|
+
? this.linkSlotContent
|
4571
|
+
: this.linkSlotContent.querySelector("[href]");
|
4590
4572
|
};
|
4591
4573
|
this.renderBackIcon = () => (hAsync("div", { class: "back-icon", innerHTML: backIcon }));
|
4592
|
-
this.renderDefaultBreadcrumb = (current, pageTitle, describedById, href) => {
|
4593
|
-
const hasPageTitle = pageTitle !== null && isPropDefined(pageTitle) && pageTitle !== "";
|
4594
|
-
if (current && hasPageTitle) {
|
4595
|
-
return (hAsync("span", { class: {
|
4596
|
-
"current-page-container": current,
|
4597
|
-
} }, isSlotUsed(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle));
|
4598
|
-
}
|
4599
|
-
return (hAsync("ic-link", { theme: this.theme, monochrome: this.monochrome, href: href, class: "breadcrumb-link", "aria-describedby": this.showBackIcon && describedById && describedById }, this.showBackIcon && this.renderBackIcon(), isSlotUsed(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle));
|
4600
|
-
};
|
4601
|
-
this.setSlottedCurrentPageClass = () => {
|
4602
|
-
const icLink = this.el.querySelector("ic-link");
|
4603
|
-
const currentPage = "current-page";
|
4604
|
-
if (icLink) {
|
4605
|
-
icLink.classList.remove(currentPage);
|
4606
|
-
if (this.current) {
|
4607
|
-
const hasCurrentPageClass = icLink.classList.contains(currentPage);
|
4608
|
-
if (!hasCurrentPageClass) {
|
4609
|
-
icLink.classList.add("breadcrumb-link", currentPage);
|
4610
|
-
}
|
4611
|
-
}
|
4612
|
-
}
|
4613
|
-
};
|
4614
4574
|
}
|
4615
4575
|
watchCurrentHandler() {
|
4616
4576
|
this.updatedSlottedLinkFocus();
|
@@ -4623,14 +4583,21 @@ class Breadcrumb {
|
|
4623
4583
|
const slotEls = getSlotElements(slottedLinkWrapper);
|
4624
4584
|
if (slotEls) {
|
4625
4585
|
this.linkSlotContent = slotEls[0];
|
4586
|
+
this.slottedLinkEl = this.getSlottedLinkEl();
|
4587
|
+
this.slottedLinkHref = ((_b = this.slottedLinkEl) === null || _b === void 0 ? void 0 : _b.getAttribute("href")) || null;
|
4626
4588
|
}
|
4627
|
-
this.slottedLinkEl = this.getSlottedLinkEl();
|
4628
|
-
this.slottedLinkHref = (_b = this.slottedLinkEl) === null || _b === void 0 ? void 0 : _b.getAttribute("href");
|
4629
4589
|
this.updatedSlottedLinkFocus();
|
4630
4590
|
}
|
4631
4591
|
}
|
4632
4592
|
componentWillRender() {
|
4633
|
-
this.
|
4593
|
+
const icLink = this.el.querySelector("ic-link");
|
4594
|
+
if (icLink) {
|
4595
|
+
const CURRENT_PAGE = "current-page";
|
4596
|
+
icLink.classList.remove(CURRENT_PAGE);
|
4597
|
+
if (this.current && !icLink.classList.contains(CURRENT_PAGE)) {
|
4598
|
+
icLink.classList.add("breadcrumb-link", CURRENT_PAGE);
|
4599
|
+
}
|
4600
|
+
}
|
4634
4601
|
}
|
4635
4602
|
/**
|
4636
4603
|
* Sets focus on the breadcrumb.
|
@@ -4640,15 +4607,13 @@ class Breadcrumb {
|
|
4640
4607
|
(_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("ic-link")) === null || _b === void 0 ? void 0 : _b.focus();
|
4641
4608
|
}
|
4642
4609
|
render() {
|
4643
|
-
const { current, href, pageTitle } = this;
|
4644
|
-
const describedById = `${pageTitle
|
4645
|
-
|
4646
|
-
|
4647
|
-
|
4648
|
-
|
4649
|
-
|
4650
|
-
"ic-breadcrumb-monochrome": !!this.monochrome,
|
4651
|
-
}, "aria-current": current && "page", role: "listitem" }, hAsync("div", { key: '1f8c4f0fca86a3d08df82674e33cabe7419f7616', class: "breadcrumb" }, hAsync("span", { key: '9761c21d30b9e55e8cf5d3517ada73fa4d73710b', innerHTML: chevronIcon, class: "chevron", "aria-hidden": "true" }), this.showBackIcon && describedById && (hAsync("span", { key: 'ad6be34d684a28dd063895c73f35ed65a3741dc9', id: describedById, class: "hide" }, `Back to ${pageTitle}`)), hasPageTitle && hasHref ? (this.renderDefaultBreadcrumb(!!current, pageTitle, describedById, href)) : (hAsync("div", { class: "slotted-link-container" }, this.showBackIcon && this.renderBackIcon(), hAsync("span", { class: "link-wrapper" }, hAsync("slot", null)))))));
|
4610
|
+
const { current, href, monochrome, pageTitle, showBackIcon, theme } = this;
|
4611
|
+
const describedById = `${pageTitle === null || pageTitle === void 0 ? void 0 : pageTitle.toLowerCase().replace(" ", "-")}-describedby`;
|
4612
|
+
return (hAsync(Host, { key: '0a6d1443010427dbc75347c9c69b7c40680be25f', class: {
|
4613
|
+
"ic-breadcrumb-back": showBackIcon,
|
4614
|
+
"ic-breadcrumb-monochrome": monochrome,
|
4615
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
4616
|
+
}, "aria-current": current && "page", role: "listitem" }, hAsync("div", { key: 'bd351348bd835963705c29c5aa4e857c3752d645', class: "breadcrumb" }, hAsync("span", { key: '9a4e28f31aa1c8cf2e111a0ce64902abba338461', innerHTML: chevronIcon, class: "chevron", "aria-hidden": "true" }), showBackIcon && (hAsync("span", { key: '289414d58963cea6e68b782ba36df782690db04a', id: describedById, class: "hide" }, `Back to ${pageTitle}`)), !href ? (hAsync("div", { class: "slotted-link-container" }, showBackIcon && this.renderBackIcon(), hAsync("span", { class: "link-wrapper" }, hAsync("slot", null)))) : current ? (hAsync("span", { class: "current-page-container" }, isSlotUsed(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle)) : (hAsync("ic-link", { theme: theme, monochrome: monochrome, href: href, class: "breadcrumb-link", "aria-describedby": showBackIcon && describedById }, showBackIcon && this.renderBackIcon(), isSlotUsed(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle)))));
|
4652
4617
|
}
|
4653
4618
|
static get delegatesFocus() { return true; }
|
4654
4619
|
get el() { return getElement(this); }
|
@@ -4683,10 +4648,11 @@ class BreadcrumbGroup {
|
|
4683
4648
|
registerInstance(this, hostRef);
|
4684
4649
|
this.ADD_CLASS_DELAY = 50;
|
4685
4650
|
this.IC_BREADCRUMB = "ic-breadcrumb";
|
4686
|
-
this.resizeObserver = null;
|
4687
4651
|
this.SHOW_BACK_ICON = "show-back-icon";
|
4652
|
+
this.collapsedBreadcrumbs = [];
|
4653
|
+
this.resizeObserver = null;
|
4654
|
+
this.lastParentBreadcrumb = null;
|
4688
4655
|
this.deviceSize = DEVICE_SIZES.XL;
|
4689
|
-
this.expandedBreadcrumbs = false;
|
4690
4656
|
/**
|
4691
4657
|
* If `true`, display only a single breadcrumb for the parent page with a back icon.
|
4692
4658
|
*/
|
@@ -4704,14 +4670,12 @@ class BreadcrumbGroup {
|
|
4704
4670
|
*/
|
4705
4671
|
this.theme = "inherit";
|
4706
4672
|
this.setBreadcrumbTheme = () => {
|
4707
|
-
|
4708
|
-
allBreadcrumbs.forEach((breadcrumb) => {
|
4673
|
+
Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB)).forEach((breadcrumb) => {
|
4709
4674
|
breadcrumb.theme = this.theme;
|
4710
4675
|
});
|
4711
4676
|
};
|
4712
4677
|
this.setBreadcrumbMonochrome = () => {
|
4713
|
-
|
4714
|
-
allBreadcrumbs.forEach((breadcrumb) => {
|
4678
|
+
Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB)).forEach((breadcrumb) => {
|
4715
4679
|
breadcrumb.monochrome = this.monochrome;
|
4716
4680
|
});
|
4717
4681
|
};
|
@@ -4730,48 +4694,48 @@ class BreadcrumbGroup {
|
|
4730
4694
|
}
|
4731
4695
|
};
|
4732
4696
|
this.getLastParentBreadcrumb = () => {
|
4733
|
-
const allBreadcrumbs =
|
4734
|
-
|
4735
|
-
|
4736
|
-
|
4737
|
-
this.breadcrumbs = allBreadcrumbs;
|
4738
|
-
this.breadcrumb = this.breadcrumbs[this.breadcrumbs.length - 2];
|
4739
|
-
return this.breadcrumb;
|
4740
|
-
};
|
4741
|
-
this.lastParentBreadcrumb = this.getLastParentBreadcrumb();
|
4742
|
-
this.setDefaultBreadcrumbs = () => {
|
4743
|
-
const allBreadcrumbs = Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB));
|
4744
|
-
allBreadcrumbs.forEach((breadcrumb) => {
|
4745
|
-
breadcrumb.setAttribute(this.SHOW_BACK_ICON, "false");
|
4746
|
-
});
|
4697
|
+
const allBreadcrumbs = this.el.querySelectorAll(this.IC_BREADCRUMB);
|
4698
|
+
return allBreadcrumbs.length > 1
|
4699
|
+
? allBreadcrumbs[allBreadcrumbs.length - 2]
|
4700
|
+
: null;
|
4747
4701
|
};
|
4748
4702
|
this.setCollapsed = () => {
|
4749
|
-
|
4750
|
-
|
4751
|
-
|
4752
|
-
|
4753
|
-
|
4754
|
-
breadcrumb.classList.remove("fade");
|
4755
|
-
});
|
4756
|
-
}
|
4703
|
+
var _a, _b;
|
4704
|
+
this.collapsedBreadcrumbs.forEach((breadcrumb) => {
|
4705
|
+
breadcrumb.classList.remove("visuallyhidden");
|
4706
|
+
breadcrumb.classList.remove("fade");
|
4707
|
+
});
|
4757
4708
|
if (this.collapsed) {
|
4758
4709
|
this.renderCollapsedBreadcrumb();
|
4710
|
+
const allBreadcrumbs = Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB));
|
4759
4711
|
this.collapsedBreadcrumbs = allBreadcrumbs
|
4760
4712
|
.splice(1, allBreadcrumbs.length - 2)
|
4761
4713
|
.filter((breadcrumb) => !breadcrumb.classList.contains("collapsed-breadcrumb-wrapper"));
|
4762
4714
|
if (!this.backBreadcrumbOnly) {
|
4763
4715
|
this.collapsedBreadcrumbs.forEach((breadcrumb) => breadcrumb.classList.add("hide"));
|
4764
4716
|
}
|
4765
|
-
if (
|
4766
|
-
|
4717
|
+
if (this.collapsedBreadcrumbWrapper) {
|
4718
|
+
(_a = allBreadcrumbs[0]) === null || _a === void 0 ? void 0 : _a.insertAdjacentElement("afterend", this.collapsedBreadcrumbWrapper);
|
4767
4719
|
}
|
4768
4720
|
}
|
4769
4721
|
else {
|
4770
|
-
this.collapsedBreadcrumbWrapper.remove();
|
4722
|
+
(_b = this.collapsedBreadcrumbWrapper) === null || _b === void 0 ? void 0 : _b.remove();
|
4771
4723
|
}
|
4772
4724
|
};
|
4773
4725
|
this.clickHandler = () => {
|
4774
|
-
|
4726
|
+
var _a;
|
4727
|
+
(_a = this.collapsedBreadcrumbWrapper) === null || _a === void 0 ? void 0 : _a.remove();
|
4728
|
+
this.collapsedBreadcrumbs.forEach((breadcrumb) => {
|
4729
|
+
breadcrumb.classList.add("visuallyhidden");
|
4730
|
+
breadcrumb.classList.remove("hide");
|
4731
|
+
setTimeout(() => {
|
4732
|
+
breadcrumb.classList.add("fade");
|
4733
|
+
}, this.ADD_CLASS_DELAY);
|
4734
|
+
breadcrumb.addEventListener("transitionend", this.transitionendHandler);
|
4735
|
+
});
|
4736
|
+
this.collapsed = false;
|
4737
|
+
// Set focus to first unhidden breadcrumb
|
4738
|
+
this.collapsedBreadcrumbs[0].setFocus();
|
4775
4739
|
};
|
4776
4740
|
this.renderCollapsedBreadcrumb = () => {
|
4777
4741
|
if (this.collapsedBreadcrumbEl === undefined) {
|
@@ -4782,12 +4746,12 @@ class BreadcrumbGroup {
|
|
4782
4746
|
ariaLabel.id = "collapsed-button-label";
|
4783
4747
|
ariaLabel.innerText = "Collapsed breadcrumbs";
|
4784
4748
|
ariaLabel.className = "hide";
|
4785
|
-
this.collapsedBreadcrumbEl.setAttribute("aria-labelledby",
|
4749
|
+
this.collapsedBreadcrumbEl.setAttribute("aria-labelledby", ariaLabel.id);
|
4786
4750
|
const ariaDescribed = document.createElement("span");
|
4787
4751
|
ariaDescribed.id = "collapsed-button-described";
|
4788
4752
|
ariaDescribed.innerText = "Select to view collapsed breadcrumbs";
|
4789
4753
|
ariaDescribed.className = "hide";
|
4790
|
-
this.collapsedBreadcrumbEl.setAttribute("aria-describedby",
|
4754
|
+
this.collapsedBreadcrumbEl.setAttribute("aria-describedby", ariaDescribed.id);
|
4791
4755
|
this.collapsedBreadcrumbEl.id = "collapsed-ellipsis";
|
4792
4756
|
this.collapsedBreadcrumbEl.innerText = "...";
|
4793
4757
|
this.collapsedBreadcrumbEl.classList.add("collapsed-breadcrumb");
|
@@ -4797,28 +4761,11 @@ class BreadcrumbGroup {
|
|
4797
4761
|
this.collapsedBreadcrumbWrapper.append(this.collapsedBreadcrumbEl);
|
4798
4762
|
}
|
4799
4763
|
};
|
4800
|
-
this.handleHiddenCollapsedBreadcrumbs = () => {
|
4801
|
-
this.collapsedBreadcrumbWrapper.remove();
|
4802
|
-
this.collapsedBreadcrumbs.forEach((breadcrumb) => {
|
4803
|
-
breadcrumb.classList.add("visuallyhidden");
|
4804
|
-
breadcrumb.classList.remove("hide");
|
4805
|
-
setTimeout(() => {
|
4806
|
-
breadcrumb.classList.add("fade");
|
4807
|
-
}, this.ADD_CLASS_DELAY);
|
4808
|
-
this.removeVisuallyHiddenClass(breadcrumb);
|
4809
|
-
});
|
4810
|
-
this.expandedBreadcrumbs = true;
|
4811
|
-
// Set focus to first unhidden breadcrumb
|
4812
|
-
this.collapsedBreadcrumbs[0].setFocus();
|
4813
|
-
};
|
4814
4764
|
this.transitionendHandler = (event) => {
|
4815
4765
|
if (event.propertyName === "opacity") {
|
4816
4766
|
event.target.classList.remove("visuallyhidden");
|
4817
4767
|
}
|
4818
4768
|
};
|
4819
|
-
this.removeVisuallyHiddenClass = (breadcrumb) => {
|
4820
|
-
breadcrumb.addEventListener("transitionend", this.transitionendHandler);
|
4821
|
-
};
|
4822
4769
|
this.setLastParentCollapsedBackBreadcrumb = () => {
|
4823
4770
|
this.lastParentBreadcrumb = this.getLastParentBreadcrumb();
|
4824
4771
|
this.setBackBreadcrumbAttr();
|
@@ -4838,8 +4785,9 @@ class BreadcrumbGroup {
|
|
4838
4785
|
this.resizeObserverCallback = (currSize) => {
|
4839
4786
|
if (currSize !== this.deviceSize) {
|
4840
4787
|
this.deviceSize = currSize;
|
4841
|
-
|
4842
|
-
|
4788
|
+
const isSmallDevice = this.deviceSize <= DEVICE_SIZES.S;
|
4789
|
+
this.el.setAttribute("back-breadcrumb-only", `${isSmallDevice}`);
|
4790
|
+
if (isSmallDevice) {
|
4843
4791
|
if (this.collapsed) {
|
4844
4792
|
this.setLastParentCollapsedBackBreadcrumb();
|
4845
4793
|
}
|
@@ -4848,26 +4796,22 @@ class BreadcrumbGroup {
|
|
4848
4796
|
}
|
4849
4797
|
}
|
4850
4798
|
else {
|
4851
|
-
this.el.
|
4852
|
-
if (this.collapsed &&
|
4799
|
+
const allBreadcrumbs = Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB));
|
4800
|
+
if (this.collapsed && allBreadcrumbs.length > 2) {
|
4853
4801
|
this.revertLastParentCollapsedBreadcrumb();
|
4854
|
-
|
4855
|
-
this.setDefaultBreadcrumbs();
|
4856
|
-
}
|
4857
|
-
else {
|
4858
|
-
this.setCollapsed();
|
4859
|
-
}
|
4802
|
+
this.setCollapsed();
|
4860
4803
|
}
|
4861
4804
|
else {
|
4862
|
-
|
4805
|
+
allBreadcrumbs.forEach((breadcrumb) => {
|
4806
|
+
breadcrumb.setAttribute(this.SHOW_BACK_ICON, "false");
|
4807
|
+
});
|
4863
4808
|
}
|
4864
4809
|
}
|
4865
4810
|
}
|
4866
4811
|
};
|
4867
4812
|
this.runResizeObserver = () => {
|
4868
4813
|
this.resizeObserver = new ResizeObserver(() => {
|
4869
|
-
|
4870
|
-
this.resizeObserverCallback(currSize);
|
4814
|
+
this.resizeObserverCallback(getCurrentDeviceSize());
|
4871
4815
|
});
|
4872
4816
|
this.resizeObserver.observe(this.el);
|
4873
4817
|
};
|
@@ -4885,7 +4829,6 @@ class BreadcrumbGroup {
|
|
4885
4829
|
this.setBreadcrumbTheme();
|
4886
4830
|
}
|
4887
4831
|
componentWillLoad() {
|
4888
|
-
const allBreadcrumbs = Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB));
|
4889
4832
|
this.setBreadcrumbTheme();
|
4890
4833
|
this.setBreadcrumbMonochrome();
|
4891
4834
|
if (this.backBreadcrumbOnly) {
|
@@ -4894,7 +4837,8 @@ class BreadcrumbGroup {
|
|
4894
4837
|
else {
|
4895
4838
|
checkResizeObserver(this.runResizeObserver);
|
4896
4839
|
}
|
4897
|
-
if (this.collapsed &&
|
4840
|
+
if (this.collapsed &&
|
4841
|
+
this.el.querySelectorAll(this.IC_BREADCRUMB).length > 2) {
|
4898
4842
|
if (getCurrentDeviceSize() === DEVICE_SIZES.S) {
|
4899
4843
|
this.setLastParentCollapsedBackBreadcrumb();
|
4900
4844
|
}
|
@@ -4902,19 +4846,20 @@ class BreadcrumbGroup {
|
|
4902
4846
|
this.setCollapsed();
|
4903
4847
|
}
|
4904
4848
|
}
|
4849
|
+
this.lastParentBreadcrumb = this.getLastParentBreadcrumb();
|
4905
4850
|
}
|
4906
4851
|
disconnectedCallback() {
|
4907
|
-
|
4908
|
-
|
4909
|
-
this.collapsedBreadcrumbEl
|
4910
|
-
this.collapsedBreadcrumbEl.removeEventListener("click", this.clickHandler);
|
4852
|
+
var _a, _b;
|
4853
|
+
(_a = this.lastParentBreadcrumb) === null || _a === void 0 ? void 0 : _a.removeEventListener("transitionend", this.transitionendHandler);
|
4854
|
+
(_b = this.collapsedBreadcrumbEl) === null || _b === void 0 ? void 0 : _b.removeEventListener("click", this.clickHandler);
|
4911
4855
|
}
|
4912
4856
|
render() {
|
4913
|
-
|
4914
|
-
|
4915
|
-
"ic-breadcrumb-group-
|
4916
|
-
|
4917
|
-
|
4857
|
+
const { backBreadcrumbOnly, collapsed, theme } = this;
|
4858
|
+
return (hAsync(Host, { key: '6007593369d986d18d2c4cad15227da06bdf83b3', class: {
|
4859
|
+
"ic-breadcrumb-group-back": backBreadcrumbOnly,
|
4860
|
+
"ic-breadcrumb-group-collapsed": collapsed,
|
4861
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
4862
|
+
} }, hAsync("nav", { key: 'd20e99632bc38dec96220f3d352782a92370f18c', "aria-label": "breadcrumbs" }, hAsync("ol", { key: '780819660c759cf6b3e468fd50fbc02a723ee94b' }, hAsync("slot", { key: '9ab668b5b936d967dfa6fca4d72be882456b8b4e' })))));
|
4918
4863
|
}
|
4919
4864
|
get el() { return getElement(this); }
|
4920
4865
|
static get watchers() { return {
|
@@ -4929,11 +4874,10 @@ class BreadcrumbGroup {
|
|
4929
4874
|
"$tagName$": "ic-breadcrumb-group",
|
4930
4875
|
"$members$": {
|
4931
4876
|
"backBreadcrumbOnly": [4, "back-breadcrumb-only"],
|
4932
|
-
"collapsed": [
|
4877
|
+
"collapsed": [1028],
|
4933
4878
|
"monochrome": [4],
|
4934
4879
|
"theme": [1],
|
4935
|
-
"deviceSize": [32]
|
4936
|
-
"expandedBreadcrumbs": [32]
|
4880
|
+
"deviceSize": [32]
|
4937
4881
|
},
|
4938
4882
|
"$listeners$": undefined,
|
4939
4883
|
"$lazyBundleId$": "-",
|
@@ -4945,7 +4889,7 @@ var arrowDropdown = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
4945
4889
|
<path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor"/>
|
4946
4890
|
</svg>`;
|
4947
4891
|
|
4948
|
-
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) ::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{color:var(--ic-button-primary-text);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-non-transparent)}:host(.ic-button-variant-secondary.background) ::slotted(a),:host(.ic-button-variant-icon-secondary.background) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent\n ) !important}:host(.ic-button-variant-secondary.background.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.background.ic-button-disabled) .button{background-color:var(\n --ic-button-secondary-background-non-transparent-disabled\n )}:host(.ic-button-variant-secondary.background.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.ic-button-disabled) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-disabled\n ) !important}:host(.ic-button-variant-secondary.background) .button:hover,:host(.ic-button-variant-icon-secondary.background) .button:hover{background-color: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-color: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-color: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-color: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(\n --ic-button-secondary-background-non-transparent-monochrome\n );color:var(--ic-button-primary-text)}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome\n ) !important}:host(.ic-button-variant-secondary.background.monochrome.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.background.monochrome.ic-button-disabled) .button{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-disabled\n );color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.background.monochrome.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome.ic-button-disabled) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-disabled\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:hover{background-color: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-color: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-color: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-color: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.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-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)}:host(.ic-button-variant-icon-primary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}: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}: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}: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}: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%}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){margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button,:host(.clear-button) .button,:host(.dismiss-icon) ::slotted(a),:host(.clear-button) ::slotted(a){background-color:inherit;color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon) .button:hover,:host(.clear-button) .button:hover,:host(.dismiss-icon) ::slotted(a:hover),:host(.clear-button) ::slotted(a:hover){color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon),:host(.clear-button){color:var(--ic-atoms-input-clear-button);margin:0 var(--ic-space-xxs)}:host(.dismiss-icon) .button:focus,:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button:not(:active):focus ::slotted(svg),: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(.dismiss-icon) .button:not(:active):focus ::slotted(svg),:host(.clear-button) .button:not(:active):focus ::slotted(svg){color:white !important;background-color:inherit}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
|
4892
|
+
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}: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}: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}: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}: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%}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){margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button,:host(.clear-button) .button,:host(.dismiss-icon) ::slotted(a),:host(.clear-button) ::slotted(a){background-color:inherit;color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon) .button:hover,:host(.clear-button) .button:hover,:host(.dismiss-icon) ::slotted(a:hover),:host(.clear-button) ::slotted(a:hover){color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon),:host(.clear-button){color:var(--ic-atoms-input-clear-button);margin:0 var(--ic-space-xxs)}:host(.dismiss-icon) .button:focus,:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button:not(:active):focus ::slotted(svg),: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(.dismiss-icon) .button:not(:active):focus ::slotted(svg),: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}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
|
4949
4893
|
var IcButtonStyle0 = icButtonCss;
|
4950
4894
|
|
4951
4895
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
@@ -4978,7 +4922,6 @@ class Button {
|
|
4978
4922
|
this.hasTooltip = false;
|
4979
4923
|
this.inheritedAttributes = {};
|
4980
4924
|
this.describedbyEl = null;
|
4981
|
-
this.describedById = null;
|
4982
4925
|
this.mutationObserver = null;
|
4983
4926
|
this.hostMutationObserver = null;
|
4984
4927
|
this.ariaLabel = "";
|
@@ -5045,7 +4988,7 @@ class Button {
|
|
5045
4988
|
*/
|
5046
4989
|
this.tooltipPlacement = "bottom";
|
5047
4990
|
/**
|
5048
|
-
* If `true`, the secondary
|
4991
|
+
* If `true`, the secondary & tertiary variants of button will have a transparent background when not hovered, pressed or loading.
|
5049
4992
|
*/
|
5050
4993
|
this.transparentBackground = true;
|
5051
4994
|
/**
|
@@ -5056,6 +4999,7 @@ class Button {
|
|
5056
4999
|
* The variant of the button to be displayed.
|
5057
5000
|
*/
|
5058
5001
|
this.variant = "primary";
|
5002
|
+
this.getSlottedIcon = (position) => this.el.querySelector(`[slot="${position}-icon"]`);
|
5059
5003
|
this.handleClick = () => {
|
5060
5004
|
var _a;
|
5061
5005
|
if ((this.el.type === "submit" || this.el.type === "reset") &&
|
@@ -5080,12 +5024,17 @@ class Button {
|
|
5080
5024
|
this.onBlur = () => {
|
5081
5025
|
this.icBlur.emit();
|
5082
5026
|
};
|
5083
|
-
|
5027
|
+
/**
|
5028
|
+
* Triggered when text content of sibling element in light DOM changes
|
5029
|
+
*/
|
5084
5030
|
this.mutationCallback = () => {
|
5085
5031
|
var _a;
|
5086
5032
|
this.describedByContent = (_a = this.describedbyEl) === null || _a === void 0 ? void 0 : _a.innerText;
|
5087
5033
|
};
|
5088
|
-
|
5034
|
+
/**
|
5035
|
+
* Triggered when attributes of host element change
|
5036
|
+
* @param mutationList the list of changes made to the host element
|
5037
|
+
*/
|
5089
5038
|
this.hostMutationCallback = (mutationList) => {
|
5090
5039
|
mutationList.forEach(({ attributeName }) => {
|
5091
5040
|
if (attributeName) {
|
@@ -5106,58 +5055,54 @@ class Button {
|
|
5106
5055
|
this.hasTooltip =
|
5107
5056
|
!this.disableTooltip && (!!this.title || !!this.isIconVariant());
|
5108
5057
|
};
|
5109
|
-
this.isIconVariant = () =>
|
5110
|
-
var _a;
|
5111
|
-
return (_a = this.variant) === null || _a === void 0 ? void 0 : _a.startsWith("icon");
|
5112
|
-
};
|
5058
|
+
this.isIconVariant = () => this.variant.startsWith("icon");
|
5113
5059
|
this.arrangeRouterItem = () => {
|
5114
|
-
var _a
|
5060
|
+
var _a;
|
5115
5061
|
const setStyles = (element, styles) => {
|
5116
5062
|
Object.entries(styles).forEach(([key, value]) => {
|
5117
5063
|
element.style.setProperty(key, value);
|
5118
5064
|
});
|
5119
5065
|
};
|
5120
|
-
|
5121
|
-
|
5122
|
-
|
5123
|
-
|
5124
|
-
|
5125
|
-
|
5126
|
-
"font-family": "var(--ic-font-body-family)",
|
5127
|
-
"font-size": "0.875rem",
|
5128
|
-
"font-weight": "600",
|
5129
|
-
});
|
5130
|
-
setStyles(this.routerSlot, {
|
5131
|
-
gap: "0",
|
5132
|
-
});
|
5133
|
-
if (icon) {
|
5134
|
-
setStyles(icon, {
|
5135
|
-
fill: "currentcolor",
|
5066
|
+
if (this.routerSlot) {
|
5067
|
+
const icTypography = document.createElement("ic-typography");
|
5068
|
+
setStyles(icTypography, {
|
5069
|
+
"font-family": "var(--ic-font-body-family)",
|
5070
|
+
"font-size": "0.875rem",
|
5071
|
+
"font-weight": "600",
|
5136
5072
|
});
|
5137
|
-
|
5138
|
-
|
5139
|
-
|
5140
|
-
|
5141
|
-
icon.getAttribute("slot")
|
5142
|
-
|
5143
|
-
|
5144
|
-
|
5145
|
-
|
5146
|
-
setStyles(this.routerSlot, {
|
5147
|
-
display: "flex",
|
5148
|
-
"flex-direction": "column",
|
5149
|
-
"--height": "fit-content",
|
5073
|
+
setStyles(this.routerSlot, {
|
5074
|
+
gap: "0",
|
5075
|
+
});
|
5076
|
+
const icon = this.routerSlot.querySelector("svg");
|
5077
|
+
const iconSlot = icon === null || icon === void 0 ? void 0 : icon.getAttribute("slot");
|
5078
|
+
const iconWrapper = document.createElement("div");
|
5079
|
+
if (icon) {
|
5080
|
+
setStyles(icon, {
|
5081
|
+
fill: "currentcolor",
|
5150
5082
|
});
|
5083
|
+
if (iconSlot === "top-icon") {
|
5084
|
+
setStyles(this.routerSlot, {
|
5085
|
+
display: "flex",
|
5086
|
+
"flex-direction": "column",
|
5087
|
+
"--height": "fit-content",
|
5088
|
+
});
|
5089
|
+
}
|
5090
|
+
else if (iconSlot) {
|
5091
|
+
const marginPlacement = iconSlot === "left-icon" ? "right" : "left";
|
5092
|
+
setStyles(iconWrapper, {
|
5093
|
+
[`margin-${marginPlacement}`]: "var(--ic-space-xs)",
|
5094
|
+
});
|
5095
|
+
}
|
5096
|
+
iconWrapper.append(icon);
|
5151
5097
|
}
|
5152
|
-
|
5153
|
-
|
5154
|
-
|
5155
|
-
|
5156
|
-
|
5157
|
-
|
5158
|
-
if (this.routerSlot) {
|
5098
|
+
const badge = this.routerSlot.querySelector("ic-badge");
|
5099
|
+
const label = (_a = this.routerSlot.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
5100
|
+
if (badge)
|
5101
|
+
iconWrapper.append(badge);
|
5102
|
+
if (label)
|
5103
|
+
icTypography.textContent = label;
|
5159
5104
|
this.routerSlot.textContent = "";
|
5160
|
-
if (
|
5105
|
+
if (iconSlot === "right-icon") {
|
5161
5106
|
this.routerSlot.append(icTypography);
|
5162
5107
|
this.routerSlot.append(iconWrapper);
|
5163
5108
|
}
|
@@ -5172,13 +5117,9 @@ class Button {
|
|
5172
5117
|
removeDisabledFalse(this.disabled, this.el);
|
5173
5118
|
}
|
5174
5119
|
disconnectedCallback() {
|
5175
|
-
|
5176
|
-
|
5177
|
-
|
5178
|
-
if (this.hostMutationObserver !== null &&
|
5179
|
-
this.hostMutationObserver !== undefined) {
|
5180
|
-
this.hostMutationObserver.disconnect();
|
5181
|
-
}
|
5120
|
+
var _a, _b;
|
5121
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
5122
|
+
(_b = this.hostMutationObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
5182
5123
|
}
|
5183
5124
|
componentWillUpdate() {
|
5184
5125
|
if (this.loading) {
|
@@ -5198,7 +5139,7 @@ class Button {
|
|
5198
5139
|
this.setHasTooltip();
|
5199
5140
|
if (!this.hasTooltip) {
|
5200
5141
|
const describedById = this.inheritedAttributes["aria-describedby"];
|
5201
|
-
if (describedById
|
5142
|
+
if (describedById) {
|
5202
5143
|
this.describedById = describedById;
|
5203
5144
|
const el = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector(`#${describedById}`);
|
5204
5145
|
if (el) {
|
@@ -5223,21 +5164,18 @@ class Button {
|
|
5223
5164
|
this.hostMutationObserver.observe(this.el, {
|
5224
5165
|
attributes: true,
|
5225
5166
|
});
|
5226
|
-
this.hasRouterSlot()
|
5167
|
+
if (this.hasRouterSlot())
|
5168
|
+
this.arrangeRouterItem();
|
5227
5169
|
}
|
5228
5170
|
}
|
5229
5171
|
componentWillRender() {
|
5230
|
-
const iconEl = this.
|
5231
|
-
? this.el.querySelector(`[slot="left-icon"]`)
|
5232
|
-
: this.hasIconSlot("right")
|
5233
|
-
? this.el.querySelector(`[slot="right-icon"]`)
|
5234
|
-
: null;
|
5172
|
+
const iconEl = this.getSlottedIcon("left") || this.getSlottedIcon("right");
|
5235
5173
|
iconEl === null || iconEl === void 0 ? void 0 : iconEl.setAttribute("viewBox", "0 0 24 24");
|
5236
5174
|
}
|
5237
5175
|
handleHostClick(event) {
|
5238
5176
|
if (!this.hasRouterSlot()) {
|
5239
5177
|
if (this.fileUpload) {
|
5240
|
-
renderFileHiddenInput(this.icFileSelection, this.el, !!this.multiple, this.
|
5178
|
+
renderFileHiddenInput(this.icFileSelection, this.el, !!this.multiple, !!this.disabled, this.accept, this.fileInputName, this.selectedFiles);
|
5241
5179
|
}
|
5242
5180
|
if (this.disabled || this.loading) {
|
5243
5181
|
event.stopImmediatePropagation();
|
@@ -5266,10 +5204,6 @@ class Button {
|
|
5266
5204
|
ev.stopImmediatePropagation();
|
5267
5205
|
}
|
5268
5206
|
}
|
5269
|
-
hasIconSlot(position) {
|
5270
|
-
const selectorPrefix = position ? `${position}-` : "";
|
5271
|
-
return this.el.querySelector(`[slot="${selectorPrefix}icon"]`) !== null;
|
5272
|
-
}
|
5273
5207
|
hasRouterSlot() {
|
5274
5208
|
this.routerSlot = this.el.querySelector('[slot="router-item"]');
|
5275
5209
|
if (this.routerSlot) {
|
@@ -5288,72 +5222,61 @@ class Button {
|
|
5288
5222
|
}
|
5289
5223
|
}
|
5290
5224
|
render() {
|
5291
|
-
const
|
5292
|
-
const
|
5225
|
+
const { ariaControlsId, ariaLabel, ariaOwnsId, buttonIdNum, describedByContent, describedById, disabled, download, dropdown, dropdownExpanded, form, formaction, formenctype, formmethod, formnovalidate, formtarget, fullWidth, handleClick, handleKeyDown, hasTooltip, href, hreflang, id, inheritedAttributes, isIconVariant, loading, monochrome, onBlur, onFocus, referrerpolicy, rel, size, target, theme, title, tooltipPlacement, transparentBackground, type, variant, } = this;
|
5226
|
+
const TagType = href ? "a" : "button";
|
5293
5227
|
const buttonAttrs = TagType === "button"
|
5294
5228
|
? {
|
5295
|
-
type
|
5296
|
-
disabled
|
5297
|
-
form
|
5298
|
-
formaction
|
5299
|
-
formenctype
|
5300
|
-
formmethod
|
5301
|
-
formnovalidate
|
5302
|
-
formtarget
|
5229
|
+
type,
|
5230
|
+
disabled,
|
5231
|
+
form,
|
5232
|
+
formaction,
|
5233
|
+
formenctype,
|
5234
|
+
formmethod,
|
5235
|
+
formnovalidate,
|
5236
|
+
formtarget,
|
5303
5237
|
}
|
5304
5238
|
: {
|
5305
|
-
download:
|
5306
|
-
href
|
5307
|
-
rel
|
5308
|
-
target
|
5309
|
-
referrerpolicy
|
5310
|
-
hreflang
|
5239
|
+
download: download !== false ? download : null,
|
5240
|
+
href,
|
5241
|
+
rel,
|
5242
|
+
target,
|
5243
|
+
referrerpolicy,
|
5244
|
+
hreflang,
|
5311
5245
|
};
|
5312
|
-
|
5313
|
-
|
5314
|
-
|
5315
|
-
|
5316
|
-
|
5317
|
-
|
5318
|
-
|
5319
|
-
|
5320
|
-
|
5321
|
-
|
5322
|
-
|
5323
|
-
|
5324
|
-
|
5325
|
-
|
5326
|
-
|
5327
|
-
|
5328
|
-
|
5329
|
-
|
5330
|
-
|
5331
|
-
|
5332
|
-
|
5333
|
-
|
5334
|
-
|
5335
|
-
|
5336
|
-
|
5337
|
-
|
5338
|
-
|
5339
|
-
|
5340
|
-
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
5341
|
-
[`monochrome`]: !!this.monochrome,
|
5342
|
-
["ic-button-disabled"]: !!this.disabled && !this.loading,
|
5343
|
-
[`ic-button-variant-${this.variant}`]: true,
|
5344
|
-
[`ic-button-size-${this.size}`]: true,
|
5345
|
-
["ic-button-loading"]: !!this.loading,
|
5346
|
-
["ic-button-full-width"]: !!this.fullWidth,
|
5347
|
-
["with-badge"]: isSlotUsed(this.el, "badge"),
|
5348
|
-
["dropdown-no-icon"]: !!this.dropdown &&
|
5246
|
+
const buttonId = hasTooltip
|
5247
|
+
? `ic-button-with-tooltip-${id || buttonIdNum}`
|
5248
|
+
: undefined;
|
5249
|
+
const describedby = !hasTooltip
|
5250
|
+
? describedById
|
5251
|
+
: variant !== "icon" || !ariaLabel
|
5252
|
+
? `ic-tooltip-${buttonId}`
|
5253
|
+
: undefined;
|
5254
|
+
const hasLeftIcon = !!this.getSlottedIcon("left");
|
5255
|
+
const hasRightIcon = !!this.getSlottedIcon("right");
|
5256
|
+
const ButtonContent = () => this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(TagType, Object.assign({ class: "button", "aria-disabled": loading || disabled ? "true" : null, "aria-label": loading ? "Loading" : ariaLabel, "aria-expanded": dropdown && `${dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: onFocus, onBlur: onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), loading ? (hAsync("div", { class: "loading-container" }, hAsync("ic-loading-indicator", { type: "linear", monochrome: monochrome, theme: theme }))) : (hAsync(Fragment, null, (hasLeftIcon ||
|
5257
|
+
(!!this.getSlottedIcon("top") && !hasRightIcon)) && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: `${hasLeftIcon ? "left" : "top"}-icon` }))), hAsync("slot", null), !dropdown
|
5258
|
+
? hasRightIcon && (hAsync("div", { class: { "icon-container": true, "right-icon": true } }, hAsync("slot", { name: "right-icon" })))
|
5259
|
+
: variant !== "icon" &&
|
5260
|
+
variant !== "destructive" && (hAsync("span", { class: dropdownExpanded
|
5261
|
+
? "dropdown-expanded"
|
5262
|
+
: "arrow-dropdown", innerHTML: arrowDropdown }))))));
|
5263
|
+
return (hAsync(Host, { key: 'ad9ac0c76988c09eb82376bec11b59a01921e191', class: {
|
5264
|
+
"ic-button-disabled": disabled && !loading,
|
5265
|
+
"ic-button-full-width": fullWidth,
|
5266
|
+
"ic-button-loading": loading,
|
5267
|
+
[`ic-button-size-${size}`]: true,
|
5268
|
+
[`ic-button-variant-${variant}`]: true,
|
5269
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
5270
|
+
background: (variant === "secondary" || variant === "tertiary") &&
|
5271
|
+
!transparentBackground &&
|
5272
|
+
!disabled,
|
5273
|
+
"dropdown-no-icon": dropdown &&
|
5349
5274
|
!isSlotUsed(this.el, "icon") &&
|
5350
5275
|
!isSlotUsed(this.el, "left-icon"),
|
5351
|
-
|
5352
|
-
|
5353
|
-
|
5354
|
-
|
5355
|
-
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "aria-owns": this.ariaOwnsId, "aria-controls": this.ariaControlsId, "aria-expanded": this.dropdown && `${this.dropdownExpanded}` }, this.hasTooltip && (hAsync("ic-tooltip", { id: describedby || undefined, label: title || ariaLabel, target: buttonId || undefined, placement: this.tooltipPlacement, silent: this.isIconVariant() && !!ariaLabel }, this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(ButtonContent, null)))), isSlotUsed(this.el, "badge") && hAsync("slot", { name: "badge" }), !this.hasTooltip &&
|
5356
|
-
(this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(ButtonContent, null))), this.describedByContent && (hAsync("span", { id: describedby || undefined, class: "ic-button-describedby" }, this.describedByContent))));
|
5276
|
+
monochrome,
|
5277
|
+
"top-icon": isSlotUsed(this.el, "top-icon"),
|
5278
|
+
"with-badge": isSlotUsed(this.el, "badge"),
|
5279
|
+
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: '6ea260823e7bf9640a83606682243f300a3841db', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, silent: isIconVariant() && !!ariaLabel }, hAsync(ButtonContent, { key: '4fb9a4f68cd2973fc0cd4bf8710dc284332655e8' }))), isSlotUsed(this.el, "badge") && hAsync("slot", { key: '598752e05b5b7c8af271b6b86752e531ca49839f', name: "badge" }), !hasTooltip && hAsync(ButtonContent, { key: '0931fa5a19abb382782b95c86273b92c6888563b' }), describedByContent && (hAsync("span", { key: 'b90c65b1b89f09467a38f47c104d207327686abb', id: describedby, class: "ic-button-describedby" }, describedByContent))));
|
5357
5280
|
}
|
5358
5281
|
static get delegatesFocus() { return true; }
|
5359
5282
|
get el() { return getElement(this); }
|
@@ -5560,19 +5483,19 @@ class CardVertical {
|
|
5560
5483
|
rel: rel,
|
5561
5484
|
target: target,
|
5562
5485
|
};
|
5563
|
-
return (hAsync(Host, { key: '
|
5486
|
+
return (hAsync(Host, { key: 'd62f341e096d81fa917e578aa55c99d6d828c9e3', class: {
|
5564
5487
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
5565
|
-
} }, hAsync(Component, Object.assign({ key: '
|
5488
|
+
} }, hAsync(Component, Object.assign({ key: '742b03d9281d850a9052638038980b45ca567c17', class: {
|
5566
5489
|
card: true,
|
5567
5490
|
clickable: !!clickable && !disabled,
|
5568
5491
|
disabled: !!disabled,
|
5569
5492
|
fullwidth: !!fullWidth,
|
5570
5493
|
focussed: isFocussed,
|
5571
5494
|
monochrome: monochrome,
|
5572
|
-
}, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, "aria-disabled": disabled ? "true" : null, disabled: disabled }, attrs), isSlotUsed(this.el, "image-top") && (hAsync("div", { key: '
|
5495
|
+
}, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, "aria-disabled": disabled ? "true" : null, disabled: disabled }, attrs), isSlotUsed(this.el, "image-top") && (hAsync("div", { key: 'd5f584871df498cf11acb97ff3694115d4819a73', class: "image-top" }, hAsync("slot", { key: '88fa5d9566421a5ca724622bb11b0ad593babecb', name: "image-top" }))), hAsync("div", { key: '3211c93ebca0fcddad4ac7ce75999ab8d7939442', class: "card-header" }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: 'c80cf3c24f0cbdf7cac901ee8c945c4d1432fe9f', class: "icon" }, hAsync("slot", { key: '7e087604510f545b891f104f972ee50ac686b9be', name: "icon" }))), hAsync("div", { key: '02bc7be8d85faee7b497c2b2608d80f70b79ec86', class: "card-title" }, hAsync("slot", { key: 'e5285ad53121d899dd27966860b664fe1ecc388f', name: "heading" }, hAsync("ic-typography", { key: '00573eddbbdd537b86a1331bd2b2db4a443a13c0', variant: "h4" }, hAsync("p", { key: 'bccc52bc8feadd3abe0cd8092819258dc2e155c8' }, heading)))), isSlotUsed(this.el, "interaction-button") && (hAsync("div", { key: 'f9f2baeee122976ab5ffa8e3dff9027bb78db6b4', class: "interaction-button" }, hAsync("slot", { key: '01b087c7b7ff9fa54dfb1171c5a4899cf090b45c', name: "interaction-button" })))), (subheading || isSlotUsed(this.el, "subheading")) && (hAsync("div", { key: '81f19c8c0d726ebbb35f71375a35fac342e4e7cd', class: "subheading" }, hAsync("slot", { key: '17c871d9694857824afb3c9f7593c8498873d810', name: "subheading" }, hAsync("ic-typography", { key: '9ca1068e95a3c69def8ec0bf82135dd36ed57fbc', variant: "subtitle-small" }, subheading)))), isSlotUsed(this.el, "adornment") && (hAsync("div", { key: 'e43dadfb629c3a5dd28a6b1c46555dfade8d498f', class: "adornment" }, hAsync("slot", { key: 'b8f63d79ffaff166020d643497ad8b92f4580a0e', name: "adornment" }))), isSlotUsed(this.el, "image-mid") && (hAsync("div", { key: '1077bd869310c629a1b154e031dbed14559798b7', class: "image-mid" }, hAsync("slot", { key: 'f598c5ddfb5a591f3988c49b3f7be1e84fb87552', name: "image-mid" }))), (message || isSlotUsed(this.el, "message")) && (hAsync("div", { key: '08d46a26aac3972495cc7724ff8fbd55cc90a31c', class: "card-message" }, message && (hAsync("ic-typography", { key: '50c632b1ac9fed137e668ceec4f1fe35f9a2cf99', variant: "body" }, message)), isSlotUsed(this.el, "message") && hAsync("slot", { key: '2b971484237d985d4318993477d39b5f6d1e8f0d', name: "message" }))), (isSlotUsed(this.el, "interaction-controls") || expandable) && (hAsync("div", { key: '3e7f6bc8df858349187486fb9e9ebec56d42d0a5', class: "interaction-area" }, hAsync("div", { key: '4fd96e05aa6daef84d93d8f1da4dd80b2d349623', class: "interaction-controls" }, hAsync("slot", { key: '2f690307f464bb1f710344723b2f76078334ea30', name: "interaction-controls" })), expandable && (hAsync("ic-tooltip", { key: '9880fae8f9a52bdfe1820df5cbfc92af33080e2a', id: "ic-tooltip-expand-button", label: "Toggle expandable area", silent: true }, hAsync("button", { key: '0d1656a001fa061ebae17757a560ba11dae90339', class: {
|
5573
5496
|
"toggle-button": true,
|
5574
5497
|
[`toggle-button-${this.areaExpanded ? "expanded" : "closed"}`]: true,
|
5575
|
-
}, "aria-label": "Toggle expandable area", "aria-expanded": `${this.areaExpanded}`, "aria-controls": this.areaExpanded ? "expanded-content-area" : null, onClick: this.toggleExpanded, innerHTML: chevronIcon }))))), isSlotUsed(this.el, "expanded-content") && this.areaExpanded && (hAsync("div", { key: '
|
5498
|
+
}, "aria-label": "Toggle expandable area", "aria-expanded": `${this.areaExpanded}`, "aria-controls": this.areaExpanded ? "expanded-content-area" : null, onClick: this.toggleExpanded, innerHTML: chevronIcon }))))), isSlotUsed(this.el, "expanded-content") && this.areaExpanded && (hAsync("div", { key: 'dc55cb4419b35c1f5f6b771cf5dc62c1d77626a7', class: "expanded-content", id: "expanded-content-area" }, hAsync("slot", { key: '3b0d0c87d0467ffde6e62ed49b9116280a6c7108', name: "expanded-content" }))), isSlotUsed(this.el, "badge") && hAsync("slot", { key: 'f51d29f2b88429b0e0024c6f9ba34abaf4e1a6d1', name: "badge" }))));
|
5576
5499
|
}
|
5577
5500
|
get el() { return getElement(this); }
|
5578
5501
|
static get watchers() { return {
|
@@ -5637,6 +5560,10 @@ class Checkbox {
|
|
5637
5560
|
* The text to be displayed when dynamic.
|
5638
5561
|
*/
|
5639
5562
|
this.dynamicText = "This selection requires additional answers";
|
5563
|
+
/**
|
5564
|
+
* If `true`, the label will be hidden and the required label value will be applied as an aria-label.
|
5565
|
+
*/
|
5566
|
+
this.hideLabel = false;
|
5640
5567
|
/**
|
5641
5568
|
* If `true`, the indeterminate state will be displayed when checked.
|
5642
5569
|
*/
|
@@ -5651,14 +5578,13 @@ class Checkbox {
|
|
5651
5578
|
*/
|
5652
5579
|
this.theme = "inherit";
|
5653
5580
|
/**
|
5654
|
-
*
|
5581
|
+
* The value for the checkbox.
|
5655
5582
|
*/
|
5656
|
-
this.
|
5583
|
+
this.value = "";
|
5657
5584
|
this.handleClick = () => {
|
5658
5585
|
this.checked = !this.checked;
|
5659
|
-
this.displayIndeterminate =
|
5660
|
-
|
5661
|
-
: this.indeterminate && this.checked;
|
5586
|
+
this.displayIndeterminate =
|
5587
|
+
!this.nativeIndeterminateBehaviour && this.indeterminate && this.checked;
|
5662
5588
|
this.icCheck.emit();
|
5663
5589
|
};
|
5664
5590
|
this.handleFormReset = () => {
|
@@ -5669,25 +5595,24 @@ class Checkbox {
|
|
5669
5595
|
removeDisabledFalse(this.disabled, this.el);
|
5670
5596
|
}
|
5671
5597
|
watchIndeterminateHandler() {
|
5672
|
-
this.displayIndeterminate =
|
5673
|
-
|
5674
|
-
: this.indeterminate && !!this.checked;
|
5598
|
+
this.displayIndeterminate =
|
5599
|
+
this.indeterminate && (this.nativeIndeterminateBehaviour || this.checked);
|
5675
5600
|
}
|
5676
5601
|
componentWillLoad() {
|
5677
5602
|
removeDisabledFalse(this.disabled, this.el);
|
5678
5603
|
addFormResetListener(this.el, this.handleFormReset);
|
5679
|
-
const
|
5680
|
-
if (
|
5604
|
+
const { parentElement } = this.el;
|
5605
|
+
if ((parentElement === null || parentElement === void 0 ? void 0 : parentElement.tagName) === "IC-CHECKBOX-GROUP") {
|
5606
|
+
const { name, label, size } = parentElement;
|
5681
5607
|
if (!this.name)
|
5682
|
-
this.name =
|
5683
|
-
this.
|
5608
|
+
this.name = name;
|
5609
|
+
if (!this.size)
|
5610
|
+
this.size = size;
|
5611
|
+
this.groupLabel = label;
|
5684
5612
|
}
|
5685
5613
|
}
|
5686
5614
|
componentDidLoad() {
|
5687
|
-
onComponentRequiredPropUndefined([
|
5688
|
-
{ prop: this.label, propName: "label" },
|
5689
|
-
{ prop: this.value, propName: "value" },
|
5690
|
-
], "Checkbox");
|
5615
|
+
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Checkbox");
|
5691
5616
|
}
|
5692
5617
|
componentDidRender() {
|
5693
5618
|
if (this.additionalFieldDisplay === "static") {
|
@@ -5712,28 +5637,27 @@ class Checkbox {
|
|
5712
5637
|
* Sets focus on the checkbox.
|
5713
5638
|
*/
|
5714
5639
|
async setFocus() {
|
5715
|
-
var _a
|
5716
|
-
(
|
5640
|
+
var _a;
|
5641
|
+
(_a = this.checkboxEl) === null || _a === void 0 ? void 0 : _a.focus();
|
5717
5642
|
}
|
5718
5643
|
render() {
|
5719
|
-
const { additionalFieldDisplay, checked, disabled, dynamicText, el, form,
|
5720
|
-
const id = `ic-checkbox-${
|
5721
|
-
const
|
5722
|
-
.size;
|
5644
|
+
const { additionalFieldDisplay, checked, disabled, displayIndeterminate, dynamicText, el, form, groupLabel, handleClick, hideLabel, label, name, size, theme, value, } = this;
|
5645
|
+
const id = `ic-checkbox-${label}-${groupLabel}`.replace(/ /g, "-");
|
5646
|
+
const isDynamicAdditionalField = additionalFieldDisplay === "dynamic";
|
5723
5647
|
checked
|
5724
|
-
? renderHiddenInput(
|
5648
|
+
? renderHiddenInput(el, value, name, disabled)
|
5725
5649
|
: removeHiddenInput(el);
|
5726
|
-
return (hAsync(Host, { key: '
|
5727
|
-
"ic-checkbox-disabled":
|
5728
|
-
[`ic-checkbox-${size
|
5650
|
+
return (hAsync(Host, { key: '0d58d68ec535b1c9e0157aff61052cefa02a21c8', class: {
|
5651
|
+
"ic-checkbox-disabled": disabled,
|
5652
|
+
[`ic-checkbox-${size}`]: !!size,
|
5729
5653
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
5730
|
-
} }, hAsync("div", { key: '
|
5654
|
+
} }, hAsync("div", { key: 'b86da60abffa74001b84db5159ff8b0e2afd4aaa', 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: '6d3e3805f3e9dcee22fab04e8a8bace142de8df8', role: "checkbox", class: {
|
5731
5655
|
checkbox: true,
|
5732
|
-
checked
|
5733
|
-
indeterminate:
|
5734
|
-
}, type: "checkbox", name: name, id: id, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick:
|
5735
|
-
"additional-field-wrapper":
|
5736
|
-
} }, hAsync("slot", { key: '
|
5656
|
+
checked,
|
5657
|
+
indeterminate: displayIndeterminate,
|
5658
|
+
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: id, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel ? label : undefined }), !hideLabel && (hAsync("ic-typography", { key: '5f6303736627c301bcc855dc5376c26f7edfa1af', class: "checkbox-label", variant: "body" }, hAsync("label", { key: 'aaad8092830165c169d26461d523d61fea02c859', htmlFor: id }, label)))), isSlotUsed(el, "additional-field") && (hAsync("div", { key: '64a75739762fb8bb082983408eb97fae99ec616a', class: "dynamic-container", ref: (el) => (this.additionalFieldContainer = el) }, isDynamicAdditionalField && hAsync("div", { key: 'ec3d2e0518c07747e33ac3ede567f3246e07852f', class: "branch-corner" }), hAsync("div", { key: '348ef60f64d5ae8cbe208910c30a3c45e9b115d7' }, isDynamicAdditionalField && (hAsync("ic-typography", { key: 'e4942c3cdb030693a90da2b8f38da3fe6f7b5fe4', variant: "caption" }, hAsync("p", { key: '925c10247c2b2532755c1306f69ec5c4cf7537bd', class: "dynamic-text", "aria-live": "polite" }, dynamicText))), hAsync("div", { key: '0cf7e06e8e06aa2830c1040069f00e2dca6844f2', class: {
|
5659
|
+
"additional-field-wrapper": !isDynamicAdditionalField,
|
5660
|
+
} }, hAsync("slot", { key: 'f7b465d8706b73a608e1df76f0119f0ea3d08343', name: "additional-field" })))))));
|
5737
5661
|
}
|
5738
5662
|
static get delegatesFocus() { return true; }
|
5739
5663
|
get el() { return getElement(this); }
|
@@ -5752,14 +5676,14 @@ class Checkbox {
|
|
5752
5676
|
"dynamicText": [1, "dynamic-text"],
|
5753
5677
|
"form": [1],
|
5754
5678
|
"groupLabel": [1025, "group-label"],
|
5679
|
+
"hideLabel": [4, "hide-label"],
|
5755
5680
|
"indeterminate": [4],
|
5756
5681
|
"label": [1],
|
5757
5682
|
"name": [1025],
|
5758
5683
|
"nativeIndeterminateBehaviour": [4, "native-indeterminate-behaviour"],
|
5759
|
-
"size": [
|
5684
|
+
"size": [1025],
|
5760
5685
|
"theme": [1],
|
5761
5686
|
"value": [1],
|
5762
|
-
"hideLabel": [4, "hide-label"],
|
5763
5687
|
"initiallyChecked": [32],
|
5764
5688
|
"displayIndeterminate": [32],
|
5765
5689
|
"setFocus": [64]
|
@@ -5773,12 +5697,12 @@ class Checkbox {
|
|
5773
5697
|
const icCheckboxGroupCss = "/*! 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;--ic-input-label-text-color:var(--ic-checkbox-group-label);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle);--ic-input-validation-error:var(--ic-checkbox-state-icon-error);--ic-input-validation-status-text-color:var(--ic-checkbox-state-text)}:host(.ic-checkbox-group-disabled){--ic-input-label-text-color:var(--ic-checkbox-group-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-checkbox-group-subtitle-disabled\n )}ic-input-label.error{color:var(--ic-checkbox-group-label-error);--ic-typography-color:var(--ic-checkbox-group-label-error);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle-error)}ic-input-label ic-typography{margin-bottom:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-label ic-typography{margin-bottom:calc(var(--ic-space-sm) / 2)}ic-input-validation{margin-top:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-validation{margin-top:calc(var(--ic-space-sm) / 2)}.checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxs))}:host(.ic-checkbox-group-small) .checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxxs))}.screen-reader-only-text{position:absolute;left:-9999px;background-color:#fff;color:#000;text-transform:none}.screen-reader-only-text:dir(rtl){right:-9999px}";
|
5774
5698
|
var IcCheckboxGroupStyle0 = icCheckboxGroupCss;
|
5775
5699
|
|
5700
|
+
const CHECKBOX_SELECTOR = "ic-checkbox";
|
5776
5701
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
5777
5702
|
class CheckboxGroup {
|
5778
5703
|
constructor(hostRef) {
|
5779
5704
|
registerInstance(this, hostRef);
|
5780
5705
|
this.icChange = createEvent(this, "icChange", 7);
|
5781
|
-
this.checkboxSelector = "ic-checkbox";
|
5782
5706
|
/**
|
5783
5707
|
* If `true`, the checkbox group will be set to the disabled state.
|
5784
5708
|
*/
|
@@ -5816,7 +5740,7 @@ class CheckboxGroup {
|
|
5816
5740
|
removeDisabledFalse(this.disabled, this.el);
|
5817
5741
|
}
|
5818
5742
|
labelNameHandler(newValue, oldValue, propName) {
|
5819
|
-
Array.from(this.el.querySelectorAll(
|
5743
|
+
Array.from(this.el.querySelectorAll(CHECKBOX_SELECTOR)).forEach((checkbox) => {
|
5820
5744
|
if (propName === "label")
|
5821
5745
|
checkbox.groupLabel = newValue;
|
5822
5746
|
else if (checkbox.name === oldValue) {
|
@@ -5826,7 +5750,7 @@ class CheckboxGroup {
|
|
5826
5750
|
});
|
5827
5751
|
}
|
5828
5752
|
watchThemeHandler(newValue) {
|
5829
|
-
Array.from(this.el.querySelectorAll(
|
5753
|
+
Array.from(this.el.querySelectorAll(CHECKBOX_SELECTOR)).forEach((checkbox) => {
|
5830
5754
|
checkbox.theme = newValue;
|
5831
5755
|
});
|
5832
5756
|
}
|
@@ -5848,7 +5772,7 @@ class CheckboxGroup {
|
|
5848
5772
|
], "Checkbox Group");
|
5849
5773
|
}
|
5850
5774
|
selectHandler({ target }) {
|
5851
|
-
const checkedOptions = Array.from(this.el.querySelectorAll(
|
5775
|
+
const checkedOptions = Array.from(this.el.querySelectorAll(CHECKBOX_SELECTOR)).filter(({ checked, disabled }) => checked && !disabled);
|
5852
5776
|
this.icChange.emit({
|
5853
5777
|
value: checkedOptions.map(({ value }) => value),
|
5854
5778
|
checkedOptions: checkedOptions.map((opt) => {
|
@@ -5864,13 +5788,12 @@ class CheckboxGroup {
|
|
5864
5788
|
render() {
|
5865
5789
|
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationStatus, validationText, } = this;
|
5866
5790
|
const describedBy = getInputDescribedByText(name, helperText !== "", validationStatus !== "");
|
5867
|
-
|
5791
|
+
const renderSRText = validationStatus === "error" || required || hideLabel;
|
5792
|
+
return (hAsync(Host, { key: '14f796e660bc12e04a7deebc288de1987112a5f9', class: {
|
5793
|
+
"ic-checkbox-group-disabled": !!disabled,
|
5868
5794
|
[`ic-checkbox-group-${size}`]: true,
|
5869
|
-
[`ic-checkbox-group-disabled`]: !!disabled,
|
5870
5795
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
5871
|
-
} },
|
5872
|
-
? "screenReaderOnlyText"
|
5873
|
-
: ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: '4fb8b826e1bcd293c7952ecce033758f0cd16cc3' }, hAsync("ic-input-label", { key: 'c2e149bd304c9722fa874d489f0ed5141ce216fc', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }))), hAsync("div", { key: 'af7929cc1b1aa0cb68a4c154c2847d0eb1486726', class: "checkboxes-container" }, hAsync("slot", { key: 'da09cbc97224437899f4fd0ed9c9b79149b76963' }))), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: '2187e8455d81cfda15f962182f12c17180bba4c8', for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
5796
|
+
} }, renderSRText && (hAsync("span", { key: 'ffe548e83ebbdb80220e20c469fb2c81f9dea8f3', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { key: '3b6d7864c62969a582875afce0ba9baac6d17a85', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: 'f7dd53b9c3a5bda90854e9033c90f9a65732498e' }, hAsync("ic-input-label", { key: '3781f0c225a7ac7a2c905d3d58130f7a53b10357', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }))), hAsync("div", { key: '48064a6c2137e78656c3187765d75123f0fd9ab5', class: "checkboxes-container" }, hAsync("slot", { key: '3322f03cf4dfb88b764da8d37555e89790bfa43c' }))), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: '18f9971669d4068210360d4cb49233d8fbb9c70c', for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
5874
5797
|
}
|
5875
5798
|
get el() { return getElement(this); }
|
5876
5799
|
static get watchers() { return {
|
@@ -5906,7 +5829,7 @@ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org
|
|
5906
5829
|
</svg>
|
5907
5830
|
`;
|
5908
5831
|
|
5909
|
-
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}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding: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}@media (prefers-reduced-motion: no-preference){.chip{transition:var(--ic-easing-transition-fast)}}.chip.small{padding:var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.chip.large{padding:var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.label{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{width:var(--ic-space-lg);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)}@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}}";
|
5832
|
+
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}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding: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}@media (prefers-reduced-motion: no-preference){.chip{transition:var(--ic-easing-transition-fast)}}.chip.small{padding:var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.chip.large{padding:var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.label{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{width:var(--ic-space-lg);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}}";
|
5910
5833
|
var IcChipStyle0 = icChipCss;
|
5911
5834
|
|
5912
5835
|
/**
|
@@ -5917,8 +5840,7 @@ class Chip {
|
|
5917
5840
|
constructor(hostRef) {
|
5918
5841
|
registerInstance(this, hostRef);
|
5919
5842
|
this.icDismiss = createEvent(this, "icDismiss", 7);
|
5920
|
-
this.
|
5921
|
-
this.customColorClass = "";
|
5843
|
+
this.foregroundColor = null;
|
5922
5844
|
this.hovered = false;
|
5923
5845
|
this.visible = true;
|
5924
5846
|
/**
|
@@ -5929,6 +5851,10 @@ class Chip {
|
|
5929
5851
|
* If `true`, the chip will have a close button at the end to dismiss it.
|
5930
5852
|
*/
|
5931
5853
|
this.dismissible = false;
|
5854
|
+
/**
|
5855
|
+
* The text in the dismiss button tooltip and aria label. Makes the user aware of the action resulting from clicking the 'Dismiss chip' button.
|
5856
|
+
*/
|
5857
|
+
this.dismissLabel = "Dismiss";
|
5932
5858
|
/**
|
5933
5859
|
* The size of the chip.
|
5934
5860
|
*/
|
@@ -5946,10 +5872,6 @@ class Chip {
|
|
5946
5872
|
* The emphasis of the chip.
|
5947
5873
|
*/
|
5948
5874
|
this.variant = "filled";
|
5949
|
-
/**
|
5950
|
-
* The text in the dismiss button tooltip and aria label.
|
5951
|
-
*/
|
5952
|
-
this.dismissLabel = "Dismiss";
|
5953
5875
|
this.dismissAction = () => {
|
5954
5876
|
this.icDismiss.emit();
|
5955
5877
|
};
|
@@ -5959,23 +5881,16 @@ class Chip {
|
|
5959
5881
|
this.mouseLeaveHandler = () => {
|
5960
5882
|
this.hovered = false;
|
5961
5883
|
};
|
5962
|
-
this.setChipColour = () => {
|
5963
|
-
const colorRGBA = this.customColor ? convertToRGBA(this.customColor) : null;
|
5964
|
-
if (colorRGBA) {
|
5965
|
-
const { r, g, b, a } = colorRGBA;
|
5966
|
-
this.customColorClass =
|
5967
|
-
(r * 299 + g * 587 + b * 114) / 1000 > 133.3505
|
5968
|
-
? "ic-chip-dark-text"
|
5969
|
-
: "ic-chip-light-text";
|
5970
|
-
this.el.setAttribute("style", `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`);
|
5971
|
-
}
|
5972
|
-
else {
|
5973
|
-
this.customColorClass = "";
|
5974
|
-
}
|
5975
|
-
};
|
5976
5884
|
}
|
5977
5885
|
customColorHandler() {
|
5978
|
-
this.
|
5886
|
+
const colorRGBA = this.customColor && convertToRGBA(this.customColor);
|
5887
|
+
if (!colorRGBA) {
|
5888
|
+
this.foregroundColor = null;
|
5889
|
+
return;
|
5890
|
+
}
|
5891
|
+
const { r, g, b, a } = colorRGBA;
|
5892
|
+
this.foregroundColor = getBrandForegroundAppearance((r * 299 + g * 587 + b * 114) / 1000);
|
5893
|
+
this.el.setAttribute("style", `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`);
|
5979
5894
|
}
|
5980
5895
|
watchDisabledHandler() {
|
5981
5896
|
removeDisabledFalse(this.disabled, this.el);
|
@@ -5984,11 +5899,6 @@ class Chip {
|
|
5984
5899
|
removeDisabledFalse(this.disabled, this.el);
|
5985
5900
|
this.customColorHandler();
|
5986
5901
|
}
|
5987
|
-
componentWillRender() {
|
5988
|
-
if (isElInAGGrid(this.el)) {
|
5989
|
-
this.inAGGrid = true;
|
5990
|
-
}
|
5991
|
-
}
|
5992
5902
|
componentDidLoad() {
|
5993
5903
|
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Chip");
|
5994
5904
|
}
|
@@ -5999,23 +5909,24 @@ class Chip {
|
|
5999
5909
|
* Sets focus on the chip.
|
6000
5910
|
*/
|
6001
5911
|
async setFocus() {
|
6002
|
-
var _a
|
6003
|
-
(
|
5912
|
+
var _a;
|
5913
|
+
(_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
|
6004
5914
|
}
|
6005
5915
|
render() {
|
6006
|
-
const { label, variant, size, dismissible, visible, disabled, hovered, theme,
|
6007
|
-
|
5916
|
+
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
5917
|
+
const ariaLabel = `${label} chip`;
|
5918
|
+
return (hAsync(Host, { key: '9a61d8ecacb78fcdf17dbbaf32e1cf79de705d78', class: {
|
6008
5919
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6009
|
-
[
|
6010
|
-
} }, visible && (hAsync("div", { key: '
|
5920
|
+
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
5921
|
+
} }, visible && (hAsync("div", { key: '5cfa78f3d8647cf3f6a98649bfe583af89f3458f', class: {
|
6011
5922
|
chip: true,
|
6012
5923
|
[`${variant}`]: true,
|
6013
5924
|
[`${size}`]: true,
|
6014
|
-
disabled
|
6015
|
-
dismissible
|
5925
|
+
disabled,
|
5926
|
+
dismissible,
|
6016
5927
|
hovered,
|
6017
|
-
"non-transparent":
|
6018
|
-
} }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '
|
5928
|
+
"non-transparent": variant === "outlined" && !transparentBackground,
|
5929
|
+
} }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: 'd7f72306a186b66c4a215a3928655989870e34b3', class: "icon" }, hAsync("slot", { key: '71b8d9a59d43e0580e7f56c1977f2992ee582d95', name: "icon" }))), hAsync("ic-typography", { key: '46ba6cddc7c12f2c246cc2d23e6d403517ad54b3', variant: "label", "apply-vertical-margins": false, class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, hAsync("span", { key: '7e62d43da1b1d21a3b660839154aaaaedf96f935' }, label)), dismissible && (hAsync("ic-tooltip", { key: 'c82c6387a16c2cf5006710b1623a332a1f5f3122', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, hAsync("button", { key: '0411f0e6d7ce468a6f7a489e652240724dee0213', 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: '31e71e22e0d9b8755a8bc483934aabcc4ccb9033', name: "badge" }))), dismissible && (hAsync("div", { key: 'c899f3ba330e9231e461b7869363ce85ff005b31', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
|
6019
5930
|
}
|
6020
5931
|
static get delegatesFocus() { return true; }
|
6021
5932
|
get el() { return getElement(this); }
|
@@ -6031,13 +5942,13 @@ class Chip {
|
|
6031
5942
|
"customColor": [1, "custom-color"],
|
6032
5943
|
"disabled": [4],
|
6033
5944
|
"dismissible": [4],
|
5945
|
+
"dismissLabel": [1, "dismiss-label"],
|
6034
5946
|
"label": [1],
|
6035
5947
|
"size": [1],
|
6036
5948
|
"theme": [1],
|
6037
5949
|
"transparentBackground": [4, "transparent-background"],
|
6038
5950
|
"variant": [1],
|
6039
|
-
"
|
6040
|
-
"customColorClass": [32],
|
5951
|
+
"foregroundColor": [32],
|
6041
5952
|
"hovered": [32],
|
6042
5953
|
"visible": [32],
|
6043
5954
|
"setFocus": [64]
|
@@ -6143,10 +6054,10 @@ class DataList {
|
|
6143
6054
|
if (size === "small") {
|
6144
6055
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
6145
6056
|
}
|
6146
|
-
return (hAsync(Host, { key: '
|
6057
|
+
return (hAsync(Host, { key: '6f83752c95bc937a1fcc825cfaefa57f3103b71d', class: {
|
6147
6058
|
"ic-data-list-small": size === "small",
|
6148
6059
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6149
|
-
} }, hAsync("div", { key: '
|
6060
|
+
} }, hAsync("div", { key: '1d2299d6bf8a13cba28b18d33ec8e1387c624cc5', class: "heading", id: "data-list-heading" }, hAsync("slot", { key: '2f8b5c7bbb30d4c11bc08947737c7c9d7f0e91ed', name: "heading" }, hAsync("ic-typography", { key: '7665e122d1da3e292abf459f0456e64c966eb65d', variant: "h3" }, heading))), hAsync("div", { key: '44be7746fb08b772fc9bb38cd673811026fe4092', class: "divider" }), hAsync("ul", { key: '8aa11aeada0518d6d9db18f3c962863e1414b02b', "aria-labelledby": "data-list-heading", class: "rows" }, hAsync("slot", { key: '18635edff92562810f11056cb750615884e28efe' }))));
|
6150
6061
|
}
|
6151
6062
|
get el() { return getElement(this); }
|
6152
6063
|
static get style() { return IcDataListStyle0; }
|
@@ -6236,12 +6147,12 @@ class DataRow {
|
|
6236
6147
|
}
|
6237
6148
|
render() {
|
6238
6149
|
const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
|
6239
|
-
return (hAsync(Host, { key: '
|
6150
|
+
return (hAsync(Host, { key: '572e916da4b05c25ef2d30d186e80b08f3dfb5b5', class: {
|
6240
6151
|
["ic-data-row-small"]: size === "small",
|
6241
6152
|
["breakpoint-medium"]: listSize === "m",
|
6242
6153
|
["breakpoint-xs"]: listSize === "xs",
|
6243
6154
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6244
|
-
}, role: "listitem" }, hAsync("div", { key: '
|
6155
|
+
}, role: "listitem" }, hAsync("div", { key: '3fd5751be8c21404dfbe1c37d121103d7bc32ec5', class: "data" }, hAsync("div", { key: '9dfd49f76340e059ad39cda8f7a28d7d51edeb5a', class: "text-cells" }, (isSlotUsed(el, "label") || label) && renderCellContent("label"), (isSlotUsed(el, "value") || value) && renderCellContent("value")), hasEndComponent && (hAsync("div", { key: '0b64f2937db81ddb2aa12ea4a3d6a19ba69c925b', class: "end-component" }, hAsync("slot", { key: 'fe70b486ca8ccc5f409fe805a772bd0110752a75', name: "end-component" })))), hAsync("div", { key: '286f657395d2d77dd8d2783a395d02f897fd361b', class: "divider" })));
|
6245
6156
|
}
|
6246
6157
|
get el() { return getElement(this); }
|
6247
6158
|
static get style() { return IcDataRowStyle0; }
|
@@ -6603,7 +6514,7 @@ class Dialog {
|
|
6603
6514
|
}
|
6604
6515
|
render() {
|
6605
6516
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme } = this;
|
6606
|
-
return (hAsync(Host, { key: '
|
6517
|
+
return (hAsync(Host, { key: '11ce388b78e337682fcd54494a076789d488b86b', class: {
|
6607
6518
|
"ic-dialog-hidden": !dialogRendered,
|
6608
6519
|
"ic-dialog-fade-in": fadeIn,
|
6609
6520
|
"disable-height-constraint": !!disableHeightConstraint,
|
@@ -6803,11 +6714,11 @@ class EmptyState {
|
|
6803
6714
|
}
|
6804
6715
|
render() {
|
6805
6716
|
const { aligned, body, maxLines, heading, imageSize, subheading, theme } = this;
|
6806
|
-
return (hAsync(Host, { key: '
|
6717
|
+
return (hAsync(Host, { key: '16659f35d2b14d9a5e32fe6c61619fbafdf58f53', class: {
|
6807
6718
|
[`ic-empty-state-${aligned}`]: true,
|
6808
6719
|
[`image-${imageSize}`]: isSlotUsed(this.el, "image"),
|
6809
6720
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6810
|
-
} }, isSlotUsed(this.el, "image") && hAsync("slot", { key: '
|
6721
|
+
} }, isSlotUsed(this.el, "image") && hAsync("slot", { key: 'ccc8a2daf0041d9dd5e611d3b60c96820271745b', name: "image" }), hAsync("div", { key: 'ab68dff198b63394d890399ec53b9befbb70f222' }, hAsync("slot", { key: 'fe99ebbfe6b9c899d4b1fb5737df268e0bc38bb4', name: "heading" }, hAsync("ic-typography", { key: 'eea6eb657e09159b27935e16864961b95387a3d6', variant: "h4", class: "empty-state-heading" }, heading)), hAsync("slot", { key: 'ca04ac75d72fc5864ed7821bf9d16c8999eac3aa', name: "subheading" }, hAsync("ic-typography", { key: '257a4f73c4fb3577e4c1653607a492b4f4d18470', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), hAsync("slot", { key: 'f0efda6128d1b5a5f2b280faf23940b0832e3121', name: "body" }, hAsync("ic-typography", { key: '128849e7a458b1ff7b51079eeb9f6967df88cef1', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed(this.el, "actions") && (hAsync("div", { key: '22cf30fd1f3636fb3344689c4435b59d4148bb5f', class: "action-area" }, hAsync("slot", { key: 'c4e187603beb9b2291c9e038202ff651d4decfff', name: "actions" })))));
|
6811
6722
|
}
|
6812
6723
|
get el() { return getElement(this); }
|
6813
6724
|
static get style() { return IcEmptyStateStyle0; }
|
@@ -7000,12 +6911,12 @@ class FooterLink {
|
|
7000
6911
|
const { footerConfig, href, hreflang, referrerpolicy, rel, target, download, } = this;
|
7001
6912
|
const { small, grouped } = footerConfig;
|
7002
6913
|
const isLogoLink = !!this.el.closest("div[slot='logo']");
|
7003
|
-
return (hAsync(Host, { key: '
|
6914
|
+
return (hAsync(Host, { key: 'b093247260ef7378ef3aa666029e463641eb20c0', class: {
|
7004
6915
|
"footer-link": true,
|
7005
6916
|
[`footer-link-${grouped ? "grouped" : "ungrouped"}-${small ? "small" : "sparse"}`]: true,
|
7006
6917
|
[`footer-link-${this.foregroundColor}`]: true,
|
7007
6918
|
"footer-logo-link": isLogoLink,
|
7008
|
-
}, role: "listitem" }, hAsync("ic-link", { key: '
|
6919
|
+
}, role: "listitem" }, hAsync("ic-link", { key: '79ac221357a96ca920f68609bb390a30f53be256', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, hAsync("slot", { key: '06182bca4f4268ca01466a411a8de43671fbea24' }))));
|
7009
6920
|
}
|
7010
6921
|
static get delegatesFocus() { return true; }
|
7011
6922
|
get el() { return getElement(this); }
|
@@ -7180,17 +7091,17 @@ class Hero {
|
|
7180
7091
|
"background-position": scrollFactor,
|
7181
7092
|
};
|
7182
7093
|
}
|
7183
|
-
return (hAsync(Host, { key: '
|
7094
|
+
return (hAsync(Host, { key: 'e03ade9bdd2567cd7ab8c1072bbdd90b3d75e3d8', class: {
|
7184
7095
|
[`ic-hero-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
7185
7096
|
["has-background-image"]: backgroundImage !== undefined,
|
7186
7097
|
["ic-hero-small"]: size === "small",
|
7187
7098
|
["secondary-heading"]: !!secondaryHeading,
|
7188
|
-
}, style: style }, hAsync("ic-section-container", { key: '
|
7099
|
+
}, style: style }, hAsync("ic-section-container", { key: 'af3bd63ec96401bf7db7238c8ceb5f2c867f4a0b', aligned: aligned, fullHeight: true, class: "section-container" }, hAsync("div", { key: '8a37d137f390c9203973349f4fc3c2d2616045a9', class: {
|
7189
7100
|
["left-container"]: true,
|
7190
7101
|
["left-container-full-width"]: this.leftContentFullWidth,
|
7191
|
-
} }, hAsync("div", { key: '
|
7102
|
+
} }, hAsync("div", { key: 'a5796632e455cafaa95e2d03a7a653c04362aad6', class: "heading" }, hAsync("slot", { key: '48c41d241497410ecd63ceccd3de26e350b1261d', name: "heading" }, hAsync("ic-typography", { key: '6a6a601125d672f0ccd9c83dc51a016dd15e3e8d', variant: size === "small" ? "h2" : "h1", class: {
|
7192
7103
|
["heading-bottom-spacing"]: size !== "small",
|
7193
|
-
} }, hAsync("h2", { key: '
|
7104
|
+
} }, hAsync("h2", { key: 'c467063d6438bb2cc0ce9c04dd73408c184193c2' }, heading)))), hAsync("div", { key: '677298e8979a2220a3c6f468476c1f2b1777a3af', class: "subheading" }, hAsync("slot", { key: 'e2a55ff9eb1373c7b2c598909bee840a9224d606', name: "subheading" }, hAsync("ic-typography", { key: '6fbfaad27a0439f6e0bf469757a1238e307683ac', variant: "body" }, subheading))), hAsync("div", { key: '423aafd1dc41ca03887a59730e5880e23e2964b6', class: "interaction-container" }, hAsync("slot", { key: '186057e873764afda68fad740fb8cb2826071b11', name: "interaction" }))), (isPropDefined(secondaryHeading) || this.rightContent) && (hAsync("div", { key: '93910106562c1fc044d4a2a8126ff272905a34bf', class: "right-container" }, hAsync("slot", { key: 'e801d684ed24de1e7138b6edb525e288c0461d60', name: "secondary" }, secondaryHeading && (hAsync("div", { key: 'b602ea433de5de2d04522ac0f448c0422e886faa', class: "secondary-container" }, hAsync("div", { key: 'd538d984f09bc748dc7c23599439bf7eba85f830', class: "secondary-heading" }, hAsync("ic-typography", { key: '68d89508c9660f675ed35c0fa18f6cfde2cb5288', variant: "h4" }, hAsync("h3", { key: '07285a037d0bfb1b397d9b0b96511804c7afc464' }, secondaryHeading))), hAsync("div", { key: '6187e9026f1526f5c5d5c5e62bc1360fb869ef12', class: "secondary-subheading" }, hAsync("ic-typography", { key: '6172800b84a3628d472b0cf7a1c3b52ff41a0aec', variant: "subtitle-small" }, secondarySubheading))))))))));
|
7194
7105
|
}
|
7195
7106
|
get el() { return getElement(this); }
|
7196
7107
|
static get style() { return IcHeroStyle0; }
|
@@ -7381,22 +7292,22 @@ class HorizontalScroll {
|
|
7381
7292
|
}
|
7382
7293
|
render() {
|
7383
7294
|
const { firstItemVisible, lastItemVisible, itemOverflow } = this;
|
7384
|
-
return (hAsync(Host, { key: '
|
7295
|
+
return (hAsync(Host, { key: '329d00bc4e7ebfab434cb41dd32e919820c5adb5', class: {
|
7385
7296
|
["ic-horizontal-scroll-visible"]: itemOverflow,
|
7386
7297
|
["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum.Dark,
|
7387
7298
|
["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum.Light,
|
7388
7299
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
7389
|
-
} }, hAsync("div", { key: '
|
7300
|
+
} }, hAsync("div", { key: 'ed231bf1fcd68399e29e790026b377bf8f96a14e', "aria-hidden": "true", class: {
|
7390
7301
|
["scroll-container-left"]: true,
|
7391
7302
|
["hidden"]: !itemOverflow,
|
7392
7303
|
["disabled"]: firstItemVisible,
|
7393
|
-
}, role: "tab" }, hAsync("ic-button", { key: '
|
7304
|
+
}, role: "tab" }, hAsync("ic-button", { key: 'c34f45cb44e242939985f792a21e482a11078fba', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
|
7394
7305
|
? "dark"
|
7395
|
-
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: '
|
7306
|
+
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: 'c5b52e4cfa655f8dc499e69da531870f4e4fe216', class: "scroll-splitter-left" })), hAsync("slot", { key: '8478dc63668ed2e842182c47e9a3b27b77ac642f' }), hAsync("div", { key: 'b9b0e21e69a40f7afda403db3db8b983257240c0', "aria-hidden": "true", class: {
|
7396
7307
|
["scroll-container-right"]: true,
|
7397
7308
|
["hidden"]: !itemOverflow,
|
7398
7309
|
["disabled"]: lastItemVisible,
|
7399
|
-
}, role: "tab" }, hAsync("span", { key: '
|
7310
|
+
}, role: "tab" }, hAsync("span", { key: '909936dddf54502bb1bdc3fdfdf36d59b5582238', class: "scroll-splitter-right" }), hAsync("ic-button", { key: '4e9093a9da1b3e387933dfc2495f1279bb7ad180', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll right", theme: this.theme === "light" || this.theme === "inherit"
|
7400
7311
|
? "dark"
|
7401
7312
|
: "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
|
7402
7313
|
}
|
@@ -7471,15 +7382,15 @@ class InputComponentContainer {
|
|
7471
7382
|
}
|
7472
7383
|
render() {
|
7473
7384
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
7474
|
-
return (hAsync(Host, { key: '
|
7385
|
+
return (hAsync(Host, { key: '86271007106caa930e823cd2a9b9242670a1d2c1', class: {
|
7475
7386
|
[`ic-input-component-container-${size}`]: true,
|
7476
7387
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
7477
7388
|
"ic-input-component-container-disabled": !!disabled,
|
7478
7389
|
"ic-input-component-container-readonly": !!readonly,
|
7479
7390
|
"ic-input-component-container-multiline": !!multiLine,
|
7480
7391
|
"ic-input-component-container-full-width": !!fullWidth,
|
7481
|
-
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '
|
7482
|
-
validationStatus === IcInformationStatus.Success && (hAsync("span", { key: '
|
7392
|
+
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '2b8e64e7cc2d78b34b816b080f7e5856b4aef254', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (hAsync("div", { key: '738e1d776664a7971bd97f36a68b8193849178ae', class: "icon-container" }, hAsync("slot", { key: 'c6d5fa181367e1988b3e454b06c01345afa393ff', name: "left-icon" }))), hAsync("slot", { key: '970ccdc08abd4dbf84248cc5708ab09ecbcbc0ae' }), validationInline &&
|
7393
|
+
validationStatus === IcInformationStatus.Success && (hAsync("span", { key: '6c7cbd9c69c11a8688972039ba519829805d3ab7', class: "inline-success", innerHTML: successIcon })))));
|
7483
7394
|
}
|
7484
7395
|
get el() { return getElement(this); }
|
7485
7396
|
static get watchers() { return {
|
@@ -7520,11 +7431,11 @@ class InputContainer {
|
|
7520
7431
|
this.readonly = false;
|
7521
7432
|
}
|
7522
7433
|
render() {
|
7523
|
-
return (hAsync(Host, { key: '
|
7434
|
+
return (hAsync(Host, { key: 'ffa7ae6f683f172205085d3ade5af4ed2b665f5e' }, hAsync("div", { key: 'e010e17e975c12a26c9ae66cb604ca561882901b', class: {
|
7524
7435
|
["component-container"]: true,
|
7525
7436
|
["disabled"]: !!this.disabled,
|
7526
7437
|
["readonly"]: !!this.readonly,
|
7527
|
-
} }, hAsync("slot", { key: '
|
7438
|
+
} }, hAsync("slot", { key: '202931f1bc8d2ab341753c23464e266fd899a15d' }))));
|
7528
7439
|
}
|
7529
7440
|
static get style() { return IcInputContainerStyle0; }
|
7530
7441
|
static get cmpMeta() { return {
|
@@ -7581,18 +7492,18 @@ class InputLabel {
|
|
7581
7492
|
render() {
|
7582
7493
|
const { disabled, readonly, label, required, helperText, status, hideLabel, useLabelTag, } = this;
|
7583
7494
|
const labelText = required ? label + " *" : label;
|
7584
|
-
return (hAsync(Host, { key: '
|
7495
|
+
return (hAsync(Host, { key: '324edfe4443673e3c50afaf6abe1507dddf8c5a1', class: {
|
7585
7496
|
"ic-input-label-disabled": !!disabled,
|
7586
7497
|
"ic-input-label-readonly": readonly,
|
7587
7498
|
"with-helper": helperText !== "",
|
7588
|
-
} }, !hideLabel && (hAsync("ic-typography", { key: '
|
7499
|
+
} }, !hideLabel && (hAsync("ic-typography", { key: 'cc4776d1421cf7b93ff5bb5c0b148c82d9c42ef4', variant: "label", class: {
|
7589
7500
|
"readonly-label": readonly,
|
7590
7501
|
"error-label": status === "error" && !(readonly || disabled),
|
7591
|
-
} }, readonly || !useLabelTag ? (`${labelText}`) : (hAsync("label", { htmlFor: this.for }, labelText)))), helperText !== "" && (hAsync("ic-typography", { key: '
|
7502
|
+
} }, readonly || !useLabelTag ? (`${labelText}`) : (hAsync("label", { htmlFor: this.for }, labelText)))), helperText !== "" && (hAsync("ic-typography", { key: '8ccf12c8a4430108018f4ce1097359dbd23baefe', variant: "caption", class: {
|
7592
7503
|
helpertext: true,
|
7593
7504
|
"helpertext-normal": !disabled && !readonly,
|
7594
7505
|
"helpertext-readonly": readonly,
|
7595
|
-
} }, hAsync("span", { key: '
|
7506
|
+
} }, hAsync("span", { key: 'e6a63927e7da03f64b50f5b65be1eb63410f8dab', id: this.for && getInputHelperTextID(this.for) }, helperText)))));
|
7596
7507
|
}
|
7597
7508
|
static get style() { return IcInputLabelStyle0; }
|
7598
7509
|
static get cmpMeta() { return {
|
@@ -7648,13 +7559,13 @@ class InputValidation {
|
|
7648
7559
|
render() {
|
7649
7560
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
7650
7561
|
const displayIcon = status !== "" ? icon[status] : "";
|
7651
|
-
return (hAsync(Host, { key: '
|
7562
|
+
return (hAsync(Host, { key: 'f61832a182b954a8b114547acd18ce38576daf06', class: {
|
7652
7563
|
[`ic-input-validation-${status}`]: status !== "",
|
7653
7564
|
"ic-input-validation-full-width": !!fullWidth,
|
7654
|
-
} }, displayIcon !== "" && (hAsync("span", { key: '
|
7565
|
+
} }, displayIcon !== "" && (hAsync("span", { key: '2d0766ad790827b8757354c2dc3d29e3aa9a5f71', class: {
|
7655
7566
|
"status-icon": true,
|
7656
7567
|
[`icon-${status}`]: true,
|
7657
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
7568
|
+
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: 'b1a98a5b7fd18ab96cde1ff555410f35f76a66e2', variant: "caption", class: "statustext" }, hAsync("span", { key: '5306d723ea7527eb997d778e82fbe10e00af7852', "aria-live": ariaLiveMode, id: this.for && getInputValidationTextID(this.for) }, message)), hAsync("slot", { key: 'a7e3c126ac89a1c616a327da99b8324df7c4464e', name: "validation-message-adornment" })));
|
7658
7569
|
}
|
7659
7570
|
get el() { return getElement(this); }
|
7660
7571
|
static get style() { return IcInputValidationStyle0; }
|
@@ -7711,6 +7622,9 @@ class Link {
|
|
7711
7622
|
});
|
7712
7623
|
};
|
7713
7624
|
}
|
7625
|
+
watchDownloadHandler() {
|
7626
|
+
this.updateDownload();
|
7627
|
+
}
|
7714
7628
|
componentWillLoad() {
|
7715
7629
|
this.inheritedAttributes = inheritAttributes(this.el, IC_INHERITED_ARIA);
|
7716
7630
|
this.updateTheme();
|
@@ -7746,6 +7660,18 @@ class Link {
|
|
7746
7660
|
: IcBrandForegroundEnum.Light;
|
7747
7661
|
}
|
7748
7662
|
}
|
7663
|
+
updateDownload() {
|
7664
|
+
var _a;
|
7665
|
+
const element = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("a");
|
7666
|
+
if (element) {
|
7667
|
+
if (this.download) {
|
7668
|
+
element.setAttribute("download", this.download === true ? "" : this.download);
|
7669
|
+
}
|
7670
|
+
else {
|
7671
|
+
element.removeAttribute("download");
|
7672
|
+
}
|
7673
|
+
}
|
7674
|
+
}
|
7749
7675
|
hasRouterSlot() {
|
7750
7676
|
this.routerSlot = this.el.querySelector('[slot="router-item"]');
|
7751
7677
|
if (this.routerSlot) {
|
@@ -7755,16 +7681,19 @@ class Link {
|
|
7755
7681
|
}
|
7756
7682
|
render() {
|
7757
7683
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
7758
|
-
return (hAsync(Host, { key: '
|
7684
|
+
return (hAsync(Host, { key: 'b554bf4f2fc16dd66f7d393ae4813fe10c9a16f8', class: {
|
7759
7685
|
["ic-link"]: true,
|
7760
7686
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
7761
7687
|
["ic-link-monochrome"]: !!monochrome,
|
7762
7688
|
} }, this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync("a", Object.assign({ class: {
|
7763
7689
|
["link"]: !!href,
|
7764
|
-
}, download: download !==
|
7690
|
+
}, download: download !== true ? download : "", href: href, hrefLang: hreflang, referrerPolicy: referrerpolicy, rel: rel, target: target, tabindex: href ? "0" : "-1" }, this.inheritedAttributes, { part: "link" }), hAsync("slot", null), target === "_blank" && (hAsync("span", { class: "ic-link-open-in-new-icon", innerHTML: OpenInNew }))))));
|
7765
7691
|
}
|
7766
7692
|
static get delegatesFocus() { return true; }
|
7767
7693
|
get el() { return getElement(this); }
|
7694
|
+
static get watchers() { return {
|
7695
|
+
"download": ["watchDownloadHandler"]
|
7696
|
+
}; }
|
7768
7697
|
static get style() { return IcLinkStyle0; }
|
7769
7698
|
static get cmpMeta() { return {
|
7770
7699
|
"$flags$": 25,
|
@@ -7993,15 +7922,15 @@ class LoadingIndicator {
|
|
7993
7922
|
render() {
|
7994
7923
|
const { theme, label, description, size, fullWidth, innerLabel, monochrome, } = this;
|
7995
7924
|
const { x, y, r } = this.setCircleXY();
|
7996
|
-
return (hAsync(Host, { key: '
|
7925
|
+
return (hAsync(Host, { key: 'af8aecb7e2feb45574ce1dbce238e24ece0a7c14', class: {
|
7997
7926
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
7998
7927
|
"ic-loading-indicator-label": !!label,
|
7999
7928
|
"ic-loading-indicator-full-width": !!fullWidth,
|
8000
7929
|
"inner-label": !!innerLabel,
|
8001
7930
|
"ic-loading-indicator-monochrome": !!monochrome,
|
8002
|
-
} }, hAsync("div", { key: '
|
7931
|
+
} }, hAsync("div", { key: '46a3bbc13400779a3aa92324f84b2a0515a34a64', class: "ic-loading-container", part: "ic-loading-container" }, hAsync("div", { key: 'ff16f2f3f71e2338834eb1852f5b362332517a09', ref: (el) => (this.outerElement = el), class: this.calcOuterClass(), role: "progressbar", "aria-labelledby": this.label && this.size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": this.progress, "aria-valuemin": this.min, "aria-valuemax": this.max }, hAsync("div", { key: '4c0937928bd38982462ad36d6df98ecd5729b64e', ref: (el) => (this.innerElement = el), class: `ic-loading-${this.type}-inner` }, this.innerLabel &&
|
8003
7932
|
this.innerLabel !== undefined &&
|
8004
|
-
this.size === "small" && (hAsync("ic-typography", { key: '
|
7933
|
+
this.size === "small" && (hAsync("ic-typography", { key: '13c9dbbead841cf7995caefc63bb86d8c0e40d2d', variant: "subtitle-small", class: "inner-text" }, this.innerLabel)), this.type === "circular" && (hAsync("svg", { key: '12decbb0441c22e9c0f7f82b8c7737b24c44bf01', class: "ic-loading-circular-svg", viewBox: `0 0 ${this.circularDiameter || 0} ${this.circularDiameter || 0}` }, hAsync("circle", { key: '96ba0e0a054be9be9f707903ae8d8075ab92b360', cx: `${x}`, cy: `${y}`, r: `${r}` }), hAsync("circle", { key: 'b986b1626971075e86063a898948df490856cd3d', cx: `${x}`, cy: `${y}`, r: `${r}` }))))), label && size !== "icon" && (hAsync("ic-typography", { key: '5d3ceea4f339006c6389a99ea52befaea885988a', id: "ic-loading-label", class: "ic-loading-label", role: "status", variant: this.getLabelVariant() }, hAsync("p", { key: '5dfc851559b8ef4fb2b4fca4a002d87ad1b52d43' }, this.indicatorLabel))))));
|
8005
7934
|
}
|
8006
7935
|
get el() { return getElement(this); }
|
8007
7936
|
static get watchers() { return {
|
@@ -10758,7 +10687,7 @@ class Menu {
|
|
10758
10687
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, } = this;
|
10759
10688
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
10760
10689
|
const hasNoResults = this.host.classList.contains("no-results");
|
10761
|
-
return (hAsync(Host, { key: '
|
10690
|
+
return (hAsync(Host, { key: 'd0c5f5c23b4f20260852cefb5fedea21302e9d96', class: {
|
10762
10691
|
"ic-menu-full-width": !!fullWidth,
|
10763
10692
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
10764
10693
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
@@ -10767,7 +10696,7 @@ class Menu {
|
|
10767
10696
|
[`ic-menu-${size}`]: true,
|
10768
10697
|
"ic-menu-open": open && options.length !== 0,
|
10769
10698
|
"ic-menu-multiple": this.isMultiSelect,
|
10770
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
10699
|
+
} }, options.length !== 0 && (hAsync("ul", { key: '83a3eb54200af022e6868732e5a7b36d81be36a2', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": this.isMultiSelect ? "true" : "false", tabindex: open &&
|
10771
10700
|
!keyboardNav &&
|
10772
10701
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
10773
10702
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
@@ -10795,7 +10724,7 @@ class Menu {
|
|
10795
10724
|
this.isMultiSelect &&
|
10796
10725
|
!isLoading &&
|
10797
10726
|
!hasTimedOut &&
|
10798
|
-
!hasNoResults && (hAsync("div", { key: '
|
10727
|
+
!hasNoResults && (hAsync("div", { key: '0273a92b2489cf7c2e78c19925016f9fa1c7f8ce', class: "option-bar" }, hAsync("ic-typography", { key: '12fb3d62eff3d6d2545004d73f2de8726c4ee9e8' }, hAsync("p", { key: '661d0a4ca79cda7f6fa5d1e229baa0ed301599b9' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: '7b28845efcd6e7819d591e5811448db384ab9138', 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)))));
|
10799
10728
|
}
|
10800
10729
|
get host() { return getElement(this); }
|
10801
10730
|
static get watchers() { return {
|
@@ -10850,7 +10779,7 @@ class MenuGroup {
|
|
10850
10779
|
}
|
10851
10780
|
render() {
|
10852
10781
|
const parentMenu = this.el.closest("ic-popover-menu");
|
10853
|
-
return (hAsync(Host, { key: '
|
10782
|
+
return (hAsync(Host, { key: '384be493b4b4148e4a09f0395bb1db6b651bfc2f', role: "group", "aria-label": this.label !== null ? this.label : "" }, isPropDefined(this.label) && (hAsync("ic-typography", { key: '46982951ac8573a5ee8c5733043e109f268859f8', variant: "subtitle-small" }, this.label)), hAsync("span", { key: 'd5a5fe976b9f88e61df589c1ddc105c31b8639e2', class: "menu-items-wrapper" }, hAsync("slot", { key: '3b6cab53fde94c5a9cbc0a6a323c0aff28975a1c' })), this.el !== (parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.querySelector("ic-menu-group:last-child")) && (hAsync("hr", { key: '60412dd9914569ad72a6160787b48d8b3239cebb' }))));
|
10854
10783
|
}
|
10855
10784
|
get el() { return getElement(this); }
|
10856
10785
|
static get style() { return IcMenuGroupStyle0; }
|
@@ -10866,7 +10795,7 @@ class MenuGroup {
|
|
10866
10795
|
}; }
|
10867
10796
|
}
|
10868
10797
|
|
10869
|
-
const icMenuItemCss = "/*! 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}
|
10798
|
+
const icMenuItemCss = "/*! 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 ::part(button){color:var(--ic-popover-menu-item-check);--ic-typography-color:var(--ic-popover-menu-item-check);padding:calc(var(--ic-space-xxxs) / 2);display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:0;min-height:2.5rem;height:auto}.focus-border{display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:var(--ic-border-radius);margin:calc(var(--ic-space-xxxs) / 2);padding:var(--ic-space-xxs);border:var(--ic-space-xxxs) dashed transparent;--icon-height:auto}:host(.ic-menu-item-disabled) ::part(button){color:var(--ic-popover-menu-item-check-disabled) !important;--ic-typography-color:var(--ic-popover-menu-item-check-disabled) !important;pointer-events:none}:host(.ic-menu-item-disabled) .menu-item-label,:host(.ic-menu-item-disabled) .shortcut,:host(.ic-menu-item-disabled) .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-disabled) !important}:host([variant=\"destructive\"]) ::part(button){color:var(--ic-popover-menu-destructive-item-icon);--ic-typography-color:var(--ic-popover-menu-destructive-item-label)}:host ::part(button):hover{background-color:var(--ic-popover-background-hover)}:host ::part(button):focus-visible,:host ::part(button):focus{color:var(--ic-popover-menu-item-icon-focused);--ic-typography-color:purple;background-color:var(--ic-popover-background-focus);box-shadow:none}:host(.ic-menu-item-disabled) ::part(button):focus-visible,:host(.ic-menu-item-disabled) ::part(button):focus{color:var(--ic-popover-menu-item-icon-disabled) !important;--ic-typography-color:orange !important}:host([variant=\"destructive\"]) ::part(button):focus-visible,:host([variant=\"destructive\"]) ::part(button):focus{background-color:var(--ic-popover-destructive-background-focus)}ic-button:focus-within .menu-item-label,ic-button:focus-within .shortcut,ic-button:focus-within .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-focused)}:host(.ic-menu-item-disabled) ic-button:focus-within .focus-border{border-color:var(--ic-popover-menu-border)}:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,:host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-disabled) !important}:host ::part(button):active{background-color:var(--ic-popover-background-pressed);color:var(--ic-popover-menu-item-label) !important;--ic-typography-color:var(--ic-popover-menu-item-label) !important}:host([variant=\"destructive\"]) ::part(button):active{background-color:var(--ic-popover-background-pressed);color:var(--ic-popover-menu-destructive-item-label) !important;--ic-typography-color:var(\n --ic-popover-menu-destructive-item-label\n ) !important}.menu-item-info{display:flex;flex-direction:column;flex:1;align-items:baseline;white-space:pre-line;text-align:left}.menu-labels{display:flex;align-items:baseline;gap:var(--ic-space-xs)}.menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-description)}.shortcut{--ic-typography-color:var(--ic-popover-menu-item-shortcut);display:flex;flex:min-content}:host([variant=\"destructive\"]) .menu-item-label{text-transform:uppercase;font-weight:600;letter-spacing:0.025em}ic-button:active .menu-item-label{--ic-typography-color:var(--ic-popover-menu-item-label)}ic-button:active .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-description)}ic-button:active .shortcut{--ic-typography-color:var(--ic-popover-menu-item-shortcut)}:host([variant=\"destructive\"]) ic-button:active .menu-item-label{--ic-typography-color:var(\n --ic-popover-menu-destructive-item-label\n ) !important}.icon,.check-icon,.submenu-icon,.icon ::slotted(svg),.check-icon svg,.submenu-icon svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.check-icon.hide{visibility:hidden}@media (forced-colors: active){:host ::part(button){border:canvas}:host ::part(button):focus-visible{outline:var(--ic-space-xxxs) solid transparent}.focus-border{border-color:canvas}:host(.ic-menu-item-disabled) ic-button:focus-within .focus-border{border-color:GrayText}:host(.ic-menu-item-disabled) .menu-item-info,:host(.ic-menu-item-disabled) .menu-item-label,:host(.ic-menu-item-disabled) .shortcut,:host(.ic-menu-item-disabled) .menu-item-description,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-info,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,:host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description{--ic-typography-color:GrayText !important}:host(.ic-menu-item-disabled) ::part(button):focus-visible,:host(.ic-menu-item-disabled) ::part(button):focus{outline-color:GrayText !important}}";
|
10870
10799
|
var IcMenuItemStyle0 = icMenuItemCss;
|
10871
10800
|
|
10872
10801
|
/**
|
@@ -10957,17 +10886,17 @@ class MenuItem {
|
|
10957
10886
|
};
|
10958
10887
|
return (hAsync(Host, { class: {
|
10959
10888
|
["ic-menu-item-disabled"]: !!this.disabled,
|
10960
|
-
} }, hAsync("
|
10889
|
+
} }, hAsync("ic-button", { fullWidth: true, variant: "tertiary", onClick: this.handleClick, href: isPropDefined(this.href), hreflang: isPropDefined(this.hreflang), target: isPropDefined(this.target), rel: isPropDefined(this.rel), referrerpolicy: this.referrerpolicy, role: this.variant === "toggle" ? "menuitemcheckbox" : "menuitem", "aria-disabled": `${this.disabled}`, "aria-checked": this.variant === "toggle"
|
10961
10890
|
? this.checked
|
10962
10891
|
? "true"
|
10963
10892
|
: "false"
|
10964
|
-
: undefined
|
10893
|
+
: undefined, "aria-label": this.getMenuItemAriaLabel(), "aria-haspopup": isPropDefined(this.submenuTriggerFor) ||
|
10965
10894
|
this.el.classList.contains("ic-popover-submenu-back-button")
|
10966
10895
|
? "menu"
|
10967
10896
|
: false }, hAsync("div", { class: "focus-border" }, isSlotUsed(this.el, "icon") && (hAsync("span", { class: "icon" }, hAsync("slot", { name: "icon" }))), hAsync(MenuItemInformation, null), this.variant === "toggle" && (hAsync("span", { class: {
|
10968
10897
|
["check-icon"]: true,
|
10969
10898
|
["hide"]: !this.checked,
|
10970
|
-
}, "aria-hidden": "true", innerHTML: checkIcon })), isPropDefined(this.submenuTriggerFor) && (hAsync("span", { class: { ["submenu-icon"]: true }, "aria-hidden": "true", innerHTML: chevronIcon }))))))
|
10899
|
+
}, "aria-hidden": "true", innerHTML: checkIcon })), isPropDefined(this.submenuTriggerFor) && (hAsync("span", { class: { ["submenu-icon"]: true }, "aria-hidden": "true", innerHTML: chevronIcon }))))));
|
10971
10900
|
}
|
10972
10901
|
static get delegatesFocus() { return true; }
|
10973
10902
|
get el() { return getElement(this); }
|
@@ -11101,10 +11030,10 @@ class NavigationButton {
|
|
11101
11030
|
fullWidth,
|
11102
11031
|
disableTooltip,
|
11103
11032
|
};
|
11104
|
-
return (hAsync(Host, { key: '
|
11033
|
+
return (hAsync(Host, { key: 'a750cb73987d5c9d0c7bcdb6ece9807bcc688c9f', class: {
|
11105
11034
|
["in-side-menu"]: this.mode === "menu",
|
11106
11035
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
11107
|
-
} }, hAsync("ic-button", Object.assign({ key: '
|
11036
|
+
} }, hAsync("ic-button", Object.assign({ key: 'd55eb3e8c54c6bb76e61044af2a5b1a2dddafbf6', class: className, "aria-label": variant == "icon" ? this.label : null, ref: (el) => (this.buttonEl = el) }, buttonProps, this.inheritedAttributes, { monochrome: this.mode !== "menu", theme: getBrandForegroundAppearance() == "light" ? "light" : "dark" }), label, hAsync("slot", { key: '4193d9cd02c05a3b12946233cb86256e2c729abc', slot: "left-icon", name: "icon" }), isSlotUsed(this.el, "badge") && hAsync("slot", { key: 'a53d6158424e97fddc62b25006f6060b2cbee4c5', name: "badge" }))));
|
11108
11037
|
}
|
11109
11038
|
static get delegatesFocus() { return true; }
|
11110
11039
|
get el() { return getElement(this); }
|
@@ -11441,7 +11370,7 @@ class NavigationGroup {
|
|
11441
11370
|
const isSideNav = this.navigationType === "side";
|
11442
11371
|
const isTopNav = this.navigationType === "top";
|
11443
11372
|
const ariaExpanded = (isSideNav && expanded) || (isTopNav && dropdownOpen);
|
11444
|
-
return (hAsync(Host, { key: '
|
11373
|
+
return (hAsync(Host, { key: 'd89ce479bb2f5142a2ef6dd2284229a73367c916', class: {
|
11445
11374
|
["in-side-menu"]: inTopNavSideMenu,
|
11446
11375
|
"ic-navigation-group-expanded": expanded,
|
11447
11376
|
"ic-navigation-group-collapsed": !expanded,
|
@@ -11683,7 +11612,7 @@ class NavigationItem {
|
|
11683
11612
|
}
|
11684
11613
|
render() {
|
11685
11614
|
const { inTopNavSideMenu, isTopNavChild, selected } = this;
|
11686
|
-
return (hAsync(Host, { key: '
|
11615
|
+
return (hAsync(Host, { key: 'f20ee76495a75e8794e451e27b92f5545d06212c', class: {
|
11687
11616
|
["navigation-item"]: true,
|
11688
11617
|
["navigation-item-top-nav"]: !inTopNavSideMenu && this.navigationType === "top",
|
11689
11618
|
["navigation-item-top-nav-child-selected"]: isTopNavChild && !inTopNavSideMenu && !!selected,
|
@@ -11704,7 +11633,7 @@ class NavigationItem {
|
|
11704
11633
|
!this.isSideNavMobile,
|
11705
11634
|
["expandable"]: !!this.expandable,
|
11706
11635
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
11707
|
-
}, onBlur: isTopNavChild && !inTopNavSideMenu ? this.handleBlur : null, onClick: this.handleClick, "aria-current": selected ? "page" : null, role: "listitem" }, hAsync("ic-tooltip", { key: '
|
11636
|
+
}, onBlur: isTopNavChild && !inTopNavSideMenu ? this.handleBlur : null, onClick: this.handleClick, "aria-current": selected ? "page" : null, role: "listitem" }, hAsync("ic-tooltip", { key: '6b1e5e2b20aa01cfea5dde82a27e93bf1c19cd3a', label: this.generateTooltipLabel() || "", target: "navigation-item", placement: "right", class: {
|
11708
11637
|
["tooltip-navigation-item"]: true,
|
11709
11638
|
["tooltip-navigation-item-side-nav-collapsed"]: !!this.displayNavigationTooltip && this.navigationType === "side",
|
11710
11639
|
["tooltip-long-label-navigation-item-side-nav-expanded"]: this.el.hasAttribute("[display-navigation-tooltip = 'true']"),
|
@@ -11874,16 +11803,16 @@ class NavigationMenu {
|
|
11874
11803
|
}
|
11875
11804
|
}
|
11876
11805
|
render() {
|
11877
|
-
return (hAsync(Host, { key: '
|
11806
|
+
return (hAsync(Host, { key: '3e06550714484b8a9d157e0391697e303fbf8259', class: { [`ic-theme-${this.theme}`]: this.theme !== "inherit" } }, hAsync("div", { key: 'b56300f2817a5a42401570a56f5b29c90e37e336', class: "popout-modal", onClick: this.closeMenu }), hAsync("div", { key: '081658f80afaa6d7f39971cc0f566068166b6688', class: "popout-menu", role: "dialog", "aria-modal": "true", "aria-label": `${this.hasNavigation ? "Navigation" : "App"} menu` }, hAsync("span", { key: '67841c0d0cfb29fba7e3c722436c7e87bca1842d', "aria-hidden": "true", id: "navigation-landmark-text", class: "navigation-landmark-text" }, "Main navigation"), hAsync("nav", { key: 'cb5aa473a04868d6af4dcd2ebc2b61ef5d785904', "aria-labelledby": "navigation-landmark-text", "aria-hidden": this.hasNavigation ? "false" : "true" }, hAsync("div", { key: '2551b868b4c932b5fcff041bdae690e748d40430', class: {
|
11878
11807
|
["menu-close-button-container"]: true,
|
11879
11808
|
["nav-group-first"]: this.navGroupFirst,
|
11880
|
-
} }, hAsync("ic-button", { key: '
|
11809
|
+
} }, hAsync("ic-button", { key: '7bd12321078c63fe2ffe62ede9d9db4695b0b510', ref: (el) => (this.closeButton = el), id: "menu-close-button", class: "menu-close-button", variant: "icon", size: "large", "aria-label": `Close ${this.hasNavigation ? "navigation" : "app"} menu`, onClick: this.closeMenu }, hAsync("svg", { key: 'da0aa67b38afb973367472a95c74d2f6e49e9fd8', width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: 'd7d5993d336c40113eb2ae3528c429028c78fcfe', d: "M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" })))), this.hasNavigation && hAsync("slot", { key: '1957640a14ad85b1ef0b3b9b330ea9f2beeb7391', name: "navigation" })), this.hasButtons && (hAsync("div", { key: '0c92359ed82d16596420c022fa61ff2a106161dd', class: {
|
11881
11810
|
["menu-buttons-container"]: true,
|
11882
11811
|
["menu-buttons-container-nav-item-above"]: this.navItemAboveButtons,
|
11883
|
-
} }, hAsync("slot", { key: '
|
11812
|
+
} }, hAsync("slot", { key: '96f46255f4faa638122e1f567003101d42790c55', name: "buttons" }))), (this.status !== "" || this.version !== "") && (hAsync("div", { key: '7ef37a7aa83a5e73a66d9d9c7eb99054f65f3785', class: {
|
11884
11813
|
["menu-status-version-container"]: true,
|
11885
11814
|
["status-version-no-buttons"]: !this.hasButtons,
|
11886
|
-
} }, this.status !== "" && (hAsync("div", { key: '
|
11815
|
+
} }, this.status !== "" && (hAsync("div", { key: '00a4dbcfa3fff6671c0d4a986141f321ac492b1f', class: "menu-status" }, hAsync("ic-typography", { key: 'f176e8fe85d647789146f59f83205c99c47ced63', variant: "label-uppercase", "aria-label": "app tag", class: "menu-status-text" }, this.status))), this.version !== "" && (hAsync("div", { key: 'c216559b1da429a6cbf910e58638fcabfeccf95a', class: "menu-version" }, hAsync("ic-typography", { key: '4b72051f226eb2563d41fe0c239d62ed82d33701', variant: "label", class: "menu-version-text", "aria-label": "app version" }, this.version))))))));
|
11887
11816
|
}
|
11888
11817
|
get el() { return getElement(this); }
|
11889
11818
|
static get style() { return IcNavigationMenuStyle0; }
|
@@ -12016,19 +11945,19 @@ class PageHeader {
|
|
12016
11945
|
const navAriaLabel = `${isSlotUsed(this.el, "heading")
|
12017
11946
|
? (_b = (_a = this.el.querySelector('[slot="heading"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : ""
|
12018
11947
|
: heading !== null && heading !== void 0 ? heading : ""} page sections`;
|
12019
|
-
return (hAsync(Host, { key: '
|
11948
|
+
return (hAsync(Host, { key: '17bc798fc01d1a70de9fed3da746d8e39a88e96c', class: {
|
12020
11949
|
["ic-page-header-sticky"]: !!sticky,
|
12021
11950
|
["ic-page-header-sticky-desktop"]: !sticky && !!stickyDesktopOnly,
|
12022
11951
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
12023
|
-
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: '
|
11952
|
+
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: '1dadcdce3f21efe0f196171330cb5774be34075e', class: {
|
12024
11953
|
["border-bottom"]: !!border,
|
12025
11954
|
["tabs"]: isSlotUsed(this.el, "tabs"),
|
12026
|
-
}, role: "presentation" }, hAsync("ic-section-container", { key: '
|
11955
|
+
}, role: "presentation" }, hAsync("ic-section-container", { key: '9f0855c0310d29f5381c12665aad41ee1656ccdb', aligned: aligned, fullHeight: isSlotUsed(this.el, "tabs") }, isSlotUsed(this.el, "breadcrumbs") && (hAsync("div", { key: '3b1fe9729e1d62e72a432fd039db40c1c5da22da', class: "breadcrumb-area" }, hAsync("slot", { key: 'e5055a9f7def4018e2046dae4687ae1945235bf7', name: "breadcrumbs" }))), hAsync("div", { key: '70acf27823b39d41d9c2f3dbe3e89d71096e7daf', class: "main-content" }, hAsync("div", { key: 'b924bba3df8954b9f314c1eff6ffe4443d0e53f1', class: "title-area" }, hAsync("div", { key: '5a60bb74557d37b33be8312d177e75ce77210998', class: "header-content" }, hAsync("slot", { key: 'e4c7c70b13eac0944bba1a1f2ddd320f3e1c2659', name: "heading" }, hAsync("ic-typography", { key: 'eb98510ca2b55a81c1b91bbabc4bfe7d5e28bdde', variant: size === "small" ? "h4" : "h2", class: "heading" }, hAsync("h2", { key: '9bc94aa414b9514f0e349faa521804682f22f85b' }, heading))), hAsync("slot", { key: '47b147656f0fe7436d233bb669c4462faab353db', name: "heading-adornment" })), hAsync("div", { key: '1456f12fba38ec4cd05706ccb92d72adf12ae623', class: {
|
12027
11956
|
["subheading-content"]: !!subheading || isSlotUsed(this.el, "subheading"),
|
12028
11957
|
["small"]: size === "small",
|
12029
|
-
} }, hAsync("slot", { key: '
|
12030
|
-
isSlotUsed(this.el, "tabs")) && (hAsync("div", { key: '
|
12031
|
-
!isSlotUsed(this.el, "tabs") && hAsync("slot", { key: '
|
11958
|
+
} }, hAsync("slot", { key: 'a82707ce4abf37e4e8a965a39a5cc6e50d634647', name: "subheading" }, hAsync("ic-typography", { key: '9f77da962becb04b244f3df0dceb7dad9dc122d8', variant: "body" }, subheading)))), isSlotUsed(this.el, "actions") && (hAsync("div", { key: '792df65e46b45a50514a1967866dd72f6f72e683', class: "action-area" }, hAsync("slot", { key: '0cd5fd825254df4815fe2d3e788946de88cbaae1', name: "actions" }))), isSlotUsed(this.el, "input") && (hAsync("div", { key: 'e030cb3067c544b3d3496146e25d511a30ca97b2', class: "input-area" }, hAsync("slot", { key: '8c9f722a205eded36526a4bc926e7a92c43626af', name: "input" })))), (isSlotUsed(this.el, "stepper") ||
|
11959
|
+
isSlotUsed(this.el, "tabs")) && (hAsync("div", { key: 'deeb8c5520db91c494215d1adf90bebcc96fbbb5', class: "navigation-area" }, isSlotUsed(this.el, "stepper") &&
|
11960
|
+
!isSlotUsed(this.el, "tabs") && hAsync("slot", { key: 'd9201c158069b054c3903ea4c0647d96de9d0930', name: "stepper" }), isSlotUsed(this.el, "tabs") && (hAsync("nav", { key: 'a0cdbb20f507dd783536b0a60ae7fa2d391be85f', "aria-label": navAriaLabel }, hAsync("ic-horizontal-scroll", { key: 'f3c15e0d61db5990108d86c5540d4f69b9477a9e' }, hAsync("ul", { key: '6e7aded64c14703b5b4f141fa11f0f9eac247bce', class: "tabs-slot" }, hAsync("slot", { key: 'eee6cfc3a09856108574b715163cc645f9eae627', name: "tabs" })))))))))));
|
12032
11961
|
}
|
12033
11962
|
get el() { return getElement(this); }
|
12034
11963
|
static get style() { return IcPageHeaderStyle0; }
|
@@ -12306,14 +12235,14 @@ class Pagination {
|
|
12306
12235
|
}
|
12307
12236
|
render() {
|
12308
12237
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
12309
|
-
return (hAsync(Host, { key: '
|
12238
|
+
return (hAsync(Host, { key: '9f9c0ceb1629ebff96c677d7b4ad9995bbe480cd', class: {
|
12310
12239
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
12311
12240
|
["ic-pagination-monochrome"]: !!monochrome,
|
12312
|
-
} }, type === "simple" && (hAsync("nav", { key: '
|
12241
|
+
} }, type === "simple" && (hAsync("nav", { key: '4d24ed30438c6755a1717454ee83e2a1b58d93c5', class: {
|
12313
12242
|
["disabled"]: !!disabled,
|
12314
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '
|
12243
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '784f99d1fa32d4f48c6de793707825333e45651a', theme: this.theme, monochrome: this.monochrome, type: "simple-current", page: currentPage, label: label, class: { ["hide-current-page"]: !!hideCurrentPage }, disabled: disabled }), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("nav", { key: 'ce6061fcee8e202cb895e2919525b64c6a1c1114', class: {
|
12315
12244
|
["disabled"]: !!disabled,
|
12316
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("span", { key: '
|
12245
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("span", { key: '4980f1fd9ebd31a5b8835876479e12a8a0f5d54d', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
|
12317
12246
|
}
|
12318
12247
|
get el() { return getElement(this); }
|
12319
12248
|
static get watchers() { return {
|
@@ -12397,7 +12326,7 @@ class PaginationItem {
|
|
12397
12326
|
}
|
12398
12327
|
render() {
|
12399
12328
|
const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
|
12400
|
-
return (hAsync("a", { key: '
|
12329
|
+
return (hAsync("a", { key: 'c067a0e35e2a92dff8d7f24d135a06a686d74a7d', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (hAsync("div", { class: {
|
12401
12330
|
["item-container"]: true,
|
12402
12331
|
["ellipsis"]: true,
|
12403
12332
|
["disabled"]: !!disabled,
|
@@ -12439,9 +12368,10 @@ class PaginationItem {
|
|
12439
12368
|
}; }
|
12440
12369
|
}
|
12441
12370
|
|
12442
|
-
const icPopoverMenuCss = "/*! 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}@media (prefers-reduced-motion: no-preference){:host .opening-from-parent{animation:slide-in var(--ic-transition-duration-slow) ease-in-out}:host .opening-from-child{animation:slide-out var(--ic-transition-duration-slow) ease-in-out}}:host{border-radius:var(--ic-border-radius);color:var(--ic-popover-nav-text);--ic-typography-color:var(--ic-popover-nav-text);position:relative;z-index:var(--ic-z-index-popover);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);display:none}:host(.on-dialog){inset:auto !important}:host(.on-dialog-fix-translate){transform:translate(0, var(--ic-space-xs)) !important}:host(.on-dialog-translate-y){transform:translate(0, calc(-1 * var(--translate-y))) !important}.menu{border:var(--ic-border-default);border-color:var(--ic-popover-border);border-radius:var(--ic-border-radius);background-color:var(--ic-popover-background);visibility:hidden;height:0}
|
12371
|
+
const icPopoverMenuCss = "/*! 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}@media (prefers-reduced-motion: no-preference){:host .opening-from-parent{animation:slide-in var(--ic-transition-duration-slow) ease-in-out}:host .opening-from-child{animation:slide-out var(--ic-transition-duration-slow) ease-in-out}}:host{border-radius:var(--ic-border-radius);color:var(--ic-popover-nav-text);--ic-typography-color:var(--ic-popover-nav-text);position:relative;z-index:var(--ic-z-index-popover);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);display:none}:host(.on-dialog){inset:auto !important}:host(.on-dialog-fix-translate){transform:translate(0, var(--ic-space-xs)) !important}:host(.on-dialog-translate-y){transform:translate(0, calc(-1 * var(--translate-y))) !important}.menu{border:var(--ic-border-default);border-color:var(--ic-popover-border);border-radius:var(--ic-border-radius);background-color:var(--ic-popover-background);visibility:hidden;height:0}:host(:focus-within){box-shadow:var(--ic-border-focus)}.menu:focus-visible{outline:none}:host(.ic-popover-menu-open){display:block;min-width:calc(20rem - var(--ic-space-xl));width:var(--popover-width, 20rem);max-width:calc(100vw - var(--ic-space-xl))}:host(.ic-popover-menu-open) .menu{visibility:visible;height:-moz-fit-content;height:fit-content;max-height:var(--max-height, -moz-fit-content);max-height:var(--max-height, fit-content);overflow-y:auto;overflow-x:hidden}.parent-label{--ic-typography-color:var(--ic-popover-parent-label);margin:var(--ic-space-xs) var(--ic-space-xs) 0}@keyframes slide-in{from{opacity:0;transform:translateX(10rem)}to{opacity:1;transform:translateX(0)}}@keyframes slide-out{from{opacity:0;transform:translateX(-10rem)}to{opacity:1;transform:translateX(0)}}";
|
12443
12372
|
var IcPopoverMenuStyle0 = icPopoverMenuCss;
|
12444
12373
|
|
12374
|
+
const MENU_SELECTOR = "div.menu-body";
|
12445
12375
|
class PopoverMenu {
|
12446
12376
|
constructor(hostRef) {
|
12447
12377
|
registerInstance(this, hostRef);
|
@@ -12595,7 +12525,7 @@ class PopoverMenu {
|
|
12595
12525
|
}
|
12596
12526
|
componentDidLoad() {
|
12597
12527
|
var _a;
|
12598
|
-
const slotWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(
|
12528
|
+
const slotWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(MENU_SELECTOR);
|
12599
12529
|
if (slotWrapper) {
|
12600
12530
|
const popoverMenuElements = getSlotElements(slotWrapper);
|
12601
12531
|
if (popoverMenuElements !== null) {
|
@@ -12706,17 +12636,17 @@ class PopoverMenu {
|
|
12706
12636
|
}
|
12707
12637
|
}
|
12708
12638
|
render() {
|
12709
|
-
return (hAsync(Host, { key: '
|
12639
|
+
return (hAsync(Host, { key: '45ea929f78a71412b65696067f7573be3a6d3ea8', class: {
|
12710
12640
|
["ic-popover-menu-open"]: !!this.open,
|
12711
12641
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
12712
|
-
} }, hAsync("div", { key: '
|
12642
|
+
} }, hAsync("div", { key: '6bdbe7d1dbb09296d6174028e261577fdd4532ee', id: this.parentPopover === undefined
|
12713
12643
|
? `ic-popover-submenu-${this.submenuId}`
|
12714
12644
|
: "", class: {
|
12715
12645
|
menu: true,
|
12716
|
-
} }, hAsync("span", { key: '
|
12646
|
+
} }, hAsync("span", { key: '35fb266531251314aea84b37f812e88c8974e43d', class: {
|
12717
12647
|
"opening-from-parent": this.openingFromParent,
|
12718
12648
|
"opening-from-child": this.openingFromChild,
|
12719
|
-
} }, isPropDefined(this.submenuId) && (hAsync("span", { key: '
|
12649
|
+
} }, isPropDefined(this.submenuId) && (hAsync("span", { key: '6605d6f2491c980baee3089a1857f931626bb54b' }, hAsync("span", { key: '07e80b42e9b4658b36e567a3adb74a8635c96e4c', role: "menu" }, hAsync("ic-menu-item", { key: '3430014d29bde74c907de86c97aecd16db7ea9fe', 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: 'aff3697d9faab6dbe89ea59f7d217cf04af1549e', slot: "icon", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "submenu-back-icon" }, hAsync("path", { key: '451d430e380b75746a2415985cbd8bd7298f3649', d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z", fill: "currentColor" })))), hAsync("ic-typography", { key: '5b1da715db279cf8581b3533343472453f6e40e1', variant: "subtitle-small", class: "parent-label" }, this.parentLabel))), hAsync("div", { key: '9e488ccbc0dbb2b5e56b335cb35f00f87f4921ca', class: "menu-body", "aria-label": this.getMenuAriaLabel(), role: "menu" }, hAsync("slot", { key: '94669f3fc5982fb94ada6f3c3cac1404e5a97e67' }))))));
|
12720
12650
|
}
|
12721
12651
|
static get delegatesFocus() { return true; }
|
12722
12652
|
get el() { return getElement(this); }
|
@@ -12974,16 +12904,16 @@ class RadioGroup {
|
|
12974
12904
|
}
|
12975
12905
|
render() {
|
12976
12906
|
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationStatus, validationText, theme, } = this;
|
12977
|
-
return (hAsync(Host, { key: '
|
12907
|
+
return (hAsync(Host, { key: '42dc675c60f45659472c07052a2ed88f08710c31', onKeyDown: handleKeyDown, class: {
|
12978
12908
|
"ic-radio-group-small": size === "small",
|
12979
12909
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
12980
|
-
} }, hAsync("div", { key: '
|
12910
|
+
} }, hAsync("div", { key: '6fc67dbbdbaebd8fa8956defa727d0552a2dc4de', role: "radiogroup", "aria-label": `${label}${required ? ", required" : ""}` }, !hideLabel && (hAsync("ic-input-label", { key: '463018c9c855d118d77d59c150c75ae76ec95491', class: {
|
12981
12911
|
[`${validationStatus}`]: true,
|
12982
12912
|
["disabled"]: !!disabled,
|
12983
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled })), hAsync("div", { key: '
|
12913
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled })), hAsync("div", { key: '4567b4ebf1cbc7ad1f87963cf5918937a31c6775', class: {
|
12984
12914
|
"radio-buttons-container": true,
|
12985
12915
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
12986
|
-
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: '
|
12916
|
+
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: 'd8c63b01cacf74581bc381ebec1c269d9c590ea3' }))), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: '55d0dc823c82405a7aa2e8edb03be0d76f5809c8', ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
12987
12917
|
}
|
12988
12918
|
get el() { return getElement(this); }
|
12989
12919
|
static get watchers() { return {
|
@@ -13163,15 +13093,15 @@ class RadioOption {
|
|
13163
13093
|
render() {
|
13164
13094
|
const { additionalFieldDisplay, disabled, dynamicText, form, groupLabel, handleClick, handleKeyDown, hasAdditionalField, label, name, selected, value, theme, } = this;
|
13165
13095
|
const id = `ic-radio-option-${isPropDefined(label) || value}-${groupLabel}`;
|
13166
|
-
return (hAsync(Host, { key: '
|
13096
|
+
return (hAsync(Host, { key: 'd4254c0a08bd7fe373f7beeb849d732d437c6f5b', onClick: handleClick, onKeyDown: handleKeyDown, class: {
|
13167
13097
|
["ic-radio-option-disabled"]: !!disabled,
|
13168
13098
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
13169
|
-
} }, hAsync("div", { key: '
|
13099
|
+
} }, hAsync("div", { key: '1b3c7c383278c1d8714f5a7a3a00c8fb780a2931', class: { container: true, disabled: !!disabled } }, hAsync("div", { key: 'ba90a2ce5912981a50d43ebd33086eb227947e5f' }, hAsync("input", { key: '8eb145667ce5b7777ced51480ceebab3f43a7910', tabindex: selected ? "0" : "-1", type: "radio", name: name, id: id, value: value, disabled: disabled, checked: selected, ref: (el) => (this.radioElement = el), form: form }), hAsync("span", { key: '3683fd5eda19dd39f4647a5763705eef4becacb3', class: "checkmark" })), hAsync("ic-typography", { key: 'd662a4e7a5b0ac173a7ea2881d2dac84e94eedc7', class: "radio-label", variant: "body" }, hAsync("label", { key: 'a76e5907c98f2ff18d734167ff69bbe0a1c7ddc4', htmlFor: id }, label))), hasAdditionalField && (hAsync("div", { key: 'ff91776cab766a955e98dee100f73114166fee7a', class: {
|
13170
13100
|
"dynamic-container": true,
|
13171
13101
|
hidden: additionalFieldDisplay === "dynamic" && !selected,
|
13172
|
-
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '
|
13102
|
+
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: 'e7eeaf7801fd5aa2014edb3796b8b6acc3149b3b', class: "branch-corner" })), hAsync("div", { key: '5cb0e6fca92276f2d2a3bb0f5edc9e4525d44aa2' }, additionalFieldDisplay === "dynamic" && (hAsync("ic-typography", { key: '318ea54a9055f8dde4de2d9802878584d57e186e', variant: "caption" }, hAsync("p", { key: 'e3f34b9536a0f5b95e796c269c586b7905dab59a', class: "dynamic-text" }, dynamicText))), hAsync("div", { key: 'cec5d0147f6f12510e066fff2c0d4d80fe0ee98f', class: {
|
13173
13103
|
"additional-field-wrapper": additionalFieldDisplay === "static",
|
13174
|
-
} }, hAsync("slot", { key: '
|
13104
|
+
} }, hAsync("slot", { key: 'd6279d0506490eceb7d55d6e86609e9e9fb06ea4', name: ADDITIONAL_FIELD })))))));
|
13175
13105
|
}
|
13176
13106
|
get el() { return getElement(this); }
|
13177
13107
|
static get watchers() { return {
|
@@ -13232,7 +13162,6 @@ class SearchBar {
|
|
13232
13162
|
this.icSearchBarBlur = createEvent(this, "icSearchBarBlur", 7);
|
13233
13163
|
this.icSearchBarFocus = createEvent(this, "icSearchBarFocus", 7);
|
13234
13164
|
this.icKeydown = createEvent(this, "icKeydown", 7);
|
13235
|
-
this.assistiveHintEl = null;
|
13236
13165
|
this.hasTimedOut = false;
|
13237
13166
|
this.inputId = `ic-search-bar-input-${inputIds$3++}`;
|
13238
13167
|
this.menuCloseFromMenuChangeEvent = false;
|
@@ -13241,6 +13170,7 @@ class SearchBar {
|
|
13241
13170
|
this.preventSubmit = false;
|
13242
13171
|
this.prevNoOption = false;
|
13243
13172
|
this.retryButtonClick = false;
|
13173
|
+
this.retryViaKeyPress = false;
|
13244
13174
|
this.truncateValue = false;
|
13245
13175
|
this.clearButtonFocused = false;
|
13246
13176
|
this.open = false;
|
@@ -13384,46 +13314,57 @@ class SearchBar {
|
|
13384
13314
|
this.preventSubmit = true;
|
13385
13315
|
}
|
13386
13316
|
};
|
13387
|
-
this.onInput = (
|
13388
|
-
this.value =
|
13317
|
+
this.onInput = ({ target }) => {
|
13318
|
+
this.value = target.value;
|
13389
13319
|
this.icInput.emit({ value: this.value });
|
13390
|
-
const noOptions = [
|
13391
|
-
{ [this.labelField]: this.emptyOptionListText, [this.valueField]: "" },
|
13392
|
-
];
|
13393
13320
|
if (this.options.length > 0) {
|
13394
13321
|
this.setMenuChange(true);
|
13395
13322
|
this.preLoad = false;
|
13396
13323
|
if (this.disableAutoFiltering === false) {
|
13397
13324
|
const rawFilteredOptions = getFilteredMenuOptions(this.options, false, this.value, "anywhere", this.labelField);
|
13398
13325
|
this.filteredOptions =
|
13399
|
-
rawFilteredOptions.length > 0
|
13326
|
+
rawFilteredOptions.length > 0
|
13327
|
+
? rawFilteredOptions
|
13328
|
+
: [
|
13329
|
+
{
|
13330
|
+
[this.labelField]: this.emptyOptionListText,
|
13331
|
+
[this.valueField]: "",
|
13332
|
+
},
|
13333
|
+
];
|
13400
13334
|
}
|
13401
13335
|
}
|
13402
|
-
if (!this.showClearButton)
|
13403
|
-
this.
|
13404
|
-
}
|
13336
|
+
if (!this.showClearButton)
|
13337
|
+
this.showClearButton = true;
|
13405
13338
|
this.debounceAriaLiveUpdate();
|
13406
13339
|
};
|
13407
|
-
this.onInputBlur = (
|
13408
|
-
|
13409
|
-
|
13410
|
-
|
13340
|
+
this.onInputBlur = ({ target, relatedTarget }) => {
|
13341
|
+
this.icSearchBarBlur.emit({
|
13342
|
+
value: target.value,
|
13343
|
+
relatedTarget,
|
13344
|
+
});
|
13411
13345
|
};
|
13412
|
-
this.onInputFocus = (
|
13413
|
-
|
13414
|
-
this.
|
13415
|
-
this.handleShowClearButton(true);
|
13346
|
+
this.onInputFocus = ({ target }) => {
|
13347
|
+
this.icSearchBarFocus.emit({ value: target.value });
|
13348
|
+
this.showClearButton = true;
|
13416
13349
|
};
|
13417
|
-
this.handleClearBlur = (
|
13418
|
-
|
13419
|
-
this.icClearBlur.emit({ relatedTarget: nextFocus });
|
13350
|
+
this.handleClearBlur = ({ relatedTarget }) => {
|
13351
|
+
this.icClearBlur.emit({ relatedTarget });
|
13420
13352
|
this.clearButtonFocused = false;
|
13421
13353
|
};
|
13422
|
-
this.handleSubmitSearchBlur = (
|
13423
|
-
|
13424
|
-
this.icSubmitSearchBlur.emit({ relatedTarget: nextFocus });
|
13354
|
+
this.handleSubmitSearchBlur = ({ relatedTarget }) => {
|
13355
|
+
this.icSubmitSearchBlur.emit({ relatedTarget });
|
13425
13356
|
this.searchSubmitFocused = false;
|
13426
13357
|
};
|
13358
|
+
this.setInputValue = (newValue) => {
|
13359
|
+
if (this.inputEl) {
|
13360
|
+
const label = getLabelFromValue(newValue, this.options, this.valueField, this.labelField);
|
13361
|
+
if (label)
|
13362
|
+
this.inputEl.value = label;
|
13363
|
+
else if (this.inputEl.value !== newValue) {
|
13364
|
+
this.inputEl.value = newValue;
|
13365
|
+
}
|
13366
|
+
}
|
13367
|
+
};
|
13427
13368
|
this.handleMouseDown = (ev) => {
|
13428
13369
|
ev.preventDefault();
|
13429
13370
|
};
|
@@ -13431,7 +13372,8 @@ class SearchBar {
|
|
13431
13372
|
this.searchSubmitFocused = true;
|
13432
13373
|
};
|
13433
13374
|
this.handleSubmitSearch = () => {
|
13434
|
-
|
13375
|
+
if (this.highlightedValue)
|
13376
|
+
this.value = this.highlightedValue;
|
13435
13377
|
this.highlightedValue = undefined;
|
13436
13378
|
this.icSubmitSearch.emit({ value: this.value });
|
13437
13379
|
const form = this.el.closest("FORM");
|
@@ -13482,15 +13424,10 @@ class SearchBar {
|
|
13482
13424
|
this.icOptionSelect.emit({ value: this.value });
|
13483
13425
|
};
|
13484
13426
|
this.handleMenuOptionHighlight = (ev) => {
|
13485
|
-
|
13486
|
-
|
13487
|
-
|
13488
|
-
|
13489
|
-
this.ariaActiveDescendant = ev.detail.optionId;
|
13490
|
-
}
|
13491
|
-
else {
|
13492
|
-
this.ariaActiveDescendant = "";
|
13493
|
-
}
|
13427
|
+
const { optionId } = ev.detail;
|
13428
|
+
if (optionId)
|
13429
|
+
this.highlightedValue = optionId.replace(`${this.menuId}-`, "");
|
13430
|
+
this.ariaActiveDescendant = optionId || "";
|
13494
13431
|
};
|
13495
13432
|
this.handleMenuChange = (ev) => {
|
13496
13433
|
this.setMenuChange(ev.detail.open);
|
@@ -13508,15 +13445,14 @@ class SearchBar {
|
|
13508
13445
|
if (this.options && this.value && !this.menuCloseFromMenuChangeEvent) {
|
13509
13446
|
this.setMenuChange(true);
|
13510
13447
|
}
|
13511
|
-
this.
|
13448
|
+
this.truncateValue = false;
|
13512
13449
|
this.icSearchBarFocus.emit();
|
13513
13450
|
};
|
13514
|
-
this.handleHostBlur = (
|
13451
|
+
this.handleHostBlur = ({ relatedTarget }) => {
|
13515
13452
|
var _a;
|
13516
|
-
const nextFocus = ev.relatedTarget;
|
13517
13453
|
if (this.open &&
|
13518
13454
|
this.options &&
|
13519
|
-
|
13455
|
+
relatedTarget !== this.menu &&
|
13520
13456
|
!this.retryViaKeyPress &&
|
13521
13457
|
!this.retryButtonClick) {
|
13522
13458
|
this.setMenuChange(false);
|
@@ -13524,35 +13460,30 @@ class SearchBar {
|
|
13524
13460
|
if (this.retryButtonClick || this.retryViaKeyPress) {
|
13525
13461
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
13526
13462
|
}
|
13527
|
-
this.
|
13463
|
+
this.showClearButton = false;
|
13528
13464
|
this.menuCloseFromMenuChangeEvent = false;
|
13529
|
-
this.
|
13530
|
-
this.icSearchBarBlur.emit({
|
13465
|
+
this.truncateValue = true;
|
13466
|
+
this.icSearchBarBlur.emit({
|
13467
|
+
relatedTarget,
|
13468
|
+
value: this.value,
|
13469
|
+
});
|
13531
13470
|
this.retryViaKeyPress = false;
|
13532
13471
|
this.retryButtonClick = false;
|
13533
13472
|
};
|
13534
|
-
this.handleShowClearButton = (visible) => {
|
13535
|
-
this.showClearButton = visible;
|
13536
|
-
};
|
13537
13473
|
this.handleFocusClearButton = () => {
|
13538
13474
|
this.clearButtonFocused = true;
|
13539
13475
|
};
|
13540
|
-
this.handleTruncateValue = (truncate) => {
|
13541
|
-
this.truncateValue = truncate;
|
13542
|
-
};
|
13543
13476
|
this.renderAssistiveHintEl = () => {
|
13544
|
-
var _a;
|
13477
|
+
var _a, _b;
|
13545
13478
|
const input = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`#${this.inputId}`);
|
13546
13479
|
if (input &&
|
13547
13480
|
Object.keys(input).length > 0 &&
|
13548
13481
|
this.hasOptionsOrFilterDisabled()) {
|
13549
13482
|
this.assistiveHintEl = document.createElement("span");
|
13550
|
-
this.assistiveHintEl.innerText = this.assistiveHintText
|
13483
|
+
this.assistiveHintEl.innerText = this.assistiveHintText;
|
13551
13484
|
this.assistiveHintEl.id = `${this.inputId}-assistive-hint`;
|
13552
13485
|
this.assistiveHintEl.style.display = "none";
|
13553
|
-
|
13554
|
-
input.after(this.assistiveHintEl);
|
13555
|
-
}
|
13486
|
+
(_b = input.after) === null || _b === void 0 ? void 0 : _b.call(input, this.assistiveHintEl);
|
13556
13487
|
}
|
13557
13488
|
};
|
13558
13489
|
this.updateSearchResultAriaLive = () => {
|
@@ -13568,41 +13499,22 @@ class SearchBar {
|
|
13568
13499
|
this.filteredOptions.length > 0 &&
|
13569
13500
|
this.open &&
|
13570
13501
|
!this.filteredOptions[0].loading) {
|
13571
|
-
|
13572
|
-
|
13573
|
-
|
13574
|
-
else {
|
13575
|
-
searchResultsStatusEl.innerText = `${this.filteredOptions.length} result${this.filteredOptions.length > 1 ? "s" : ""} available`;
|
13576
|
-
}
|
13502
|
+
searchResultsStatusEl.innerText = this.hadNoOptions()
|
13503
|
+
? this.emptyOptionListText
|
13504
|
+
: `${this.filteredOptions.length} result${this.filteredOptions.length > 1 ? "s" : ""} available`;
|
13577
13505
|
}
|
13578
13506
|
}
|
13579
13507
|
};
|
13580
|
-
this.hasOptionsOrFilterDisabled = () => this.options.length > 0 ||
|
13508
|
+
this.hasOptionsOrFilterDisabled = () => this.options.length > 0 || this.disableAutoFiltering;
|
13581
13509
|
this.hadNoOptions = () => this.filteredOptions.length === 1 &&
|
13582
13510
|
this.filteredOptions[0][this.labelField] === this.emptyOptionListText &&
|
13583
13511
|
this.searchMode === "navigation";
|
13584
|
-
this.isSubmitDisabled = () =>
|
13585
|
-
|
13586
|
-
|
13587
|
-
|
13588
|
-
|
13589
|
-
|
13590
|
-
this.hadNoOptions() ||
|
13591
|
-
this.hasTimedOut ||
|
13592
|
-
!!this.loading);
|
13593
|
-
};
|
13594
|
-
this.highlightFirstOptionAfterNoResults = () => {
|
13595
|
-
if (this.prevNoOption && this.menu && !this.hasTimedOut) {
|
13596
|
-
this.menu.handleSetFirstOption();
|
13597
|
-
this.prevNoOption = false;
|
13598
|
-
}
|
13599
|
-
const prevNoOptionsList = this.filteredOptions.find((filteredOption) => filteredOption[this.labelField] === this.emptyOptionListText ||
|
13600
|
-
filteredOption[this.labelField] === this.loadingErrorLabel ||
|
13601
|
-
filteredOption[this.labelField] === this.loadingLabel);
|
13602
|
-
if (prevNoOptionsList) {
|
13603
|
-
this.prevNoOption = true;
|
13604
|
-
}
|
13605
|
-
};
|
13512
|
+
this.isSubmitDisabled = () => !this.value ||
|
13513
|
+
this.value.length < this.charactersUntilSuggestion ||
|
13514
|
+
this.disabled ||
|
13515
|
+
this.hadNoOptions() ||
|
13516
|
+
this.hasTimedOut ||
|
13517
|
+
this.loading;
|
13606
13518
|
}
|
13607
13519
|
watchDisabledHandler() {
|
13608
13520
|
removeDisabledFalse(this.disabled, this.el);
|
@@ -13631,40 +13543,32 @@ class SearchBar {
|
|
13631
13543
|
return;
|
13632
13544
|
}
|
13633
13545
|
this.setMenuChange(true);
|
13634
|
-
!this.preLoad
|
13635
|
-
|
13546
|
+
if (!this.preLoad) {
|
13547
|
+
this.filteredOptions = [
|
13636
13548
|
{
|
13637
13549
|
[this.labelField]: this.emptyOptionListText,
|
13638
13550
|
[this.valueField]: "",
|
13639
13551
|
},
|
13640
|
-
]
|
13552
|
+
];
|
13553
|
+
}
|
13641
13554
|
this.preLoad = true;
|
13642
13555
|
}
|
13643
13556
|
}
|
13644
13557
|
this.debounceAriaLiveUpdate();
|
13645
13558
|
}
|
13646
13559
|
watchValueHandler(newValue) {
|
13647
|
-
|
13648
|
-
this.options &&
|
13649
|
-
!!getLabelFromValue(newValue, this.options, this.valueField, this.labelField)) {
|
13650
|
-
this.inputEl.value =
|
13651
|
-
getLabelFromValue(newValue, this.options, this.valueField, this.labelField) || "";
|
13652
|
-
}
|
13653
|
-
else if (this.inputEl && this.inputEl.value !== newValue) {
|
13654
|
-
this.inputEl.value = newValue;
|
13655
|
-
}
|
13560
|
+
this.setInputValue(newValue);
|
13656
13561
|
this.icChange.emit({ value: newValue });
|
13657
13562
|
}
|
13658
13563
|
connectedCallback() {
|
13659
13564
|
this.debounceChanged();
|
13660
13565
|
}
|
13661
13566
|
disconnectedCallback() {
|
13662
|
-
|
13663
|
-
|
13664
|
-
}
|
13567
|
+
var _a;
|
13568
|
+
(_a = this.assistiveHintEl) === null || _a === void 0 ? void 0 : _a.remove();
|
13665
13569
|
}
|
13666
13570
|
componentWillLoad() {
|
13667
|
-
this.
|
13571
|
+
this.setInputValue(this.value);
|
13668
13572
|
removeDisabledFalse(this.disabled, this.el);
|
13669
13573
|
}
|
13670
13574
|
componentDidLoad() {
|
@@ -13680,7 +13584,15 @@ class SearchBar {
|
|
13680
13584
|
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Search Bar");
|
13681
13585
|
}
|
13682
13586
|
componentWillRender() {
|
13683
|
-
this.
|
13587
|
+
if (this.prevNoOption && this.menu && !this.hasTimedOut) {
|
13588
|
+
this.menu.handleSetFirstOption();
|
13589
|
+
this.prevNoOption = false;
|
13590
|
+
}
|
13591
|
+
if (this.filteredOptions.find((filteredOption) => filteredOption[this.labelField] === this.emptyOptionListText ||
|
13592
|
+
filteredOption[this.labelField] === this.loadingErrorLabel ||
|
13593
|
+
filteredOption[this.labelField] === this.loadingLabel)) {
|
13594
|
+
this.prevNoOption = true;
|
13595
|
+
}
|
13684
13596
|
}
|
13685
13597
|
handleKeyDown(event) {
|
13686
13598
|
this.icKeydown.emit({ event });
|
@@ -13719,62 +13631,57 @@ class SearchBar {
|
|
13719
13631
|
}, 500);
|
13720
13632
|
}
|
13721
13633
|
render() {
|
13722
|
-
const { inputId, name, label, required, size, placeholder, helperText, disabled, value, readonly, spellcheck, fullWidth, options, open, hideLabel, menuId, ariaActiveDescendant, truncateValue, autofocus, autocapitalize, autocomplete, filteredOptions, theme, } = this;
|
13634
|
+
const { inputId, name, label, required, size, placeholder, helperText, disabled, value, readonly, spellcheck, fullWidth, options, open, hideLabel, menuId, ariaActiveDescendant, truncateValue, autofocus, autocapitalize, autocomplete, filteredOptions, theme, charactersUntilSuggestion, labelField, valueField, loadingLabel, loadingErrorLabel, searchMode, showClearButton, searchSubmitFocused, clearButtonFocused, } = this;
|
13723
13635
|
const disabledMode = readonly || disabled;
|
13724
13636
|
const describedBy = getInputDescribedByText(inputId, helperText !== "", false).trim();
|
13725
|
-
let describedById;
|
13637
|
+
let describedById = undefined;
|
13726
13638
|
if (describedBy !== "" && this.hasOptionsOrFilterDisabled()) {
|
13727
|
-
describedById = `${describedBy} ${
|
13639
|
+
describedById = `${describedBy} ${inputId}-assistive-hint`;
|
13728
13640
|
}
|
13729
13641
|
else if (this.hasOptionsOrFilterDisabled()) {
|
13730
|
-
describedById = `${
|
13642
|
+
describedById = `${inputId}-assistive-hint`;
|
13731
13643
|
}
|
13732
13644
|
else if (describedBy !== "") {
|
13733
13645
|
describedById = describedBy;
|
13734
13646
|
}
|
13735
|
-
else {
|
13736
|
-
describedById = undefined;
|
13737
|
-
}
|
13738
13647
|
const hasSuggestedSearch = !!value && this.hasOptionsOrFilterDisabled();
|
13739
13648
|
const menuOpen = hasSuggestedSearch && open && filteredOptions.length > 0;
|
13740
|
-
const menuRendered = menuOpen && value.length >=
|
13741
|
-
const labelValue = getLabelFromValue(value, options,
|
13742
|
-
renderHiddenInput(
|
13743
|
-
return (hAsync(Host, { key: '
|
13744
|
-
|
13745
|
-
|
13746
|
-
|
13747
|
-
|
13649
|
+
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
13650
|
+
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
13651
|
+
renderHiddenInput(this.el, value, name, disabledMode);
|
13652
|
+
return (hAsync(Host, { key: '5120b79da9d0840d87421287913f49cda06da4f3', class: {
|
13653
|
+
"ic-search-bar-search": true,
|
13654
|
+
"ic-search-bar-full-width": fullWidth,
|
13655
|
+
"ic-search-bar-disabled": disabled,
|
13656
|
+
"ic-search-bar-small": size === "small",
|
13748
13657
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
13749
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '
|
13750
|
-
"no-left-pad":
|
13751
|
-
readonly
|
13658
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '246484c51e7169a8f9944b66499126ea3d86921a', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '043651daee6abf565a44ad6c1c090e8d6dd85f8a', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly })), hAsync("ic-input-component-container", { key: '880ab5440ec935340d56dd69e64e467879f3bbc5', ref: (el) => (this.anchorEl = el), size: size, disabled: disabledMode, readonly: readonly, fullWidth: fullWidth }, hAsync("input", { key: '37ece1e8c9f5ab12f2f3a303544c882192a07107', id: inputId, name: name, ref: (el) => (this.inputEl = el), value: options && !!labelValue ? labelValue : value, class: {
|
13659
|
+
"no-left-pad": readonly,
|
13660
|
+
readonly,
|
13752
13661
|
"truncate-value": truncateValue,
|
13753
|
-
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": label, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), hAsync("div", { key: '
|
13662
|
+
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": label, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), hAsync("div", { key: '4498fbe2293958c1ae6f6ddfeab15b2ff29ca2a8', class: {
|
13754
13663
|
"clear-button-container": true,
|
13755
|
-
"clear-button-visible": !!value && !disabledMode &&
|
13756
|
-
} }, hAsync("ic-button", { key: '
|
13664
|
+
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
13665
|
+
} }, hAsync("ic-button", { key: '561c5cbe830f34bc80967e0899f2dc8526c1c4f7', id: "clear-button", class: {
|
13757
13666
|
"clear-button": true,
|
13758
|
-
"clear-button-unfocused": !
|
13759
|
-
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "submit", variant: "icon", theme:
|
13667
|
+
"clear-button-unfocused": !clearButtonFocused,
|
13668
|
+
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "submit", variant: "icon", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { key: '9c783d276ad0a931e538a79ce303ad060db1fa1b', class: "divider" })), hAsync("div", { key: '5babcd978eb8263ca710b32ead6926c95f558838', class: {
|
13760
13669
|
"search-submit-button-container": true,
|
13761
13670
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
13762
|
-
} }, hAsync("ic-button", { key: '
|
13763
|
-
|
13764
|
-
|
13765
|
-
|
13766
|
-
|
13767
|
-
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: "submit", variant: "icon", theme:
|
13671
|
+
} }, hAsync("ic-button", { key: '785dbe4deb7549662d263f74b75c759b932399fb', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
13672
|
+
"search-submit-button": true,
|
13673
|
+
"search-submit-button-small": size === "small",
|
13674
|
+
"search-submit-button-unfocused": !searchSubmitFocused,
|
13675
|
+
"search-submit-button-disabled": this.isSubmitDisabled(),
|
13676
|
+
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: "submit", variant: "icon", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: '78297ce56515a4f1f50a8108949a20837c87828f', class: {
|
13768
13677
|
"menu-container": true,
|
13769
|
-
fullwidth:
|
13770
|
-
} }, menuRendered && (hAsync("ic-menu", { key: '
|
13678
|
+
fullwidth: fullWidth,
|
13679
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: 'd527adddfc250b1f0fe605cbaec5f08ea1e25c04', class: {
|
13771
13680
|
"no-results": this.hadNoOptions() ||
|
13772
13681
|
(filteredOptions.length === 1 &&
|
13773
|
-
(filteredOptions[0][
|
13774
|
-
|
13775
|
-
|
13776
|
-
this.loadingErrorLabel)),
|
13777
|
-
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: this.searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: !!menuRendered, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: this.labelField, valueField: this.valueField })))), hAsync("div", { key: '9844297f2d4ed1dd4e168685da928b44eeeb4698', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
13682
|
+
(filteredOptions[0][labelField] === loadingLabel ||
|
13683
|
+
filteredOptions[0][labelField] === loadingErrorLabel)),
|
13684
|
+
}, 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 })))), hAsync("div", { key: '716cd74ed9726cd134772aba2b98e374face0753', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
13778
13685
|
}
|
13779
13686
|
static get delegatesFocus() { return true; }
|
13780
13687
|
get el() { return getElement(this); }
|
@@ -13854,12 +13761,12 @@ class SectionContainer {
|
|
13854
13761
|
}
|
13855
13762
|
render() {
|
13856
13763
|
const { aligned, fullHeight } = this;
|
13857
|
-
return (hAsync(Host, { key: '
|
13764
|
+
return (hAsync(Host, { key: '67c1b4b2afe62fc53812421ee49c01bf689e05b4', class: {
|
13858
13765
|
["aligned-left"]: aligned === "left" || aligned === null,
|
13859
13766
|
["aligned-center"]: aligned === "center",
|
13860
13767
|
["aligned-full-width"]: aligned === "full-width",
|
13861
13768
|
["no-vertical-padding"]: !!fullHeight,
|
13862
|
-
} }, hAsync("slot", { key: '
|
13769
|
+
} }, hAsync("slot", { key: 'cb21cb372b6131cfb990ac0a016f6c64641749f9' })));
|
13863
13770
|
}
|
13864
13771
|
static get style() { return IcSectionContainerStyle0; }
|
13865
13772
|
static get cmpMeta() { return {
|
@@ -14725,7 +14632,7 @@ class Select {
|
|
14725
14632
|
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, theme, } = this;
|
14726
14633
|
// HTML inputs only accept 'string' for their value
|
14727
14634
|
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
14728
|
-
renderHiddenInput(
|
14635
|
+
renderHiddenInput(this.el, this.searchable ? this.hiddenInputValue : currValue, name || this.inputId, disabled);
|
14729
14636
|
const invalid = `${validationStatus === IcInformationStatus.Error}`;
|
14730
14637
|
const describedBy = getInputDescribedByText(this.inputId, helperText !== "", hasValidationStatus(this.validationStatus, !!this.disabled)).trim();
|
14731
14638
|
let showLeftIcon = !!this.el.querySelector(`[slot="icon"]`);
|
@@ -14740,16 +14647,16 @@ class Select {
|
|
14740
14647
|
(searchable
|
14741
14648
|
? this.searchableSelectInputValue
|
14742
14649
|
: currValue && !this.loading && showClearButton);
|
14743
|
-
return (hAsync(Host, { key: '
|
14650
|
+
return (hAsync(Host, { key: '456f6fa40aca4f93fba6e0c43c57cc171c358ede', class: {
|
14744
14651
|
"ic-select-disabled": !!disabled,
|
14745
14652
|
"ic-select-searchable": !!searchable,
|
14746
14653
|
[`ic-select-${size}`]: size !== "medium",
|
14747
14654
|
"ic-select-full-width": !!fullWidth,
|
14748
14655
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
14749
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
14656
|
+
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: 'f97234577ffc014d5da69a0ebbf8abac0a97e034', readonly: readonly }, !hideLabel && (hAsync("ic-input-label", { key: 'a6a1bf8152904b7a845de920bd9717c76ea47f2e', for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), hAsync("ic-input-component-container", { key: '6515fb2dca1c45d6388123ea2d75f5de57f1bc36', ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, showLeftIcon && (hAsync("span", { key: '0f70c956b1be70903d518c3dc787fc3980a0c205', slot: "left-icon", class: {
|
14750
14657
|
["readonly"]: !!readonly,
|
14751
14658
|
["has-value"]: !!this.value,
|
14752
|
-
} }, hAsync("slot", { key: '
|
14659
|
+
} }, hAsync("slot", { key: '7e602e257167e4397fc131b118da86b0e3d38583', name: "icon" }))), readonly ? (hAsync("ic-typography", null, hAsync("p", null, valueLabelString))) : isMobileOrTablet() && !multiple ? (hAsync("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: this.inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: this.form }, this.inheritedAttributes), hAsync("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => {
|
14753
14660
|
if (option.children) {
|
14754
14661
|
return (hAsync("optgroup", { label: option.label }, option.children.map((option) => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
|
14755
14662
|
}
|
@@ -14776,7 +14683,7 @@ class Select {
|
|
14776
14683
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
14777
14684
|
"expand-icon": true,
|
14778
14685
|
"expand-icon-open": this.open,
|
14779
|
-
}, 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", theme: this.clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: '
|
14686
|
+
}, 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", theme: this.clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: 'f54e79314035d2c04a47292eb9e8e2ecd4421545', class: {
|
14780
14687
|
"no-results": this.loading ||
|
14781
14688
|
this.hasTimedOut ||
|
14782
14689
|
(this.noOptions !== null &&
|
@@ -14786,7 +14693,7 @@ class Select {
|
|
14786
14693
|
? this.searchableSelectElement
|
14787
14694
|
: this.customSelectElement), inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : this.uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: this.selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: this.searchable || multiple || this.selectOnEnter
|
14788
14695
|
? "manual"
|
14789
|
-
: "automatic", closeOnSelect: !multiple })), this.multiple && (hAsync("div", { key: '
|
14696
|
+
: "automatic", closeOnSelect: !multiple })), this.multiple && (hAsync("div", { key: 'b1a65d56087d6603846cdd9cfc8c086e49597001', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(this.validationStatus, !!this.disabled) && (hAsync("ic-input-validation", { key: 'e5553be7be57e5ae847bcd1a4d2525b18c4d1429', class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText || "", for: this.inputId })))));
|
14790
14697
|
}
|
14791
14698
|
static get delegatesFocus() { return true; }
|
14792
14699
|
get el() { return getElement(this); }
|
@@ -14862,7 +14769,7 @@ var menuIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill
|
|
14862
14769
|
</svg>
|
14863
14770
|
`;
|
14864
14771
|
|
14865
|
-
const icSideNavigationCss = ":host{display:block;--ic-typography-color:currentcolor;--side-navigation-position:fixed;--side-navigation-position-left:0;--side-navigation-position-top:var(--ic-space-xxl);--side-navigation-height:var(--ic-space-xxl);--sm-side-navigation-top-bar-height:3.5rem;--sm-side-navigation-collapsed-labels-width:6rem;--sm-side-navigation-expand-transition-duration:var(\n --ic-transition-duration-slow\n );--side-navigation-width:20rem;--sm-side-navigation-bottom-bar-height:3.5rem;--keyline-lighten:var(--ic-space-1px) solid var(--ic-side-navigation-keyline);--keyline-darken:var(--ic-space-1px) solid var(--ic-state-layer-darken-20);--ic-button-secondary-text-monochrome:var(--ic-brand-text-color);--ic-button-secondary-border-monochrome:var(--ic-brand-text-color);z-index:var(--ic-z-index-side-navigation)}:host>*{box-sizing:border-box}.side-navigation{display:flex;flex-direction:column;width:var(--side-navigation-width);color:var(--ic-side-navigation-text);position:var(--side-navigation-position);top:var(--side-navigation-position-top);left:calc(var(--side-navigation-width) * -1);bottom:0;background-color:var(--ic-side-navigation-background);z-index:var(--ic-z-index-side-navigation)}:host(.ic-side-navigation-inline) .side-navigation{position:absolute;height:100%}:host(.anchor-right) .side-navigation{right:calc(var(--side-navigation-width) * -1)}.classification-spacing{margin-bottom:var(--ic-space-lg)}.navigation-list{padding:0;margin:0;list-style:none}.side-navigation-inner{background-color:var(--ic-side-navigation-background);display:flex;flex-direction:column;flex:1 1 0;overflow:auto}:host(.ic-side-navigation-inline) .side-navigation-inner{flex:1}:host(.xs-menu-open) .side-navigation{transition:left var(--ic-easing-transition-slow);left:0}:host(:has(.xs-menu-open,.xs-menu-close)) ::slotted(ic-navigation-item){--navigation-item-side-nav-right:var(--ic-space-xl)}:host(.xs-menu-close) .side-navigation{left:calc(var(--side-navigation-width) * -1);transition:left var(--ic-easing-transition-slow)}:host(.xs-menu-close) .side-navigation>*{visibility:hidden}:host(.anchor-right.xs-menu-open) .side-navigation{right:0;left:auto}:host(.anchor-right.xs-menu-close) .side-navigation{right:calc(var(--side-navigation-width) * -1);left:auto;transition:right var(--ic-easing-transition-slow)}.bottom-wrapper{border-top:var(--keyline-lighten);bottom:0;left:0;z-index:2;background-color:var(--ic-side-navigation-background);display:flex;flex-direction:column}:host(.ic-side-navigation-inline) .bottom-wrapper{position:sticky}:host(.ic-side-navigation-dark) .bottom-wrapper{border-top:var(--keyline-darken)}.top-bar{display:flex;flex-direction:row;align-items:center;min-height:var(--side-navigation-height);padding:var(--ic-space-xs);box-sizing:border-box;background-color:var(--ic-side-navigation-background);position:fixed;top:0;left:0;right:0;border-bottom:var(--keyline-lighten);box-shadow:var(--ic-elevation-overlay);z-index:2;overflow:hidden;visibility:visible}:host(.ic-side-navigation-inline) .top-bar{position:absolute}:host(.ic-side-navigation-dark) .top-bar{border-bottom:var(--keyline-darken)}.top-bar.dark a:focus{box-shadow:var(--ic-border-focus)}.app-title-wrapper{display:flex;margin-left:var(--ic-space-xs);border-left:var(--keyline-lighten);padding-left:var(--ic-space-xxs);color:var(--ic-side-navigation-text);align-items:center}:host(.ic-side-navigation-dark) .app-title-wrapper{border-left:var(--keyline-darken)}.app-title-wrapper ic-typography h1{margin:0}@media screen and (min-width: 340px){.app-title-wrapper ic-typography{margin-left:var(--ic-space-xs)}}:host .title-link{display:flex;align-items:center;transition:box-shadow var(--ic-easing-transition-fast),\n background-color var(--ic-easing-transition-fast);text-decoration:none;padding:var(--ic-space-xxs);color:var(--ic-side-navigation-text)}:host .title-link:visited,:host .title-link:active{color:var(--ic-side-navigation-text)}slot[name=\"app-title\"]::slotted(a),slot[name=\"app-icon\"]::slotted(a){color:var(--ic-side-navigation-text);outline:none;text-decoration:none;display:flex}slot[name=\"app-title\"]::slotted(ic-typography),slot[name=\"app-title\"]::slotted(a){margin-left:var(--ic-space-xs) !important}slot[name=\"app-title\"]::slotted(a){font:var(--ic-font-subtitle-small)}@media screen and (min-width: 577px){:host(.sm-collapsed) slot[name=\"app-title\"]::slotted(ic-typography),:host(.sm-collapsed) slot[name=\"app-title\"]::slotted(a){position:absolute;left:-9999px;opacity:0;transition:opacity var(--ic-easing-transition-slow)}:host(.sm-collapsed) slot[name=\"app-title\"]:dir(rtl)::slotted(ic-typography),:host(.sm-collapsed) slot[name=\"app-title\"]:dir(rtl)::slotted(a){right:-9999px}:host(.sm-expanded) slot[name=\"app-title\"]::slotted(a){font:var(--ic-font-h3) !important;font-weight:var(--ic-font-weight-semibold) !important;margin-left:var(--ic-space-xs) !important}}:host .title-link:hover{border-radius:var(--ic-border-radius);background-color:var(--ic-side-navigation-hover)}:host .title-link:active{background-color:var(--ic-side-navigation-pressed)}:host .title-link:focus,:host .title-link:focus-within{border-radius:var(--ic-border-radius);box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);background-color:transparent}:host .title-link ic-typography{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.app-title-wrapper ::slotted(svg){fill:var(--ic-side-navigation-text)}.app-icon-container{display:none}.button-label{display:flex;align-items:center}.mobile-top-bar-menu-icon{display:flex}.menu-button{width:6.5rem}.app-status-wrapper{inset:0 var(--ic-space-sm) 0 3.5rem;width:auto;display:flex;gap:var(--ic-space-xs);padding:var(--ic-space-sm) 0;justify-content:flex-end;align-items:flex-end;pointer-events:none;height:-moz-fit-content;height:fit-content;margin:0 var(--ic-space-xs)}.app-status-wrapper .app-version{display:flex;overflow-wrap:break-word;padding-bottom:var(--ic-space-xxs)}.app-status-wrapper .app-status{display:flex;border-radius:1rem;background-color:var(--ic-side-navigation-text);color:var(--ic-side-navigation-status-tag-text);padding:var(--ic-space-xxs) var(--ic-space-lg);min-width:1rem}.app-status-wrapper .app-status-text{overflow-wrap:break-word}:host(.ic-side-navigation-dark) .app-status-wrapper .app-status{--ic-typography-color:var(--ic-architectural-white)}.navigation-landmark-title{position:absolute;width:var(--ic-space-1px);height:var(--ic-space-1px);padding:0;margin:calc(-1 * var(--ic-space-1px));overflow:hidden}::slotted(ic-navigation-group){--navigation-group-height:2.75rem;--navigation-group-justify-content:space-between;--navigation-group-hover:var(--ic-side-navigation-hover);--navigation-group-text-hover:var(--ic-side-navigation-text);--navigation-item-child-height:3.5rem;--navigation-item-child-active:var(--ic-action-dark-bg-pressed);--navigation-item-child-color:var(--ic-side-navigation-text);--navigation-group-expand-toggle-padding:0.25rem}::slotted(ic-navigation-item),::slotted(ic-navigation-group){--navigation-item-justify-content:flex-start;--navigation-item-min-height:56px;--navigation-item-height:auto}.bottom-side-nav{position:relative;align-content:flex-end;min-height:var(--sm-side-navigation-top-bar-height)}.bottom-side-nav ic-divider{position:absolute;top:0}.primary-navigation{flex:1;display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:none}.primary-navigation::-webkit-scrollbar{display:none}.primary-navigation,.secondary-navigation{overflow-x:hidden}.bottom-side-nav .menu-expand-button{position:absolute;display:none}.menu-visibility-visible{visibility:visible;width:100%}.app-title-show{min-width:15.5rem}:host(.side-display){display:flex;flex-direction:column;height:100vh;position:var(--side-navigation-position);left:0;top:0;bottom:0}:host(.side-display) .app-icon-container{height:40px;display:flex;align-items:center}:host(.side-display) .top-bar{--side-navigation-height:var(--sm-side-navigation-top-bar-height);position:relative;padding:0;box-shadow:none}:host(.ic-side-navigation-inline.side-display) .top-bar{position:sticky}:host(.anchor-right.side-display) .top-bar{box-shadow:0.188rem 0.188rem 0.5rem rgb(0 0 0 / 20%)}:host(.anchor-right.side-display) .bottom-wrapper{box-shadow:0.188rem -0.188rem 0.5rem rgb(0 0 0 / 20%)}:host(.side-display) .side-navigation,:host(.side-display) .top-bar{width:var(--sm-side-navigation-top-bar-height)}:host(.sm-collapsed.side-display){width:var(--sm-side-navigation-top-bar-height);transition:width var(--ic-easing-transition-slow)}:host(.sm-collapsed.collapsed-labels.side-display){width:var(--sm-side-navigation-collapsed-labels-width)}:host(.sm-expanded.side-display){width:var(--side-navigation-width);transition:width var(--ic-easing-transition-slow);box-shadow:var(--ic-elevation-overlay)}:host(.side-display) .side-navigation{--side-navigation-position-top:0;flex:1;position:relative;top:auto;left:auto;bottom:auto}:host(.ic-side-navigation-inline.side-display) .side-navigation{position:relative}:host(.anchor-right.side-display) .side-navigation{left:auto;right:0}:host(.side-display) .app-title-wrapper{margin-left:0;border-left:none;padding:var(--ic-space-xs) var(--ic-space-sm)}:host(.side-display) .app-title-wrapper ::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg)}:host(.side-display) .app-title-wrapper ic-typography{font-weight:var(--ic-font-weight-semibold)}:host(.sm-collapsed.side-display) .app-title-wrapper ic-typography{position:absolute;left:-9999px;opacity:0;transition:opacity var(--ic-easing-transition-slow)}:host(.sm-collapsed.side-display) .app-title-wrapper ic-typography:dir(rtl){right:-9999px}:host(.sm-expanded.side-display) ic-typography{position:relative;left:0}:host(.sm-expanded.side-display) :is(.side-navigation,.top-bar){width:var(--side-navigation-width);transition:width var(--ic-easing-transition-slow)}:host(.sm-collapsed.side-display) :is(.side-navigation,.top-bar){width:var(--sm-side-navigation-top-bar-height);transition:width var(--ic-easing-transition-slow)}:host(.anchor-right.sm-expanded.side-display) :is(.side-navigation,.top-bar){left:auto;right:0}:host(.side-display) .app-status-wrapper,:host(.sm-collapsed.side-display) .app-status-wrapper{display:none;margin-left:0}:host(.sm-expanded.side-display) .app-status-wrapper{display:flex;max-width:16rem;margin-right:calc(var(--ic-space-xxxs) + var(--ic-space-xs))}:host(.side-display) .bottom-side-nav{justify-items:flex-end;align-items:flex-end;justify-content:flex-end;display:flex;outline:none}:host(.side-display) .bottom-side-nav .menu-expand-button{padding-left:var(--ic-space-md);height:var(--sm-side-navigation-top-bar-height);width:100%;color:var(--ic-side-navigation-text);background-color:transparent;outline:var(--ic-hc-focus-outline);border:none;cursor:pointer;display:flex;transition:var(--ic-easing-transition-fast)}:host(.sm-expanded.side-display) .bottom-side-nav .menu-expand-button{height:100%}:host(.side-display) .bottom-side-nav .menu-expand-button svg{justify-items:flex-start;align-self:center;display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.side-display) .bottom-side-nav .menu-expand-button:hover{background-color:var(--ic-side-navigation-hover)}:host(.side-display) .bottom-side-nav .menu-expand-button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background-color:transparent}:host(.sm-collapsed.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(1);transition:transform var(--ic-easing-transition-slow)}:host(.sm-expanded.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(-1);transition:transform var(--ic-easing-transition-slow);align-self:flex-end;margin-bottom:0.875rem}:host(.anchor-right.sm-collapsed.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(-1)}:host(.anchor-right.sm-expanded.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(1)}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-item){--navigation-item-label-opacity:1}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-item),:host(.sm-collapsed.side-display) ::slotted(ic-navigation-group){--navigation-item-label-opacity:0;--navigation-item-min-height:3.5rem;--navigation-item-height:3.5rem}:host(.sm-expanded.side-display) ::slotted(ic-navigation-item),:host(.sm-expanded.side-display) ::slotted(ic-navigation-group){--navigation-item-label-opacity:1;--navigation-item-height:auto;--navigation-item-min-height:3.5rem;--navigation-item-width:20rem;--navigation-item-side-nav-right:var(--ic-space-xl);--navigation-group-width:20rem}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-group){--navigation-group-title-position:absolute;--navigation-group-title-position-left:-9999px;--navigation-group-title-opacity:none}:host(.sm-expanded.side-display) ::slotted(ic-navigation-group){--navigation-group-title-position:relative;--navigation-group-title-position-left:0;--navigation-group-expand-toggle-padding:0.25rem;--navigation-group-title-opacity:flex}:host(.sm-collapsed.collapsed-labels.side-display) .side-navigation,:host(.sm-collapsed.collapsed-labels.side-display) .top-bar{width:var(--sm-side-navigation-collapsed-labels-width)}:host(.sm-collapsed.collapsed-labels.side-display) .menu-expand-button{padding:0}:host(.sm-collapsed.collapsed-labels.side-display) .app-title-wrapper{width:100%;justify-content:center}:host(.sm-collapsed.collapsed-labels.side-display) ::slotted(ic-navigation-group){--navigation-group-justify-content:center;--navigation-item-label-opacity:1;--navigation-group-item-min-width:100%;--navigation-group-expand-toggle-padding:1rem}:host(.collapsed-labels.side-display) .bottom-side-nav .menu-expand-button{justify-content:center}:host(.side-display) .collapsed-icon-labels-start{visibility:hidden;opacity:0}:host(.side-display) .collapsed-icon-labels-end{visibility:visible;opacity:1;transition:visibility 0s, opacity var(--ic-easing-transition-slow)}@media screen and (max-width: 419px){.top-bar{height:var(--side-navigation-height)}.side-navigation{width:100%}}@media screen and (min-width: 340px){.app-icon-container{display:flex}}@media screen and (min-width: 993px){:host(.side-display){position:sticky;left:auto;top:0;bottom:0}:host(.sm-expanded.side-display){box-shadow:none}}@media (forced-colors: active){.side-navigation,.top-bar{border-right:var(--ic-border-hc)}.menu-expand-button{color:Highlight !important}slot[name=\"app-icon\"]::slotted(svg){fill:currentcolor}}";
|
14772
|
+
const icSideNavigationCss = ":host{display:block;--ic-typography-color:currentcolor;--side-navigation-position:fixed;--side-navigation-position-left:0;--side-navigation-position-top:var(--ic-space-xxl);--side-navigation-height:var(--ic-space-xxl);--sm-side-navigation-top-bar-height:3.5rem;--sm-side-navigation-collapsed-labels-width:6rem;--sm-side-navigation-expand-transition-duration:var(\n --ic-transition-duration-slow\n );--side-navigation-width:20rem;--sm-side-navigation-bottom-bar-height:3.5rem;--keyline-lighten:var(--ic-space-1px) solid var(--ic-side-navigation-keyline);--keyline-darken:var(--ic-space-1px) solid var(--ic-state-layer-darken-20);--ic-button-secondary-text-monochrome:var(--ic-brand-text-color);--ic-button-secondary-border-monochrome:var(--ic-brand-text-color);z-index:var(--ic-z-index-side-navigation)}:host>*{box-sizing:border-box}.side-navigation{display:flex;flex-direction:column;width:var(--side-navigation-width);color:var(--ic-side-navigation-text);position:var(--side-navigation-position);top:var(--side-navigation-position-top);left:calc(var(--side-navigation-width) * -1);bottom:0;background-color:var(--ic-side-navigation-background);z-index:var(--ic-z-index-side-navigation)}:host(.ic-side-navigation-inline) .side-navigation{position:absolute;height:100%}:host(.anchor-right) .side-navigation{right:calc(var(--side-navigation-width) * -1)}.classification-spacing{margin-bottom:var(--ic-space-lg)}.navigation-list{padding:0;margin:0;list-style:none}.side-navigation-inner{background-color:var(--ic-side-navigation-background);display:flex;flex-direction:column;flex:1 1 4rem;overflow:auto}:host(.ic-side-navigation-inline) .side-navigation-inner{flex:1}:host(.xs-menu-open) .side-navigation{transition:left var(--ic-easing-transition-slow);left:0}:host(:has(.xs-menu-open,.xs-menu-close)) ::slotted(ic-navigation-item){--navigation-item-side-nav-right:var(--ic-space-xl)}:host(.xs-menu-close) .side-navigation{left:calc(var(--side-navigation-width) * -1);transition:left var(--ic-easing-transition-slow)}:host(.xs-menu-close) .side-navigation>*{visibility:hidden}:host(.anchor-right.xs-menu-open) .side-navigation{right:0;left:auto}:host(.anchor-right.xs-menu-close) .side-navigation{right:calc(var(--side-navigation-width) * -1);left:auto;transition:right var(--ic-easing-transition-slow)}.bottom-wrapper{border-top:var(--keyline-lighten);bottom:0;left:0;z-index:2;background-color:var(--ic-side-navigation-background);display:flex;flex-direction:column}:host(.ic-side-navigation-inline) .bottom-wrapper{position:sticky}:host(.ic-side-navigation-dark) .bottom-wrapper{border-top:var(--keyline-darken)}.top-bar{display:flex;flex-direction:row;align-items:center;min-height:var(--side-navigation-height);padding:var(--ic-space-xs);box-sizing:border-box;background-color:var(--ic-side-navigation-background);position:fixed;top:0;left:0;right:0;border-bottom:var(--keyline-lighten);box-shadow:var(--ic-elevation-overlay);z-index:2;overflow:hidden;visibility:visible}:host(.ic-side-navigation-inline) .top-bar{position:absolute}:host(.ic-side-navigation-dark) .top-bar{border-bottom:var(--keyline-darken)}.top-bar.dark a:focus{box-shadow:var(--ic-border-focus)}.app-title-wrapper{display:flex;margin-left:var(--ic-space-xs);border-left:var(--keyline-lighten);padding-left:var(--ic-space-xxs);color:var(--ic-side-navigation-text);align-items:center}:host(.ic-side-navigation-dark) .app-title-wrapper{border-left:var(--keyline-darken)}.app-title-wrapper ic-typography h1{margin:0}@media screen and (min-width: 340px){.app-title-wrapper ic-typography{margin-left:var(--ic-space-xs)}}:host .title-link{display:flex;align-items:center;transition:box-shadow var(--ic-easing-transition-fast),\n background-color var(--ic-easing-transition-fast);text-decoration:none;padding:var(--ic-space-xxs);color:var(--ic-side-navigation-text)}:host .title-link:visited,:host .title-link:active{color:var(--ic-side-navigation-text)}slot[name=\"app-title\"]::slotted(a),slot[name=\"app-icon\"]::slotted(a){color:var(--ic-side-navigation-text);outline:none;text-decoration:none;display:flex}slot[name=\"app-title\"]::slotted(ic-typography),slot[name=\"app-title\"]::slotted(a){margin-left:var(--ic-space-xs) !important}slot[name=\"app-title\"]::slotted(a){font:var(--ic-font-subtitle-small)}@media screen and (min-width: 577px){:host(.sm-collapsed) slot[name=\"app-title\"]::slotted(ic-typography),:host(.sm-collapsed) slot[name=\"app-title\"]::slotted(a){position:absolute;left:-9999px;opacity:0;transition:opacity var(--ic-easing-transition-slow)}:host(.sm-collapsed) slot[name=\"app-title\"]:dir(rtl)::slotted(ic-typography),:host(.sm-collapsed) slot[name=\"app-title\"]:dir(rtl)::slotted(a){right:-9999px}:host(.sm-expanded) slot[name=\"app-title\"]::slotted(a){font:var(--ic-font-h3) !important;font-weight:var(--ic-font-weight-semibold) !important;margin-left:var(--ic-space-xs) !important}}:host .title-link:hover{border-radius:var(--ic-border-radius);background-color:var(--ic-side-navigation-hover)}:host .title-link:active{background-color:var(--ic-side-navigation-pressed)}:host .title-link:focus,:host .title-link:focus-within{border-radius:var(--ic-border-radius);box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);background-color:transparent}:host .title-link ic-typography{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.app-title-wrapper ::slotted(svg){fill:var(--ic-side-navigation-text)}.app-icon-container{display:none}.button-label{display:flex;align-items:center}.mobile-top-bar-menu-icon{display:flex}.menu-button{width:6.5rem}.app-status-wrapper{inset:0 var(--ic-space-sm) 0 3.5rem;width:auto;display:flex;gap:var(--ic-space-xs);padding:var(--ic-space-sm) 0;justify-content:flex-end;align-items:flex-end;pointer-events:none;height:-moz-fit-content;height:fit-content;margin:0 var(--ic-space-xs)}.app-status-wrapper .app-version{display:flex;overflow-wrap:break-word;padding-bottom:var(--ic-space-xxs)}.app-status-wrapper .app-status{display:flex;border-radius:1rem;background-color:var(--ic-side-navigation-text);color:var(--ic-side-navigation-status-tag-text);padding:var(--ic-space-xxs) var(--ic-space-lg);min-width:1rem}.app-status-wrapper .app-status-text{overflow-wrap:break-word}:host(.ic-side-navigation-dark) .app-status-wrapper .app-status{--ic-typography-color:var(--ic-architectural-white)}.navigation-landmark-title{position:absolute;width:var(--ic-space-1px);height:var(--ic-space-1px);padding:0;margin:calc(-1 * var(--ic-space-1px));overflow:hidden}::slotted(ic-navigation-group){--navigation-group-height:2.75rem;--navigation-group-justify-content:space-between;--navigation-group-hover:var(--ic-side-navigation-hover);--navigation-group-text-hover:var(--ic-side-navigation-text);--navigation-item-child-height:3.5rem;--navigation-item-child-active:var(--ic-action-dark-bg-pressed);--navigation-item-child-color:var(--ic-side-navigation-text);--navigation-group-expand-toggle-padding:0.25rem}::slotted(ic-navigation-item),::slotted(ic-navigation-group){--navigation-item-justify-content:flex-start;--navigation-item-min-height:56px;--navigation-item-height:auto}.bottom-side-nav{position:relative;align-content:flex-end;min-height:var(--sm-side-navigation-top-bar-height)}.bottom-side-nav ic-divider{position:absolute;top:0}.primary-navigation{flex:1;display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:none}.primary-navigation::-webkit-scrollbar{display:none}.primary-navigation,.secondary-navigation{overflow-x:hidden}.bottom-side-nav .menu-expand-button{position:absolute;display:none}.menu-visibility-visible{visibility:visible;width:100%}.app-title-show{min-width:15.5rem}:host(.side-display){display:flex;flex-direction:column;height:100vh;position:var(--side-navigation-position);left:0;top:0;bottom:0}:host(.side-display) .app-icon-container{height:40px;display:flex;align-items:center}:host(.side-display) .top-bar{--side-navigation-height:var(--sm-side-navigation-top-bar-height);position:relative;padding:0;box-shadow:none}:host(.ic-side-navigation-inline.side-display) .top-bar{position:sticky}:host(.anchor-right.side-display) .top-bar{box-shadow:0.188rem 0.188rem 0.5rem rgb(0 0 0 / 20%)}:host(.anchor-right.side-display) .bottom-wrapper{box-shadow:0.188rem -0.188rem 0.5rem rgb(0 0 0 / 20%)}:host(.side-display) .side-navigation,:host(.side-display) .top-bar{width:var(--sm-side-navigation-top-bar-height)}:host(.sm-collapsed.side-display){width:var(--sm-side-navigation-top-bar-height);transition:width var(--ic-easing-transition-slow)}:host(.sm-collapsed.collapsed-labels.side-display){width:var(--sm-side-navigation-collapsed-labels-width)}:host(.sm-expanded.side-display){width:var(--side-navigation-width);transition:width var(--ic-easing-transition-slow);box-shadow:var(--ic-elevation-overlay)}:host(.side-display) .side-navigation{--side-navigation-position-top:0;flex:1;position:relative;top:auto;left:auto;bottom:auto}:host(.ic-side-navigation-inline.side-display) .side-navigation{position:relative}:host(.anchor-right.side-display) .side-navigation{left:auto;right:0}:host(.side-display) .app-title-wrapper{margin-left:0;border-left:none;padding:var(--ic-space-xs) var(--ic-space-sm)}:host(.side-display) .app-title-wrapper ::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg)}:host(.side-display) .app-title-wrapper ic-typography{font-weight:var(--ic-font-weight-semibold)}:host(.sm-collapsed.side-display) .app-title-wrapper ic-typography{position:absolute;left:-9999px;opacity:0;transition:opacity var(--ic-easing-transition-slow)}:host(.sm-collapsed.side-display) .app-title-wrapper ic-typography:dir(rtl){right:-9999px}:host(.sm-expanded.side-display) ic-typography{position:relative;left:0}:host(.sm-expanded.side-display) :is(.side-navigation,.top-bar){width:var(--side-navigation-width);transition:width var(--ic-easing-transition-slow)}:host(.sm-collapsed.side-display) :is(.side-navigation,.top-bar){width:var(--sm-side-navigation-top-bar-height);transition:width var(--ic-easing-transition-slow)}:host(.anchor-right.sm-expanded.side-display) :is(.side-navigation,.top-bar){left:auto;right:0}:host(.side-display) .app-status-wrapper,:host(.sm-collapsed.side-display) .app-status-wrapper{display:none;margin-left:0}:host(.sm-expanded.side-display) .app-status-wrapper{display:flex;max-width:16rem;margin-right:calc(var(--ic-space-xxxs) + var(--ic-space-xs))}:host(.side-display) .bottom-side-nav{justify-items:flex-end;align-items:flex-end;justify-content:flex-end;display:flex;outline:none}:host(.side-display) .bottom-side-nav .menu-expand-button{padding-left:var(--ic-space-md);height:var(--sm-side-navigation-top-bar-height);width:100%;color:var(--ic-side-navigation-text);background-color:transparent;outline:var(--ic-hc-focus-outline);border:none;cursor:pointer;display:flex;transition:var(--ic-easing-transition-fast)}:host(.sm-expanded.side-display) .bottom-side-nav .menu-expand-button{height:100%}:host(.side-display) .bottom-side-nav .menu-expand-button svg{justify-items:flex-start;align-self:center;display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.side-display) .bottom-side-nav .menu-expand-button:hover{background-color:var(--ic-side-navigation-hover)}:host(.side-display) .bottom-side-nav .menu-expand-button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background-color:transparent}:host(.sm-collapsed.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(1);transition:transform var(--ic-easing-transition-slow)}:host(.sm-expanded.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(-1);transition:transform var(--ic-easing-transition-slow);align-self:flex-end;margin-bottom:0.875rem}:host(.anchor-right.sm-collapsed.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(-1)}:host(.anchor-right.sm-expanded.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(1)}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-item){--navigation-item-label-opacity:1}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-item),:host(.sm-collapsed.side-display) ::slotted(ic-navigation-group){--navigation-item-label-opacity:0;--navigation-item-min-height:3.5rem;--navigation-item-height:3.5rem}:host(.sm-expanded.side-display) ::slotted(ic-navigation-item),:host(.sm-expanded.side-display) ::slotted(ic-navigation-group){--navigation-item-label-opacity:1;--navigation-item-height:auto;--navigation-item-min-height:3.5rem;--navigation-item-width:20rem;--navigation-item-side-nav-right:var(--ic-space-xl);--navigation-group-width:20rem}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-group){--navigation-group-title-position:absolute;--navigation-group-title-position-left:-9999px;--navigation-group-title-opacity:none}:host(.sm-expanded.side-display) ::slotted(ic-navigation-group){--navigation-group-title-position:relative;--navigation-group-title-position-left:0;--navigation-group-expand-toggle-padding:0.25rem;--navigation-group-title-opacity:flex}:host(.sm-collapsed.collapsed-labels.side-display) .side-navigation,:host(.sm-collapsed.collapsed-labels.side-display) .top-bar{width:var(--sm-side-navigation-collapsed-labels-width)}:host(.sm-collapsed.collapsed-labels.side-display) .menu-expand-button{padding:0}:host(.sm-collapsed.collapsed-labels.side-display) .app-title-wrapper{width:100%;justify-content:center}:host(.sm-collapsed.collapsed-labels.side-display) ::slotted(ic-navigation-group){--navigation-group-justify-content:center;--navigation-item-label-opacity:1;--navigation-group-item-min-width:100%;--navigation-group-expand-toggle-padding:1rem}:host(.collapsed-labels.side-display) .bottom-side-nav .menu-expand-button{justify-content:center}:host(.side-display) .collapsed-icon-labels-start{visibility:hidden;opacity:0}:host(.side-display) .collapsed-icon-labels-end{visibility:visible;opacity:1;transition:visibility 0s, opacity var(--ic-easing-transition-slow)}@media screen and (max-width: 419px){.top-bar{height:var(--side-navigation-height)}.side-navigation{width:100%}}@media screen and (min-width: 340px){.app-icon-container{display:flex}}@media screen and (min-width: 993px){:host(.side-display){position:sticky;left:auto;top:0;bottom:0}:host(.sm-expanded.side-display){box-shadow:none}}@media (forced-colors: active){.side-navigation,.top-bar{border-right:var(--ic-border-hc)}.menu-expand-button{color:Highlight !important}slot[name=\"app-icon\"]::slotted(svg){fill:currentcolor}}";
|
14866
14773
|
var IcSideNavigationStyle0 = icSideNavigationCss;
|
14867
14774
|
|
14868
14775
|
/**
|
@@ -15296,7 +15203,7 @@ class SideNavigation {
|
|
15296
15203
|
isAppNameSubtitleVariant,
|
15297
15204
|
appTitle: appTitle || "",
|
15298
15205
|
};
|
15299
|
-
return (hAsync(Host, { key: '
|
15206
|
+
return (hAsync(Host, { key: '436ddf7e690787edf148eefe828faab20800accf', class: {
|
15300
15207
|
"xs-menu-open": menuOpen && isSDevice,
|
15301
15208
|
"xs-menu-close": !menuOpen && isSDevice,
|
15302
15209
|
"sm-collapsed": !isSDevice && !menuExpanded,
|
@@ -15305,12 +15212,12 @@ class SideNavigation {
|
|
15305
15212
|
[`ic-side-navigation-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
15306
15213
|
["collapsed-labels"]: !isSDevice && !menuExpanded && !!collapsedIconLabels,
|
15307
15214
|
["ic-side-navigation-inline"]: !!inline,
|
15308
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '
|
15215
|
+
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '0a1e0bfaabbba9ab87b9ca2683784b8cb8f6e22e', class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'ccb38804313b951d4031e749d902fcc969ae5d4c', class: "side-navigation-inner" }, isSlotUsed(this.el, "primary-navigation") && (hAsync("nav", { key: '34dd687fdf758aec64d3e26b602f8eff43e50640', class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { key: '26221987ce6680a1c8907e420c2d7ada899b7df5', "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { key: '711b4dd66d08757769e655b1c389cbd6686a64ab', class: "navigation-list" }, hAsync("slot", { key: 'bc2d3e56ea19ae85b4d189a62d15996d273f76a5', name: "primary-navigation" }))))), hAsync("div", { key: '9e238999491c652791e0f0ad1fd78efed7cbdec3', class: {
|
15309
15216
|
["bottom-wrapper"]: true,
|
15310
15217
|
["classification-spacing"]: hasClassificationBanner(),
|
15311
|
-
} }, isSlotUsed(this.el, "secondary-navigation") && (hAsync("nav", { key: '
|
15218
|
+
} }, isSlotUsed(this.el, "secondary-navigation") && (hAsync("nav", { key: '4a112b17cbf6007dae1099548b38990463c7ae3e', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { key: 'ee312d7d1150ac06d6f83f6fabcf406c09988345', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { key: 'd38968324a5737de02b78d30b063c973f6828635', class: "navigation-list" }, hAsync("slot", { key: '1c0846aa364a9421696127688a126df465bd7529', name: "secondary-navigation" })))), hAsync("div", { key: '997739493b5e2bf1e3c34b5f76c0f63c9eb10bc5', class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", { key: 'fa864a0fc1ef72e18e9dc2c39fcee48d30c020e9' }), displayExpandBtn && (hAsync("button", { key: '204eac793e743c630eb7febbe4d0f748df93ef65', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { key: '99fe7d81476680ce9d77e67cfd679dfdcc0a0523', class: "app-status-wrapper" }, status !== "" && (hAsync("div", { key: '164bcb345294ca2d623463347e0b2ba47c055191', class: {
|
15312
15219
|
["app-status"]: true,
|
15313
|
-
} }, hAsync("ic-typography", { key: '
|
15220
|
+
} }, hAsync("ic-typography", { key: '0c5bec1d433278488b3c06c6ddd4a0c1e676e9d8', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version !== "" && (hAsync("ic-typography", { key: '64a0a27816a364a4521fd4504c2d31f4e9ac3ecc', variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
15314
15221
|
}
|
15315
15222
|
get el() { return getElement(this); }
|
15316
15223
|
static get watchers() { return {
|
@@ -15373,11 +15280,11 @@ class Skeleton {
|
|
15373
15280
|
width: el.style.width || (variant === "circle" ? "25px" : "260px"),
|
15374
15281
|
}
|
15375
15282
|
: undefined;
|
15376
|
-
return (hAsync(Host, { key: '
|
15283
|
+
return (hAsync(Host, { key: 'bc26af3bed291b88d9eba417aba8b1bd20d02071', class: {
|
15377
15284
|
skeleton: true,
|
15378
15285
|
"ic-skeleton-circle": variant === "circle",
|
15379
15286
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
15380
|
-
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: '
|
15287
|
+
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: 'b7e19d9b7fc55069b1a5a3d82698378fb2a4fff4' })));
|
15381
15288
|
}
|
15382
15289
|
get el() { return getElement(this); }
|
15383
15290
|
static get style() { return IcSkeletonStyle0; }
|
@@ -15434,9 +15341,9 @@ class SkipLink {
|
|
15434
15341
|
}
|
15435
15342
|
render() {
|
15436
15343
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
15437
|
-
return (hAsync(Host, { key: '
|
15344
|
+
return (hAsync(Host, { key: 'a6229f2e79e16d35283ae63e617e5dbee39f1a31', class: {
|
15438
15345
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
15439
|
-
} }, hAsync("ic-link", { key: '
|
15346
|
+
} }, hAsync("ic-link", { key: 'f54ffd72b46d9124023ef6bfe0cf60f7b1091c25', class: {
|
15440
15347
|
"display-top": !inline,
|
15441
15348
|
"full-width": !!fullWidth,
|
15442
15349
|
"show-background": !transparentBackground,
|
@@ -15501,12 +15408,12 @@ class StatusTag {
|
|
15501
15408
|
}
|
15502
15409
|
render() {
|
15503
15410
|
const { label, status, variant, size, announced, theme, uppercase } = this;
|
15504
|
-
return (hAsync(Host, { key: '
|
15411
|
+
return (hAsync(Host, { key: '0ff5d3de133c300d744be1d57a42e5a393735572', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, hAsync("strong", { key: '09e1eeedac25e8128fe42a6fb5435dc06dc7d331', class: {
|
15505
15412
|
["tag"]: true,
|
15506
15413
|
[`${variant}-${status}`]: true,
|
15507
15414
|
["outlined"]: variant === "outlined",
|
15508
15415
|
[`${size}`]: true,
|
15509
|
-
} }, hAsync("ic-typography", { key: '
|
15416
|
+
} }, hAsync("ic-typography", { key: '8543c7387e3337ec720eecaf3dbebbc09edfcb6d', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, hAsync("span", { key: '3673500383906cd09f4f409abff0c2aa12a0c30f' }, label)))));
|
15510
15417
|
}
|
15511
15418
|
static get style() { return IcStatusTagStyle0; }
|
15512
15419
|
static get cmpMeta() { return {
|
@@ -15590,29 +15497,29 @@ class Step {
|
|
15590
15497
|
// STATUS ICON FOR COMPACT STEP
|
15591
15498
|
let statusIcon;
|
15592
15499
|
if (this.type === "completed" || this.compactStepStyling === "completed") {
|
15593
|
-
statusIcon = (hAsync("span", { key: '
|
15500
|
+
statusIcon = (hAsync("span", { key: '8831990f0422a89e28d83c33bf98e6f5e47d09a6', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
15594
15501
|
}
|
15595
15502
|
else if (this.type === "disabled" ||
|
15596
15503
|
this.compactStepStyling === "disabled") {
|
15597
|
-
statusIcon = (hAsync("span", { key: '
|
15504
|
+
statusIcon = (hAsync("span", { key: 'aedd81eacbe9ca6a4e331142d09053926b00dcd4', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
15598
15505
|
}
|
15599
15506
|
// COMPACT STEP COMPONENT
|
15600
|
-
const compactStep = (hAsync("div", { key: '
|
15507
|
+
const compactStep = (hAsync("div", { key: '384c84c08600c48982959a9a19a54e638bdd76a9', class: {
|
15601
15508
|
["step"]: true,
|
15602
15509
|
["current"]: !!this.current,
|
15603
15510
|
[`compact-step-${this.compactStepStyling}`]: !!this.compactStepStyling,
|
15604
15511
|
["disabled"]: this.type === "disabled" || this.compactStepStyling === "disabled",
|
15605
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
15512
|
+
} }, hAsync("ic-loading-indicator", { key: 'fb3373a16a3519a77689395882b77b07f84d00b2', class: {
|
15606
15513
|
"compact-step-progress-indicator": true,
|
15607
15514
|
"not-required": this.type === "disabled" ||
|
15608
15515
|
this.compactStepStyling === "disabled",
|
15609
|
-
}, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), hAsync("div", { key: '
|
15516
|
+
}, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), hAsync("div", { key: 'e404a8d7fd56af5a6c3b38e7dd146ccbf6c0a921', class: "heading-area" }, hAsync("ic-typography", { key: 'e2d2d3a3b2e2d1080a500f06c11fd2b19305e733', variant: "h4", class: "heading" }, this.heading), hAsync("div", { key: 'a04253bd63d0e9cbc2ebd2ccc6c6cf1d684611b4', class: "info-line" }, hAsync("ic-typography", { key: '35699c8fd101642bcedacbb0e636f5f5e72d87d0', variant: "caption", class: "step-num" }, `${this.stepNum} of ${this.lastStepNum}`, hAsync("span", { key: '0bc9e891b17f66419150733982711999983197a1', class: "visually-hidden" }, " steps")), (this.subheading ||
|
15610
15517
|
this.type === "completed" ||
|
15611
15518
|
this.type === "disabled" ||
|
15612
15519
|
(this.variant === "compact" &&
|
15613
15520
|
!!this.compactStepStyling &&
|
15614
15521
|
this.compactStepStyling !== "active") ||
|
15615
|
-
!!this.status) && (hAsync("div", { key: '
|
15522
|
+
!!this.status) && (hAsync("div", { key: 'ce2356ecbc86e3805ddf84d7fa785f2a1495ef60', class: "step-status" }, statusIcon !== undefined && statusIcon, (this.subheading || stepType) && (hAsync("ic-typography", { key: 'f9ada98e6d45ff5dcd8784dbb24c4402b7bd378e', variant: "caption" }, this.subheading !== null && isPropDefined(this.subheading)
|
15616
15523
|
? this.subheading
|
15617
15524
|
: this.type === "disabled" ||
|
15618
15525
|
(this.variant === "compact" &&
|
@@ -15625,26 +15532,26 @@ class Step {
|
|
15625
15532
|
// ICON FOR DEFAULT STEP
|
15626
15533
|
let icon;
|
15627
15534
|
if (this.type !== "completed") {
|
15628
|
-
icon = (hAsync("ic-typography", { key: '
|
15535
|
+
icon = (hAsync("ic-typography", { key: '5b3734765f9d5e5db8f0b2818ffd471817a96cc5', variant: "subtitle-small" }, hAsync("span", { key: 'd4d3ffd87c95a0b98fce8a437a6afb3f4639993f', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
15629
15536
|
}
|
15630
15537
|
else {
|
15631
|
-
icon = (hAsync("div", { key: '
|
15538
|
+
icon = (hAsync("div", { key: '42447f9ec070e7e284aecfd49983259650d9abd3', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: '4c7469fba1cf544d1d48c209c25db0bcaca14309', class: "check-icon", innerHTML: checkIcon })));
|
15632
15539
|
}
|
15633
15540
|
// STEP CONNECT FOR DEFAULT STEP
|
15634
|
-
const partialBar = this.type === "current" && (hAsync("div", { key: '
|
15635
|
-
const finalStep = !this.lastStep && (hAsync("div", { key: '
|
15541
|
+
const partialBar = this.type === "current" && (hAsync("div", { key: '800764f8ca21ac1118c77ed860a163b3103fe62e', class: "step-connect-inner" }));
|
15542
|
+
const finalStep = !this.lastStep && (hAsync("div", { key: 'e5c0f38f7140800d60e5046d77d6cde34c5e7bd5', class: {
|
15636
15543
|
["step-connect"]: true,
|
15637
15544
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
15638
15545
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
15639
15546
|
} }, partialBar));
|
15640
15547
|
// DEFAULT STEP COMPONENT
|
15641
|
-
const defaultStep = (hAsync("div", { key: '
|
15548
|
+
const defaultStep = (hAsync("div", { key: 'cdfd23786b75a88fe1630318d8a1369a89090544', class: {
|
15642
15549
|
["step"]: true,
|
15643
15550
|
[`${this.type}`]: true,
|
15644
|
-
} }, hAsync("div", { key: '
|
15551
|
+
} }, hAsync("div", { key: 'c83625070a1ffe89fc53f66d55f06c994f868570', class: "step-top" }, hAsync("div", { key: 'a6758050efffeb98522092fefa9b1261b3d9217b', class: "step-icon" }, icon), finalStep), (this.heading || this.subheading || this.status) && (hAsync("div", { key: '3ecf8d32da66fe336b7c0540c47726d060e8eaf8', class: "heading-area" }, this.heading && (hAsync("ic-typography", { key: '79557ec3d9a26be0fee2253a58c2f09132322017', variant: "subtitle-large", class: "heading" }, this.heading)), this.heading && (this.subheading || this.status) && (hAsync("ic-typography", { key: 'f5a90f68ebc0721fec936541824ab79b415f566d', variant: "caption", class: "subheading" }, this.subheading !== null && isPropDefined(this.subheading)
|
15645
15552
|
? this.subheading
|
15646
15553
|
: stepStatus))))));
|
15647
|
-
return (hAsync(Host, { key: '
|
15554
|
+
return (hAsync(Host, { key: '0cb6b6649c9af4565e5f663131b800a79b9b040d', role: "listitem", "aria-label": `Step ${this.stepNum}${ariaLabel}`, "aria-current": (this.current || this.type === "current") && "step", class: {
|
15648
15555
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
15649
15556
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
15650
15557
|
[`ic-step-${this.variant}`]: true,
|
@@ -15925,11 +15832,11 @@ class Stepper {
|
|
15925
15832
|
checkResizeObserver(this.runResizeObserver);
|
15926
15833
|
}
|
15927
15834
|
render() {
|
15928
|
-
return (hAsync(Host, { key: '
|
15835
|
+
return (hAsync(Host, { key: 'a4b87028ee91e542fd7d2b66689e8fabe33a9358', class: {
|
15929
15836
|
[`ic-stepper-${this.variant}`]: true,
|
15930
15837
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
15931
15838
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
15932
|
-
} }, hAsync("ul", { key: '
|
15839
|
+
} }, hAsync("ul", { key: '65236609f6b2109bba5bbb88d084f9fd4e88d48a', class: "step-item-list" }, hAsync("slot", { key: '2b542740488d922dca26cabda564db76de1ffd82' }))));
|
15933
15840
|
}
|
15934
15841
|
get el() { return getElement(this); }
|
15935
15842
|
static get watchers() { return {
|
@@ -16057,17 +15964,17 @@ class Switch {
|
|
16057
15964
|
render() {
|
16058
15965
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
16059
15966
|
const isSmall = size === "small";
|
16060
|
-
renderHiddenInput(
|
16061
|
-
return (hAsync(Host, { key: '
|
15967
|
+
renderHiddenInput(this.el, checkedState ? value : "", name, disabled);
|
15968
|
+
return (hAsync(Host, { key: '78082265a9f3ee1e14ca59acd5765a8b282cfc5e', class: {
|
16062
15969
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16063
|
-
} }, hAsync("label", { key: '
|
15970
|
+
} }, hAsync("label", { key: 'e3e9c1f766c70c39aa23b56b711d908d9f9f1ac9', class: {
|
16064
15971
|
"ic-switch-container": true,
|
16065
15972
|
"ic-switch-disabled": !!disabled,
|
16066
15973
|
"ic-switch-small": isSmall,
|
16067
|
-
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '
|
15974
|
+
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '2f22e10e5bc446aa74144819e4545bb8b83d68f4', for: inputId, label: label, helperText: helperText, readonly: true, disabled: disabled, class: {
|
16068
15975
|
"ic-switch-label": true,
|
16069
15976
|
"ic-switch-label-small": isSmall,
|
16070
|
-
} })), !hideLabel && hAsync("span", { key: '
|
15977
|
+
} })), !hideLabel && hAsync("span", { key: 'a191a1668fea25e3a4200730fc14ba544ca92688', class: "ic-switch-line-break" }), hAsync("input", { key: 'a6f9af971c7552b2a445bbb74ade01c86081d862', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText(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: 'd2f404681f8744c8faf160b529eae4190f0b4325', class: "ic-switch-toggle" }, hAsync("svg", { key: '28654e2c158d3271aa200e5a4c74bc61e9982ac7', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("line", { key: '1314ee2e478b690b6a0b00e7c6220bae1e2237df', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), hAsync("svg", { key: 'aaf0e443f71380a1bbbb3a5ece540171e28de0a5', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: '6d7a6785953666bb0a9336794e5b1fb33fded30f', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), hAsync("slot", { key: 'd96bdf90a4598454c255d59fe202d60867533032', name: "right-adornment" }))));
|
16071
15978
|
}
|
16072
15979
|
static get delegatesFocus() { return true; }
|
16073
15980
|
get el() { return getElement(this); }
|
@@ -16190,13 +16097,13 @@ class Tab {
|
|
16190
16097
|
}
|
16191
16098
|
render() {
|
16192
16099
|
const { disabled, selected, theme, monochrome, handleClick, handleFocus, handleMouseDown, } = this;
|
16193
|
-
return (hAsync(Host, { key: '
|
16100
|
+
return (hAsync(Host, { key: '52491eaab3f7b7c56d59a13b4c57970642e04465', class: {
|
16194
16101
|
["with-transition"]: !this.isInitialRender,
|
16195
16102
|
["ic-tab-selected"]: !!selected,
|
16196
16103
|
["ic-tab-disabled"]: !!disabled,
|
16197
16104
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16198
16105
|
["ic-tab-monochrome"]: !!monochrome,
|
16199
|
-
}, role: "tab", "aria-selected": `${selected}`, onClick: handleClick, onFocus: handleFocus, onMouseDown: handleMouseDown, "aria-disabled": `${disabled}`, tabindex: selected ? 0 : -1 }, isSlotUsed(this.el, "icon") && hAsync("slot", { key: '
|
16106
|
+
}, role: "tab", "aria-selected": `${selected}`, onClick: handleClick, onFocus: handleFocus, onMouseDown: handleMouseDown, "aria-disabled": `${disabled}`, tabindex: selected ? 0 : -1 }, isSlotUsed(this.el, "icon") && hAsync("slot", { key: '89b73a37ff1080ae55554ebed5afc5f3146bbfb0', name: "icon" }), hAsync("ic-typography", { key: '61d61ac5b3739403ebc02a61509289e5f49edb31', class: "ic-tab-label", variant: "label" }, hAsync("span", { key: 'a57666e5fa982b54d8d3f2fa4774edcf11d7300e' }, hAsync("slot", { key: '30700a48cbb5226d548ce0944d83bfaf85b9de39' }))), isSlotUsed(this.el, "badge") && hAsync("slot", { key: 'ee78c3cc07ddf5609ca26e1b6261c023b068571e', name: "badge" })));
|
16200
16107
|
}
|
16201
16108
|
get el() { return getElement(this); }
|
16202
16109
|
static get watchers() { return {
|
@@ -16445,7 +16352,7 @@ class TabContext {
|
|
16445
16352
|
}
|
16446
16353
|
}
|
16447
16354
|
render() {
|
16448
|
-
return hAsync("slot", { key: '
|
16355
|
+
return hAsync("slot", { key: '62b7b3babe269d227c3225faedd4505935ccecb8' });
|
16449
16356
|
}
|
16450
16357
|
get el() { return getElement(this); }
|
16451
16358
|
static get watchers() { return {
|
@@ -16491,11 +16398,11 @@ class TabGroup {
|
|
16491
16398
|
}
|
16492
16399
|
render() {
|
16493
16400
|
const { inline, theme, label, monochrome } = this;
|
16494
|
-
return (hAsync(Host, { key: '
|
16401
|
+
return (hAsync(Host, { key: 'd4354a73edcfe5ed044e2acf6d04256eddcb7f40', role: "tablist", "aria-label": label, class: {
|
16495
16402
|
["ic-tab-group-inline"]: !!inline,
|
16496
16403
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16497
16404
|
["ic-tab-group-monochrome"]: !!monochrome,
|
16498
|
-
} }, hAsync("ic-horizontal-scroll", { key: '
|
16405
|
+
} }, hAsync("ic-horizontal-scroll", { key: '42cf7391e17b38a3489e77bc3d882aa31902c14a', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, hAsync("div", { key: '81270d7ad5567b23ab8098679705c3818b3bfd35', class: "tabs-container" }, hAsync("slot", { key: 'ee7b2ece3edc06146170b759f2c08e22bca9fc7f' })))));
|
16499
16406
|
}
|
16500
16407
|
static get delegatesFocus() { return true; }
|
16501
16408
|
static get style() { return IcTabGroupStyle0; }
|
@@ -16538,10 +16445,10 @@ class TabPanel {
|
|
16538
16445
|
}
|
16539
16446
|
render() {
|
16540
16447
|
const { active, theme } = this;
|
16541
|
-
return (hAsync(Host, { key: '
|
16448
|
+
return (hAsync(Host, { key: '5da4dba2bf404436c8b49173f9056d56912e9049', class: {
|
16542
16449
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16543
16450
|
"ic-tab-panel-hidden": !active,
|
16544
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '
|
16451
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '9f7b4cbaa9a2c5a72307ca07097cdb50fd93adb2' }, hAsync("slot", { key: 'f97121f2a2d3092c18bd15c82743ba2a988a1134' }))));
|
16545
16452
|
}
|
16546
16453
|
get el() { return getElement(this); }
|
16547
16454
|
static get style() { return IcTabPanelStyle0; }
|
@@ -16579,6 +16486,7 @@ class TextField {
|
|
16579
16486
|
this.icFocus = createEvent(this, "icFocus", 7);
|
16580
16487
|
this.icInput = createEvent(this, "icInput", 7);
|
16581
16488
|
this.icKeydown = createEvent(this, "icKeydown", 7);
|
16489
|
+
this.icScroll = createEvent(this, "icScroll", 7);
|
16582
16490
|
this.inheritedAttributes = {};
|
16583
16491
|
this.hostMutationObserver = null;
|
16584
16492
|
this.numChars = 0;
|
@@ -16587,10 +16495,6 @@ class TextField {
|
|
16587
16495
|
this.minCharactersUnattained = false;
|
16588
16496
|
this.maxValueExceeded = false;
|
16589
16497
|
this.minValueUnattained = false;
|
16590
|
-
/**
|
16591
|
-
* @internal Used to identify whether inputting any text triggers more predictions
|
16592
|
-
*/
|
16593
|
-
this.ariaAutocomplete = undefined;
|
16594
16498
|
/**
|
16595
16499
|
* The automatic capitalisation of the text value as it is entered/edited by the user.
|
16596
16500
|
* Available options: "off", "none", "on", "sentences", "words", "characters".
|
@@ -16705,6 +16609,10 @@ class TextField {
|
|
16705
16609
|
* 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.
|
16706
16610
|
*/
|
16707
16611
|
this.theme = "inherit";
|
16612
|
+
/**
|
16613
|
+
* @internal If `true`, an ellipsis will be displayed at the end of the value if the value is longer than the container.
|
16614
|
+
*/
|
16615
|
+
this.truncateValue = false;
|
16708
16616
|
/**
|
16709
16617
|
* The type of control to display. The default type is text.
|
16710
16618
|
*/
|
@@ -16735,9 +16643,9 @@ class TextField {
|
|
16735
16643
|
this.value = "";
|
16736
16644
|
this.initialValue = this.value;
|
16737
16645
|
this.checkChildHydration = () => {
|
16738
|
-
var _a;
|
16739
|
-
|
16740
|
-
|
16646
|
+
var _a, _b;
|
16647
|
+
if (this.hideLabel ||
|
16648
|
+
((_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("ic-typography")) === null || _b === void 0 ? void 0 : _b.classList.contains("hydrated"))) {
|
16741
16649
|
this.setFocus();
|
16742
16650
|
clearInterval(this.interval);
|
16743
16651
|
}
|
@@ -16753,7 +16661,7 @@ class TextField {
|
|
16753
16661
|
this.getMaxCharactersReached = (value) => {
|
16754
16662
|
this.numChars = this.getNumberOfCharacters(value);
|
16755
16663
|
this.maxCharactersReached =
|
16756
|
-
this.maxCharacters > 0
|
16664
|
+
this.maxCharacters > 0 && this.numChars >= this.maxCharacters;
|
16757
16665
|
if (this.maxCharactersWarning && !this.maxCharactersReached) {
|
16758
16666
|
this.maxCharactersWarning = false;
|
16759
16667
|
}
|
@@ -16765,16 +16673,19 @@ class TextField {
|
|
16765
16673
|
this.onBlur = (ev) => {
|
16766
16674
|
const target = ev.target;
|
16767
16675
|
target.removeEventListener("wheel", this.onWheel);
|
16768
|
-
const value =
|
16676
|
+
const { value } = target;
|
16769
16677
|
this.numChars = value.length;
|
16770
16678
|
this.minCharactersUnattained =
|
16771
|
-
this.minCharacters > 0
|
16772
|
-
this.icBlur.emit({ value
|
16679
|
+
this.minCharacters > 0 && this.numChars < this.minCharacters;
|
16680
|
+
this.icBlur.emit({ value });
|
16773
16681
|
};
|
16774
16682
|
this.onFocus = (ev) => {
|
16775
16683
|
const target = ev.target;
|
16776
16684
|
target.addEventListener("wheel", this.onWheel);
|
16777
|
-
this.icFocus.emit({ value:
|
16685
|
+
this.icFocus.emit({ value: target.value });
|
16686
|
+
};
|
16687
|
+
this.onTextAreaScroll = () => {
|
16688
|
+
this.icScroll.emit();
|
16778
16689
|
};
|
16779
16690
|
this.onWheel = (ev) => {
|
16780
16691
|
const target = ev.target;
|
@@ -16882,7 +16793,7 @@ class TextField {
|
|
16882
16793
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
16883
16794
|
}
|
16884
16795
|
render() {
|
16885
|
-
const { inputId, name, label, required, size, placeholder, helperText, hideCharCount, rows, resize, disabled, value, min, max, numChars, readonly, maxCharacters, maxCharactersMessage, maxCharactersWarning, maxCharactersReached, maxMessage, minCharacters, minCharactersMessage, minCharactersUnattained, minMessage, minValueUnattained, maxValueExceeded, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, theme, } = this;
|
16796
|
+
const { inputId, name, label, required, size, placeholder, helperText, hideCharCount, rows, resize, disabled, value, min, max, numChars, readonly, maxCharacters, maxCharactersMessage, maxCharactersWarning, maxCharactersReached, maxMessage, minCharacters, minCharactersMessage, minCharactersUnattained, minMessage, minValueUnattained, maxValueExceeded, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, theme, hideLabel, type, autocapitalize, ariaActiveDescendant, inheritedAttributes, ariaExpanded, ariaOwns, autocomplete, role, } = this;
|
16886
16797
|
const el = this.el;
|
16887
16798
|
const disabledMode = readonly || disabled;
|
16888
16799
|
const currentStatus = maxValueExceeded ||
|
@@ -16914,43 +16825,42 @@ class TextField {
|
|
16914
16825
|
!validationInlineInternal;
|
16915
16826
|
const multiline = rows > 1;
|
16916
16827
|
const charsRemaining = maxNumChars - numChars;
|
16917
|
-
const hiddenRemainingCharCountDesc = `${charsRemaining} character${charsRemaining === 1 ? "" : "s"} remaining.`;
|
16918
16828
|
const hiddenCharCountDescId = maxCharacters > 0 ? `${inputId}-char-count-desc` : "";
|
16919
16829
|
const describedBy = `${hiddenCharCountDescId} ${getInputDescribedByText(inputId, helperText !== "", showStatusText)}`.trim();
|
16920
16830
|
const disabledText = disabledMode && !readonly;
|
16921
16831
|
const showLeftIcon = !!this.el.querySelector(`[slot="icon"]`) && !disabledText;
|
16922
16832
|
const invalid = `${currentStatus === IcInformationStatus.Error}`;
|
16923
16833
|
hiddenInput
|
16924
|
-
? renderHiddenInput(
|
16834
|
+
? renderHiddenInput(this.el, value, name, disabledMode)
|
16925
16835
|
: removeHiddenInput(this.el);
|
16926
|
-
return (hAsync(Host, { key: '
|
16927
|
-
"ic-text-field-full-width":
|
16836
|
+
return (hAsync(Host, { key: '392b43ac248502539bc00717694c10a24818551e', class: {
|
16837
|
+
"ic-text-field-full-width": fullWidth,
|
16838
|
+
"ic-text-field-disabled": disabledMode,
|
16928
16839
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16929
|
-
|
16930
|
-
|
16931
|
-
readonly: !!readonly,
|
16840
|
+
} }, hAsync("ic-input-container", { key: '59ec38e8e8e934cf48123303f68a7ca863badd83', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: 'fa61768dd93e6d7a1ead043792b15b78b8d3fd26', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly })), hAsync("ic-input-component-container", { key: 'c6ac9c16b6c565671575ec2217e62176d7bc1359', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (hAsync("span", { key: '353b7a992bbce4060dc5fe29b05f96aedd0cf32a', class: {
|
16841
|
+
readonly,
|
16932
16842
|
"has-value": this.getNumberOfCharacters(value) > 0,
|
16933
|
-
}, slot: "left-icon" }, hAsync("slot", { key: '
|
16934
|
-
"no-left-pad": !showLeftIcon &&
|
16935
|
-
readonly
|
16936
|
-
"truncate-value":
|
16937
|
-
}, placeholder: placeholder ? placeholder : "", required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-activedescendant":
|
16843
|
+
}, slot: "left-icon" }, hAsync("slot", { key: '8a5cbec45bedc43908caaae9ff74bc4101f995f8', name: "icon" }))), !multiline ? (hAsync("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: type, min: min, max: max, value: value, class: {
|
16844
|
+
"no-left-pad": !showLeftIcon && readonly,
|
16845
|
+
readonly,
|
16846
|
+
"truncate-value": truncateValue,
|
16847
|
+
}, placeholder: placeholder ? placeholder : "", required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": ariaExpanded, "aria-owns": ariaOwns, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, role: role, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))) : (hAsync("textarea", Object.assign({ id: inputId, class: {
|
16938
16848
|
"no-resize": resize === false || !!readonly,
|
16939
16849
|
"no-left-pad": !showLeftIcon && !!readonly,
|
16940
16850
|
readonly: !!readonly,
|
16941
|
-
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder
|
16851
|
+
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed(el, "clear-button") && (hAsync("slot", { key: '05d080fafd37f3c5e2894968705fe2802cd24f8a', name: "clear-button" })), isSlotUsed(el, "search-submit-button") && (hAsync("slot", { key: 'b4ef1fb8db068a9c547d20147e31ac798cb838b5', name: "search-submit-button" }))), isSlotUsed(el, "menu") && hAsync("slot", { key: '2f708851077d7cc70c6a90d2dae3f817ffdf469b', name: "menu" }), (!isEmptyString(validationStatus) ||
|
16942
16852
|
!isEmptyString(validationText) ||
|
16943
16853
|
maxNumChars > 0 ||
|
16944
16854
|
maxValueExceeded ||
|
16945
16855
|
maxCharactersWarning ||
|
16946
16856
|
minCharactersUnattained ||
|
16947
16857
|
minValueUnattained) &&
|
16948
|
-
!validationInlineInternal && (hAsync("ic-input-validation", { key: '
|
16858
|
+
!validationInlineInternal && (hAsync("ic-input-validation", { key: 'd7c7b40ed97ab62e31fe09e78bf55c796948e33a', status: this.hasStatus(currentStatus) === false ||
|
16949
16859
|
(currentStatus === IcInformationStatus.Success &&
|
16950
16860
|
validationInline) ||
|
16951
16861
|
validationInlineInternal
|
16952
16862
|
? ""
|
16953
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '
|
16863
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '6b6d4c6b40f66756ceafc51c6ba7a336863ce030', slot: "validation-message-adornment" }, !hideCharCount && (hAsync("ic-typography", { key: '5cb893f7e84654a848bd7ec14a0820583ed5d043', variant: "caption", class: "char-count-text" }, hAsync("span", { key: 'b93ac422dbea08cf3d1f139feea1fd5ee37c6755', class: "char-count" }, numChars, "/", maxNumChars))), hAsync("span", { key: 'e3b8a947bf1e4b1dc3bd93e04bb50ffaa55ac6a0', class: "remaining-char-count-desc", "aria-live": "polite" }, `${charsRemaining} character${charsRemaining === 1 ? "" : "s"} remaining.`), hAsync("span", { key: '41353bf51d4e7264cc054f524b404519a953bec9', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters."))))))));
|
16954
16864
|
}
|
16955
16865
|
get el() { return getElement(this); }
|
16956
16866
|
static get watchers() { return {
|
@@ -17087,7 +16997,7 @@ class Theme {
|
|
17087
16997
|
}
|
17088
16998
|
render() {
|
17089
16999
|
const { themeClass } = this;
|
17090
|
-
return (hAsync(Host, { key: '
|
17000
|
+
return (hAsync(Host, { key: 'd994b33e982d89fdb62837456a5a1c90471d0a6a', class: themeClass }, hAsync("slot", { key: 'cc67f5ec282adfe4695a7ecf9134fba920a71a7e' })));
|
17091
17001
|
}
|
17092
17002
|
static get watchers() { return {
|
17093
17003
|
"brandColor": ["watchBrandColorPropHandler"],
|
@@ -17312,13 +17222,13 @@ class Toast {
|
|
17312
17222
|
}
|
17313
17223
|
render() {
|
17314
17224
|
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
|
17315
|
-
return (hAsync(Host, { key: '
|
17225
|
+
return (hAsync(Host, { key: '0215a0779e769d0b9667f0b9b3899e6f9ab40c54', class: { ["ic-toast-hidden"]: !visible }, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: 'b34a48203f613cbcde37d0c7a75743a1c61ded70', class: "container" }, variant && visible && (hAsync("div", { key: 'f3dea0b812b6ab3ab2528f091139716b2781b8f6', class: "toast-icon-container" }, hAsync("div", { key: '215a58acb589a65efabf3837428e131c77bc1500', class: {
|
17316
17226
|
["divider"]: true,
|
17317
17227
|
[`divider-${variant}`]: true,
|
17318
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
17228
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: 'd19e6c1989aa5370383d6aafb319570fad9dbeba', class: {
|
17319
17229
|
["toast-content"]: true,
|
17320
17230
|
["no-icon"]: variant === "neutral" && !isSlotUsed(this.el, "neutral-icon"),
|
17321
|
-
} }, hAsync("div", { key: '
|
17231
|
+
} }, hAsync("div", { key: '3c4b2bcf5563380c57685ddf27e9b9a68c11696c', class: "toast-text" }, hAsync("ic-typography", { key: 'f04cd756f74a338d5e9fbb3db00d91219a018266', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? hAsync("h5", null, heading) : hAsync("p", null, heading))), message && (hAsync("ic-typography", { key: 'b414af6a0f49714c133d1420a11ce0cdabc5c886', variant: "body", class: "toast-message" }, visible && hAsync("p", { key: '2d98f3b3ead56cf54a67ebf3afdaa0f46775f293' }, message)))), isSlotUsed(this.el, "action") && (hAsync("div", { key: '3eeaf3fe192ef351748ccabe3b51b3e588394c07', class: "toast-action-container" }, hAsync("slot", { key: 'e618b7d9f135c816d7e2a1ce79e20027edb126cb', 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", "aria-label": dismissButtonAriaLabel })))));
|
17322
17232
|
}
|
17323
17233
|
get el() { return getElement(this); }
|
17324
17234
|
static get watchers() { return {
|
@@ -17390,7 +17300,7 @@ class ToastRegion {
|
|
17390
17300
|
}
|
17391
17301
|
}
|
17392
17302
|
render() {
|
17393
|
-
return hAsync("slot", { key: '
|
17303
|
+
return hAsync("slot", { key: '8ba16a1a1aa173043f4a14af432e11a82fffda5a' });
|
17394
17304
|
}
|
17395
17305
|
get el() { return getElement(this); }
|
17396
17306
|
static get watchers() { return {
|
@@ -17544,7 +17454,7 @@ class ToggleButton {
|
|
17544
17454
|
}
|
17545
17455
|
}
|
17546
17456
|
render() {
|
17547
|
-
return (hAsync(Host, { key: '
|
17457
|
+
return (hAsync(Host, { key: 'c2130c0d6effca56347c9f898018b9125caa04e0', class: {
|
17548
17458
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
17549
17459
|
["ic-toggle-button-disabled"]: !!this.disabled,
|
17550
17460
|
["ic-toggle-button-checked"]: !!this.checked,
|
@@ -17553,7 +17463,7 @@ class ToggleButton {
|
|
17553
17463
|
["ic-toggle-button-loading"]: !!this.loading,
|
17554
17464
|
["ic-toggle-button-monochrome"]: !!this.monochrome,
|
17555
17465
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
17556
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '
|
17466
|
+
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '99bad5b60f57cbecc96c02beff4ab248592abe5d', "aria-pressed": this.checked.toString(), variant: this.variant === "icon" ? "icon" : "secondary", onClick: this.handleClick, title: this.accessibleLabel, "aria-label": `${this.accessibleLabel ? this.accessibleLabel : this.label}, ${this.checked ? "ticked" : "unticked"}`, disabled: this.disabled, size: this.size, fullWidth: this.fullWidth, loading: this.loading, tooltipPlacement: this.tooltipPlacement }, this.variant !== "icon" && this.label, hAsync("slot", { key: '449862b1dca9d441f3b37f4992d02c9666bc5fce' }), isSlotUsed(this.el, "icon") && (hAsync("slot", { key: '7822805ee7c57ddddbab7ae2e1f881ea410a4c7d', name: "icon", slot: `${this.iconPlacement}-icon` })), isSlotUsed(this.el, "badge") && (hAsync("slot", { key: 'c41f62db8ed4a6ab62e0af047c27be442c7aacfb', name: "badge", slot: "badge" })))));
|
17557
17467
|
}
|
17558
17468
|
static get delegatesFocus() { return true; }
|
17559
17469
|
get el() { return getElement(this); }
|
@@ -17817,14 +17727,14 @@ class ToggleButtonGroup {
|
|
17817
17727
|
return Array.from(this.el.querySelectorAll("ic-toggle-button"));
|
17818
17728
|
}
|
17819
17729
|
render() {
|
17820
|
-
return (hAsync(Host, { key: '
|
17730
|
+
return (hAsync(Host, { key: '5ff90397f901e294f15f3f560eac22d575b61c62', role: "group", "aria-label": this.accessibleLabel, tabindex: 0, class: {
|
17821
17731
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
17822
17732
|
["ic-toggle-button-group-full-width"]: !!this.fullWidth,
|
17823
17733
|
["ic-toggle-button-group-loading"]: !!this.loading,
|
17824
17734
|
["ic-toggle-button-group-disabled"]: this.disabled,
|
17825
17735
|
[`ic-toggle-button-group-monochrome`]: !!this.monochrome,
|
17826
17736
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
17827
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
17737
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: 'c30679fee25ec96c7d28123d9758173737922e18' })));
|
17828
17738
|
}
|
17829
17739
|
get el() { return getElement(this); }
|
17830
17740
|
static get watchers() { return {
|
@@ -18111,10 +18021,10 @@ class Tooltip {
|
|
18111
18021
|
}
|
18112
18022
|
render() {
|
18113
18023
|
const { label, maxLines, silent, theme } = this;
|
18114
|
-
return (hAsync(Host, { key: '
|
18024
|
+
return (hAsync(Host, { key: '6e9449deb13ab672b4b9c5a637b406e4bbbf01cf', class: {
|
18115
18025
|
"ic-tooltip": true,
|
18116
18026
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
18117
|
-
} }, hAsync("div", { key: '
|
18027
|
+
} }, hAsync("div", { key: '85eced68333b24b831affc67ddd6e19a1142a1da', ref: (el) => (this.toolTip = el), role: "tooltip", class: "ic-tooltip-container", "aria-hidden": `${silent}` }, hAsync("ic-typography", { key: 'c8b2727b200dc1f409332fa1eb362600fdf50334', maxLines: maxLines, variant: "caption" }, label), hAsync("div", { key: '452bc4142b7ef38d95883f93ccc2550228cd1ae8', ref: (el) => (this.arrow = el), class: "ic-tooltip-arrow" })), hAsync("slot", { key: '14ca9939bf600654b87b750ff43c02fd20bafd56' })));
|
18118
18028
|
}
|
18119
18029
|
get el() { return getElement(this); }
|
18120
18030
|
static get watchers() { return {
|
@@ -18354,16 +18264,16 @@ class TopNavigation {
|
|
18354
18264
|
const attrs = Component == "a" && {
|
18355
18265
|
href: href,
|
18356
18266
|
};
|
18357
|
-
return (hAsync(Host, { key: '
|
18267
|
+
return (hAsync(Host, { key: 'c34e31b1c026aa42f639599a271e7a3c2dba0ec0', class: {
|
18358
18268
|
"fullwidth-searchbar": hasFullWidthSearchBar,
|
18359
18269
|
"mobile-mode": overMobileBreakpoint,
|
18360
18270
|
[IcBrandForegroundEnum.Dark]: foregroundColor === IcBrandForegroundEnum.Dark,
|
18361
18271
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
18362
|
-
} }, hAsync("div", { key: '
|
18272
|
+
} }, hAsync("div", { key: 'd266b2df2d3a15532911b76e5372a77355d27b02', class: "top-navigation" }, hAsync("ic-section-container", { key: '444caa24a5e6da0186b98b61bcbce33aebaf0e61', aligned: contentAligned, "full-height": true }, hAsync("header", { key: 'fcc8737fb7c54abd463b716cc09589bb56a5d34c', role: "banner" }, hAsync("div", { key: '84139029b5bd3ca31e6bec51f45126ff72d8110a', class: "top-panel-container" }, hAsync("div", { key: '0d670149118d30f5cf7852a72a79810ad4978d26', class: "app-details-container" }, (hasTitle || hasAppTitleSlot) && (hAsync(Component, Object.assign({ key: 'c17c88b16b367927568160d5e11373ff13329ac5', class: "title-link" }, attrs), hasAppIcon && (hAsync("div", { key: '9847777727de0f0da511523d04c72ce980027151', class: "app-icon-container" }, hAsync("slot", { key: '2d44296eb3f6469de56faeb9870b6d096516f23c', name: "app-icon" }))), deviceSize <= DEVICE_SIZES.S &&
|
18363
18273
|
(!isEmptyString(shortAppTitle) || shortAppTitleSlot) ? (hAsync("ic-typography", { variant: "subtitle-small", "aria-label": (!hasAppTitleSlot || !shortAppTitleSlot) &&
|
18364
|
-
`${appTitle} (${shortAppTitle})` }, hAsync("h1", null, shortAppTitleSlot ? (hAsync("slot", { name: "short-app-title" })) : (shortAppTitle)))) : (hAsync("ic-typography", { variant: appTitleVariant }, hAsync("h1", { class: "title-wrap" }, hasAppTitleSlot ? (hAsync("slot", { name: "app-title" })) : (appTitle)))))), hasStatus && (hAsync("div", { key: '
|
18274
|
+
`${appTitle} (${shortAppTitle})` }, hAsync("h1", null, shortAppTitleSlot ? (hAsync("slot", { name: "short-app-title" })) : (shortAppTitle)))) : (hAsync("ic-typography", { variant: appTitleVariant }, hAsync("h1", { class: "title-wrap" }, hasAppTitleSlot ? (hAsync("slot", { name: "app-title" })) : (appTitle)))))), hasStatus && (hAsync("div", { key: '3a25c523a8b2f866979c6b216b8320a0d378ea25', class: "app-status" }, hAsync("ic-typography", { key: '06e42ccfca3a13ca36e39270ffd7380bd8d0a3da', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), hasVersion && (hAsync("div", { key: 'd876b6c44e8f17aac75467e15e0e644b904f7ee4', class: "app-version" }, hAsync("ic-typography", { key: 'adb1db74b83577008a831898ab4c59814be0b271', variant: "label", class: "app-version-text", "aria-label": "app version" }, version)))), (hasSearchSlotContent || hasMenuContent) && (hAsync("div", { key: '363c60544cb4581ae9e31a58c63fedc6aee76447', class: "search-menu-container" }, hAsync("div", { key: '6519a88057979775cfc6081a952e85d3b9417c28', class: "search-actions-container" }, !overMobileBreakpoint && hAsync("slot", { key: 'd174b13453134aa9fedff9a95508dbbac96469a1', name: "search" }), hasSearchSlotContent && overMobileBreakpoint && (hAsync("ic-button", { key: '6e102532a61df76174edecf38f8d2dddde722cf5', id: "search-toggle-button", ref: (el) => (this.mobileSearchButtonEl = el), onMouseDown: searchButtonMouseDownHandler, variant: "icon-tertiary", monochrome: true, size: searchButtonSize, "aria-label": mobileSearchButtonTitle, theme: foregroundColor, onClick: searchButtonClickHandler }, hAsync("slot", { key: 'f910700c47c5878c345470ed9294a33007ce7ead', name: "toggle-icon" }, hAsync("svg", { key: '3d3d934259563eadf67075018a41eb653438f1ea', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#ffffff" }, hAsync("path", { key: '5fff46e4c3da77500acd290d5728f60097673a05', d: "M0 0h24v24H0V0z", fill: "none" }), hAsync("path", { key: '045e973ca81352d2a1bb48579ced25d19f4a1f2a', d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" }))))), hasIconButtons && !overMobileBreakpoint && (hAsync("div", { key: '5fb7278bd4d60f60d21897f1fb96ec7f3a57c87b', class: "icon-buttons-container" }, hAsync("slot", { key: '190d7b5915c3fbbf6347cb3ddc272f9dfc046ac3', name: "buttons" }))), hasMenuContent && overMobileBreakpoint && (hAsync("div", { key: 'a91b5a189c4146e12e90e740001ad0b77679cc77', class: "menu-button-container" }, hAsync("span", { key: 'd218781625f5e261764968eb84e03a32e905383d', id: "navigation-landmark-button-text", class: "navigation-landmark-button-text", "aria-hidden": "true" }, "Main navigation button"), hAsync("nav", { key: '957a343cc283945aceb2bf4f886dadcb8149d118', "aria-labelledby": "navigation-landmark-button-text", "aria-hidden": `${navMenuVisible}` }, hAsync("ic-button", { key: 'e17765454e8a5102b732cf2b12a45ddb8d2426fc', id: "menu-button", theme: foregroundColor, variant: "secondary", monochrome: true, "aria-expanded": "false", "aria-haspopup": "true", "aria-label": `Open ${hasNavigation ? "navigation" : "app"} menu`, size: menuSize, onClick: menuButtonClick }, "Menu", hAsync("svg", { key: '8595a3640057e8cbc4d6a74fc16bfe11007052bd', xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#ffffff", slot: "left-icon" }, hAsync("path", { key: '0a2dd66668d2b8a99981303024d0a9f409197142', d: "M0 0h24v24H0V0z", fill: "none" }), hAsync("path", { key: '6e4ee39265832993f8756c3208f451936fb78a5b', d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })))))))))), mobileSearchBarVisible && (hAsync("div", { key: '7351262fd2c64de0b2572e63011461a17fc9effc', class: "search-bar-container" }, hAsync("slot", { key: '1db63ef6eac0ee7efbf59f8427149c8990182fcf', name: "search" }))), hasNavigation && !overMobileBreakpoint && (hAsync("div", { key: 'c70583f725a90a91bbf09560bddf556ae2dfe9c9', class: "navigation-tabs" }, hAsync("span", { key: 'b87db18c6fbd55a9d56f7caa915c41d9cb7efc81', id: "navigation-landmark-text", class: "navigation-landmark-text", "aria-hidden": "true" }, "Main pages"), hAsync("nav", { key: 'f7337c8fd73f1b2c89a35db9ed1f136bbab22c16', "aria-labelledby": "navigation-landmark-text", class: "nav-panel-container" }, hAsync("ic-horizontal-scroll", { key: '017e0ce9c0cd0f931fbe86cbebb0680b473e90c8', monochrome: true, appearance: foregroundColor }, hAsync("ul", { key: 'd8cc0609df1f348acaf9f2cdce3f50e0583416c5', class: "navigation-item-list", tabindex: "-1" }, hAsync("slot", { key: '9f63d68cb7b5410e3b43c8ce2d034c1842981701', name: "navigation" }))))))))), navMenuVisible && (hAsync("ic-navigation-menu", { key: '7db1c7865aae2836052e0911608179e294a98519', version: version, status: status, class: {
|
18365
18275
|
["inline"]: !!inline,
|
18366
|
-
} }, hasIconButtons && (hAsync("div", { key: '
|
18276
|
+
} }, hasIconButtons && (hAsync("div", { key: 'b4110d809aa48b74b4802463d85743b6dc892978', class: "menu-buttons-slot", slot: "buttons" }, hAsync("slot", { key: '4d31e22407e559d9435fae39e89a6f6612bee4bd', name: "buttons" }))), hAsync("ul", { key: 'a2ad4a21c9b34e86c242addfb56bb0c31a87a230', slot: "navigation" }, hAsync("slot", { key: 'c9c150aa1431942415593722be13d22291eb2b19', name: "navigation" }))))));
|
18367
18277
|
}
|
18368
18278
|
get el() { return getElement(this); }
|
18369
18279
|
static get watchers() { return {
|
@@ -18566,7 +18476,7 @@ class Typography {
|
|
18566
18476
|
render() {
|
18567
18477
|
var _a, _b;
|
18568
18478
|
const { variant, applyVerticalMargins, maxLines, truncated, expanded, strikethrough, underline, italic, bold, theme, } = this;
|
18569
|
-
return (hAsync(Host, { key: '
|
18479
|
+
return (hAsync(Host, { key: 'd386fa51fb7834aad97904a5b757551c388af06b', class: {
|
18570
18480
|
[`ic-typography-${variant}`]: true,
|
18571
18481
|
[`ic-typography-vertical-margins-${variant}`]: !!applyVerticalMargins,
|
18572
18482
|
["ic-typography-bold"]: !!bold,
|
@@ -18579,7 +18489,7 @@ class Typography {
|
|
18579
18489
|
((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===
|
18580
18490
|
"IC-TOOLTIP") &&
|
18581
18491
|
maxLines &&
|
18582
|
-
maxLines > 0 ? (hAsync("div", { class: "trunc-wrapper", ref: (el) => (this.truncWrapperEl = el) }, hAsync("slot", null))) : (hAsync("slot", null)), variant === "body" && maxLines && maxLines > 0 && truncated && (hAsync("button", { key: '
|
18492
|
+
maxLines > 0 ? (hAsync("div", { class: "trunc-wrapper", ref: (el) => (this.truncWrapperEl = el) }, hAsync("slot", null))) : (hAsync("slot", null)), variant === "body" && maxLines && maxLines > 0 && truncated && (hAsync("button", { key: '10df0863dfe83f7195a631012461f438fb41a04c', class: { "trunc-btn": true, focus: this.truncButtonFocussed }, onFocus: this.truncButtonFocus, onBlur: this.truncButtonBlur, onMouseDown: this.truncButtonFocusFromMouse, onClick: this.toggleExpanded }, expanded ? "See less" : "See more"))));
|
18583
18493
|
}
|
18584
18494
|
get el() { return getElement(this); }
|
18585
18495
|
static get watchers() { return {
|