@ukic/web-components 3.19.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/{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 +5 -5
- package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- 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-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 +6 -6
- 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-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 +7 -7
- 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/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-chip/ic-chip.js +3 -3
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +2 -2
- package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
- package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
- package/dist/collection/components/ic-dialog/ic-dialog.js +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 +3 -3
- 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 +4 -4
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.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 +5 -5
- 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 +5 -5
- 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 +3 -3
- package/dist/components/ic-classification-banner.js +2 -2
- package/dist/components/ic-data-list.js +2 -2
- 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 +4 -4
- 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-page-header.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination.js +4 -4
- package/dist/components/ic-pagination.js.map +1 -1
- package/dist/components/ic-popover-menu.js +4 -4
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +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-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 +6 -6
- 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/index.esm.js +1 -1
- package/dist/core/{p-7552c8a1.entry.js → p-0301d1c8.entry.js} +2 -2
- package/dist/core/{p-bb3a5130.entry.js → p-0722d7b6.entry.js} +2 -2
- package/dist/core/{p-43356493.entry.js → p-09c31ac6.entry.js} +2 -2
- package/dist/core/{p-5e1a77aa.entry.js → p-0d711c6a.entry.js} +2 -2
- package/dist/core/{p-ad6632a9.entry.js → p-0f6fd5d3.entry.js} +2 -2
- package/dist/core/{p-296a41ce.entry.js → p-0f998905.entry.js} +2 -2
- package/dist/core/{p-8798cc6b.entry.js → p-107281c4.entry.js} +2 -2
- package/dist/core/{p-b00efb15.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-4637c326.entry.js → p-1fc4b88f.entry.js} +2 -2
- package/dist/core/{p-a8dc3162.entry.js → p-23dc27a8.entry.js} +2 -2
- package/dist/core/{p-af02add9.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-44aaf454.entry.js → p-3c7e90a7.entry.js} +2 -2
- package/dist/core/p-45076d7e.entry.js +2 -0
- package/dist/core/{p-70e1dd4d.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-52fa3eec.entry.js → p-57ce68e5.entry.js} +2 -2
- package/dist/core/{p-c4ffcc64.entry.js → p-5ac3adb9.entry.js} +2 -2
- package/dist/core/{p-fb43abd6.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-9452b9ac.entry.js → p-656a9127.entry.js} +2 -2
- package/dist/core/{p-a86785dd.entry.js → p-6740c915.entry.js} +2 -2
- package/dist/core/{p-28c9a6e4.entry.js → p-6aa8d3ce.entry.js} +2 -2
- package/dist/core/{p-72ac8bb9.entry.js → p-72344764.entry.js} +2 -2
- package/dist/core/{p-6fb29846.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-128e2cbb.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-287e5c17.entry.js → p-889bb8db.entry.js} +2 -2
- package/dist/core/{p-4fa7fbc4.entry.js → p-8b1567c9.entry.js} +2 -2
- package/dist/core/p-8b1567c9.entry.js.map +1 -0
- package/dist/core/{p-bfd03fb4.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-5cf704e3.entry.js → p-90814d32.entry.js} +2 -2
- package/dist/core/{p-6e8ef73c.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-614953c5.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-012e058a.entry.js → p-a16415e4.entry.js} +3 -3
- package/dist/core/{p-0eafbaa1.entry.js → p-ad5aca6f.entry.js} +2 -2
- package/dist/core/{p-bdda404b.entry.js → p-aed1c7e7.entry.js} +2 -2
- package/dist/core/{p-34cc376c.entry.js → p-b22fc28d.entry.js} +2 -2
- package/dist/core/{p-44fbe8c2.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-f4e2e41f.entry.js → p-ba4abeac.entry.js} +2 -2
- package/dist/core/{p-6b6c1491.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-21efc36e.entry.js → p-cf056074.entry.js} +2 -2
- package/dist/core/{p-539b975f.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-dfc2a0b1.entry.js → p-e176881a.entry.js} +2 -2
- package/dist/core/{p-d8200098.entry.js → p-e1814e7e.entry.js} +2 -2
- package/dist/core/{p-06b3ae40.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-3b13d191.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-a7645717.entry.js → p-fdb587ab.entry.js} +2 -2
- package/dist/core/{p-091a7fbf.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/{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 +5 -5
- package/dist/esm/ic-classification-banner.entry.js +2 -2
- package/dist/esm/ic-data-list.entry.js +2 -2
- 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-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 +6 -6
- 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-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 +7 -7
- package/dist/esm/ic-typography.entry.js +4 -4
- package/dist/esm/index.js +1 -1
- package/dist/types/components/ic-accordion-group/ic-accordion-group.d.ts +1 -0
- package/dist/types/components/ic-dialog/ic-dialog.d.ts +2 -15
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +1 -1
- 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 +396 -320
- package/hydrate/index.mjs +396 -320
- package/package.json +2 -2
- package/dist/cjs/constants-3a9ba64a.js.map +0 -1
- package/dist/cjs/helpers-15fae358.js.map +0 -1
- package/dist/core/p-0257d59e.entry.js +0 -2
- package/dist/core/p-0257d59e.entry.js.map +0 -1
- package/dist/core/p-4fa7fbc4.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-ae861bb8.entry.js +0 -2
- package/dist/core/p-bddf799a.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-7552c8a1.entry.js.map → p-0301d1c8.entry.js.map} +0 -0
- /package/dist/core/{p-bb3a5130.entry.js.map → p-0722d7b6.entry.js.map} +0 -0
- /package/dist/core/{p-43356493.entry.js.map → p-09c31ac6.entry.js.map} +0 -0
- /package/dist/core/{p-5e1a77aa.entry.js.map → p-0d711c6a.entry.js.map} +0 -0
- /package/dist/core/{p-ad6632a9.entry.js.map → p-0f6fd5d3.entry.js.map} +0 -0
- /package/dist/core/{p-296a41ce.entry.js.map → p-0f998905.entry.js.map} +0 -0
- /package/dist/core/{p-8798cc6b.entry.js.map → p-107281c4.entry.js.map} +0 -0
- /package/dist/core/{p-b00efb15.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-4637c326.entry.js.map → p-1fc4b88f.entry.js.map} +0 -0
- /package/dist/core/{p-a8dc3162.entry.js.map → p-23dc27a8.entry.js.map} +0 -0
- /package/dist/core/{p-af02add9.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-44aaf454.entry.js.map → p-3c7e90a7.entry.js.map} +0 -0
- /package/dist/core/{p-ae861bb8.entry.js.map → p-45076d7e.entry.js.map} +0 -0
- /package/dist/core/{p-70e1dd4d.entry.js.map → p-45c553db.entry.js.map} +0 -0
- /package/dist/core/{p-52fa3eec.entry.js.map → p-57ce68e5.entry.js.map} +0 -0
- /package/dist/core/{p-c4ffcc64.entry.js.map → p-5ac3adb9.entry.js.map} +0 -0
- /package/dist/core/{p-fb43abd6.entry.js.map → p-608b4912.entry.js.map} +0 -0
- /package/dist/core/{p-9452b9ac.entry.js.map → p-656a9127.entry.js.map} +0 -0
- /package/dist/core/{p-a86785dd.entry.js.map → p-6740c915.entry.js.map} +0 -0
- /package/dist/core/{p-28c9a6e4.entry.js.map → p-6aa8d3ce.entry.js.map} +0 -0
- /package/dist/core/{p-72ac8bb9.entry.js.map → p-72344764.entry.js.map} +0 -0
- /package/dist/core/{p-6fb29846.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-128e2cbb.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-287e5c17.entry.js.map → p-889bb8db.entry.js.map} +0 -0
- /package/dist/core/{p-bfd03fb4.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-5cf704e3.entry.js.map → p-90814d32.entry.js.map} +0 -0
- /package/dist/core/{p-6e8ef73c.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-614953c5.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-012e058a.entry.js.map → p-a16415e4.entry.js.map} +0 -0
- /package/dist/core/{p-0eafbaa1.entry.js.map → p-ad5aca6f.entry.js.map} +0 -0
- /package/dist/core/{p-bdda404b.entry.js.map → p-aed1c7e7.entry.js.map} +0 -0
- /package/dist/core/{p-34cc376c.entry.js.map → p-b22fc28d.entry.js.map} +0 -0
- /package/dist/core/{p-44fbe8c2.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-f4e2e41f.entry.js.map → p-ba4abeac.entry.js.map} +0 -0
- /package/dist/core/{p-6b6c1491.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-21efc36e.entry.js.map → p-cf056074.entry.js.map} +0 -0
- /package/dist/core/{p-539b975f.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-dfc2a0b1.entry.js.map → p-e176881a.entry.js.map} +0 -0
- /package/dist/core/{p-d8200098.entry.js.map → p-e1814e7e.entry.js.map} +0 -0
- /package/dist/core/{p-06b3ae40.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-3b13d191.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-a7645717.entry.js.map → p-fdb587ab.entry.js.map} +0 -0
- /package/dist/core/{p-091a7fbf.entry.js.map → p-fe0153ec.entry.js.map} +0 -0
|
@@ -154,7 +154,7 @@ export class Badge {
|
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
156
|
const { ariaLabel, el, foregroundColour, getLabel, position, size, label, type, variant, visible, theme, } = this;
|
|
157
|
-
return (h(Host, { key: '
|
|
157
|
+
return (h(Host, { key: '80362128f0009037af8ecb10ddbe465ed847044b', class: {
|
|
158
158
|
[`ic-badge-${position}`]: true,
|
|
159
159
|
[`ic-badge-${size}`]: true,
|
|
160
160
|
[`ic-badge-${variant}`]: true,
|
|
@@ -162,7 +162,7 @@ export class Badge {
|
|
|
162
162
|
[`ic-badge-foreground-${foregroundColour}`]: foregroundColour !== null && variant === "custom",
|
|
163
163
|
[`${visible ? "ic-badge-show" : "ic-badge-hide"}`]: true,
|
|
164
164
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
165
|
-
}, id: el.id || null, "aria-label": ariaLabel, role: "status" }, type === "icon" && h("slot", { key: '
|
|
165
|
+
}, id: el.id || null, "aria-label": ariaLabel, role: "status" }, type === "icon" && h("slot", { key: '4df4a2ab27b18a2247bc047d940b16378451e8ae', name: "badge-icon" }), type === "text" && label && (h("ic-typography", { key: '56b2205ae5e36f5af3e60f0b76866c696d06eb7a', variant: size === "small" ? "badge-small" : "badge" }, getLabel())), type === "dot" && h("span", { key: '3a12c77ef89a454564358588908b31b69e04f500', class: "sr-only" }, "badge")));
|
|
166
166
|
}
|
|
167
167
|
static get is() { return "ic-badge"; }
|
|
168
168
|
static get encapsulation() { return "shadow"; }
|
|
@@ -88,12 +88,12 @@ export class Breadcrumb {
|
|
|
88
88
|
render() {
|
|
89
89
|
const { current, href, monochrome, pageTitle, showBackIcon, theme } = this;
|
|
90
90
|
const describedById = `${pageTitle === null || pageTitle === void 0 ? void 0 : pageTitle.toLowerCase().replace(" ", "-")}-describedby`;
|
|
91
|
-
return (h(Host, { key: '
|
|
91
|
+
return (h(Host, { key: 'a7096975249f31144ffd6cd3c4cf6953169118ee', class: {
|
|
92
92
|
"ic-breadcrumb-back": showBackIcon,
|
|
93
93
|
"ic-breadcrumb-monochrome": monochrome,
|
|
94
94
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
95
95
|
[`ic-breadcrumb-aria-current-page`]: current,
|
|
96
|
-
}, "aria-current": current && "page", role: "listitem" }, h("div", { key: '
|
|
96
|
+
}, "aria-current": current && "page", role: "listitem" }, h("div", { key: '8b8254900371f6888fcbf7c9ef800acdb6804dfb', class: "breadcrumb" }, h("span", { key: '1a0159b54b3f432098ba881c6563eaf563916872', innerHTML: chevronIcon, class: "chevron", "aria-hidden": "true" }), showBackIcon && (h("span", { key: '512f88714836b57162c1920cbea4eb1203f7573b', id: describedById, class: "hide" }, `Back to ${pageTitle}`)), !href ? (h("div", { class: "slotted-link-container" }, showBackIcon && this.renderBackIcon(), h("span", { class: "link-wrapper" }, h("slot", null)))) : current ? (h("span", { class: "current-page-container" }, isSlotUsed(this.el, "icon") && h("slot", { name: "icon" }), pageTitle)) : (h("ic-link", { theme: theme, monochrome: monochrome, href: href, class: "breadcrumb-link", "aria-describedby": showBackIcon && describedById }, showBackIcon && this.renderBackIcon(), isSlotUsed(this.el, "icon") && h("slot", { name: "icon" }), pageTitle)))));
|
|
97
97
|
}
|
|
98
98
|
static get is() { return "ic-breadcrumb"; }
|
|
99
99
|
static get encapsulation() { return "shadow"; }
|
|
@@ -212,11 +212,11 @@ export class BreadcrumbGroup {
|
|
|
212
212
|
}
|
|
213
213
|
render() {
|
|
214
214
|
const { backBreadcrumbOnly, collapsed, theme } = this;
|
|
215
|
-
return (h(Host, { key: '
|
|
215
|
+
return (h(Host, { key: '6bee18e1a84707b5d493149d23094af6a0fb1be8', class: {
|
|
216
216
|
"ic-breadcrumb-group-back": backBreadcrumbOnly,
|
|
217
217
|
"ic-breadcrumb-group-collapsed": collapsed,
|
|
218
218
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
219
|
-
} }, h("nav", { key: '
|
|
219
|
+
} }, h("nav", { key: '144ad11cead96e18ae62eba8fc2dead82e188854', "aria-label": "breadcrumbs" }, h("ol", { key: 'c101766f5e9b0e5d9a5aaebd5d0d8eda63ffc9ea' }, h("slot", { key: 'c761cdbb01472d0d8c2550254063b59fa714f722' })))));
|
|
220
220
|
}
|
|
221
221
|
static get is() { return "ic-breadcrumb-group"; }
|
|
222
222
|
static get encapsulation() { return "shadow"; }
|
|
@@ -398,7 +398,7 @@ export class Button {
|
|
|
398
398
|
variant !== "destructive" && (h("span", { class: dropdownExpanded
|
|
399
399
|
? "dropdown-expanded"
|
|
400
400
|
: "arrow-dropdown", innerHTML: arrowDropdown }))))));
|
|
401
|
-
return (h(Host, { key: '
|
|
401
|
+
return (h(Host, { key: '9af3124fa3bb001b9b744b4df20d0e107f865df1', class: {
|
|
402
402
|
"ic-button-disabled": disabled && !loading,
|
|
403
403
|
"ic-button-full-width": fullWidth,
|
|
404
404
|
"ic-button-loading": loading,
|
|
@@ -414,7 +414,7 @@ export class Button {
|
|
|
414
414
|
monochrome,
|
|
415
415
|
"top-icon": isSlotUsed(this.el, "top-icon"),
|
|
416
416
|
"with-badge": isSlotUsed(this.el, "badge"),
|
|
417
|
-
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (h("ic-tooltip", { key: '
|
|
417
|
+
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (h("ic-tooltip", { key: '533f8aac9579f16eaae0a167a683f7c42973de95', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, fixedPositioning: tooltipFixedPositioning, silent: isIconVariant() && !!ariaLabel }, h(ButtonContent, { key: '67502a4253722031847e36ae3275ca48c7d01bd4' }))), isSlotUsed(this.el, "badge") && h("slot", { key: 'e4e5081c6f415f0447ae43398fd11fcf51a426f3', name: "badge" }), !hasTooltip && h(ButtonContent, { key: '5185de2240ddaddbc0bb35bdab51bc63e91492a5' })));
|
|
418
418
|
}
|
|
419
419
|
static get is() { return "ic-button"; }
|
|
420
420
|
static get encapsulation() { return "shadow"; }
|
|
@@ -150,19 +150,19 @@ export class CardVertical {
|
|
|
150
150
|
rel: rel,
|
|
151
151
|
target: target,
|
|
152
152
|
};
|
|
153
|
-
return (h(Host, { key: '
|
|
153
|
+
return (h(Host, { key: 'a5c7d234492dc72ab0ce06bc64646982b9b0c765', class: {
|
|
154
154
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
155
|
-
} }, h(Component, Object.assign({ key: '
|
|
155
|
+
} }, h(Component, Object.assign({ key: '7878c6c421216eaffda8034f38711156dd920e41', class: {
|
|
156
156
|
card: true,
|
|
157
157
|
clickable: !!clickable && !disabled,
|
|
158
158
|
disabled: !!disabled,
|
|
159
159
|
fullwidth: !!fullWidth,
|
|
160
160
|
focussed: isFocussed,
|
|
161
161
|
monochrome: monochrome,
|
|
162
|
-
}, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, "aria-disabled": disabled ? "true" : null, disabled: disabled }, attrs), isSlotUsed(this.el, "image-top") && (h("div", { key: '
|
|
162
|
+
}, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, "aria-disabled": disabled ? "true" : null, disabled: disabled }, attrs), isSlotUsed(this.el, "image-top") && (h("div", { key: '32fc034396f14d12845c12ad9cfc4c00b75c0970', class: "image-top" }, h("slot", { key: 'd2f682bfd7e961d43aa37fc14b1f1ce875cfd9e4', name: "image-top" }))), h("div", { key: '315d6f3c97119e41228be4c1057f2c8e28c2e627', class: "card-header" }, isSlotUsed(this.el, "icon") && (h("div", { key: '304744f27ecdd26136c52bdf6a0623ccf16c8ccb', class: "icon" }, h("slot", { key: 'a186a14d094c999cc72b9ca8d0580c9c81ef5e5a', name: "icon" }))), h("div", { key: '4d52fd26c94603c39bdc7d03dd185d9147ec35d6', class: "card-title" }, h("slot", { key: 'e99c3b5b04bc8e4e0ad712ac221183e42472d1e4', name: "heading" }, h("ic-typography", { key: '7de9265a3bccf8ddeda0a5da115739dab6e7f4e3', variant: "h4" }, h("p", { key: '52ad60554c859fcba6960f892210b11afe2c8412' }, heading)))), isSlotUsed(this.el, "interaction-button") && (h("div", { key: 'bd177fd6ead82c2d826a90c9bc36baf4d9650822', class: "interaction-button" }, h("slot", { key: '50200586d93b445f084acdc44fe783362c61ad1c', name: "interaction-button" })))), (subheading || isSlotUsed(this.el, "subheading")) && (h("div", { key: '4084d3cdbcbfba517874846f00c6a75973911b46', class: "subheading" }, h("slot", { key: '83ecdcca1ae25ded22c2b48631ca719b219c670f', name: "subheading" }, h("ic-typography", { key: '6cc1e94ba4ecaeb37c0b01a177bf51ce56431406', variant: "subtitle-small" }, subheading)))), isSlotUsed(this.el, "adornment") && (h("div", { key: '5b2e821691a30048fa7598ea5e7f4da245539644', class: "adornment" }, h("slot", { key: '9955b70349039dd954ee03c66f27684225ad2161', name: "adornment" }))), isSlotUsed(this.el, "image-mid") && (h("div", { key: '1a44edd306c3a8a9f8b9d07d3f92bad346b8d9c2', class: "image-mid" }, h("slot", { key: '79c16a0c673bc92c420159b4908e7c2881c58fc0', name: "image-mid" }))), (message || isSlotUsed(this.el, "message")) && (h("div", { key: '11468fd0d9784ad303bae66a6c7b9a7e6fcd2fdb', class: "card-message" }, message && (h("ic-typography", { key: '4795147360d9862d329b7aa23b2d5d9d3501ff21', variant: "body" }, message)), isSlotUsed(this.el, "message") && h("slot", { key: '2e5c82f6cc32ab92e46d4531f5f646bb15b8bb8a', name: "message" }))), (isSlotUsed(this.el, "interaction-controls") || expandable) && (h("div", { key: '0d1f66f5387c89bdb9b6be46636f6b092fd3b977', class: "interaction-area" }, h("div", { key: '9afed7575316981e6e696d58469f56746fdd78e3', class: "interaction-controls" }, h("slot", { key: 'f218de86f75106aab7b2a7c3b81b303a813cfcc3', name: "interaction-controls" })), expandable && (h("ic-tooltip", { key: '29ccf36efd77a936dd35fef1cc304f5ffdde47ea', id: "ic-tooltip-expand-button", label: "Toggle expandable area", silent: true }, h("button", { key: 'e25088479cfa1519d8ac728505138fb2730b0400', class: {
|
|
163
163
|
"toggle-button": true,
|
|
164
164
|
[`toggle-button-${this.areaExpanded ? "expanded" : "closed"}`]: true,
|
|
165
|
-
}, "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 && (h("div", { key: '
|
|
165
|
+
}, "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 && (h("div", { key: '710a390ddcfd6464509e31a8bdc12213180a8e69', class: "expanded-content", id: "expanded-content-area" }, h("slot", { key: 'd315e1d72d612b75a04460d6a33a66a7f84f39c8', name: "expanded-content" }))), isSlotUsed(this.el, "badge") && h("slot", { key: '93bad888a177ab13ae50ea4d86fa6fd2c4ae01f7', name: "badge" }))));
|
|
166
166
|
}
|
|
167
167
|
static get is() { return "ic-card-vertical"; }
|
|
168
168
|
static get encapsulation() { return "shadow"; }
|
|
@@ -130,17 +130,17 @@ export class Checkbox {
|
|
|
130
130
|
? renderHiddenInput(el, value, name, disabled)
|
|
131
131
|
: removeHiddenInput(el);
|
|
132
132
|
const LabelContent = () => this.hasLabelSlot() ? (h("slot", { name: "label" })) : (h("ic-typography", { class: "checkbox-label", variant: "body" }, h("label", { htmlFor: inputId }, label)));
|
|
133
|
-
return (h(Host, { key: '
|
|
133
|
+
return (h(Host, { key: '7554612ca8fba3490ff568295eea1bfab40707a9', class: {
|
|
134
134
|
"ic-checkbox-disabled": disabled,
|
|
135
135
|
[`ic-checkbox-${size}`]: !!size,
|
|
136
136
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
137
|
-
} }, h("div", { key: '
|
|
137
|
+
} }, h("div", { key: '858b6c8812f827d1805ae6aea8a02760ddaef38a', class: "container" }, displayIndeterminate ? (h("div", { class: "indeterminate-symbol" })) : (checked && (h("svg", { class: "checkmark", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "fill-rule": "evenodd", "clip-rule": "evenodd" }, h("title", null, "checkmark icon"), h("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" })))), h("input", { key: '1b2729f5f417f5fbea44639369b5ad23f7c937e8', role: "checkbox", class: {
|
|
138
138
|
checkbox: true,
|
|
139
139
|
checked,
|
|
140
140
|
indeterminate: displayIndeterminate,
|
|
141
|
-
}, 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 && h(LabelContent, { key: '
|
|
141
|
+
}, 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 && h(LabelContent, { key: '62bdb97c7d1dd473236dd5a9b294aaf1eb6e01c7' })), h("span", { key: '3d798c60b58dfcb3cf907569094e84a09e5e291c', id: `${inputId}-additional-field-description`, role: "alert", class: "sr-only" }, isDynamicAdditionalField && checked ? dynamicText : ""), isSlotUsed(el, "additional-field") && (h("div", { key: 'a8276e2dcd983bee6547ac802de050348263ca9b', class: "dynamic-container", ref: (el) => (this.additionalFieldContainer = el) }, isDynamicAdditionalField && h("div", { key: '9235762858b354b09bbdf956c5a2041041162f77', class: "branch-corner" }), h("div", { key: 'cb92bb94e296830a3132f752b0c7689671275383', class: "dynamic-field-container" }, isDynamicAdditionalField && (h("ic-typography", { key: '318cdd04a078d79aa98138a664e60ee308799f43', variant: "caption" }, h("p", { key: 'ce5182b3ca908fc98ca9303d014d0c05f0bf3c0b', class: "dynamic-text" }, isDynamicAdditionalField && checked ? dynamicText : ""))), h("div", { key: '352457e47762a12c320dc7df9635fa38bbc0d675', class: {
|
|
142
142
|
"additional-field-wrapper": !isDynamicAdditionalField,
|
|
143
|
-
} }, h("slot", { key: '
|
|
143
|
+
} }, h("slot", { key: '1d9225d692fbe869375109c97c9ec479be89e69f', name: "additional-field" })))))));
|
|
144
144
|
}
|
|
145
145
|
static get is() { return "ic-checkbox"; }
|
|
146
146
|
static get encapsulation() { return "shadow"; }
|
|
@@ -118,11 +118,11 @@ export class CheckboxGroup {
|
|
|
118
118
|
const describedBy = getInputDescribedByText(this.el, name, helperText !== "", validationStatus !== "");
|
|
119
119
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
|
120
120
|
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: '862a97d086caec6a36b54a83d7dc73cab51ec26e', class: {
|
|
122
122
|
"ic-checkbox-group-disabled": !!disabled,
|
|
123
123
|
[`ic-checkbox-group-${size}`]: true,
|
|
124
124
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
125
|
-
} }, renderSRText && (h("span", { key: '
|
|
125
|
+
} }, renderSRText && (h("span", { key: '2099c60d533ff668ad2e3770bbe487182ba5c8c3', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), h("fieldset", { key: '43ab035620d2c0a7b9325b3441fa51e1dac77e3a', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (h("legend", { key: '3bff3341981e4f02aa73a21abee555be9f8aa863' }, h("ic-input-label", { key: '949a4b31d5021b96870fcf63c595d06b4a84baf5', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }, h("slot", { key: '90ae6ee756ee2415828ac81ebcc5e84a80999c5d', name: "helper-text", slot: "helper-text" })))), h("div", { key: '7bf7695658a85157da695af6e8fb6a9b8be276e3', class: "checkboxes-container" }, h("slot", { key: '30d42a9d6cc00ac71280f88e462cb851d79ef61e' }))), h("ic-input-validation", { key: '44a98a0c788e457319d44421328fcb59ab8e9244', class: {
|
|
126
126
|
"show-validation": showValidation,
|
|
127
127
|
}, for: name, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
|
128
128
|
}
|
|
@@ -95,12 +95,12 @@ export class Chip {
|
|
|
95
95
|
render() {
|
|
96
96
|
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, fullWidth, } = this;
|
|
97
97
|
const ariaLabel = `${label} chip`;
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: 'a340090512aafa664e16a6537cb7d8dc2fe84b29', class: {
|
|
99
99
|
"ic-chip-dismissed": !visible,
|
|
100
100
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
101
101
|
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
|
102
102
|
"ic-chip-full-width": fullWidth,
|
|
103
|
-
} }, visible && (h("div", { key: '
|
|
103
|
+
} }, visible && (h("div", { key: '174e895e50479492d85f8a2d9871450f37d47997', class: {
|
|
104
104
|
chip: true,
|
|
105
105
|
[`${variant}`]: true,
|
|
106
106
|
[`${size}`]: true,
|
|
@@ -109,7 +109,7 @@ export class Chip {
|
|
|
109
109
|
hovered,
|
|
110
110
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
|
111
111
|
"full-width": fullWidth,
|
|
112
|
-
} }, isSlotUsed(this.el, "icon") && (h("div", { key: '
|
|
112
|
+
} }, isSlotUsed(this.el, "icon") && (h("div", { key: '3d12f1e7c932cd91f0835f3fe7c76ec6784bc44f', class: "icon" }, h("slot", { key: '5307ba63af7c7342cf32072ccebf02788265e0f5', name: "icon" }))), h("ic-typography", { key: '71a528ad758c4a09dbe1bfa879f4ca0b4a9177b7', variant: "label", "apply-vertical-margins": false, class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, h("span", { key: '85e3af35df8a3f2243bc0b36130a6238b6c6200d' }, label)), dismissible && (h("ic-tooltip", { key: '6d68a771210b186192f7f4486d578a1cb706dda9', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, h("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") && h("slot", { key: '4a2bf278717384d8d7a1c830788520a385feb638', name: "badge" }))), dismissible && (h("div", { key: '55bd826c4bd73c42d24a7a1aa1cdc52fd3a00d59', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
|
|
113
113
|
}
|
|
114
114
|
static get is() { return "ic-chip"; }
|
|
115
115
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,10 +40,10 @@ export class ClassificationBanner {
|
|
|
40
40
|
if (!classification ||
|
|
41
41
|
(classification && !classificationText[classification]))
|
|
42
42
|
classification = "default";
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: '4d06c781318ef854931702315e73054f65b85259', class: { ["ic-classification-banner-inline"]: !!inline } }, h("banner", { key: '251f6ced1270c823b1be9e39375139756adcd3e2', "aria-label": "Protective marking", class: {
|
|
44
44
|
["classification-banner"]: true,
|
|
45
45
|
[`${classification}`]: classification,
|
|
46
|
-
} }, classification !== "default" ? (h("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, h("ic-typography", { key: '
|
|
46
|
+
} }, classification !== "default" ? (h("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, h("ic-typography", { key: '3fd3a609c017ed0b5b24296464bae43dcf8cba67', variant: "caption-uppercase" }, classification === "default"
|
|
47
47
|
? classificationText[classification]
|
|
48
48
|
: `${upTo ? "up to" : ""}
|
|
49
49
|
${country}
|
|
@@ -19,10 +19,10 @@ export class DataList {
|
|
|
19
19
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
|
20
20
|
}
|
|
21
21
|
const hasHeading = heading || el.querySelector('[slot="heading"]');
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '1c611db796f79fc54af3a89e4b7ed0439e09f8ce', class: {
|
|
23
23
|
"ic-data-list-small": size === "small",
|
|
24
24
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
25
|
-
} }, h("div", { key: '
|
|
25
|
+
} }, h("div", { key: '5936cad1baba390f150bb72a2ef5b0ee7eaf5750', class: "heading", id: "data-list-heading" }, h("slot", { key: '2d0080f2848355022ea118f8ef2f78cafb584bf3', name: "heading" }, h("ic-typography", { key: 'dee1629146c3e50998552ae3c814eee17bc196c5', variant: "h3" }, heading))), h("div", { key: 'bb1c6bf91cfcd71205acd3d15b504057d3fd566f', class: { divider: true, "divider-no-heading": !hasHeading } }), h("ul", { key: '838380d006c00c28fb309aef1f57ab3bd8534102', "aria-labelledby": "data-list-heading", class: "rows" }, h("slot", { key: '6f84ce3a6716791113f5288a17c3a9a2416552d9' }))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "ic-data-list"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -68,12 +68,12 @@ export class DataRow {
|
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
70
|
const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
|
|
71
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: '720dc55ba7e1000ce6837a15d9d7accc726cc1ff', class: {
|
|
72
72
|
["ic-data-row-small"]: size === "small",
|
|
73
73
|
["breakpoint-medium"]: listSize === "m",
|
|
74
74
|
["breakpoint-xs"]: listSize === "xs",
|
|
75
75
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
76
|
-
}, role: "listitem" }, h("div", { key: '
|
|
76
|
+
}, role: "listitem" }, h("div", { key: '28e63fbb09ad16bcc6843a85047635e91006a220', class: "data" }, h("div", { key: '698f607af4b50db1bc837d83df0f46ee9cc4201f', class: "text-cells" }, (isSlotUsed(el, "label") || label) && renderCellContent("label"), (isSlotUsed(el, "value") || value) && renderCellContent("value")), hasEndComponent && (h("div", { key: '1febd59bc77239e0cedcc64953c0a5d2b4bbba6d', class: "end-component" }, h("slot", { key: 'dfa67b2ff598520d1b3f47a1479e4448aa84986f', name: "end-component" })))), h("div", { key: '989733a9cf32e8d452c4c2d4ae24844c7d38ece2', class: "divider" })));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "ic-data-row"; }
|
|
79
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Host, h, Fragment, } from "@stencil/core";
|
|
2
2
|
import closeIcon from "../../assets/close-icon.svg";
|
|
3
|
-
import { isSlotUsed, checkResizeObserver, onComponentRequiredPropUndefined,
|
|
3
|
+
import { isSlotUsed, checkResizeObserver, focusElement, handleFocusTrapTabKeyPress, onComponentRequiredPropUndefined, refreshInteractiveElementsOnSlotChange, slottedInteractiveElements, } from "../../utils/helpers";
|
|
4
4
|
/**
|
|
5
5
|
* @slot dialog-controls - Content will be place at the bottom of the dialog.
|
|
6
6
|
* @slot heading - Content will be placed at the top of the dialog.
|
|
@@ -13,16 +13,10 @@ export class Dialog {
|
|
|
13
13
|
this.DATA_GETS_FOCUS = "data-gets-focus";
|
|
14
14
|
this.DIALOG_CONTROLS = "dialog-controls";
|
|
15
15
|
this.dialogHeight = 0;
|
|
16
|
+
this.focusAttemptCount = 0;
|
|
16
17
|
this.focusedElementIndex = 0;
|
|
17
|
-
this.IC_TEXT_FIELD = "IC-TEXT-FIELD";
|
|
18
|
-
this.IC_ACCORDION = "IC-ACCORDION";
|
|
19
|
-
this.IC_ACCORDION_GROUP = "IC-ACCORDION-GROUP";
|
|
20
|
-
this.IC_CHECKBOX = "IC-CHECKBOX";
|
|
21
|
-
this.IC_SEARCH_BAR = "IC-SEARCH-BAR";
|
|
22
|
-
this.IC_TAB_CONTEXT = "IC-TAB-CONTEXT";
|
|
23
18
|
this.interactiveElementList = [];
|
|
24
19
|
this.resizeObserver = null;
|
|
25
|
-
this.focusAttemptCount = 0;
|
|
26
20
|
this.dialogRendered = false;
|
|
27
21
|
this.fadeIn = false;
|
|
28
22
|
/**
|
|
@@ -113,26 +107,6 @@ export class Dialog {
|
|
|
113
107
|
this.dialogHeight = this.dialogEl.clientHeight;
|
|
114
108
|
}
|
|
115
109
|
};
|
|
116
|
-
this.refreshInteractiveElementsOnSlotChange = () => {
|
|
117
|
-
var _a, _b, _c;
|
|
118
|
-
const contentWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("#dialog-content");
|
|
119
|
-
if (contentWrapper) {
|
|
120
|
-
this.contentArea = contentWrapper.querySelector("slot");
|
|
121
|
-
// Detect changes to slotted elements
|
|
122
|
-
(_b = this.contentArea) === null || _b === void 0 ? void 0 : _b.addEventListener("slotchange", this.getInteractiveElements);
|
|
123
|
-
this.contentAreaMutationObserver = new MutationObserver(() => {
|
|
124
|
-
this.getInteractiveElements();
|
|
125
|
-
});
|
|
126
|
-
// Detect changes to children of slotted elements
|
|
127
|
-
(_c = getSlotElements(contentWrapper)) === null || _c === void 0 ? void 0 : _c.forEach((el) => {
|
|
128
|
-
var _a;
|
|
129
|
-
(_a = this.contentAreaMutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, {
|
|
130
|
-
childList: true,
|
|
131
|
-
subtree: true,
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
110
|
this.removeSlotChangeListener = () => {
|
|
137
111
|
var _a;
|
|
138
112
|
if (this.contentArea) {
|
|
@@ -140,6 +114,15 @@ export class Dialog {
|
|
|
140
114
|
(_a = this.contentAreaMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
141
115
|
}
|
|
142
116
|
};
|
|
117
|
+
this.setContentAreaMutationObserver = () => {
|
|
118
|
+
var _a;
|
|
119
|
+
const contentWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("#dialog-content");
|
|
120
|
+
if (contentWrapper) {
|
|
121
|
+
const { contentAreaSlot, contentAreaMutationObserver } = refreshInteractiveElementsOnSlotChange(contentWrapper || null, this.getInteractiveElements);
|
|
122
|
+
this.contentArea = contentAreaSlot;
|
|
123
|
+
this.contentAreaMutationObserver = contentAreaMutationObserver;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
143
126
|
this.setInitialFocus = () => {
|
|
144
127
|
this.sourceElement = document.activeElement;
|
|
145
128
|
if (!this.interactiveElementList.length) {
|
|
@@ -156,17 +139,11 @@ export class Dialog {
|
|
|
156
139
|
if (this.focusedElementIndex === -1) {
|
|
157
140
|
this.focusedElementIndex = 0;
|
|
158
141
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
this.getFocusedElementIndex = () => {
|
|
165
|
-
var _a;
|
|
166
|
-
for (let i = 0; i < this.interactiveElementList.length; i++) {
|
|
167
|
-
if (this.interactiveElementList[i] ===
|
|
168
|
-
(((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.activeElement) || document.activeElement)) {
|
|
169
|
-
this.focusedElementIndex = i;
|
|
142
|
+
if (this.interactiveElementList[this.focusedElementIndex]) {
|
|
143
|
+
const focusElementResult = focusElement(this.focusAttemptCount, this.focusedElementIndex, this.interactiveElementList);
|
|
144
|
+
if (focusElementResult) {
|
|
145
|
+
this.focusAttemptCount = focusElementResult.newFocusAttemptCount;
|
|
146
|
+
this.focusedElementIndex = focusElementResult.newFocusedElementIndex;
|
|
170
147
|
}
|
|
171
148
|
}
|
|
172
149
|
};
|
|
@@ -176,76 +153,17 @@ export class Dialog {
|
|
|
176
153
|
this.getInteractiveElements = () => {
|
|
177
154
|
var _a;
|
|
178
155
|
this.interactiveElementList = Array.from(((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll("ic-button")) || []);
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
if (slottedInteractiveElements.length > 0) {
|
|
184
|
-
if (slottedInteractiveElements[0].slot !== this.DIALOG_CONTROLS) {
|
|
185
|
-
slottedInteractiveElements[0].setAttribute(this.DATA_GETS_FOCUS, "");
|
|
156
|
+
const interactiveElements = slottedInteractiveElements(this.el);
|
|
157
|
+
if (interactiveElements.length > 0) {
|
|
158
|
+
if (interactiveElements[0].slot !== this.DIALOG_CONTROLS) {
|
|
159
|
+
interactiveElements[0].setAttribute(this.DATA_GETS_FOCUS, "");
|
|
186
160
|
}
|
|
187
161
|
else if (!this.destructive) {
|
|
188
|
-
|
|
162
|
+
interactiveElements[interactiveElements.length - 1].setAttribute(this.DATA_GETS_FOCUS, "");
|
|
189
163
|
}
|
|
190
164
|
}
|
|
191
|
-
for (let i = 0; i <
|
|
192
|
-
this.interactiveElementList.splice(1 + i, 0,
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
this.getNextFocusEl = (focusedElementIndex) => this.interactiveElementList[focusedElementIndex];
|
|
196
|
-
this.onTabKeyPress = (shiftKey) => {
|
|
197
|
-
var _a;
|
|
198
|
-
this.getFocusedElementIndex();
|
|
199
|
-
if (((_a = this.interactiveElementList[this.focusedElementIndex]) === null || _a === void 0 ? void 0 : _a.tagName) ===
|
|
200
|
-
this.IC_SEARCH_BAR) {
|
|
201
|
-
return false;
|
|
202
|
-
}
|
|
203
|
-
this.setFocusIndexBasedOnShiftKey(shiftKey);
|
|
204
|
-
this.loopNextFocusIndexIfLastElement();
|
|
205
|
-
this.focusAttemptCount = 0;
|
|
206
|
-
this.focusElement(this.getNextFocusEl(this.focusedElementIndex), shiftKey);
|
|
207
|
-
return true;
|
|
208
|
-
};
|
|
209
|
-
this.shouldSkipElement = (element) => {
|
|
210
|
-
if (!element) {
|
|
211
|
-
return true;
|
|
212
|
-
}
|
|
213
|
-
const isHidden = getComputedStyle(element).visibility === "hidden" ||
|
|
214
|
-
element.offsetHeight === 0 ||
|
|
215
|
-
element.hasAttribute("disabled") ||
|
|
216
|
-
(element.tagName === this.IC_ACCORDION_GROUP &&
|
|
217
|
-
element.hasAttribute("single-expansion"));
|
|
218
|
-
const radioEl = element.closest("ic-radio-option");
|
|
219
|
-
return (isHidden ||
|
|
220
|
-
(element.getAttribute("type") === "radio" &&
|
|
221
|
-
!!radioEl &&
|
|
222
|
-
!(radioEl.hasAttribute("selected") || element.tabIndex === 0)));
|
|
223
|
-
};
|
|
224
|
-
this.focusElement = (element, shiftKey = false) => {
|
|
225
|
-
if (!element) {
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
if (this.focusAttemptCount++ > this.interactiveElementList.length) {
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
|
-
if (this.shouldSkipElement(element)) {
|
|
232
|
-
this.setFocusIndexBasedOnShiftKey(shiftKey);
|
|
233
|
-
this.loopNextFocusIndexIfLastElement();
|
|
234
|
-
this.focusElement(this.getNextFocusEl(this.focusedElementIndex), shiftKey);
|
|
235
|
-
}
|
|
236
|
-
else {
|
|
237
|
-
switch (element.tagName) {
|
|
238
|
-
case this.IC_ACCORDION_GROUP:
|
|
239
|
-
case this.IC_ACCORDION:
|
|
240
|
-
case this.IC_SEARCH_BAR:
|
|
241
|
-
case this.IC_TEXT_FIELD:
|
|
242
|
-
case this.IC_CHECKBOX:
|
|
243
|
-
case this.IC_TAB_CONTEXT:
|
|
244
|
-
element.setFocus();
|
|
245
|
-
break;
|
|
246
|
-
default:
|
|
247
|
-
element.focus();
|
|
248
|
-
}
|
|
165
|
+
for (let i = 0; i < interactiveElements.length; i++) {
|
|
166
|
+
this.interactiveElementList.splice(1 + i, 0, interactiveElements[i]);
|
|
249
167
|
}
|
|
250
168
|
};
|
|
251
169
|
this.renderDialog = () => {
|
|
@@ -286,7 +204,7 @@ export class Dialog {
|
|
|
286
204
|
this.removeSlotChangeListener();
|
|
287
205
|
}
|
|
288
206
|
componentDidLoad() {
|
|
289
|
-
this.
|
|
207
|
+
this.setContentAreaMutationObserver();
|
|
290
208
|
if (this.open) {
|
|
291
209
|
this.dialogOpened();
|
|
292
210
|
}
|
|
@@ -303,11 +221,17 @@ export class Dialog {
|
|
|
303
221
|
handleKeyboard(ev) {
|
|
304
222
|
if (this.dialogRendered) {
|
|
305
223
|
switch (ev.key) {
|
|
306
|
-
case "Tab":
|
|
307
|
-
|
|
224
|
+
case "Tab": {
|
|
225
|
+
const tabKeyPressHandlerResult = handleFocusTrapTabKeyPress(this.el, this.focusAttemptCount, this.focusedElementIndex, this.interactiveElementList, ev.shiftKey);
|
|
226
|
+
this.focusAttemptCount =
|
|
227
|
+
tabKeyPressHandlerResult.newFocusAttemptCount;
|
|
228
|
+
this.focusedElementIndex =
|
|
229
|
+
tabKeyPressHandlerResult.newFocusedElementIndex;
|
|
230
|
+
if (tabKeyPressHandlerResult.preventDefault) {
|
|
308
231
|
ev.preventDefault();
|
|
309
232
|
}
|
|
310
233
|
break;
|
|
234
|
+
}
|
|
311
235
|
case "Escape":
|
|
312
236
|
if (!ev.repeat) {
|
|
313
237
|
this.open = false;
|
|
@@ -344,24 +268,9 @@ export class Dialog {
|
|
|
344
268
|
async confirmDialog() {
|
|
345
269
|
this.icDialogConfirmed.emit();
|
|
346
270
|
}
|
|
347
|
-
loopNextFocusIndexIfLastElement() {
|
|
348
|
-
if (this.focusedElementIndex > this.interactiveElementList.length - 1)
|
|
349
|
-
this.focusedElementIndex = 0;
|
|
350
|
-
else if (this.focusedElementIndex < 0) {
|
|
351
|
-
this.focusedElementIndex = this.interactiveElementList.length - 1;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
setFocusIndexBasedOnShiftKey(shiftKey) {
|
|
355
|
-
if (shiftKey) {
|
|
356
|
-
this.focusedElementIndex -= 1;
|
|
357
|
-
}
|
|
358
|
-
else {
|
|
359
|
-
this.focusedElementIndex += 1;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
271
|
render() {
|
|
363
272
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme, size } = this;
|
|
364
|
-
return (h(Host, { key: '
|
|
273
|
+
return (h(Host, { key: '97f96f655d95bb7192eb44e850f495ed133e7d73', class: {
|
|
365
274
|
"ic-dialog-hidden": !dialogRendered,
|
|
366
275
|
"ic-dialog-fade-in": fadeIn,
|
|
367
276
|
"disable-height-constraint": !!disableHeightConstraint,
|