@ukic/web-components 3.18.0 → 3.20.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/{constants-3a9ba64a.js → constants-4d389abc.js} +14 -1
- package/dist/cjs/constants-4d389abc.js.map +1 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-15fae358.js → helpers-3a796e7a.js} +161 -2
- package/dist/cjs/helpers-3a796e7a.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +8 -5
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +2 -2
- package/dist/cjs/ic-action-chip.cjs.entry.js +5 -5
- package/dist/cjs/ic-alert.cjs.entry.js +2 -2
- package/dist/cjs/ic-back-to-top.cjs.entry.js +5 -5
- package/dist/cjs/ic-badge.cjs.entry.js +4 -4
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/ic-button_3.cjs.entry.js +23 -22
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +6 -6
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/ic-chip.cjs.entry.js +14 -7
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-list.cjs.entry.js +4 -3
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +4 -4
- package/dist/cjs/ic-dialog.cjs.entry.js +34 -125
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +2 -2
- package/dist/cjs/ic-empty-state.cjs.entry.js +4 -4
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link.cjs.entry.js +4 -4
- package/dist/cjs/ic-footer.cjs.entry.js +5 -5
- package/dist/cjs/ic-hero.cjs.entry.js +6 -6
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +7 -7
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +10 -10
- package/dist/cjs/ic-input-label_2.cjs.entry.js +7 -7
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-layout-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-layout-grid.cjs.entry.js +2 -2
- package/dist/cjs/ic-link.cjs.entry.js +3 -3
- package/dist/cjs/ic-menu-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-button.cjs.entry.js +4 -4
- package/dist/cjs/ic-navigation-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-item.cjs.entry.js +4 -4
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +6 -6
- package/dist/cjs/ic-page-header.cjs.entry.js +8 -8
- package/dist/cjs/ic-pagination-item.cjs.entry.js +3 -3
- package/dist/cjs/ic-pagination.cjs.entry.js +31 -6
- package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +6 -6
- package/dist/cjs/ic-radio-group.cjs.entry.js +6 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js +6 -6
- package/dist/cjs/ic-search-bar.cjs.entry.js +11 -11
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-select.cjs.entry.js +8 -8
- package/dist/cjs/ic-side-navigation.cjs.entry.js +6 -6
- 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 +4 -4
- package/dist/cjs/ic-step.cjs.entry.js +15 -15
- package/dist/cjs/ic-stepper.cjs.entry.js +4 -4
- package/dist/cjs/ic-switch.cjs.entry.js +6 -6
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +4 -4
- package/dist/cjs/ic-text-field.cjs.entry.js +7 -7
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +3 -3
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +7 -7
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/ic-top-navigation.cjs.entry.js +9 -6
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +4 -4
- package/dist/cjs/index.cjs.js +7 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-accordion/ic-accordion.stories.js +21 -0
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.css +11 -0
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.js +6 -2
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.js.map +1 -1
- package/dist/collection/components/ic-action-chip/ic-action-chip.js +3 -3
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +3 -3
- package/dist/collection/components/ic-badge/ic-badge.js +2 -2
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +2 -2
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +2 -2
- package/dist/collection/components/ic-button/ic-button.js +2 -2
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +4 -4
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +4 -4
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +2 -2
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +1 -1
- package/dist/collection/components/ic-chip/ic-chip.css +12 -0
- package/dist/collection/components/ic-chip/ic-chip.js +31 -4
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.stories.js +15 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +2 -2
- package/dist/collection/components/ic-data-list/ic-data-list.css +4 -0
- package/dist/collection/components/ic-data-list/ic-data-list.js +3 -2
- package/dist/collection/components/ic-data-list/ic-data-list.js.map +1 -1
- package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
- package/dist/collection/components/ic-dialog/ic-dialog.js +33 -124
- package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
- package/dist/collection/components/ic-dialog/ic-dialog.stories.js +3 -2
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
- package/dist/collection/components/ic-footer/ic-footer.js +3 -3
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-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 +2 -2
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +5 -4
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
- package/dist/collection/components/ic-layout-grid/ic-layout-grid.js +2 -2
- package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.js +2 -2
- package/dist/collection/components/ic-link/ic-link.js +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +5 -5
- 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-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 +35 -4
- package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +4 -4
- 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 +9 -9
- 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-side-navigation/ic-side-navigation.js +4 -4
- 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 +4 -4
- 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 +6 -5
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.stories.js +12 -1
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +5 -5
- 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.css +1 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +13 -12
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +7 -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/constants.js +7 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/helpers.js +169 -2
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/constants.js +8 -1
- package/dist/components/constants.js.map +1 -1
- package/dist/components/helpers.js +157 -2
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-accordion-group.js +6 -3
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-action-chip.js +3 -3
- package/dist/components/ic-back-to-top.js +3 -3
- package/dist/components/ic-badge.js +2 -2
- package/dist/components/ic-breadcrumb-group.js +2 -2
- package/dist/components/ic-breadcrumb2.js +2 -2
- package/dist/components/ic-button2.js +2 -2
- package/dist/components/ic-card-vertical.js +4 -4
- package/dist/components/ic-checkbox-group.js +2 -2
- package/dist/components/ic-checkbox.js +4 -4
- package/dist/components/ic-chip.js +13 -5
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +2 -2
- package/dist/components/ic-data-list.js +4 -3
- package/dist/components/ic-data-list.js.map +1 -1
- package/dist/components/ic-data-row.js +2 -2
- package/dist/components/ic-dialog.js +33 -124
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-divider2.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-footer.js +4 -4
- package/dist/components/ic-hero.js +4 -4
- package/dist/components/ic-horizontal-scroll2.js +6 -6
- 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 +2 -2
- package/dist/components/ic-input-validation2.js +5 -5
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-layout-grid-item.js +2 -2
- package/dist/components/ic-layout-grid.js +2 -2
- package/dist/components/ic-link2.js +1 -1
- package/dist/components/ic-loading-indicator2.js +5 -5
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu2.js +4 -4
- package/dist/components/ic-navigation-button.js +3 -3
- package/dist/components/ic-navigation-group.js +2 -2
- package/dist/components/ic-navigation-item.js +3 -3
- package/dist/components/ic-navigation-menu2.js +5 -5
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination.js +30 -5
- package/dist/components/ic-pagination.js.map +1 -1
- package/dist/components/ic-popover-menu.js +4 -4
- package/dist/components/ic-radio-group.js +4 -4
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +4 -4
- package/dist/components/ic-search-bar.js +10 -10
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select.js +7 -7
- package/dist/components/ic-side-navigation.js +5 -5
- 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 +4 -4
- package/dist/components/ic-tab-context.js +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab.js +2 -2
- package/dist/components/ic-text-field.js +6 -6
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-theme.js +2 -2
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +6 -6
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +3 -3
- package/dist/components/ic-tooltip2.js +14 -13
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +8 -5
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/core/core.css +4 -4
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/index.esm.js +1 -1
- package/dist/core/{p-ffd0d9d1.entry.js → p-0301d1c8.entry.js} +2 -2
- package/dist/core/{p-3238389a.entry.js → p-0722d7b6.entry.js} +2 -2
- package/dist/core/{p-d376858f.entry.js → p-09c31ac6.entry.js} +2 -2
- package/dist/core/{p-5d2efd2d.entry.js → p-0d711c6a.entry.js} +2 -2
- package/dist/core/{p-f7105cf9.entry.js → p-0f6fd5d3.entry.js} +2 -2
- package/dist/core/{p-f57729b8.entry.js → p-0f998905.entry.js} +2 -2
- package/dist/core/{p-a8e4258f.entry.js → p-107281c4.entry.js} +2 -2
- package/dist/core/p-107281c4.entry.js.map +1 -0
- package/dist/core/{p-9674b63f.entry.js → p-1d8559f0.entry.js} +2 -2
- package/dist/core/{p-62b9e7bf.entry.js → p-1edf2689.entry.js} +2 -2
- package/dist/core/{p-a7583faf.entry.js → p-1fc4b88f.entry.js} +2 -2
- package/dist/core/{p-703f3de1.entry.js → p-23dc27a8.entry.js} +2 -2
- package/dist/core/{p-4631ac1b.entry.js → p-276a6c8f.entry.js} +2 -2
- package/dist/core/{p-a5295f66.entry.js → p-3582c7df.entry.js} +2 -2
- package/dist/core/{p-7dff646d.entry.js → p-3c7e90a7.entry.js} +2 -2
- package/dist/core/p-45076d7e.entry.js +2 -0
- package/dist/core/{p-e82d9a6f.entry.js → p-45c553db.entry.js} +2 -2
- package/dist/core/p-4e43b272.entry.js +2 -0
- package/dist/core/p-4e43b272.entry.js.map +1 -0
- package/dist/core/{p-2026f4fa.entry.js → p-57ce68e5.entry.js} +2 -2
- package/dist/core/{p-2026f4fa.entry.js.map → p-57ce68e5.entry.js.map} +1 -1
- package/dist/core/{p-c4ffcc64.entry.js → p-5ac3adb9.entry.js} +2 -2
- package/dist/core/{p-9ca147f3.entry.js → p-608b4912.entry.js} +2 -2
- package/dist/core/{p-bddf799a.js → p-6215e2ae.js} +2 -2
- package/dist/core/p-6215e2ae.js.map +1 -0
- package/dist/core/{p-ca82850f.entry.js → p-656a9127.entry.js} +2 -2
- package/dist/core/p-656a9127.entry.js.map +1 -0
- package/dist/core/{p-0648dd8e.entry.js → p-6740c915.entry.js} +2 -2
- package/dist/core/{p-de630a9a.entry.js → p-6aa8d3ce.entry.js} +2 -2
- package/dist/core/{p-52c66bfe.entry.js → p-72344764.entry.js} +2 -2
- package/dist/core/{p-ae11583f.entry.js → p-76e8df31.entry.js} +2 -2
- package/dist/core/p-7b8e5926.entry.js +2 -0
- package/dist/core/p-7b8e5926.entry.js.map +1 -0
- package/dist/core/{p-c397b33f.entry.js → p-7c38dd1f.entry.js} +2 -2
- package/dist/core/{p-355d0914.entry.js → p-81f60443.entry.js} +2 -2
- package/dist/core/{p-1ca4a5ed.entry.js → p-840c647f.entry.js} +2 -2
- package/dist/core/{p-3785c740.entry.js → p-86989873.entry.js} +2 -2
- package/dist/core/{p-1cc402b8.entry.js → p-880afd4b.entry.js} +2 -2
- package/dist/core/{p-b9459ba2.entry.js → p-889bb8db.entry.js} +2 -2
- package/dist/core/{p-049839cd.entry.js → p-8b1567c9.entry.js} +2 -2
- package/dist/core/p-8b1567c9.entry.js.map +1 -0
- package/dist/core/{p-a8310dfd.entry.js → p-8c00614c.entry.js} +2 -2
- package/dist/core/{p-8abcc114.entry.js → p-8f45f956.entry.js} +2 -2
- package/dist/core/{p-319e3d5b.entry.js → p-90814d32.entry.js} +2 -2
- package/dist/core/{p-1be17f22.entry.js → p-93e1ba0a.entry.js} +2 -2
- package/dist/core/{p-a7f21494.entry.js → p-949d08d3.entry.js} +2 -2
- package/dist/core/{p-601d4e3f.entry.js → p-9b60ca02.entry.js} +2 -2
- package/dist/core/{p-49444c33.entry.js → p-a0af1b0a.entry.js} +2 -2
- package/dist/core/{p-ed3aaa3a.entry.js → p-a16415e4.entry.js} +3 -3
- package/dist/core/{p-b4a2f6fa.entry.js → p-ad5aca6f.entry.js} +2 -2
- package/dist/core/p-ad5aca6f.entry.js.map +1 -0
- package/dist/core/{p-bdda404b.entry.js → p-aed1c7e7.entry.js} +2 -2
- package/dist/core/p-b22fc28d.entry.js +2 -0
- package/dist/core/p-b22fc28d.entry.js.map +1 -0
- package/dist/core/{p-f4e3bb5b.entry.js → p-b5e39585.entry.js} +2 -2
- package/dist/core/{p-3a94849e.entry.js → p-b8c0c142.entry.js} +2 -2
- package/dist/core/{p-12c30491.entry.js → p-ba4abeac.entry.js} +2 -2
- package/dist/core/{p-a61fa6ad.entry.js → p-c16e982c.entry.js} +2 -2
- package/dist/core/{p-f247db14.entry.js → p-c3f5907e.entry.js} +2 -2
- package/dist/core/{p-e0423c7e.entry.js → p-c7f8547d.entry.js} +2 -2
- package/dist/core/{p-411527a1.entry.js → p-cdbbcef4.entry.js} +2 -2
- package/dist/core/{p-af728534.entry.js → p-cf056074.entry.js} +2 -2
- package/dist/core/{p-9c52ee48.entry.js → p-d2d17d6d.entry.js} +2 -2
- package/dist/core/{p-082e0068.entry.js → p-d478d13e.entry.js} +2 -2
- package/dist/core/p-dbc8bf0c.js +2 -0
- package/dist/core/p-dbc8bf0c.js.map +1 -0
- package/dist/core/{p-77a6c3f7.entry.js → p-df029b1b.entry.js} +2 -2
- package/dist/core/{p-6ed48c46.entry.js → p-e176881a.entry.js} +2 -2
- package/dist/core/{p-67c3985d.entry.js → p-e1814e7e.entry.js} +2 -2
- package/dist/core/{p-d3223b89.entry.js → p-ebc47282.entry.js} +2 -2
- package/dist/core/{p-ae7dcbd5.entry.js → p-ec14c783.entry.js} +2 -2
- package/dist/core/{p-eca43f7d.entry.js → p-f5fd4a76.entry.js} +2 -2
- package/dist/core/{p-911b4aa4.entry.js → p-f700b759.entry.js} +2 -2
- package/dist/core/p-fdb587ab.entry.js +2 -0
- package/dist/core/p-fdb587ab.entry.js.map +1 -0
- package/dist/core/{p-f6bb691a.entry.js → p-fe0153ec.entry.js} +2 -2
- package/dist/esm/{constants-7960cba4.js → constants-ab12fdcf.js} +9 -2
- package/dist/esm/constants-ab12fdcf.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-dcedb279.js → helpers-0f85537f.js} +158 -3
- package/dist/esm/helpers-0f85537f.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +8 -5
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +2 -2
- package/dist/esm/ic-action-chip.entry.js +5 -5
- package/dist/esm/ic-alert.entry.js +2 -2
- package/dist/esm/ic-back-to-top.entry.js +5 -5
- package/dist/esm/ic-badge.entry.js +4 -4
- package/dist/esm/ic-breadcrumb-group.entry.js +4 -4
- package/dist/esm/ic-breadcrumb.entry.js +4 -4
- package/dist/esm/ic-button_3.entry.js +23 -22
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +6 -6
- package/dist/esm/ic-checkbox-group.entry.js +4 -4
- package/dist/esm/ic-checkbox.entry.js +6 -6
- package/dist/esm/ic-chip.entry.js +14 -7
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +2 -2
- package/dist/esm/ic-data-list.entry.js +4 -3
- package/dist/esm/ic-data-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +4 -4
- package/dist/esm/ic-dialog.entry.js +34 -125
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +2 -2
- package/dist/esm/ic-empty-state.entry.js +4 -4
- package/dist/esm/ic-footer-link-group.entry.js +2 -2
- package/dist/esm/ic-footer-link.entry.js +4 -4
- package/dist/esm/ic-footer.entry.js +5 -5
- package/dist/esm/ic-hero.entry.js +6 -6
- package/dist/esm/ic-horizontal-scroll.entry.js +7 -7
- package/dist/esm/ic-input-component-container_3.entry.js +10 -10
- package/dist/esm/ic-input-label_2.entry.js +7 -7
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-layout-grid-item.entry.js +2 -2
- package/dist/esm/ic-layout-grid.entry.js +2 -2
- package/dist/esm/ic-link.entry.js +3 -3
- package/dist/esm/ic-menu-group.entry.js +3 -3
- package/dist/esm/ic-menu-item.entry.js +2 -2
- package/dist/esm/ic-navigation-button.entry.js +4 -4
- package/dist/esm/ic-navigation-group.entry.js +3 -3
- package/dist/esm/ic-navigation-item.entry.js +4 -4
- package/dist/esm/ic-navigation-menu.entry.js +6 -6
- package/dist/esm/ic-page-header.entry.js +8 -8
- package/dist/esm/ic-pagination-item.entry.js +3 -3
- package/dist/esm/ic-pagination.entry.js +31 -6
- package/dist/esm/ic-pagination.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +6 -6
- package/dist/esm/ic-radio-group.entry.js +6 -6
- package/dist/esm/ic-radio-option.entry.js +6 -6
- package/dist/esm/ic-search-bar.entry.js +11 -11
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-select.entry.js +8 -8
- package/dist/esm/ic-side-navigation.entry.js +6 -6
- 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 +4 -4
- package/dist/esm/ic-step.entry.js +15 -15
- package/dist/esm/ic-stepper.entry.js +4 -4
- package/dist/esm/ic-switch.entry.js +6 -6
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-group.entry.js +4 -4
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab.entry.js +4 -4
- package/dist/esm/ic-text-field.entry.js +7 -7
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +3 -3
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +7 -7
- package/dist/esm/ic-toggle-button-group.entry.js +4 -4
- package/dist/esm/ic-toggle-button.entry.js +4 -4
- package/dist/esm/ic-top-navigation.entry.js +9 -6
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +4 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-accordion-group/ic-accordion-group.d.ts +1 -0
- package/dist/types/components/ic-chip/ic-chip.d.ts +5 -0
- package/dist/types/components/ic-dialog/ic-dialog.d.ts +2 -15
- package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +1 -0
- package/dist/types/components/ic-pagination/ic-pagination.d.ts +7 -0
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +1 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +8 -0
- package/dist/types/utils/constants.d.ts +6 -0
- package/dist/types/utils/helpers.d.ts +69 -2
- package/dist/types/utils/types.d.ts +1 -0
- package/hydrate/index.js +438 -323
- package/hydrate/index.mjs +438 -323
- package/package.json +17 -23
- package/vscode-data.json +4 -0
- package/dist/cjs/constants-3a9ba64a.js.map +0 -1
- package/dist/cjs/helpers-15fae358.js.map +0 -1
- package/dist/core/p-049839cd.entry.js.map +0 -1
- package/dist/core/p-177d3c2f.entry.js +0 -2
- package/dist/core/p-199c5ff6.entry.js +0 -2
- package/dist/core/p-199c5ff6.entry.js.map +0 -1
- package/dist/core/p-6329ddcb.entry.js +0 -2
- package/dist/core/p-6329ddcb.entry.js.map +0 -1
- package/dist/core/p-72e5eb70.entry.js +0 -2
- package/dist/core/p-72e5eb70.entry.js.map +0 -1
- package/dist/core/p-a45de09d.entry.js +0 -2
- package/dist/core/p-a45de09d.entry.js.map +0 -1
- package/dist/core/p-a5658054.js +0 -2
- package/dist/core/p-a5658054.js.map +0 -1
- package/dist/core/p-a8e4258f.entry.js.map +0 -1
- package/dist/core/p-b4a2f6fa.entry.js.map +0 -1
- package/dist/core/p-bddf799a.js.map +0 -1
- package/dist/core/p-ca82850f.entry.js.map +0 -1
- package/dist/esm/constants-7960cba4.js.map +0 -1
- package/dist/esm/helpers-dcedb279.js.map +0 -1
- /package/dist/core/{p-ffd0d9d1.entry.js.map → p-0301d1c8.entry.js.map} +0 -0
- /package/dist/core/{p-3238389a.entry.js.map → p-0722d7b6.entry.js.map} +0 -0
- /package/dist/core/{p-d376858f.entry.js.map → p-09c31ac6.entry.js.map} +0 -0
- /package/dist/core/{p-5d2efd2d.entry.js.map → p-0d711c6a.entry.js.map} +0 -0
- /package/dist/core/{p-f7105cf9.entry.js.map → p-0f6fd5d3.entry.js.map} +0 -0
- /package/dist/core/{p-f57729b8.entry.js.map → p-0f998905.entry.js.map} +0 -0
- /package/dist/core/{p-9674b63f.entry.js.map → p-1d8559f0.entry.js.map} +0 -0
- /package/dist/core/{p-62b9e7bf.entry.js.map → p-1edf2689.entry.js.map} +0 -0
- /package/dist/core/{p-a7583faf.entry.js.map → p-1fc4b88f.entry.js.map} +0 -0
- /package/dist/core/{p-703f3de1.entry.js.map → p-23dc27a8.entry.js.map} +0 -0
- /package/dist/core/{p-4631ac1b.entry.js.map → p-276a6c8f.entry.js.map} +0 -0
- /package/dist/core/{p-a5295f66.entry.js.map → p-3582c7df.entry.js.map} +0 -0
- /package/dist/core/{p-7dff646d.entry.js.map → p-3c7e90a7.entry.js.map} +0 -0
- /package/dist/core/{p-177d3c2f.entry.js.map → p-45076d7e.entry.js.map} +0 -0
- /package/dist/core/{p-e82d9a6f.entry.js.map → p-45c553db.entry.js.map} +0 -0
- /package/dist/core/{p-c4ffcc64.entry.js.map → p-5ac3adb9.entry.js.map} +0 -0
- /package/dist/core/{p-9ca147f3.entry.js.map → p-608b4912.entry.js.map} +0 -0
- /package/dist/core/{p-0648dd8e.entry.js.map → p-6740c915.entry.js.map} +0 -0
- /package/dist/core/{p-de630a9a.entry.js.map → p-6aa8d3ce.entry.js.map} +0 -0
- /package/dist/core/{p-52c66bfe.entry.js.map → p-72344764.entry.js.map} +0 -0
- /package/dist/core/{p-ae11583f.entry.js.map → p-76e8df31.entry.js.map} +0 -0
- /package/dist/core/{p-c397b33f.entry.js.map → p-7c38dd1f.entry.js.map} +0 -0
- /package/dist/core/{p-355d0914.entry.js.map → p-81f60443.entry.js.map} +0 -0
- /package/dist/core/{p-1ca4a5ed.entry.js.map → p-840c647f.entry.js.map} +0 -0
- /package/dist/core/{p-3785c740.entry.js.map → p-86989873.entry.js.map} +0 -0
- /package/dist/core/{p-1cc402b8.entry.js.map → p-880afd4b.entry.js.map} +0 -0
- /package/dist/core/{p-b9459ba2.entry.js.map → p-889bb8db.entry.js.map} +0 -0
- /package/dist/core/{p-a8310dfd.entry.js.map → p-8c00614c.entry.js.map} +0 -0
- /package/dist/core/{p-8abcc114.entry.js.map → p-8f45f956.entry.js.map} +0 -0
- /package/dist/core/{p-319e3d5b.entry.js.map → p-90814d32.entry.js.map} +0 -0
- /package/dist/core/{p-1be17f22.entry.js.map → p-93e1ba0a.entry.js.map} +0 -0
- /package/dist/core/{p-a7f21494.entry.js.map → p-949d08d3.entry.js.map} +0 -0
- /package/dist/core/{p-601d4e3f.entry.js.map → p-9b60ca02.entry.js.map} +0 -0
- /package/dist/core/{p-49444c33.entry.js.map → p-a0af1b0a.entry.js.map} +0 -0
- /package/dist/core/{p-ed3aaa3a.entry.js.map → p-a16415e4.entry.js.map} +0 -0
- /package/dist/core/{p-bdda404b.entry.js.map → p-aed1c7e7.entry.js.map} +0 -0
- /package/dist/core/{p-f4e3bb5b.entry.js.map → p-b5e39585.entry.js.map} +0 -0
- /package/dist/core/{p-3a94849e.entry.js.map → p-b8c0c142.entry.js.map} +0 -0
- /package/dist/core/{p-12c30491.entry.js.map → p-ba4abeac.entry.js.map} +0 -0
- /package/dist/core/{p-a61fa6ad.entry.js.map → p-c16e982c.entry.js.map} +0 -0
- /package/dist/core/{p-f247db14.entry.js.map → p-c3f5907e.entry.js.map} +0 -0
- /package/dist/core/{p-e0423c7e.entry.js.map → p-c7f8547d.entry.js.map} +0 -0
- /package/dist/core/{p-411527a1.entry.js.map → p-cdbbcef4.entry.js.map} +0 -0
- /package/dist/core/{p-af728534.entry.js.map → p-cf056074.entry.js.map} +0 -0
- /package/dist/core/{p-9c52ee48.entry.js.map → p-d2d17d6d.entry.js.map} +0 -0
- /package/dist/core/{p-082e0068.entry.js.map → p-d478d13e.entry.js.map} +0 -0
- /package/dist/core/{p-77a6c3f7.entry.js.map → p-df029b1b.entry.js.map} +0 -0
- /package/dist/core/{p-6ed48c46.entry.js.map → p-e176881a.entry.js.map} +0 -0
- /package/dist/core/{p-67c3985d.entry.js.map → p-e1814e7e.entry.js.map} +0 -0
- /package/dist/core/{p-d3223b89.entry.js.map → p-ebc47282.entry.js.map} +0 -0
- /package/dist/core/{p-ae7dcbd5.entry.js.map → p-ec14c783.entry.js.map} +0 -0
- /package/dist/core/{p-eca43f7d.entry.js.map → p-f5fd4a76.entry.js.map} +0 -0
- /package/dist/core/{p-911b4aa4.entry.js.map → p-f700b759.entry.js.map} +0 -0
- /package/dist/core/{p-f6bb691a.entry.js.map → p-fe0153ec.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -3282,6 +3282,13 @@ const IGNORED_KEYBOARD_CHARACTERS = [
|
|
|
3282
3282
|
"Tab",
|
|
3283
3283
|
];
|
|
3284
3284
|
const IC_CUSTOM_ALLOWED_COMPONENTS = [];
|
|
3285
|
+
// Component tag names used in focus trapping helper functions
|
|
3286
|
+
const IC_ACCORDION = "IC-ACCORDION";
|
|
3287
|
+
const IC_ACCORDION_GROUP = "IC-ACCORDION-GROUP";
|
|
3288
|
+
const IC_CHECKBOX = "IC-CHECKBOX";
|
|
3289
|
+
const IC_SEARCH_BAR = "IC-SEARCH-BAR";
|
|
3290
|
+
const IC_TAB_CONTEXT = "IC-TAB-CONTEXT";
|
|
3291
|
+
const IC_TEXT_FIELD = "IC-TEXT-FIELD";
|
|
3285
3292
|
|
|
3286
3293
|
const DARK_MODE_THRESHOLD = 133.3505;
|
|
3287
3294
|
const ANYWHERE_SEARCH_POSITION = "anywhere";
|
|
@@ -3724,6 +3731,161 @@ const getElementInheritedTheme = (el) => {
|
|
|
3724
3731
|
const isSafari = /safari/i.test(window.navigator.userAgent) &&
|
|
3725
3732
|
!/Edge/i.test(window.navigator.userAgent) &&
|
|
3726
3733
|
!/chrome/i.test(window.navigator.userAgent);
|
|
3734
|
+
/**
|
|
3735
|
+
* Focuses the provided element, or the next focusable element if it should be skipped. Used for focus trapping.
|
|
3736
|
+
* @param focusAttemptCount - number of focus attempts that have been made
|
|
3737
|
+
* @param focusedElementIndex - current focused element index
|
|
3738
|
+
* @param interactiveElementList - list of interactive elements
|
|
3739
|
+
* @param shiftKey - whether the shift key is pressed
|
|
3740
|
+
*/
|
|
3741
|
+
const focusElement = (focusAttemptCount, focusedElementIndex, interactiveElementList, shiftKey = false) => {
|
|
3742
|
+
const element = interactiveElementList[focusedElementIndex];
|
|
3743
|
+
if (!element) {
|
|
3744
|
+
return;
|
|
3745
|
+
}
|
|
3746
|
+
let newFocusAttemptCount = focusAttemptCount;
|
|
3747
|
+
if (newFocusAttemptCount++ > interactiveElementList.length) {
|
|
3748
|
+
return;
|
|
3749
|
+
}
|
|
3750
|
+
let newFocusedElementIndex = focusedElementIndex;
|
|
3751
|
+
if (shouldSkipElement(element)) {
|
|
3752
|
+
newFocusedElementIndex = getFocusIndexBasedOnShiftKey(newFocusedElementIndex, shiftKey);
|
|
3753
|
+
newFocusedElementIndex = getLoopedNextFocusIndexIfLastElement(newFocusedElementIndex, interactiveElementList);
|
|
3754
|
+
return focusElement(newFocusAttemptCount, newFocusedElementIndex, interactiveElementList, shiftKey);
|
|
3755
|
+
}
|
|
3756
|
+
else {
|
|
3757
|
+
switch (element.tagName) {
|
|
3758
|
+
case IC_ACCORDION:
|
|
3759
|
+
case IC_ACCORDION_GROUP:
|
|
3760
|
+
case IC_CHECKBOX:
|
|
3761
|
+
case IC_SEARCH_BAR:
|
|
3762
|
+
case IC_TAB_CONTEXT:
|
|
3763
|
+
case IC_TEXT_FIELD:
|
|
3764
|
+
element.setFocus();
|
|
3765
|
+
break;
|
|
3766
|
+
default:
|
|
3767
|
+
element.focus();
|
|
3768
|
+
}
|
|
3769
|
+
return { newFocusAttemptCount, newFocusedElementIndex };
|
|
3770
|
+
}
|
|
3771
|
+
};
|
|
3772
|
+
/**
|
|
3773
|
+
* Gets the index of the currently focused element. Used for focus trapping.
|
|
3774
|
+
* @param el - host element of the component
|
|
3775
|
+
* @param interactiveElementList - list of interactive elements
|
|
3776
|
+
*/
|
|
3777
|
+
const getFocusedElementIndex = (el, interactiveElementList) => {
|
|
3778
|
+
var _a;
|
|
3779
|
+
for (let i = 0; i < interactiveElementList.length; i++) {
|
|
3780
|
+
if (interactiveElementList[i] ===
|
|
3781
|
+
(((_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.activeElement) || document.activeElement)) {
|
|
3782
|
+
return i;
|
|
3783
|
+
}
|
|
3784
|
+
}
|
|
3785
|
+
return null;
|
|
3786
|
+
};
|
|
3787
|
+
/**
|
|
3788
|
+
* Gets the next focusable element index based on whether the shift key is pressed. Used for focus trapping.
|
|
3789
|
+
* @param focusedElementIndex - current focused element index
|
|
3790
|
+
* @param shiftKey - whether the shift key is pressed
|
|
3791
|
+
*/
|
|
3792
|
+
const getFocusIndexBasedOnShiftKey = (focusedElementIndex, shiftKey) => (shiftKey ? (focusedElementIndex -= 1) : (focusedElementIndex += 1));
|
|
3793
|
+
/**
|
|
3794
|
+
* Gets the next focusable element index, looping back to the start or end if necessary. Used for focus trapping.
|
|
3795
|
+
* @param focusedElementIndex - current focused element index
|
|
3796
|
+
* @param interactiveElementList - list of interactive elements
|
|
3797
|
+
*/
|
|
3798
|
+
const getLoopedNextFocusIndexIfLastElement = (focusedElementIndex, interactiveElementList) => {
|
|
3799
|
+
if (focusedElementIndex > interactiveElementList.length - 1) {
|
|
3800
|
+
return 0;
|
|
3801
|
+
}
|
|
3802
|
+
else if (focusedElementIndex < 0) {
|
|
3803
|
+
return interactiveElementList.length - 1;
|
|
3804
|
+
}
|
|
3805
|
+
return focusedElementIndex;
|
|
3806
|
+
};
|
|
3807
|
+
/**
|
|
3808
|
+
* Handles tab key press for focus trapping.
|
|
3809
|
+
* @param el - host element of the component
|
|
3810
|
+
* @param focusAttemptCount - number of focus attempts that have been made
|
|
3811
|
+
* @param focusedElementIndex - current focused element index
|
|
3812
|
+
* @param interactiveElementList - list of interactive elements
|
|
3813
|
+
* @param shiftKey - whether the shift key is pressed
|
|
3814
|
+
*/
|
|
3815
|
+
function handleFocusTrapTabKeyPress(el, focusAttemptCount, focusedElementIndex, interactiveElementList, shiftKey) {
|
|
3816
|
+
var _a;
|
|
3817
|
+
let newFocusAttemptCount = focusAttemptCount;
|
|
3818
|
+
let newFocusedElementIndex = getFocusedElementIndex(el, interactiveElementList) || focusedElementIndex;
|
|
3819
|
+
if (((_a = interactiveElementList[focusedElementIndex]) === null || _a === void 0 ? void 0 : _a.tagName) === IC_SEARCH_BAR) {
|
|
3820
|
+
return {
|
|
3821
|
+
newFocusAttemptCount,
|
|
3822
|
+
newFocusedElementIndex,
|
|
3823
|
+
preventDefault: false,
|
|
3824
|
+
};
|
|
3825
|
+
}
|
|
3826
|
+
newFocusedElementIndex = getFocusIndexBasedOnShiftKey(newFocusedElementIndex, shiftKey);
|
|
3827
|
+
newFocusedElementIndex = getLoopedNextFocusIndexIfLastElement(newFocusedElementIndex, interactiveElementList);
|
|
3828
|
+
newFocusAttemptCount = 0;
|
|
3829
|
+
const focusElementResult = focusElement(newFocusAttemptCount, newFocusedElementIndex, interactiveElementList, shiftKey);
|
|
3830
|
+
if (focusElementResult) {
|
|
3831
|
+
newFocusedElementIndex = focusElementResult.newFocusedElementIndex;
|
|
3832
|
+
newFocusAttemptCount = focusElementResult.newFocusAttemptCount;
|
|
3833
|
+
}
|
|
3834
|
+
return { newFocusAttemptCount, newFocusedElementIndex, preventDefault: true };
|
|
3835
|
+
}
|
|
3836
|
+
/**
|
|
3837
|
+
* Sets up listener and mutation observer to refresh interactive elements on slot changes. Used for focus trapping.
|
|
3838
|
+
* @param contentWrapper - content wrapper element
|
|
3839
|
+
* @param getInteractiveElements - function to get interactive elements
|
|
3840
|
+
*/
|
|
3841
|
+
const refreshInteractiveElementsOnSlotChange = (contentWrapper, getInteractiveElements) => {
|
|
3842
|
+
var _a;
|
|
3843
|
+
let contentAreaSlot = null;
|
|
3844
|
+
let contentAreaMutationObserver = null;
|
|
3845
|
+
if (contentWrapper) {
|
|
3846
|
+
contentAreaSlot = contentWrapper.querySelector("slot");
|
|
3847
|
+
// Detect changes to slotted elements
|
|
3848
|
+
contentAreaSlot === null || contentAreaSlot === void 0 ? void 0 : contentAreaSlot.addEventListener("slotchange", getInteractiveElements);
|
|
3849
|
+
contentAreaMutationObserver = new MutationObserver(() => {
|
|
3850
|
+
getInteractiveElements();
|
|
3851
|
+
});
|
|
3852
|
+
// Detect changes to children of slotted elements
|
|
3853
|
+
(_a = getSlotElements(contentWrapper)) === null || _a === void 0 ? void 0 : _a.forEach((el) => {
|
|
3854
|
+
contentAreaMutationObserver === null || contentAreaMutationObserver === void 0 ? void 0 : contentAreaMutationObserver.observe(el, {
|
|
3855
|
+
childList: true,
|
|
3856
|
+
subtree: true,
|
|
3857
|
+
});
|
|
3858
|
+
});
|
|
3859
|
+
}
|
|
3860
|
+
return { contentAreaSlot, contentAreaMutationObserver };
|
|
3861
|
+
};
|
|
3862
|
+
/**
|
|
3863
|
+
* Determines whether an element should be skipped when focusing interactive elements. Used for focus trapping.
|
|
3864
|
+
* @param element - element to check
|
|
3865
|
+
*/
|
|
3866
|
+
const shouldSkipElement = (element) => {
|
|
3867
|
+
if (!element) {
|
|
3868
|
+
return true;
|
|
3869
|
+
}
|
|
3870
|
+
const isHidden = getComputedStyle(element).visibility === "hidden" ||
|
|
3871
|
+
element.offsetHeight === 0 ||
|
|
3872
|
+
element.hasAttribute("disabled") ||
|
|
3873
|
+
(element.tagName === IC_ACCORDION_GROUP &&
|
|
3874
|
+
element.hasAttribute("single-expansion"));
|
|
3875
|
+
const radioEl = element.closest("ic-radio-option");
|
|
3876
|
+
return (isHidden ||
|
|
3877
|
+
(element.getAttribute("type") === "radio" &&
|
|
3878
|
+
!!radioEl &&
|
|
3879
|
+
!(radioEl.hasAttribute("selected") || element.tabIndex === 0)));
|
|
3880
|
+
};
|
|
3881
|
+
/**
|
|
3882
|
+
* Gets all interactive elements slotted within a component. Used for focus trapping.
|
|
3883
|
+
* @param el - host element of the component
|
|
3884
|
+
*/
|
|
3885
|
+
const slottedInteractiveElements = (el) => Array.from(el.querySelectorAll(`a[href], button, input:not(.ic-input), textarea, select, details, [tabindex]:not([tabindex="-1"]),
|
|
3886
|
+
ic-button, ic-checkbox, ic-select, ic-search-bar, ic-tab-context,
|
|
3887
|
+
ic-back-to-top, ic-breadcrumb, ic-chip[dismissible="true"], ic-footer-link, ic-link, ic-navigation-button,
|
|
3888
|
+
ic-navigation-item, ic-switch, ic-text-field, ic-accordion-group, ic-accordion, ic-date-input, ic-date-picker, ic-action-chip, ic-time-input`));
|
|
3727
3889
|
|
|
3728
3890
|
var chevronIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3729
3891
|
<path d="M9.70687 6L8.29688 7.41L12.8769 12L8.29688 16.59L9.70687 18L15.7069 12L9.70687 6Z" fill="currentColor"/>
|
|
@@ -3889,12 +4051,13 @@ class Accordion {
|
|
|
3889
4051
|
}; }
|
|
3890
4052
|
}
|
|
3891
4053
|
|
|
3892
|
-
const icAccordionGroupCss = "/*! 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}.label-container{--ic-typography-color:var(--ic-accordion-group-title-text);color:var(--ic-accordion-group-title-text);padding:var(--ic-space-xs);display:flex;justify-content:space-between;align-items:center}:host(.ic-accordion-group-small) .label-container{padding:var(--ic-space-xxs) var(--ic-space-xs)}:host(.ic-accordion-group-large) .label-container{padding:var(--ic-space-sm) var(--ic-space-xs)}";
|
|
4054
|
+
const icAccordionGroupCss = "/*! 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}.label-container{--ic-typography-color:var(--ic-accordion-group-title-text);color:var(--ic-accordion-group-title-text);padding:var(--ic-space-xs);display:flex;justify-content:space-between;align-items:center}:host(.ic-accordion-group-small) .label-container{padding:var(--ic-space-xxs) var(--ic-space-xs)}:host(.ic-accordion-group-large) .label-container{padding:var(--ic-space-sm) var(--ic-space-xs)}.sr-only{border:0;clip:rect(0, 0, 0, 0);height:var(--ic-space-1px);overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--ic-space-1px)}";
|
|
3893
4055
|
var IcAccordionGroupStyle0 = icAccordionGroupCss;
|
|
3894
4056
|
|
|
3895
4057
|
let accordionGroupIds = 0;
|
|
3896
4058
|
/**
|
|
3897
4059
|
* @slot label - Content is placed as the accordion group title.
|
|
4060
|
+
* @slot accessibleButtonLabel - Content is placed as the accessible label for the 'See all/Hide all' button for screen reader users. If this slot is not used, the `accessibleButtonLabel` prop will be used as the accessible label instead.
|
|
3898
4061
|
*/
|
|
3899
4062
|
class AccordionGroup {
|
|
3900
4063
|
constructor(hostRef) {
|
|
@@ -4005,11 +4168,14 @@ class AccordionGroup {
|
|
|
4005
4168
|
}
|
|
4006
4169
|
render() {
|
|
4007
4170
|
const { size, label, singleExpansion, accessibleButtonLabel, theme } = this;
|
|
4008
|
-
|
|
4171
|
+
const accessibleLabelSlotUsed = isSlotUsed(this.el, "accessibleButtonLabel");
|
|
4172
|
+
return (hAsync(Host, { key: 'fa56ccaebd2207db5b0041ff2d245c1e58e53fb6', "context-id": this.accordionGroupId, class: {
|
|
4009
4173
|
[`ic-accordion-group-${size}`]: true,
|
|
4010
4174
|
["ic-accordion-group"]: true,
|
|
4011
4175
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
4012
|
-
} }, hAsync("div", { key: '
|
|
4176
|
+
} }, hAsync("div", { key: '91a744e3133f6bc5acbbb8d505def4c2bfb27a95', class: "label-container" }, hAsync("ic-typography", { key: '515632628d3b68b1c73747672888748bcb2f1f70', variant: "h4" }, hAsync("h3", { key: 'fb82f68ba6b343d81f66355ed7d153bf877a59f9' }, isSlotUsed(this.el, "label") ? hAsync("slot", { name: "label" }) : label)), !singleExpansion && (hAsync("ic-button", { key: '70e5da5029b295dffbe07a2695607d479a6ad72a', ref: (el) => (this.allButtonEl = el), onClick: this.handleExpanded, variant: "tertiary", "aria-label": accessibleLabelSlotUsed
|
|
4177
|
+
? undefined
|
|
4178
|
+
: `${this.accordionOpenBtnText()} ${accessibleButtonLabel}` }, this.accordionOpenBtnText(), accessibleLabelSlotUsed && (hAsync("span", { key: '2bbf1190c1f3ad4bfd8e0095c574e9208d1895de', class: "sr-only" }, hAsync("slot", { key: '4e94d881f2406b2dc713f562534984536b2e8aee', name: "accessibleButtonLabel" })))))), hAsync("slot", { key: '168a33ac4f0bc53740dfcd1c15658ef9b85a912c' })));
|
|
4013
4179
|
}
|
|
4014
4180
|
get el() { return getElement(this); }
|
|
4015
4181
|
static get watchers() { return {
|
|
@@ -4129,16 +4295,16 @@ class ActionChip {
|
|
|
4129
4295
|
rel,
|
|
4130
4296
|
target,
|
|
4131
4297
|
};
|
|
4132
|
-
return (hAsync(Host, { key: '
|
|
4298
|
+
return (hAsync(Host, { key: '095711b5abc9fe760f9c14245a1ce327696818a2', class: {
|
|
4133
4299
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
4134
|
-
} }, hAsync(TagType, Object.assign({ key: '
|
|
4300
|
+
} }, hAsync(TagType, Object.assign({ key: '8b352bcd66bb27be4eff90246371eac0bfa266cb', class: {
|
|
4135
4301
|
chip: true,
|
|
4136
4302
|
disabled: isButtonElement && disabled,
|
|
4137
4303
|
monochrome,
|
|
4138
4304
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
|
4139
4305
|
[`${size}`]: true,
|
|
4140
4306
|
[`${variant}`]: true,
|
|
4141
|
-
}, ref: (el) => (this.chipEl = el) }, chipAttrs), isSlotUsed(this.el, "icon") && (hAsync("div", { key: '
|
|
4307
|
+
}, ref: (el) => (this.chipEl = el) }, chipAttrs), isSlotUsed(this.el, "icon") && (hAsync("div", { key: 'cac34c4420e0b92337b4421088389e79dc2d3e78', class: "icon" }, hAsync("slot", { key: 'fbbdfcf2089a6a31785a33ddc74c66ad433ebe4c', name: "icon" }))), hAsync("ic-typography", { key: '867dfd5c7651cfbce4b5c3ee439fe1a3e78dbecd', variant: "label", class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, hAsync("span", { key: 'ce77ac12d3e9a09b409b2ff6bffd1aa09747fad9' }, label)), !isButtonElement && target === "_blank" && (hAsync("span", { key: '994fcfd7c5be9cba20489792f4ec8a26f481e4cb', class: "open-in-new-icon", innerHTML: OpenInNew })), isSlotUsed(this.el, "badge") && hAsync("slot", { key: '7883e63e166ee3e39d70cbe6110fd1fe6f0b63a5', name: "badge" }))));
|
|
4142
4308
|
}
|
|
4143
4309
|
static get delegatesFocus() { return true; }
|
|
4144
4310
|
get el() { return getElement(this); }
|
|
@@ -4478,16 +4644,16 @@ class BackToTop {
|
|
|
4478
4644
|
const btnVariant = variant === "icon" ? "icon-secondary" : "secondary";
|
|
4479
4645
|
const size = variant === "icon" ? "large" : "medium";
|
|
4480
4646
|
const label = variant === "icon" ? "" : backToTopLabel;
|
|
4481
|
-
return (hAsync(Host, { key: '
|
|
4647
|
+
return (hAsync(Host, { key: '849c28a0432db633c5f6cc18e93ab184ef2366b3', class: {
|
|
4482
4648
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
4483
4649
|
[`ic-back-to-top-${this.position}`]: true,
|
|
4484
4650
|
[`ic-back-to-top-variant-icon`]: variant === "icon",
|
|
4485
|
-
} }, hAsync("ic-button", { key: '
|
|
4651
|
+
} }, hAsync("ic-button", { key: '847930311aa52347cabcc2c8cc13a8806524722e', "aria-label": backToTopLabel, variant: btnVariant, size: size, onClick: this.handleClick, class: {
|
|
4486
4652
|
["offset-banner"]: bannerOffset,
|
|
4487
4653
|
["show"]: !targetElVisible,
|
|
4488
4654
|
["by-footer"]: footerVisible,
|
|
4489
4655
|
["icon-only"]: variant === "icon",
|
|
4490
|
-
}, theme: this.theme }, hAsync("span", { key: '
|
|
4656
|
+
}, theme: this.theme }, hAsync("span", { key: 'a8f92084d51b98b034ebb0379c291a169f42f88b', class: "ic-back-to-top-icon", innerHTML: ArrowUpward }), label)));
|
|
4491
4657
|
}
|
|
4492
4658
|
static get delegatesFocus() { return true; }
|
|
4493
4659
|
get el() { return getElement(this); }
|
|
@@ -4671,7 +4837,7 @@ class Badge {
|
|
|
4671
4837
|
}
|
|
4672
4838
|
render() {
|
|
4673
4839
|
const { ariaLabel, el, foregroundColour, getLabel, position, size, label, type, variant, visible, theme, } = this;
|
|
4674
|
-
return (hAsync(Host, { key: '
|
|
4840
|
+
return (hAsync(Host, { key: '80362128f0009037af8ecb10ddbe465ed847044b', class: {
|
|
4675
4841
|
[`ic-badge-${position}`]: true,
|
|
4676
4842
|
[`ic-badge-${size}`]: true,
|
|
4677
4843
|
[`ic-badge-${variant}`]: true,
|
|
@@ -4679,7 +4845,7 @@ class Badge {
|
|
|
4679
4845
|
[`ic-badge-foreground-${foregroundColour}`]: foregroundColour !== null && variant === "custom",
|
|
4680
4846
|
[`${visible ? "ic-badge-show" : "ic-badge-hide"}`]: true,
|
|
4681
4847
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
4682
|
-
}, id: el.id || null, "aria-label": ariaLabel, role: "status" }, type === "icon" && hAsync("slot", { key: '
|
|
4848
|
+
}, id: el.id || null, "aria-label": ariaLabel, role: "status" }, type === "icon" && hAsync("slot", { key: '4df4a2ab27b18a2247bc047d940b16378451e8ae', name: "badge-icon" }), type === "text" && label && (hAsync("ic-typography", { key: '56b2205ae5e36f5af3e60f0b76866c696d06eb7a', variant: size === "small" ? "badge-small" : "badge" }, getLabel())), type === "dot" && hAsync("span", { key: '3a12c77ef89a454564358588908b31b69e04f500', class: "sr-only" }, "badge")));
|
|
4683
4849
|
}
|
|
4684
4850
|
static get delegatesFocus() { return true; }
|
|
4685
4851
|
get el() { return getElement(this); }
|
|
@@ -4806,12 +4972,12 @@ class Breadcrumb {
|
|
|
4806
4972
|
render() {
|
|
4807
4973
|
const { current, href, monochrome, pageTitle, showBackIcon, theme } = this;
|
|
4808
4974
|
const describedById = `${pageTitle === null || pageTitle === void 0 ? void 0 : pageTitle.toLowerCase().replace(" ", "-")}-describedby`;
|
|
4809
|
-
return (hAsync(Host, { key: '
|
|
4975
|
+
return (hAsync(Host, { key: 'a7096975249f31144ffd6cd3c4cf6953169118ee', class: {
|
|
4810
4976
|
"ic-breadcrumb-back": showBackIcon,
|
|
4811
4977
|
"ic-breadcrumb-monochrome": monochrome,
|
|
4812
4978
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
4813
4979
|
[`ic-breadcrumb-aria-current-page`]: current,
|
|
4814
|
-
}, "aria-current": current && "page", role: "listitem" }, hAsync("div", { key: '
|
|
4980
|
+
}, "aria-current": current && "page", role: "listitem" }, hAsync("div", { key: '8b8254900371f6888fcbf7c9ef800acdb6804dfb', class: "breadcrumb" }, hAsync("span", { key: '1a0159b54b3f432098ba881c6563eaf563916872', innerHTML: chevronIcon, class: "chevron", "aria-hidden": "true" }), showBackIcon && (hAsync("span", { key: '512f88714836b57162c1920cbea4eb1203f7573b', 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)))));
|
|
4815
4981
|
}
|
|
4816
4982
|
static get delegatesFocus() { return true; }
|
|
4817
4983
|
get el() { return getElement(this); }
|
|
@@ -5053,11 +5219,11 @@ class BreadcrumbGroup {
|
|
|
5053
5219
|
}
|
|
5054
5220
|
render() {
|
|
5055
5221
|
const { backBreadcrumbOnly, collapsed, theme } = this;
|
|
5056
|
-
return (hAsync(Host, { key: '
|
|
5222
|
+
return (hAsync(Host, { key: '6bee18e1a84707b5d493149d23094af6a0fb1be8', class: {
|
|
5057
5223
|
"ic-breadcrumb-group-back": backBreadcrumbOnly,
|
|
5058
5224
|
"ic-breadcrumb-group-collapsed": collapsed,
|
|
5059
5225
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
5060
|
-
} }, hAsync("nav", { key: '
|
|
5226
|
+
} }, hAsync("nav", { key: '144ad11cead96e18ae62eba8fc2dead82e188854', "aria-label": "breadcrumbs" }, hAsync("ol", { key: 'c101766f5e9b0e5d9a5aaebd5d0d8eda63ffc9ea' }, hAsync("slot", { key: 'c761cdbb01472d0d8c2550254063b59fa714f722' })))));
|
|
5061
5227
|
}
|
|
5062
5228
|
get el() { return getElement(this); }
|
|
5063
5229
|
static get watchers() { return {
|
|
@@ -5484,7 +5650,7 @@ class Button {
|
|
|
5484
5650
|
variant !== "destructive" && (hAsync("span", { class: dropdownExpanded
|
|
5485
5651
|
? "dropdown-expanded"
|
|
5486
5652
|
: "arrow-dropdown", innerHTML: arrowDropdown }))))));
|
|
5487
|
-
return (hAsync(Host, { key: '
|
|
5653
|
+
return (hAsync(Host, { key: '9af3124fa3bb001b9b744b4df20d0e107f865df1', class: {
|
|
5488
5654
|
"ic-button-disabled": disabled && !loading,
|
|
5489
5655
|
"ic-button-full-width": fullWidth,
|
|
5490
5656
|
"ic-button-loading": loading,
|
|
@@ -5500,7 +5666,7 @@ class Button {
|
|
|
5500
5666
|
monochrome,
|
|
5501
5667
|
"top-icon": isSlotUsed(this.el, "top-icon"),
|
|
5502
5668
|
"with-badge": isSlotUsed(this.el, "badge"),
|
|
5503
|
-
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: '
|
|
5669
|
+
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: '533f8aac9579f16eaae0a167a683f7c42973de95', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, fixedPositioning: tooltipFixedPositioning, silent: isIconVariant() && !!ariaLabel }, hAsync(ButtonContent, { key: '67502a4253722031847e36ae3275ca48c7d01bd4' }))), isSlotUsed(this.el, "badge") && hAsync("slot", { key: 'e4e5081c6f415f0447ae43398fd11fcf51a426f3', name: "badge" }), !hasTooltip && hAsync(ButtonContent, { key: '5185de2240ddaddbc0bb35bdab51bc63e91492a5' })));
|
|
5504
5670
|
}
|
|
5505
5671
|
static get delegatesFocus() { return true; }
|
|
5506
5672
|
get el() { return getElement(this); }
|
|
@@ -5710,19 +5876,19 @@ class CardVertical {
|
|
|
5710
5876
|
rel: rel,
|
|
5711
5877
|
target: target,
|
|
5712
5878
|
};
|
|
5713
|
-
return (hAsync(Host, { key: '
|
|
5879
|
+
return (hAsync(Host, { key: 'a5c7d234492dc72ab0ce06bc64646982b9b0c765', class: {
|
|
5714
5880
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
5715
|
-
} }, hAsync(Component, Object.assign({ key: '
|
|
5881
|
+
} }, hAsync(Component, Object.assign({ key: '7878c6c421216eaffda8034f38711156dd920e41', class: {
|
|
5716
5882
|
card: true,
|
|
5717
5883
|
clickable: !!clickable && !disabled,
|
|
5718
5884
|
disabled: !!disabled,
|
|
5719
5885
|
fullwidth: !!fullWidth,
|
|
5720
5886
|
focussed: isFocussed,
|
|
5721
5887
|
monochrome: monochrome,
|
|
5722
|
-
}, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, "aria-disabled": disabled ? "true" : null, disabled: disabled }, attrs), isSlotUsed(this.el, "image-top") && (hAsync("div", { key: '
|
|
5888
|
+
}, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, "aria-disabled": disabled ? "true" : null, disabled: disabled }, attrs), isSlotUsed(this.el, "image-top") && (hAsync("div", { key: '32fc034396f14d12845c12ad9cfc4c00b75c0970', class: "image-top" }, hAsync("slot", { key: 'd2f682bfd7e961d43aa37fc14b1f1ce875cfd9e4', name: "image-top" }))), hAsync("div", { key: '315d6f3c97119e41228be4c1057f2c8e28c2e627', class: "card-header" }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '304744f27ecdd26136c52bdf6a0623ccf16c8ccb', class: "icon" }, hAsync("slot", { key: 'a186a14d094c999cc72b9ca8d0580c9c81ef5e5a', name: "icon" }))), hAsync("div", { key: '4d52fd26c94603c39bdc7d03dd185d9147ec35d6', class: "card-title" }, hAsync("slot", { key: 'e99c3b5b04bc8e4e0ad712ac221183e42472d1e4', name: "heading" }, hAsync("ic-typography", { key: '7de9265a3bccf8ddeda0a5da115739dab6e7f4e3', variant: "h4" }, hAsync("p", { key: '52ad60554c859fcba6960f892210b11afe2c8412' }, heading)))), isSlotUsed(this.el, "interaction-button") && (hAsync("div", { key: 'bd177fd6ead82c2d826a90c9bc36baf4d9650822', class: "interaction-button" }, hAsync("slot", { key: '50200586d93b445f084acdc44fe783362c61ad1c', name: "interaction-button" })))), (subheading || isSlotUsed(this.el, "subheading")) && (hAsync("div", { key: '4084d3cdbcbfba517874846f00c6a75973911b46', class: "subheading" }, hAsync("slot", { key: '83ecdcca1ae25ded22c2b48631ca719b219c670f', name: "subheading" }, hAsync("ic-typography", { key: '6cc1e94ba4ecaeb37c0b01a177bf51ce56431406', variant: "subtitle-small" }, subheading)))), isSlotUsed(this.el, "adornment") && (hAsync("div", { key: '5b2e821691a30048fa7598ea5e7f4da245539644', class: "adornment" }, hAsync("slot", { key: '9955b70349039dd954ee03c66f27684225ad2161', name: "adornment" }))), isSlotUsed(this.el, "image-mid") && (hAsync("div", { key: '1a44edd306c3a8a9f8b9d07d3f92bad346b8d9c2', class: "image-mid" }, hAsync("slot", { key: '79c16a0c673bc92c420159b4908e7c2881c58fc0', name: "image-mid" }))), (message || isSlotUsed(this.el, "message")) && (hAsync("div", { key: '11468fd0d9784ad303bae66a6c7b9a7e6fcd2fdb', class: "card-message" }, message && (hAsync("ic-typography", { key: '4795147360d9862d329b7aa23b2d5d9d3501ff21', variant: "body" }, message)), isSlotUsed(this.el, "message") && hAsync("slot", { key: '2e5c82f6cc32ab92e46d4531f5f646bb15b8bb8a', name: "message" }))), (isSlotUsed(this.el, "interaction-controls") || expandable) && (hAsync("div", { key: '0d1f66f5387c89bdb9b6be46636f6b092fd3b977', class: "interaction-area" }, hAsync("div", { key: '9afed7575316981e6e696d58469f56746fdd78e3', class: "interaction-controls" }, hAsync("slot", { key: 'f218de86f75106aab7b2a7c3b81b303a813cfcc3', name: "interaction-controls" })), expandable && (hAsync("ic-tooltip", { key: '29ccf36efd77a936dd35fef1cc304f5ffdde47ea', id: "ic-tooltip-expand-button", label: "Toggle expandable area", silent: true }, hAsync("button", { key: 'e25088479cfa1519d8ac728505138fb2730b0400', class: {
|
|
5723
5889
|
"toggle-button": true,
|
|
5724
5890
|
[`toggle-button-${this.areaExpanded ? "expanded" : "closed"}`]: true,
|
|
5725
|
-
}, "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: '
|
|
5891
|
+
}, "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: '710a390ddcfd6464509e31a8bdc12213180a8e69', class: "expanded-content", id: "expanded-content-area" }, hAsync("slot", { key: 'd315e1d72d612b75a04460d6a33a66a7f84f39c8', name: "expanded-content" }))), isSlotUsed(this.el, "badge") && hAsync("slot", { key: '93bad888a177ab13ae50ea4d86fa6fd2c4ae01f7', name: "badge" }))));
|
|
5726
5892
|
}
|
|
5727
5893
|
get el() { return getElement(this); }
|
|
5728
5894
|
static get watchers() { return {
|
|
@@ -5894,17 +6060,17 @@ class Checkbox {
|
|
|
5894
6060
|
? renderHiddenInput(el, value, name, disabled)
|
|
5895
6061
|
: removeHiddenInput(el);
|
|
5896
6062
|
const LabelContent = () => this.hasLabelSlot() ? (hAsync("slot", { name: "label" })) : (hAsync("ic-typography", { class: "checkbox-label", variant: "body" }, hAsync("label", { htmlFor: inputId }, label)));
|
|
5897
|
-
return (hAsync(Host, { key: '
|
|
6063
|
+
return (hAsync(Host, { key: '7554612ca8fba3490ff568295eea1bfab40707a9', class: {
|
|
5898
6064
|
"ic-checkbox-disabled": disabled,
|
|
5899
6065
|
[`ic-checkbox-${size}`]: !!size,
|
|
5900
6066
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
5901
|
-
} }, hAsync("div", { key: '
|
|
6067
|
+
} }, hAsync("div", { key: '858b6c8812f827d1805ae6aea8a02760ddaef38a', 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: '1b2729f5f417f5fbea44639369b5ad23f7c937e8', role: "checkbox", class: {
|
|
5902
6068
|
checkbox: true,
|
|
5903
6069
|
checked,
|
|
5904
6070
|
indeterminate: displayIndeterminate,
|
|
5905
|
-
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: inputId, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel || this.hasLabelSlot() ? label : undefined }), !hideLabel && hAsync(LabelContent, { key: '
|
|
6071
|
+
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: inputId, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel || this.hasLabelSlot() ? label : undefined }), !hideLabel && hAsync(LabelContent, { key: '62bdb97c7d1dd473236dd5a9b294aaf1eb6e01c7' })), hAsync("span", { key: '3d798c60b58dfcb3cf907569094e84a09e5e291c', id: `${inputId}-additional-field-description`, role: "alert", class: "sr-only" }, isDynamicAdditionalField && checked ? dynamicText : ""), isSlotUsed(el, "additional-field") && (hAsync("div", { key: 'a8276e2dcd983bee6547ac802de050348263ca9b', class: "dynamic-container", ref: (el) => (this.additionalFieldContainer = el) }, isDynamicAdditionalField && hAsync("div", { key: '9235762858b354b09bbdf956c5a2041041162f77', class: "branch-corner" }), hAsync("div", { key: 'cb92bb94e296830a3132f752b0c7689671275383', class: "dynamic-field-container" }, isDynamicAdditionalField && (hAsync("ic-typography", { key: '318cdd04a078d79aa98138a664e60ee308799f43', variant: "caption" }, hAsync("p", { key: 'ce5182b3ca908fc98ca9303d014d0c05f0bf3c0b', class: "dynamic-text" }, isDynamicAdditionalField && checked ? dynamicText : ""))), hAsync("div", { key: '352457e47762a12c320dc7df9635fa38bbc0d675', class: {
|
|
5906
6072
|
"additional-field-wrapper": !isDynamicAdditionalField,
|
|
5907
|
-
} }, hAsync("slot", { key: '
|
|
6073
|
+
} }, hAsync("slot", { key: '1d9225d692fbe869375109c97c9ec479be89e69f', name: "additional-field" })))))));
|
|
5908
6074
|
}
|
|
5909
6075
|
static get delegatesFocus() { return true; }
|
|
5910
6076
|
get el() { return getElement(this); }
|
|
@@ -6064,11 +6230,11 @@ class CheckboxGroup {
|
|
|
6064
6230
|
const describedBy = getInputDescribedByText(this.el, name, helperText !== "", validationStatus !== "");
|
|
6065
6231
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
|
6066
6232
|
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
6067
|
-
return (hAsync(Host, { key: '
|
|
6233
|
+
return (hAsync(Host, { key: '862a97d086caec6a36b54a83d7dc73cab51ec26e', class: {
|
|
6068
6234
|
"ic-checkbox-group-disabled": !!disabled,
|
|
6069
6235
|
[`ic-checkbox-group-${size}`]: true,
|
|
6070
6236
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6071
|
-
} }, renderSRText && (hAsync("span", { key: '
|
|
6237
|
+
} }, renderSRText && (hAsync("span", { key: '2099c60d533ff668ad2e3770bbe487182ba5c8c3', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { key: '43ab035620d2c0a7b9325b3441fa51e1dac77e3a', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: '3bff3341981e4f02aa73a21abee555be9f8aa863' }, hAsync("ic-input-label", { key: '949a4b31d5021b96870fcf63c595d06b4a84baf5', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }, hAsync("slot", { key: '90ae6ee756ee2415828ac81ebcc5e84a80999c5d', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '7bf7695658a85157da695af6e8fb6a9b8be276e3', class: "checkboxes-container" }, hAsync("slot", { key: '30d42a9d6cc00ac71280f88e462cb851d79ef61e' }))), hAsync("ic-input-validation", { key: '44a98a0c788e457319d44421328fcb59ab8e9244', class: {
|
|
6072
6238
|
"show-validation": showValidation,
|
|
6073
6239
|
}, for: name, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
|
6074
6240
|
}
|
|
@@ -6108,7 +6274,7 @@ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org
|
|
|
6108
6274
|
</svg>
|
|
6109
6275
|
`;
|
|
6110
6276
|
|
|
6111
|
-
const icChipCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;max-width:100%;vertical-align:middle}:host(.ic-chip-dismissed){display:none}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding:calc(var(--ic-space-xxs) - var(--ic-space-1px)) var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;position:relative;background-color:var(--chip-bg-color);border:var(--ic-border-width) solid transparent;justify-content:space-between}@media (prefers-reduced-motion: no-preference){.chip{transition:var(--ic-easing-transition-fast)}}.chip.small{padding:var(--ic-space-1px) var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.chip.large{padding:calc(var(--ic-space-xs) - var(--ic-space-1px)) var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.label{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}}";
|
|
6277
|
+
const icChipCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;max-width:100%;vertical-align:middle}:host(.ic-chip-dismissed){display:none}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding:calc(var(--ic-space-xxs) - var(--ic-space-1px)) var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;position:relative;background-color:var(--chip-bg-color);border:var(--ic-border-width) solid transparent;justify-content:space-between;width:-moz-fit-content;width:fit-content;box-sizing:border-box;max-width:100%}.chip.full-width{width:100%}:host(.ic-chip-full-width){width:100%}@media (prefers-reduced-motion: no-preference){.chip{transition:var(--ic-easing-transition-fast)}}.chip.small{padding:var(--ic-space-1px) var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.chip.large{padding:calc(var(--ic-space-xs) - var(--ic-space-1px)) var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.label{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}}";
|
|
6112
6278
|
var IcChipStyle0 = icChipCss;
|
|
6113
6279
|
|
|
6114
6280
|
/**
|
|
@@ -6134,6 +6300,11 @@ class Chip {
|
|
|
6134
6300
|
* The text in the dismiss button tooltip and aria label. Makes the user aware of the action resulting from clicking the 'Dismiss chip' button.
|
|
6135
6301
|
*/
|
|
6136
6302
|
this.dismissLabel = "Dismiss";
|
|
6303
|
+
/**
|
|
6304
|
+
* Specify whether the chip fills the full width of the container.
|
|
6305
|
+
* If `true`, this overrides the --input-width CSS variable.
|
|
6306
|
+
*/
|
|
6307
|
+
this.fullWidth = false;
|
|
6137
6308
|
/**
|
|
6138
6309
|
* The size of the chip.
|
|
6139
6310
|
*/
|
|
@@ -6200,13 +6371,14 @@ class Chip {
|
|
|
6200
6371
|
(_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
6201
6372
|
}
|
|
6202
6373
|
render() {
|
|
6203
|
-
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
|
6374
|
+
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, fullWidth, } = this;
|
|
6204
6375
|
const ariaLabel = `${label} chip`;
|
|
6205
|
-
return (hAsync(Host, { key: '
|
|
6376
|
+
return (hAsync(Host, { key: 'a340090512aafa664e16a6537cb7d8dc2fe84b29', class: {
|
|
6206
6377
|
"ic-chip-dismissed": !visible,
|
|
6207
6378
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6208
6379
|
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
|
6209
|
-
|
|
6380
|
+
"ic-chip-full-width": fullWidth,
|
|
6381
|
+
} }, visible && (hAsync("div", { key: '174e895e50479492d85f8a2d9871450f37d47997', class: {
|
|
6210
6382
|
chip: true,
|
|
6211
6383
|
[`${variant}`]: true,
|
|
6212
6384
|
[`${size}`]: true,
|
|
@@ -6214,7 +6386,8 @@ class Chip {
|
|
|
6214
6386
|
dismissible,
|
|
6215
6387
|
hovered,
|
|
6216
6388
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
|
6217
|
-
|
|
6389
|
+
"full-width": fullWidth,
|
|
6390
|
+
} }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '3d12f1e7c932cd91f0835f3fe7c76ec6784bc44f', class: "icon" }, hAsync("slot", { key: '5307ba63af7c7342cf32072ccebf02788265e0f5', name: "icon" }))), hAsync("ic-typography", { key: '71a528ad758c4a09dbe1bfa879f4ca0b4a9177b7', variant: "label", "apply-vertical-margins": false, class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, hAsync("span", { key: '85e3af35df8a3f2243bc0b36130a6238b6c6200d' }, label)), dismissible && (hAsync("ic-tooltip", { key: '6d68a771210b186192f7f4486d578a1cb706dda9', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, hAsync("button", { key: '24917885cac2c78593cb721ce14254c20de85905', 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: '4a2bf278717384d8d7a1c830788520a385feb638', name: "badge" }))), dismissible && (hAsync("div", { key: '55bd826c4bd73c42d24a7a1aa1cdc52fd3a00d59', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
|
|
6218
6391
|
}
|
|
6219
6392
|
static get delegatesFocus() { return true; }
|
|
6220
6393
|
get el() { return getElement(this); }
|
|
@@ -6231,6 +6404,7 @@ class Chip {
|
|
|
6231
6404
|
"disabled": [4],
|
|
6232
6405
|
"dismissible": [4],
|
|
6233
6406
|
"dismissLabel": [1, "dismiss-label"],
|
|
6407
|
+
"fullWidth": [4, "full-width"],
|
|
6234
6408
|
"label": [1],
|
|
6235
6409
|
"size": [1],
|
|
6236
6410
|
"theme": [1],
|
|
@@ -6292,10 +6466,10 @@ class ClassificationBanner {
|
|
|
6292
6466
|
if (!classification ||
|
|
6293
6467
|
(classification && !classificationText[classification]))
|
|
6294
6468
|
classification = "default";
|
|
6295
|
-
return (hAsync(Host, { key: '
|
|
6469
|
+
return (hAsync(Host, { key: '4d06c781318ef854931702315e73054f65b85259', class: { ["ic-classification-banner-inline"]: !!inline } }, hAsync("banner", { key: '251f6ced1270c823b1be9e39375139756adcd3e2', "aria-label": "Protective marking", class: {
|
|
6296
6470
|
["classification-banner"]: true,
|
|
6297
6471
|
[`${classification}`]: classification,
|
|
6298
|
-
} }, classification !== "default" ? (hAsync("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, hAsync("ic-typography", { key: '
|
|
6472
|
+
} }, classification !== "default" ? (hAsync("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, hAsync("ic-typography", { key: '3fd3a609c017ed0b5b24296464bae43dcf8cba67', variant: "caption-uppercase" }, classification === "default"
|
|
6299
6473
|
? classificationText[classification]
|
|
6300
6474
|
: `${upTo ? "up to" : ""}
|
|
6301
6475
|
${country}
|
|
@@ -6319,7 +6493,7 @@ class ClassificationBanner {
|
|
|
6319
6493
|
}; }
|
|
6320
6494
|
}
|
|
6321
6495
|
|
|
6322
|
-
const icDataListCss = "/*! 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}.heading{--ic-typography-color:var(--ic-data-list-text-heading);color:var(--ic-data-list-text-heading)}.rows{display:flex;flex-direction:column;gap:var(--ic-space-md)}:host(.ic-data-list-small) .rows{gap:var(--ic-space-xs)}.divider{margin-top:var(--ic-space-lg);margin-bottom:var(--ic-space-md);height:var(--ic-border-width);background-color:var(--ic-data-list-keyline-heading)}:host(.ic-data-list-small) .divider{margin-top:var(--ic-space-sm);margin-bottom:var(--ic-space-xs)}@media (forced-colors: active){.divider{background-color:canvastext}}";
|
|
6496
|
+
const icDataListCss = "/*! 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}.heading{--ic-typography-color:var(--ic-data-list-text-heading);color:var(--ic-data-list-text-heading)}.rows{display:flex;flex-direction:column;gap:var(--ic-space-md)}:host(.ic-data-list-small) .rows{gap:var(--ic-space-xs)}.divider{margin-top:var(--ic-space-lg);margin-bottom:var(--ic-space-md);height:var(--ic-border-width);background-color:var(--ic-data-list-keyline-heading)}.divider-no-heading{margin-top:0}:host(.ic-data-list-small) .divider{margin-top:var(--ic-space-sm);margin-bottom:var(--ic-space-xs)}@media (forced-colors: active){.divider{background-color:canvastext}}";
|
|
6323
6497
|
var IcDataListStyle0 = icDataListCss;
|
|
6324
6498
|
|
|
6325
6499
|
/**
|
|
@@ -6342,10 +6516,11 @@ class DataList {
|
|
|
6342
6516
|
if (size === "small") {
|
|
6343
6517
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
|
6344
6518
|
}
|
|
6345
|
-
|
|
6519
|
+
const hasHeading = heading || el.querySelector('[slot="heading"]');
|
|
6520
|
+
return (hAsync(Host, { key: '1c611db796f79fc54af3a89e4b7ed0439e09f8ce', class: {
|
|
6346
6521
|
"ic-data-list-small": size === "small",
|
|
6347
6522
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6348
|
-
} }, hAsync("div", { key: '
|
|
6523
|
+
} }, hAsync("div", { key: '5936cad1baba390f150bb72a2ef5b0ee7eaf5750', class: "heading", id: "data-list-heading" }, hAsync("slot", { key: '2d0080f2848355022ea118f8ef2f78cafb584bf3', name: "heading" }, hAsync("ic-typography", { key: 'dee1629146c3e50998552ae3c814eee17bc196c5', variant: "h3" }, heading))), hAsync("div", { key: 'bb1c6bf91cfcd71205acd3d15b504057d3fd566f', class: { divider: true, "divider-no-heading": !hasHeading } }), hAsync("ul", { key: '838380d006c00c28fb309aef1f57ab3bd8534102', "aria-labelledby": "data-list-heading", class: "rows" }, hAsync("slot", { key: '6f84ce3a6716791113f5288a17c3a9a2416552d9' }))));
|
|
6349
6524
|
}
|
|
6350
6525
|
get el() { return getElement(this); }
|
|
6351
6526
|
static get style() { return IcDataListStyle0; }
|
|
@@ -6435,12 +6610,12 @@ class DataRow {
|
|
|
6435
6610
|
}
|
|
6436
6611
|
render() {
|
|
6437
6612
|
const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
|
|
6438
|
-
return (hAsync(Host, { key: '
|
|
6613
|
+
return (hAsync(Host, { key: '720dc55ba7e1000ce6837a15d9d7accc726cc1ff', class: {
|
|
6439
6614
|
["ic-data-row-small"]: size === "small",
|
|
6440
6615
|
["breakpoint-medium"]: listSize === "m",
|
|
6441
6616
|
["breakpoint-xs"]: listSize === "xs",
|
|
6442
6617
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6443
|
-
}, role: "listitem" }, hAsync("div", { key: '
|
|
6618
|
+
}, role: "listitem" }, hAsync("div", { key: '28e63fbb09ad16bcc6843a85047635e91006a220', class: "data" }, hAsync("div", { key: '698f607af4b50db1bc837d83df0f46ee9cc4201f', class: "text-cells" }, (isSlotUsed(el, "label") || label) && renderCellContent("label"), (isSlotUsed(el, "value") || value) && renderCellContent("value")), hasEndComponent && (hAsync("div", { key: '1febd59bc77239e0cedcc64953c0a5d2b4bbba6d', class: "end-component" }, hAsync("slot", { key: 'dfa67b2ff598520d1b3f47a1479e4448aa84986f', name: "end-component" })))), hAsync("div", { key: '989733a9cf32e8d452c4c2d4ae24844c7d38ece2', class: "divider" })));
|
|
6444
6619
|
}
|
|
6445
6620
|
get el() { return getElement(this); }
|
|
6446
6621
|
static get style() { return IcDataRowStyle0; }
|
|
@@ -6481,16 +6656,10 @@ class Dialog {
|
|
|
6481
6656
|
this.DATA_GETS_FOCUS = "data-gets-focus";
|
|
6482
6657
|
this.DIALOG_CONTROLS = "dialog-controls";
|
|
6483
6658
|
this.dialogHeight = 0;
|
|
6659
|
+
this.focusAttemptCount = 0;
|
|
6484
6660
|
this.focusedElementIndex = 0;
|
|
6485
|
-
this.IC_TEXT_FIELD = "IC-TEXT-FIELD";
|
|
6486
|
-
this.IC_ACCORDION = "IC-ACCORDION";
|
|
6487
|
-
this.IC_ACCORDION_GROUP = "IC-ACCORDION-GROUP";
|
|
6488
|
-
this.IC_CHECKBOX = "IC-CHECKBOX";
|
|
6489
|
-
this.IC_SEARCH_BAR = "IC-SEARCH-BAR";
|
|
6490
|
-
this.IC_TAB_CONTEXT = "IC-TAB-CONTEXT";
|
|
6491
6661
|
this.interactiveElementList = [];
|
|
6492
6662
|
this.resizeObserver = null;
|
|
6493
|
-
this.focusAttemptCount = 0;
|
|
6494
6663
|
this.dialogRendered = false;
|
|
6495
6664
|
this.fadeIn = false;
|
|
6496
6665
|
/**
|
|
@@ -6581,26 +6750,6 @@ class Dialog {
|
|
|
6581
6750
|
this.dialogHeight = this.dialogEl.clientHeight;
|
|
6582
6751
|
}
|
|
6583
6752
|
};
|
|
6584
|
-
this.refreshInteractiveElementsOnSlotChange = () => {
|
|
6585
|
-
var _a, _b, _c;
|
|
6586
|
-
const contentWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("#dialog-content");
|
|
6587
|
-
if (contentWrapper) {
|
|
6588
|
-
this.contentArea = contentWrapper.querySelector("slot");
|
|
6589
|
-
// Detect changes to slotted elements
|
|
6590
|
-
(_b = this.contentArea) === null || _b === void 0 ? void 0 : _b.addEventListener("slotchange", this.getInteractiveElements);
|
|
6591
|
-
this.contentAreaMutationObserver = new MutationObserver(() => {
|
|
6592
|
-
this.getInteractiveElements();
|
|
6593
|
-
});
|
|
6594
|
-
// Detect changes to children of slotted elements
|
|
6595
|
-
(_c = getSlotElements(contentWrapper)) === null || _c === void 0 ? void 0 : _c.forEach((el) => {
|
|
6596
|
-
var _a;
|
|
6597
|
-
(_a = this.contentAreaMutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, {
|
|
6598
|
-
childList: true,
|
|
6599
|
-
subtree: true,
|
|
6600
|
-
});
|
|
6601
|
-
});
|
|
6602
|
-
}
|
|
6603
|
-
};
|
|
6604
6753
|
this.removeSlotChangeListener = () => {
|
|
6605
6754
|
var _a;
|
|
6606
6755
|
if (this.contentArea) {
|
|
@@ -6608,6 +6757,15 @@ class Dialog {
|
|
|
6608
6757
|
(_a = this.contentAreaMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
6609
6758
|
}
|
|
6610
6759
|
};
|
|
6760
|
+
this.setContentAreaMutationObserver = () => {
|
|
6761
|
+
var _a;
|
|
6762
|
+
const contentWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("#dialog-content");
|
|
6763
|
+
if (contentWrapper) {
|
|
6764
|
+
const { contentAreaSlot, contentAreaMutationObserver } = refreshInteractiveElementsOnSlotChange(contentWrapper || null, this.getInteractiveElements);
|
|
6765
|
+
this.contentArea = contentAreaSlot;
|
|
6766
|
+
this.contentAreaMutationObserver = contentAreaMutationObserver;
|
|
6767
|
+
}
|
|
6768
|
+
};
|
|
6611
6769
|
this.setInitialFocus = () => {
|
|
6612
6770
|
this.sourceElement = document.activeElement;
|
|
6613
6771
|
if (!this.interactiveElementList.length) {
|
|
@@ -6624,17 +6782,11 @@ class Dialog {
|
|
|
6624
6782
|
if (this.focusedElementIndex === -1) {
|
|
6625
6783
|
this.focusedElementIndex = 0;
|
|
6626
6784
|
}
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
this.getFocusedElementIndex = () => {
|
|
6633
|
-
var _a;
|
|
6634
|
-
for (let i = 0; i < this.interactiveElementList.length; i++) {
|
|
6635
|
-
if (this.interactiveElementList[i] ===
|
|
6636
|
-
(((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.activeElement) || document.activeElement)) {
|
|
6637
|
-
this.focusedElementIndex = i;
|
|
6785
|
+
if (this.interactiveElementList[this.focusedElementIndex]) {
|
|
6786
|
+
const focusElementResult = focusElement(this.focusAttemptCount, this.focusedElementIndex, this.interactiveElementList);
|
|
6787
|
+
if (focusElementResult) {
|
|
6788
|
+
this.focusAttemptCount = focusElementResult.newFocusAttemptCount;
|
|
6789
|
+
this.focusedElementIndex = focusElementResult.newFocusedElementIndex;
|
|
6638
6790
|
}
|
|
6639
6791
|
}
|
|
6640
6792
|
};
|
|
@@ -6644,76 +6796,17 @@ class Dialog {
|
|
|
6644
6796
|
this.getInteractiveElements = () => {
|
|
6645
6797
|
var _a;
|
|
6646
6798
|
this.interactiveElementList = Array.from(((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll("ic-button")) || []);
|
|
6647
|
-
const
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
if (slottedInteractiveElements.length > 0) {
|
|
6652
|
-
if (slottedInteractiveElements[0].slot !== this.DIALOG_CONTROLS) {
|
|
6653
|
-
slottedInteractiveElements[0].setAttribute(this.DATA_GETS_FOCUS, "");
|
|
6799
|
+
const interactiveElements = slottedInteractiveElements(this.el);
|
|
6800
|
+
if (interactiveElements.length > 0) {
|
|
6801
|
+
if (interactiveElements[0].slot !== this.DIALOG_CONTROLS) {
|
|
6802
|
+
interactiveElements[0].setAttribute(this.DATA_GETS_FOCUS, "");
|
|
6654
6803
|
}
|
|
6655
6804
|
else if (!this.destructive) {
|
|
6656
|
-
|
|
6805
|
+
interactiveElements[interactiveElements.length - 1].setAttribute(this.DATA_GETS_FOCUS, "");
|
|
6657
6806
|
}
|
|
6658
6807
|
}
|
|
6659
|
-
for (let i = 0; i <
|
|
6660
|
-
this.interactiveElementList.splice(1 + i, 0,
|
|
6661
|
-
}
|
|
6662
|
-
};
|
|
6663
|
-
this.getNextFocusEl = (focusedElementIndex) => this.interactiveElementList[focusedElementIndex];
|
|
6664
|
-
this.onTabKeyPress = (shiftKey) => {
|
|
6665
|
-
var _a;
|
|
6666
|
-
this.getFocusedElementIndex();
|
|
6667
|
-
if (((_a = this.interactiveElementList[this.focusedElementIndex]) === null || _a === void 0 ? void 0 : _a.tagName) ===
|
|
6668
|
-
this.IC_SEARCH_BAR) {
|
|
6669
|
-
return false;
|
|
6670
|
-
}
|
|
6671
|
-
this.setFocusIndexBasedOnShiftKey(shiftKey);
|
|
6672
|
-
this.loopNextFocusIndexIfLastElement();
|
|
6673
|
-
this.focusAttemptCount = 0;
|
|
6674
|
-
this.focusElement(this.getNextFocusEl(this.focusedElementIndex), shiftKey);
|
|
6675
|
-
return true;
|
|
6676
|
-
};
|
|
6677
|
-
this.shouldSkipElement = (element) => {
|
|
6678
|
-
if (!element) {
|
|
6679
|
-
return true;
|
|
6680
|
-
}
|
|
6681
|
-
const isHidden = getComputedStyle(element).visibility === "hidden" ||
|
|
6682
|
-
element.offsetHeight === 0 ||
|
|
6683
|
-
element.hasAttribute("disabled") ||
|
|
6684
|
-
(element.tagName === this.IC_ACCORDION_GROUP &&
|
|
6685
|
-
element.hasAttribute("single-expansion"));
|
|
6686
|
-
const radioEl = element.closest("ic-radio-option");
|
|
6687
|
-
return (isHidden ||
|
|
6688
|
-
(element.getAttribute("type") === "radio" &&
|
|
6689
|
-
!!radioEl &&
|
|
6690
|
-
!(radioEl.hasAttribute("selected") || element.tabIndex === 0)));
|
|
6691
|
-
};
|
|
6692
|
-
this.focusElement = (element, shiftKey = false) => {
|
|
6693
|
-
if (!element) {
|
|
6694
|
-
return;
|
|
6695
|
-
}
|
|
6696
|
-
if (this.focusAttemptCount++ > this.interactiveElementList.length) {
|
|
6697
|
-
return;
|
|
6698
|
-
}
|
|
6699
|
-
if (this.shouldSkipElement(element)) {
|
|
6700
|
-
this.setFocusIndexBasedOnShiftKey(shiftKey);
|
|
6701
|
-
this.loopNextFocusIndexIfLastElement();
|
|
6702
|
-
this.focusElement(this.getNextFocusEl(this.focusedElementIndex), shiftKey);
|
|
6703
|
-
}
|
|
6704
|
-
else {
|
|
6705
|
-
switch (element.tagName) {
|
|
6706
|
-
case this.IC_ACCORDION_GROUP:
|
|
6707
|
-
case this.IC_ACCORDION:
|
|
6708
|
-
case this.IC_SEARCH_BAR:
|
|
6709
|
-
case this.IC_TEXT_FIELD:
|
|
6710
|
-
case this.IC_CHECKBOX:
|
|
6711
|
-
case this.IC_TAB_CONTEXT:
|
|
6712
|
-
element.setFocus();
|
|
6713
|
-
break;
|
|
6714
|
-
default:
|
|
6715
|
-
element.focus();
|
|
6716
|
-
}
|
|
6808
|
+
for (let i = 0; i < interactiveElements.length; i++) {
|
|
6809
|
+
this.interactiveElementList.splice(1 + i, 0, interactiveElements[i]);
|
|
6717
6810
|
}
|
|
6718
6811
|
};
|
|
6719
6812
|
this.renderDialog = () => {
|
|
@@ -6754,7 +6847,7 @@ class Dialog {
|
|
|
6754
6847
|
this.removeSlotChangeListener();
|
|
6755
6848
|
}
|
|
6756
6849
|
componentDidLoad() {
|
|
6757
|
-
this.
|
|
6850
|
+
this.setContentAreaMutationObserver();
|
|
6758
6851
|
if (this.open) {
|
|
6759
6852
|
this.dialogOpened();
|
|
6760
6853
|
}
|
|
@@ -6771,11 +6864,17 @@ class Dialog {
|
|
|
6771
6864
|
handleKeyboard(ev) {
|
|
6772
6865
|
if (this.dialogRendered) {
|
|
6773
6866
|
switch (ev.key) {
|
|
6774
|
-
case "Tab":
|
|
6775
|
-
|
|
6867
|
+
case "Tab": {
|
|
6868
|
+
const tabKeyPressHandlerResult = handleFocusTrapTabKeyPress(this.el, this.focusAttemptCount, this.focusedElementIndex, this.interactiveElementList, ev.shiftKey);
|
|
6869
|
+
this.focusAttemptCount =
|
|
6870
|
+
tabKeyPressHandlerResult.newFocusAttemptCount;
|
|
6871
|
+
this.focusedElementIndex =
|
|
6872
|
+
tabKeyPressHandlerResult.newFocusedElementIndex;
|
|
6873
|
+
if (tabKeyPressHandlerResult.preventDefault) {
|
|
6776
6874
|
ev.preventDefault();
|
|
6777
6875
|
}
|
|
6778
6876
|
break;
|
|
6877
|
+
}
|
|
6779
6878
|
case "Escape":
|
|
6780
6879
|
if (!ev.repeat) {
|
|
6781
6880
|
this.open = false;
|
|
@@ -6812,24 +6911,9 @@ class Dialog {
|
|
|
6812
6911
|
async confirmDialog() {
|
|
6813
6912
|
this.icDialogConfirmed.emit();
|
|
6814
6913
|
}
|
|
6815
|
-
loopNextFocusIndexIfLastElement() {
|
|
6816
|
-
if (this.focusedElementIndex > this.interactiveElementList.length - 1)
|
|
6817
|
-
this.focusedElementIndex = 0;
|
|
6818
|
-
else if (this.focusedElementIndex < 0) {
|
|
6819
|
-
this.focusedElementIndex = this.interactiveElementList.length - 1;
|
|
6820
|
-
}
|
|
6821
|
-
}
|
|
6822
|
-
setFocusIndexBasedOnShiftKey(shiftKey) {
|
|
6823
|
-
if (shiftKey) {
|
|
6824
|
-
this.focusedElementIndex -= 1;
|
|
6825
|
-
}
|
|
6826
|
-
else {
|
|
6827
|
-
this.focusedElementIndex += 1;
|
|
6828
|
-
}
|
|
6829
|
-
}
|
|
6830
6914
|
render() {
|
|
6831
6915
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme, size } = this;
|
|
6832
|
-
return (hAsync(Host, { key: '
|
|
6916
|
+
return (hAsync(Host, { key: '97f96f655d95bb7192eb44e850f495ed133e7d73', class: {
|
|
6833
6917
|
"ic-dialog-hidden": !dialogRendered,
|
|
6834
6918
|
"ic-dialog-fade-in": fadeIn,
|
|
6835
6919
|
"disable-height-constraint": !!disableHeightConstraint,
|
|
@@ -7031,11 +7115,11 @@ class EmptyState {
|
|
|
7031
7115
|
}
|
|
7032
7116
|
render() {
|
|
7033
7117
|
const { aligned, body, maxLines, heading, imageSize, subheading, theme } = this;
|
|
7034
|
-
return (hAsync(Host, { key: '
|
|
7118
|
+
return (hAsync(Host, { key: '16659f35d2b14d9a5e32fe6c61619fbafdf58f53', class: {
|
|
7035
7119
|
[`ic-empty-state-${aligned}`]: true,
|
|
7036
7120
|
[`image-${imageSize}`]: isSlotUsed(this.el, "image"),
|
|
7037
7121
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
7038
|
-
} }, isSlotUsed(this.el, "image") && hAsync("slot", { key: '
|
|
7122
|
+
} }, 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" })))));
|
|
7039
7123
|
}
|
|
7040
7124
|
get el() { return getElement(this); }
|
|
7041
7125
|
static get style() { return IcEmptyStateStyle0; }
|
|
@@ -7153,7 +7237,7 @@ class Footer {
|
|
|
7153
7237
|
isSlotUsed(el, "caption") ||
|
|
7154
7238
|
caption ||
|
|
7155
7239
|
copyright;
|
|
7156
|
-
return (hAsync(Host, { key: '
|
|
7240
|
+
return (hAsync(Host, { key: '998f2d4e2efe145b4b83e389d35aa5441493c665', class: {
|
|
7157
7241
|
["ic-footer"]: true,
|
|
7158
7242
|
[`ic-footer-${small ? "small" : "sparse"}`]: true,
|
|
7159
7243
|
[`ic-footer-${groupLinks ? "grouped" : "ungrouped"}`]: true,
|
|
@@ -7161,10 +7245,10 @@ class Footer {
|
|
|
7161
7245
|
// Slots will be able to infer their own color
|
|
7162
7246
|
[`ic-footer-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
|
7163
7247
|
[`ic-footer-${IcBrandForegroundEnum.Light}`]: foregroundColor === IcBrandForegroundEnum.Light,
|
|
7164
|
-
} }, hAsync("footer", { key: '
|
|
7248
|
+
} }, hAsync("footer", { key: 'c87d22d28a01bda8c3ee2b9cac46be2887713a29', ref: (el) => (this.footerEl = el) }, (isSlotUsed(el, "description") || description) && (hAsync("div", { key: 'f308a06d6f0659a0cfce9bbf83c83a5b7002888c', class: "footer-description" }, hAsync("ic-section-container", { key: 'b37d8391f9d6976ab470ee313cffde02fb44379e', aligned: aligned, fullHeight: true }, hAsync("div", { key: '577f163c461029ff87860d22e5f6d8727f2700f2', class: "footer-description-inner" }, hAsync("ic-typography", { key: 'd5511f1010de1c5e474d7a4ca300c3c65524b848', variant: "body" }, hAsync("slot", { key: 'ee7cbda304a95acf11208bf01779669d2ae80e5b', name: "description" }, description)))))), isSlotUsed(el, "link") && (hAsync("div", { key: 'a2c16d41f279a1241ceeacb61ab6891e1caa02b4', class: "footer-links" }, groupLinks && small ? (hAsync("div", { class: "footer-links-inner", role: "list" }, hAsync("slot", { name: "link" }))) : (hAsync("ic-section-container", { fullHeight: true, aligned: aligned }, hAsync("div", { class: "footer-links-inner", role: "list" }, hAsync("slot", { name: "link" })))))), showComplianceSection && (hAsync("div", { key: '612fef7b2098beeb005bca7c8c6a770073d18a84', class: "footer-compliance" }, hAsync("ic-section-container", { key: 'c69ae2ee035e470340f5a5f23b446d0e496053cb', aligned: aligned, fullHeight: true }, hAsync("div", { key: 'f9dbd6a02403a60af427c31d872895f55fb93d4b', class: "footer-compliance-inner" }, isSlotUsed(el, "logo") && (hAsync("div", { key: '2f3303d4ec7608da07f229d012d28fde289088b4', class: "footer-logo" }, hAsync("slot", { key: '4447941f54b6276e088fa3f7facc0fa938dbbd95', name: "logo" }))), (isSlotUsed(el, "caption") || caption) && (hAsync("div", { key: '7b1d062760f15d92a97fd5edd5bd367e61a03ac6', class: "footer-caption" }, hAsync("ic-typography", { key: 'fd22c635085c468676125e4283b59661a2092c83', variant: deviceSize <= IC_DEVICE_SIZES.M ? "caption" : "body" }, hAsync("slot", { key: '026d7f0837f3dfa21ca81ce23e44c4a0526e6b6d', name: "caption" }, caption)))), copyright && (hAsync("div", { key: '75c74053fbc359a6a05600f532f2c6dab5cae23b', class: {
|
|
7165
7249
|
["footer-copyright"]: true,
|
|
7166
7250
|
["classification-spacing"]: hasClassificationBanner(),
|
|
7167
|
-
} }, hAsync("ic-typography", { key: '
|
|
7251
|
+
} }, hAsync("ic-typography", { key: '91f098b1ea0a5f0aa87e6430ad5c043c6a5fd10f', variant: deviceSize <= IC_DEVICE_SIZES.M
|
|
7168
7252
|
? "caption-uppercase"
|
|
7169
7253
|
: "label-uppercase" }, copyrightText))))))))));
|
|
7170
7254
|
}
|
|
@@ -7233,12 +7317,12 @@ class FooterLink {
|
|
|
7233
7317
|
const { footerConfig, href, hreflang, referrerpolicy, rel, target, download, } = this;
|
|
7234
7318
|
const { small, grouped } = footerConfig;
|
|
7235
7319
|
const isLogoLink = !!this.el.closest("div[slot='logo']");
|
|
7236
|
-
return (hAsync(Host, { key: '
|
|
7320
|
+
return (hAsync(Host, { key: 'b093247260ef7378ef3aa666029e463641eb20c0', class: {
|
|
7237
7321
|
"footer-link": true,
|
|
7238
7322
|
[`footer-link-${grouped ? "grouped" : "ungrouped"}-${small ? "small" : "sparse"}`]: true,
|
|
7239
7323
|
[`footer-link-${this.foregroundColor}`]: true,
|
|
7240
7324
|
"footer-logo-link": isLogoLink,
|
|
7241
|
-
}, role: "listitem" }, hAsync("ic-link", { key: '
|
|
7325
|
+
}, 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' }))));
|
|
7242
7326
|
}
|
|
7243
7327
|
static get delegatesFocus() { return true; }
|
|
7244
7328
|
get el() { return getElement(this); }
|
|
@@ -7417,7 +7501,7 @@ class Hero {
|
|
|
7417
7501
|
"background-position": scrollFactor,
|
|
7418
7502
|
};
|
|
7419
7503
|
}
|
|
7420
|
-
return (hAsync(Host, { key: '
|
|
7504
|
+
return (hAsync(Host, { key: 'fdbc239703d4121db55ebf918378cd363253529f', class: {
|
|
7421
7505
|
[`ic-hero-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
|
7422
7506
|
["has-background-image"]: backgroundImage !== undefined,
|
|
7423
7507
|
["has-right-content"]: this.rightContent,
|
|
@@ -7425,12 +7509,12 @@ class Hero {
|
|
|
7425
7509
|
["secondary-heading"]: !!secondaryHeading,
|
|
7426
7510
|
[`ic-hero-content-aligned-${contentAligned}`]: contentAligned !== undefined,
|
|
7427
7511
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
7428
|
-
}, style: style }, hAsync("ic-section-container", { key: '
|
|
7512
|
+
}, style: style }, hAsync("ic-section-container", { key: '31bb8c8c2a656e502f2d636382e5c52135d4ea0f', aligned: aligned, fullHeight: true, class: "section-container" }, hAsync("div", { key: '890e74b018f5a906a6e07d86beb3ebe2730ea01b', class: {
|
|
7429
7513
|
["left-container"]: true,
|
|
7430
7514
|
["left-container-full-width"]: this.leftContentFullWidth,
|
|
7431
|
-
} }, hAsync("div", { key: '
|
|
7515
|
+
} }, hAsync("div", { key: 'd67d033a9eb735b1f0710e3812f80173bd963c61', class: "heading" }, hAsync("slot", { key: '154e08b9f3193d86dcf3aa9a94d742194f98d979', name: "heading" }, hAsync("ic-typography", { key: '3e0e811d78b19009cc3ec19458e38455d1e93f75', variant: size === "small" ? "h2" : "h1", class: {
|
|
7432
7516
|
["heading-bottom-spacing"]: size !== "small",
|
|
7433
|
-
} }, hAsync("h2", { key: '
|
|
7517
|
+
} }, hAsync("h2", { key: 'f0183d996aac2f70dca05b71be894b9529d7ec8b' }, heading)))), hAsync("div", { key: 'dd5f0787458bf168c231906d7a9394df0fc0189b', class: "subheading" }, hAsync("slot", { key: '16ddacec5c6d34aef1d34e998d9ab314ff8ee38c', name: "subheading" }, hAsync("ic-typography", { key: '3d58628932a1c75cff267f60a9330aa85401ee73', variant: "body" }, subheading))), hAsync("div", { key: 'b2bf9a217cbde760f04d90d6976489bc143bd2e5', class: "interaction-container" }, hAsync("slot", { key: '8e42a9799b7c9bf632265d23e4ac3c6a4fd33e6f', name: "interaction" }))), (isPropDefined(secondaryHeading) || this.rightContent) && (hAsync("div", { key: '7ed3fd485177546e131e4a87b7a9458c1d1f6207', class: "right-container" }, hAsync("slot", { key: 'e97a8345e4dc3f25262c3cee033881a005b1a364', name: "secondary" }, secondaryHeading && (hAsync("div", { key: 'd2b2a14a8847284bedbd67ca5bbc8fe822dbc38c', class: "secondary-container" }, hAsync("div", { key: '8ebe7863cc432fb082c083d9904bf14d859c5d44', class: "secondary-heading" }, hAsync("ic-typography", { key: '16b926e7b38f87d945a770196350d2f5877db451', variant: "h4" }, hAsync("h3", { key: 'a196ab6f8ca699e7e8a7e1fa557afd79c859d043' }, secondaryHeading))), hAsync("div", { key: '532c8888092e849194a6d4b31145807b3afbd240', class: "secondary-subheading" }, hAsync("ic-typography", { key: '2852a039483f536e41719ae9f3c35179c4ec0ec2', variant: "subtitle-small" }, secondarySubheading))))))))));
|
|
7434
7518
|
}
|
|
7435
7519
|
get el() { return getElement(this); }
|
|
7436
7520
|
static get style() { return IcHeroStyle0; }
|
|
@@ -7622,22 +7706,22 @@ class HorizontalScroll {
|
|
|
7622
7706
|
}
|
|
7623
7707
|
render() {
|
|
7624
7708
|
const { firstItemVisible, lastItemVisible, itemOverflow } = this;
|
|
7625
|
-
return (hAsync(Host, { key: '
|
|
7709
|
+
return (hAsync(Host, { key: '329d00bc4e7ebfab434cb41dd32e919820c5adb5', class: {
|
|
7626
7710
|
["ic-horizontal-scroll-visible"]: itemOverflow,
|
|
7627
7711
|
["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum.Dark,
|
|
7628
7712
|
["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum.Light,
|
|
7629
7713
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
7630
|
-
} }, hAsync("div", { key: '
|
|
7714
|
+
} }, hAsync("div", { key: 'ed231bf1fcd68399e29e790026b377bf8f96a14e', "aria-hidden": "true", class: {
|
|
7631
7715
|
["scroll-container-left"]: true,
|
|
7632
7716
|
["hidden"]: !itemOverflow,
|
|
7633
7717
|
["disabled"]: firstItemVisible,
|
|
7634
|
-
}, role: "tab" }, hAsync("ic-button", { key: '
|
|
7718
|
+
}, role: "tab" }, hAsync("ic-button", { key: 'c34f45cb44e242939985f792a21e482a11078fba', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
|
|
7635
7719
|
? "dark"
|
|
7636
|
-
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: '
|
|
7720
|
+
: "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: {
|
|
7637
7721
|
["scroll-container-right"]: true,
|
|
7638
7722
|
["hidden"]: !itemOverflow,
|
|
7639
7723
|
["disabled"]: lastItemVisible,
|
|
7640
|
-
}, role: "tab" }, hAsync("span", { key: '
|
|
7724
|
+
}, 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"
|
|
7641
7725
|
? "dark"
|
|
7642
7726
|
: "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
|
|
7643
7727
|
}
|
|
@@ -7712,15 +7796,15 @@ class InputComponentContainer {
|
|
|
7712
7796
|
}
|
|
7713
7797
|
render() {
|
|
7714
7798
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
|
7715
|
-
return (hAsync(Host, { key: '
|
|
7799
|
+
return (hAsync(Host, { key: '86271007106caa930e823cd2a9b9242670a1d2c1', class: {
|
|
7716
7800
|
[`ic-input-component-container-${size}`]: true,
|
|
7717
7801
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
|
7718
7802
|
"ic-input-component-container-disabled": !!disabled,
|
|
7719
7803
|
"ic-input-component-container-readonly": !!readonly,
|
|
7720
7804
|
"ic-input-component-container-multiline": !!multiLine,
|
|
7721
7805
|
"ic-input-component-container-full-width": !!fullWidth,
|
|
7722
|
-
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '
|
|
7723
|
-
validationStatus === IcInformationStatus.Success && (hAsync("span", { key: '
|
|
7806
|
+
}, "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 &&
|
|
7807
|
+
validationStatus === IcInformationStatus.Success && (hAsync("span", { key: '6c7cbd9c69c11a8688972039ba519829805d3ab7', class: "inline-success", innerHTML: successIcon })))));
|
|
7724
7808
|
}
|
|
7725
7809
|
get el() { return getElement(this); }
|
|
7726
7810
|
static get watchers() { return {
|
|
@@ -7761,11 +7845,11 @@ class InputContainer {
|
|
|
7761
7845
|
this.readonly = false;
|
|
7762
7846
|
}
|
|
7763
7847
|
render() {
|
|
7764
|
-
return (hAsync(Host, { key: '
|
|
7848
|
+
return (hAsync(Host, { key: 'ffa7ae6f683f172205085d3ade5af4ed2b665f5e' }, hAsync("div", { key: 'e010e17e975c12a26c9ae66cb604ca561882901b', class: {
|
|
7765
7849
|
["component-container"]: true,
|
|
7766
7850
|
["disabled"]: !!this.disabled,
|
|
7767
7851
|
["readonly"]: !!this.readonly,
|
|
7768
|
-
} }, hAsync("slot", { key: '
|
|
7852
|
+
} }, hAsync("slot", { key: '202931f1bc8d2ab341753c23464e266fd899a15d' }))));
|
|
7769
7853
|
}
|
|
7770
7854
|
static get style() { return IcInputContainerStyle0; }
|
|
7771
7855
|
static get cmpMeta() { return {
|
|
@@ -7848,11 +7932,11 @@ class InputLabel {
|
|
|
7848
7932
|
"helpertext-readonly": readonly,
|
|
7849
7933
|
};
|
|
7850
7934
|
const helperTextSlot = this.el.querySelector("slot[name='helper-text']");
|
|
7851
|
-
return (hAsync(Host, { key: '
|
|
7935
|
+
return (hAsync(Host, { key: 'bc32f49e555f33d246a3710c0ccea33ca511728f', class: {
|
|
7852
7936
|
"ic-input-label-disabled": !!disabled,
|
|
7853
7937
|
"ic-input-label-readonly": readonly,
|
|
7854
7938
|
"with-helper": this.isHelperTextSlotUsed(helperTextSlot) || helperText !== "",
|
|
7855
|
-
} }, !hideLabel && (hAsync("ic-typography", { key: '
|
|
7939
|
+
} }, !hideLabel && (hAsync("ic-typography", { key: 'b5f8b55d18f914ed5ae2b3392661a08d35cbe3d9', variant: "label", class: {
|
|
7856
7940
|
"readonly-label": readonly,
|
|
7857
7941
|
"error-label": status === "error" && !(readonly || disabled),
|
|
7858
7942
|
} }, readonly || !useLabelTag ? (`${labelText}`) : (hAsync("label", { htmlFor: this.for }, labelText)))), this.isHelperTextSlotUsed(helperTextSlot) ? (hAsync("span", { id: helperTextId, class: helperTextClass }, hAsync("slot", { name: "helper-text" }))) : (helperText !== "" && (hAsync("ic-typography", { variant: "caption", class: helperTextClass }, hAsync("span", { id: helperTextId }, helperText))))));
|
|
@@ -7890,6 +7974,7 @@ const ICON = {
|
|
|
7890
7974
|
const INVISIBLE_CHAR = "\u200B";
|
|
7891
7975
|
/**
|
|
7892
7976
|
* @slot validation-message-adornment - Content will be placed to the right of the validation message.
|
|
7977
|
+
* @slot validation-message - Content will be placed as the validation message.
|
|
7893
7978
|
*/
|
|
7894
7979
|
class InputValidation {
|
|
7895
7980
|
constructor(hostRef) {
|
|
@@ -7921,14 +8006,14 @@ class InputValidation {
|
|
|
7921
8006
|
render() {
|
|
7922
8007
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
|
7923
8008
|
const displayIcon = status !== "" ? ICON[status] : "";
|
|
7924
|
-
return (hAsync(Host, { key: '
|
|
8009
|
+
return (hAsync(Host, { key: 'c9749e8bb3c64a0ec364063500c6e9d6a2606116', class: {
|
|
7925
8010
|
[`ic-input-validation-${status}`]: status !== "",
|
|
7926
8011
|
"ic-input-validation-full-width": !!fullWidth,
|
|
7927
8012
|
"ic-input-validation-with-status": status !== "",
|
|
7928
|
-
} }, displayIcon !== "" && (hAsync("span", { key: '
|
|
8013
|
+
} }, displayIcon !== "" && (hAsync("span", { key: '37f56d09513abdaf04e3cf0131d89c1e78c77dd1', class: {
|
|
7929
8014
|
"status-icon": true,
|
|
7930
8015
|
[`icon-${status}`]: true,
|
|
7931
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
|
8016
|
+
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: 'c48a3f1ec46a3c9cc5c57c271c90f7fa6f9f7ff4', variant: "caption", class: "statustext" }, hAsync("span", { key: '445497c5225d3bdcf4505d0e27ef8af213a9fc11', id: this.for && getInputValidationTextID(this.for) }, isSlotUsed(this.el, "validation-message") ? (hAsync("slot", { name: "validation-message" })) : (message)), hAsync("span", { key: 'f9126a58e59ac9f05c88e8c4860f49eb3d394fa7', ref: (el) => (this.messageEl = el), class: "sr-only", "aria-live": ariaLiveMode })), hAsync("slot", { key: 'ee1a49b5c1765f153f4ee8e10cd94fa0e1549a54', name: "validation-message-adornment" })));
|
|
7932
8017
|
}
|
|
7933
8018
|
get el() { return getElement(this); }
|
|
7934
8019
|
static get watchers() { return {
|
|
@@ -8080,10 +8165,10 @@ class LayoutGrid {
|
|
|
8080
8165
|
}
|
|
8081
8166
|
render() {
|
|
8082
8167
|
const { aligned, fullHeight } = this;
|
|
8083
|
-
return (hAsync(Host, { key: '
|
|
8168
|
+
return (hAsync(Host, { key: 'edd252e9b99b8ae5a131062ac6f102b2e76d22ce', class: {
|
|
8084
8169
|
[`ic-layout-grid-aligned-${aligned}`]: true,
|
|
8085
8170
|
["ic-layout-grid-no-vertical-padding"]: !!fullHeight,
|
|
8086
|
-
} }, hAsync("slot", { key: '
|
|
8171
|
+
} }, hAsync("slot", { key: '9d4b3b7d4f3379b01751707270f00f988e16b0a8' })));
|
|
8087
8172
|
}
|
|
8088
8173
|
get el() { return getElement(this); }
|
|
8089
8174
|
static get watchers() { return {
|
|
@@ -8163,9 +8248,9 @@ class LayoutGridItem {
|
|
|
8163
8248
|
}
|
|
8164
8249
|
render() {
|
|
8165
8250
|
const { hideInMobileMode } = this;
|
|
8166
|
-
return (hAsync(Host, { key: '
|
|
8251
|
+
return (hAsync(Host, { key: '142d6bb3ec03f4e0b362b1d10da70a3ee7f215d5', class: {
|
|
8167
8252
|
"ic-layout-grid-hide-in-mobile": !!hideInMobileMode,
|
|
8168
|
-
} }, hAsync("slot", { key: '
|
|
8253
|
+
} }, hAsync("slot", { key: '4711277515425bc6bff4d1089c14fafc3ab6032b' })));
|
|
8169
8254
|
}
|
|
8170
8255
|
get el() { return getElement(this); }
|
|
8171
8256
|
static get watchers() { return {
|
|
@@ -8278,7 +8363,7 @@ class Link {
|
|
|
8278
8363
|
}
|
|
8279
8364
|
render() {
|
|
8280
8365
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
|
8281
|
-
return (hAsync(Host, { key: '
|
|
8366
|
+
return (hAsync(Host, { key: '2b5806a3fa48ea9113346d0d9ac8ecd86e0c699a', class: {
|
|
8282
8367
|
["ic-link"]: true,
|
|
8283
8368
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
8284
8369
|
["ic-link-monochrome"]: !!monochrome,
|
|
@@ -8504,24 +8589,24 @@ class LoadingIndicator {
|
|
|
8504
8589
|
}
|
|
8505
8590
|
render() {
|
|
8506
8591
|
const { circularDiameter, circularDimensions: { x, y, r, dashArray, dashOffset }, description, fullWidth, indicatorLabel, innerLabel, internalType, label, max, min, monochrome, progress, size, theme, } = this;
|
|
8507
|
-
return (hAsync(Host, { key: '
|
|
8592
|
+
return (hAsync(Host, { key: '2905a37e973a97b428414010c467764d9e2a9fd1', class: {
|
|
8508
8593
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
8509
8594
|
"ic-loading-indicator-full-width": fullWidth,
|
|
8510
8595
|
"ic-loading-indicator-label": !!label,
|
|
8511
8596
|
"ic-loading-indicator-monochrome": monochrome,
|
|
8512
8597
|
[`ic-loading-indicator-size-${size}`]: true,
|
|
8513
|
-
} }, hAsync("div", { key: '
|
|
8598
|
+
} }, hAsync("div", { key: '6fa756abb41297cc5e8610b30c1cb3f03d953c2d', class: "ic-loading-container", part: "ic-loading-container" }, hAsync("div", { key: 'f1112dc701c88024573e6dc9096725ab4675ee2e', ref: (el) => (this.outerElement = el), class: {
|
|
8514
8599
|
[`ic-loading-${internalType}-outer`]: true,
|
|
8515
8600
|
[progress === undefined ? "indeterminate" : "determinate"]: true,
|
|
8516
|
-
}, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, hAsync("div", { key: '
|
|
8601
|
+
}, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, hAsync("div", { key: 'd56cfeaee1b3e5f2e2068d9784414df0bbdab913', ref: (el) => (this.innerElement = el), class: {
|
|
8517
8602
|
[`ic-loading-${internalType}-inner`]: true,
|
|
8518
8603
|
"inner-label": !!innerLabel,
|
|
8519
|
-
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: '
|
|
8604
|
+
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: '6230e2f24f7e4e9872446a4642b4f18e2410b59d', variant: "subtitle-small", class: "inner-text" }, innerLabel)), internalType === "circular" && (hAsync("svg", { key: '19adf2a04d18a77082f44ab13404907cee59fde2', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, hAsync("circle", { key: '60be621b7acf27bc1bebd35a71f9666038c232f2', cx: x, cy: y, r: r }), hAsync("circle", { key: '7197e37b0245ed0995cd414cb03d9a96c3a2ac8f', style: {
|
|
8520
8605
|
"--circular-steps-max": progress ? `${max}` : undefined,
|
|
8521
8606
|
"--progress-value": progress !== undefined ? `${progress}` : undefined,
|
|
8522
8607
|
"--stroke-dasharray": dashArray,
|
|
8523
8608
|
"--stroke-dashoffset": dashOffset,
|
|
8524
|
-
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: '
|
|
8609
|
+
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: 'cc98f0844fdb83d05ee52dee9d6545d263a15181', id: "ic-loading-label", class: "ic-loading-label", role: "alert", variant: this.getLabelVariant() }, hAsync("p", { key: '1631cea623f99ab6573dca4726480ac62207e5fe' }, indicatorLabel))))));
|
|
8525
8610
|
}
|
|
8526
8611
|
get el() { return getElement(this); }
|
|
8527
8612
|
static get watchers() { return {
|
|
@@ -12659,7 +12744,7 @@ class Menu {
|
|
|
12659
12744
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
|
12660
12745
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
|
12661
12746
|
const hasNoResults = this.host.classList.contains("no-results");
|
|
12662
|
-
return (hAsync(Host, { key: '
|
|
12747
|
+
return (hAsync(Host, { key: '5e22882e9f1d08db292939afb816b3b174a73453', class: {
|
|
12663
12748
|
"ic-menu-full-width": !!fullWidth,
|
|
12664
12749
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
|
12665
12750
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
|
@@ -12668,7 +12753,7 @@ class Menu {
|
|
|
12668
12753
|
[`ic-menu-${size}`]: true,
|
|
12669
12754
|
"ic-menu-open": open && options.length !== 0,
|
|
12670
12755
|
"ic-menu-multiple": multiSelect,
|
|
12671
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
|
12756
|
+
} }, options.length !== 0 && (hAsync("ul", { key: 'eaa102b0267705ceeaf965ea406c27674228f568', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", tabindex: open &&
|
|
12672
12757
|
!keyboardNav &&
|
|
12673
12758
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
|
12674
12759
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
|
@@ -12696,7 +12781,7 @@ class Menu {
|
|
|
12696
12781
|
multiSelect &&
|
|
12697
12782
|
!isLoading &&
|
|
12698
12783
|
!hasTimedOut &&
|
|
12699
|
-
!hasNoResults && (hAsync("div", { key: '
|
|
12784
|
+
!hasNoResults && (hAsync("div", { key: 'dba1e24902c69f0ff275392bbcc1a11dc4be9375', class: "option-bar" }, hAsync("ic-typography", { key: 'eadf27270294c8ae5606666434f67edce83b0040' }, hAsync("p", { key: 'e40a85be98f91018138b5c3e47e9dd568b4b3770' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: '0bf467d9751a666ca94b5936143bacfb239f5667', 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)))));
|
|
12700
12785
|
}
|
|
12701
12786
|
get host() { return getElement(this); }
|
|
12702
12787
|
static get watchers() { return {
|
|
@@ -12756,7 +12841,7 @@ class MenuGroup {
|
|
|
12756
12841
|
}
|
|
12757
12842
|
render() {
|
|
12758
12843
|
const parentMenu = this.el.closest("ic-popover-menu");
|
|
12759
|
-
return (hAsync(Host, { key: '
|
|
12844
|
+
return (hAsync(Host, { key: '1f0ba7349890547fbf0bab5c0853b94e4e2a7035', role: "group", "aria-label": this.label !== null ? this.label : "" }, isPropDefined(this.label) && (hAsync("ic-typography", { key: '9263c78812e4b852a76d8e0353bd347df530ff19', variant: "subtitle-small" }, this.label)), hAsync("span", { key: '2009a196f392ab0cdc88bfa5d6ac835d698e42dc', class: "menu-items-wrapper" }, hAsync("slot", { key: '1db2daba73b7567a2a71556b0efead251f8b5e14' })), this.el !== (parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.querySelector("ic-menu-group:last-child")) && (hAsync("hr", { key: '058408c1291cc200de221c780f599beed158f3cc' }))));
|
|
12760
12845
|
}
|
|
12761
12846
|
get el() { return getElement(this); }
|
|
12762
12847
|
static get style() { return IcMenuGroupStyle0; }
|
|
@@ -13007,11 +13092,11 @@ class NavigationButton {
|
|
|
13007
13092
|
target,
|
|
13008
13093
|
theme,
|
|
13009
13094
|
};
|
|
13010
|
-
return (hAsync(Host, { key: '
|
|
13095
|
+
return (hAsync(Host, { key: '538ea349b1f0791b0cd68898380fe4cfd41b5496', class: {
|
|
13011
13096
|
"in-side-menu": isMenuMode,
|
|
13012
13097
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
13013
13098
|
dark: parentThemeDark,
|
|
13014
|
-
} }, hAsync("ic-button", Object.assign({ key: '
|
|
13099
|
+
} }, hAsync("ic-button", Object.assign({ key: 'afee63c46529276cd2b77ef6d7c1c69b47a7ae15', ref: (el) => (this.buttonEl = el), class: { "popout-menu-button": isMenuMode }, "aria-label": !isMenuMode ? label : null, disableTooltip: isMenuMode, fullWidth: isMenuMode, monochrome: !isMenuMode, size: isMenuMode ? "medium" : "large", variant: isMenuMode ? "tertiary" : "icon-tertiary" }, buttonProps, inheritedAttributes), isMenuMode ? label : "", hAsync("slot", { key: '8c2a89dfc8f974017cf5384355ce0f881218d038', slot: "left-icon", name: "icon" }), isSlotUsed(this.el, "badge") && hAsync("slot", { key: '7fab4237f3f6745159d584df008e82214ecd3322', name: "badge" }))));
|
|
13015
13100
|
}
|
|
13016
13101
|
static get delegatesFocus() { return true; }
|
|
13017
13102
|
get el() { return getElement(this); }
|
|
@@ -13304,7 +13389,7 @@ class NavigationGroup {
|
|
|
13304
13389
|
const isTopNav = this.navigationType === "top";
|
|
13305
13390
|
const isTopNavDesktop = !inTopNavSideMenu && isTopNav;
|
|
13306
13391
|
const ariaExpanded = (isSideNav && expanded) || (isTopNav && dropdownOpen);
|
|
13307
|
-
return (hAsync(Host, { key: '
|
|
13392
|
+
return (hAsync(Host, { key: '70e377a3055b6c000c860b0c3933efd73ded9876', class: {
|
|
13308
13393
|
"in-side-menu": inTopNavSideMenu,
|
|
13309
13394
|
"ic-navigation-group-expandable": expandable,
|
|
13310
13395
|
"ic-navigation-group-side-nav": isSideNav,
|
|
@@ -13537,7 +13622,7 @@ class NavigationItem {
|
|
|
13537
13622
|
render() {
|
|
13538
13623
|
const { inTopNavSideMenu, isTopNavChild, selected, navigationType, focusStyle, isInitialRender, sideNavExpanded, displayNavigationTooltip, collapsedIconLabel, isSideNavMobile, expandable, isInSideNav, theme, } = this;
|
|
13539
13624
|
const isTopNavChildDesktop = isTopNavChild && !inTopNavSideMenu;
|
|
13540
|
-
return (hAsync(Host, { key: '
|
|
13625
|
+
return (hAsync(Host, { key: 'e0752e0df8889387ca765848f4a7e31ecfba79f0', class: {
|
|
13541
13626
|
"navigation-item": true,
|
|
13542
13627
|
"navigation-item-selected": !isTopNavChild && selected,
|
|
13543
13628
|
"navigation-item-top-nav": !inTopNavSideMenu && navigationType === "top",
|
|
@@ -13556,7 +13641,7 @@ class NavigationItem {
|
|
|
13556
13641
|
expandable,
|
|
13557
13642
|
[focusStyle]: isTopNavChild ? isInSideNav : !inTopNavSideMenu,
|
|
13558
13643
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
13559
|
-
}, onBlur: isTopNavChildDesktop ? this.handleBlur : null, onClick: this.handleClick, "aria-current": selected ? "page" : null, role: "listitem" }, hAsync("ic-tooltip", { key: '
|
|
13644
|
+
}, onBlur: isTopNavChildDesktop ? this.handleBlur : null, onClick: this.handleClick, "aria-current": selected ? "page" : null, role: "listitem" }, hAsync("ic-tooltip", { key: '996ecfbd2a8649e1601ea2161091d374bb56e331', label: this.generateTooltipLabel(), target: "navigation-item", placement: "right", class: {
|
|
13560
13645
|
"tooltip-navigation-item": true,
|
|
13561
13646
|
"tooltip-navigation-item-side-nav-collapsed": displayNavigationTooltip && isInSideNav,
|
|
13562
13647
|
"tooltip-long-label-navigation-item-side-nav-expanded": this.el.hasAttribute("[display-navigation-tooltip = 'true']"),
|
|
@@ -13729,16 +13814,16 @@ class NavigationMenu {
|
|
|
13729
13814
|
}
|
|
13730
13815
|
}
|
|
13731
13816
|
render() {
|
|
13732
|
-
return (hAsync(Host, { key: '
|
|
13817
|
+
return (hAsync(Host, { key: '5a79b217cf87852b89438451b49f8c0ecd64d594', class: { [`ic-theme-${this.theme}`]: this.theme !== "inherit" } }, hAsync("div", { key: '19ad13211281929be69da54673ab85db94d2d635', class: "popout-modal", onClick: this.closeMenu }), hAsync("div", { key: '3a9508f13aa3681fc7c7136e2d3ffb30b5ffbeac', class: "popout-menu", role: "dialog", "aria-modal": "true", "aria-label": `${this.hasNavigation ? "Navigation" : "App"} menu` }, hAsync("span", { key: '08c2ef423b60da0d3f592366ce30f2e8c9ad8ef6', "aria-hidden": "true", id: "navigation-landmark-text", class: "navigation-landmark-text" }, "Main navigation"), hAsync("nav", { key: '89a14e10b43019fe3aab9cca7aa4585d9479ab61', "aria-labelledby": "navigation-landmark-text", "aria-hidden": this.hasNavigation ? "false" : "true" }, hAsync("div", { key: '0bf015f6f252f036e2505fe23438f6974e64cb49', class: {
|
|
13733
13818
|
["menu-close-button-container"]: true,
|
|
13734
13819
|
["nav-group-first"]: this.navGroupFirst,
|
|
13735
|
-
} }, hAsync("ic-button", { key: '
|
|
13820
|
+
} }, hAsync("ic-button", { key: '0d8c26de4c6e66c94b36a6f752986c60eda14190', ref: (el) => (this.closeButton = el), id: "menu-close-button", class: "menu-close-button", variant: "icon-tertiary", size: "large", "aria-label": `Close ${this.hasNavigation ? "navigation" : "app"} menu`, onClick: this.closeMenu }, hAsync("svg", { key: '2de2610f0d3f1293ed49845557f9e243240b466f', width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '4c985f39a7428d9ddeff986a65872e2ad62e6b06', 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: '1b19a907151db4138840a54d1905a6095f63c083', name: "navigation" })), this.hasButtons && (hAsync("div", { key: 'e355ac1c0c938646d88383b1bb6b89f0e83a877d', class: {
|
|
13736
13821
|
["menu-buttons-container"]: true,
|
|
13737
13822
|
["menu-buttons-container-nav-item-above"]: this.navItemAboveButtons,
|
|
13738
|
-
} }, hAsync("slot", { key: '
|
|
13823
|
+
} }, hAsync("slot", { key: '48572d7991b8bd6082c62da46509280d7ab340c6', name: "buttons" }))), (this.status !== "" || this.version !== "") && (hAsync("div", { key: 'ca9b1062bc21d613a6c2a71d1ed667ada6d29c23', class: {
|
|
13739
13824
|
["menu-status-version-container"]: true,
|
|
13740
13825
|
["status-version-no-buttons"]: !this.hasButtons,
|
|
13741
|
-
} }, this.status !== "" && (hAsync("div", { key: '
|
|
13826
|
+
} }, this.status !== "" && (hAsync("div", { key: '0e5a9ea4b445f09db0b540437a41dd3216520bf2', class: "menu-status" }, hAsync("ic-typography", { key: 'e1a4c5560c9ee894ed5931d72a9e8e26faa2f9aa', variant: "label-uppercase", "aria-label": "app tag", class: "menu-status-text" }, this.status))), this.version !== "" && (hAsync("div", { key: '9372910c9139ef10340e8f35b72c59974fe9aa20', class: "menu-version" }, hAsync("ic-typography", { key: '154ad1b38bbb5fba621553896933799a6c219c71', variant: "label", class: "menu-version-text", "aria-label": "app version" }, this.version))))))));
|
|
13742
13827
|
}
|
|
13743
13828
|
get el() { return getElement(this); }
|
|
13744
13829
|
static get style() { return IcNavigationMenuStyle0; }
|
|
@@ -13871,19 +13956,19 @@ class PageHeader {
|
|
|
13871
13956
|
const navAriaLabel = `${isSlotUsed(this.el, "heading")
|
|
13872
13957
|
? (_b = (_a = this.el.querySelector('[slot="heading"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : ""
|
|
13873
13958
|
: heading !== null && heading !== void 0 ? heading : ""} page sections`;
|
|
13874
|
-
return (hAsync(Host, { key: '
|
|
13959
|
+
return (hAsync(Host, { key: 'b72fc99f5588d6c9549ba2fe0bacbfb9b0c133be', class: {
|
|
13875
13960
|
["ic-page-header-sticky"]: !!sticky,
|
|
13876
13961
|
["ic-page-header-sticky-desktop"]: !sticky && !!stickyDesktopOnly,
|
|
13877
13962
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
13878
|
-
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: '
|
|
13963
|
+
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: '0dd8b54fbbc330f0202d8b42075aa2ad7e944690', class: {
|
|
13879
13964
|
["border-bottom"]: !!border,
|
|
13880
13965
|
["tabs"]: isSlotUsed(this.el, "tabs"),
|
|
13881
|
-
}, role: "presentation" }, hAsync("ic-section-container", { key: '
|
|
13966
|
+
}, role: "presentation" }, hAsync("ic-section-container", { key: '191d13b8e42c92543bbc3c8c85a88eeba47b7462', aligned: aligned, fullHeight: isSlotUsed(this.el, "tabs") }, isSlotUsed(this.el, "breadcrumbs") && (hAsync("div", { key: 'ceb08e816c6215199c33363b32c182c06de1c19e', class: "breadcrumb-area" }, hAsync("slot", { key: 'e7a24051f7c9544eb1c629813b6a414cc2be42ec', name: "breadcrumbs" }))), hAsync("div", { key: 'ad3ad094ae44d2cd5b12612d47487e9f94cb405b', class: "main-content" }, hAsync("div", { key: '0b9da0f1195a8eaa974f985f0268fed78d051f6d', class: "title-area" }, hAsync("div", { key: '314147f4f76b8827ee90bb68bad21fe931e55fb5', class: "header-content" }, hAsync("slot", { key: 'a0d82decef083a02afbb103bcc94e6dfb809c9ab', name: "heading" }, hAsync("ic-typography", { key: 'bb7ad7d29d53fe971d2298ec25fb377d2c525ed4', variant: size === "small" ? "h4" : "h2", class: "heading" }, hAsync("h2", { key: '10dcebaa154cab7717654db7f8342c8781bbb500' }, heading))), hAsync("slot", { key: '8933dd41330b29fdd6f534069d54ac1f7b8d956e', name: "heading-adornment" })), hAsync("div", { key: '22d58adbadef2d8f594e08f5d62b24596d4be3bf', class: {
|
|
13882
13967
|
["subheading-content"]: !!subheading || isSlotUsed(this.el, "subheading"),
|
|
13883
13968
|
["small"]: size === "small",
|
|
13884
|
-
} }, hAsync("slot", { key: '
|
|
13885
|
-
isSlotUsed(this.el, "tabs")) && (hAsync("div", { key: '
|
|
13886
|
-
!isSlotUsed(this.el, "tabs") && hAsync("slot", { key: '
|
|
13969
|
+
} }, hAsync("slot", { key: '6a0e2482c20cd6e5c6ea74259c4f90ee59f372b8', name: "subheading" }, hAsync("ic-typography", { key: 'd519ee27c3125320bc6b2a105b285148f791298c', variant: "body" }, subheading)))), isSlotUsed(this.el, "actions") && (hAsync("div", { key: 'db7b9b202c23c922149d77e3c378a7f369270022', class: "action-area" }, hAsync("slot", { key: '018da769d0d0d85f56e8400270a182846028c8f8', name: "actions" }))), isSlotUsed(this.el, "input") && (hAsync("div", { key: '28495ab831e90484f64a731c2ac9589da255f7c9', class: "input-area" }, hAsync("slot", { key: '0584473df8a5318ca3a91c81fa42085d98ec03e8', name: "input" })))), (isSlotUsed(this.el, "stepper") ||
|
|
13970
|
+
isSlotUsed(this.el, "tabs")) && (hAsync("div", { key: 'e9b414dd0c40f9c72c4099119f43b90998b660e3', class: "navigation-area" }, isSlotUsed(this.el, "stepper") &&
|
|
13971
|
+
!isSlotUsed(this.el, "tabs") && hAsync("slot", { key: '6767b004d2c71a4e009a23eb73e9c33c976c3d22', name: "stepper" }), isSlotUsed(this.el, "tabs") && (hAsync("nav", { key: '2966875a2e393299b01907959a925c960a1f5795', "aria-label": navAriaLabel }, hAsync("ic-horizontal-scroll", { key: '3ab38c0a4933f7b38af7fc9bb039624a5d98f3fd' }, hAsync("ul", { key: 'ce1c14207346ad570188c1e70f9ca39e0bfd2d68', class: "tabs-slot" }, hAsync("slot", { key: '38f22f779dd42b5015faa5604dc5af848a72121b', name: "tabs" })))))))))));
|
|
13887
13972
|
}
|
|
13888
13973
|
get el() { return getElement(this); }
|
|
13889
13974
|
static get style() { return IcPageHeaderStyle0; }
|
|
@@ -14146,6 +14231,31 @@ class Pagination {
|
|
|
14146
14231
|
componentDidLoad() {
|
|
14147
14232
|
onComponentRequiredPropUndefined([{ prop: this.pages, propName: "pages" }], "Pagination");
|
|
14148
14233
|
}
|
|
14234
|
+
/**
|
|
14235
|
+
* Prevents focus lingering on a disabled element. If the currently
|
|
14236
|
+
* focused element is one of the back buttons (and we reach the first page),
|
|
14237
|
+
* move focus to "next" button, and vice versa.
|
|
14238
|
+
* @param ev
|
|
14239
|
+
*/
|
|
14240
|
+
icPageChangeHandler(ev) {
|
|
14241
|
+
var _a, _b, _c;
|
|
14242
|
+
const shadow = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.shadowRoot;
|
|
14243
|
+
const activeEl = shadow ? shadow.activeElement : document.activeElement;
|
|
14244
|
+
if (!shadow || !activeEl) {
|
|
14245
|
+
return;
|
|
14246
|
+
}
|
|
14247
|
+
if (ev.detail.value === 1 &&
|
|
14248
|
+
["first-page-button", "previous-page-button"].some((id) => id === (activeEl === null || activeEl === void 0 ? void 0 : activeEl.id))) {
|
|
14249
|
+
const btn = (_b = shadow.querySelector("#next-page-button").shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("button");
|
|
14250
|
+
// When navigating from firstPage->lastPage or vice versa, the to-be-selected element will be disabled. wait a tick so that it can receive focus.
|
|
14251
|
+
setTimeout(() => btn === null || btn === void 0 ? void 0 : btn.focus(), 10);
|
|
14252
|
+
}
|
|
14253
|
+
else if (ev.detail.value === this.pages &&
|
|
14254
|
+
["last-page-button", "next-page-button"].some((id) => id === (activeEl === null || activeEl === void 0 ? void 0 : activeEl.id))) {
|
|
14255
|
+
const btn = (_c = shadow.querySelector("#previous-page-button").shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector("button");
|
|
14256
|
+
setTimeout(() => btn === null || btn === void 0 ? void 0 : btn.focus(), 10);
|
|
14257
|
+
}
|
|
14258
|
+
}
|
|
14149
14259
|
paginationItemClickHandler(ev) {
|
|
14150
14260
|
const page = ev.detail.page;
|
|
14151
14261
|
this.currentPage = page;
|
|
@@ -14165,14 +14275,14 @@ class Pagination {
|
|
|
14165
14275
|
}
|
|
14166
14276
|
render() {
|
|
14167
14277
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
|
14168
|
-
return (hAsync(Host, { key: '
|
|
14278
|
+
return (hAsync(Host, { key: '06b3adf0d59e3e20e2192fa3836d13c4577003fe', class: {
|
|
14169
14279
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
14170
14280
|
["ic-pagination-monochrome"]: !!monochrome,
|
|
14171
|
-
} }, type === "simple" && (hAsync("nav", { key: '
|
|
14281
|
+
} }, type === "simple" && (hAsync("nav", { key: '75f6cfc6bd708870bb6dd4e6b1d44ab63f9f3bf5', class: {
|
|
14172
14282
|
["disabled"]: !!disabled,
|
|
14173
|
-
}, role: "navigation", "aria-label": this.accessibleLabel }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '
|
|
14283
|
+
}, role: "navigation", "aria-label": this.accessibleLabel }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '24ddac40513c65ac26604271f6a1ab268f107dfe', 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: '5c864426c60fced527cf6457aded27e8c29fd26f', class: {
|
|
14174
14284
|
["disabled"]: !!disabled,
|
|
14175
|
-
}, role: "navigation", "aria-label": this.accessibleLabel }, 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: '
|
|
14285
|
+
}, role: "navigation", "aria-label": this.accessibleLabel }, 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: '52bb61a07010197513bd02b450b79895cb80030c', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
|
|
14176
14286
|
}
|
|
14177
14287
|
get el() { return getElement(this); }
|
|
14178
14288
|
static get watchers() { return {
|
|
@@ -14208,7 +14318,7 @@ class Pagination {
|
|
|
14208
14318
|
"startItems": [32],
|
|
14209
14319
|
"setCurrentPage": [64]
|
|
14210
14320
|
},
|
|
14211
|
-
"$listeners$": [[0, "paginationItemClick", "paginationItemClickHandler"]],
|
|
14321
|
+
"$listeners$": [[0, "icPageChange", "icPageChangeHandler"], [0, "paginationItemClick", "paginationItemClickHandler"]],
|
|
14212
14322
|
"$lazyBundleId$": "-",
|
|
14213
14323
|
"$attrsToReflect$": []
|
|
14214
14324
|
}; }
|
|
@@ -14257,7 +14367,7 @@ class PaginationItem {
|
|
|
14257
14367
|
}
|
|
14258
14368
|
render() {
|
|
14259
14369
|
const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
|
|
14260
|
-
return (hAsync("a", { key: '
|
|
14370
|
+
return (hAsync("a", { key: '684b55732fcbfd4922afc8b158ae509d7d487af7', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (hAsync("div", { class: {
|
|
14261
14371
|
["item-container"]: true,
|
|
14262
14372
|
["ellipsis"]: true,
|
|
14263
14373
|
["disabled"]: !!disabled,
|
|
@@ -14576,17 +14686,17 @@ class PopoverMenu {
|
|
|
14576
14686
|
this.popperProps = props;
|
|
14577
14687
|
}
|
|
14578
14688
|
render() {
|
|
14579
|
-
return (hAsync(Host, { key: '
|
|
14689
|
+
return (hAsync(Host, { key: '4ef24b6cdb06b7310453f5b7815a90dad11dbe3d', class: {
|
|
14580
14690
|
["ic-popover-menu-open"]: !!this.open,
|
|
14581
14691
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
14582
|
-
} }, hAsync("div", { key: '
|
|
14692
|
+
} }, hAsync("div", { key: '702b1c1f8c9f549c9816a41590ba86057a0f4ad4', id: this.parentPopover === undefined
|
|
14583
14693
|
? `ic-popover-submenu-${this.submenuId}`
|
|
14584
14694
|
: "", class: {
|
|
14585
14695
|
menu: true,
|
|
14586
|
-
} }, hAsync("span", { key: '
|
|
14696
|
+
} }, hAsync("span", { key: '6777fd3c177c8a67887815ef597b22837dfdc917', class: {
|
|
14587
14697
|
"opening-from-parent": this.openingFromParent,
|
|
14588
14698
|
"opening-from-child": this.openingFromChild,
|
|
14589
|
-
} }, isPropDefined(this.submenuId) && (hAsync("span", { key: '
|
|
14699
|
+
} }, isPropDefined(this.submenuId) && (hAsync("span", { key: '0808a5e51b16b599eb4feec009bfeb39cf9c2f7f' }, hAsync("span", { key: '76e569a67762a01542e0271270e27e2bf122388b', role: "menu" }, hAsync("ic-menu-item", { key: '00a64914d6ec8f0726b08aec4862ae575988d6ec', 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: '874b65f60655314ea03b1315b5ad5dd0d6bf496d', slot: "icon", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "submenu-back-icon" }, hAsync("path", { key: '0d74dd3aa63952a3daf4986b1dccf05132b142f7', d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z", fill: "currentColor" })))), hAsync("ic-typography", { key: '7d591c914310ab15a98463320d325ae6ea08ecec', variant: "subtitle-small", class: "parent-label" }, this.parentLabel))), hAsync("div", { key: 'b689e0b8e8a94e7add88ececc9a2e12ccaca9cb0', class: "menu-body", "aria-label": this.getMenuAriaLabel(), role: "menu" }, hAsync("slot", { key: 'b4cd62991ab1173788e96b4e95736560de0fb912' }))))));
|
|
14590
14700
|
}
|
|
14591
14701
|
static get delegatesFocus() { return true; }
|
|
14592
14702
|
get el() { return getElement(this); }
|
|
@@ -14855,16 +14965,16 @@ class RadioGroup {
|
|
|
14855
14965
|
render() {
|
|
14856
14966
|
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationAriaLive, validationStatus, validationText, theme, } = this;
|
|
14857
14967
|
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
14858
|
-
return (hAsync(Host, { key: '
|
|
14968
|
+
return (hAsync(Host, { key: '25d850a9a73e2265885ff67613cd37cc53977035', onKeyDown: handleKeyDown, class: {
|
|
14859
14969
|
"ic-radio-group-small": size === "small",
|
|
14860
14970
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
14861
|
-
} }, hAsync("fieldset", { key: '
|
|
14971
|
+
} }, hAsync("fieldset", { key: '960443c48d0cb2effadd20aa779be9bbef59fc48', role: "radiogroup", id: this.name, "aria-required": `${required}` }, !hideLabel && (hAsync("legend", { key: '592a145f2f9fbbcc167a441934a1f766f2c333be' }, hAsync("ic-input-label", { key: '1179db21f6db7f58b33bb96155ab275e26ecf5e9', class: {
|
|
14862
14972
|
[`${validationStatus}`]: true,
|
|
14863
14973
|
["disabled"]: !!disabled,
|
|
14864
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '
|
|
14974
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '52e567ae7f3ab59c7411ce2c0a5dcbdfdc551c29', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: 'bf72aff8d51ae2a0f223f020ec9c69877a95b1fe', class: {
|
|
14865
14975
|
"radio-buttons-container": true,
|
|
14866
14976
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
|
14867
|
-
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: '
|
|
14977
|
+
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: 'd849d16ff6abc505a8d282ff860784751c04c7ff' }))), hAsync("ic-input-validation", { key: '9708482107b5d8614c01177f9d5ed60a03791d9e', class: {
|
|
14868
14978
|
"show-validation": showValidation,
|
|
14869
14979
|
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
|
14870
14980
|
}
|
|
@@ -15048,17 +15158,17 @@ class RadioOption {
|
|
|
15048
15158
|
var _a, _b;
|
|
15049
15159
|
const { additionalFieldDisplay, disabled, dynamicText, form, groupLabel, handleClick, handleKeyDown, hasAdditionalField, label, name, selected, value, theme, } = this;
|
|
15050
15160
|
const id = `ic-radio-option-${isPropDefined(label) || value}-${groupLabel}`;
|
|
15051
|
-
return (hAsync(Host, { key: '
|
|
15161
|
+
return (hAsync(Host, { key: '710f043bfbdbe28be83f61aa6f9aac54e43374f9', onClick: handleClick, onKeyDown: handleKeyDown, class: {
|
|
15052
15162
|
["ic-radio-option-disabled"]: !!disabled,
|
|
15053
15163
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
15054
15164
|
["ic-radio-option-small"]: ((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.tagName) === "IC-RADIO-GROUP" &&
|
|
15055
15165
|
((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.className.includes("ic-radio-group-small")),
|
|
15056
|
-
} }, hAsync("div", { key: '
|
|
15166
|
+
} }, hAsync("div", { key: 'b81b1c3a0f0641c6cb324d1b97db208632a67fec', class: { "radio-option-container": true, disabled: !!disabled } }, hAsync("div", { key: '9ea346537957226517b6a0a622185713ef5dd20a' }, hAsync("input", { key: '3d75ad5b8265bbe03a82a1ea3299b9f6add36b48', 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: '5316e60c34c562122cf731039675891edc0a72f5', class: "checkmark" })), hAsync("ic-typography", { key: '628db8b91b4c550eae7c76297e791bea3e539e3b', class: "radio-label", variant: "body" }, hAsync("label", { key: 'd25e1cf55e7d07eb23ad41063307c998618af27b', htmlFor: id }, label))), hasAdditionalField && (hAsync("div", { key: 'ec7300a9bf852d3bb252e68e6a1f794cbc56db29', class: {
|
|
15057
15167
|
"dynamic-container": true,
|
|
15058
15168
|
hidden: additionalFieldDisplay === "dynamic" && !selected,
|
|
15059
|
-
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '
|
|
15169
|
+
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '72f29c68c31fe5b4f611ed8bea901c382cf06f32', class: "branch-corner" })), hAsync("div", { key: 'a33027e2baba3e454e542151a503cdd863ee522d' }, additionalFieldDisplay === "dynamic" && (hAsync("ic-typography", { key: 'cbb4aca43b192d749f79d29347eb27608698dea1', variant: "caption", role: "alert" }, hAsync("p", { key: '89b76f38cfb17f52a89659b134273a4cb3581933', class: "dynamic-text" }, dynamicText))), hAsync("div", { key: '57cce7d23ba1e63985bf74c304f303e1ff5e019f', class: {
|
|
15060
15170
|
[`additional-field-wrapper-${additionalFieldDisplay}`]: true,
|
|
15061
|
-
} }, hAsync("slot", { key: '
|
|
15171
|
+
} }, hAsync("slot", { key: '7d1069e0817992789b58fe73b210000a80700ef5', name: ADDITIONAL_FIELD })))))));
|
|
15062
15172
|
}
|
|
15063
15173
|
get el() { return getElement(this); }
|
|
15064
15174
|
static get watchers() { return {
|
|
@@ -15641,39 +15751,39 @@ class SearchBar {
|
|
|
15641
15751
|
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
|
15642
15752
|
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
|
15643
15753
|
renderHiddenInput(this.el, value, name, disabledMode);
|
|
15644
|
-
return (hAsync(Host, { key: '
|
|
15754
|
+
return (hAsync(Host, { key: '97932f66827d3d1aa3e41ca8aa15e8bdb1ad5518', class: {
|
|
15645
15755
|
"ic-search-bar-search": true,
|
|
15646
15756
|
"ic-search-bar-full-width": fullWidth,
|
|
15647
15757
|
"ic-search-bar-disabled": disabled,
|
|
15648
15758
|
"ic-search-bar-small": size === "small",
|
|
15649
15759
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
15650
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '
|
|
15760
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '3fc6cebca3191c6e19e523e4273f4ad7cfd39ea4', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '453ef1b4a73227f5525e386100ba4d09fc75a1a0', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly }, hAsync("slot", { key: 'd72a6705f4e98030a9af02c832478ecb3cd11570', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: 'e0ae23eaa33e7194eec066a1e72050b91be3cdd5', ref: (el) => (this.anchorEl = el), size: size, disabled: disabledMode, readonly: readonly, fullWidth: fullWidth }, hAsync("input", { key: 'ed239f98bcc086b05bbb14c43154aee3f7c2c76e', id: inputId, name: name, ref: (el) => (this.inputEl = el), value: options && !!labelValue ? labelValue : value, class: {
|
|
15651
15761
|
"no-left-pad": readonly,
|
|
15652
15762
|
readonly,
|
|
15653
15763
|
"truncate-value": truncateValue,
|
|
15654
|
-
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : undefined, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), hAsync("div", { key: '
|
|
15764
|
+
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : undefined, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), hAsync("div", { key: 'ed272c63c361866a3c096a4ed63e94582d4fcdf8', class: {
|
|
15655
15765
|
"clear-button-container": true,
|
|
15656
15766
|
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
|
15657
|
-
} }, hAsync("ic-button", { key: '
|
|
15767
|
+
} }, hAsync("ic-button", { key: '5e9c4058a68f853a552bfa0f2113858a275a365a', id: "clear-button", class: {
|
|
15658
15768
|
"clear-button": true,
|
|
15659
15769
|
"clear-button-unfocused": !clearButtonFocused,
|
|
15660
|
-
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "button", variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { key: '
|
|
15770
|
+
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "button", variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { key: '262820b10ac5df18f2b73fcb4aa0f1b3602c2c0f', class: "divider" })), hAsync("div", { key: 'e0ff6496a2b2a703a3d87980893926dd4fdf543d', class: {
|
|
15661
15771
|
"search-submit-button-container": true,
|
|
15662
15772
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
|
15663
|
-
} }, hAsync("ic-button", { key: '
|
|
15773
|
+
} }, hAsync("ic-button", { key: '4eefcd8121169df7b713df93cade880d0fcf5d60', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
|
15664
15774
|
"search-submit-button": true,
|
|
15665
15775
|
"search-submit-button-small": size === "small",
|
|
15666
15776
|
"search-submit-button-unfocused": !searchSubmitFocused,
|
|
15667
15777
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
|
15668
|
-
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: searchButtonType, variant: "icon-tertiary", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: '
|
|
15778
|
+
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: searchButtonType, variant: "icon-tertiary", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: '1194a402978db78f8abbaa5e1127e6e1ce8d77d3', class: {
|
|
15669
15779
|
"menu-container": true,
|
|
15670
15780
|
fullwidth: fullWidth,
|
|
15671
|
-
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '
|
|
15781
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '1bf2856fb888425fd0b7f690e9f3389f9bb1ec9f', class: {
|
|
15672
15782
|
"no-results": this.hadNoOptions() ||
|
|
15673
15783
|
(filteredOptions.length === 1 &&
|
|
15674
15784
|
(filteredOptions[0][labelField] === loadingLabel ||
|
|
15675
15785
|
filteredOptions[0][labelField] === loadingErrorLabel)),
|
|
15676
|
-
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: true, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: labelField, valueField: valueField, searchBar: true })))), hAsync("div", { key: '
|
|
15786
|
+
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: true, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: labelField, valueField: valueField, searchBar: true })))), hAsync("div", { key: 'f3333622e515486aeb77de5e8c7061b02f8f19b6', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
|
15677
15787
|
}
|
|
15678
15788
|
static get delegatesFocus() { return true; }
|
|
15679
15789
|
get el() { return getElement(this); }
|
|
@@ -15757,12 +15867,12 @@ class SectionContainer {
|
|
|
15757
15867
|
}
|
|
15758
15868
|
render() {
|
|
15759
15869
|
const { aligned, fullHeight } = this;
|
|
15760
|
-
return (hAsync(Host, { key: '
|
|
15870
|
+
return (hAsync(Host, { key: '54b72df0db0ae4794b74be875011b76868370b73', class: {
|
|
15761
15871
|
["aligned-left"]: aligned === "left" || aligned === null,
|
|
15762
15872
|
["aligned-center"]: aligned === "center",
|
|
15763
15873
|
["aligned-full-width"]: aligned === "full-width",
|
|
15764
15874
|
["no-vertical-padding"]: !!fullHeight,
|
|
15765
|
-
} }, hAsync("slot", { key: '
|
|
15875
|
+
} }, hAsync("slot", { key: 'c0f0631b39da318c0ce15c6f6200c1f03268bd7a' })));
|
|
15766
15876
|
}
|
|
15767
15877
|
static get style() { return IcSectionContainerStyle0; }
|
|
15768
15878
|
static get cmpMeta() { return {
|
|
@@ -16587,18 +16697,18 @@ class Select {
|
|
|
16587
16697
|
(searchable
|
|
16588
16698
|
? !!searchableSelectInputValue
|
|
16589
16699
|
: !!currValue && !loading && showClearButton);
|
|
16590
|
-
return (hAsync(Host, { key: '
|
|
16700
|
+
return (hAsync(Host, { key: '7fe228e078a155a73e2fc94cc2b118c93b4145fe', class: {
|
|
16591
16701
|
"ic-select-disabled": disabled,
|
|
16592
16702
|
"ic-select-searchable": searchable,
|
|
16593
16703
|
[`ic-select-${size}`]: size !== "medium",
|
|
16594
16704
|
"ic-select-full-width": fullWidth,
|
|
16595
16705
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
16596
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
|
16706
|
+
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: 'f354e43e2138805bfb8e7f47dad8460c54bc4150', readonly: readonly }, !hideLabel && (hAsync("ic-input-label", { key: '5e0a35593115e83abab6de7f4c4c13d0865e4cd0', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly }, hAsync("slot", { key: 'a1bb94c8b02a3b859245e384443395b92a24cc87', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: '0ce9a0afd7163ad10add85df056d8ed5b1e5e856', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, isSlotUsed(this.el, "icon") &&
|
|
16597
16707
|
!disabled &&
|
|
16598
|
-
(!readonly || !!value) && (hAsync("span", { key: '
|
|
16708
|
+
(!readonly || !!value) && (hAsync("span", { key: '6976af6d54de212225c8187634faceac225d769e', slot: "left-icon", class: {
|
|
16599
16709
|
readonly,
|
|
16600
16710
|
"has-value": !!value,
|
|
16601
|
-
} }, hAsync("slot", { key: '
|
|
16711
|
+
} }, hAsync("slot", { key: 'f198b118f799e71cc850ff9b4e8f72b2e6bb531c', 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: inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: form }, inheritedAttributes), hAsync("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => option.children ? (hAsync("optgroup", { label: option.label }, option.children.map((child) => this.renderNativeOption(child)))) : (this.renderNativeOption(option))))) : searchable ? (hAsync("div", { class: "searchable-select-container" }, hAsync("input", { class: {
|
|
16602
16712
|
"value-text": true,
|
|
16603
16713
|
"select-input": true,
|
|
16604
16714
|
"with-clear-button": !!searchableSelectInputValue,
|
|
@@ -16619,7 +16729,7 @@ class Select {
|
|
|
16619
16729
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
|
16620
16730
|
"expand-icon": true,
|
|
16621
16731
|
"expand-icon-open": open,
|
|
16622
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (hAsync("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: '
|
|
16732
|
+
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (hAsync("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: '34f6484de01345c4ea6d9fcaa1cdc09c394e6904', class: {
|
|
16623
16733
|
"no-results": loading ||
|
|
16624
16734
|
hasTimedOut ||
|
|
16625
16735
|
(searchable &&
|
|
@@ -16628,7 +16738,7 @@ class Select {
|
|
|
16628
16738
|
((_d = (_c = this.uniqueOptions) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.label) === emptyOptionListText),
|
|
16629
16739
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
|
16630
16740
|
? this.searchableSelectElement
|
|
16631
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple, multiSelect: multiple ? true : false, searchableSelect: searchable ? true : false })), multiple && (hAsync("div", { key: '
|
|
16741
|
+
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple, multiSelect: multiple ? true : false, searchableSelect: searchable ? true : false })), multiple && (hAsync("div", { key: 'edbcf92bebb2999f1b9dbff3da4299fd3fa21c00', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hAsync("ic-input-validation", { key: '37d687c64608a1bd70763c2c09351be2d736c624', class: {
|
|
16632
16742
|
"menu-open": open,
|
|
16633
16743
|
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
|
|
16634
16744
|
}
|
|
@@ -17159,7 +17269,7 @@ class SideNavigation {
|
|
|
17159
17269
|
isAppNameSubtitleVariant,
|
|
17160
17270
|
appTitle: appTitle || "",
|
|
17161
17271
|
};
|
|
17162
|
-
return (hAsync(Host, { key: '
|
|
17272
|
+
return (hAsync(Host, { key: '2ca241755bb10821d8557f559592d4dd0760b887', class: {
|
|
17163
17273
|
"xs-menu-open": menuOpen && isSDevice,
|
|
17164
17274
|
"xs-menu-close": !menuOpen && isSDevice,
|
|
17165
17275
|
"sm-collapsed": !isSDevice && !menuExpanded,
|
|
@@ -17168,12 +17278,12 @@ class SideNavigation {
|
|
|
17168
17278
|
[`ic-side-navigation-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
|
17169
17279
|
["collapsed-labels"]: !isSDevice && !menuExpanded && !!collapsedIconLabels,
|
|
17170
17280
|
["ic-side-navigation-inline"]: !!inline,
|
|
17171
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '
|
|
17281
|
+
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'aa5762da7c66f9017e74d98b9d036cb14c69ec19', class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'df39cd75e1e5386c9b199966244b420e0ef0d448', class: "side-navigation-inner" }, isSlotUsed(this.el, "primary-navigation") && (hAsync("nav", { key: '8f5a9af9ec882ed1e313ce9273db4d6ab477a990', class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { key: 'a91c060ed0c0294e6fdc99c995430058b753e4cd', "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { key: '060f365653046b8088c9161231c4001d39643e29', class: "navigation-list" }, hAsync("slot", { key: 'b761659a332a7734c798ba61dee24ca7754cf96b', name: "primary-navigation" }))))), hAsync("div", { key: 'a5be3e27f68f9314e107babba3e1b61e3dba27b4', class: {
|
|
17172
17282
|
["bottom-wrapper"]: true,
|
|
17173
17283
|
["classification-spacing"]: hasClassificationBanner(),
|
|
17174
|
-
} }, isSlotUsed(this.el, "secondary-navigation") && (hAsync("nav", { key: '
|
|
17284
|
+
} }, isSlotUsed(this.el, "secondary-navigation") && (hAsync("nav", { key: 'eb981c93add2bce4f244cef2072ddbe9004920da', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { key: '14093650feb9f7836d21e5e9c23025f161aa0a03', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { key: '2fc5d7119e42ad1a699c19f401542441f3c38101', class: "navigation-list" }, hAsync("slot", { key: 'de673e94462c14ea82eef271b1094d53b60fb3c0', name: "secondary-navigation" })))), hAsync("div", { key: '8c187281a890650aa75aba49154e1bd64e37df00', class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", { key: 'ec8d437485b0554ceaeaee4fd6eb7f8215c1f2c4' }), displayExpandBtn && (hAsync("button", { key: '44733bc053b72179fe49c1a3156ed1a6d389ea35', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { key: '0c46f90bab1c162677caf7f3a1e2e97b83f4b21f', class: "app-status-wrapper" }, status && (hAsync("div", { key: '0ff477aa184a44aacf5c04d4a6a635ec133722be', class: {
|
|
17175
17285
|
["app-status"]: true,
|
|
17176
|
-
} }, hAsync("ic-typography", { key: '
|
|
17286
|
+
} }, hAsync("ic-typography", { key: '5fe36c925f766f7db841f70ed9bcefeea1b7346e', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version && (hAsync("ic-typography", { key: '01e44f6858a26def4f6ae9996990e5d8f4d584b6', variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
|
17177
17287
|
}
|
|
17178
17288
|
get el() { return getElement(this); }
|
|
17179
17289
|
static get watchers() { return {
|
|
@@ -17252,11 +17362,11 @@ class Skeleton {
|
|
|
17252
17362
|
width: el.style.width || width || DEFAULT_WIDTHS[variant],
|
|
17253
17363
|
}
|
|
17254
17364
|
: undefined;
|
|
17255
|
-
return (hAsync(Host, { key: '
|
|
17365
|
+
return (hAsync(Host, { key: 'b4a3ebe92aabc313aeb97e95ba87c6c12c59d2c6', class: {
|
|
17256
17366
|
skeleton: true,
|
|
17257
17367
|
"ic-skeleton-circle": variant === "circle",
|
|
17258
17368
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
17259
|
-
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: '
|
|
17369
|
+
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: 'be6ae12693bcfe04b70bf3dfee0e1096d194b9c9' })));
|
|
17260
17370
|
}
|
|
17261
17371
|
get el() { return getElement(this); }
|
|
17262
17372
|
static get style() { return IcSkeletonStyle0; }
|
|
@@ -17315,9 +17425,9 @@ class SkipLink {
|
|
|
17315
17425
|
}
|
|
17316
17426
|
render() {
|
|
17317
17427
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
|
17318
|
-
return (hAsync(Host, { key: '
|
|
17428
|
+
return (hAsync(Host, { key: '4db32bbfdf500c9f7f39329124081e7e0d297678', class: {
|
|
17319
17429
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
17320
|
-
} }, hAsync("ic-link", { key: '
|
|
17430
|
+
} }, hAsync("ic-link", { key: '4311c903f118bab9fedbdc7bfbb8ab912a25a22a', class: {
|
|
17321
17431
|
"display-top": !inline,
|
|
17322
17432
|
"full-width": !!fullWidth,
|
|
17323
17433
|
"show-background": !transparentBackground,
|
|
@@ -17382,12 +17492,12 @@ class StatusTag {
|
|
|
17382
17492
|
}
|
|
17383
17493
|
render() {
|
|
17384
17494
|
const { label, status, variant, size, announced, theme, uppercase } = this;
|
|
17385
|
-
return (hAsync(Host, { key: '
|
|
17495
|
+
return (hAsync(Host, { key: 'd0d10c46cc967c5448afb1c10ad1211916602678', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, hAsync("strong", { key: 'df86eb3a1d27444b991f2bbca96c80c1ee8213a5', class: {
|
|
17386
17496
|
["tag"]: true,
|
|
17387
17497
|
[`${variant}-${status}`]: true,
|
|
17388
17498
|
["outlined"]: variant === "outlined",
|
|
17389
17499
|
[`${size}`]: true,
|
|
17390
|
-
} }, hAsync("ic-typography", { key: '
|
|
17500
|
+
} }, hAsync("ic-typography", { key: '466f53b65c33bb62a60b50507b08fee5bd13d108', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, hAsync("span", { key: 'a0082731e24b6d9bae6ef5c6f4641c325fbcc5fb' }, label)))));
|
|
17391
17501
|
}
|
|
17392
17502
|
static get style() { return IcStatusTagStyle0; }
|
|
17393
17503
|
static get cmpMeta() { return {
|
|
@@ -17491,27 +17601,27 @@ class Step {
|
|
|
17491
17601
|
// STATUS ICON FOR COMPACT STEP
|
|
17492
17602
|
let statusIcon;
|
|
17493
17603
|
if (type === "completed" || compactStepStyling === "completed") {
|
|
17494
|
-
statusIcon = (hAsync("span", { key: '
|
|
17604
|
+
statusIcon = (hAsync("span", { key: '74b23c6076ab6aac072fc21e24ef5b13479699fc', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
|
17495
17605
|
}
|
|
17496
17606
|
else if (type === "disabled" || compactStepStyling === "disabled") {
|
|
17497
|
-
statusIcon = (hAsync("span", { key: '
|
|
17607
|
+
statusIcon = (hAsync("span", { key: '0494daaaee14c3f2d3bd424fc5fd194c7ff2b62b', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
17498
17608
|
}
|
|
17499
17609
|
// COMPACT STEP COMPONENT
|
|
17500
|
-
const compactStep = (hAsync("div", { key: '
|
|
17610
|
+
const compactStep = (hAsync("div", { key: 'c3098f790836c299becd073793de042c70687b00', class: {
|
|
17501
17611
|
["step"]: true,
|
|
17502
17612
|
["current"]: !!current,
|
|
17503
17613
|
[`compact-step-${compactStepStyling}`]: !!compactStepStyling,
|
|
17504
17614
|
["disabled"]: type === "disabled" || compactStepStyling === "disabled",
|
|
17505
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
|
17615
|
+
} }, hAsync("ic-loading-indicator", { key: 'a192685be47c4df0b5420d03099e046d2c86d92f', class: {
|
|
17506
17616
|
"compact-step-progress-indicator": true,
|
|
17507
17617
|
"not-required": type === "disabled" || compactStepStyling === "disabled",
|
|
17508
|
-
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), hAsync("div", { key: '
|
|
17618
|
+
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), hAsync("div", { key: '031a4827300fe997173f0a92e7f184cdd2481a54', class: "heading-area" }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (hAsync("ic-typography", { variant: "h4", class: "heading" }, heading)), hAsync("div", { key: '1f7909a0de56a3cc2fc8e498c9d027bb5faeedb1', class: "info-line" }, hAsync("ic-typography", { key: '8afdaa87473127f7e154c353fe13671ee6295e64', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, hAsync("span", { key: '9ce1f2f33a521ad17e6c16ff13c57b7418c50863', class: "visually-hidden" }, ` ${icI18n.steps}`)), (this.subheading ||
|
|
17509
17619
|
type === "completed" ||
|
|
17510
17620
|
type === "disabled" ||
|
|
17511
17621
|
(this.variant === "compact" &&
|
|
17512
17622
|
!!compactStepStyling &&
|
|
17513
17623
|
compactStepStyling !== "active") ||
|
|
17514
|
-
!!status) && (hAsync("div", { key: '
|
|
17624
|
+
!!status) && (hAsync("div", { key: 'f759a3ea746749a2e32a1f7fe242f81d415936ea', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (hAsync("ic-typography", { key: '2218c08fae3e99a77276ac5be770d83227d9436b', variant: "caption" }, subheading !== null && isPropDefined(subheading)
|
|
17515
17625
|
? subheading
|
|
17516
17626
|
: type === "disabled" ||
|
|
17517
17627
|
(variant === "compact" &&
|
|
@@ -17524,26 +17634,26 @@ class Step {
|
|
|
17524
17634
|
// ICON FOR DEFAULT STEP
|
|
17525
17635
|
let icon;
|
|
17526
17636
|
if (type !== "completed") {
|
|
17527
|
-
icon = (hAsync("ic-typography", { key: '
|
|
17637
|
+
icon = (hAsync("ic-typography", { key: 'bf9290b58e81fbd33b6fec33c1f8c2daf772e3d0', variant: "subtitle-small" }, hAsync("span", { key: 'a7892500ccecb39d9ef030b1c265df95497dce73', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
|
17528
17638
|
}
|
|
17529
17639
|
else {
|
|
17530
|
-
icon = (hAsync("div", { key: '
|
|
17640
|
+
icon = (hAsync("div", { key: 'cb195656bb75703ea8cdefdd2595984d7f134b68', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: 'd83ddc1fe07d6f7e904b757e172541a6a614aa30', class: "check-icon", innerHTML: checkIcon })));
|
|
17531
17641
|
}
|
|
17532
17642
|
// STEP CONNECT FOR DEFAULT STEP
|
|
17533
|
-
const partialBar = type === "current" && (hAsync("div", { key: '
|
|
17534
|
-
const finalStep = !lastStep && (hAsync("div", { key: '
|
|
17643
|
+
const partialBar = type === "current" && (hAsync("div", { key: 'bbff974e95f002d093040010add1700c99e07613', class: "step-connect-inner" }));
|
|
17644
|
+
const finalStep = !lastStep && (hAsync("div", { key: 'c53c5a27a5601021a3474920ff4724c93d3ea1af', class: {
|
|
17535
17645
|
["step-connect"]: true,
|
|
17536
17646
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
|
17537
17647
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
17538
17648
|
} }, partialBar));
|
|
17539
17649
|
// DEFAULT STEP COMPONENT
|
|
17540
|
-
const defaultStep = (hAsync("div", { key: '
|
|
17650
|
+
const defaultStep = (hAsync("div", { key: '42b8f42430b8a455d1954141279c967b641fedf1', class: {
|
|
17541
17651
|
["step"]: true,
|
|
17542
17652
|
[`${type}`]: true,
|
|
17543
|
-
} }, hAsync("div", { key: '
|
|
17653
|
+
} }, hAsync("div", { key: 'f82f5598ba7bd24ee738263d1f7ff9230f2527ce', class: "step-top" }, hAsync("div", { key: '86b4cfae9c5c411803556f6028776aef731e9701', class: "step-icon" }, icon), finalStep), (hasHeading || subheading || status) && (hAsync("div", { key: '3cd81c453558c3ea8a42360bb02fc66e7354fcc1', class: "heading-area" }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (hAsync("ic-typography", { variant: "subtitle-large", class: "heading" }, heading)), hasHeading && (subheading || status) && (hAsync("ic-typography", { key: 'ff802a77f070a2eef0ee69c537f8b92d2d614488', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined(subheading)
|
|
17544
17654
|
? subheading
|
|
17545
17655
|
: stepStatus))))));
|
|
17546
|
-
return (hAsync(Host, { key: '
|
|
17656
|
+
return (hAsync(Host, { key: '05f6c45fb88ca8576133885301077d9a5432580a', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
|
|
17547
17657
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
|
17548
17658
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
17549
17659
|
[`ic-step-${variant}`]: true,
|
|
@@ -17863,11 +17973,11 @@ class Stepper {
|
|
|
17863
17973
|
checkResizeObserver(this.runResizeObserver);
|
|
17864
17974
|
}
|
|
17865
17975
|
render() {
|
|
17866
|
-
return (hAsync(Host, { key: '
|
|
17976
|
+
return (hAsync(Host, { key: 'b7f2dcc641420517df19d3dd811bfeab6c924793', class: {
|
|
17867
17977
|
[`ic-stepper-${this.variant}`]: true,
|
|
17868
17978
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
|
17869
17979
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
17870
|
-
} }, hAsync("ul", { key: '
|
|
17980
|
+
} }, hAsync("ul", { key: '9eadbde4ea2027d4c2f9f6ae3bcb67c0d8d91cc7', class: "step-item-list" }, hAsync("slot", { key: '6567b75279bb52414e60d97eab675b2269851a93' }))));
|
|
17871
17981
|
}
|
|
17872
17982
|
get el() { return getElement(this); }
|
|
17873
17983
|
static get watchers() { return {
|
|
@@ -17998,16 +18108,16 @@ class Switch {
|
|
|
17998
18108
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
|
17999
18109
|
const isSmall = size === "small";
|
|
18000
18110
|
renderHiddenInput(this.el, checkedState ? value : "", name, disabled);
|
|
18001
|
-
return (hAsync(Host, { key: '
|
|
18111
|
+
return (hAsync(Host, { key: '1e956030826e52752e8c7653b8da25af46f52426', class: {
|
|
18002
18112
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18003
|
-
} }, hAsync("label", { key: '
|
|
18113
|
+
} }, hAsync("label", { key: '91501b821fe6124254ee768b372e064cd081fb16', class: {
|
|
18004
18114
|
"ic-switch-container": true,
|
|
18005
18115
|
"ic-switch-disabled": !!disabled,
|
|
18006
18116
|
"ic-switch-small": isSmall,
|
|
18007
|
-
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '
|
|
18117
|
+
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: 'f9f89f3e0a580fd136efb7b7f896c74020a22b08', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
|
|
18008
18118
|
"ic-switch-label": true,
|
|
18009
18119
|
"ic-switch-label-small": isSmall,
|
|
18010
|
-
} }, hAsync("slot", { key: '
|
|
18120
|
+
} }, hAsync("slot", { key: 'ba6d621b604fb414e32b3610730faece841d30e6', name: "helper-text", slot: "helper-text" }))), !hideLabel && hAsync("span", { key: 'd2a675ea63e51c6f3a2c9e22494a4d04ea7d6376', class: "ic-switch-line-break" }), hAsync("input", { key: 'd0ebcc9c3119699b54ed088a511e050229e57b05', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText(this.el, inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), hAsync("span", { key: '7f5c08f419bda58267c3664dc6d63ed5218310b6', class: "ic-switch-toggle" }, hAsync("svg", { key: '72c0c627015a5d4928b5b1301498b3b35bc07a9e', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("line", { key: '82aa70d102ff0444cf751b2d180a9407cfa6f3fb', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), hAsync("svg", { key: '2234f9200dd364dcb995e6f12d380ae141e6320a', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: '60c2fbd7fc71a7e310d42b8b20c5c4483aa743a7', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), hAsync("slot", { key: 'eb81e7b8b1c6037e23074d407174060811af077e', name: "right-adornment" }))));
|
|
18011
18121
|
}
|
|
18012
18122
|
static get delegatesFocus() { return true; }
|
|
18013
18123
|
get el() { return getElement(this); }
|
|
@@ -18130,13 +18240,13 @@ class Tab {
|
|
|
18130
18240
|
}
|
|
18131
18241
|
render() {
|
|
18132
18242
|
const { disabled, selected, theme, monochrome, handleClick, handleFocus, handleMouseDown, } = this;
|
|
18133
|
-
return (hAsync(Host, { key: '
|
|
18243
|
+
return (hAsync(Host, { key: '3bf21c3c40b3d05205e9f78ab27886fc6eaa57e7', class: {
|
|
18134
18244
|
["with-transition"]: !this.isInitialRender,
|
|
18135
18245
|
["ic-tab-selected"]: !!selected,
|
|
18136
18246
|
["ic-tab-disabled"]: !!disabled,
|
|
18137
18247
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18138
18248
|
["ic-tab-monochrome"]: !!monochrome,
|
|
18139
|
-
}, 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: '
|
|
18249
|
+
}, 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: 'd3638e97b02e0938fc25ef9fe8fd74eca1ff235b', name: "icon" }), hAsync("ic-typography", { key: '35c6f3a78c18b43716e3ceb26736b8e2f3e64d3f', class: "ic-tab-label", variant: "label" }, hAsync("span", { key: '2d64798a00f945d9fcf830c4e5c6b4abf1fcf45c' }, hAsync("slot", { key: 'd2c099b23e226d66c754fdd16bcc7b62ffea2ad0' }))), isSlotUsed(this.el, "badge") && hAsync("slot", { key: '9072229033bfc5e11c3e9ee048d5a578ebfd8a78', name: "badge" })));
|
|
18140
18250
|
}
|
|
18141
18251
|
get el() { return getElement(this); }
|
|
18142
18252
|
static get watchers() { return {
|
|
@@ -18393,7 +18503,7 @@ class TabContext {
|
|
|
18393
18503
|
}
|
|
18394
18504
|
}
|
|
18395
18505
|
render() {
|
|
18396
|
-
return hAsync("slot", { key: '
|
|
18506
|
+
return hAsync("slot", { key: 'ddf3e45c3bd98315d6d49e35e3b309acfefc0782' });
|
|
18397
18507
|
}
|
|
18398
18508
|
get el() { return getElement(this); }
|
|
18399
18509
|
static get watchers() { return {
|
|
@@ -18440,11 +18550,11 @@ class TabGroup {
|
|
|
18440
18550
|
}
|
|
18441
18551
|
render() {
|
|
18442
18552
|
const { inline, theme, label, monochrome } = this;
|
|
18443
|
-
return (hAsync(Host, { key: '
|
|
18553
|
+
return (hAsync(Host, { key: 'e6eda4f0fddf03fa0e666070e9fe4a01ed6c244c', role: "tablist", "aria-label": label, class: {
|
|
18444
18554
|
["ic-tab-group-inline"]: !!inline,
|
|
18445
18555
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18446
18556
|
["ic-tab-group-monochrome"]: !!monochrome,
|
|
18447
|
-
} }, hAsync("ic-horizontal-scroll", { key: '
|
|
18557
|
+
} }, hAsync("ic-horizontal-scroll", { key: 'b2387259eee6357ea9d90560aef246a035158e01', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, hAsync("div", { key: 'a8351a7ab0e0a9ac824f5a4be46af8a97c6cb8dd', class: "tabs-container" }, hAsync("slot", { key: '5008e5e509035d59bbf397a986af8d390ecacf1e' })))));
|
|
18448
18558
|
}
|
|
18449
18559
|
static get delegatesFocus() { return true; }
|
|
18450
18560
|
static get style() { return IcTabGroupStyle0; }
|
|
@@ -18487,10 +18597,10 @@ class TabPanel {
|
|
|
18487
18597
|
}
|
|
18488
18598
|
render() {
|
|
18489
18599
|
const { active, theme } = this;
|
|
18490
|
-
return (hAsync(Host, { key: '
|
|
18600
|
+
return (hAsync(Host, { key: '33c2600681317fb27e801153496452582e5862a8', class: {
|
|
18491
18601
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18492
18602
|
"ic-tab-panel-hidden": !active,
|
|
18493
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '
|
|
18603
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '722ead8cc9ed26d0815781211bb5e657aa65f8ba' }, hAsync("slot", { key: '78dad6e7c3d0ba3c684d586c0a16d2d1e7de32f7' }))));
|
|
18494
18604
|
}
|
|
18495
18605
|
get el() { return getElement(this); }
|
|
18496
18606
|
static get style() { return IcTabPanelStyle0; }
|
|
@@ -18518,6 +18628,7 @@ let inputIds = 0;
|
|
|
18518
18628
|
const MUTABLE_ATTRIBUTES = [...IC_INHERITED_ARIA, "title"];
|
|
18519
18629
|
/**
|
|
18520
18630
|
* @slot helper-text - Content is set as the helper text for the text field.
|
|
18631
|
+
* @slot validation-text - Content is set as validation text for the text field.
|
|
18521
18632
|
* @slot icon - Content will be placed to the left of the text input.
|
|
18522
18633
|
*/
|
|
18523
18634
|
class TextField {
|
|
@@ -18901,14 +19012,14 @@ class TextField {
|
|
|
18901
19012
|
hiddenInput
|
|
18902
19013
|
? renderHiddenInput(this.el, value, name, disabledMode)
|
|
18903
19014
|
: removeHiddenInput(this.el);
|
|
18904
|
-
return (hAsync(Host, { key: '
|
|
19015
|
+
return (hAsync(Host, { key: 'c94560bea90464d881f323a308aa17926a2ff1e6', class: {
|
|
18905
19016
|
"ic-text-field-full-width": fullWidth,
|
|
18906
19017
|
"ic-text-field-disabled": disabledMode,
|
|
18907
19018
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18908
|
-
} }, hAsync("ic-input-container", { key: '
|
|
19019
|
+
} }, hAsync("ic-input-container", { key: 'cf76ec0c26f5003f66707b697df8c6e065872a66', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '0e8b2170e02cafadcda1cd7c73b1fe0d17695247', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly }, hAsync("slot", { key: 'fb77e901d7b762bcdbe4b5aa1c448602617d1951', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: '51aff4fba6d8c8e474ebfc27f77c560cce1125f8', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (hAsync("span", { key: '85df3728d49c37c33e1fe792973c527137431a78', class: {
|
|
18909
19020
|
readonly,
|
|
18910
19021
|
"has-value": this.getNumberOfCharacters(value) > 0,
|
|
18911
|
-
}, slot: "left-icon" }, hAsync("slot", { key: '
|
|
19022
|
+
}, slot: "left-icon" }, hAsync("slot", { key: 'dc4cbe888dbe0e864102f60496be589951c4e610', 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: {
|
|
18912
19023
|
"no-left-pad": !showLeftIcon && readonly,
|
|
18913
19024
|
readonly,
|
|
18914
19025
|
"truncate-value": truncateValue,
|
|
@@ -18916,12 +19027,12 @@ class TextField {
|
|
|
18916
19027
|
"no-resize": resize === false || !!readonly,
|
|
18917
19028
|
"no-left-pad": !showLeftIcon && !!readonly,
|
|
18918
19029
|
readonly: !!readonly,
|
|
18919
|
-
}, 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, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed(el, "clear-button") && (hAsync("slot", { key: '
|
|
19030
|
+
}, 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, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed(el, "clear-button") && (hAsync("slot", { key: '6faa3c12856f4f6c10158af49f14b51d5dac92e8', name: "clear-button" })), isSlotUsed(el, "search-submit-button") && (hAsync("slot", { key: 'c18e08b7ae93e3f65e0410af0b6d64eb418e3940', name: "search-submit-button" }))), isSlotUsed(el, "menu") && hAsync("slot", { key: 'e1a46ef6a4d97c4910df75941d6608a7765d127a', name: "menu" }), hAsync("ic-input-validation", { key: 'e963d95a1e5bfc767c35b798c61bcf958dbcdfa6', class: { "show-validation": this.showValidationMargin() }, status: this.hasStatus(currentStatus) === false ||
|
|
18920
19031
|
(currentStatus === IcInformationStatus.Success &&
|
|
18921
19032
|
validationInline) ||
|
|
18922
19033
|
validationInlineInternal
|
|
18923
19034
|
? ""
|
|
18924
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '
|
|
19035
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, isSlotUsed(el, "validation-text") && (hAsync("slot", { key: '4b5817e1c52b9af6511e07c202e5eb0e8457689d', name: "validation-text", slot: "validation-message" })), !readonly && maxNumChars > 0 && (hAsync("div", { key: '059e8dc7ffbb0225d0c901821ff53d5b90ddf9f1', slot: "validation-message-adornment" }, !hideCharCount && (hAsync("ic-typography", { key: 'afe9cb357584f91fd2762d2c9f87d68eb7e25e68', variant: "caption", class: "char-count-text" }, hAsync("span", { key: '583f62c58407615b2ce37edb17eed4928952e6ee', class: "char-count" }, numChars, "/", maxNumChars))), hAsync("span", { key: '953722d8ddd1d3c4e187308944fdd0723e8e8e70', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), hAsync("span", { key: '973adba9f9c7dca2409423f36af8dc4a9a3a7192', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))));
|
|
18925
19036
|
}
|
|
18926
19037
|
get el() { return getElement(this); }
|
|
18927
19038
|
static get watchers() { return {
|
|
@@ -19060,7 +19171,7 @@ class Theme {
|
|
|
19060
19171
|
}
|
|
19061
19172
|
render() {
|
|
19062
19173
|
const { themeClass } = this;
|
|
19063
|
-
return (hAsync(Host, { key: '
|
|
19174
|
+
return (hAsync(Host, { key: '53aa5cb32bce3ebd1b66c22df8c64f615fad4d00', class: themeClass }, hAsync("slot", { key: '6f2d5fa4d0d7a42995dd9d4b31081b421e6fe5a9' })));
|
|
19064
19175
|
}
|
|
19065
19176
|
static get watchers() { return {
|
|
19066
19177
|
"brandColor": ["watchBrandColorPropHandler"],
|
|
@@ -19289,20 +19400,20 @@ class Toast {
|
|
|
19289
19400
|
}
|
|
19290
19401
|
render() {
|
|
19291
19402
|
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, theme, } = this;
|
|
19292
|
-
return (hAsync(Host, { key: '
|
|
19403
|
+
return (hAsync(Host, { key: 'e7a7544e4b374165ecfece2ecacd0a8e5286fe2c', class: {
|
|
19293
19404
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19294
19405
|
["ic-toast-hidden"]: !visible,
|
|
19295
19406
|
[`ic-toast-variant-${variant}`]: variant !== undefined,
|
|
19296
|
-
}, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: '
|
|
19407
|
+
}, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: 'dd87e639960574b163d4647c039bd26aafe046f6', class: {
|
|
19297
19408
|
["container"]: true,
|
|
19298
19409
|
[`container-${variant}`]: variant !== undefined,
|
|
19299
|
-
} }, variant && visible && (hAsync("div", { key: '
|
|
19410
|
+
} }, variant && visible && (hAsync("div", { key: 'baa9567a490a4400b1f27816fd82e14dd672b03c', class: "toast-icon-container" }, hAsync("div", { key: '6a8f504184564a9ffdcfb1bb4aef68b571be1cd9', class: {
|
|
19300
19411
|
["divider"]: true,
|
|
19301
19412
|
[`divider-${variant}`]: true,
|
|
19302
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
|
19413
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: 'f6fe1acced40005f09a18cec2119b7fa518d65c3', class: {
|
|
19303
19414
|
["toast-content"]: true,
|
|
19304
19415
|
["no-icon"]: variant === "neutral" && !isSlotUsed(this.el, "neutral-icon"),
|
|
19305
|
-
} }, hAsync("div", { key: '
|
|
19416
|
+
} }, hAsync("div", { key: 'd594caa7e1e7935f992b5106432eee7304518fbe', class: "toast-text" }, hAsync("ic-typography", { key: '83cd3393341aff5d8a7660e0fefd2c61a8039777', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? hAsync("h5", null, heading) : hAsync("p", null, heading))), message && (hAsync("ic-typography", { key: 'f628cf5d15c0dc000549698803420dd6a983b032', variant: "body", class: "toast-message" }, visible && hAsync("p", { key: 'e6cb92a64c6d2d759eafec7f0adafa332dbbbc31' }, message)))), isSlotUsed(this.el, "action") && (hAsync("div", { key: '805d7b37f322f0dcc8fbf4750ec5982adf7f5754', class: "toast-action-container" }, hAsync("slot", { key: '943670c862d60185c157ebda02aeb1cb4f8b4650', name: "action" })))), !isManual ? (hAsync("ic-loading-indicator", { class: "toast-dismiss-timer", theme: "dark", monochrome: true, size: "icon", progress: this.timerProgress, description: "Dismiss timer" })) : (hAsync("ic-button", { id: "dismiss-button", innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon-tertiary", "aria-label": dismissButtonAriaLabel })))));
|
|
19306
19417
|
}
|
|
19307
19418
|
get el() { return getElement(this); }
|
|
19308
19419
|
static get watchers() { return {
|
|
@@ -19375,7 +19486,7 @@ class ToastRegion {
|
|
|
19375
19486
|
}
|
|
19376
19487
|
}
|
|
19377
19488
|
render() {
|
|
19378
|
-
return hAsync("slot", { key: '
|
|
19489
|
+
return hAsync("slot", { key: '7c0c88d4aeb9e5141603885ce134e43674e341a9' });
|
|
19379
19490
|
}
|
|
19380
19491
|
get el() { return getElement(this); }
|
|
19381
19492
|
static get watchers() { return {
|
|
@@ -19548,7 +19659,7 @@ class ToggleButton {
|
|
|
19548
19659
|
render() {
|
|
19549
19660
|
const { accessibleLabel, checked, disabled, fullWidth, iconPlacement, monochrome, label, loading, outline, size, theme, tooltipPlacement, variant, } = this;
|
|
19550
19661
|
const iconVariant = variant === "icon";
|
|
19551
|
-
return (hAsync(Host, { key: '
|
|
19662
|
+
return (hAsync(Host, { key: 'd61a2411c44e043dbc0d3adfdd4ef4c041c752b4', class: {
|
|
19552
19663
|
"ic-toggle-button-checked": checked,
|
|
19553
19664
|
"ic-toggle-button-disabled": disabled,
|
|
19554
19665
|
"ic-toggle-button-icon": iconVariant,
|
|
@@ -19558,7 +19669,7 @@ class ToggleButton {
|
|
|
19558
19669
|
"ic-toggle-button-hide-outline": !outline,
|
|
19559
19670
|
[`ic-toggle-button-${size}`]: true,
|
|
19560
19671
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19561
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '
|
|
19672
|
+
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: 'a19e19a0cfbf6abe36aed52470e753c4410360dd', "aria-pressed": `${checked}`, variant: iconVariant ? "icon-tertiary" : "secondary", onClick: this.handleClick, title: accessibleLabel, "aria-label": `${accessibleLabel ? accessibleLabel : label}, ${checked ? "ticked" : "unticked"}`, disabled: disabled, size: size, fullWidth: fullWidth, loading: loading, tooltipPlacement: tooltipPlacement }, !iconVariant && label, hAsync("slot", { key: 'be68b5556f38f43be5b8e5dee4533550be5271e9' }), isSlotUsed(this.el, "icon") && (hAsync("slot", { key: '1adacf752187c44bb6b16ee3464e57b626893048', name: "icon", slot: `${iconPlacement}-icon` })), isSlotUsed(this.el, "badge") && (hAsync("slot", { key: '2507afeda1b98c00a3801c8deddfb3f8c8c01a65', name: "badge", slot: "badge" })))));
|
|
19562
19673
|
}
|
|
19563
19674
|
static get delegatesFocus() { return true; }
|
|
19564
19675
|
get el() { return getElement(this); }
|
|
@@ -19838,14 +19949,14 @@ class ToggleButtonGroup {
|
|
|
19838
19949
|
}
|
|
19839
19950
|
render() {
|
|
19840
19951
|
const { accessibleLabel, disabled, fullWidth, loading, monochrome, outline, theme, } = this;
|
|
19841
|
-
return (hAsync(Host, { key: '
|
|
19952
|
+
return (hAsync(Host, { key: '5c8877eaeec66fb0cc9fbcd5ba593fc86bd2b5f2', role: "group", "aria-label": accessibleLabel, tabindex: disabled ? -1 : 0, class: {
|
|
19842
19953
|
"ic-toggle-button-group-disabled": disabled,
|
|
19843
19954
|
"ic-toggle-button-group-full-width": fullWidth,
|
|
19844
19955
|
"ic-toggle-button-group-loading": loading,
|
|
19845
19956
|
"ic-toggle-button-group-monochrome": monochrome,
|
|
19846
19957
|
"ic-toggle-button-group-hide-outline": !outline,
|
|
19847
19958
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19848
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
|
19959
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: 'f701ba436d48cd8d33abe55a252b4dd40455b67a' })));
|
|
19849
19960
|
}
|
|
19850
19961
|
get el() { return getElement(this); }
|
|
19851
19962
|
static get watchers() { return {
|
|
@@ -19887,7 +19998,7 @@ class ToggleButtonGroup {
|
|
|
19887
19998
|
}; }
|
|
19888
19999
|
}
|
|
19889
20000
|
|
|
19890
|
-
const icTooltipCss = "/*! 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(.ic-tooltip){width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;--ic-tooltip-background:var(--ic-color-background-primary-dark);--ic-tooltip-text:var(--ic-color-text-primary-dark);--ic-tooltip-border:var(--ic-color-border-neutral-grey-light)}:host(.ic-tooltip) .ic-tooltip-container{background-color:var(--ic-tooltip-background);text-align:center;padding:var(--ic-space-xxxs) var(--ic-space-xs);border-radius:var(--ic-border-radius);border:var(--ic-border-width) solid var(--ic-tooltip-border);position:absolute;max-width:20rem;display:none;z-index:var(--ic-z-index-tooltip);box-shadow:var(--ic-elevation-overlay);width:-moz-max-content;width:max-content}:host(.ic-tooltip) ic-typography{--ic-typography-color:var(--ic-tooltip-text)}:host(.tooltip-navigation-item:not(.tooltip-navigation-item-side-nav-collapsed)) .ic-tooltip-container,:host(.tooltip-disabled) .ic-tooltip-container{display:none !important}:host(.tooltip-long-label-navigation-item-side-nav-expanded) .ic-tooltip-container[data-show]{display:block !important}:host(.ic-tooltip) .ic-tooltip-arrow,:host(.ic-tooltip) .ic-tooltip-arrow::before{position:absolute;background:inherit}:host(.ic-tooltip) .ic-tooltip-arrow{visibility:hidden;width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-tooltip) .ic-tooltip-arrow::before{visibility:visible;content:\"\";border:var(--ic-border-width) solid var(--ic-tooltip-border);width:100%;height:100%}:host(.ic-tooltip) .ic-tooltip-container[data-show]{display:block}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"top\"]>.ic-tooltip-arrow{height:var(--ic-space-xxxs)}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"top\"]>.ic-tooltip-arrow::before{border-radius:0 0 var(--ic-border-radius) var(--ic-border-radius);left:0;top:var(--ic-space-xxxs);border-top:0;transform:translateX(var(--tooltip-arrow-translate))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"bottom\"]>.ic-tooltip-arrow{top:calc(-1 * var(--ic-space-xxs));height:var(--ic-space-xxxs)}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"bottom\"]>.ic-tooltip-arrow::before{border-radius:var(--ic-border-radius) var(--ic-border-radius) 0 0;left:0;top:var(--ic-space-1px);border-bottom:0;transform:translateX(var(--tooltip-arrow-translate))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"left\"]>.ic-tooltip-arrow{width:var(--ic-space-xxxs);right:calc(-1 * var(--ic-space-1px))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"left\"]>.ic-tooltip-arrow::before{border-radius:0 var(--ic-border-radius) var(--ic-border-radius) 0;border-left:0;top:calc(-1 * var(--ic-space-1px))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"right\"]>.ic-tooltip-arrow{width:var(--ic-space-xxxs);left:calc(-1 * var(--ic-space-xxs))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"right\"]>.ic-tooltip-arrow::before{border-radius:var(--ic-border-radius) 0 0 var(--ic-border-radius);border-right:0;top:calc(-1 * var(--ic-space-1px))}:host(.ic-tooltip-
|
|
20001
|
+
const icTooltipCss = "/*! 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(.ic-tooltip){width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;--ic-tooltip-background:var(--ic-color-background-primary-dark);--ic-tooltip-text:var(--ic-color-text-primary-dark);--ic-tooltip-border:var(--ic-color-border-neutral-grey-light)}:host(.ic-tooltip) .ic-tooltip-container{background-color:var(--ic-tooltip-background);text-align:center;padding:var(--ic-space-xxxs) var(--ic-space-xs);border-radius:var(--ic-border-radius);border:var(--ic-border-width) solid var(--ic-tooltip-border);position:absolute;max-width:20rem;display:none;z-index:var(--ic-z-index-tooltip);box-shadow:var(--ic-elevation-overlay);width:-moz-max-content;width:max-content}:host(.ic-tooltip) ic-typography{--ic-typography-color:var(--ic-tooltip-text)}:host(.tooltip-navigation-item:not(.tooltip-navigation-item-side-nav-collapsed)) .ic-tooltip-container,:host(.tooltip-disabled) .ic-tooltip-container{display:none !important}:host(.tooltip-long-label-navigation-item-side-nav-expanded) .ic-tooltip-container[data-show]{display:block !important}:host(.ic-tooltip) .ic-tooltip-arrow,:host(.ic-tooltip) .ic-tooltip-arrow::before{position:absolute;background:inherit}:host(.ic-tooltip) .ic-tooltip-arrow{visibility:hidden;width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-tooltip) .ic-tooltip-arrow::before{visibility:visible;content:\"\";border:var(--ic-border-width) solid var(--ic-tooltip-border);width:100%;height:100%}:host(.ic-tooltip) .ic-tooltip-container[data-show]{display:block}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"top\"]>.ic-tooltip-arrow{height:var(--ic-space-xxxs)}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"top\"]>.ic-tooltip-arrow::before{border-radius:0 0 var(--ic-border-radius) var(--ic-border-radius);left:0;top:var(--ic-space-xxxs);border-top:0;transform:translateX(var(--tooltip-arrow-translate))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"bottom\"]>.ic-tooltip-arrow{top:calc(-1 * var(--ic-space-xxs));height:var(--ic-space-xxxs)}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"bottom\"]>.ic-tooltip-arrow::before{border-radius:var(--ic-border-radius) var(--ic-border-radius) 0 0;left:0;top:var(--ic-space-1px);border-bottom:0;transform:translateX(var(--tooltip-arrow-translate))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"left\"]>.ic-tooltip-arrow{width:var(--ic-space-xxxs);right:calc(-1 * var(--ic-space-1px))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"left\"]>.ic-tooltip-arrow::before{border-radius:0 var(--ic-border-radius) var(--ic-border-radius) 0;border-left:0;top:calc(-1 * var(--ic-space-1px))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"right\"]>.ic-tooltip-arrow{width:var(--ic-space-xxxs);left:calc(-1 * var(--ic-space-xxs))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"right\"]>.ic-tooltip-arrow::before{border-radius:var(--ic-border-radius) 0 0 var(--ic-border-radius);border-right:0;top:calc(-1 * var(--ic-space-1px))}:host(.ic-tooltip-in-container){display:inline-block}@media screen and (max-width: 576px){:host(.ic-tooltip) .ic-tooltip-container{max-width:18.875rem}}@media (forced-colors: active){:host(.ic-tooltip) .ic-tooltip-container,:host(.ic-tooltip) .ic-tooltip-arrow::before{border:var(--ic-border-hc)}}";
|
|
19891
20002
|
var IcTooltipStyle0 = icTooltipCss;
|
|
19892
20003
|
|
|
19893
20004
|
class Tooltip {
|
|
@@ -19930,8 +20041,8 @@ class Tooltip {
|
|
|
19930
20041
|
this.show = () => {
|
|
19931
20042
|
if (this.label) {
|
|
19932
20043
|
this.toolTip.setAttribute("data-show", "");
|
|
19933
|
-
if (this.
|
|
19934
|
-
this.el.classList.add("ic-tooltip-
|
|
20044
|
+
if (this.containerContentArea) {
|
|
20045
|
+
this.el.classList.add("ic-tooltip-in-container");
|
|
19935
20046
|
}
|
|
19936
20047
|
this.popperInstance = createPopper(this.el, this.toolTip, Object.assign({ strategy: this.fixedPositioning ? "fixed" : "absolute", placement: this.placement, modifiers: [
|
|
19937
20048
|
{
|
|
@@ -19950,19 +20061,19 @@ class Tooltip {
|
|
|
19950
20061
|
name: "eventListeners",
|
|
19951
20062
|
options: { scroll: false, resize: false },
|
|
19952
20063
|
},
|
|
19953
|
-
...(this.
|
|
20064
|
+
...(this.containerContentArea
|
|
19954
20065
|
? [
|
|
19955
20066
|
{
|
|
19956
20067
|
name: "preventOverflow",
|
|
19957
20068
|
options: {
|
|
19958
|
-
boundary: this.
|
|
20069
|
+
boundary: this.containerContentArea,
|
|
19959
20070
|
padding: 8,
|
|
19960
20071
|
},
|
|
19961
20072
|
},
|
|
19962
20073
|
{
|
|
19963
20074
|
name: "flip",
|
|
19964
20075
|
options: {
|
|
19965
|
-
boundary: this.
|
|
20076
|
+
boundary: this.containerContentArea,
|
|
19966
20077
|
},
|
|
19967
20078
|
},
|
|
19968
20079
|
]
|
|
@@ -20068,15 +20179,16 @@ class Tooltip {
|
|
|
20068
20179
|
componentDidLoad() {
|
|
20069
20180
|
var _a, _b;
|
|
20070
20181
|
this.manageEventListeners("add");
|
|
20071
|
-
|
|
20182
|
+
// Display tooltips correctly within drawer and dialog components
|
|
20183
|
+
let container;
|
|
20072
20184
|
if (this.el.getRootNode().host) {
|
|
20073
|
-
|
|
20185
|
+
container = this.el.getRootNode().host.closest("ic-dialog, ic-drawer");
|
|
20074
20186
|
}
|
|
20075
20187
|
else {
|
|
20076
|
-
|
|
20188
|
+
container = this.el.closest("ic-dialog, ic-drawer");
|
|
20077
20189
|
}
|
|
20078
|
-
this.
|
|
20079
|
-
(_b = (_a =
|
|
20190
|
+
this.containerContentArea =
|
|
20191
|
+
(_b = (_a = container === null || container === void 0 ? void 0 : container.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".content-area")) !== null && _b !== void 0 ? _b : null;
|
|
20080
20192
|
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Tooltip");
|
|
20081
20193
|
}
|
|
20082
20194
|
componentDidRender() {
|
|
@@ -20103,10 +20215,10 @@ class Tooltip {
|
|
|
20103
20215
|
}
|
|
20104
20216
|
render() {
|
|
20105
20217
|
const { label, maxLines, silent, theme } = this;
|
|
20106
|
-
return (hAsync(Host, { key: '
|
|
20218
|
+
return (hAsync(Host, { key: '3a57831b80c59ddef6785c1f840ecfd974081de9', class: {
|
|
20107
20219
|
"ic-tooltip": true,
|
|
20108
20220
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
20109
|
-
}, "aria-label": isSafari && label }, hAsync("div", { key: '
|
|
20221
|
+
}, "aria-label": isSafari && label }, hAsync("div", { key: '03a49bde1864792bc994c18fbc7c05d1f872746b', ref: (el) => (this.toolTip = el), role: "tooltip", class: "ic-tooltip-container", "aria-hidden": `${silent}` }, hAsync("ic-typography", { key: '5188c9d83e230efc0d78df9abd1951597b3a108a', maxLines: maxLines, variant: "caption" }, label), hAsync("div", { key: '8f94c1568e3635817f7079f105ae7e38b65960aa', ref: (el) => (this.arrow = el), class: "ic-tooltip-arrow" })), hAsync("slot", { key: '242ee30597606f704984b8ee9f7445406849b964' })));
|
|
20110
20222
|
}
|
|
20111
20223
|
get el() { return getElement(this); }
|
|
20112
20224
|
static get watchers() { return {
|
|
@@ -20356,16 +20468,19 @@ class TopNavigation {
|
|
|
20356
20468
|
const attrs = Component == "a" && {
|
|
20357
20469
|
href: href,
|
|
20358
20470
|
};
|
|
20359
|
-
return (hAsync(Host, { key: '
|
|
20471
|
+
return (hAsync(Host, { key: 'c0c457a694891bb06ad49c6601fb57d83e6ac6c6', class: {
|
|
20360
20472
|
"fullwidth-searchbar": hasFullWidthSearchBar,
|
|
20361
20473
|
"mobile-mode": overMobileBreakpoint,
|
|
20362
20474
|
[IcBrandForegroundEnum.Dark]: foregroundColor === IcBrandForegroundEnum.Dark,
|
|
20363
20475
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
20364
|
-
} }, hAsync("div", { key: '
|
|
20476
|
+
} }, hAsync("div", { key: 'fd5f04cfce660e81024b45ebee521d73d42a448d', class: "top-navigation" }, hAsync("ic-section-container", { key: '028947110e4a66cccc58659ca164b2938cd7e533', aligned: contentAligned, "full-height": true }, hAsync("header", { key: 'f528842ca7c9fe6a127e53cf7ea0c5af9aeebe79', role: "banner" }, hAsync("div", { key: 'e23371a5539f686060f624053e8b04a2cef1f860', class: "top-panel-container" }, hAsync("div", { key: '25ede4b34cb30ba1d25d3fb06a3f44e48ad4a4c9', class: "app-details-container" }, (hasTitle || hasAppTitleSlot) && (hAsync(Component, Object.assign({ key: '666eddef4b8be110a1796083432cd754cda18152', class: "title-link" }, attrs), hasAppIcon && (hAsync("div", { key: 'cb7c5cdf6ccc28c5dc5d7699e0332770aa5246f9', class: "app-icon-container" }, hAsync("slot", { key: 'cd21e969e6fd23594aeb2b31468e81d1d68de7f7', name: "app-icon" }))), isSmallDeviceSize &&
|
|
20365
20477
|
(!isEmptyString(shortAppTitle) || shortAppTitleSlot) ? (hAsync("ic-typography", { variant: "subtitle-small", "aria-label": (!hasAppTitleSlot || !shortAppTitleSlot) &&
|
|
20366
|
-
`${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: '
|
|
20478
|
+
`${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: '938a6e6d13bfd92a87baf43934342fb426802d65', class: "app-status" }, hAsync("ic-typography", { key: 'e3e8e83984ead5be2e4869e67640762af42f5f32', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), hasVersion && (hAsync("div", { key: '1129e504a1db3af56d2c931e08bd15f992b5721f', class: "app-version" }, hAsync("ic-typography", { key: 'c6f56458fc5f565055fdb0bde408e6078216d51b', variant: "label", class: "app-version-text", "aria-label": "app version" }, version)))), (hasSearchSlotContent || hasMenuContent) && (hAsync("div", { key: '4523603a02eeb22eca466afc1d2cfa44755b8f17', class: "search-menu-container" }, hAsync("div", { key: '77ff191542abaa41c8610418d54922e91268d364', class: "search-actions-container" }, !overMobileBreakpoint ? (hAsync(Fragment, null, hAsync("slot", { name: "search" }), hasIconButtons && (hAsync("div", { class: "icon-buttons-container" }, hAsync("slot", { name: "buttons" }))))) : (hAsync(Fragment, null, hasSearchSlotContent && (hAsync("ic-button", { 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", { name: "toggle-icon" }, hAsync("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#ffffff" }, hAsync("path", { d: "M0 0h24v24H0V0z", fill: "none" }), hAsync("path", { 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" }))))), hasMenuContent && (hAsync("div", { class: "menu-button-container" }, hAsync("span", { id: "navigation-landmark-button-text", class: "navigation-landmark-button-text", "aria-hidden": "true" }, "Main navigation button"), hAsync("nav", { "aria-labelledby": "navigation-landmark-button-text", "aria-hidden": `${navMenuVisible}` }, hAsync("ic-button", { id: "menu-button", ref: (el) => (this.menuButtonEl = el), 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", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#ffffff", slot: "left-icon" }, hAsync("path", { d: "M0 0h24v24H0V0z", fill: "none" }), hAsync("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })))))))))))), mobileSearchBarVisible && (hAsync("div", { key: 'e18aab12917ebdfead1c16c9d508c7feaf7797cb', class: "search-bar-container" }, hAsync("slot", { key: '4bf9ae342c58629ea76dc7de395128afd695dc8b', name: "search" }))), hasNavigation && !overMobileBreakpoint && (hAsync("div", { key: '30401c56949e21a33b18166da0ba2b07ad91c3f0', class: "navigation-tabs" }, hAsync("span", { key: '72561ee2554f09e0ff33b29fb257e7dde0a99a0f', id: "navigation-landmark-text", class: "navigation-landmark-text", "aria-hidden": "true" }, "Main pages"), hAsync("nav", { key: '411b215af2ef320d415af6e189a60dce1b730cdf', "aria-labelledby": "navigation-landmark-text", class: "nav-panel-container" }, hAsync("ic-horizontal-scroll", { key: 'fac1019061aeaea2ea8197cc0100a23f0cd1a69d',
|
|
20479
|
+
// eslint-disable-next-line
|
|
20480
|
+
// @ts-ignore
|
|
20481
|
+
monochrome: true, appearance: foregroundColor }, hAsync("ul", { key: 'b85234906c34f1fa03b56903656d6f18eb20829d', class: "navigation-item-list", tabindex: "-1" }, hAsync("slot", { key: 'd8ef04882230955d8faba63b13edffeeb969e6e6', name: "navigation" }))))))))), navMenuVisible && (hAsync("ic-navigation-menu", { key: '46b00abe99e079c940d24d4e9693c5445ebcbafa', version: version, status: status, class: {
|
|
20367
20482
|
inline,
|
|
20368
|
-
} }, hasIconButtons && (hAsync("div", { key: '
|
|
20483
|
+
} }, hasIconButtons && (hAsync("div", { key: '29a9b4e6ba1733b2e96ad9b886bb879ade662d41', class: "menu-buttons-slot", slot: "buttons" }, hAsync("slot", { key: '748b40fd29aedee029a4fa27e999cf9844483613', name: "buttons" }))), hAsync("ul", { key: '20b81216ba0c01470673678a14d873fe8cbcaaae', slot: "navigation" }, hAsync("slot", { key: 'fb9e239a48344888b970e865e103b1ee2f9156ed', name: "navigation" }))))));
|
|
20369
20484
|
}
|
|
20370
20485
|
get el() { return getElement(this); }
|
|
20371
20486
|
static get watchers() { return {
|
|
@@ -20568,7 +20683,7 @@ class Typography {
|
|
|
20568
20683
|
render() {
|
|
20569
20684
|
var _a, _b;
|
|
20570
20685
|
const { variant, applyVerticalMargins, maxLines, truncated, expanded, strikethrough, underline, italic, bold, theme, } = this;
|
|
20571
|
-
return (hAsync(Host, { key: '
|
|
20686
|
+
return (hAsync(Host, { key: '9628fbe7b5d9c10f640fe189fe454c332e1f6011', class: {
|
|
20572
20687
|
[`ic-typography-${variant}`]: true,
|
|
20573
20688
|
[`ic-typography-vertical-margins-${variant}`]: !!applyVerticalMargins,
|
|
20574
20689
|
["ic-typography-bold"]: !!bold,
|
|
@@ -20581,7 +20696,7 @@ class Typography {
|
|
|
20581
20696
|
((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===
|
|
20582
20697
|
"IC-TOOLTIP") &&
|
|
20583
20698
|
maxLines &&
|
|
20584
|
-
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: '
|
|
20699
|
+
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: 'e66a10144ba334ab8b2530e2cf666634ce335717', class: { "trunc-btn": true, focus: this.truncButtonFocussed }, onFocus: this.truncButtonFocus, onBlur: this.truncButtonBlur, onMouseDown: this.truncButtonFocusFromMouse, onClick: this.toggleExpanded }, expanded ? "See less" : "See more"))));
|
|
20585
20700
|
}
|
|
20586
20701
|
get el() { return getElement(this); }
|
|
20587
20702
|
static get watchers() { return {
|