@ukic/canary-web-components 3.0.0-canary.25 → 3.0.0-canary.27
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/common-helpers-944cb54d.js +21 -0
- package/dist/cjs/common-helpers-944cb54d.js.map +1 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-56717660.js → helpers-046745ee.js} +24 -22
- package/dist/cjs/helpers-046745ee.js.map +1 -0
- package/dist/cjs/helpers-da852478.js.map +1 -1
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-action-chip.cjs.entry.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +2 -2
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +24 -18
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +7 -4
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox_3.cjs.entry.js +41 -28
- package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +6 -5
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +13 -13
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +7 -7
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +6 -4
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +5 -5
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +28 -14
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-layout-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-layout-grid-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-layout-grid.cjs.entry.js +2 -2
- package/dist/cjs/ic-layout-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu.cjs.entry.js +23 -7
- package/dist/cjs/ic-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +52 -37
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +14 -7
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +6 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +10 -10
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +5 -5
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +66 -54
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +20 -3
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +5 -5
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +10 -2
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +1 -1
- package/dist/cjs/ic-table-of-contents.cjs.entry.js +363 -0
- package/dist/cjs/ic-table-of-contents.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-theme.cjs.entry.js +2 -2
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-time-input.cjs.entry.js +11 -11
- package/dist/cjs/ic-time-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +4 -4
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-tree-view.cjs.entry.js +6 -4
- package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +3 -3
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-d337cd8a.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/purify-039f565a.js +1365 -0
- package/dist/cjs/purify-039f565a.js.map +1 -0
- package/dist/collection/assets/error-icon.svg +4 -4
- package/dist/collection/assets/info-icon.svg +4 -4
- package/dist/collection/assets/neutral-icon.svg +4 -4
- package/dist/collection/assets/success-icon.svg +4 -4
- package/dist/collection/assets/warning-icon.svg +4 -4
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -1
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.stories.js.map +1 -1
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.js +12 -13
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.stories.js +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.stories.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +128 -69
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-data-table/test/a11y/ic-data-table.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.stories.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.css +6 -0
- package/dist/collection/components/ic-date-input/ic-date-input.js +6 -6
- package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.stories.js.map +1 -1
- package/dist/collection/components/ic-date-input/story-data.js.map +1 -1
- package/dist/collection/components/ic-date-input/test/helpers/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.stories.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-day-button.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-month-picker.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-year-picker.js.map +1 -1
- package/dist/collection/components/ic-date-picker/story-data.js.map +1 -1
- package/dist/collection/components/ic-date-picker/test/a11y/ic-date-picker.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +44 -25
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.stories.js +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.stories.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/test/a11y/ic-pagination-bar.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents-item.js +28 -0
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents-item.js.map +1 -0
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.css +145 -0
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.js +526 -0
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.js.map +1 -0
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.stories.js +291 -0
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.stories.js.map +1 -0
- package/dist/collection/components/ic-table-of-contents/test/a11y/ic-table-of-contents.test.a11y.js +13 -0
- package/dist/collection/components/ic-table-of-contents/test/a11y/ic-table-of-contents.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-time-input/ic-time-input.css +1 -1
- package/dist/collection/components/ic-time-input/ic-time-input.js +10 -10
- package/dist/collection/components/ic-time-input/ic-time-input.js.map +1 -1
- package/dist/collection/components/ic-time-input/ic-time-input.stories.js.map +1 -1
- package/dist/collection/components/ic-time-input/test/helpers/ic-time-input.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +2 -2
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.js +5 -4
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.types.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/date-helpers.js.map +1 -1
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/testa11y.helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/common-helpers.js +19 -0
- package/dist/components/common-helpers.js.map +1 -0
- package/dist/components/helpers.js +23 -22
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-alert.js +1 -1
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-button2.js +15 -10
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +6 -3
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox2.js +3 -3
- package/dist/components/ic-checkbox2.js.map +1 -1
- package/dist/components/ic-chip.js +5 -4
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-data-list.js +2 -2
- package/dist/components/ic-data-list.js.map +1 -1
- package/dist/components/ic-data-row.js +2 -2
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-data-table.js +12 -13
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input2.js +7 -7
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-dialog.js +5 -3
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-empty-state2.js +2 -2
- package/dist/components/ic-empty-state2.js.map +1 -1
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +1 -1
- package/dist/components/ic-hero.js +4 -4
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +6 -6
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +3 -3
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +2 -2
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +22 -6
- 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-item.js.map +1 -1
- package/dist/components/ic-layout-grid.js +2 -2
- package/dist/components/ic-layout-grid.js.map +1 -1
- package/dist/components/ic-link2.js +1 -1
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +5 -5
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu-group.js.map +1 -1
- package/dist/components/ic-menu2.js +23 -7
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +1 -1
- package/dist/components/ic-navigation-group.js +2 -2
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +1 -1
- package/dist/components/ic-navigation-menu2.js +5 -5
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +35 -22
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination2.js +4 -4
- package/dist/components/ic-pagination2.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 +14 -6
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +5 -5
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +10 -10
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-section-container2.js.map +1 -1
- package/dist/components/ic-select2.js +20 -12
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +5 -5
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-skip-link.js +2 -2
- package/dist/components/ic-skip-link.js.map +1 -1
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +66 -53
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +20 -2
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +4 -4
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +11 -2
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-table-of-contents.d.ts +11 -0
- package/dist/components/ic-table-of-contents.js +408 -0
- package/dist/components/ic-table-of-contents.js.map +1 -0
- package/dist/components/ic-text-field2.js +30 -21
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +2 -2
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-time-input.js +11 -11
- package/dist/components/ic-time-input.js.map +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +4 -4
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +3 -3
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +6 -4
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +1 -1
- package/dist/components/ic-tree-item.js +2 -2
- package/dist/components/ic-tree-view.js +5 -4
- package/dist/components/ic-tree-view.js.map +1 -1
- package/dist/components/ic-typography2.js +2 -2
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/components/purify.js +1363 -0
- package/dist/components/purify.js.map +1 -0
- package/dist/core/core.css +32 -4
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-d47e200c.entry.js → p-05e0cadf.entry.js} +2 -2
- package/dist/core/{p-8051e61b.entry.js → p-07365d6f.entry.js} +2 -2
- package/dist/core/{p-51e2de77.entry.js → p-0b0cc10d.entry.js} +2 -2
- package/dist/core/{p-51e2de77.entry.js.map → p-0b0cc10d.entry.js.map} +1 -1
- package/dist/core/{p-c067e62c.entry.js → p-0e882f70.entry.js} +2 -2
- package/dist/core/{p-588a331f.entry.js → p-0ec0be8d.entry.js} +2 -2
- package/dist/core/{p-588a331f.entry.js.map → p-0ec0be8d.entry.js.map} +1 -1
- package/dist/core/p-0f22f41e.js.map +1 -1
- package/dist/core/{p-d41b0da0.entry.js → p-182883cb.entry.js} +2 -2
- package/dist/core/{p-d41b0da0.entry.js.map → p-182883cb.entry.js.map} +1 -1
- package/dist/core/{p-364cc350.entry.js → p-18b793e0.entry.js} +2 -2
- package/dist/core/p-1d89fcda.entry.js +2 -0
- package/dist/core/p-1d89fcda.entry.js.map +1 -0
- package/dist/core/{p-0fad83d8.entry.js → p-266d5e13.entry.js} +2 -2
- package/dist/core/{p-0fad83d8.entry.js.map → p-266d5e13.entry.js.map} +1 -1
- package/dist/core/p-2bba11f8.entry.js +2 -0
- package/dist/core/p-2bba11f8.entry.js.map +1 -0
- package/dist/core/{p-43285eeb.entry.js → p-2f0ab1d0.entry.js} +2 -2
- package/dist/core/{p-43285eeb.entry.js.map → p-2f0ab1d0.entry.js.map} +1 -1
- package/dist/core/p-349d91dc.js +3 -0
- package/dist/core/p-349d91dc.js.map +1 -0
- package/dist/core/p-35bff926.entry.js +2 -0
- package/dist/core/p-35bff926.entry.js.map +1 -0
- package/dist/core/{p-287e5c17.entry.js → p-37d217b5.entry.js} +2 -2
- package/dist/core/{p-287e5c17.entry.js.map → p-37d217b5.entry.js.map} +1 -1
- package/dist/core/{p-df88ff5b.entry.js → p-37daa8fe.entry.js} +2 -2
- package/dist/core/{p-df88ff5b.entry.js.map → p-37daa8fe.entry.js.map} +1 -1
- package/dist/core/{p-45dd12ee.entry.js → p-4747c39f.entry.js} +2 -2
- package/dist/core/p-4747c39f.entry.js.map +1 -0
- package/dist/core/p-479e5fa2.entry.js +2 -0
- package/dist/core/p-479e5fa2.entry.js.map +1 -0
- package/dist/core/{p-ffac41d6.entry.js → p-492fcb51.entry.js} +2 -2
- package/dist/core/{p-ffac41d6.entry.js.map → p-492fcb51.entry.js.map} +1 -1
- package/dist/core/p-542ac498.js +2 -0
- package/dist/core/p-542ac498.js.map +1 -0
- package/dist/core/{p-9863a070.entry.js → p-54da2d5f.entry.js} +2 -2
- package/dist/core/{p-4bddb866.entry.js → p-553531bf.entry.js} +2 -2
- package/dist/core/{p-4bddb866.entry.js.map → p-553531bf.entry.js.map} +1 -1
- package/dist/core/{p-6e8ef73c.entry.js → p-57721431.entry.js} +2 -2
- package/dist/core/{p-6e8ef73c.entry.js.map → p-57721431.entry.js.map} +1 -1
- package/dist/core/{p-f7d746d7.entry.js → p-5d6290bb.entry.js} +2 -2
- package/dist/core/p-5d6290bb.entry.js.map +1 -0
- package/dist/core/{p-5fbc8e62.entry.js → p-5fcfcfb6.entry.js} +2 -2
- package/dist/core/{p-5fbc8e62.entry.js.map → p-5fcfcfb6.entry.js.map} +1 -1
- package/dist/core/{p-608a8a4d.entry.js → p-656b92d7.entry.js} +2 -2
- package/dist/core/{p-59048c2a.entry.js → p-6addd986.entry.js} +2 -2
- package/dist/core/p-6addd986.entry.js.map +1 -0
- package/dist/core/p-6d2fa004.entry.js +2 -0
- package/dist/core/p-6d2fa004.entry.js.map +1 -0
- package/dist/core/{p-fecef807.entry.js → p-6d4418e4.entry.js} +2 -2
- package/dist/core/{p-b87e4485.entry.js → p-6e5fc63c.entry.js} +2 -2
- package/dist/core/{p-66ae9eb3.entry.js → p-70447473.entry.js} +2 -2
- package/dist/core/{p-66ae9eb3.entry.js.map → p-70447473.entry.js.map} +1 -1
- package/dist/core/{p-aa94c4b0.entry.js → p-77c4d1d2.entry.js} +2 -2
- package/dist/core/{p-aa94c4b0.entry.js.map → p-77c4d1d2.entry.js.map} +1 -1
- package/dist/core/{p-fb8c47ce.entry.js → p-796b9ac5.entry.js} +2 -2
- package/dist/core/{p-fb8c47ce.entry.js.map → p-796b9ac5.entry.js.map} +1 -1
- package/dist/core/{p-3f241d71.entry.js → p-7986db4a.entry.js} +2 -2
- package/dist/core/{p-3f241d71.entry.js.map → p-7986db4a.entry.js.map} +1 -1
- package/dist/core/p-7bb3531c.entry.js +2 -0
- package/dist/core/p-7bb3531c.entry.js.map +1 -0
- package/dist/core/p-8a5ae4ab.entry.js +2 -0
- package/dist/core/p-8a5ae4ab.entry.js.map +1 -0
- package/dist/core/{p-2fe31f66.entry.js → p-8b4a7a78.entry.js} +2 -2
- package/dist/core/{p-2fe31f66.entry.js.map → p-8b4a7a78.entry.js.map} +1 -1
- package/dist/core/{p-f517f412.entry.js → p-8c841dc8.entry.js} +2 -2
- package/dist/core/{p-d7217588.entry.js → p-94e5ed81.entry.js} +2 -2
- package/dist/core/{p-d7217588.entry.js.map → p-94e5ed81.entry.js.map} +1 -1
- package/dist/core/{p-ea061ccf.entry.js → p-9a8bcb78.entry.js} +2 -2
- package/dist/core/{p-ea061ccf.entry.js.map → p-9a8bcb78.entry.js.map} +1 -1
- package/dist/core/p-9af5008c.entry.js +2 -0
- package/dist/core/{p-20374e30.entry.js.map → p-9af5008c.entry.js.map} +1 -1
- package/dist/core/{p-9fffb01e.entry.js → p-9b68bee6.entry.js} +2 -2
- package/dist/core/{p-8b5022bc.entry.js → p-9cf6ccfd.entry.js} +2 -2
- package/dist/core/{p-8b5022bc.entry.js.map → p-9cf6ccfd.entry.js.map} +1 -1
- package/dist/core/p-9fa329f2.entry.js +2 -0
- package/dist/core/p-9fa329f2.entry.js.map +1 -0
- package/dist/core/p-a422b778.js +2 -0
- package/dist/core/p-a422b778.js.map +1 -0
- package/dist/core/{p-9fe5e2eb.entry.js → p-a7a572d9.entry.js} +2 -2
- package/dist/core/p-a86756fa.entry.js +2 -0
- package/dist/core/p-a86756fa.entry.js.map +1 -0
- package/dist/core/{p-145c0245.entry.js → p-ac2f8cc8.entry.js} +2 -2
- package/dist/core/{p-145c0245.entry.js.map → p-ac2f8cc8.entry.js.map} +1 -1
- package/dist/core/{p-1a5efa3e.entry.js → p-b10f5992.entry.js} +2 -2
- package/dist/core/p-b2b5d4fa.entry.js +2 -0
- package/dist/core/p-b2b5d4fa.entry.js.map +1 -0
- package/dist/core/{p-999f0a5d.entry.js → p-b4a2f6fa.entry.js} +2 -2
- package/dist/core/{p-999f0a5d.entry.js.map → p-b4a2f6fa.entry.js.map} +1 -1
- package/dist/core/p-b7a726fb.entry.js +2 -0
- package/dist/core/p-b7a726fb.entry.js.map +1 -0
- package/dist/core/{p-cb4522ed.entry.js → p-ba26a1f0.entry.js} +2 -2
- package/dist/core/{p-c3fe54ab.entry.js → p-bad17ba7.entry.js} +2 -2
- package/dist/core/{p-c3fe54ab.entry.js.map → p-bad17ba7.entry.js.map} +1 -1
- package/dist/core/{p-812a0246.entry.js → p-bf08d34c.entry.js} +2 -2
- package/dist/core/{p-31d6d587.entry.js → p-bf5558ac.entry.js} +2 -2
- package/dist/core/p-bf5558ac.entry.js.map +1 -0
- package/dist/core/{p-40743d97.entry.js → p-c1ae14ad.entry.js} +2 -2
- package/dist/core/{p-40743d97.entry.js.map → p-c1ae14ad.entry.js.map} +1 -1
- package/dist/core/p-c9953122.entry.js +2 -0
- package/dist/core/p-c9953122.entry.js.map +1 -0
- package/dist/core/p-d4a1e90d.entry.js +2 -0
- package/dist/core/p-d4a1e90d.entry.js.map +1 -0
- package/dist/core/{p-5c7c7205.entry.js → p-d77981a5.entry.js} +2 -2
- package/dist/core/{p-518a8e87.entry.js → p-e0abd214.entry.js} +2 -2
- package/dist/core/p-e0abd214.entry.js.map +1 -0
- package/dist/core/{p-b8938f93.entry.js → p-e4f1d72b.entry.js} +2 -2
- package/dist/core/{p-5976d13e.entry.js → p-e8cea1d5.entry.js} +2 -2
- package/dist/core/{p-5976d13e.entry.js.map → p-e8cea1d5.entry.js.map} +1 -1
- package/dist/core/{p-b93e8ecb.entry.js → p-f591abc2.entry.js} +2 -2
- package/dist/core/p-f6209622.entry.js +2 -0
- package/dist/core/p-f6209622.entry.js.map +1 -0
- package/dist/core/p-f7b1d6bf.entry.js +2 -0
- package/dist/core/p-f7b1d6bf.entry.js.map +1 -0
- package/dist/core/{p-e543f2e7.entry.js → p-fba9f5b6.entry.js} +2 -2
- package/dist/core/{p-e543f2e7.entry.js.map → p-fba9f5b6.entry.js.map} +1 -1
- package/dist/core/{p-d13a066e.entry.js → p-ff4a873e.entry.js} +2 -2
- package/dist/core/{p-d13a066e.entry.js.map → p-ff4a873e.entry.js.map} +1 -1
- package/dist/esm/common-helpers-86c07ff1.js +19 -0
- package/dist/esm/common-helpers-86c07ff1.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-f3928d01.js → helpers-1dbd527e.js} +24 -23
- package/dist/esm/helpers-1dbd527e.js.map +1 -0
- package/dist/esm/helpers-89cb996d.js.map +1 -1
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-action-chip.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js +2 -2
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +24 -18
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +7 -4
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox_3.entry.js +41 -28
- package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +6 -5
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +3 -3
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-data-table.entry.js +13 -13
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +7 -7
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +6 -4
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +3 -3
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js +5 -5
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_4.entry.js +28 -14
- package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
- package/dist/esm/ic-layout-grid-item.entry.js +2 -2
- package/dist/esm/ic-layout-grid-item.entry.js.map +1 -1
- package/dist/esm/ic-layout-grid.entry.js +2 -2
- package/dist/esm/ic-layout-grid.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +2 -2
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +2 -2
- package/dist/esm/ic-menu-group.entry.js.map +1 -1
- package/dist/esm/ic-menu-item.entry.js +1 -1
- package/dist/esm/ic-menu.entry.js +23 -7
- package/dist/esm/ic-menu.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js +2 -2
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +5 -5
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +7 -7
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +52 -37
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +5 -5
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +14 -7
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +6 -6
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +10 -10
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-section-container.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +5 -5
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-skip-link.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +66 -54
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +20 -3
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +5 -5
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +10 -2
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -3
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +1 -1
- package/dist/esm/ic-table-of-contents.entry.js +359 -0
- package/dist/esm/ic-table-of-contents.entry.js.map +1 -0
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-time-input.entry.js +11 -11
- package/dist/esm/ic-time-input.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +4 -4
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +3 -3
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +3 -3
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +1 -1
- package/dist/esm/ic-tree-item.entry.js +2 -2
- package/dist/esm/ic-tree-view.entry.js +6 -4
- package/dist/esm/ic-tree-view.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +3 -3
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-a7a720e7.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/purify-6eaa9893.js +1363 -0
- package/dist/esm/purify-6eaa9893.js.map +1 -0
- package/dist/types/components/ic-data-table/story-data.d.ts +2 -11
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +3 -4
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +4 -0
- package/dist/types/components/ic-table-of-contents/ic-table-of-contents-item.d.ts +14 -0
- package/dist/types/components/ic-table-of-contents/ic-table-of-contents.d.ts +83 -0
- package/dist/types/components/ic-table-of-contents/ic-table-of-contents.stories.d.ts +90 -0
- package/dist/types/components/ic-table-of-contents/test/a11y/ic-table-of-contents.test.a11y.d.ts +1 -0
- package/dist/types/components.d.ts +83 -6
- package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/utils/common-helpers.d.ts +2 -0
- package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/utils/constants.d.ts +44 -0
- package/dist/types/utils/types.d.ts +1 -0
- package/hydrate/index.js +2178 -313
- package/hydrate/index.mjs +2178 -313
- package/package.json +4 -4
- package/dist/cjs/helpers-56717660.js.map +0 -1
- package/dist/core/p-20374e30.entry.js +0 -2
- package/dist/core/p-2f4f4aea.entry.js +0 -2
- package/dist/core/p-2f4f4aea.entry.js.map +0 -1
- package/dist/core/p-31d6d587.entry.js.map +0 -1
- package/dist/core/p-3a73a9b7.entry.js +0 -2
- package/dist/core/p-3a73a9b7.entry.js.map +0 -1
- package/dist/core/p-45dd12ee.entry.js.map +0 -1
- package/dist/core/p-518a8e87.entry.js.map +0 -1
- package/dist/core/p-558936fb.entry.js +0 -2
- package/dist/core/p-558936fb.entry.js.map +0 -1
- package/dist/core/p-59048c2a.entry.js.map +0 -1
- package/dist/core/p-5ac30e1f.entry.js +0 -2
- package/dist/core/p-5ac30e1f.entry.js.map +0 -1
- package/dist/core/p-6796acff.entry.js +0 -2
- package/dist/core/p-6796acff.entry.js.map +0 -1
- package/dist/core/p-7d2d067f.entry.js +0 -2
- package/dist/core/p-7d2d067f.entry.js.map +0 -1
- package/dist/core/p-91646e38.entry.js +0 -2
- package/dist/core/p-91646e38.entry.js.map +0 -1
- package/dist/core/p-ad48c77c.entry.js +0 -2
- package/dist/core/p-ad48c77c.entry.js.map +0 -1
- package/dist/core/p-afece95e.entry.js +0 -2
- package/dist/core/p-afece95e.entry.js.map +0 -1
- package/dist/core/p-b0462734.entry.js +0 -2
- package/dist/core/p-b0462734.entry.js.map +0 -1
- package/dist/core/p-bc7d730d.entry.js +0 -2
- package/dist/core/p-bc7d730d.entry.js.map +0 -1
- package/dist/core/p-be5df6a9.entry.js +0 -2
- package/dist/core/p-be5df6a9.entry.js.map +0 -1
- package/dist/core/p-efa95979.js +0 -2
- package/dist/core/p-efa95979.js.map +0 -1
- package/dist/core/p-efe2fbd7.entry.js +0 -2
- package/dist/core/p-efe2fbd7.entry.js.map +0 -1
- package/dist/core/p-f3201a0b.entry.js +0 -2
- package/dist/core/p-f3201a0b.entry.js.map +0 -1
- package/dist/core/p-f7d746d7.entry.js.map +0 -1
- package/dist/esm/helpers-f3928d01.js.map +0 -1
- /package/dist/core/{p-d47e200c.entry.js.map → p-05e0cadf.entry.js.map} +0 -0
- /package/dist/core/{p-8051e61b.entry.js.map → p-07365d6f.entry.js.map} +0 -0
- /package/dist/core/{p-c067e62c.entry.js.map → p-0e882f70.entry.js.map} +0 -0
- /package/dist/core/{p-364cc350.entry.js.map → p-18b793e0.entry.js.map} +0 -0
- /package/dist/core/{p-9863a070.entry.js.map → p-54da2d5f.entry.js.map} +0 -0
- /package/dist/core/{p-608a8a4d.entry.js.map → p-656b92d7.entry.js.map} +0 -0
- /package/dist/core/{p-fecef807.entry.js.map → p-6d4418e4.entry.js.map} +0 -0
- /package/dist/core/{p-b87e4485.entry.js.map → p-6e5fc63c.entry.js.map} +0 -0
- /package/dist/core/{p-f517f412.entry.js.map → p-8c841dc8.entry.js.map} +0 -0
- /package/dist/core/{p-9fffb01e.entry.js.map → p-9b68bee6.entry.js.map} +0 -0
- /package/dist/core/{p-9fe5e2eb.entry.js.map → p-a7a572d9.entry.js.map} +0 -0
- /package/dist/core/{p-1a5efa3e.entry.js.map → p-b10f5992.entry.js.map} +0 -0
- /package/dist/core/{p-cb4522ed.entry.js.map → p-ba26a1f0.entry.js.map} +0 -0
- /package/dist/core/{p-812a0246.entry.js.map → p-bf08d34c.entry.js.map} +0 -0
- /package/dist/core/{p-5c7c7205.entry.js.map → p-d77981a5.entry.js.map} +0 -0
- /package/dist/core/{p-b8938f93.entry.js.map → p-e4f1d72b.entry.js.map} +0 -0
- /package/dist/core/{p-b93e8ecb.entry.js.map → p-f591abc2.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -3109,48 +3109,48 @@ var IcBrandForegroundEnum$1;
|
|
|
3109
3109
|
IcBrandForegroundEnum["Light"] = "light";
|
|
3110
3110
|
})(IcBrandForegroundEnum$1 || (IcBrandForegroundEnum$1 = {}));
|
|
3111
3111
|
|
|
3112
|
-
var errorIcon = `<svg
|
|
3113
|
-
<title
|
|
3114
|
-
<g
|
|
3115
|
-
<path
|
|
3112
|
+
var errorIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
|
3113
|
+
<title>Error</title>
|
|
3114
|
+
<g>
|
|
3115
|
+
<path d="M8.77 3L3.5 8.27V15.73L8.77 21H16.23L21.5 15.73V8.27L16.23 3M8.91 7L12.5 10.59L16.09 7L17.5 8.41L13.91 12L17.5 15.59L16.09 17L12.5 13.41L8.91 17L7.5 15.59L11.09 12L7.5 8.41" />
|
|
3116
3116
|
</g>
|
|
3117
3117
|
</svg>
|
|
3118
3118
|
`;
|
|
3119
3119
|
|
|
3120
|
-
var infoIcon = `<svg
|
|
3121
|
-
<title
|
|
3122
|
-
<g
|
|
3123
|
-
<path
|
|
3120
|
+
var infoIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
|
3121
|
+
<title>For your information</title>
|
|
3122
|
+
<g>
|
|
3123
|
+
<path d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 17C11.45 17 11 16.55 11 16V12C11 11.45 11.45 11 12 11C12.55 11 13 11.45 13 12V16C13 16.55 12.55 17 12 17ZM13 9H11V7H13V9Z" />
|
|
3124
3124
|
</g>
|
|
3125
3125
|
</svg>
|
|
3126
3126
|
`;
|
|
3127
3127
|
|
|
3128
|
-
var neutralIcon = `<svg
|
|
3129
|
-
<title
|
|
3130
|
-
<g
|
|
3131
|
-
<path
|
|
3128
|
+
var neutralIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
|
3129
|
+
<title>Neutral</title>
|
|
3130
|
+
<g>
|
|
3131
|
+
<path d="M19.5 3H5.5C4.4 3 3.5 3.9 3.5 5V19C3.5 20.1 4.4 21 5.5 21H19.5C20.6 21 21.5 20.1 21.5 19V5C21.5 3.9 20.6 3 19.5 3ZM12.51 18C11.81 18 11.25 17.44 11.25 16.74C11.25 16.03 11.81 15.49 12.51 15.49C13.22 15.49 13.76 16.03 13.76 16.74C13.75 17.43 13.22 18 12.51 18ZM15.52 10.6C14.76 11.71 14.04 12.06 13.65 12.77C13.55 12.95 13.49 13.09 13.46 13.4C13.41 13.85 13.01 14.18 12.56 14.18H12.5C11.98 14.18 11.57 13.74 11.62 13.22C11.65 12.88 11.73 12.53 11.92 12.19C12.41 11.32 13.34 10.8 13.88 10.03C14.45 9.22 14.13 7.7 12.51 7.7C11.8 7.7 11.33 8.06 11.04 8.49C10.79 8.85 10.35 9.02 9.94 8.85C9.41 8.64 9.22 8 9.54 7.54C10.15 6.65 11.17 6 12.49 6C13.97 6 14.98 6.67 15.5 7.52C15.94 8.24 16.2 9.59 15.52 10.6Z" />
|
|
3132
3132
|
</g>
|
|
3133
3133
|
</svg>
|
|
3134
3134
|
`;
|
|
3135
3135
|
|
|
3136
|
-
var successIcon = `<svg
|
|
3137
|
-
<title
|
|
3138
|
-
<g
|
|
3139
|
-
<path
|
|
3136
|
+
var successIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
|
3137
|
+
<title>Success</title>
|
|
3138
|
+
<g>
|
|
3139
|
+
<path d="M12.5 2C6.98 2 2.5 6.48 2.5 12C2.5 17.52 6.98 22 12.5 22C18.02 22 22.5 17.52 22.5 12C22.5 6.48 18.02 2 12.5 2ZM9.79 16.29L6.2 12.7C5.81 12.31 5.81 11.68 6.2 11.29C6.59 10.9 7.22 10.9 7.61 11.29L10.5 14.17L17.38 7.29C17.77 6.9 18.4 6.9 18.79 7.29C19.18 7.68 19.18 8.31 18.79 8.7L11.2 16.29C10.82 16.68 10.18 16.68 9.79 16.29Z" />
|
|
3140
3140
|
</g>
|
|
3141
3141
|
</svg>
|
|
3142
3142
|
`;
|
|
3143
3143
|
|
|
3144
|
-
var warningIcon$1 = `<svg
|
|
3145
|
-
<title
|
|
3146
|
-
<g
|
|
3147
|
-
<path
|
|
3144
|
+
var warningIcon$1 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
|
3145
|
+
<title>Warning</title>
|
|
3146
|
+
<g>
|
|
3147
|
+
<path d="M4.47 20.5037H19.53C21.07 20.5037 22.03 18.8337 21.26 17.5037L13.73 4.49375C12.96 3.16375 11.04 3.16375 10.27 4.49375L2.74 17.5037C1.97 18.8337 2.93 20.5037 4.47 20.5037ZM12 13.5037C11.45 13.5037 11 13.0537 11 12.5037V10.5037C11 9.95375 11.45 9.50375 12 9.50375C12.55 9.50375 13 9.95375 13 10.5037V12.5037C13 13.0537 12.55 13.5037 12 13.5037ZM13 17.5037H11V15.5037H13V17.5037Z" />
|
|
3148
3148
|
</g>
|
|
3149
3149
|
</svg>
|
|
3150
3150
|
`;
|
|
3151
3151
|
|
|
3152
3152
|
var aiIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3153
|
-
<title
|
|
3153
|
+
<title>Artificial Intelligence (AI)</title>
|
|
3154
3154
|
<g clip-path="url(#clip0_43876_12457)">
|
|
3155
3155
|
<path d="M19.801 3C20.4637 3 21.001 3.53726 21.001 4.2V19.8C21.001 20.4628 20.4637 21 19.801 21H4.20098C3.53824 21 3.00098 20.4628 3.00098 19.8V4.2C3.00098 3.53726 3.53824 3 4.20098 3H19.801ZM8.94555 8.87988C8.88361 8.87988 8.82803 8.91796 8.80567 8.97573L6.32024 15.3958C6.28219 15.4941 6.35472 15.6 6.46013 15.6H7.19363C7.2559 15.6 7.3117 15.5615 7.33384 15.5033L7.89546 14.0262C7.9176 13.968 7.97339 13.9295 8.03567 13.9295H10.64C10.7023 13.9295 10.7582 13.968 10.7803 14.0263L11.3403 15.5032C11.3624 15.5615 11.4182 15.6 11.4805 15.6H12.2625C12.3678 15.6 12.4403 15.4944 12.4025 15.3962L9.9356 8.97608C9.91333 8.91813 9.85767 8.87988 9.79558 8.87988H8.94555ZM13.6123 8.87988C13.5294 8.87988 13.4623 8.94704 13.4623 9.02988V9.69024C13.4623 9.77308 13.5294 9.84024 13.6123 9.84024H14.3969C14.4797 9.84024 14.5469 9.9074 14.5469 9.99024V14.4902C14.5469 14.5731 14.4797 14.6402 14.3969 14.6402H13.6123C13.5294 14.6402 13.4623 14.7074 13.4623 14.7902V15.45C13.4623 15.5328 13.5294 15.6 13.6123 15.6H16.5186C16.6014 15.6 16.6686 15.5328 16.6686 15.45V14.7902C16.6686 14.7074 16.6014 14.6402 16.5186 14.6402H15.7334C15.6506 14.6402 15.5834 14.5731 15.5834 14.4902V9.99024C15.5834 9.9074 15.6506 9.84024 15.7334 9.84024H16.5186C16.6014 9.84024 16.6686 9.77308 16.6686 9.69024V9.02988C16.6686 8.94704 16.6014 8.87988 16.5186 8.87988H13.6123ZM9.35138 10.0705C9.40898 10.2433 9.47318 10.4353 9.54356 10.6465C9.61394 10.8577 9.6746 11.0497 9.72578 11.2225C9.78338 11.3952 9.82202 11.504 9.84122 11.5488L10.288 12.7279C10.3252 12.8261 10.2527 12.9311 10.1478 12.9311H8.52949C8.42445 12.9311 8.35194 12.8259 8.3893 12.7277L8.82344 11.5869C8.86182 11.4782 8.91003 11.3437 8.96758 11.1838C9.02516 11.0174 9.08288 10.8413 9.14042 10.6559C9.20438 10.4704 9.2615 10.2943 9.31268 10.1279C9.31947 10.1084 9.32604 10.0892 9.3325 10.0705C9.33554 10.0616 9.34853 10.0616 9.35138 10.0705Z" />
|
|
3156
3156
|
</g>
|
|
@@ -3281,6 +3281,7 @@ const IGNORED_KEYBOARD_CHARACTERS = [
|
|
|
3281
3281
|
"Shift",
|
|
3282
3282
|
"Tab",
|
|
3283
3283
|
];
|
|
3284
|
+
const IC_CUSTOM_ALLOWED_COMPONENTS$1 = [];
|
|
3284
3285
|
|
|
3285
3286
|
const DARK_MODE_THRESHOLD = 133.3505;
|
|
3286
3287
|
const ANYWHERE_SEARCH_POSITION = "anywhere";
|
|
@@ -4300,7 +4301,7 @@ class Alert {
|
|
|
4300
4301
|
}, ref: (el) => (this.messageEl = el) }, heading && (hAsync("ic-typography", { class: {
|
|
4301
4302
|
"alert-title": true,
|
|
4302
4303
|
"alert-title-above": titleAbove || alertTitleWrap,
|
|
4303
|
-
}, variant: "subtitle-large", ref: (el) => (this.titleEl = el) }, hAsync("p", null, heading))), hAsync("slot", { name: "message" }, hAsync("ic-typography", { variant: "body" }, message))), isSlotUsed$1(this.el, "action") && (hAsync("div", { class: "alert-action-container" }, hAsync("slot", { name: "action" })))), hAsync("div", { class: "dismiss-icon-container" }, dismissible && (hAsync("ic-button", { class: { "svg-container": true, "dismiss-icon": true }, innerHTML: closeIcon, onClick: dismissAction, variant: "icon", theme: "dark", title: "Dismiss" })))))));
|
|
4304
|
+
}, variant: "subtitle-large", ref: (el) => (this.titleEl = el) }, hAsync("p", null, heading))), hAsync("slot", { name: "message" }, hAsync("ic-typography", { variant: "body" }, message))), isSlotUsed$1(this.el, "action") && (hAsync("div", { class: "alert-action-container" }, hAsync("slot", { name: "action" })))), hAsync("div", { class: "dismiss-icon-container" }, dismissible && (hAsync("ic-button", { class: { "svg-container": true, "dismiss-icon": true }, innerHTML: closeIcon, onClick: dismissAction, variant: "icon-tertiary", theme: "dark", title: "Dismiss" })))))));
|
|
4304
4305
|
}
|
|
4305
4306
|
get el() { return getElement(this); }
|
|
4306
4307
|
static get watchers() { return {
|
|
@@ -5302,6 +5303,10 @@ class Button {
|
|
|
5302
5303
|
watchDisabledHandler() {
|
|
5303
5304
|
removeDisabledFalse$1(this.disabled, this.el);
|
|
5304
5305
|
}
|
|
5306
|
+
watchVariantHandler(newVariant) {
|
|
5307
|
+
if (newVariant === "icon")
|
|
5308
|
+
this.variant = "icon-tertiary";
|
|
5309
|
+
}
|
|
5305
5310
|
disconnectedCallback() {
|
|
5306
5311
|
var _a, _b;
|
|
5307
5312
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
@@ -5334,6 +5339,9 @@ class Button {
|
|
|
5334
5339
|
}
|
|
5335
5340
|
}
|
|
5336
5341
|
}
|
|
5342
|
+
if (this.variant === "icon") {
|
|
5343
|
+
this.variant = "icon-tertiary";
|
|
5344
|
+
}
|
|
5337
5345
|
}
|
|
5338
5346
|
componentDidLoad() {
|
|
5339
5347
|
this.updateTheme();
|
|
@@ -5432,11 +5440,7 @@ class Button {
|
|
|
5432
5440
|
const buttonId = hasTooltip
|
|
5433
5441
|
? `ic-button-with-tooltip-${id || buttonIdNum}`
|
|
5434
5442
|
: undefined;
|
|
5435
|
-
const describedby = !hasTooltip
|
|
5436
|
-
? describedById
|
|
5437
|
-
: variant !== "icon" || !ariaLabel
|
|
5438
|
-
? `ic-tooltip-${buttonId}`
|
|
5439
|
-
: undefined;
|
|
5443
|
+
const describedby = !hasTooltip ? describedById : `ic-tooltip-${buttonId}`;
|
|
5440
5444
|
const hasLeftIcon = !!this.getSlottedIcon("left");
|
|
5441
5445
|
const hasRightIcon = !!this.getSlottedIcon("right");
|
|
5442
5446
|
const ButtonContent = () => this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(TagType, Object.assign({ class: "button", tabindex: 0, "aria-disabled": loading || disabled ? "true" : null, "aria-label": loading ? "Loading" : ariaLabel, "aria-expanded": dropdown && `${dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: onFocus, onBlur: onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), loading ? (hAsync("div", { class: "loading-container" }, hAsync("ic-loading-indicator", { type: "linear", monochrome: monochrome, theme: theme }))) : (hAsync(Fragment, null, (hasLeftIcon ||
|
|
@@ -5446,7 +5450,7 @@ class Button {
|
|
|
5446
5450
|
variant !== "destructive" && (hAsync("span", { class: dropdownExpanded
|
|
5447
5451
|
? "dropdown-expanded"
|
|
5448
5452
|
: "arrow-dropdown", innerHTML: arrowDropdown$1 }))))));
|
|
5449
|
-
return (hAsync(Host, { key: '
|
|
5453
|
+
return (hAsync(Host, { key: '1f58739b62e290b1b86fa82c9153e04711196367', class: {
|
|
5450
5454
|
"ic-button-disabled": disabled && !loading,
|
|
5451
5455
|
"ic-button-full-width": fullWidth,
|
|
5452
5456
|
"ic-button-loading": loading,
|
|
@@ -5462,12 +5466,13 @@ class Button {
|
|
|
5462
5466
|
monochrome,
|
|
5463
5467
|
"top-icon": isSlotUsed$1(this.el, "top-icon"),
|
|
5464
5468
|
"with-badge": isSlotUsed$1(this.el, "badge"),
|
|
5465
|
-
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: '
|
|
5469
|
+
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: 'fa067eeedb2f960436c693a0d8978a46eea9cc68', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, fixedPositioning: tooltipFixedPositioning, silent: isIconVariant() && !!ariaLabel }, hAsync(ButtonContent, { key: 'a3565789687668d376a8c6e6044a0c3b1e864532' }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: '1bacc47dfc65cce6880600906512a9262b6773cc', name: "badge" }), !hasTooltip && hAsync(ButtonContent, { key: 'd00dc87862ffc939fc5c8341c686dddbc642eb02' }), describedByContent && (hAsync("span", { key: '1d25a9c513d23e6a23e2e1d81ad036d1df47363c', id: describedby, class: "ic-button-describedby" }, describedByContent))));
|
|
5466
5470
|
}
|
|
5467
5471
|
static get delegatesFocus() { return true; }
|
|
5468
5472
|
get el() { return getElement(this); }
|
|
5469
5473
|
static get watchers() { return {
|
|
5470
|
-
"disabled": ["watchDisabledHandler"]
|
|
5474
|
+
"disabled": ["watchDisabledHandler"],
|
|
5475
|
+
"variant": ["watchVariantHandler"]
|
|
5471
5476
|
}; }
|
|
5472
5477
|
static get style() { return IcButtonStyle0; }
|
|
5473
5478
|
static get cmpMeta() { return {
|
|
@@ -5506,7 +5511,7 @@ class Button {
|
|
|
5506
5511
|
"tooltipPlacement": [1, "tooltip-placement"],
|
|
5507
5512
|
"transparentBackground": [4, "transparent-background"],
|
|
5508
5513
|
"type": [1],
|
|
5509
|
-
"variant": [
|
|
5514
|
+
"variant": [1025],
|
|
5510
5515
|
"ariaLabel": [32],
|
|
5511
5516
|
"describedByContent": [32],
|
|
5512
5517
|
"title": [32],
|
|
@@ -6172,7 +6177,7 @@ class CardVertical {
|
|
|
6172
6177
|
}; }
|
|
6173
6178
|
}
|
|
6174
6179
|
|
|
6175
|
-
const icCheckboxCss = "/*! 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-checkbox-disabled){pointer-events:none}.container{display:flex;width:-moz-fit-content;width:fit-content;padding:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs);margin-bottom:var(--ic-space-xxs);align-items:center}:host(.ic-data-table-checkbox) .container{padding:0;margin-bottom:0}:host(.ic-checkbox-small) .container{margin-bottom:var(--ic-space-xxxs)}.checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-checkbox-background-unselected);border:var(--ic-border-width) solid var(--ic-checkbox-border-unselected);border-radius:var(--ic-border-radius);outline:none;cursor:pointer;transition:var(--ic-easing-transition-fast);flex-shrink:0}:host .container svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-checkbox-small) .checkbox,:host(.ic-checkbox-small) .container svg{width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-checkbox-large) .checkbox,:host(.ic-checkbox-large) .container svg{width:var(--ic-space-xl);height:var(--ic-space-xl)}.checkbox:checked{background-color:var(--ic-checkbox-background-selected);border:var(--ic-border-width) solid var(--ic-checkbox-background-selected);transition:var(--ic-easing-transition-slow)}.checkbox:checked:disabled{background-color:var(--ic-checkbox-background-selected-disabled);border:var(--ic-border-width) solid\n var(--ic-checkbox-background-selected-disabled)}.checkbox:indeterminate,.checkbox.indeterminate:checked{background-color:var(--ic-checkbox-background-indeterminate);border:0.125rem solid var(--ic-checkbox-background-indeterminate)}.checkbox:indeterminate:disabled,.checkbox.indeterminate:checked:disabled{background-color:var(--ic-checkbox-background-indeterminate-disabled);border:0.125rem solid var(--ic-checkbox-background-indeterminate-disabled)}.checkbox:checked:hover{background-color:var(--ic-checkbox-background-selected-hover)}.checkbox:indeterminate:hover,.checkbox.indeterminate:checked:hover{background-color:var(--ic-checkbox-background-indeterminate-hover);border:0.125rem solid var(--ic-checkbox-background-indeterminate-hover)}.checkbox:checked:active{background-color:var(--ic-checkbox-background-selected-pressed)}.checkbox:indeterminate:active,.checkbox.indeterminate:checked:active{background-color:var(--ic-checkbox-background-indeterminate-pressed);border:0.125rem solid var(--ic-checkbox-background-indeterminate-pressed)}.checkbox:hover{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-hover);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-hover)}.checkbox:active{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-pressed);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-pressed)}.checkbox:focus{box-shadow:var(--ic-border-focus)}.checkbox:disabled{border:var(--ic-border-width) dashed\n var(--ic-checkbox-border-unselected-disabled)}.checkbox-label{color:var(--ic-checkbox-text);--ic-typography-color:var(--ic-checkbox-text)}.checkbox-label>label{padding-left:var(--ic-space-sm);display:inline-block}:host(.ic-checkbox-disabled) .checkbox-label{color:var(--ic-checkbox-text-disabled);--ic-typography-color:var(--ic-checkbox-text-disabled)}.checkbox-label:hover{cursor:pointer}.checkmark{position:relative;right:calc(-1 * var(--ic-space-lg));margin-left:calc(-1 * var(--ic-space-lg));fill:var(--ic-checkbox-icon-pressed);z-index:1;background-color:transparent;pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .checkmark{margin-left:calc(-1 * var(--ic-space-md));right:calc(-1 * var(--ic-space-md))}:host(.ic-checkbox-large) .checkmark{margin-left:calc(-1 * var(--ic-space-xl));right:calc(-1 * var(--ic-space-xl))}.indeterminate-symbol{position:relative;width:0.875rem;height:var(--ic-space-xxxs);right:-1.188rem;margin-left:-0.875rem;z-index:1;background-color:var(--ic-checkbox-icon-indeterminate);pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .indeterminate-symbol{width:0.6rem;right:-0.8rem;margin-left:-0.6rem}:host(.ic-checkbox-large) .indeterminate-symbol{width:1.25rem;right:-1.625rem;margin-left:-1.25rem}.additional-field-wrapper{margin-left:calc(var(--ic-space-md) + var(--ic-space-lg));margin-top:calc(var(--ic-space-sm) / 2)}.branch-corner{height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-checkbox-required-bar);border-left:0.125rem solid var(--ic-checkbox-required-bar)}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-xxxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}.dynamic-text{color:var(--ic-checkbox-required-text);--ic-typography-color:var(--ic-checkbox-required-text);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}.dynamic-field-container{flex:100%}@media (max-width: 576px){::slotted(*){--input-width:100%}.dynamic-field-container{flex:initial}}@media (forced-colors: active){.checkbox{-webkit-appearance:revert;-moz-appearance:revert;appearance:revert;transition:none}.checkbox:checked{transition:none}.checkbox:focus-visible{outline:0.125rem solid highlight}.checkbox:disabled:not(:checked){-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.checkmark{fill:none}.indeterminate-symbol{display:none}}.checkmark:dir(rtl){right:0}.checkbox-label:dir(rtl){padding-right:var(--ic-space-sm);padding-left:0}.indeterminate-symbol:dir(rtl){right:0.288rem}.branch-corner:dir(rtl){border-radius:0 0 0.188rem;border-right:0.125rem solid var(--ic-action-default);border-left:none}.dynamic-container:dir(rtl){margin:var(--ic-space-xxxs) var(--ic-space-sm) var(--ic-space-xxs) 0}";
|
|
6180
|
+
const icCheckboxCss = "/*! 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-checkbox-disabled){pointer-events:none}.container{display:flex;width:-moz-fit-content;width:fit-content;padding:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs);margin-bottom:var(--ic-space-xxs);align-items:center}:host(.ic-data-table-checkbox) .container{padding:0;margin-bottom:0}:host(.ic-checkbox-small) .container{margin-bottom:var(--ic-space-xxxs)}.checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-checkbox-background-unselected);border:var(--ic-border-width) solid var(--ic-checkbox-border-unselected);border-radius:var(--ic-border-radius);outline:none;cursor:pointer;transition:var(--ic-easing-transition-fast);flex-shrink:0}:host .container svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-checkbox-small) .checkbox,:host(.ic-checkbox-small) .container svg{width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-checkbox-large) .checkbox,:host(.ic-checkbox-large) .container svg{width:var(--ic-space-xl);height:var(--ic-space-xl)}.checkbox:checked{background-color:var(--ic-checkbox-background-selected);border:var(--ic-border-width) solid var(--ic-checkbox-background-selected);transition:var(--ic-easing-transition-slow)}.checkbox:checked:disabled{background-color:var(--ic-checkbox-background-selected-disabled);border:var(--ic-border-width) solid\n var(--ic-checkbox-background-selected-disabled)}.checkbox:indeterminate,.checkbox.indeterminate:checked{background-color:var(--ic-checkbox-background-indeterminate);border:0.125rem solid var(--ic-checkbox-background-indeterminate)}.checkbox:indeterminate:disabled,.checkbox.indeterminate:checked:disabled{background-color:var(--ic-checkbox-background-indeterminate-disabled);border:0.125rem solid var(--ic-checkbox-background-indeterminate-disabled)}.checkbox:checked:hover{background-color:var(--ic-checkbox-background-selected-hover)}.checkbox:indeterminate:hover,.checkbox.indeterminate:checked:hover{background-color:var(--ic-checkbox-background-indeterminate-hover);border:0.125rem solid var(--ic-checkbox-background-indeterminate-hover)}.checkbox:checked:active{background-color:var(--ic-checkbox-background-selected-pressed)}.checkbox:indeterminate:active,.checkbox.indeterminate:checked:active{background-color:var(--ic-checkbox-background-indeterminate-pressed);border:0.125rem solid var(--ic-checkbox-background-indeterminate-pressed)}.checkbox:hover{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-hover);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-hover)}.checkbox:active{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-pressed);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-pressed)}.checkbox:focus{box-shadow:var(--ic-border-focus)}.checkbox:disabled{border:var(--ic-border-width) dashed\n var(--ic-checkbox-border-unselected-disabled)}.checkbox-label{color:var(--ic-checkbox-text);--ic-typography-color:var(--ic-checkbox-text)}.checkbox-label>label{padding-left:var(--ic-space-sm);display:inline-block}:host(.ic-checkbox-disabled) .checkbox-label{color:var(--ic-checkbox-text-disabled);--ic-typography-color:var(--ic-checkbox-text-disabled)}.checkbox-label:hover{cursor:pointer}.checkmark{position:relative;right:calc(-1 * var(--ic-space-lg));margin-left:calc(-1 * var(--ic-space-lg));fill:var(--ic-checkbox-icon-pressed);z-index:1;background-color:transparent;pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .checkmark{margin-left:calc(-1 * var(--ic-space-md));right:calc(-1 * var(--ic-space-md))}:host(.ic-checkbox-large) .checkmark{margin-left:calc(-1 * var(--ic-space-xl));right:calc(-1 * var(--ic-space-xl))}.indeterminate-symbol{position:relative;width:0.875rem;height:var(--ic-space-xxxs);right:-1.188rem;margin-left:-0.875rem;z-index:1;background-color:var(--ic-checkbox-icon-indeterminate);pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .indeterminate-symbol{width:0.6rem;right:-0.8rem;margin-left:-0.6rem}:host(.ic-checkbox-large) .indeterminate-symbol{width:1.25rem;right:-1.625rem;margin-left:-1.25rem}.additional-field-wrapper{margin-left:calc(var(--ic-space-md) + var(--ic-space-lg));margin-top:calc(var(--ic-space-sm) / 2)}.branch-corner{height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-checkbox-required-bar);border-left:0.125rem solid var(--ic-checkbox-required-bar)}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-xxxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}.dynamic-text{color:var(--ic-checkbox-required-text);--ic-typography-color:var(--ic-checkbox-required-text);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}.dynamic-field-container{flex:100%}.sr-only{position:absolute;left:-9999px}@media (max-width: 576px){::slotted(*){--input-width:100%}.dynamic-field-container{flex:initial}}@media (forced-colors: active){.checkbox{-webkit-appearance:revert;-moz-appearance:revert;appearance:revert;transition:none}.checkbox:checked{transition:none}.checkbox:focus-visible{outline:0.125rem solid highlight}.checkbox:disabled:not(:checked){-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.checkmark{fill:none}.indeterminate-symbol{display:none}}.checkmark:dir(rtl){right:0}.checkbox-label:dir(rtl){padding-right:var(--ic-space-sm);padding-left:0}.indeterminate-symbol:dir(rtl){right:0.288rem}.branch-corner:dir(rtl){border-radius:0 0 0.188rem;border-right:0.125rem solid var(--ic-action-default);border-left:none}.dynamic-container:dir(rtl){margin:var(--ic-space-xxxs) var(--ic-space-sm) var(--ic-space-xxs) 0}";
|
|
6176
6181
|
var IcCheckboxStyle0 = icCheckboxCss;
|
|
6177
6182
|
|
|
6178
6183
|
/**
|
|
@@ -6291,9 +6296,9 @@ class Checkbox {
|
|
|
6291
6296
|
checkbox: true,
|
|
6292
6297
|
checked,
|
|
6293
6298
|
indeterminate: displayIndeterminate,
|
|
6294
|
-
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: id, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel ? label : undefined }), !hideLabel && (hAsync("ic-typography", { key: '2ba4862a349e6b3f34c050c434ce247687f0dfd8', class: "checkbox-label", variant: "body" }, hAsync("label", { key: 'a3f3c733b5dc0a0acdf89d3b7db603e965102618', htmlFor: id }, label)))), isSlotUsed$1(el, "additional-field") && (hAsync("div", { key: '
|
|
6299
|
+
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: id, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel ? label : undefined }), !hideLabel && (hAsync("ic-typography", { key: '2ba4862a349e6b3f34c050c434ce247687f0dfd8', class: "checkbox-label", variant: "body" }, hAsync("label", { key: 'a3f3c733b5dc0a0acdf89d3b7db603e965102618', htmlFor: id }, label)))), hAsync("span", { key: 'e671e1532bdfea4a1c5d85cbb8cde2cc41044757', id: `${id}-additional-field-description`, role: "alert", class: "sr-only" }, isDynamicAdditionalField && checked ? dynamicText : ""), isSlotUsed$1(el, "additional-field") && (hAsync("div", { key: 'b562e4d2bf3cb6651c6a95aedb8a8e4991d1d1e7', class: "dynamic-container", ref: (el) => (this.additionalFieldContainer = el) }, isDynamicAdditionalField && hAsync("div", { key: '9c6d8a88882fe32f1f272c3df42eeca896459284', class: "branch-corner" }), hAsync("div", { key: '7a88d8ae6fc193a3b2e08e82eb47a6b0228ce40b', class: "dynamic-field-container" }, isDynamicAdditionalField && (hAsync("ic-typography", { key: '64fdfe413653b6583789de3ee56c91c18522764e', variant: "caption" }, hAsync("p", { key: '0075205b0805a37b362658d70152bb180c290f0c', class: "dynamic-text" }, isDynamicAdditionalField && checked ? dynamicText : ""))), hAsync("div", { key: 'd6494d984bd1de5b08265fe1f8b2deb0a45e7d3a', class: {
|
|
6295
6300
|
"additional-field-wrapper": !isDynamicAdditionalField,
|
|
6296
|
-
} }, hAsync("slot", { key: '
|
|
6301
|
+
} }, hAsync("slot", { key: '905f210aaf41f4ba5d7c24e92bd19dbb17b81355', name: "additional-field" })))))));
|
|
6297
6302
|
}
|
|
6298
6303
|
static get delegatesFocus() { return true; }
|
|
6299
6304
|
get el() { return getElement(this); }
|
|
@@ -6330,7 +6335,7 @@ class Checkbox {
|
|
|
6330
6335
|
}; }
|
|
6331
6336
|
}
|
|
6332
6337
|
|
|
6333
|
-
const icCheckboxGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-checkbox-group-label);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle);--ic-input-validation-error:var(--ic-checkbox-state-icon-error);--ic-input-validation-status-text-color:var(--ic-checkbox-state-text)}:host(.ic-checkbox-group-disabled){--ic-input-label-text-color:var(--ic-checkbox-group-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-checkbox-group-subtitle-disabled\n )}ic-input-label.error{color:var(--ic-checkbox-group-label-error);--ic-typography-color:var(--ic-checkbox-group-label-error);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle-error)}ic-input-label:not(.with-helper) .ic-typography-label,ic-input-label .helpertext{margin-bottom:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-checkbox-group-small) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) / 2)}:host(.ic-checkbox-group-large) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-checkbox-group-large) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) * 1.5)}ic-input-label .helpertext{display:block}ic-input-validation{margin-top:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-validation{margin-top:calc(var(--ic-space-sm) / 2)}:host(.ic-checkbox-group-large) ic-input-validation{margin-top:calc(var(--ic-space-sm) * 1.5)}.checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxs))}:host(.ic-checkbox-group-small) .checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxxs))}.screen-reader-only-text{position:absolute;left:-9999px;background-color:#fff;color:#000;text-transform:none}.screen-reader-only-text:dir(rtl){right:-9999px}";
|
|
6338
|
+
const icCheckboxGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-checkbox-group-label);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle);--ic-input-validation-error:var(--ic-checkbox-state-icon-error);--ic-input-validation-status-text-color:var(--ic-checkbox-state-text)}:host(.ic-checkbox-group-disabled){--ic-input-label-text-color:var(--ic-checkbox-group-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-checkbox-group-subtitle-disabled\n )}ic-input-label.error{color:var(--ic-checkbox-group-label-error);--ic-typography-color:var(--ic-checkbox-group-label-error);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle-error)}ic-input-label:not(.with-helper) .ic-typography-label,ic-input-label .helpertext{margin-bottom:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-checkbox-group-small) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) / 2)}:host(.ic-checkbox-group-large) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-checkbox-group-large) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) * 1.5)}ic-input-label .helpertext{display:block}ic-input-validation.show-validation{margin-top:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-validation.show-validation{margin-top:calc(var(--ic-space-sm) / 2)}:host(.ic-checkbox-group-large) ic-input-validation.show-validation{margin-top:calc(var(--ic-space-sm) * 1.5)}.checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxs))}:host(.ic-checkbox-group-small) .checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxxs))}.screen-reader-only-text{position:absolute;left:-9999px;background-color:#fff;color:#000;text-transform:none}.screen-reader-only-text:dir(rtl){right:-9999px}";
|
|
6334
6339
|
var IcCheckboxGroupStyle0 = icCheckboxGroupCss;
|
|
6335
6340
|
|
|
6336
6341
|
const CHECKBOX_SELECTOR = "ic-checkbox";
|
|
@@ -6428,11 +6433,14 @@ class CheckboxGroup {
|
|
|
6428
6433
|
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationStatus, validationText, } = this;
|
|
6429
6434
|
const describedBy = getInputDescribedByText$1(this.el, name, helperText !== "", validationStatus !== "");
|
|
6430
6435
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
|
6431
|
-
|
|
6436
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
6437
|
+
return (hAsync(Host, { key: '6d5ed4db589400cd64aeed3bccd46087858d2902', class: {
|
|
6432
6438
|
"ic-checkbox-group-disabled": !!disabled,
|
|
6433
6439
|
[`ic-checkbox-group-${size}`]: true,
|
|
6434
6440
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6435
|
-
} }, renderSRText && (hAsync("span", { key: '
|
|
6441
|
+
} }, renderSRText && (hAsync("span", { key: '2fc368a571755ad3125067498b17b52ce8933e8f', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { key: '6b7d3155fa0479fbd51c5e5100945ee4995dfadf', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: '469a466275aa307d6ca876ec18a79bb5d29167b8' }, hAsync("ic-input-label", { key: '4cd2e89ab463ea9c7438fb1759faddf6df8750d1', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }, hAsync("slot", { key: '0b0b0a5028039ef6d487d441ebd28f47f32200b7', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '747fea859cd5a3bbd474454b408f648169b5fe45', class: "checkboxes-container" }, hAsync("slot", { key: '200a6c033ff1243e8778aec3c91a22213f5082f5' }))), showValidation && (hAsync("ic-input-validation", { key: 'df907eeb4348050b37357f27405b3ef548990163', class: {
|
|
6442
|
+
"show-validation": showValidation,
|
|
6443
|
+
}, for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
|
6436
6444
|
}
|
|
6437
6445
|
get el() { return getElement(this); }
|
|
6438
6446
|
static get watchers() { return {
|
|
@@ -6468,7 +6476,7 @@ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org
|
|
|
6468
6476
|
</svg>
|
|
6469
6477
|
`;
|
|
6470
6478
|
|
|
6471
|
-
const icChipCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;max-width:100%;vertical-align:middle}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding: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}}";
|
|
6479
|
+
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}}";
|
|
6472
6480
|
var IcChipStyle0 = icChipCss;
|
|
6473
6481
|
|
|
6474
6482
|
/**
|
|
@@ -6562,10 +6570,11 @@ class Chip {
|
|
|
6562
6570
|
render() {
|
|
6563
6571
|
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
|
6564
6572
|
const ariaLabel = `${label} chip`;
|
|
6565
|
-
return (hAsync(Host, { key: '
|
|
6573
|
+
return (hAsync(Host, { key: 'c7b88d4999b6de5004edc4bd27e185b9232fdaf9', class: {
|
|
6574
|
+
"ic-chip-dismissed": !visible,
|
|
6566
6575
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6567
6576
|
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
|
6568
|
-
} }, visible && (hAsync("div", { key: '
|
|
6577
|
+
} }, visible && (hAsync("div", { key: 'dbbb2bd77adea5e65d61e11b6c4b2b06fadbb9b1', class: {
|
|
6569
6578
|
chip: true,
|
|
6570
6579
|
[`${variant}`]: true,
|
|
6571
6580
|
[`${size}`]: true,
|
|
@@ -6573,7 +6582,7 @@ class Chip {
|
|
|
6573
6582
|
dismissible,
|
|
6574
6583
|
hovered,
|
|
6575
6584
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
|
6576
|
-
} }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: '
|
|
6585
|
+
} }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: '443ef9dc619483da883171e367ac9541aaf61a38', class: "icon" }, hAsync("slot", { key: '3d5f5e0db37a1d2c0b8d2f25e0af2801cc52598e', name: "icon" }))), hAsync("ic-typography", { key: '23603177321e0a67c86da4720574592e3db8db80', variant: "label", "apply-vertical-margins": false, class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, hAsync("span", { key: '2d55524b494e17a0ee3c8a7441ffbc1a5d47f6a4' }, label)), dismissible && (hAsync("ic-tooltip", { key: '2def11f340b2b51518caebdf0e87b61e87d9baeb', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, hAsync("button", { key: 'c437a1dc096b14ba3bb2fa5723fa0044e83a9b3a', 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$1(this.el, "badge") && hAsync("slot", { key: '9b3fec37d1d44def4248cf53ae2916d9f62e1a08', name: "badge" }))), dismissible && (hAsync("div", { key: 'bc8d8601488092dde7dae7db5f0f36b802f6df9f', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
|
|
6577
6586
|
}
|
|
6578
6587
|
static get delegatesFocus() { return true; }
|
|
6579
6588
|
get el() { return getElement(this); }
|
|
@@ -6701,10 +6710,10 @@ class DataList {
|
|
|
6701
6710
|
if (size === "small") {
|
|
6702
6711
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
|
6703
6712
|
}
|
|
6704
|
-
return (hAsync(Host, { key: '
|
|
6713
|
+
return (hAsync(Host, { key: 'a050ac5764ea9496f33d53abdd27f1a193185cbb', class: {
|
|
6705
6714
|
"ic-data-list-small": size === "small",
|
|
6706
6715
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6707
|
-
} }, hAsync("div", { key: '
|
|
6716
|
+
} }, hAsync("div", { key: '41836f9dce80428fe7f266601c779255195f2a1a', class: "heading", id: "data-list-heading" }, hAsync("slot", { key: '0bd2c17f6dc9767364dc021695ac5839acb3040f', name: "heading" }, hAsync("ic-typography", { key: '65c4dd118e264af61e6494a81b60e573361ea9d3', variant: "h3" }, heading))), hAsync("div", { key: '5be1cea50a4d8beef81c14da5e13a74a75347244', class: "divider" }), hAsync("ul", { key: '9b71c57f882aec9aecb018e4a1fb98ff66c6aaf1', "aria-labelledby": "data-list-heading", class: "rows" }, hAsync("slot", { key: '729e8422e911d6dc7a64e568af78f9e7e1ba32c7' }))));
|
|
6708
6717
|
}
|
|
6709
6718
|
get el() { return getElement(this); }
|
|
6710
6719
|
static get style() { return IcDataListStyle0; }
|
|
@@ -6794,12 +6803,12 @@ class DataRow {
|
|
|
6794
6803
|
}
|
|
6795
6804
|
render() {
|
|
6796
6805
|
const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
|
|
6797
|
-
return (hAsync(Host, { key: '
|
|
6806
|
+
return (hAsync(Host, { key: '8a70c9ceda7aebc616eb335f08e626952c87ddf3', class: {
|
|
6798
6807
|
["ic-data-row-small"]: size === "small",
|
|
6799
6808
|
["breakpoint-medium"]: listSize === "m",
|
|
6800
6809
|
["breakpoint-xs"]: listSize === "xs",
|
|
6801
6810
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6802
|
-
}, role: "listitem" }, hAsync("div", { key: '
|
|
6811
|
+
}, role: "listitem" }, hAsync("div", { key: 'b2f75779fb6392023c42d9c1f8bf58a98b431797', class: "data" }, hAsync("div", { key: '059aa84f8a91c9a7cdaea4e118287ea460f1bcdd', class: "text-cells" }, (isSlotUsed$1(el, "label") || label) && renderCellContent("label"), (isSlotUsed$1(el, "value") || value) && renderCellContent("value")), hasEndComponent && (hAsync("div", { key: '3bcb9b239d836434ceae03ecd35c1bdc42d73699', class: "end-component" }, hAsync("slot", { key: '453e0c7e4d6b875ddfc319a12dc173913057b8bd', name: "end-component" })))), hAsync("div", { key: 'f16fd733c8ffd0e8ed8e7461099a3b9b81809cb3', class: "divider" })));
|
|
6803
6812
|
}
|
|
6804
6813
|
get el() { return getElement(this); }
|
|
6805
6814
|
static get style() { return IcDataRowStyle0; }
|
|
@@ -6832,6 +6841,1380 @@ var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24
|
|
|
6832
6841
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
|
6833
6842
|
</svg>`;
|
|
6834
6843
|
|
|
6844
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6845
|
+
|
|
6846
|
+
var purify = {exports: {}};
|
|
6847
|
+
|
|
6848
|
+
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
6849
|
+
|
|
6850
|
+
(function (module, exports) {
|
|
6851
|
+
(function (global, factory) {
|
|
6852
|
+
module.exports = factory() ;
|
|
6853
|
+
})(commonjsGlobal, (function () {
|
|
6854
|
+
const {
|
|
6855
|
+
entries,
|
|
6856
|
+
setPrototypeOf,
|
|
6857
|
+
isFrozen,
|
|
6858
|
+
getPrototypeOf,
|
|
6859
|
+
getOwnPropertyDescriptor
|
|
6860
|
+
} = Object;
|
|
6861
|
+
let {
|
|
6862
|
+
freeze,
|
|
6863
|
+
seal,
|
|
6864
|
+
create
|
|
6865
|
+
} = Object; // eslint-disable-line import/no-mutable-exports
|
|
6866
|
+
let {
|
|
6867
|
+
apply,
|
|
6868
|
+
construct
|
|
6869
|
+
} = typeof Reflect !== 'undefined' && Reflect;
|
|
6870
|
+
if (!freeze) {
|
|
6871
|
+
freeze = function freeze(x) {
|
|
6872
|
+
return x;
|
|
6873
|
+
};
|
|
6874
|
+
}
|
|
6875
|
+
if (!seal) {
|
|
6876
|
+
seal = function seal(x) {
|
|
6877
|
+
return x;
|
|
6878
|
+
};
|
|
6879
|
+
}
|
|
6880
|
+
if (!apply) {
|
|
6881
|
+
apply = function apply(fun, thisValue, args) {
|
|
6882
|
+
return fun.apply(thisValue, args);
|
|
6883
|
+
};
|
|
6884
|
+
}
|
|
6885
|
+
if (!construct) {
|
|
6886
|
+
construct = function construct(Func, args) {
|
|
6887
|
+
return new Func(...args);
|
|
6888
|
+
};
|
|
6889
|
+
}
|
|
6890
|
+
const arrayForEach = unapply(Array.prototype.forEach);
|
|
6891
|
+
const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
|
6892
|
+
const arrayPop = unapply(Array.prototype.pop);
|
|
6893
|
+
const arrayPush = unapply(Array.prototype.push);
|
|
6894
|
+
const arraySplice = unapply(Array.prototype.splice);
|
|
6895
|
+
const stringToLowerCase = unapply(String.prototype.toLowerCase);
|
|
6896
|
+
const stringToString = unapply(String.prototype.toString);
|
|
6897
|
+
const stringMatch = unapply(String.prototype.match);
|
|
6898
|
+
const stringReplace = unapply(String.prototype.replace);
|
|
6899
|
+
const stringIndexOf = unapply(String.prototype.indexOf);
|
|
6900
|
+
const stringTrim = unapply(String.prototype.trim);
|
|
6901
|
+
const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
|
|
6902
|
+
const regExpTest = unapply(RegExp.prototype.test);
|
|
6903
|
+
const typeErrorCreate = unconstruct(TypeError);
|
|
6904
|
+
/**
|
|
6905
|
+
* Creates a new function that calls the given function with a specified thisArg and arguments.
|
|
6906
|
+
*
|
|
6907
|
+
* @param func - The function to be wrapped and called.
|
|
6908
|
+
* @returns A new function that calls the given function with a specified thisArg and arguments.
|
|
6909
|
+
*/
|
|
6910
|
+
function unapply(func) {
|
|
6911
|
+
return function (thisArg) {
|
|
6912
|
+
if (thisArg instanceof RegExp) {
|
|
6913
|
+
thisArg.lastIndex = 0;
|
|
6914
|
+
}
|
|
6915
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
6916
|
+
args[_key - 1] = arguments[_key];
|
|
6917
|
+
}
|
|
6918
|
+
return apply(func, thisArg, args);
|
|
6919
|
+
};
|
|
6920
|
+
}
|
|
6921
|
+
/**
|
|
6922
|
+
* Creates a new function that constructs an instance of the given constructor function with the provided arguments.
|
|
6923
|
+
*
|
|
6924
|
+
* @param func - The constructor function to be wrapped and called.
|
|
6925
|
+
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
|
6926
|
+
*/
|
|
6927
|
+
function unconstruct(func) {
|
|
6928
|
+
return function () {
|
|
6929
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
6930
|
+
args[_key2] = arguments[_key2];
|
|
6931
|
+
}
|
|
6932
|
+
return construct(func, args);
|
|
6933
|
+
};
|
|
6934
|
+
}
|
|
6935
|
+
/**
|
|
6936
|
+
* Add properties to a lookup table
|
|
6937
|
+
*
|
|
6938
|
+
* @param set - The set to which elements will be added.
|
|
6939
|
+
* @param array - The array containing elements to be added to the set.
|
|
6940
|
+
* @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
|
|
6941
|
+
* @returns The modified set with added elements.
|
|
6942
|
+
*/
|
|
6943
|
+
function addToSet(set, array) {
|
|
6944
|
+
let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
|
|
6945
|
+
if (setPrototypeOf) {
|
|
6946
|
+
// Make 'in' and truthy checks like Boolean(set.constructor)
|
|
6947
|
+
// independent of any properties defined on Object.prototype.
|
|
6948
|
+
// Prevent prototype setters from intercepting set as a this value.
|
|
6949
|
+
setPrototypeOf(set, null);
|
|
6950
|
+
}
|
|
6951
|
+
let l = array.length;
|
|
6952
|
+
while (l--) {
|
|
6953
|
+
let element = array[l];
|
|
6954
|
+
if (typeof element === 'string') {
|
|
6955
|
+
const lcElement = transformCaseFunc(element);
|
|
6956
|
+
if (lcElement !== element) {
|
|
6957
|
+
// Config presets (e.g. tags.js, attrs.js) are immutable.
|
|
6958
|
+
if (!isFrozen(array)) {
|
|
6959
|
+
array[l] = lcElement;
|
|
6960
|
+
}
|
|
6961
|
+
element = lcElement;
|
|
6962
|
+
}
|
|
6963
|
+
}
|
|
6964
|
+
set[element] = true;
|
|
6965
|
+
}
|
|
6966
|
+
return set;
|
|
6967
|
+
}
|
|
6968
|
+
/**
|
|
6969
|
+
* Clean up an array to harden against CSPP
|
|
6970
|
+
*
|
|
6971
|
+
* @param array - The array to be cleaned.
|
|
6972
|
+
* @returns The cleaned version of the array
|
|
6973
|
+
*/
|
|
6974
|
+
function cleanArray(array) {
|
|
6975
|
+
for (let index = 0; index < array.length; index++) {
|
|
6976
|
+
const isPropertyExist = objectHasOwnProperty(array, index);
|
|
6977
|
+
if (!isPropertyExist) {
|
|
6978
|
+
array[index] = null;
|
|
6979
|
+
}
|
|
6980
|
+
}
|
|
6981
|
+
return array;
|
|
6982
|
+
}
|
|
6983
|
+
/**
|
|
6984
|
+
* Shallow clone an object
|
|
6985
|
+
*
|
|
6986
|
+
* @param object - The object to be cloned.
|
|
6987
|
+
* @returns A new object that copies the original.
|
|
6988
|
+
*/
|
|
6989
|
+
function clone(object) {
|
|
6990
|
+
const newObject = create(null);
|
|
6991
|
+
for (const [property, value] of entries(object)) {
|
|
6992
|
+
const isPropertyExist = objectHasOwnProperty(object, property);
|
|
6993
|
+
if (isPropertyExist) {
|
|
6994
|
+
if (Array.isArray(value)) {
|
|
6995
|
+
newObject[property] = cleanArray(value);
|
|
6996
|
+
} else if (value && typeof value === 'object' && value.constructor === Object) {
|
|
6997
|
+
newObject[property] = clone(value);
|
|
6998
|
+
} else {
|
|
6999
|
+
newObject[property] = value;
|
|
7000
|
+
}
|
|
7001
|
+
}
|
|
7002
|
+
}
|
|
7003
|
+
return newObject;
|
|
7004
|
+
}
|
|
7005
|
+
/**
|
|
7006
|
+
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
|
7007
|
+
*
|
|
7008
|
+
* @param object - The object to look up the getter function in its prototype chain.
|
|
7009
|
+
* @param prop - The property name for which to find the getter function.
|
|
7010
|
+
* @returns The getter function found in the prototype chain or a fallback function.
|
|
7011
|
+
*/
|
|
7012
|
+
function lookupGetter(object, prop) {
|
|
7013
|
+
while (object !== null) {
|
|
7014
|
+
const desc = getOwnPropertyDescriptor(object, prop);
|
|
7015
|
+
if (desc) {
|
|
7016
|
+
if (desc.get) {
|
|
7017
|
+
return unapply(desc.get);
|
|
7018
|
+
}
|
|
7019
|
+
if (typeof desc.value === 'function') {
|
|
7020
|
+
return unapply(desc.value);
|
|
7021
|
+
}
|
|
7022
|
+
}
|
|
7023
|
+
object = getPrototypeOf(object);
|
|
7024
|
+
}
|
|
7025
|
+
function fallbackValue() {
|
|
7026
|
+
return null;
|
|
7027
|
+
}
|
|
7028
|
+
return fallbackValue;
|
|
7029
|
+
}
|
|
7030
|
+
|
|
7031
|
+
const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
|
|
7032
|
+
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
7033
|
+
const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
|
|
7034
|
+
// List of SVG elements that are disallowed by default.
|
|
7035
|
+
// We still need to know them so that we can do namespace
|
|
7036
|
+
// checks properly in case one wants to add them to
|
|
7037
|
+
// allow-list.
|
|
7038
|
+
const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);
|
|
7039
|
+
const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']);
|
|
7040
|
+
// Similarly to SVG, we want to know all MathML elements,
|
|
7041
|
+
// even those that we disallow by default.
|
|
7042
|
+
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
|
7043
|
+
const text = freeze(['#text']);
|
|
7044
|
+
|
|
7045
|
+
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
7046
|
+
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
7047
|
+
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
|
|
7048
|
+
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
7049
|
+
|
|
7050
|
+
// eslint-disable-next-line unicorn/better-regex
|
|
7051
|
+
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode
|
|
7052
|
+
const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
|
|
7053
|
+
const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm); // eslint-disable-line unicorn/better-regex
|
|
7054
|
+
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
|
|
7055
|
+
const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
|
|
7056
|
+
const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape
|
|
7057
|
+
);
|
|
7058
|
+
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
7059
|
+
const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
|
|
7060
|
+
);
|
|
7061
|
+
const DOCTYPE_NAME = seal(/^html$/i);
|
|
7062
|
+
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
7063
|
+
|
|
7064
|
+
var EXPRESSIONS = /*#__PURE__*/Object.freeze({
|
|
7065
|
+
__proto__: null,
|
|
7066
|
+
ARIA_ATTR: ARIA_ATTR,
|
|
7067
|
+
ATTR_WHITESPACE: ATTR_WHITESPACE,
|
|
7068
|
+
CUSTOM_ELEMENT: CUSTOM_ELEMENT,
|
|
7069
|
+
DATA_ATTR: DATA_ATTR,
|
|
7070
|
+
DOCTYPE_NAME: DOCTYPE_NAME,
|
|
7071
|
+
ERB_EXPR: ERB_EXPR,
|
|
7072
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI,
|
|
7073
|
+
IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
|
|
7074
|
+
MUSTACHE_EXPR: MUSTACHE_EXPR,
|
|
7075
|
+
TMPLIT_EXPR: TMPLIT_EXPR
|
|
7076
|
+
});
|
|
7077
|
+
|
|
7078
|
+
/* eslint-disable @typescript-eslint/indent */
|
|
7079
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
|
7080
|
+
const NODE_TYPE = {
|
|
7081
|
+
element: 1,
|
|
7082
|
+
attribute: 2,
|
|
7083
|
+
text: 3,
|
|
7084
|
+
cdataSection: 4,
|
|
7085
|
+
entityReference: 5,
|
|
7086
|
+
// Deprecated
|
|
7087
|
+
entityNode: 6,
|
|
7088
|
+
// Deprecated
|
|
7089
|
+
progressingInstruction: 7,
|
|
7090
|
+
comment: 8,
|
|
7091
|
+
document: 9,
|
|
7092
|
+
documentType: 10,
|
|
7093
|
+
documentFragment: 11,
|
|
7094
|
+
notation: 12 // Deprecated
|
|
7095
|
+
};
|
|
7096
|
+
const getGlobal = function getGlobal() {
|
|
7097
|
+
return typeof window === 'undefined' ? null : window;
|
|
7098
|
+
};
|
|
7099
|
+
/**
|
|
7100
|
+
* Creates a no-op policy for internal use only.
|
|
7101
|
+
* Don't export this function outside this module!
|
|
7102
|
+
* @param trustedTypes The policy factory.
|
|
7103
|
+
* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
|
|
7104
|
+
* @return The policy created (or null, if Trusted Types
|
|
7105
|
+
* are not supported or creating the policy failed).
|
|
7106
|
+
*/
|
|
7107
|
+
const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
|
|
7108
|
+
if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
|
|
7109
|
+
return null;
|
|
7110
|
+
}
|
|
7111
|
+
// Allow the callers to control the unique policy name
|
|
7112
|
+
// by adding a data-tt-policy-suffix to the script element with the DOMPurify.
|
|
7113
|
+
// Policy creation with duplicate names throws in Trusted Types.
|
|
7114
|
+
let suffix = null;
|
|
7115
|
+
const ATTR_NAME = 'data-tt-policy-suffix';
|
|
7116
|
+
if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
|
|
7117
|
+
suffix = purifyHostElement.getAttribute(ATTR_NAME);
|
|
7118
|
+
}
|
|
7119
|
+
const policyName = 'dompurify' + (suffix ? '#' + suffix : '');
|
|
7120
|
+
try {
|
|
7121
|
+
return trustedTypes.createPolicy(policyName, {
|
|
7122
|
+
createHTML(html) {
|
|
7123
|
+
return html;
|
|
7124
|
+
},
|
|
7125
|
+
createScriptURL(scriptUrl) {
|
|
7126
|
+
return scriptUrl;
|
|
7127
|
+
}
|
|
7128
|
+
});
|
|
7129
|
+
} catch (_) {
|
|
7130
|
+
// Policy creation failed (most likely another DOMPurify script has
|
|
7131
|
+
// already run). Skip creating the policy, as this will only cause errors
|
|
7132
|
+
// if TT are enforced.
|
|
7133
|
+
console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
|
|
7134
|
+
return null;
|
|
7135
|
+
}
|
|
7136
|
+
};
|
|
7137
|
+
const _createHooksMap = function _createHooksMap() {
|
|
7138
|
+
return {
|
|
7139
|
+
afterSanitizeAttributes: [],
|
|
7140
|
+
afterSanitizeElements: [],
|
|
7141
|
+
afterSanitizeShadowDOM: [],
|
|
7142
|
+
beforeSanitizeAttributes: [],
|
|
7143
|
+
beforeSanitizeElements: [],
|
|
7144
|
+
beforeSanitizeShadowDOM: [],
|
|
7145
|
+
uponSanitizeAttribute: [],
|
|
7146
|
+
uponSanitizeElement: [],
|
|
7147
|
+
uponSanitizeShadowNode: []
|
|
7148
|
+
};
|
|
7149
|
+
};
|
|
7150
|
+
function createDOMPurify() {
|
|
7151
|
+
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
7152
|
+
const DOMPurify = root => createDOMPurify(root);
|
|
7153
|
+
DOMPurify.version = '3.2.6';
|
|
7154
|
+
DOMPurify.removed = [];
|
|
7155
|
+
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
7156
|
+
// Not running in a browser, provide a factory function
|
|
7157
|
+
// so that you can pass your own Window
|
|
7158
|
+
DOMPurify.isSupported = false;
|
|
7159
|
+
return DOMPurify;
|
|
7160
|
+
}
|
|
7161
|
+
let {
|
|
7162
|
+
document
|
|
7163
|
+
} = window;
|
|
7164
|
+
const originalDocument = document;
|
|
7165
|
+
const currentScript = originalDocument.currentScript;
|
|
7166
|
+
const {
|
|
7167
|
+
DocumentFragment,
|
|
7168
|
+
HTMLTemplateElement,
|
|
7169
|
+
Node,
|
|
7170
|
+
Element,
|
|
7171
|
+
NodeFilter,
|
|
7172
|
+
NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,
|
|
7173
|
+
HTMLFormElement,
|
|
7174
|
+
DOMParser,
|
|
7175
|
+
trustedTypes
|
|
7176
|
+
} = window;
|
|
7177
|
+
const ElementPrototype = Element.prototype;
|
|
7178
|
+
const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
|
|
7179
|
+
const remove = lookupGetter(ElementPrototype, 'remove');
|
|
7180
|
+
const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
|
|
7181
|
+
const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
|
|
7182
|
+
const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
|
|
7183
|
+
// As per issue #47, the web-components registry is inherited by a
|
|
7184
|
+
// new document created via createHTMLDocument. As per the spec
|
|
7185
|
+
// (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
|
|
7186
|
+
// a new empty registry is used when creating a template contents owner
|
|
7187
|
+
// document, so we use that as our parent document to ensure nothing
|
|
7188
|
+
// is inherited.
|
|
7189
|
+
if (typeof HTMLTemplateElement === 'function') {
|
|
7190
|
+
const template = document.createElement('template');
|
|
7191
|
+
if (template.content && template.content.ownerDocument) {
|
|
7192
|
+
document = template.content.ownerDocument;
|
|
7193
|
+
}
|
|
7194
|
+
}
|
|
7195
|
+
let trustedTypesPolicy;
|
|
7196
|
+
let emptyHTML = '';
|
|
7197
|
+
const {
|
|
7198
|
+
implementation,
|
|
7199
|
+
createNodeIterator,
|
|
7200
|
+
createDocumentFragment,
|
|
7201
|
+
getElementsByTagName
|
|
7202
|
+
} = document;
|
|
7203
|
+
const {
|
|
7204
|
+
importNode
|
|
7205
|
+
} = originalDocument;
|
|
7206
|
+
let hooks = _createHooksMap();
|
|
7207
|
+
/**
|
|
7208
|
+
* Expose whether this browser supports running the full DOMPurify.
|
|
7209
|
+
*/
|
|
7210
|
+
DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;
|
|
7211
|
+
const {
|
|
7212
|
+
MUSTACHE_EXPR,
|
|
7213
|
+
ERB_EXPR,
|
|
7214
|
+
TMPLIT_EXPR,
|
|
7215
|
+
DATA_ATTR,
|
|
7216
|
+
ARIA_ATTR,
|
|
7217
|
+
IS_SCRIPT_OR_DATA,
|
|
7218
|
+
ATTR_WHITESPACE,
|
|
7219
|
+
CUSTOM_ELEMENT
|
|
7220
|
+
} = EXPRESSIONS;
|
|
7221
|
+
let {
|
|
7222
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI$1
|
|
7223
|
+
} = EXPRESSIONS;
|
|
7224
|
+
/**
|
|
7225
|
+
* We consider the elements and attributes below to be safe. Ideally
|
|
7226
|
+
* don't add any new ones but feel free to remove unwanted ones.
|
|
7227
|
+
*/
|
|
7228
|
+
/* allowed element names */
|
|
7229
|
+
let ALLOWED_TAGS = null;
|
|
7230
|
+
const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
|
|
7231
|
+
/* Allowed attribute names */
|
|
7232
|
+
let ALLOWED_ATTR = null;
|
|
7233
|
+
const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
|
|
7234
|
+
/*
|
|
7235
|
+
* Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
|
|
7236
|
+
* @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
|
|
7237
|
+
* @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
|
|
7238
|
+
* @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
|
|
7239
|
+
*/
|
|
7240
|
+
let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
7241
|
+
tagNameCheck: {
|
|
7242
|
+
writable: true,
|
|
7243
|
+
configurable: false,
|
|
7244
|
+
enumerable: true,
|
|
7245
|
+
value: null
|
|
7246
|
+
},
|
|
7247
|
+
attributeNameCheck: {
|
|
7248
|
+
writable: true,
|
|
7249
|
+
configurable: false,
|
|
7250
|
+
enumerable: true,
|
|
7251
|
+
value: null
|
|
7252
|
+
},
|
|
7253
|
+
allowCustomizedBuiltInElements: {
|
|
7254
|
+
writable: true,
|
|
7255
|
+
configurable: false,
|
|
7256
|
+
enumerable: true,
|
|
7257
|
+
value: false
|
|
7258
|
+
}
|
|
7259
|
+
}));
|
|
7260
|
+
/* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
|
|
7261
|
+
let FORBID_TAGS = null;
|
|
7262
|
+
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
|
7263
|
+
let FORBID_ATTR = null;
|
|
7264
|
+
/* Decide if ARIA attributes are okay */
|
|
7265
|
+
let ALLOW_ARIA_ATTR = true;
|
|
7266
|
+
/* Decide if custom data attributes are okay */
|
|
7267
|
+
let ALLOW_DATA_ATTR = true;
|
|
7268
|
+
/* Decide if unknown protocols are okay */
|
|
7269
|
+
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
|
7270
|
+
/* Decide if self-closing tags in attributes are allowed.
|
|
7271
|
+
* Usually removed due to a mXSS issue in jQuery 3.0 */
|
|
7272
|
+
let ALLOW_SELF_CLOSE_IN_ATTR = true;
|
|
7273
|
+
/* Output should be safe for common template engines.
|
|
7274
|
+
* This means, DOMPurify removes data attributes, mustaches and ERB
|
|
7275
|
+
*/
|
|
7276
|
+
let SAFE_FOR_TEMPLATES = false;
|
|
7277
|
+
/* Output should be safe even for XML used within HTML and alike.
|
|
7278
|
+
* This means, DOMPurify removes comments when containing risky content.
|
|
7279
|
+
*/
|
|
7280
|
+
let SAFE_FOR_XML = true;
|
|
7281
|
+
/* Decide if document with <html>... should be returned */
|
|
7282
|
+
let WHOLE_DOCUMENT = false;
|
|
7283
|
+
/* Track whether config is already set on this instance of DOMPurify. */
|
|
7284
|
+
let SET_CONFIG = false;
|
|
7285
|
+
/* Decide if all elements (e.g. style, script) must be children of
|
|
7286
|
+
* document.body. By default, browsers might move them to document.head */
|
|
7287
|
+
let FORCE_BODY = false;
|
|
7288
|
+
/* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
|
|
7289
|
+
* string (or a TrustedHTML object if Trusted Types are supported).
|
|
7290
|
+
* If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
|
|
7291
|
+
*/
|
|
7292
|
+
let RETURN_DOM = false;
|
|
7293
|
+
/* Decide if a DOM `DocumentFragment` should be returned, instead of a html
|
|
7294
|
+
* string (or a TrustedHTML object if Trusted Types are supported) */
|
|
7295
|
+
let RETURN_DOM_FRAGMENT = false;
|
|
7296
|
+
/* Try to return a Trusted Type object instead of a string, return a string in
|
|
7297
|
+
* case Trusted Types are not supported */
|
|
7298
|
+
let RETURN_TRUSTED_TYPE = false;
|
|
7299
|
+
/* Output should be free from DOM clobbering attacks?
|
|
7300
|
+
* This sanitizes markups named with colliding, clobberable built-in DOM APIs.
|
|
7301
|
+
*/
|
|
7302
|
+
let SANITIZE_DOM = true;
|
|
7303
|
+
/* Achieve full DOM Clobbering protection by isolating the namespace of named
|
|
7304
|
+
* properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
|
|
7305
|
+
*
|
|
7306
|
+
* HTML/DOM spec rules that enable DOM Clobbering:
|
|
7307
|
+
* - Named Access on Window (§7.3.3)
|
|
7308
|
+
* - DOM Tree Accessors (§3.1.5)
|
|
7309
|
+
* - Form Element Parent-Child Relations (§4.10.3)
|
|
7310
|
+
* - Iframe srcdoc / Nested WindowProxies (§4.8.5)
|
|
7311
|
+
* - HTMLCollection (§4.2.10.2)
|
|
7312
|
+
*
|
|
7313
|
+
* Namespace isolation is implemented by prefixing `id` and `name` attributes
|
|
7314
|
+
* with a constant string, i.e., `user-content-`
|
|
7315
|
+
*/
|
|
7316
|
+
let SANITIZE_NAMED_PROPS = false;
|
|
7317
|
+
const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';
|
|
7318
|
+
/* Keep element content when removing element? */
|
|
7319
|
+
let KEEP_CONTENT = true;
|
|
7320
|
+
/* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
|
|
7321
|
+
* of importing it into a new Document and returning a sanitized copy */
|
|
7322
|
+
let IN_PLACE = false;
|
|
7323
|
+
/* Allow usage of profiles like html, svg and mathMl */
|
|
7324
|
+
let USE_PROFILES = {};
|
|
7325
|
+
/* Tags to ignore content of when KEEP_CONTENT is true */
|
|
7326
|
+
let FORBID_CONTENTS = null;
|
|
7327
|
+
const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
|
|
7328
|
+
/* Tags that are safe for data: URIs */
|
|
7329
|
+
let DATA_URI_TAGS = null;
|
|
7330
|
+
const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
|
|
7331
|
+
/* Attributes safe for values like "javascript:" */
|
|
7332
|
+
let URI_SAFE_ATTRIBUTES = null;
|
|
7333
|
+
const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);
|
|
7334
|
+
const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
7335
|
+
const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
7336
|
+
const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
|
7337
|
+
/* Document namespace */
|
|
7338
|
+
let NAMESPACE = HTML_NAMESPACE;
|
|
7339
|
+
let IS_EMPTY_INPUT = false;
|
|
7340
|
+
/* Allowed XHTML+XML namespaces */
|
|
7341
|
+
let ALLOWED_NAMESPACES = null;
|
|
7342
|
+
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
|
7343
|
+
let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
|
|
7344
|
+
let HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);
|
|
7345
|
+
// Certain elements are allowed in both SVG and HTML
|
|
7346
|
+
// namespace. We need to specify them explicitly
|
|
7347
|
+
// so that they don't get erroneously deleted from
|
|
7348
|
+
// HTML namespace.
|
|
7349
|
+
const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
|
|
7350
|
+
/* Parsing of strict XHTML documents */
|
|
7351
|
+
let PARSER_MEDIA_TYPE = null;
|
|
7352
|
+
const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
|
|
7353
|
+
const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
|
|
7354
|
+
let transformCaseFunc = null;
|
|
7355
|
+
/* Keep a reference to config to pass to hooks */
|
|
7356
|
+
let CONFIG = null;
|
|
7357
|
+
/* Ideally, do not touch anything below this line */
|
|
7358
|
+
/* ______________________________________________ */
|
|
7359
|
+
const formElement = document.createElement('form');
|
|
7360
|
+
const isRegexOrFunction = function isRegexOrFunction(testValue) {
|
|
7361
|
+
return testValue instanceof RegExp || testValue instanceof Function;
|
|
7362
|
+
};
|
|
7363
|
+
/**
|
|
7364
|
+
* _parseConfig
|
|
7365
|
+
*
|
|
7366
|
+
* @param cfg optional config literal
|
|
7367
|
+
*/
|
|
7368
|
+
// eslint-disable-next-line complexity
|
|
7369
|
+
const _parseConfig = function _parseConfig() {
|
|
7370
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7371
|
+
if (CONFIG && CONFIG === cfg) {
|
|
7372
|
+
return;
|
|
7373
|
+
}
|
|
7374
|
+
/* Shield configuration object from tampering */
|
|
7375
|
+
if (!cfg || typeof cfg !== 'object') {
|
|
7376
|
+
cfg = {};
|
|
7377
|
+
}
|
|
7378
|
+
/* Shield configuration object from prototype pollution */
|
|
7379
|
+
cfg = clone(cfg);
|
|
7380
|
+
PARSER_MEDIA_TYPE =
|
|
7381
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
|
7382
|
+
SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
|
|
7383
|
+
// HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
|
|
7384
|
+
transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
|
|
7385
|
+
/* Set configuration parameters */
|
|
7386
|
+
ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
|
7387
|
+
ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
|
7388
|
+
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
|
7389
|
+
URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
|
7390
|
+
DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
|
|
7391
|
+
FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
7392
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
7393
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
7394
|
+
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
|
|
7395
|
+
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
|
7396
|
+
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
|
7397
|
+
ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
|
|
7398
|
+
ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true
|
|
7399
|
+
SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
|
|
7400
|
+
SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true
|
|
7401
|
+
WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
|
|
7402
|
+
RETURN_DOM = cfg.RETURN_DOM || false; // Default false
|
|
7403
|
+
RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
|
|
7404
|
+
RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
|
|
7405
|
+
FORCE_BODY = cfg.FORCE_BODY || false; // Default false
|
|
7406
|
+
SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
|
|
7407
|
+
SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
|
|
7408
|
+
KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
|
|
7409
|
+
IN_PLACE = cfg.IN_PLACE || false; // Default false
|
|
7410
|
+
IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
|
|
7411
|
+
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
|
7412
|
+
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
|
|
7413
|
+
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
|
|
7414
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
|
|
7415
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
|
7416
|
+
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|
|
7417
|
+
}
|
|
7418
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
|
|
7419
|
+
CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
|
|
7420
|
+
}
|
|
7421
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {
|
|
7422
|
+
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
|
|
7423
|
+
}
|
|
7424
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
7425
|
+
ALLOW_DATA_ATTR = false;
|
|
7426
|
+
}
|
|
7427
|
+
if (RETURN_DOM_FRAGMENT) {
|
|
7428
|
+
RETURN_DOM = true;
|
|
7429
|
+
}
|
|
7430
|
+
/* Parse profile info */
|
|
7431
|
+
if (USE_PROFILES) {
|
|
7432
|
+
ALLOWED_TAGS = addToSet({}, text);
|
|
7433
|
+
ALLOWED_ATTR = [];
|
|
7434
|
+
if (USE_PROFILES.html === true) {
|
|
7435
|
+
addToSet(ALLOWED_TAGS, html$1);
|
|
7436
|
+
addToSet(ALLOWED_ATTR, html);
|
|
7437
|
+
}
|
|
7438
|
+
if (USE_PROFILES.svg === true) {
|
|
7439
|
+
addToSet(ALLOWED_TAGS, svg$1);
|
|
7440
|
+
addToSet(ALLOWED_ATTR, svg);
|
|
7441
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7442
|
+
}
|
|
7443
|
+
if (USE_PROFILES.svgFilters === true) {
|
|
7444
|
+
addToSet(ALLOWED_TAGS, svgFilters);
|
|
7445
|
+
addToSet(ALLOWED_ATTR, svg);
|
|
7446
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7447
|
+
}
|
|
7448
|
+
if (USE_PROFILES.mathMl === true) {
|
|
7449
|
+
addToSet(ALLOWED_TAGS, mathMl$1);
|
|
7450
|
+
addToSet(ALLOWED_ATTR, mathMl);
|
|
7451
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7452
|
+
}
|
|
7453
|
+
}
|
|
7454
|
+
/* Merge configuration parameters */
|
|
7455
|
+
if (cfg.ADD_TAGS) {
|
|
7456
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
7457
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
7458
|
+
}
|
|
7459
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
7460
|
+
}
|
|
7461
|
+
if (cfg.ADD_ATTR) {
|
|
7462
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
7463
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
7464
|
+
}
|
|
7465
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
7466
|
+
}
|
|
7467
|
+
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
7468
|
+
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
7469
|
+
}
|
|
7470
|
+
if (cfg.FORBID_CONTENTS) {
|
|
7471
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
7472
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
7473
|
+
}
|
|
7474
|
+
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
7475
|
+
}
|
|
7476
|
+
/* Add #text in case KEEP_CONTENT is set to true */
|
|
7477
|
+
if (KEEP_CONTENT) {
|
|
7478
|
+
ALLOWED_TAGS['#text'] = true;
|
|
7479
|
+
}
|
|
7480
|
+
/* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
|
|
7481
|
+
if (WHOLE_DOCUMENT) {
|
|
7482
|
+
addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
|
|
7483
|
+
}
|
|
7484
|
+
/* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
|
|
7485
|
+
if (ALLOWED_TAGS.table) {
|
|
7486
|
+
addToSet(ALLOWED_TAGS, ['tbody']);
|
|
7487
|
+
delete FORBID_TAGS.tbody;
|
|
7488
|
+
}
|
|
7489
|
+
if (cfg.TRUSTED_TYPES_POLICY) {
|
|
7490
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
|
|
7491
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
7492
|
+
}
|
|
7493
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
|
|
7494
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
7495
|
+
}
|
|
7496
|
+
// Overwrite existing TrustedTypes policy.
|
|
7497
|
+
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
|
7498
|
+
// Sign local variables required by `sanitize`.
|
|
7499
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
|
7500
|
+
} else {
|
|
7501
|
+
// Uninitialized policy, attempt to initialize the internal dompurify policy.
|
|
7502
|
+
if (trustedTypesPolicy === undefined) {
|
|
7503
|
+
trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
|
7504
|
+
}
|
|
7505
|
+
// If creating the internal policy succeeded sign internal variables.
|
|
7506
|
+
if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {
|
|
7507
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
|
7508
|
+
}
|
|
7509
|
+
}
|
|
7510
|
+
// Prevent further manipulation of configuration.
|
|
7511
|
+
// Not available in IE8, Safari 5, etc.
|
|
7512
|
+
if (freeze) {
|
|
7513
|
+
freeze(cfg);
|
|
7514
|
+
}
|
|
7515
|
+
CONFIG = cfg;
|
|
7516
|
+
};
|
|
7517
|
+
/* Keep track of all possible SVG and MathML tags
|
|
7518
|
+
* so that we can perform the namespace checks
|
|
7519
|
+
* correctly. */
|
|
7520
|
+
const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
|
|
7521
|
+
const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
|
|
7522
|
+
/**
|
|
7523
|
+
* @param element a DOM element whose namespace is being checked
|
|
7524
|
+
* @returns Return false if the element has a
|
|
7525
|
+
* namespace that a spec-compliant parser would never
|
|
7526
|
+
* return. Return true otherwise.
|
|
7527
|
+
*/
|
|
7528
|
+
const _checkValidNamespace = function _checkValidNamespace(element) {
|
|
7529
|
+
let parent = getParentNode(element);
|
|
7530
|
+
// In JSDOM, if we're inside shadow DOM, then parentNode
|
|
7531
|
+
// can be null. We just simulate parent in this case.
|
|
7532
|
+
if (!parent || !parent.tagName) {
|
|
7533
|
+
parent = {
|
|
7534
|
+
namespaceURI: NAMESPACE,
|
|
7535
|
+
tagName: 'template'
|
|
7536
|
+
};
|
|
7537
|
+
}
|
|
7538
|
+
const tagName = stringToLowerCase(element.tagName);
|
|
7539
|
+
const parentTagName = stringToLowerCase(parent.tagName);
|
|
7540
|
+
if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
7541
|
+
return false;
|
|
7542
|
+
}
|
|
7543
|
+
if (element.namespaceURI === SVG_NAMESPACE) {
|
|
7544
|
+
// The only way to switch from HTML namespace to SVG
|
|
7545
|
+
// is via <svg>. If it happens via any other tag, then
|
|
7546
|
+
// it should be killed.
|
|
7547
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
7548
|
+
return tagName === 'svg';
|
|
7549
|
+
}
|
|
7550
|
+
// The only way to switch from MathML to SVG is via`
|
|
7551
|
+
// svg if parent is either <annotation-xml> or MathML
|
|
7552
|
+
// text integration points.
|
|
7553
|
+
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
|
7554
|
+
return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
|
7555
|
+
}
|
|
7556
|
+
// We only allow elements that are defined in SVG
|
|
7557
|
+
// spec. All others are disallowed in SVG namespace.
|
|
7558
|
+
return Boolean(ALL_SVG_TAGS[tagName]);
|
|
7559
|
+
}
|
|
7560
|
+
if (element.namespaceURI === MATHML_NAMESPACE) {
|
|
7561
|
+
// The only way to switch from HTML namespace to MathML
|
|
7562
|
+
// is via <math>. If it happens via any other tag, then
|
|
7563
|
+
// it should be killed.
|
|
7564
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
7565
|
+
return tagName === 'math';
|
|
7566
|
+
}
|
|
7567
|
+
// The only way to switch from SVG to MathML is via
|
|
7568
|
+
// <math> and HTML integration points
|
|
7569
|
+
if (parent.namespaceURI === SVG_NAMESPACE) {
|
|
7570
|
+
return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
|
|
7571
|
+
}
|
|
7572
|
+
// We only allow elements that are defined in MathML
|
|
7573
|
+
// spec. All others are disallowed in MathML namespace.
|
|
7574
|
+
return Boolean(ALL_MATHML_TAGS[tagName]);
|
|
7575
|
+
}
|
|
7576
|
+
if (element.namespaceURI === HTML_NAMESPACE) {
|
|
7577
|
+
// The only way to switch from SVG to HTML is via
|
|
7578
|
+
// HTML integration points, and from MathML to HTML
|
|
7579
|
+
// is via MathML text integration points
|
|
7580
|
+
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
|
7581
|
+
return false;
|
|
7582
|
+
}
|
|
7583
|
+
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
|
7584
|
+
return false;
|
|
7585
|
+
}
|
|
7586
|
+
// We disallow tags that are specific for MathML
|
|
7587
|
+
// or SVG and should never appear in HTML namespace
|
|
7588
|
+
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
|
7589
|
+
}
|
|
7590
|
+
// For XHTML and XML documents that support custom namespaces
|
|
7591
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
7592
|
+
return true;
|
|
7593
|
+
}
|
|
7594
|
+
// The code should never reach this place (this means
|
|
7595
|
+
// that the element somehow got namespace that is not
|
|
7596
|
+
// HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
|
|
7597
|
+
// Return false just in case.
|
|
7598
|
+
return false;
|
|
7599
|
+
};
|
|
7600
|
+
/**
|
|
7601
|
+
* _forceRemove
|
|
7602
|
+
*
|
|
7603
|
+
* @param node a DOM node
|
|
7604
|
+
*/
|
|
7605
|
+
const _forceRemove = function _forceRemove(node) {
|
|
7606
|
+
arrayPush(DOMPurify.removed, {
|
|
7607
|
+
element: node
|
|
7608
|
+
});
|
|
7609
|
+
try {
|
|
7610
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-remove
|
|
7611
|
+
getParentNode(node).removeChild(node);
|
|
7612
|
+
} catch (_) {
|
|
7613
|
+
remove(node);
|
|
7614
|
+
}
|
|
7615
|
+
};
|
|
7616
|
+
/**
|
|
7617
|
+
* _removeAttribute
|
|
7618
|
+
*
|
|
7619
|
+
* @param name an Attribute name
|
|
7620
|
+
* @param element a DOM node
|
|
7621
|
+
*/
|
|
7622
|
+
const _removeAttribute = function _removeAttribute(name, element) {
|
|
7623
|
+
try {
|
|
7624
|
+
arrayPush(DOMPurify.removed, {
|
|
7625
|
+
attribute: element.getAttributeNode(name),
|
|
7626
|
+
from: element
|
|
7627
|
+
});
|
|
7628
|
+
} catch (_) {
|
|
7629
|
+
arrayPush(DOMPurify.removed, {
|
|
7630
|
+
attribute: null,
|
|
7631
|
+
from: element
|
|
7632
|
+
});
|
|
7633
|
+
}
|
|
7634
|
+
element.removeAttribute(name);
|
|
7635
|
+
// We void attribute values for unremovable "is" attributes
|
|
7636
|
+
if (name === 'is') {
|
|
7637
|
+
if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
|
|
7638
|
+
try {
|
|
7639
|
+
_forceRemove(element);
|
|
7640
|
+
} catch (_) {}
|
|
7641
|
+
} else {
|
|
7642
|
+
try {
|
|
7643
|
+
element.setAttribute(name, '');
|
|
7644
|
+
} catch (_) {}
|
|
7645
|
+
}
|
|
7646
|
+
}
|
|
7647
|
+
};
|
|
7648
|
+
/**
|
|
7649
|
+
* _initDocument
|
|
7650
|
+
*
|
|
7651
|
+
* @param dirty - a string of dirty markup
|
|
7652
|
+
* @return a DOM, filled with the dirty markup
|
|
7653
|
+
*/
|
|
7654
|
+
const _initDocument = function _initDocument(dirty) {
|
|
7655
|
+
/* Create a HTML document */
|
|
7656
|
+
let doc = null;
|
|
7657
|
+
let leadingWhitespace = null;
|
|
7658
|
+
if (FORCE_BODY) {
|
|
7659
|
+
dirty = '<remove></remove>' + dirty;
|
|
7660
|
+
} else {
|
|
7661
|
+
/* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
|
|
7662
|
+
const matches = stringMatch(dirty, /^[\r\n\t ]+/);
|
|
7663
|
+
leadingWhitespace = matches && matches[0];
|
|
7664
|
+
}
|
|
7665
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {
|
|
7666
|
+
// Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
|
|
7667
|
+
dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
|
|
7668
|
+
}
|
|
7669
|
+
const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
7670
|
+
/*
|
|
7671
|
+
* Use the DOMParser API by default, fallback later if needs be
|
|
7672
|
+
* DOMParser not work for svg when has multiple root element.
|
|
7673
|
+
*/
|
|
7674
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
7675
|
+
try {
|
|
7676
|
+
doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
|
|
7677
|
+
} catch (_) {}
|
|
7678
|
+
}
|
|
7679
|
+
/* Use createHTMLDocument in case DOMParser is not available */
|
|
7680
|
+
if (!doc || !doc.documentElement) {
|
|
7681
|
+
doc = implementation.createDocument(NAMESPACE, 'template', null);
|
|
7682
|
+
try {
|
|
7683
|
+
doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
|
|
7684
|
+
} catch (_) {
|
|
7685
|
+
// Syntax error if dirtyPayload is invalid xml
|
|
7686
|
+
}
|
|
7687
|
+
}
|
|
7688
|
+
const body = doc.body || doc.documentElement;
|
|
7689
|
+
if (dirty && leadingWhitespace) {
|
|
7690
|
+
body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
|
|
7691
|
+
}
|
|
7692
|
+
/* Work on whole document or just its body */
|
|
7693
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
7694
|
+
return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
|
|
7695
|
+
}
|
|
7696
|
+
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
|
7697
|
+
};
|
|
7698
|
+
/**
|
|
7699
|
+
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
|
7700
|
+
*
|
|
7701
|
+
* @param root The root element or node to start traversing on.
|
|
7702
|
+
* @return The created NodeIterator
|
|
7703
|
+
*/
|
|
7704
|
+
const _createNodeIterator = function _createNodeIterator(root) {
|
|
7705
|
+
return createNodeIterator.call(root.ownerDocument || root, root,
|
|
7706
|
+
// eslint-disable-next-line no-bitwise
|
|
7707
|
+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
|
7708
|
+
};
|
|
7709
|
+
/**
|
|
7710
|
+
* _isClobbered
|
|
7711
|
+
*
|
|
7712
|
+
* @param element element to check for clobbering attacks
|
|
7713
|
+
* @return true if clobbered, false if safe
|
|
7714
|
+
*/
|
|
7715
|
+
const _isClobbered = function _isClobbered(element) {
|
|
7716
|
+
return element instanceof HTMLFormElement && (typeof element.nodeName !== 'string' || typeof element.textContent !== 'string' || typeof element.removeChild !== 'function' || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== 'function' || typeof element.setAttribute !== 'function' || typeof element.namespaceURI !== 'string' || typeof element.insertBefore !== 'function' || typeof element.hasChildNodes !== 'function');
|
|
7717
|
+
};
|
|
7718
|
+
/**
|
|
7719
|
+
* Checks whether the given object is a DOM node.
|
|
7720
|
+
*
|
|
7721
|
+
* @param value object to check whether it's a DOM node
|
|
7722
|
+
* @return true is object is a DOM node
|
|
7723
|
+
*/
|
|
7724
|
+
const _isNode = function _isNode(value) {
|
|
7725
|
+
return typeof Node === 'function' && value instanceof Node;
|
|
7726
|
+
};
|
|
7727
|
+
function _executeHooks(hooks, currentNode, data) {
|
|
7728
|
+
arrayForEach(hooks, hook => {
|
|
7729
|
+
hook.call(DOMPurify, currentNode, data, CONFIG);
|
|
7730
|
+
});
|
|
7731
|
+
}
|
|
7732
|
+
/**
|
|
7733
|
+
* _sanitizeElements
|
|
7734
|
+
*
|
|
7735
|
+
* @protect nodeName
|
|
7736
|
+
* @protect textContent
|
|
7737
|
+
* @protect removeChild
|
|
7738
|
+
* @param currentNode to check for permission to exist
|
|
7739
|
+
* @return true if node was killed, false if left alive
|
|
7740
|
+
*/
|
|
7741
|
+
const _sanitizeElements = function _sanitizeElements(currentNode) {
|
|
7742
|
+
let content = null;
|
|
7743
|
+
/* Execute a hook if present */
|
|
7744
|
+
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
7745
|
+
/* Check if element is clobbered or can clobber */
|
|
7746
|
+
if (_isClobbered(currentNode)) {
|
|
7747
|
+
_forceRemove(currentNode);
|
|
7748
|
+
return true;
|
|
7749
|
+
}
|
|
7750
|
+
/* Now let's check the element's type and name */
|
|
7751
|
+
const tagName = transformCaseFunc(currentNode.nodeName);
|
|
7752
|
+
/* Execute a hook if present */
|
|
7753
|
+
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
|
7754
|
+
tagName,
|
|
7755
|
+
allowedTags: ALLOWED_TAGS
|
|
7756
|
+
});
|
|
7757
|
+
/* Detect mXSS attempts abusing namespace confusion */
|
|
7758
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
7759
|
+
_forceRemove(currentNode);
|
|
7760
|
+
return true;
|
|
7761
|
+
}
|
|
7762
|
+
/* Remove any occurrence of processing instructions */
|
|
7763
|
+
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
7764
|
+
_forceRemove(currentNode);
|
|
7765
|
+
return true;
|
|
7766
|
+
}
|
|
7767
|
+
/* Remove any kind of possibly harmful comments */
|
|
7768
|
+
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
|
|
7769
|
+
_forceRemove(currentNode);
|
|
7770
|
+
return true;
|
|
7771
|
+
}
|
|
7772
|
+
/* Remove element if anything forbids its presence */
|
|
7773
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
7774
|
+
/* Check if we have a custom element to handle */
|
|
7775
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
7776
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
7777
|
+
return false;
|
|
7778
|
+
}
|
|
7779
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
|
7780
|
+
return false;
|
|
7781
|
+
}
|
|
7782
|
+
}
|
|
7783
|
+
/* Keep content except for bad-listed elements */
|
|
7784
|
+
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
7785
|
+
const parentNode = getParentNode(currentNode) || currentNode.parentNode;
|
|
7786
|
+
const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
|
|
7787
|
+
if (childNodes && parentNode) {
|
|
7788
|
+
const childCount = childNodes.length;
|
|
7789
|
+
for (let i = childCount - 1; i >= 0; --i) {
|
|
7790
|
+
const childClone = cloneNode(childNodes[i], true);
|
|
7791
|
+
childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
|
|
7792
|
+
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
|
7793
|
+
}
|
|
7794
|
+
}
|
|
7795
|
+
}
|
|
7796
|
+
_forceRemove(currentNode);
|
|
7797
|
+
return true;
|
|
7798
|
+
}
|
|
7799
|
+
/* Check whether element has a valid namespace */
|
|
7800
|
+
if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
|
|
7801
|
+
_forceRemove(currentNode);
|
|
7802
|
+
return true;
|
|
7803
|
+
}
|
|
7804
|
+
/* Make sure that older browsers don't get fallback-tag mXSS */
|
|
7805
|
+
if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
|
|
7806
|
+
_forceRemove(currentNode);
|
|
7807
|
+
return true;
|
|
7808
|
+
}
|
|
7809
|
+
/* Sanitize element content to be template-safe */
|
|
7810
|
+
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
|
|
7811
|
+
/* Get the element's text content */
|
|
7812
|
+
content = currentNode.textContent;
|
|
7813
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
7814
|
+
content = stringReplace(content, expr, ' ');
|
|
7815
|
+
});
|
|
7816
|
+
if (currentNode.textContent !== content) {
|
|
7817
|
+
arrayPush(DOMPurify.removed, {
|
|
7818
|
+
element: currentNode.cloneNode()
|
|
7819
|
+
});
|
|
7820
|
+
currentNode.textContent = content;
|
|
7821
|
+
}
|
|
7822
|
+
}
|
|
7823
|
+
/* Execute a hook if present */
|
|
7824
|
+
_executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
|
7825
|
+
return false;
|
|
7826
|
+
};
|
|
7827
|
+
/**
|
|
7828
|
+
* _isValidAttribute
|
|
7829
|
+
*
|
|
7830
|
+
* @param lcTag Lowercase tag name of containing element.
|
|
7831
|
+
* @param lcName Lowercase attribute name.
|
|
7832
|
+
* @param value Attribute value.
|
|
7833
|
+
* @return Returns true if `value` is valid, otherwise false.
|
|
7834
|
+
*/
|
|
7835
|
+
// eslint-disable-next-line complexity
|
|
7836
|
+
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
7837
|
+
/* Make sure attribute cannot clobber */
|
|
7838
|
+
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
7839
|
+
return false;
|
|
7840
|
+
}
|
|
7841
|
+
/* Allow valid data-* attributes: At least one character after "-"
|
|
7842
|
+
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
7843
|
+
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
7844
|
+
We don't need to check the value; it's always URI safe. */
|
|
7845
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
7846
|
+
if (
|
|
7847
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
7848
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
7849
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
7850
|
+
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||
|
|
7851
|
+
// Alternative, second condition checks if it's an `is`-attribute, AND
|
|
7852
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
7853
|
+
lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {
|
|
7854
|
+
return false;
|
|
7855
|
+
}
|
|
7856
|
+
/* Check value is safe. First, is attr inert? If so, is safe */
|
|
7857
|
+
} else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (value) {
|
|
7858
|
+
return false;
|
|
7859
|
+
} else ;
|
|
7860
|
+
return true;
|
|
7861
|
+
};
|
|
7862
|
+
/**
|
|
7863
|
+
* _isBasicCustomElement
|
|
7864
|
+
* checks if at least one dash is included in tagName, and it's not the first char
|
|
7865
|
+
* for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
|
|
7866
|
+
*
|
|
7867
|
+
* @param tagName name of the tag of the node to sanitize
|
|
7868
|
+
* @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
|
7869
|
+
*/
|
|
7870
|
+
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
|
7871
|
+
return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);
|
|
7872
|
+
};
|
|
7873
|
+
/**
|
|
7874
|
+
* _sanitizeAttributes
|
|
7875
|
+
*
|
|
7876
|
+
* @protect attributes
|
|
7877
|
+
* @protect nodeName
|
|
7878
|
+
* @protect removeAttribute
|
|
7879
|
+
* @protect setAttribute
|
|
7880
|
+
*
|
|
7881
|
+
* @param currentNode to sanitize
|
|
7882
|
+
*/
|
|
7883
|
+
const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
|
|
7884
|
+
/* Execute a hook if present */
|
|
7885
|
+
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
|
7886
|
+
const {
|
|
7887
|
+
attributes
|
|
7888
|
+
} = currentNode;
|
|
7889
|
+
/* Check if we have attributes; if not we might have a text node */
|
|
7890
|
+
if (!attributes || _isClobbered(currentNode)) {
|
|
7891
|
+
return;
|
|
7892
|
+
}
|
|
7893
|
+
const hookEvent = {
|
|
7894
|
+
attrName: '',
|
|
7895
|
+
attrValue: '',
|
|
7896
|
+
keepAttr: true,
|
|
7897
|
+
allowedAttributes: ALLOWED_ATTR,
|
|
7898
|
+
forceKeepAttr: undefined
|
|
7899
|
+
};
|
|
7900
|
+
let l = attributes.length;
|
|
7901
|
+
/* Go backwards over all attributes; safely remove bad ones */
|
|
7902
|
+
while (l--) {
|
|
7903
|
+
const attr = attributes[l];
|
|
7904
|
+
const {
|
|
7905
|
+
name,
|
|
7906
|
+
namespaceURI,
|
|
7907
|
+
value: attrValue
|
|
7908
|
+
} = attr;
|
|
7909
|
+
const lcName = transformCaseFunc(name);
|
|
7910
|
+
const initValue = attrValue;
|
|
7911
|
+
let value = name === 'value' ? initValue : stringTrim(initValue);
|
|
7912
|
+
/* Execute a hook if present */
|
|
7913
|
+
hookEvent.attrName = lcName;
|
|
7914
|
+
hookEvent.attrValue = value;
|
|
7915
|
+
hookEvent.keepAttr = true;
|
|
7916
|
+
hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
|
|
7917
|
+
_executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
|
|
7918
|
+
value = hookEvent.attrValue;
|
|
7919
|
+
/* Full DOM Clobbering protection via namespace isolation,
|
|
7920
|
+
* Prefix id and name attributes with `user-content-`
|
|
7921
|
+
*/
|
|
7922
|
+
if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {
|
|
7923
|
+
// Remove the attribute with this value
|
|
7924
|
+
_removeAttribute(name, currentNode);
|
|
7925
|
+
// Prefix the value and later re-create the attribute with the sanitized value
|
|
7926
|
+
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
7927
|
+
}
|
|
7928
|
+
/* Work around a security issue with comments inside attributes */
|
|
7929
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
7930
|
+
_removeAttribute(name, currentNode);
|
|
7931
|
+
continue;
|
|
7932
|
+
}
|
|
7933
|
+
/* Did the hooks approve of the attribute? */
|
|
7934
|
+
if (hookEvent.forceKeepAttr) {
|
|
7935
|
+
continue;
|
|
7936
|
+
}
|
|
7937
|
+
/* Did the hooks approve of the attribute? */
|
|
7938
|
+
if (!hookEvent.keepAttr) {
|
|
7939
|
+
_removeAttribute(name, currentNode);
|
|
7940
|
+
continue;
|
|
7941
|
+
}
|
|
7942
|
+
/* Work around a security issue in jQuery 3.0 */
|
|
7943
|
+
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
7944
|
+
_removeAttribute(name, currentNode);
|
|
7945
|
+
continue;
|
|
7946
|
+
}
|
|
7947
|
+
/* Sanitize attribute content to be template-safe */
|
|
7948
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
7949
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
7950
|
+
value = stringReplace(value, expr, ' ');
|
|
7951
|
+
});
|
|
7952
|
+
}
|
|
7953
|
+
/* Is `value` valid for this attribute? */
|
|
7954
|
+
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
7955
|
+
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
7956
|
+
_removeAttribute(name, currentNode);
|
|
7957
|
+
continue;
|
|
7958
|
+
}
|
|
7959
|
+
/* Handle attributes that require Trusted Types */
|
|
7960
|
+
if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {
|
|
7961
|
+
if (namespaceURI) ; else {
|
|
7962
|
+
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
7963
|
+
case 'TrustedHTML':
|
|
7964
|
+
{
|
|
7965
|
+
value = trustedTypesPolicy.createHTML(value);
|
|
7966
|
+
break;
|
|
7967
|
+
}
|
|
7968
|
+
case 'TrustedScriptURL':
|
|
7969
|
+
{
|
|
7970
|
+
value = trustedTypesPolicy.createScriptURL(value);
|
|
7971
|
+
break;
|
|
7972
|
+
}
|
|
7973
|
+
}
|
|
7974
|
+
}
|
|
7975
|
+
}
|
|
7976
|
+
/* Handle invalid data-* attribute set by try-catching it */
|
|
7977
|
+
if (value !== initValue) {
|
|
7978
|
+
try {
|
|
7979
|
+
if (namespaceURI) {
|
|
7980
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
7981
|
+
} else {
|
|
7982
|
+
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
|
7983
|
+
currentNode.setAttribute(name, value);
|
|
7984
|
+
}
|
|
7985
|
+
if (_isClobbered(currentNode)) {
|
|
7986
|
+
_forceRemove(currentNode);
|
|
7987
|
+
} else {
|
|
7988
|
+
arrayPop(DOMPurify.removed);
|
|
7989
|
+
}
|
|
7990
|
+
} catch (_) {
|
|
7991
|
+
_removeAttribute(name, currentNode);
|
|
7992
|
+
}
|
|
7993
|
+
}
|
|
7994
|
+
}
|
|
7995
|
+
/* Execute a hook if present */
|
|
7996
|
+
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
7997
|
+
};
|
|
7998
|
+
/**
|
|
7999
|
+
* _sanitizeShadowDOM
|
|
8000
|
+
*
|
|
8001
|
+
* @param fragment to iterate over recursively
|
|
8002
|
+
*/
|
|
8003
|
+
const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
|
|
8004
|
+
let shadowNode = null;
|
|
8005
|
+
const shadowIterator = _createNodeIterator(fragment);
|
|
8006
|
+
/* Execute a hook if present */
|
|
8007
|
+
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
8008
|
+
while (shadowNode = shadowIterator.nextNode()) {
|
|
8009
|
+
/* Execute a hook if present */
|
|
8010
|
+
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
|
8011
|
+
/* Sanitize tags and elements */
|
|
8012
|
+
_sanitizeElements(shadowNode);
|
|
8013
|
+
/* Check attributes next */
|
|
8014
|
+
_sanitizeAttributes(shadowNode);
|
|
8015
|
+
/* Deep shadow DOM detected */
|
|
8016
|
+
if (shadowNode.content instanceof DocumentFragment) {
|
|
8017
|
+
_sanitizeShadowDOM(shadowNode.content);
|
|
8018
|
+
}
|
|
8019
|
+
}
|
|
8020
|
+
/* Execute a hook if present */
|
|
8021
|
+
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
8022
|
+
};
|
|
8023
|
+
// eslint-disable-next-line complexity
|
|
8024
|
+
DOMPurify.sanitize = function (dirty) {
|
|
8025
|
+
let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8026
|
+
let body = null;
|
|
8027
|
+
let importedNode = null;
|
|
8028
|
+
let currentNode = null;
|
|
8029
|
+
let returnNode = null;
|
|
8030
|
+
/* Make sure we have a string to sanitize.
|
|
8031
|
+
DO NOT return early, as this will return the wrong type if
|
|
8032
|
+
the user has requested a DOM object rather than a string */
|
|
8033
|
+
IS_EMPTY_INPUT = !dirty;
|
|
8034
|
+
if (IS_EMPTY_INPUT) {
|
|
8035
|
+
dirty = '<!-->';
|
|
8036
|
+
}
|
|
8037
|
+
/* Stringify, in case dirty is an object */
|
|
8038
|
+
if (typeof dirty !== 'string' && !_isNode(dirty)) {
|
|
8039
|
+
if (typeof dirty.toString === 'function') {
|
|
8040
|
+
dirty = dirty.toString();
|
|
8041
|
+
if (typeof dirty !== 'string') {
|
|
8042
|
+
throw typeErrorCreate('dirty is not a string, aborting');
|
|
8043
|
+
}
|
|
8044
|
+
} else {
|
|
8045
|
+
throw typeErrorCreate('toString is not a function');
|
|
8046
|
+
}
|
|
8047
|
+
}
|
|
8048
|
+
/* Return dirty HTML if DOMPurify cannot run */
|
|
8049
|
+
if (!DOMPurify.isSupported) {
|
|
8050
|
+
return dirty;
|
|
8051
|
+
}
|
|
8052
|
+
/* Assign config vars */
|
|
8053
|
+
if (!SET_CONFIG) {
|
|
8054
|
+
_parseConfig(cfg);
|
|
8055
|
+
}
|
|
8056
|
+
/* Clean up removed elements */
|
|
8057
|
+
DOMPurify.removed = [];
|
|
8058
|
+
/* Check if dirty is correctly typed for IN_PLACE */
|
|
8059
|
+
if (typeof dirty === 'string') {
|
|
8060
|
+
IN_PLACE = false;
|
|
8061
|
+
}
|
|
8062
|
+
if (IN_PLACE) {
|
|
8063
|
+
/* Do some early pre-sanitization to avoid unsafe root nodes */
|
|
8064
|
+
if (dirty.nodeName) {
|
|
8065
|
+
const tagName = transformCaseFunc(dirty.nodeName);
|
|
8066
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
8067
|
+
throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
|
|
8068
|
+
}
|
|
8069
|
+
}
|
|
8070
|
+
} else if (dirty instanceof Node) {
|
|
8071
|
+
/* If dirty is a DOM element, append to an empty document to avoid
|
|
8072
|
+
elements being stripped by the parser */
|
|
8073
|
+
body = _initDocument('<!---->');
|
|
8074
|
+
importedNode = body.ownerDocument.importNode(dirty, true);
|
|
8075
|
+
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {
|
|
8076
|
+
/* Node is already a body, use as is */
|
|
8077
|
+
body = importedNode;
|
|
8078
|
+
} else if (importedNode.nodeName === 'HTML') {
|
|
8079
|
+
body = importedNode;
|
|
8080
|
+
} else {
|
|
8081
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
|
8082
|
+
body.appendChild(importedNode);
|
|
8083
|
+
}
|
|
8084
|
+
} else {
|
|
8085
|
+
/* Exit directly if we have nothing to do */
|
|
8086
|
+
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
|
|
8087
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
|
8088
|
+
dirty.indexOf('<') === -1) {
|
|
8089
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
8090
|
+
}
|
|
8091
|
+
/* Initialize the document to work on */
|
|
8092
|
+
body = _initDocument(dirty);
|
|
8093
|
+
/* Check we have a DOM node from the data */
|
|
8094
|
+
if (!body) {
|
|
8095
|
+
return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
|
|
8096
|
+
}
|
|
8097
|
+
}
|
|
8098
|
+
/* Remove first element node (ours) if FORCE_BODY is set */
|
|
8099
|
+
if (body && FORCE_BODY) {
|
|
8100
|
+
_forceRemove(body.firstChild);
|
|
8101
|
+
}
|
|
8102
|
+
/* Get node iterator */
|
|
8103
|
+
const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
|
|
8104
|
+
/* Now start iterating over the created document */
|
|
8105
|
+
while (currentNode = nodeIterator.nextNode()) {
|
|
8106
|
+
/* Sanitize tags and elements */
|
|
8107
|
+
_sanitizeElements(currentNode);
|
|
8108
|
+
/* Check attributes next */
|
|
8109
|
+
_sanitizeAttributes(currentNode);
|
|
8110
|
+
/* Shadow DOM detected, sanitize it */
|
|
8111
|
+
if (currentNode.content instanceof DocumentFragment) {
|
|
8112
|
+
_sanitizeShadowDOM(currentNode.content);
|
|
8113
|
+
}
|
|
8114
|
+
}
|
|
8115
|
+
/* If we sanitized `dirty` in-place, return it. */
|
|
8116
|
+
if (IN_PLACE) {
|
|
8117
|
+
return dirty;
|
|
8118
|
+
}
|
|
8119
|
+
/* Return sanitized string or DOM */
|
|
8120
|
+
if (RETURN_DOM) {
|
|
8121
|
+
if (RETURN_DOM_FRAGMENT) {
|
|
8122
|
+
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
8123
|
+
while (body.firstChild) {
|
|
8124
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
|
8125
|
+
returnNode.appendChild(body.firstChild);
|
|
8126
|
+
}
|
|
8127
|
+
} else {
|
|
8128
|
+
returnNode = body;
|
|
8129
|
+
}
|
|
8130
|
+
if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
|
|
8131
|
+
/*
|
|
8132
|
+
AdoptNode() is not used because internal state is not reset
|
|
8133
|
+
(e.g. the past names map of a HTMLFormElement), this is safe
|
|
8134
|
+
in theory but we would rather not risk another attack vector.
|
|
8135
|
+
The state that is cloned by importNode() is explicitly defined
|
|
8136
|
+
by the specs.
|
|
8137
|
+
*/
|
|
8138
|
+
returnNode = importNode.call(originalDocument, returnNode, true);
|
|
8139
|
+
}
|
|
8140
|
+
return returnNode;
|
|
8141
|
+
}
|
|
8142
|
+
let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
|
|
8143
|
+
/* Serialize doctype if allowed */
|
|
8144
|
+
if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
|
|
8145
|
+
serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
|
|
8146
|
+
}
|
|
8147
|
+
/* Sanitize final string template-safe */
|
|
8148
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
8149
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
8150
|
+
serializedHTML = stringReplace(serializedHTML, expr, ' ');
|
|
8151
|
+
});
|
|
8152
|
+
}
|
|
8153
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
|
|
8154
|
+
};
|
|
8155
|
+
DOMPurify.setConfig = function () {
|
|
8156
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8157
|
+
_parseConfig(cfg);
|
|
8158
|
+
SET_CONFIG = true;
|
|
8159
|
+
};
|
|
8160
|
+
DOMPurify.clearConfig = function () {
|
|
8161
|
+
CONFIG = null;
|
|
8162
|
+
SET_CONFIG = false;
|
|
8163
|
+
};
|
|
8164
|
+
DOMPurify.isValidAttribute = function (tag, attr, value) {
|
|
8165
|
+
/* Initialize shared config vars if necessary. */
|
|
8166
|
+
if (!CONFIG) {
|
|
8167
|
+
_parseConfig({});
|
|
8168
|
+
}
|
|
8169
|
+
const lcTag = transformCaseFunc(tag);
|
|
8170
|
+
const lcName = transformCaseFunc(attr);
|
|
8171
|
+
return _isValidAttribute(lcTag, lcName, value);
|
|
8172
|
+
};
|
|
8173
|
+
DOMPurify.addHook = function (entryPoint, hookFunction) {
|
|
8174
|
+
if (typeof hookFunction !== 'function') {
|
|
8175
|
+
return;
|
|
8176
|
+
}
|
|
8177
|
+
arrayPush(hooks[entryPoint], hookFunction);
|
|
8178
|
+
};
|
|
8179
|
+
DOMPurify.removeHook = function (entryPoint, hookFunction) {
|
|
8180
|
+
if (hookFunction !== undefined) {
|
|
8181
|
+
const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
|
|
8182
|
+
return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0];
|
|
8183
|
+
}
|
|
8184
|
+
return arrayPop(hooks[entryPoint]);
|
|
8185
|
+
};
|
|
8186
|
+
DOMPurify.removeHooks = function (entryPoint) {
|
|
8187
|
+
hooks[entryPoint] = [];
|
|
8188
|
+
};
|
|
8189
|
+
DOMPurify.removeAllHooks = function () {
|
|
8190
|
+
hooks = _createHooksMap();
|
|
8191
|
+
};
|
|
8192
|
+
return DOMPurify;
|
|
8193
|
+
}
|
|
8194
|
+
var purify = createDOMPurify();
|
|
8195
|
+
|
|
8196
|
+
return purify;
|
|
8197
|
+
|
|
8198
|
+
}));
|
|
8199
|
+
|
|
8200
|
+
}(purify));
|
|
8201
|
+
|
|
8202
|
+
var purifier = purify.exports;
|
|
8203
|
+
|
|
8204
|
+
const IC_CUSTOM_ALLOWED_COMPONENTS = [];
|
|
8205
|
+
|
|
8206
|
+
/* istanbul ignore next */
|
|
8207
|
+
const getCustomElementHandling$1 = (allowICPrefix) => ({
|
|
8208
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
8209
|
+
tagNameCheck: (tagName) => (allowICPrefix && tagName.startsWith("ic-")) ||
|
|
8210
|
+
IC_CUSTOM_ALLOWED_COMPONENTS.includes(tagName),
|
|
8211
|
+
attributeNameCheck: /.*/,
|
|
8212
|
+
},
|
|
8213
|
+
});
|
|
8214
|
+
const sanitizeHTMLIconString$1 = (html) => {
|
|
8215
|
+
return purifier.sanitize(html, getCustomElementHandling$1(false));
|
|
8216
|
+
};
|
|
8217
|
+
|
|
6835
8218
|
const icDataTableCss = ":host{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{display:block}.cell-icon.truncation-show-hide{display:flex}.cell-container:not(.data-type-element,.truncation-show-hide){overflow-x:hidden}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-hover) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row-selected:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected-hover) 0 0\n )}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.table-density-dense .column-header-inner-container,td.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious .column-header-inner-container,td.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.column-header{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.cell-alignment-right.truncation-show-hide ic-typography{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left}.data-type-number,.data-type-date{text-align:right;justify-content:end}.cell-vertical-align-top{vertical-align:top;align-items:flex-start}.cell-vertical-align-middle{vertical-align:middle;align-items:center}.cell-vertical-align-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low ic-typography{--ic-typography-color:var(--ic-data-table-text-low-emphasis)}.cell-emphasis-high ic-typography{--ic-typography-color:var(--ic-data-table-text-high-emphasis);font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-data-table-pagination-bar-background-color);border-top:var(--ic-space-1px) solid\n var(--ic-data-table-pagination-bar-keyline)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow);z-index:calc(var(--ic-z-index-popover) - 1);background-color:var(--ic-data-table-overlay-background);border:var(--ic-space-1px) solid var(--ic-data-table-overlay-border)}.loading.show{opacity:1}.icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}.column-header .icon>svg,.column-header ::slotted(svg){fill:var(--ic-data-table-icon)}.table-cell .icon>svg,.table-cell ::slotted(svg),.cell-description-icon>svg{fill:var(--ic-data-table-icon-default-emphasis)}.cell-emphasis-high .icon>svg,.cell-emphasis-high ::slotted(svg){fill:var(--ic-data-table-icon-high-emphasis)}.cell-emphasis-low .icon>svg,.cell-emphasis-low ::slotted(svg){fill:var(--ic-data-table-icon-low-emphasis)}.column-header-alignment-right>.icon,.row-header-alignment-right>.icon,.cell-alignment-right>.icon,.column-header-alignment-right>::slotted(svg),.row-header-alignment-right>::slotted(svg),.cell-alignment-right>::slotted(svg){margin-right:auto}.column-header-alignment-center>ic-typography,.column-header-alignment-center>.cell-text-wrapper,.row-header-alignment-right>ic-typography,.row-header-alignment-right>.cell-text-wrapper,.cell-alignment-center>ic-typography,.cell-alignment-center>.cell-text-wrapper{flex:1}.checkbox-cell{--column-width:var(--ic-space-xxl);align-content:center;border-right:none}.table-density-dense.checkbox-cell{--column-width:2.5rem}.checkbox-wrapper{display:flex;justify-content:center}.icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}.truncation-tooltip ic-typography{display:-webkit-box;line-clamp:var(--ic-line-clamp, 0);-webkit-line-clamp:var(--ic-line-clamp, 0);-webkit-box-orient:vertical;overflow:hidden}.truncation-tooltip ic-typography,.truncation-show-hide ic-typography{white-space:normal}.ic-tooltip-overflow{overflow:hidden;width:100%}.action-element{display:flex;justify-content:right}.cell-grid-wrapper{display:grid;grid-template-columns:auto auto}.loading-overlay{visibility:hidden;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ic-data-table-loading-indicator-overlay-background);z-index:calc(var(--ic-z-index-popover) - 2);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading-overlay.show{visibility:visible;opacity:0.6}.sr-only{position:absolute;left:-9999px}@media (prefers-reduced-motion: reduce){.loading-overlay{transition:none}}.cell-text-wrapper{overflow:hidden}.cell-text-wrapper>ic-typography{margin-left:2px}.cell-text-no-wrap{word-wrap:initial}.cell-container-with-description{display:flex;flex-direction:row}.cell-description{display:flex;flex-direction:row;margin-top:var(--ic-space-xxs);word-break:break-all}.cell-description-text{color:var(--ic-data-table-cell-data-description)}.cell-description-icon{padding-right:var(--ic-space-xs)}.cell-description-icon>svg{height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs));display:flex}@media (min-width: 577px){.column-header-inner-container{display:flex;align-items:center}}@media (max-width: 577px){.cell-icon{flex-wrap:wrap}.cell-description-icon{padding-right:0}}@media (forced-colors: active){.icon,::slotted(svg),.cell-description-icon>svg{fill:currentcolor}.sort-button svg{color:currentcolor}.table-row-selected{background-color:Highlight !important}}";
|
|
6836
8219
|
var IcDataTableStyle0 = icDataTableCss;
|
|
6837
8220
|
|
|
@@ -7417,10 +8800,7 @@ class DataTable {
|
|
|
7417
8800
|
};
|
|
7418
8801
|
this.createCellContent = (columnProps, cell, cellSlotName, hasIcon, cellValue, rowOptions, currentRowHeight) => {
|
|
7419
8802
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
7420
|
-
return (hAsync("div", {
|
|
7421
|
-
!isSlotUsed(this.el, cellSlotName)
|
|
7422
|
-
? cell
|
|
7423
|
-
: undefined, class: Object.assign(Object.assign({ "cell-container": (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element", "cell-icon": hasIcon || !!((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _a === void 0 ? void 0 : _a.icon), [`cell-alignment-${((_b = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _b === void 0 ? void 0 : _b.horizontal) ||
|
|
8803
|
+
return (hAsync("div", { class: Object.assign(Object.assign({ "cell-container": (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element", "cell-icon": hasIcon || !!((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _a === void 0 ? void 0 : _a.icon), [`cell-alignment-${((_b = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _b === void 0 ? void 0 : _b.horizontal) ||
|
|
7424
8804
|
((_c = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _c === void 0 ? void 0 : _c.horizontal) ||
|
|
7425
8805
|
this.getCellAlignment(cell, "horizontal")}`]: !!((_d = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _d === void 0 ? void 0 : _d.horizontal) ||
|
|
7426
8806
|
!!((_e = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
|
|
@@ -7433,7 +8813,8 @@ class DataTable {
|
|
|
7433
8813
|
!!(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.emphasis) }, this.setTruncationClass()), { [this.CELL_CONTAINER_WITH_DESCRIPTION_STRING]: this.isObject(cell) && Object.keys(cell).includes("description") }), style: Object.assign(Object.assign({}, this.getCalculatedRowHeight(columnProps, cell, rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap, currentRowHeight)), this.getColumnWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnWidth)), "data-row-height": this.truncationPattern || currentRowHeight
|
|
7434
8814
|
? this.setRowHeight(currentRowHeight)
|
|
7435
8815
|
: null }, isSlotUsed(this.el, cellSlotName) ? (hAsync("slot", { name: cellSlotName })) : (hAsync(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (hAsync("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_f = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _f === void 0 ? void 0 : _f.onAllCells)) &&
|
|
7436
|
-
(cellValue("icon") || ((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _g === void 0 ? void 0 : _g.icon)) && (hAsync("span", { class: "icon", innerHTML: cellValue("icon")
|
|
8816
|
+
(cellValue("icon") || ((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _g === void 0 ? void 0 : _g.icon)) && (hAsync("span", { class: "icon", innerHTML: sanitizeHTMLIconString$1(cellValue("icon")) ||
|
|
8817
|
+
sanitizeHTMLIconString$1((_h = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _h === void 0 ? void 0 : _h.icon) }))), (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element" &&
|
|
7437
8818
|
!isSlotUsed(this.el, cellSlotName) && (hAsync("div", { class: {
|
|
7438
8819
|
"cell-text-wrapper": true,
|
|
7439
8820
|
"cell-text-no-wrap": !this.truncationPattern,
|
|
@@ -7448,7 +8829,7 @@ class DataTable {
|
|
|
7448
8829
|
Object.keys(cell).includes("description") && (hAsync("div", { class: {
|
|
7449
8830
|
["cell-description"]: true,
|
|
7450
8831
|
[`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true,
|
|
7451
|
-
} }, ((_j = cellValue("description")) === null || _j === void 0 ? void 0 : _j.icon) && (hAsync("span", { class: "cell-description-icon", innerHTML: cellValue("description").icon })), hAsync("ic-typography", { variant: "caption", class: "cell-description-text" }, (_l = (_k = cellValue("description")) === null || _k === void 0 ? void 0 : _k.data) !== null && _l !== void 0 ? _l : cellValue("description"))))))))));
|
|
8832
|
+
} }, ((_j = cellValue("description")) === null || _j === void 0 ? void 0 : _j.icon) && (hAsync("span", { class: "cell-description-icon", innerHTML: sanitizeHTMLIconString$1(cellValue("description").icon) })), hAsync("ic-typography", { variant: "caption", class: "cell-description-text" }, (_l = (_k = cellValue("description")) === null || _k === void 0 ? void 0 : _k.data) !== null && _l !== void 0 ? _l : cellValue("description"))))))))));
|
|
7452
8833
|
};
|
|
7453
8834
|
this.createCells = (row, rowIndex) => {
|
|
7454
8835
|
var _a;
|
|
@@ -7494,7 +8875,7 @@ class DataTable {
|
|
|
7494
8875
|
"truncation-tooltip": this.columnHeaderTruncation,
|
|
7495
8876
|
[`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
|
|
7496
8877
|
} }, isSlotUsed(this.el, `${key}-column-icon`) ? (hAsync("slot", { name: `${key}-column-icon` })) : (icon &&
|
|
7497
|
-
!icon.hideOnHeader && (hAsync("span", { class: "icon", innerHTML: icon.icon }))), this.columnHeaderTruncation ? (hAsync("ic-tooltip", { label: title, target: `column-header-${index}` }, hAsync("ic-typography", { id: `column-header-${index}`, variant: "body", class: {
|
|
8878
|
+
!icon.hideOnHeader && (hAsync("span", { class: "icon", innerHTML: sanitizeHTMLIconString$1(icon.icon) }))), this.columnHeaderTruncation ? (hAsync("ic-tooltip", { label: title, target: `column-header-${index}` }, hAsync("ic-typography", { id: `column-header-${index}`, variant: "body", class: {
|
|
7498
8879
|
["column-header-text"]: true,
|
|
7499
8880
|
[`text-${this.density}`]: this.notDefaultDensity(),
|
|
7500
8881
|
} }, title))) : (hAsync("ic-typography", { variant: "body", class: {
|
|
@@ -8171,22 +9552,22 @@ class DataTable {
|
|
|
8171
9552
|
? "deselect all"
|
|
8172
9553
|
: "select all remaining"
|
|
8173
9554
|
: "select all";
|
|
8174
|
-
return (hAsync(Host, { key: '
|
|
9555
|
+
return (hAsync(Host, { key: 'c5b57495acaac9787d44d93b1da833e209e627fa', style: Object.assign({}, this.setTableDimensions()), class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '8feecd07aefd2fba2700ea0a2abc728a489d4354', class: "table-container" }, isSlotUsed(this.el, "title-bar") && hAsync("slot", { key: '22d7dddca26638d24b2ee608582a59ae3d72d9be', name: "title-bar" }), hAsync("div", { key: 'e2be083520e1cdc27746fd01eabf82904d22590b', class: {
|
|
8175
9556
|
["table-row-container"]: true,
|
|
8176
9557
|
scrollable,
|
|
8177
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '
|
|
9558
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: 'eff477957c0785a651c480b4e9ddd88534563a81', style: {
|
|
8178
9559
|
"--table-layout": tableLayout,
|
|
8179
|
-
} }, hAsync("caption", { key: '
|
|
9560
|
+
} }, hAsync("caption", { key: 'e41a3f6133cb02f96e2fd537cdcb24c3467e92a6', class: "table-caption" }, caption), !hideColumnHeaders && (hAsync("thead", { key: 'b36805140e81e3e3a9fd065792c0ac514d64ae16', class: {
|
|
8180
9561
|
["column-header-sticky"]: stickyColumnHeaders,
|
|
8181
9562
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
|
8182
|
-
} }, hAsync("tr", { key: '
|
|
9563
|
+
} }, hAsync("tr", { key: '7b377adb333d251f84400dd6aa499dfa1fa3df6d' }, rowSelection && data && (hAsync("th", { key: 'ab9831b9c3f4e4b96c5223961753506ce0629cc1', class: {
|
|
8183
9564
|
"column-header": true,
|
|
8184
9565
|
"checkbox-cell": true,
|
|
8185
9566
|
"updating-state-headers": updating && !loading,
|
|
8186
9567
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
|
8187
|
-
} }, hAsync("div", { key: '
|
|
9568
|
+
} }, hAsync("div", { key: '785236605fa8c29a12fecb6eb4f936c2f65b29b5', class: "checkbox-wrapper" }, hAsync("ic-checkbox", { key: '64975b6e2e4af589ad2b535c68ecc16e2f2abea9', class: "ic-data-table-checkbox", checked: rowsSelected && allRowsSelected, disabled: updating || loading, hideLabel: true, indeterminate: rowsSelected && !allRowsSelected, label: `${caption} ${headerCheckboxLabelState} rows`, nativeIndeterminateBehaviour: true, onIcCheck: () => selectAllRows(), size: density === "dense" ? "small" : "medium", value: caption })))), createColumnHeaders()))), updating &&
|
|
8188
9569
|
!loading &&
|
|
8189
|
-
(hideColumnHeaders ? (hAsync("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), hAsync("div", { key: '
|
|
9570
|
+
(hideColumnHeaders ? (hAsync("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), hAsync("div", { key: '8d04e4eb5e786f981868b313ea1a0edad7b989b2', "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (hAsync("div", { key: 'abda6bfbad63dd765dbc8ec4e16609cb4526de2a', class: "pagination-container" }, isSlotUsed(this.el, "pagination-bar") ? (hAsync("slot", { name: "pagination-bar" })) : (hAsync("ic-pagination-bar", { alignment: paginationBarOptions.alignment, hideAllFromItemsPerPage: paginationBarOptions.hideAllFromItemsPerPage, hideRangeLabel: paginationBarOptions.hideRangeLabel, itemLabel: paginationBarOptions.itemLabel, itemsPerPageOptions: paginationBarOptions.itemsPerPageOptions, monochrome: paginationBarOptions.monochrome, pageLabel: paginationBarOptions.pageLabel, rangeLabelType: paginationBarOptions.rangeLabelType, selectedItemsPerPage: paginationBarOptions.selectedItemsPerPage, selectItemsPerPageOnEnter: paginationBarOptions.selectItemsPerPageOnEnter, setToFirstPageOnPaginationChange: paginationBarOptions.setToFirstPageOnPaginationChange, showGoToPageControl: paginationBarOptions.showGoToPageControl, showItemsPerPageControl: paginationBarOptions.showItemsPerPageControl, theme: theme, totalItems: (_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0, type: paginationBarOptions.type })))), sortable && (hAsync("div", { key: '11a1b7220450c29b08e352071b76a9389614751a', class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
|
8190
9571
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
|
8191
9572
|
sortedColumn} sorted ${sortedColumnOrder}`
|
|
8192
9573
|
: "table unsorted")))));
|
|
@@ -8418,7 +9799,7 @@ var Calendar = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" v
|
|
|
8418
9799
|
<path d="M16.6667 2.50004H15.8334V0.833374H14.1667V2.50004H5.83342V0.833374H4.16675V2.50004H3.33341C2.41675 2.50004 1.66675 3.25004 1.66675 4.16671V17.5C1.66675 18.4167 2.41675 19.1667 3.33341 19.1667H16.6667C17.5834 19.1667 18.3334 18.4167 18.3334 17.5V4.16671C18.3334 3.25004 17.5834 2.50004 16.6667 2.50004ZM16.6667 17.5H3.33341V6.66671H16.6667V17.5Z" fill="currentColor"/>
|
|
8419
9800
|
</svg>`;
|
|
8420
9801
|
|
|
8421
|
-
const icDateInputCss = "/*! 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-input-label-helpertext-padding:var(--ic-space-xs);--input-bg-color:var(--ic-date-input-bg);--ic-input-label-text-color:var(--ic-date-input-label);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle);--border-color:var(--ic-date-input-border);--border-color-disabled:var(--ic-date-input-border-disabled);--border-color-hover:var(--ic-date-input-border-default-hover);--border-color-pressed:var(--ic-date-input-border-default-pressed);--border-error-color:var(--ic-date-input-border-error);--border-error-color-hover:var(--ic-date-input-border-error-hover);--border-error-color-pressed:var(--ic-date-input-border-error-pressed);--border-success-color:var(--ic-date-input-border-success);--border-success-color-hover:var(--ic-date-input-border-success-hover);--border-success-color-pressed:var(--ic-date-input-border-success-pressed);--border-warning-color:var(--ic-date-input-border-warning);--border-warning-color-hover:var(--ic-date-input-border-warning-hover);--border-warning-color-pressed:var(--ic-date-input-border-warning-pressed)}:host(.ic-date-input-disabled){--ic-input-label-text-color:var(--ic-date-input-label-disabled);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle-disabled)}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-date-input-text-filled);caret-color:var(--ic-date-input-typing-cursor)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}input:-webkit-autofill{box-shadow:0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset;-webkit-text-fill-color:var(--ic-date-input-text-filled) !important}input::-moz-placeholder{color:var(--ic-date-input-text-placeholder)}input::placeholder{color:var(--ic-date-input-text-placeholder)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.date-inputs{color:var(--ic-date-input-text-placeholder)}.day-input{width:1.438rem}.month-input{width:1.813rem}.year-input,.year-input.fit-to-value{width:2.313rem}.fit-to-value{width:1.25rem}.sr-only{position:absolute;left:-9999px}.input-container{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}.action-buttons{display:flex;align-items:center}.show-calendar-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.calendar-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition);margin:0}.clear-button.hidden{display:none}.clear-button:focus,.calendar-button:focus,.clear-button:active,.calendar-button:active{background-color:var(--ic-color-focus-inner) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer) !important;border-radius:0.25rem}.calendar-button:focus,.calendar-button:active{--ic-button-tertiary-text-active:var(--ic-atoms-input-clear-button-focus);--ic-button-tertiary-text-hover-active:var(\n --ic-atoms-input-clear-button-focus\n );--ic-button-tertiary-text-pressed-active:var(\n --ic-atoms-input-clear-button-focus\n )}.clear-button:focus,.calendar-button:focus,.clear-button:active *,.calendar-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button svg{color:var(--ic-date-input-clear-icon)}.clear-button:focus svg{color:var(--ic-atoms-input-clear-button-focus)}.divider{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-atoms-input-divider);border-radius:var(--ic-space-1px)}.divider.small{height:var(--ic-space-md)}.divider.medium{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}.divider.large{height:var(--ic-space-lg)}ic-input-validation{--ic-input-validation-status-text-color:var(--ic-date-input-status-text);--ic-input-validation-error:var(--ic-date-input-icon-error);--ic-input-validation-warning-icon-color:var(--ic-date-input-icon-warning);--ic-input-validation-success-icon-color:var(--ic-date-input-icon-success)}";
|
|
9802
|
+
const icDateInputCss = "/*! 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-input-label-helpertext-padding:var(--ic-space-xs);--input-bg-color:var(--ic-date-input-bg);--ic-input-label-text-color:var(--ic-date-input-label);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle);--border-color:var(--ic-date-input-border);--border-color-disabled:var(--ic-date-input-border-disabled);--border-color-hover:var(--ic-date-input-border-default-hover);--border-color-pressed:var(--ic-date-input-border-default-pressed);--border-error-color:var(--ic-date-input-border-error);--border-error-color-hover:var(--ic-date-input-border-error-hover);--border-error-color-pressed:var(--ic-date-input-border-error-pressed);--border-success-color:var(--ic-date-input-border-success);--border-success-color-hover:var(--ic-date-input-border-success-hover);--border-success-color-pressed:var(--ic-date-input-border-success-pressed);--border-warning-color:var(--ic-date-input-border-warning);--border-warning-color-hover:var(--ic-date-input-border-warning-hover);--border-warning-color-pressed:var(--ic-date-input-border-warning-pressed)}:host(.ic-date-input-disabled){--ic-input-label-text-color:var(--ic-date-input-label-disabled);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle-disabled)}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-date-input-text-filled);caret-color:var(--ic-date-input-typing-cursor)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}input:-webkit-autofill{box-shadow:0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset;-webkit-text-fill-color:var(--ic-date-input-text-filled) !important}input::-moz-placeholder{color:var(--ic-date-input-text-placeholder)}input::placeholder{color:var(--ic-date-input-text-placeholder)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.date-inputs{color:var(--ic-date-input-text-placeholder)}.day-input{width:1.438rem}.month-input{width:1.813rem}.year-input,.year-input.fit-to-value{width:2.313rem}.fit-to-value{width:1.25rem}.sr-only{position:absolute;left:-9999px}.input-container{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}.action-buttons{display:flex;align-items:center}.show-calendar-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.calendar-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition);margin:0}.clear-button.hidden{display:none}.clear-button:focus,.calendar-button:focus,.clear-button:active,.calendar-button:active{background-color:var(--ic-color-focus-inner) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer) !important;border-radius:0.25rem}.calendar-button:focus,.calendar-button:active{--ic-button-tertiary-text-active:var(--ic-atoms-input-clear-button-focus);--ic-button-tertiary-text-hover-active:var(\n --ic-atoms-input-clear-button-focus\n );--ic-button-tertiary-text-pressed-active:var(\n --ic-atoms-input-clear-button-focus\n )}.clear-button:focus,.calendar-button:focus,.clear-button:active *,.calendar-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button svg{color:var(--ic-date-input-clear-icon)}.clear-button:focus svg{color:var(--ic-atoms-input-clear-button-focus)}.divider{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-atoms-input-divider);border-radius:var(--ic-space-1px)}.divider.small{height:var(--ic-space-md)}.divider.medium{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}.divider.large{height:var(--ic-space-lg)}ic-input-validation{--ic-input-validation-status-text-color:var(--ic-date-input-status-text);--ic-input-validation-error:var(--ic-date-input-icon-error);--ic-input-validation-warning-icon-color:var(--ic-date-input-icon-warning);--ic-input-validation-success-icon-color:var(--ic-date-input-icon-success)}@media (forced-colors: active){.clear-button svg{color:currentcolor}}";
|
|
8422
9803
|
var IcDateInputStyle0 = icDateInputCss;
|
|
8423
9804
|
|
|
8424
9805
|
let inputIds$5 = 0;
|
|
@@ -9036,9 +10417,9 @@ class DateInput {
|
|
|
9036
10417
|
// Get input based on letter representing each date part ("D", "M" or "Y")
|
|
9037
10418
|
// (retrieved from dateFormat)
|
|
9038
10419
|
this.getInputFromDatePart = (datePart) => {
|
|
9039
|
-
const dayInput = (hAsync("input", { class: "day-input", id: "day-input", ref: (el) => (this.dayInputEl = el), "aria-label": "day", placeholder: "DD", disabled: this.disabled, onPaste: this.handlePaste, inputmode: "number", pattern: "[0-9]*", onKeyDown: (event) => this.handleKeyDown(event, this.preventDayInput) }));
|
|
9040
|
-
const monthInput = (hAsync("input", { id: "month-input", class: "month-input", ref: (el) => (this.monthInputEl = el), "aria-label": "month", placeholder: "MM", disabled: this.disabled, onPaste: this.handlePaste, inputmode: "number", pattern: "[0-9]*", onKeyDown: (event) => this.handleKeyDown(event, this.preventMonthInput) }));
|
|
9041
|
-
const yearInput = (hAsync("input", { id: "year-input", class: "year-input", ref: (el) => (this.yearInputEl = el), "aria-label": "year", placeholder: "YYYY", maxLength: 4, disabled: this.disabled, onPaste: this.handlePaste, inputmode: "number", pattern: "[0-9]*", onKeyDown: (event) => this.handleKeyDown(event, this.preventYearInput) }));
|
|
10420
|
+
const dayInput = (hAsync("input", { class: "day-input", id: "day-input", ref: (el) => (this.dayInputEl = el), "aria-label": "day", placeholder: "DD", disabled: this.disabled, "aria-required": `${this.required}`, onPaste: this.handlePaste, inputmode: "number", pattern: "[0-9]*", onKeyDown: (event) => this.handleKeyDown(event, this.preventDayInput) }));
|
|
10421
|
+
const monthInput = (hAsync("input", { id: "month-input", class: "month-input", ref: (el) => (this.monthInputEl = el), "aria-label": "month", placeholder: "MM", disabled: this.disabled, "aria-required": `${this.required}`, onPaste: this.handlePaste, inputmode: "number", pattern: "[0-9]*", onKeyDown: (event) => this.handleKeyDown(event, this.preventMonthInput) }));
|
|
10422
|
+
const yearInput = (hAsync("input", { id: "year-input", class: "year-input", ref: (el) => (this.yearInputEl = el), "aria-label": "year", placeholder: "YYYY", maxLength: 4, disabled: this.disabled, "aria-required": `${this.required}`, onPaste: this.handlePaste, inputmode: "number", pattern: "[0-9]*", onKeyDown: (event) => this.handleKeyDown(event, this.preventYearInput) }));
|
|
9042
10423
|
let input;
|
|
9043
10424
|
switch (datePart) {
|
|
9044
10425
|
case "D":
|
|
@@ -9589,15 +10970,15 @@ class DateInput {
|
|
|
9589
10970
|
: "";
|
|
9590
10971
|
const assistiveHint = `Type or use the up and down arrow keys to change the values for the ${this.getDescOfInputsOrder()}.`;
|
|
9591
10972
|
renderHiddenInput(true, this.el, this.name, this.convertToDate(this.year, this.month, this.day), this.disabled);
|
|
9592
|
-
return (hAsync(Host, { key: '
|
|
10973
|
+
return (hAsync(Host, { key: '7ced152386fffdfcd023d8ded5a0eb1733c7013a', class: {
|
|
9593
10974
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
9594
10975
|
[`ic-date-input-disabled`]: disabled,
|
|
9595
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
|
10976
|
+
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: 'bb80b694e3f38978c21b7fb5ae1e78f79b35dc3c', disabled: disabled }, !(hideLabel && hideHelperText) && (hAsync("ic-input-label", { key: '0e8dfb49234774f38e9a64d65c1b3d23f3622d4d', for: inputId, label: label, hideLabel: hideLabel, helperText: !hideHelperText ? helperText : "", disabled: disabled }, hAsync("slot", { key: '56f0e54039017b907b4b6260ee6aa6195d762cab', name: "helper-text", slot: "helper-text" }))), hAsync("span", { key: 'e27f938ef389962dbf35bfd5ff1a6f73744aaabb', id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideLabel && `${label}\n`, hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), hAsync("span", { key: '2718994db39d6cff9e2ac49c761fe104afd700ca', id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), hAsync("span", { key: 'dd0e46f647f57f431f5f7a04c1d9bc1e8fa5c279', id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("ic-input-component-container", { key: '8b795ce5a1c2c5b30ad3388630595db355e7f6bf', id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group", class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '7a07353e1b7e8076cb39b5b73793f2b70b0db040', class: "input-container" }, hAsync("div", { key: '9e257683e556c73e68f51c8e41b10e9e30cd8156', class: "date-inputs" }, this.getInputsInOrder()[0], "/", this.getInputsInOrder()[1], "/", this.getInputsInOrder()[2]), hAsync("div", { key: '8c9cd028d27861f195933c6ef09ce79f367686fd', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: 'fcee2b92276a3598787d63ded0529973b8eb2eda', id: "clear-button", "aria-label": "Clear input", class: {
|
|
9596
10977
|
["clear-button"]: true,
|
|
9597
10978
|
["hidden"]: isEmptyString(this.day) &&
|
|
9598
10979
|
isEmptyString(this.month) &&
|
|
9599
10980
|
isEmptyString(this.year),
|
|
9600
|
-
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showCalendarButton && (hAsync("div", { key: '
|
|
10981
|
+
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showCalendarButton && (hAsync("div", { key: '47d6e339e971c24a87395b0b390e40be984292b4', class: "show-calendar-button-wrapper" }, hAsync("div", { key: '074366deea600d279257945e9710b95922d909dc', class: { divider: true, [size]: true } }), hAsync("ic-button", { key: 'ee6c418309f9140dc2e313e42c0c754d5118a438', id: "calendar-button", ref: (el) => (this.calendarButtonEl = el), "aria-label": "Display calendar", "aria-haspopup": "dialog", class: "calendar-button", disabled: this.disabled, innerHTML: Calendar, onClick: this.handleCalendarOpen, variant: "icon-tertiary", size: size, onFocus: this.handleCalendarFocus, onBlur: this.handleCalendarBlur, theme: this.calendarFocused ? "light" : "dark" })))))), hAsync("span", { key: 'c1cd23d1c568cce687afa77170fb054ab9938503', id: this.selectedDateInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: '9475acd6262f0e78a9c390caf200c7b5af1d1036', ref: (el) => (this.selectedDateInfoEl = el), role: "status" })), (hasCustomValidation || !isEmptyString(this.invalidDateText)) && (hAsync("ic-input-validation", { key: 'f1a1da7f67bd2d63b77bc18f284b31ba1f24628a', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidDateText, for: inputId })))));
|
|
9601
10982
|
}
|
|
9602
10983
|
static get delegatesFocus() { return true; }
|
|
9603
10984
|
get el() { return getElement(this); }
|
|
@@ -10913,6 +12294,7 @@ class Dialog {
|
|
|
10913
12294
|
this.IC_ACCORDION_GROUP = "IC-ACCORDION-GROUP";
|
|
10914
12295
|
this.IC_CHECKBOX = "IC-CHECKBOX";
|
|
10915
12296
|
this.IC_SEARCH_BAR = "IC-SEARCH-BAR";
|
|
12297
|
+
this.IC_TAB_CONTEXT = "IC-TAB-CONTEXT";
|
|
10916
12298
|
this.resizeObserver = null;
|
|
10917
12299
|
this.dialogRendered = false;
|
|
10918
12300
|
this.fadeIn = false;
|
|
@@ -11053,7 +12435,7 @@ class Dialog {
|
|
|
11053
12435
|
var _a;
|
|
11054
12436
|
this.interactiveElementList = Array.from(((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll("ic-button")) || []);
|
|
11055
12437
|
const slottedInteractiveElements = Array.from(this.el.querySelectorAll(`a[href], button, input:not(.ic-input), textarea, select, details, [tabindex]:not([tabindex="-1"]),
|
|
11056
|
-
ic-button, ic-checkbox, ic-select, ic-search-bar, ic-tab-
|
|
12438
|
+
ic-button, ic-checkbox, ic-select, ic-search-bar, ic-tab-context,
|
|
11057
12439
|
ic-back-to-top, ic-breadcrumb, ic-chip[dismissible="true"], ic-footer-link, ic-link, ic-navigation-button,
|
|
11058
12440
|
ic-navigation-item, ic-switch, ic-text-field, ic-accordion-group, ic-accordion, ic-date-input, ic-date-picker`));
|
|
11059
12441
|
if (slottedInteractiveElements.length > 0) {
|
|
@@ -11107,6 +12489,7 @@ class Dialog {
|
|
|
11107
12489
|
case this.IC_SEARCH_BAR:
|
|
11108
12490
|
case this.IC_TEXT_FIELD:
|
|
11109
12491
|
case this.IC_CHECKBOX:
|
|
12492
|
+
case this.IC_TAB_CONTEXT:
|
|
11110
12493
|
element.setFocus();
|
|
11111
12494
|
break;
|
|
11112
12495
|
default:
|
|
@@ -11122,7 +12505,7 @@ class Dialog {
|
|
|
11122
12505
|
[`${size}`]: true,
|
|
11123
12506
|
"disable-height-constraint": !!disableHeightConstraint,
|
|
11124
12507
|
"disable-width-constraint": !!disableWidthConstraint,
|
|
11125
|
-
}, "aria-labelledby": "dialog-label dialog-heading", "aria-describedby": "dialog-alert dialog-content", ref: (el) => (this.dialogEl = el) }, hAsync("div", { class: "heading-area" }, hAsync("div", { class: "heading-content" }, hAsync("div", { class: "label" }, hAsync("slot", { name: "label" }, hAsync("ic-typography", { variant: "label", id: "dialog-label" }, label))), hAsync("div", { class: "heading" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h4", id: "dialog-heading" }, heading)))), !hideCloseButton && (hAsync("ic-button", { class: "close-icon", variant: "icon", innerHTML: closeIcon, "aria-label": dismissLabel, onClick: closeIconClick, "data-gets-focus": destructive || (hideDefaultControls && !controlsSlotUsed)
|
|
12508
|
+
}, "aria-labelledby": "dialog-label dialog-heading", "aria-describedby": "dialog-alert dialog-content", ref: (el) => (this.dialogEl = el) }, hAsync("div", { class: "heading-area" }, hAsync("div", { class: "heading-content" }, hAsync("div", { class: "label" }, hAsync("slot", { name: "label" }, hAsync("ic-typography", { variant: "label", id: "dialog-label" }, label))), hAsync("div", { class: "heading" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h4", id: "dialog-heading" }, heading)))), !hideCloseButton && (hAsync("ic-button", { class: "close-icon", variant: "icon-tertiary", innerHTML: closeIcon, "aria-label": dismissLabel, onClick: closeIconClick, "data-gets-focus": destructive || (hideDefaultControls && !controlsSlotUsed)
|
|
11126
12509
|
? ""
|
|
11127
12510
|
: null }))), hAsync("div", { class: "content-area" }, isSlotUsed$1(this.el, "alert") && hAsync("slot", { name: "alert" }), hAsync("div", { id: "dialog-content" }, hAsync("slot", null))), (controlsSlotUsed || !hideDefaultControls) && (hAsync("div", { class: {
|
|
11128
12511
|
[DIALOG_CONTROLS]: true,
|
|
@@ -11228,7 +12611,7 @@ class Dialog {
|
|
|
11228
12611
|
}
|
|
11229
12612
|
render() {
|
|
11230
12613
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme } = this;
|
|
11231
|
-
return (hAsync(Host, { key: '
|
|
12614
|
+
return (hAsync(Host, { key: '6de63d3d94afa349dc9bb5b30296837bbf89f810', class: {
|
|
11232
12615
|
"ic-dialog-hidden": !dialogRendered,
|
|
11233
12616
|
"ic-dialog-fade-in": fadeIn,
|
|
11234
12617
|
"disable-height-constraint": !!disableHeightConstraint,
|
|
@@ -11428,11 +12811,11 @@ class EmptyState {
|
|
|
11428
12811
|
}
|
|
11429
12812
|
render() {
|
|
11430
12813
|
const { aligned, body, maxLines, heading, imageSize, subheading, theme } = this;
|
|
11431
|
-
return (hAsync(Host, { key: '
|
|
12814
|
+
return (hAsync(Host, { key: 'd1f0ef089d59f00d57b70a44c22f248ce12314fa', class: {
|
|
11432
12815
|
[`ic-empty-state-${aligned}`]: true,
|
|
11433
12816
|
[`image-${imageSize}`]: isSlotUsed$1(this.el, "image"),
|
|
11434
12817
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
11435
|
-
} }, isSlotUsed$1(this.el, "image") && hAsync("slot", { key: '
|
|
12818
|
+
} }, isSlotUsed$1(this.el, "image") && hAsync("slot", { key: '07406cfb8a629a854fe3e0b500f5a21db373e9a7', name: "image" }), hAsync("div", { key: 'cce8db2f16fd451a69c713792f42d4ca4a1d9e5e' }, hAsync("slot", { key: '6bb39d26bb009d445bce71434e5db8cf71829b2a', name: "heading" }, hAsync("ic-typography", { key: '46ffaf055facc3884b3b53041e89c5309db36869', variant: "h4", class: "empty-state-heading" }, heading)), hAsync("slot", { key: '2d45d9838c8a13d2e4e916519a388c1a234eecb8', name: "subheading" }, hAsync("ic-typography", { key: 'c3f0bac962303ac98f451821eb76d9ee731f9e19', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), hAsync("slot", { key: 'a155c2825af5c81b8a19da1aa3b0878dc7abb478', name: "body" }, hAsync("ic-typography", { key: '2336a276e810acfa4bde850e78f9332acf4551ce', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed$1(this.el, "actions") && (hAsync("div", { key: '75a4a0fce3f0a4206c35647de547e5caa76a015e', class: "action-area" }, hAsync("slot", { key: '2a0b08b6c6ade82137a5ea9337549092953a1a46', name: "actions" })))));
|
|
11436
12819
|
}
|
|
11437
12820
|
get el() { return getElement(this); }
|
|
11438
12821
|
static get style() { return IcEmptyStateStyle0; }
|
|
@@ -11625,12 +13008,12 @@ class FooterLink {
|
|
|
11625
13008
|
const { footerConfig, href, hreflang, referrerpolicy, rel, target, download, } = this;
|
|
11626
13009
|
const { small, grouped } = footerConfig;
|
|
11627
13010
|
const isLogoLink = !!this.el.closest("div[slot='logo']");
|
|
11628
|
-
return (hAsync(Host, { key: '
|
|
13011
|
+
return (hAsync(Host, { key: 'da89e5595b7e1b6308d72243462bd0a2f989b501', class: {
|
|
11629
13012
|
"footer-link": true,
|
|
11630
13013
|
[`footer-link-${grouped ? "grouped" : "ungrouped"}-${small ? "small" : "sparse"}`]: true,
|
|
11631
13014
|
[`footer-link-${this.foregroundColor}`]: true,
|
|
11632
13015
|
"footer-logo-link": isLogoLink,
|
|
11633
|
-
}, role: "listitem" }, hAsync("ic-link", { key: '
|
|
13016
|
+
}, role: "listitem" }, hAsync("ic-link", { key: '70cc7b6f5a7710921915f0697a2cf5b55e872d3d', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, hAsync("slot", { key: 'd21bfcaf85a37aebd6138770d80c54e779df714c' }))));
|
|
11634
13017
|
}
|
|
11635
13018
|
static get delegatesFocus() { return true; }
|
|
11636
13019
|
get el() { return getElement(this); }
|
|
@@ -11805,18 +13188,18 @@ class Hero {
|
|
|
11805
13188
|
"background-position": scrollFactor,
|
|
11806
13189
|
};
|
|
11807
13190
|
}
|
|
11808
|
-
return (hAsync(Host, { key: '
|
|
13191
|
+
return (hAsync(Host, { key: 'aee3d892e9e8aeda5b348da837eee5c8c1e8735a', class: {
|
|
11809
13192
|
[`ic-hero-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
|
11810
13193
|
["has-background-image"]: backgroundImage !== undefined,
|
|
11811
13194
|
["has-right-content"]: this.rightContent,
|
|
11812
13195
|
["ic-hero-small"]: size === "small",
|
|
11813
13196
|
["secondary-heading"]: !!secondaryHeading,
|
|
11814
|
-
}, style: style }, hAsync("ic-section-container", { key: '
|
|
13197
|
+
}, style: style }, hAsync("ic-section-container", { key: '6f588f23372a118fbf316d0c5202d17af21f4e43', aligned: aligned, fullHeight: true, class: "section-container" }, hAsync("div", { key: '1c34b2d8b07a045c1c801d99b4e1d707e1a99e88', class: {
|
|
11815
13198
|
["left-container"]: true,
|
|
11816
13199
|
["left-container-full-width"]: this.leftContentFullWidth,
|
|
11817
|
-
} }, hAsync("div", { key: '
|
|
13200
|
+
} }, hAsync("div", { key: '72acdd6b683c699d5e799aa83546bde5b52962db', class: "heading" }, hAsync("slot", { key: '5915be3f3cd2a5329ba8beb46bc0b704693a7fec', name: "heading" }, hAsync("ic-typography", { key: 'f9b16a498674c7a29e669be2b63ae3d730cbacba', variant: size === "small" ? "h2" : "h1", class: {
|
|
11818
13201
|
["heading-bottom-spacing"]: size !== "small",
|
|
11819
|
-
} }, hAsync("h2", { key: '
|
|
13202
|
+
} }, hAsync("h2", { key: '3ed6060a057a88fd332f8ef6b1d914702e6d3f40' }, heading)))), hAsync("div", { key: 'a2ed35fcf9ff99f56cf80264a6374c2dc3cbfcbe', class: "subheading" }, hAsync("slot", { key: '58027e2b2eeb3c49bd5322019435cb9de18cb77c', name: "subheading" }, hAsync("ic-typography", { key: 'b04e16640e640e623142b2f5555e9a644c1a3929', variant: "body" }, subheading))), hAsync("div", { key: '6d87fcd8ffd64077e483471c7d28ab41c7004b98', class: "interaction-container" }, hAsync("slot", { key: 'e2421373570e5cf84e093971d70a75c542a0a0ba', name: "interaction" }))), (isPropDefined$1(secondaryHeading) || this.rightContent) && (hAsync("div", { key: 'ef2bdb160da3c3558f4764b85cebb01ebdfc086f', class: "right-container" }, hAsync("slot", { key: 'dc5991ad4cbc856390335cece65e15400d3752ce', name: "secondary" }, secondaryHeading && (hAsync("div", { key: '059273f8fc66599aa67a11d0bfeaab113a7fd21d', class: "secondary-container" }, hAsync("div", { key: '966adc1a6f9c930c52766dbc2f884691a60f58ac', class: "secondary-heading" }, hAsync("ic-typography", { key: '80fd633680cc4888363567e532db41806be62c2e', variant: "h4" }, hAsync("h3", { key: 'a72f5272444bbfc0941fc552a47d2e8863b8e256' }, secondaryHeading))), hAsync("div", { key: '60fac396776b1eaf7950675f880a1338409f0dbd', class: "secondary-subheading" }, hAsync("ic-typography", { key: '7178ff3785d3d7d5dd9b737e618a720ce64de9c8', variant: "subtitle-small" }, secondarySubheading))))))))));
|
|
11820
13203
|
}
|
|
11821
13204
|
get el() { return getElement(this); }
|
|
11822
13205
|
static get style() { return IcHeroStyle0; }
|
|
@@ -12007,22 +13390,22 @@ class HorizontalScroll {
|
|
|
12007
13390
|
}
|
|
12008
13391
|
render() {
|
|
12009
13392
|
const { firstItemVisible, lastItemVisible, itemOverflow } = this;
|
|
12010
|
-
return (hAsync(Host, { key: '
|
|
13393
|
+
return (hAsync(Host, { key: '70a4e7c8a5e6e69d64d78375798498b7807ae16a', class: {
|
|
12011
13394
|
["ic-horizontal-scroll-visible"]: itemOverflow,
|
|
12012
13395
|
["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum$1.Dark,
|
|
12013
13396
|
["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum$1.Light,
|
|
12014
13397
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
12015
|
-
} }, hAsync("div", { key: '
|
|
13398
|
+
} }, hAsync("div", { key: '586bf3284c05ffad1ebd3c61e44e992aa9d71c25', "aria-hidden": "true", class: {
|
|
12016
13399
|
["scroll-container-left"]: true,
|
|
12017
13400
|
["hidden"]: !itemOverflow,
|
|
12018
13401
|
["disabled"]: firstItemVisible,
|
|
12019
|
-
}, role: "tab" }, hAsync("ic-button", { key: '
|
|
13402
|
+
}, role: "tab" }, hAsync("ic-button", { key: '0125b0d48b7ae82fb580bc890450d1fb14f71a5f', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
|
|
12020
13403
|
? "dark"
|
|
12021
|
-
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: '
|
|
13404
|
+
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: '363c0c48d85e455684573a12554afcf765c4ae95', class: "scroll-splitter-left" })), hAsync("slot", { key: 'b12cc6de29b6345e3ef5ece250f4998252d9a54b' }), hAsync("div", { key: '47d5456630571ac7e877f791401129ec6524d52b', "aria-hidden": "true", class: {
|
|
12022
13405
|
["scroll-container-right"]: true,
|
|
12023
13406
|
["hidden"]: !itemOverflow,
|
|
12024
13407
|
["disabled"]: lastItemVisible,
|
|
12025
|
-
}, role: "tab" }, hAsync("span", { key: '
|
|
13408
|
+
}, role: "tab" }, hAsync("span", { key: '13b35c95c35dc6a44464996880c7f3a3fc671b42', class: "scroll-splitter-right" }), hAsync("ic-button", { key: '95434e1cf988eaa4049bcb6926d515182a7f7072', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll right", theme: this.theme === "light" || this.theme === "inherit"
|
|
12026
13409
|
? "dark"
|
|
12027
13410
|
: "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
|
|
12028
13411
|
}
|
|
@@ -12097,15 +13480,15 @@ class InputComponentContainer {
|
|
|
12097
13480
|
}
|
|
12098
13481
|
render() {
|
|
12099
13482
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
|
12100
|
-
return (hAsync(Host, { key: '
|
|
13483
|
+
return (hAsync(Host, { key: '82e6604ab956d7648209ae1214797d48ce4a169c', class: {
|
|
12101
13484
|
[`ic-input-component-container-${size}`]: true,
|
|
12102
13485
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
|
12103
13486
|
"ic-input-component-container-disabled": !!disabled,
|
|
12104
13487
|
"ic-input-component-container-readonly": !!readonly,
|
|
12105
13488
|
"ic-input-component-container-multiline": !!multiLine,
|
|
12106
13489
|
"ic-input-component-container-full-width": !!fullWidth,
|
|
12107
|
-
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '
|
|
12108
|
-
validationStatus === IcInformationStatus$1.Success && (hAsync("span", { key: '
|
|
13490
|
+
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '0fd329a8f1397ab2b6f7b4f3fd62d180003ef7e4', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (hAsync("div", { key: '3af5861c01b3e6338e20288c0577d4554d9357e6', class: "icon-container" }, hAsync("slot", { key: '25bd5414058904fb5ed05f0e4e7fda6fc4966fbb', name: "left-icon" }))), hAsync("slot", { key: '2a63ea395d97ca2f3121f30fae1a3ac8bdfd7599' }), validationInline &&
|
|
13491
|
+
validationStatus === IcInformationStatus$1.Success && (hAsync("span", { key: 'ac962172c01b7cc0abf776b7a5ff0e58cd996ad7', class: "inline-success", innerHTML: successIcon })))));
|
|
12109
13492
|
}
|
|
12110
13493
|
get el() { return getElement(this); }
|
|
12111
13494
|
static get watchers() { return {
|
|
@@ -12146,11 +13529,11 @@ class InputContainer {
|
|
|
12146
13529
|
this.readonly = false;
|
|
12147
13530
|
}
|
|
12148
13531
|
render() {
|
|
12149
|
-
return (hAsync(Host, { key: '
|
|
13532
|
+
return (hAsync(Host, { key: 'd7a6f03073013efef8534f6305e64f66d2b58b91' }, hAsync("div", { key: 'f93b5ad4fc27eed8fabf3fd83de73906b4592ca4', class: {
|
|
12150
13533
|
["component-container"]: true,
|
|
12151
13534
|
["disabled"]: !!this.disabled,
|
|
12152
13535
|
["readonly"]: !!this.readonly,
|
|
12153
|
-
} }, hAsync("slot", { key: '
|
|
13536
|
+
} }, hAsync("slot", { key: '59074f71d915aebc3205308c0406b4f6ab2a73ae' }))));
|
|
12154
13537
|
}
|
|
12155
13538
|
static get style() { return IcInputContainerStyle0; }
|
|
12156
13539
|
static get cmpMeta() { return {
|
|
@@ -12233,11 +13616,11 @@ class InputLabel {
|
|
|
12233
13616
|
"helpertext-readonly": readonly,
|
|
12234
13617
|
};
|
|
12235
13618
|
const helperTextSlot = this.el.querySelector("slot[name='helper-text']");
|
|
12236
|
-
return (hAsync(Host, { key: '
|
|
13619
|
+
return (hAsync(Host, { key: 'b4ae951684bc9fbacd077fd7586a60a680cb1114', class: {
|
|
12237
13620
|
"ic-input-label-disabled": !!disabled,
|
|
12238
13621
|
"ic-input-label-readonly": readonly,
|
|
12239
13622
|
"with-helper": this.isHelperTextSlotUsed(helperTextSlot) || helperText !== "",
|
|
12240
|
-
} }, !hideLabel && (hAsync("ic-typography", { key: '
|
|
13623
|
+
} }, !hideLabel && (hAsync("ic-typography", { key: 'dd5d6d73707aadd9cc59225224fffadefecda9c7', variant: "label", class: {
|
|
12241
13624
|
"readonly-label": readonly,
|
|
12242
13625
|
"error-label": status === "error" && !(readonly || disabled),
|
|
12243
13626
|
} }, 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))))));
|
|
@@ -12264,14 +13647,15 @@ class InputLabel {
|
|
|
12264
13647
|
}; }
|
|
12265
13648
|
}
|
|
12266
13649
|
|
|
12267
|
-
const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);margin-top:var(--ic-space-xs)
|
|
13650
|
+
const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);display:flex}ic-input-validation.ic-input-validation-with-status{margin-top:var(--ic-space-xs)}ic-input-validation.ic-input-validation-full-width{width:100%}ic-input-validation span.status-icon{padding-right:var(--ic-space-xxs)}ic-input-validation span.status-icon>svg{height:1.25rem;width:1.25rem}ic-input-validation span.icon-success>svg{fill:var(--ic-input-validation-success-icon-color)}ic-input-validation span.icon-error>svg{fill:var(--ic-input-validation-error, var(--ic-atoms-status-icon-error))}ic-input-validation span.icon-warning>svg{fill:var(--ic-input-validation-warning-icon-color)}ic-input-validation .statustext{flex-grow:1;color:var(\n --ic-input-validation-status-text-color,\n var(--ic-color-text-primary)\n );--ic-typography-color:var(\n --ic-input-validation-status-text-color,\n var(--ic-color-text-primary)\n )}ic-input-validation .sr-only{position:absolute;left:-9999px}";
|
|
12268
13651
|
var IcInputValidationStyle0 = icInputValidationCss;
|
|
12269
13652
|
|
|
12270
|
-
const
|
|
13653
|
+
const ICON = {
|
|
12271
13654
|
[IcInformationStatus$1.Warning]: warningIcon$1,
|
|
12272
13655
|
[IcInformationStatus$1.Error]: errorIcon,
|
|
12273
13656
|
[IcInformationStatus$1.Success]: successIcon,
|
|
12274
13657
|
};
|
|
13658
|
+
const INVISIBLE_CHAR = "\u200B";
|
|
12275
13659
|
/**
|
|
12276
13660
|
* @slot validation-message-adornment - Content will be placed to the right of the validation message.
|
|
12277
13661
|
*/
|
|
@@ -12291,21 +13675,34 @@ class InputValidation {
|
|
|
12291
13675
|
*/
|
|
12292
13676
|
this.status = "";
|
|
12293
13677
|
}
|
|
13678
|
+
watchMessageHandler(newValue) {
|
|
13679
|
+
// Force detectable DOM changes
|
|
13680
|
+
// Invisible character used as screen readers can ignore whitespace changes e.g. "" and " "
|
|
13681
|
+
this.messageEl.textContent = INVISIBLE_CHAR;
|
|
13682
|
+
setTimeout(() => {
|
|
13683
|
+
this.messageEl.textContent = newValue;
|
|
13684
|
+
}, 200); // Delay to help ensure screen readers detect change
|
|
13685
|
+
}
|
|
12294
13686
|
componentDidLoad() {
|
|
12295
13687
|
onComponentRequiredPropUndefined$1([{ prop: this.message, propName: "message" }], "Input Validation");
|
|
13688
|
+
this.messageEl.textContent = INVISIBLE_CHAR;
|
|
12296
13689
|
}
|
|
12297
13690
|
render() {
|
|
12298
13691
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
|
12299
|
-
const displayIcon = status !== "" ?
|
|
12300
|
-
return (hAsync(Host, { key: '
|
|
13692
|
+
const displayIcon = status !== "" ? ICON[status] : "";
|
|
13693
|
+
return (hAsync(Host, { key: 'f1ba7e992a65cbd63d86411844668a0db4944cf2', class: {
|
|
12301
13694
|
[`ic-input-validation-${status}`]: status !== "",
|
|
12302
13695
|
"ic-input-validation-full-width": !!fullWidth,
|
|
12303
|
-
|
|
13696
|
+
"ic-input-validation-with-status": status !== "",
|
|
13697
|
+
} }, displayIcon !== "" && (hAsync("span", { key: '43bf05c319e9f4cdb7f6e5affd403d745b7dac00', class: {
|
|
12304
13698
|
"status-icon": true,
|
|
12305
13699
|
[`icon-${status}`]: true,
|
|
12306
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
|
13700
|
+
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '8d0f570e79158d1add1410653c8bbdb5e052aaa3', variant: "caption", class: "statustext" }, hAsync("span", { key: 'c363e60a30ef571a63779ed77a7e4e8358444d5f', id: this.for && getInputValidationTextID$1(this.for) }, message), hAsync("span", { key: '53959e2fb2d6b51aaa5eca1f9526f0a6e55b5bea', ref: (el) => (this.messageEl = el), class: "sr-only", "aria-live": ariaLiveMode })), hAsync("slot", { key: '861c3d827e89d6e4c917cb6d584e7d3ec6a5c27a', name: "validation-message-adornment" })));
|
|
12307
13701
|
}
|
|
12308
13702
|
get el() { return getElement(this); }
|
|
13703
|
+
static get watchers() { return {
|
|
13704
|
+
"message": ["watchMessageHandler"]
|
|
13705
|
+
}; }
|
|
12309
13706
|
static get style() { return IcInputValidationStyle0; }
|
|
12310
13707
|
static get cmpMeta() { return {
|
|
12311
13708
|
"$flags$": 4,
|
|
@@ -12452,10 +13849,10 @@ class LayoutGrid {
|
|
|
12452
13849
|
}
|
|
12453
13850
|
render() {
|
|
12454
13851
|
const { aligned, fullHeight } = this;
|
|
12455
|
-
return (hAsync(Host, { key: '
|
|
13852
|
+
return (hAsync(Host, { key: 'c7903c71e7a267ce14d624e371128b66b990319e', class: {
|
|
12456
13853
|
[`ic-layout-grid-aligned-${aligned}`]: true,
|
|
12457
13854
|
["ic-layout-grid-no-vertical-padding"]: !!fullHeight,
|
|
12458
|
-
} }, hAsync("slot", { key: '
|
|
13855
|
+
} }, hAsync("slot", { key: '7d501b244c1e6631ac1f712707b816be89014298' })));
|
|
12459
13856
|
}
|
|
12460
13857
|
get el() { return getElement(this); }
|
|
12461
13858
|
static get watchers() { return {
|
|
@@ -12535,9 +13932,9 @@ class LayoutGridItem {
|
|
|
12535
13932
|
}
|
|
12536
13933
|
render() {
|
|
12537
13934
|
const { hideInMobileMode } = this;
|
|
12538
|
-
return (hAsync(Host, { key: '
|
|
13935
|
+
return (hAsync(Host, { key: 'a6e63c7a2e569fefef8bd1f801719ec0cfc999f2', class: {
|
|
12539
13936
|
"ic-layout-grid-hide-in-mobile": !!hideInMobileMode,
|
|
12540
|
-
} }, hAsync("slot", { key: '
|
|
13937
|
+
} }, hAsync("slot", { key: '976299cc75e2a275ce07dc9bb4ccde082c559175' })));
|
|
12541
13938
|
}
|
|
12542
13939
|
get el() { return getElement(this); }
|
|
12543
13940
|
static get watchers() { return {
|
|
@@ -12650,7 +14047,7 @@ class Link {
|
|
|
12650
14047
|
}
|
|
12651
14048
|
render() {
|
|
12652
14049
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
|
12653
|
-
return (hAsync(Host, { key: '
|
|
14050
|
+
return (hAsync(Host, { key: '17cbca6abdc9b48879a9d307c5bb73fada03aa2d', class: {
|
|
12654
14051
|
["ic-link"]: true,
|
|
12655
14052
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
12656
14053
|
["ic-link-monochrome"]: !!monochrome,
|
|
@@ -12865,23 +14262,23 @@ class LoadingIndicator {
|
|
|
12865
14262
|
}
|
|
12866
14263
|
render() {
|
|
12867
14264
|
const { circularDiameter, circularDimensions: { x, y, r, dashArray, dashOffset }, description, fullWidth, indicatorLabel, innerLabel, label, max, min, monochrome, progress, size, theme, type, } = this;
|
|
12868
|
-
return (hAsync(Host, { key: '
|
|
14265
|
+
return (hAsync(Host, { key: '8e5015de29e0c003ae813d95e215031276669fed', class: {
|
|
12869
14266
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
12870
14267
|
"ic-loading-indicator-full-width": fullWidth,
|
|
12871
14268
|
"ic-loading-indicator-label": !!label,
|
|
12872
14269
|
"ic-loading-indicator-monochrome": monochrome,
|
|
12873
|
-
} }, hAsync("div", { key: '
|
|
14270
|
+
} }, hAsync("div", { key: 'fdd7384e07827cfc6f32cd7f7fde71807a441e7d', class: "ic-loading-container", part: "ic-loading-container" }, hAsync("div", { key: 'dd4b7dae54199c8313a6bd9c5a2133b11de29b57', ref: (el) => (this.outerElement = el), class: {
|
|
12874
14271
|
[`ic-loading-${type}-outer`]: true,
|
|
12875
14272
|
[progress === undefined ? "indeterminate" : "determinate"]: true,
|
|
12876
|
-
}, 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: '
|
|
14273
|
+
}, 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: 'ba4e9f7ec6e1cdafdd844bb2e357822cf316128c', ref: (el) => (this.innerElement = el), class: {
|
|
12877
14274
|
[`ic-loading-${type}-inner`]: true,
|
|
12878
14275
|
"inner-label": !!innerLabel,
|
|
12879
|
-
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: '
|
|
14276
|
+
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: '096a8f75dcbdaec7c0d2f71dcd447e08e279a41d', variant: "subtitle-small", class: "inner-text" }, innerLabel)), type === "circular" && (hAsync("svg", { key: 'c048f6de73691df17ec79f75860d177e9c83bcc5', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, hAsync("circle", { key: '5c52a4f617319167ab495785c736601f9d12bf08', cx: x, cy: y, r: r }), hAsync("circle", { key: '7839b8b36e4306e224639f8a347ccde726aaa09c', style: {
|
|
12880
14277
|
"--circular-steps-max": progress ? `${max}` : undefined,
|
|
12881
14278
|
"--progress-value": progress !== undefined ? `${progress}` : undefined,
|
|
12882
14279
|
"--stroke-dasharray": dashArray,
|
|
12883
14280
|
"--stroke-dashoffset": dashOffset,
|
|
12884
|
-
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: '
|
|
14281
|
+
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: '868967e2a21589616e31a9b761849a69b458a2c1', id: "ic-loading-label", class: "ic-loading-label", role: "alert", variant: this.getLabelVariant() }, hAsync("p", { key: '439329efda39e3ae81e56f494c8cbe5000265aa9' }, indicatorLabel))))));
|
|
12885
14282
|
}
|
|
12886
14283
|
get el() { return getElement(this); }
|
|
12887
14284
|
static get watchers() { return {
|
|
@@ -14716,7 +16113,22 @@ var checkIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2
|
|
|
14716
16113
|
</svg>
|
|
14717
16114
|
`;
|
|
14718
16115
|
|
|
14719
|
-
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));color:var(--menu-item-text-color, var(--ic-menu-list-option-text-color));--ic-typography-color:var(\n --menu-item-text-color,\n var(--ic-menu-list-option-text-color)\n );background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.ic-menu-open.sc-ic-menu-h:not(.ic-menu-no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.ic-select-select-all-focused.sc-ic-menu-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu #retry-button.sc-ic-menu::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-h{inset:auto !important}.menu.sc-ic-menu{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu:has(+.option-bar).sc-ic-menu{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu{overflow-y:auto}.menu.sc-ic-menu:focus-visible{outline:none}.ic-menu-open.sc-ic-menu-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid\n var(--menu-border-color, var(--ic-menu-border-color));transition:box-shadow var(--ic-easing-transition-fast)}.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.ic-menu-open.sc-ic-menu-h .option-bar.sc-ic-menu{visibility:visible}.ic-menu-open.sc-ic-menu-h .select-all-button.sc-ic-menu{display:block}.ic-menu-full-width.sc-ic-menu-h{width:100%}.option.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center}.loading-option.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.option.sc-ic-menu:not(.loading-option){justify-content:space-between}.ic-menu-small.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.ic-menu-large.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu:last-child{border-radius:0 0 1px 1px}.sc-ic-menu:not(.menu:has(+.option-bar)).sc-ic-menu .option.sc-ic-menu:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu:not(.disabled-option):hover{background-color:var(--ic-menu-list-option-hover-background-color)}.option.sc-ic-menu:not(.disabled-option):active{background-color:var(--ic-menu-list-option-pressed-background-color)}.option.sc-ic-menu:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu:not(.disabled-option) .option-description.sc-ic-menu{--ic-typography-color:var(\n --menu-item-desc-text-color,\n var(--ic-menu-list-option-description-text-color)\n )}.option.sc-ic-menu .option-label.sc-ic-menu{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu .option-label.sc-ic-menu ic-typography.sc-ic-menu{max-width:100%;word-wrap:break-word}.option.sc-ic-menu .option-element.sc-ic-menu{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu .option-icon.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxxs)}.option-text-container.sc-ic-menu{pointer-events:none;width:100%}.option-text-container.show-check-icon.sc-ic-menu{width:calc(var(--ic-space-lg) * 10 + var(--ic-space-xl))}.option.loading-option.sc-ic-menu .option-text-container.sc-ic-menu{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-menu-loading-list-option-text-color);--ic-typography-color:var(--ic-menu-loading-list-option-text-color)}.error-icon-svg.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-atoms-status-icon-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu{display:flex}.check-icon.sc-ic-menu{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-xs);pointer-events:none}.focused-option.sc-ic-menu .check-icon.sc-ic-menu *.sc-ic-menu{fill:currentcolor}.option-group-title.sc-ic-menu{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);--ic-typography-color:var(--ic-menu-option-group-label-text-color)}.ic-menu-small.sc-ic-menu-h .option-group-title.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu{border-bottom:var(--ic-menu-last-recommended-option-border)}.disabled-option.sc-ic-menu{color:var(--ic-atoms-list-option-text-disabled-light);--ic-typography-color:var(--ic-atoms-list-option-text-disabled-light);cursor:default;pointer-events:none}.focused-option.sc-ic-menu,.focused-option.sc-ic-menu .option-description.sc-ic-menu{background-color:var(--ic-color-focus-inner) !important;color:var(--ic-atoms-list-option-text-focused-light) !important;--ic-typography-color:var(\n --ic-atoms-list-option-text-focused-light\n ) !important}.no-results.sc-ic-menu-h li.sc-ic-menu{cursor:no-drop}.no-results.sc-ic-menu-h li.sc-ic-menu:hover{background-color:transparent}.option-bar.sc-ic-menu{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-menu-option-bar-background-color);visibility:hidden;border-bottom:var(--ic-border-width) solid\n var(--ic-menu-option-bar-divider-color);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.ic-menu-large.sc-ic-menu-h .option-bar.sc-ic-menu{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu{display:none}.select-all-button.sc-ic-menu:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu:focus{outline:none;border:0.125rem solid transparent}.disabled-option.sc-ic-menu{color:GrayText;--ic-typography-color:GrayText}}";
|
|
16116
|
+
/* istanbul ignore next */
|
|
16117
|
+
const getCustomElementHandling = (allowICPrefix) => ({
|
|
16118
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
16119
|
+
tagNameCheck: (tagName) => (allowICPrefix && tagName.startsWith("ic-")) ||
|
|
16120
|
+
IC_CUSTOM_ALLOWED_COMPONENTS$1.includes(tagName),
|
|
16121
|
+
attributeNameCheck: /.*/,
|
|
16122
|
+
},
|
|
16123
|
+
});
|
|
16124
|
+
const sanitizeHTMLString = (html) => {
|
|
16125
|
+
return purifier.sanitize(html, getCustomElementHandling(true));
|
|
16126
|
+
};
|
|
16127
|
+
const sanitizeHTMLIconString = (html) => {
|
|
16128
|
+
return purifier.sanitize(html, getCustomElementHandling(false));
|
|
16129
|
+
};
|
|
16130
|
+
|
|
16131
|
+
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));color:var(--menu-item-text-color, var(--ic-menu-list-option-text-color));--ic-typography-color:var(\n --menu-item-text-color,\n var(--ic-menu-list-option-text-color)\n );background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.ic-menu-open.sc-ic-menu-h:not(.ic-menu-no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.ic-select-select-all-focused.sc-ic-menu-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu #retry-button.sc-ic-menu::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-h{inset:auto !important}.menu.sc-ic-menu{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu:has(+.option-bar).sc-ic-menu{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu{overflow-y:auto}.menu.sc-ic-menu:focus-visible{outline:none}.ic-menu-open.sc-ic-menu-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid\n var(--menu-border-color, var(--ic-menu-border-color));transition:box-shadow var(--ic-easing-transition-fast)}.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.ic-menu-open.sc-ic-menu-h .option-bar.sc-ic-menu{visibility:visible}.ic-menu-open.sc-ic-menu-h .select-all-button.sc-ic-menu{display:block}.ic-menu-full-width.sc-ic-menu-h{width:100%}.option.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center;gap:var(--ic-space-xs)}.loading-option.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.option.sc-ic-menu:not(.loading-option){justify-content:space-between}.ic-menu-small.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.ic-menu-large.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu:last-child{border-radius:0 0 1px 1px}.sc-ic-menu:not(.menu:has(+.option-bar)).sc-ic-menu .option.sc-ic-menu:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu:not(.disabled-option):hover{background-color:var(--ic-menu-list-option-hover-background-color)}.option.sc-ic-menu:not(.disabled-option):active{background-color:var(--ic-menu-list-option-pressed-background-color)}.option.sc-ic-menu:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu:not(.disabled-option) .option-description.sc-ic-menu{--ic-typography-color:var(\n --menu-item-desc-text-color,\n var(--ic-menu-list-option-description-text-color)\n )}.option.sc-ic-menu .option-label.sc-ic-menu{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu .option-label.sc-ic-menu ic-typography.sc-ic-menu{max-width:100%;word-wrap:break-word}.option.sc-ic-menu .option-element.sc-ic-menu{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu .option-icon.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxxs)}.option-text-container.sc-ic-menu{pointer-events:none;width:100%}.option-text-container.show-check-icon.sc-ic-menu{flex-grow:1}.option.loading-option.sc-ic-menu .option-text-container.sc-ic-menu{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-menu-loading-list-option-text-color);--ic-typography-color:var(--ic-menu-loading-list-option-text-color)}.error-icon-svg.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-atoms-status-icon-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu{display:flex}.check-icon.sc-ic-menu{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);pointer-events:none}.focused-option.sc-ic-menu .check-icon.sc-ic-menu *.sc-ic-menu{fill:currentcolor}.option-group-title.sc-ic-menu{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);--ic-typography-color:var(--ic-menu-option-group-label-text-color)}.ic-menu-small.sc-ic-menu-h .option-group-title.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu{border-bottom:var(--ic-menu-last-recommended-option-border)}.disabled-option.sc-ic-menu{color:var(--ic-atoms-list-option-text-disabled-light);--ic-typography-color:var(--ic-atoms-list-option-text-disabled-light);cursor:default;pointer-events:none}.focused-option.sc-ic-menu,.focused-option.sc-ic-menu .option-description.sc-ic-menu{background-color:var(--ic-color-focus-inner) !important;color:var(--ic-atoms-list-option-text-focused-light) !important;--ic-typography-color:var(\n --ic-atoms-list-option-text-focused-light\n ) !important}.no-results.sc-ic-menu-h li.sc-ic-menu{cursor:no-drop}.no-results.sc-ic-menu-h li.sc-ic-menu:hover{background-color:transparent}.option-bar.sc-ic-menu{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-menu-option-bar-background-color);visibility:hidden;border-bottom:var(--ic-border-width) solid\n var(--ic-menu-option-bar-divider-color);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.ic-menu-large.sc-ic-menu-h .option-bar.sc-ic-menu{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu{display:none}.select-all-button.sc-ic-menu:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu:focus{outline:none;border:0.125rem solid transparent}.disabled-option.sc-ic-menu{color:GrayText;--ic-typography-color:GrayText}}";
|
|
14720
16132
|
var IcMenuStyle0 = icMenuCss;
|
|
14721
16133
|
|
|
14722
16134
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -15450,7 +16862,7 @@ class Menu {
|
|
|
15450
16862
|
return (hAsync(Fragment, null, option.loading && hAsync("ic-loading-indicator", { size: "icon" }), hAsync("div", { class: {
|
|
15451
16863
|
"option-text-container": true,
|
|
15452
16864
|
"show-check-icon": showCheckIcon,
|
|
15453
|
-
} }, hAsync("div", { class: "option-label" }, option.icon && (hAsync("div", { class: "option-icon", innerHTML: option.icon, "aria-hidden": "true" })), hAsync("ic-typography", { variant: "body", "aria-hidden": "true" }, option[this.labelField])), option.description && (hAsync("ic-typography", { id: `${this.getOptionId(option[this.valueField])}-description`, class: "option-description", variant: "caption", "aria-hidden": "true" }, hAsync("p", null, option.description))), option.element && (hAsync("div", { class: "option-element", innerHTML: option.element.component, "aria-hidden": "true" }))), showCheckIcon && hAsync("span", { class: "check-icon", innerHTML: checkIcon })));
|
|
16865
|
+
} }, hAsync("div", { class: "option-label" }, option.icon && (hAsync("div", { class: "option-icon", innerHTML: sanitizeHTMLIconString(option.icon), "aria-hidden": "true" })), hAsync("ic-typography", { variant: "body", "aria-hidden": "true" }, option[this.labelField])), option.description && (hAsync("ic-typography", { id: `${this.getOptionId(option[this.valueField])}-description`, class: "option-description", variant: "caption", "aria-hidden": "true" }, hAsync("p", null, option.description))), option.element && (hAsync("div", { class: "option-element", innerHTML: sanitizeHTMLString(option.element.component), "aria-hidden": "true" }))), showCheckIcon && hAsync("span", { class: "check-icon", innerHTML: checkIcon })));
|
|
15454
16866
|
};
|
|
15455
16867
|
this.displayOption = (option, selected, index, parentOption) => {
|
|
15456
16868
|
const { open, keyboardNav, isManualMode, initialOptionsListRender, optionHighlighted, options, } = this;
|
|
@@ -15472,7 +16884,7 @@ class Menu {
|
|
|
15472
16884
|
? "0"
|
|
15473
16885
|
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": selected ? "true" : "false", "aria-disabled": option.disabled ? "true" : "false", onClick: !option.timedOut && !option.loading
|
|
15474
16886
|
? this.handleOptionClick
|
|
15475
|
-
: undefined, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, "data-value": option[this.valueField], "data-label": option[this.labelField] }, option.timedOut ? (hAsync(Fragment, null, hAsync("div", { class: "loading-error-info" }, hAsync("svg", { class: "error-icon-svg",
|
|
16887
|
+
: undefined, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, "data-value": option[this.valueField], "data-label": option[this.labelField] }, option.timedOut ? (hAsync(Fragment, null, hAsync("div", { class: "loading-error-info" }, hAsync("svg", { class: "error-icon-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#000000" }, hAsync("title", null, "Error"), hAsync("g", null, hAsync("path", { d: "M8.77 3L3.5 8.27V15.73L8.77 21H16.23L21.5 15.73V8.27L16.23 3M8.91 7L12.5 10.59L16.09 7L17.5 8.41L13.91 12L17.5 15.59L16.09 17L12.5 13.41L8.91 17L7.5 15.59L11.09 12L7.5 8.41" }))), hAsync("ic-typography", { variant: "label" }, option[this.labelField])), hAsync("ic-button", { size: "small", variant: "tertiary", onClick: this.handleRetry, onKeyDown: this.handleRetryKeyDown, onBlur: this.handleTimeoutBlur, id: "retry-button" }, "Retry"))) : (this.optionContent(option, selected))));
|
|
15476
16888
|
};
|
|
15477
16889
|
}
|
|
15478
16890
|
watchOpenHandler() {
|
|
@@ -15639,7 +17051,7 @@ class Menu {
|
|
|
15639
17051
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
|
15640
17052
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
|
15641
17053
|
const hasNoResults = this.host.classList.contains("no-results");
|
|
15642
|
-
return (hAsync(Host, { key: '
|
|
17054
|
+
return (hAsync(Host, { key: 'e17a70bcf59709dd5b9d0cc7b404520ff06bcf35', class: {
|
|
15643
17055
|
"ic-menu-full-width": !!fullWidth,
|
|
15644
17056
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
|
15645
17057
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
|
@@ -15648,7 +17060,7 @@ class Menu {
|
|
|
15648
17060
|
[`ic-menu-${size}`]: true,
|
|
15649
17061
|
"ic-menu-open": open && options.length !== 0,
|
|
15650
17062
|
"ic-menu-multiple": multiSelect,
|
|
15651
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
|
17063
|
+
} }, options.length !== 0 && (hAsync("ul", { key: '438cd6126c1296a14e216edc0a5d790a4705b143', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", tabindex: open &&
|
|
15652
17064
|
!keyboardNav &&
|
|
15653
17065
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
|
15654
17066
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
|
@@ -15676,7 +17088,7 @@ class Menu {
|
|
|
15676
17088
|
multiSelect &&
|
|
15677
17089
|
!isLoading &&
|
|
15678
17090
|
!hasTimedOut &&
|
|
15679
|
-
!hasNoResults && (hAsync("div", { key: '
|
|
17091
|
+
!hasNoResults && (hAsync("div", { key: '5732c5ac4fa70ff249a7851d61aee8ccf46082d1', class: "option-bar" }, hAsync("ic-typography", { key: '48ce8543a189cad706804715a077575b3774e490' }, hAsync("p", { key: '63537752e580815f650c3d9bbf38b23267c5229c' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: '60c446e5303a3939494284b9ce7772feb1fe547c', 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)))));
|
|
15680
17092
|
}
|
|
15681
17093
|
get host() { return getElement(this); }
|
|
15682
17094
|
static get watchers() { return {
|
|
@@ -15736,7 +17148,7 @@ class MenuGroup {
|
|
|
15736
17148
|
}
|
|
15737
17149
|
render() {
|
|
15738
17150
|
const parentMenu = this.el.closest("ic-popover-menu");
|
|
15739
|
-
return (hAsync(Host, { key: '
|
|
17151
|
+
return (hAsync(Host, { key: '0671b22234980b7b332889e7d643b8f5e42841c1', role: "group", "aria-label": this.label !== null ? this.label : "" }, isPropDefined$1(this.label) && (hAsync("ic-typography", { key: '444d817f6505c858593b136e7c2040cf40502f56', variant: "subtitle-small" }, this.label)), hAsync("span", { key: '4b79a7b6f40da4a1eab4121f9aff972776fb52f9', class: "menu-items-wrapper" }, hAsync("slot", { key: '99160dcb17e825ac4a44ca8348dc0a1452b5f0e3' })), this.el !== (parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.querySelector("ic-menu-group:last-child")) && (hAsync("hr", { key: '3591bc3153bcefa6ba7917332e0a106144b3ea74' }))));
|
|
15740
17152
|
}
|
|
15741
17153
|
get el() { return getElement(this); }
|
|
15742
17154
|
static get style() { return IcMenuGroupStyle0; }
|
|
@@ -16283,7 +17695,7 @@ class NavigationGroup {
|
|
|
16283
17695
|
const isTopNav = this.navigationType === "top";
|
|
16284
17696
|
const isTopNavDesktop = !inTopNavSideMenu && isTopNav;
|
|
16285
17697
|
const ariaExpanded = (isSideNav && expanded) || (isTopNav && dropdownOpen);
|
|
16286
|
-
return (hAsync(Host, { key: '
|
|
17698
|
+
return (hAsync(Host, { key: '393cd6fdb52feac00792c6045472ffb466c45663', class: {
|
|
16287
17699
|
"in-side-menu": inTopNavSideMenu,
|
|
16288
17700
|
"ic-navigation-group-expandable": expandable,
|
|
16289
17701
|
"ic-navigation-group-side-nav": isSideNav,
|
|
@@ -16708,16 +18120,16 @@ class NavigationMenu {
|
|
|
16708
18120
|
}
|
|
16709
18121
|
}
|
|
16710
18122
|
render() {
|
|
16711
|
-
return (hAsync(Host, { key: '
|
|
18123
|
+
return (hAsync(Host, { key: '10788f4141f818f0f6d162ab14ef31f387a0a088', class: { [`ic-theme-${this.theme}`]: this.theme !== "inherit" } }, hAsync("div", { key: '073fc0b5677787aea69610218e31c98af2d0bcf6', class: "popout-modal", onClick: this.closeMenu }), hAsync("div", { key: 'b1c089216c1b0d048ed5f7ab22b493f18e6c1925', class: "popout-menu", role: "dialog", "aria-modal": "true", "aria-label": `${this.hasNavigation ? "Navigation" : "App"} menu` }, hAsync("span", { key: '7cd1e985e623de53c4b54d145e3c5778e5b42d9d', "aria-hidden": "true", id: "navigation-landmark-text", class: "navigation-landmark-text" }, "Main navigation"), hAsync("nav", { key: '96b72f2b119115ff4c7ae045def9f77e075a3da8', "aria-labelledby": "navigation-landmark-text", "aria-hidden": this.hasNavigation ? "false" : "true" }, hAsync("div", { key: '7f6f200c07a572b08bc40feb3bc4626fd236b82a', class: {
|
|
16712
18124
|
["menu-close-button-container"]: true,
|
|
16713
18125
|
["nav-group-first"]: this.navGroupFirst,
|
|
16714
|
-
} }, hAsync("ic-button", { key: '
|
|
18126
|
+
} }, hAsync("ic-button", { key: '4f2f8c7694c1a38b21da8c526fdb987aecdf5a80', 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: '9dc1c3ec5b42c3ce30a8a5d08f0478dc288029ff', width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '8afa8a42d3a4d90884d80d2997f26f62343c7c28', 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: '6f4b56a9ac5d20aeac2e95e7153644d47eb149ea', name: "navigation" })), this.hasButtons && (hAsync("div", { key: 'e93f88be7521de76edae1845a6dfb472435ff552', class: {
|
|
16715
18127
|
["menu-buttons-container"]: true,
|
|
16716
18128
|
["menu-buttons-container-nav-item-above"]: this.navItemAboveButtons,
|
|
16717
|
-
} }, hAsync("slot", { key: '
|
|
18129
|
+
} }, hAsync("slot", { key: 'c5c8f1021794b892fbb72511bb01336a75ce0127', name: "buttons" }))), (this.status !== "" || this.version !== "") && (hAsync("div", { key: '2fd5a79a68bec985b82699c8ec6df946ac4a84e4', class: {
|
|
16718
18130
|
["menu-status-version-container"]: true,
|
|
16719
18131
|
["status-version-no-buttons"]: !this.hasButtons,
|
|
16720
|
-
} }, this.status !== "" && (hAsync("div", { key: '
|
|
18132
|
+
} }, this.status !== "" && (hAsync("div", { key: 'c99d654ffe4ed2bd091b626af0afd9d93952e19b', class: "menu-status" }, hAsync("ic-typography", { key: 'aa8aa2cba8d295a9cd1bee92920db503fee41249', variant: "label-uppercase", "aria-label": "app tag", class: "menu-status-text" }, this.status))), this.version !== "" && (hAsync("div", { key: 'e20bad59ea61b6670905a158be44aa0af25b4560', class: "menu-version" }, hAsync("ic-typography", { key: '561be48d1ceacba55142d69237586ac93032af8c', variant: "label", class: "menu-version-text", "aria-label": "app version" }, this.version))))))));
|
|
16721
18133
|
}
|
|
16722
18134
|
get el() { return getElement(this); }
|
|
16723
18135
|
static get style() { return IcNavigationMenuStyle0; }
|
|
@@ -16850,19 +18262,19 @@ class PageHeader {
|
|
|
16850
18262
|
const navAriaLabel = `${isSlotUsed$1(this.el, "heading")
|
|
16851
18263
|
? (_b = (_a = this.el.querySelector('[slot="heading"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : ""
|
|
16852
18264
|
: heading !== null && heading !== void 0 ? heading : ""} page sections`;
|
|
16853
|
-
return (hAsync(Host, { key: '
|
|
18265
|
+
return (hAsync(Host, { key: 'ef9b1c5acf30851bedddd8f840fae60b545dfd3f', class: {
|
|
16854
18266
|
["ic-page-header-sticky"]: !!sticky,
|
|
16855
18267
|
["ic-page-header-sticky-desktop"]: !sticky && !!stickyDesktopOnly,
|
|
16856
18268
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
16857
|
-
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: '
|
|
18269
|
+
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: 'e3f5ec39b13afbd9be424125fa43ea4634a90418', class: {
|
|
16858
18270
|
["border-bottom"]: !!border,
|
|
16859
18271
|
["tabs"]: isSlotUsed$1(this.el, "tabs"),
|
|
16860
|
-
}, role: "presentation" }, hAsync("ic-section-container", { key: '
|
|
18272
|
+
}, role: "presentation" }, hAsync("ic-section-container", { key: '7b58d10dbc3e72c05db7fdc67342eedfde9ed139', aligned: aligned, fullHeight: isSlotUsed$1(this.el, "tabs") }, isSlotUsed$1(this.el, "breadcrumbs") && (hAsync("div", { key: '386e595418e6234228b2518c430d59248b68641f', class: "breadcrumb-area" }, hAsync("slot", { key: 'c11be2d0fdccd46ff3ac512a2816b7d6ceceac72', name: "breadcrumbs" }))), hAsync("div", { key: 'd9d1bd5b030a28dbdccbdbb80a5ef609bcc927df', class: "main-content" }, hAsync("div", { key: '4743493c932b474fad24fc708ca05648d516f3fe', class: "title-area" }, hAsync("div", { key: '34fb35fd36f2ef0d8edf3efa0b7e62323be512bb', class: "header-content" }, hAsync("slot", { key: '1830379330d7f2a2742dd5ed75c5ea1755d7f8aa', name: "heading" }, hAsync("ic-typography", { key: '44e86892aa90b0af8eb1def5733852a4e8225dbb', variant: size === "small" ? "h4" : "h2", class: "heading" }, hAsync("h2", { key: 'be25fb99e3e8e5c81c209d1bcd57680718bdc5b8' }, heading))), hAsync("slot", { key: 'c907d0d661b042a77232979fd99a375dcfcc96fe', name: "heading-adornment" })), hAsync("div", { key: 'a7561b492f4d5135b4d8957694e498a50ca42645', class: {
|
|
16861
18273
|
["subheading-content"]: !!subheading || isSlotUsed$1(this.el, "subheading"),
|
|
16862
18274
|
["small"]: size === "small",
|
|
16863
|
-
} }, hAsync("slot", { key: '
|
|
16864
|
-
isSlotUsed$1(this.el, "tabs")) && (hAsync("div", { key: '
|
|
16865
|
-
!isSlotUsed$1(this.el, "tabs") && hAsync("slot", { key: '
|
|
18275
|
+
} }, hAsync("slot", { key: '6dc20fc584493c88e1a3baaf5badf583ad4bf694', name: "subheading" }, hAsync("ic-typography", { key: 'a1baec7c38856a1d982e7be6cdba10f59ca01351', variant: "body" }, subheading)))), isSlotUsed$1(this.el, "actions") && (hAsync("div", { key: '1b5c8bc9cdcb8398379665c2ca60a470a8e5a486', class: "action-area" }, hAsync("slot", { key: 'dcc940cea6c4a0b5871aa1501752fed22cc5f932', name: "actions" }))), isSlotUsed$1(this.el, "input") && (hAsync("div", { key: '8d0ff957c398f1ac9d8cbc7c78ec18c9b2710a43', class: "input-area" }, hAsync("slot", { key: '3dc09d1512ad8ce911ddee0a2dddafb8ae52450c', name: "input" })))), (isSlotUsed$1(this.el, "stepper") ||
|
|
18276
|
+
isSlotUsed$1(this.el, "tabs")) && (hAsync("div", { key: '9f527e5a1c67ec718a55fa4756249bb0f4c6a6fe', class: "navigation-area" }, isSlotUsed$1(this.el, "stepper") &&
|
|
18277
|
+
!isSlotUsed$1(this.el, "tabs") && hAsync("slot", { key: 'c8f71660620ec8d74dcefb02f2663a625e539a4d', name: "stepper" }), isSlotUsed$1(this.el, "tabs") && (hAsync("nav", { key: 'b2aef6529f53572613bf7a0996e6f1644c98463b', "aria-label": navAriaLabel }, hAsync("ic-horizontal-scroll", { key: 'fcb0cd4af39f445f6dd6e84d46e9289a2623ce8f' }, hAsync("ul", { key: '20c1b075f4f784856f4b067d25d4b1aff1720327', class: "tabs-slot" }, hAsync("slot", { key: '3f35ee8f7b07edbe36f979aee6638e0e430d9ea0', name: "tabs" })))))))))));
|
|
16866
18278
|
}
|
|
16867
18279
|
get el() { return getElement(this); }
|
|
16868
18280
|
static get style() { return IcPageHeaderStyle0; }
|
|
@@ -17140,14 +18552,14 @@ class Pagination {
|
|
|
17140
18552
|
}
|
|
17141
18553
|
render() {
|
|
17142
18554
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
|
17143
|
-
return (hAsync(Host, { key: '
|
|
18555
|
+
return (hAsync(Host, { key: 'fb99bef90dd70acdcc38a49c5ead06d6d8351ed4', class: {
|
|
17144
18556
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
17145
18557
|
["ic-pagination-monochrome"]: !!monochrome,
|
|
17146
|
-
} }, type === "simple" && (hAsync("nav", { key: '
|
|
18558
|
+
} }, type === "simple" && (hAsync("nav", { key: '5134a43228fbd8a137fd3e34607a1139bc09c9cc', class: {
|
|
17147
18559
|
["disabled"]: !!disabled,
|
|
17148
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '
|
|
18560
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '911c4ad52e99e400db64354740ebcc8f8fbed41b', 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: '9e803dc371d2ae0a6de0bb82fca25a8d4ad2cdb1', class: {
|
|
17149
18561
|
["disabled"]: !!disabled,
|
|
17150
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("span", { key: '
|
|
18562
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("span", { key: '61a05ee70fe739149339df6527a8aca0613ce56f', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
|
|
17151
18563
|
}
|
|
17152
18564
|
get el() { return getElement(this); }
|
|
17153
18565
|
static get watchers() { return {
|
|
@@ -17261,6 +18673,17 @@ class PaginationBar {
|
|
|
17261
18673
|
If `true`, the pagination bar is set to the first page when the 'items per page' changes
|
|
17262
18674
|
*/
|
|
17263
18675
|
this.setToFirstPageOnPaginationChange = false;
|
|
18676
|
+
this.setSelectedItemsPerPage = (selectedItemsPerPage, displayedItemsPerPageOptions = []) => {
|
|
18677
|
+
var _a;
|
|
18678
|
+
const isSelectedItemsPerPagePresent = displayedItemsPerPageOptions === null || displayedItemsPerPageOptions === void 0 ? void 0 : displayedItemsPerPageOptions.some(({ value }) => { var _a; return value === ((_a = this.selectedItemsPerPage) === null || _a === void 0 ? void 0 : _a.toString()); });
|
|
18679
|
+
if (isSelectedItemsPerPagePresent) {
|
|
18680
|
+
this.setItemsPerPage(selectedItemsPerPage, false);
|
|
18681
|
+
}
|
|
18682
|
+
else {
|
|
18683
|
+
console.error(`The selected items per page option "${this.selectedItemsPerPage}" does not exist`);
|
|
18684
|
+
this.setItemsPerPage(+((_a = displayedItemsPerPageOptions[0]) === null || _a === void 0 ? void 0 : _a.value), false);
|
|
18685
|
+
}
|
|
18686
|
+
};
|
|
17264
18687
|
this.changeItemsPerPage = () => {
|
|
17265
18688
|
this.setItemsPerPage(Number(this.pageDropdownEl.value));
|
|
17266
18689
|
this.userSetItemsPerPage = Number(this.pageDropdownEl.value);
|
|
@@ -17374,12 +18797,15 @@ class PaginationBar {
|
|
|
17374
18797
|
this.activePage = firstPage;
|
|
17375
18798
|
this.icPageChange.emit({ value: firstPage });
|
|
17376
18799
|
};
|
|
17377
|
-
this.setItemsPerPage = (newValue) => {
|
|
18800
|
+
this.setItemsPerPage = (newValue, isUserAction = true) => {
|
|
17378
18801
|
var _a;
|
|
17379
18802
|
if (this.itemsPerPage !== newValue) {
|
|
17380
18803
|
this.itemsPerPage = newValue;
|
|
17381
18804
|
this.itemsPerPageString = newValue.toString();
|
|
17382
|
-
this.icItemsPerPageChange.emit({
|
|
18805
|
+
this.icItemsPerPageChange.emit({
|
|
18806
|
+
value: this.itemsPerPage,
|
|
18807
|
+
isUserAction,
|
|
18808
|
+
});
|
|
17383
18809
|
if (this.setToFirstPageOnPaginationChange) {
|
|
17384
18810
|
this.setToFirstPage();
|
|
17385
18811
|
}
|
|
@@ -17426,13 +18852,19 @@ class PaginationBar {
|
|
|
17426
18852
|
this.setItemsPerPage(lastOptionValue);
|
|
17427
18853
|
}
|
|
17428
18854
|
else {
|
|
17429
|
-
|
|
17430
|
-
|
|
17431
|
-
|
|
17432
|
-
}
|
|
17433
|
-
|
|
17434
|
-
|
|
17435
|
-
|
|
18855
|
+
if (this.selectedItemsPerPage !== null &&
|
|
18856
|
+
this.selectedItemsPerPage !== undefined) {
|
|
18857
|
+
this.setSelectedItemsPerPage(this.selectedItemsPerPage, this.displayedItemsPerPageOptions);
|
|
18858
|
+
}
|
|
18859
|
+
else {
|
|
18860
|
+
const updated = this.displayedItemsPerPageOptions.some(({ value }) => {
|
|
18861
|
+
lastOptionValue = Number(value);
|
|
18862
|
+
return this.itemsPerPage <= lastOptionValue;
|
|
18863
|
+
});
|
|
18864
|
+
this.setItemsPerPage(updated || (!updated && this.itemsPerPage > lastOptionValue)
|
|
18865
|
+
? lastOptionValue
|
|
18866
|
+
: this.itemsPerPage, false);
|
|
18867
|
+
}
|
|
17436
18868
|
}
|
|
17437
18869
|
};
|
|
17438
18870
|
this.setUpperBound = () => {
|
|
@@ -17452,15 +18884,9 @@ class PaginationBar {
|
|
|
17452
18884
|
}
|
|
17453
18885
|
}
|
|
17454
18886
|
watchSelectedItemsPerPageHandler() {
|
|
17455
|
-
var _a;
|
|
17456
18887
|
if (this.selectedItemsPerPage !== null &&
|
|
17457
18888
|
this.selectedItemsPerPage !== undefined) {
|
|
17458
|
-
|
|
17459
|
-
this.setItemsPerPage(this.selectedItemsPerPage);
|
|
17460
|
-
}
|
|
17461
|
-
else {
|
|
17462
|
-
console.error(`The selected items per page option "${this.selectedItemsPerPage}" does not exist`);
|
|
17463
|
-
}
|
|
18889
|
+
this.setSelectedItemsPerPage(this.selectedItemsPerPage, this.displayedItemsPerPageOptions);
|
|
17464
18890
|
}
|
|
17465
18891
|
}
|
|
17466
18892
|
watchItemLabelHandler() {
|
|
@@ -17491,7 +18917,6 @@ class PaginationBar {
|
|
|
17491
18917
|
this.watchPageLabelHandler();
|
|
17492
18918
|
this.watchItemLabelHandler();
|
|
17493
18919
|
this.setPaginationBarContent();
|
|
17494
|
-
this.watchSelectedItemsPerPageHandler();
|
|
17495
18920
|
}
|
|
17496
18921
|
componentDidLoad() {
|
|
17497
18922
|
var _a, _b, _c;
|
|
@@ -17513,21 +18938,21 @@ class PaginationBar {
|
|
|
17513
18938
|
}
|
|
17514
18939
|
render() {
|
|
17515
18940
|
const { alignment, displayedItemsPerPageOptions, PAGE_INPUT_FIELD_ID, type, rangeLabelType, hideRangeLabel, showItemsPerPageControl, showGoToPageControl, pageLabel, capitalizedPageLabel, lowerCasePageLabel, capitalizedItemLabel, lowerCaseItemLabel, totalPages, activePage, itemsPerPageString, theme, monochrome, selectItemsPerPageOnEnter, } = this;
|
|
17516
|
-
return (hAsync(Host, { key: '
|
|
18941
|
+
return (hAsync(Host, { key: '38c00586aa21b2e5f0cd21faa1e3f9c7f47f0535', class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '9582443e86e7df6f5128a2c63aabe5c4779ef3ea', class: {
|
|
17517
18942
|
["pagination-bar"]: true,
|
|
17518
18943
|
[`pagination-bar-${alignment}`]: true,
|
|
17519
|
-
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { key: '
|
|
18944
|
+
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { key: '1c246b1b4a1ccd9f36ede57542256d0baed04a11', class: "item-controls" }, showItemsPerPageControl && (hAsync("div", { key: 'b6f75857b7786f3eb608617d2716851e65083cd9', class: "items-per-page-holder" }, hAsync("ic-typography", { key: '18d38ac0ca87b54067a9f9d75bca00d6da05a63e', class: {
|
|
17520
18945
|
["items-per-page-control-label"]: true,
|
|
17521
|
-
}, variant: "label", onClick: this.itemsPerPageLabelClickHandler }, capitalizedItemLabel, "s per ", lowerCasePageLabel), hAsync("ic-select", { key: '
|
|
18946
|
+
}, variant: "label", onClick: this.itemsPerPageLabelClickHandler }, capitalizedItemLabel, "s per ", lowerCasePageLabel), hAsync("ic-select", { key: '173b9a0218afaf68db282ac4e820b23b5b1c1763', theme: theme, size: "small", label: "items-per-page-input", class: "items-per-page-input", hideLabel: true, options: displayedItemsPerPageOptions, selectOnEnter: selectItemsPerPageOnEnter, value: itemsPerPageString, onIcChange: this.changeItemsPerPage, ref: (el) => (this.pageDropdownEl = el) }))), !hideRangeLabel &&
|
|
17522
18947
|
(rangeLabelType === "data" ? (hAsync("ic-typography", { class: {
|
|
17523
18948
|
["item-pagination-label"]: true,
|
|
17524
18949
|
}, variant: "label", "aria-live": "polite" }, this.upperBound === 0 && `0 ${lowerCaseItemLabel}s`, this.upperBound > 0 &&
|
|
17525
18950
|
`${this.lowerBound} - ${this.upperBound} of ${this.totalItems} ${lowerCaseItemLabel}${this.totalItems > 1 ? "s" : ""}`)) : (hAsync("ic-typography", { class: {
|
|
17526
18951
|
["page-pagination-label"]: true,
|
|
17527
|
-
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: '
|
|
18952
|
+
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: 'a369e23b36569d56fb21a9d906cffd1fc4506677', class: {
|
|
17528
18953
|
["pagination-controls"]: true,
|
|
17529
18954
|
["pagination-controls-wrap"]: this.paginationWrapped,
|
|
17530
|
-
} }, hAsync("div", { key: '
|
|
18955
|
+
} }, hAsync("div", { key: '42592cf99253511174cdf58c1c45aa866938cb81', class: "pagination-holder" }, hAsync("ic-pagination", { key: '1245ba4afba7145b900f3002c86b0182816095f5', type: type, pages: totalPages, label: pageLabel, ref: (el) => (this.paginationEl = el), currentPage: activePage, theme: theme, monochrome: monochrome })), showGoToPageControl && (hAsync("div", { key: 'c64b4070c8ad1edd19493afea38386d837430c61', class: "go-to-page-holder" }, hAsync("ic-typography", { key: '761515ad31928a7b4773c011c142f3e354765a1c', variant: "label", onClick: this.goToPageLabelClickHandler }, "Go to ", lowerCasePageLabel), hAsync("ic-tooltip", { key: '9617a664c7bd4f2fc81ac02a04d0b20cd005873d', label: this.inputError, target: `#${PAGE_INPUT_FIELD_ID}`, disableHover: true, disableClick: true, ref: (el) => (this.pageInputTooltipEl = el) }, hAsync("ic-text-field", { key: '4b6beea984a6fd9f7395f13acd3ba0d793bd39e7', theme: theme, type: "number", size: "small", label: PAGE_INPUT_FIELD_ID, class: PAGE_INPUT_FIELD_ID, id: PAGE_INPUT_FIELD_ID, hideLabel: true, onKeyDown: this.handleKeydown, onKeyUp: this.handleKeyUp, onInput: this.handleInputChange, max: totalPages, min: "1", validationInlineInternal: true, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: (el) => (this.pageInputEl = el) })), hAsync("ic-button", { key: 'e42c2462f64cc241cdd7e13c731bb453f09fe961', variant: "secondary", onClick: this.goToPage, size: "small", class: "go-to-page-button" }, "Go")))))));
|
|
17531
18956
|
}
|
|
17532
18957
|
get el() { return getElement(this); }
|
|
17533
18958
|
static get watchers() { return {
|
|
@@ -17625,7 +19050,7 @@ class PaginationItem {
|
|
|
17625
19050
|
}
|
|
17626
19051
|
render() {
|
|
17627
19052
|
const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
|
|
17628
|
-
return (hAsync("a", { key: '
|
|
19053
|
+
return (hAsync("a", { key: 'ed0d1ec644f4332880be47cf2240ce08e8ba8f5c', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (hAsync("div", { class: {
|
|
17629
19054
|
["item-container"]: true,
|
|
17630
19055
|
["ellipsis"]: true,
|
|
17631
19056
|
["disabled"]: !!disabled,
|
|
@@ -17944,17 +19369,17 @@ class PopoverMenu {
|
|
|
17944
19369
|
this.popperProps = props;
|
|
17945
19370
|
}
|
|
17946
19371
|
render() {
|
|
17947
|
-
return (hAsync(Host, { key: '
|
|
19372
|
+
return (hAsync(Host, { key: 'b3b80be668dab0b1bf8e9c86a92871a2ccf7fa05', class: {
|
|
17948
19373
|
["ic-popover-menu-open"]: !!this.open,
|
|
17949
19374
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
17950
|
-
} }, hAsync("div", { key: '
|
|
19375
|
+
} }, hAsync("div", { key: '2354b0125ce713af1824928f0f63bfc4e1a51539', id: this.parentPopover === undefined
|
|
17951
19376
|
? `ic-popover-submenu-${this.submenuId}`
|
|
17952
19377
|
: "", class: {
|
|
17953
19378
|
menu: true,
|
|
17954
|
-
} }, hAsync("span", { key: '
|
|
19379
|
+
} }, hAsync("span", { key: 'a0fe248c348b955225eb3cbd9d4713dd4d2260f5', class: {
|
|
17955
19380
|
"opening-from-parent": this.openingFromParent,
|
|
17956
19381
|
"opening-from-child": this.openingFromChild,
|
|
17957
|
-
} }, isPropDefined$1(this.submenuId) && (hAsync("span", { key: '
|
|
19382
|
+
} }, isPropDefined$1(this.submenuId) && (hAsync("span", { key: 'b0f4cd227ca7e89a65a05ff7e168c902d90fbd27' }, hAsync("span", { key: '2cae5777f8e07730803524dca57d2489755af132', role: "menu" }, hAsync("ic-menu-item", { key: '65be6ed2c83365bfc8888f9d1232fe34b61b9547', 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: '51312621130f75922f672a78e96c5f143844fd23', slot: "icon", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "submenu-back-icon" }, hAsync("path", { key: 'db43490c2526d8aef7b985109b0592d6e47d97fb', d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z", fill: "currentColor" })))), hAsync("ic-typography", { key: 'd1f5dea7708ece652f7033fc879ebd2ecf9485e4', variant: "subtitle-small", class: "parent-label" }, this.parentLabel))), hAsync("div", { key: '57da0710affbfada09d7bb4f040b235bbd86bee4', class: "menu-body", "aria-label": this.getMenuAriaLabel(), role: "menu" }, hAsync("slot", { key: '745f05595c859f9c6259716dc4c4635d66cd95fc' }))))));
|
|
17958
19383
|
}
|
|
17959
19384
|
static get delegatesFocus() { return true; }
|
|
17960
19385
|
get el() { return getElement(this); }
|
|
@@ -17988,7 +19413,7 @@ class PopoverMenu {
|
|
|
17988
19413
|
}; }
|
|
17989
19414
|
}
|
|
17990
19415
|
|
|
17991
|
-
const icRadioGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-radio-button-input-field-label);--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle\n );--ic-input-validation-status-text-color:var(--ic-radio-button-state-text);--ic-input-validation-error:var(--ic-radio-button-state-icon-error)}ic-input-label.error{--ic-input-label-text-color:var(--ic-radio-button-input-field-label-error)}ic-input-label.disabled{--ic-input-label-text-color:var(\n --ic-radio-button-input-field-label-disabled\n );--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle-disabled\n )}ic-input-validation{margin-top:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-validation{margin-top:calc(var(--ic-space-sm) / 2)}ic-input-label:not(.with-helper) .ic-typography-label,ic-input-label .helpertext{margin-bottom:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-radio-group-small) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) / 2)}ic-input-label .helpertext{display:block}:host .radio-buttons-container{display:flex;flex-direction:column;gap:var(--ic-space-xxs)}:host(.ic-radio-group-small) .radio-buttons-container{gap:var(--ic-space-xxxs)}:host .radio-buttons-container.horizontal{display:flex;flex-direction:row;gap:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-radio-group-small) .radio-buttons-container.horizontal{gap:var(--ic-space-xl)}";
|
|
19416
|
+
const icRadioGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-radio-button-input-field-label);--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle\n );--ic-input-validation-status-text-color:var(--ic-radio-button-state-text);--ic-input-validation-error:var(--ic-radio-button-state-icon-error)}ic-input-label.error{--ic-input-label-text-color:var(--ic-radio-button-input-field-label-error)}ic-input-label.disabled{--ic-input-label-text-color:var(\n --ic-radio-button-input-field-label-disabled\n );--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle-disabled\n )}ic-input-validation.show-validation{margin-top:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-validation.show-validation{margin-top:calc(var(--ic-space-sm) / 2)}ic-input-label:not(.with-helper) .ic-typography-label,ic-input-label .helpertext{margin-bottom:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-radio-group-small) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) / 2)}ic-input-label .helpertext{display:block}:host .radio-buttons-container{display:flex;flex-direction:column;gap:var(--ic-space-xxs)}:host(.ic-radio-group-small) .radio-buttons-container{gap:var(--ic-space-xxxs)}:host .radio-buttons-container.horizontal{display:flex;flex-direction:row;gap:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-radio-group-small) .radio-buttons-container.horizontal{gap:var(--ic-space-xl)}";
|
|
17992
19417
|
var IcRadioGroupStyle0 = icRadioGroupCss;
|
|
17993
19418
|
|
|
17994
19419
|
/**
|
|
@@ -18024,6 +19449,10 @@ class RadioGroup {
|
|
|
18024
19449
|
* The size of the radio group component.
|
|
18025
19450
|
*/
|
|
18026
19451
|
this.size = "medium";
|
|
19452
|
+
/**
|
|
19453
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
19454
|
+
*/
|
|
19455
|
+
this.validationAriaLive = "polite";
|
|
18027
19456
|
/**
|
|
18028
19457
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
|
18029
19458
|
*/
|
|
@@ -18217,17 +19646,20 @@ class RadioGroup {
|
|
|
18217
19646
|
}
|
|
18218
19647
|
}
|
|
18219
19648
|
render() {
|
|
18220
|
-
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationStatus, validationText, theme, } = this;
|
|
18221
|
-
|
|
19649
|
+
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationAriaLive, validationStatus, validationText, theme, } = this;
|
|
19650
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
19651
|
+
return (hAsync(Host, { key: '4ea2e0ca7614fb4ce6563ea146f86d72707a399a', onKeyDown: handleKeyDown, class: {
|
|
18222
19652
|
"ic-radio-group-small": size === "small",
|
|
18223
19653
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18224
|
-
} }, hAsync("
|
|
19654
|
+
} }, hAsync("fieldset", { key: 'ebad7a878454455a15892bf53c43bdcb914b77c4', role: "radiogroup", id: this.name, "aria-required": `${required}` }, !hideLabel && (hAsync("legend", { key: 'aac1f37c7b1d4d5bc621bd3030dc9eef60417659' }, hAsync("ic-input-label", { key: 'fd04e3f74c89b633996eb22e60902e988a8ac8ef', class: {
|
|
18225
19655
|
[`${validationStatus}`]: true,
|
|
18226
19656
|
["disabled"]: !!disabled,
|
|
18227
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '
|
|
19657
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '66325d58018dff189c975e3e4fc01249b51b6b9f', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '6d2d332396c87b798d5d160bdb5977c0a8ad6751', class: {
|
|
18228
19658
|
"radio-buttons-container": true,
|
|
18229
19659
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
|
18230
|
-
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: '
|
|
19660
|
+
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: 'fb0a1b41503ba88ce9bda3c0bc8236ae0a7e3795' }))), hAsync("ic-input-validation", { key: 'f9f7c2bdffd83d705149f74fe2caad93e57dd85b', class: {
|
|
19661
|
+
"show-validation": showValidation,
|
|
19662
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
|
18231
19663
|
}
|
|
18232
19664
|
get el() { return getElement(this); }
|
|
18233
19665
|
static get watchers() { return {
|
|
@@ -18248,6 +19680,7 @@ class RadioGroup {
|
|
|
18248
19680
|
"orientation": [1],
|
|
18249
19681
|
"required": [4],
|
|
18250
19682
|
"size": [1],
|
|
19683
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
18251
19684
|
"validationStatus": [1, "validation-status"],
|
|
18252
19685
|
"validationText": [1, "validation-text"],
|
|
18253
19686
|
"theme": [1],
|
|
@@ -18262,7 +19695,7 @@ class RadioGroup {
|
|
|
18262
19695
|
}; }
|
|
18263
19696
|
}
|
|
18264
19697
|
|
|
18265
|
-
const icRadioOptionCss = "/*! 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}ic-radio-option{display:flex;flex-direction:column;width:-moz-fit-content;width:fit-content}.additional-field-wrapper [slot=\"additional-field\"]{margin-top:calc(var(--ic-space-sm) / 2);margin-left:var(--ic-space-xl)}ic-radio-option.ic-radio-option-disabled,ic-radio-option.ic-radio-option-disabled .radio-label{--ic-typography-color:var(--ic-radio-button-text-option-disabled)}.container input:focus+span.checkmark,.container:hover input:focus+span.checkmark,.container:active input:focus+span.checkmark,:host(:focus) .container input:checked+span.checkmark{box-shadow:var(--ic-border-focus)}.container{display:grid;grid-template-columns:min-content auto;position:relative;cursor:pointer;align-items:center;margin:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs)}.container.disabled,.container.disabled input:disabled{cursor:default}.container input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-block;position:absolute;cursor:pointer;height:var(--ic-space-lg);width:var(--ic-space-lg);border-radius:50%;border:none}.checkmark{display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-radio-button-background-default);border:var(--ic-space-1px) solid var(--ic-radio-button-border-default);border-radius:50%;transition:var(--ic-easing-transition-fast);box-sizing:border-box}.container input:checked~.checkmark::after{display:inline-block}.container:hover input~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:var(--ic-border-width) solid var(--ic-radio-button-default-hover)}.container:hover input:checked~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:0.125rem solid var(--ic-radio-button-default-hover)}.container:hover:not(.disabled) input:checked~.checkmark::after{background-color:var(--ic-radio-button-default-hover)}.container:active input~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed);border:var(--ic-border-width) solid var(--ic-radio-button-default-pressed)}.container:active input:checked~.checkmark{border:0.125rem solid var(--ic-radio-button-default-pressed);box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed)}.container:active input:checked~.checkmark::after{background-color:var(--ic-radio-button-default-pressed)}.container input:checked~.checkmark{border:0.125rem solid var(--ic-radio-button-default-active)}.container input:checked:disabled~.checkmark{border:0.125rem solid var(--ic-radio-button-border-disabled)}.container input:disabled~.checkmark{border:var(--ic-border-width) dashed var(--ic-radio-button-border-disabled)}.container input:disabled~.checkmark::after{background:var(--ic-radio-button-disabled)}.container:hover input:disabled~.checkmark{box-shadow:none;border:0.125rem solid none}.container:active input:disabled~.checkmark::after{background-color:var(--ic-radio-button-disabled)}.container .checkmark::after{content:\"\";position:absolute;display:none;top:calc(50% - var(--ic-space-xs));left:calc(50% - var(--ic-space-xs));width:var(--ic-space-md);height:var(--ic-space-md);border-radius:50%;background:var(--ic-radio-button-default-active)}.radio-label{margin-left:var(--ic-space-md);--ic-typography-color:var(--ic-radio-button-text-option)}.additional-field-wrapper{margin-left:var(--ic-space-xs)}.branch-corner{color:var(--ic-radio-button-required-bar);height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-radio-button-required-bar);border-left:0.125rem solid var(--ic-radio-button-required-bar);margin-left:calc(-1 * var(--ic-space-1px))}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-
|
|
19698
|
+
const icRadioOptionCss = "/*! 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}ic-radio-option{display:flex;flex-direction:column;width:-moz-fit-content;width:fit-content}.additional-field-wrapper [slot=\"additional-field\"]{margin-top:calc(var(--ic-space-sm) / 2);margin-left:var(--ic-space-xl)}ic-radio-option.ic-radio-option-disabled,ic-radio-option.ic-radio-option-disabled .radio-label{--ic-typography-color:var(--ic-radio-button-text-option-disabled)}.container input:focus+span.checkmark,.container:hover input:focus+span.checkmark,.container:active input:focus+span.checkmark,:host(:focus) .container input:checked+span.checkmark{box-shadow:var(--ic-border-focus)}.container{display:grid;grid-template-columns:min-content auto;position:relative;cursor:pointer;align-items:center;margin:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs)}.ic-radio-group-small .container{margin:0 0 0 var(--ic-space-xxs)}.container.disabled,.container.disabled input:disabled{cursor:default}.container input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-block;position:absolute;cursor:pointer;height:var(--ic-space-lg);width:var(--ic-space-lg);border-radius:50%;border:none}.ic-radio-group-small .container input{height:var(--ic-space-md);width:var(--ic-space-md)}.checkmark{display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-radio-button-background-default);border:var(--ic-space-1px) solid var(--ic-radio-button-border-default);border-radius:50%;transition:var(--ic-easing-transition-fast);box-sizing:border-box}.ic-radio-group-small .checkmark{height:var(--ic-space-md);width:var(--ic-space-md)}.container input:checked~.checkmark::after{display:inline-block}.container:hover input~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:var(--ic-border-width) solid var(--ic-radio-button-default-hover)}.container:hover input:checked~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:0.125rem solid var(--ic-radio-button-default-hover)}.container:hover:not(.disabled) input:checked~.checkmark::after{background-color:var(--ic-radio-button-default-hover)}.container:active input~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed);border:var(--ic-border-width) solid var(--ic-radio-button-default-pressed)}.container:active input:checked~.checkmark{border:0.125rem solid var(--ic-radio-button-default-pressed);box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed)}.ic-radio-group-small .container input:checked~.checkmark{border-width:var(--ic-space-1px)}.container:active input:checked~.checkmark::after{background-color:var(--ic-radio-button-default-pressed)}.container input:checked~.checkmark{border:0.125rem solid var(--ic-radio-button-default-active)}.container input:checked:disabled~.checkmark{border:0.125rem solid var(--ic-radio-button-border-disabled)}.container input:disabled~.checkmark{border:var(--ic-border-width) dashed var(--ic-radio-button-border-disabled)}.container input:disabled~.checkmark::after{background:var(--ic-radio-button-disabled)}.container:hover input:disabled~.checkmark{box-shadow:none;border:0.125rem solid none}.container:active input:disabled~.checkmark::after{background-color:var(--ic-radio-button-disabled)}.container .checkmark::after{content:\"\";position:absolute;display:none;top:calc(50% - var(--ic-space-xs));left:calc(50% - var(--ic-space-xs));width:var(--ic-space-md);height:var(--ic-space-md);border-radius:50%;background:var(--ic-radio-button-default-active)}.ic-radio-group-small .container .checkmark::after{top:50%;left:50%;width:0.625rem;height:0.625rem;border-radius:50%;background:var(--ic-radio-button-default-active);transform:translate(-50%, -50%)}.radio-label{margin-left:var(--ic-space-md);--ic-typography-color:var(--ic-radio-button-text-option)}.ic-radio-group-small .radio-label{margin-left:var(--ic-space-xs)}.additional-field-wrapper{margin-left:var(--ic-space-xs)}.branch-corner{color:var(--ic-radio-button-required-bar);height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-radio-button-required-bar);border-left:0.125rem solid var(--ic-radio-button-required-bar);margin-left:calc(-1 * var(--ic-space-1px))}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}.ic-radio-group-small .dynamic-container{margin-left:12px}.dynamic-container.hidden{display:none}.dynamic-text{color:var(--ic-radio-button-required-text);--ic-typography-color:var(--ic-radio-button-required-text);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}@media (max-width: 576px){ic-text-field{--input-width:100%}}@media (forced-colors: active){.container input:checked~.checkmark,.container:active input:checked~.checkmark{border-color:Highlight}.container input:checked~.checkmark::after,.container:active input:checked~.checkmark::after{background-color:Highlight}.container input:disabled~.checkmark,.container input:checked:disabled~.checkmark{border-color:GrayText}.container input:disabled~.checkmark::after,.container:active input:disabled~.checkmark::after{background-color:GrayText}}input[type=\"radio\"]:dir(rtl){right:0}.radio-label:dir(rtl){padding-right:var(--ic-space-sm);padding-left:0}.branch-corner:dir(rtl){border-radius:0 0 0.188rem;border-right:0.125rem solid var(--ic-action-default);border-left:none}.dynamic-container:dir(rtl){margin:var(--ic-space-xxxs) var(--ic-space-sm) var(--ic-space-xxs) 0}";
|
|
18266
19699
|
var IcRadioOptionStyle0 = icRadioOptionCss;
|
|
18267
19700
|
|
|
18268
19701
|
const ADDITIONAL_FIELD = "additional-field";
|
|
@@ -18407,15 +19840,15 @@ class RadioOption {
|
|
|
18407
19840
|
render() {
|
|
18408
19841
|
const { additionalFieldDisplay, disabled, dynamicText, form, groupLabel, handleClick, handleKeyDown, hasAdditionalField, label, name, selected, value, theme, } = this;
|
|
18409
19842
|
const id = `ic-radio-option-${isPropDefined$1(label) || value}-${groupLabel}`;
|
|
18410
|
-
return (hAsync(Host, { key: '
|
|
19843
|
+
return (hAsync(Host, { key: '3d233946c372788a34128912099c47d6858d7ea9', onClick: handleClick, onKeyDown: handleKeyDown, class: {
|
|
18411
19844
|
["ic-radio-option-disabled"]: !!disabled,
|
|
18412
19845
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18413
|
-
} }, hAsync("div", { key: '
|
|
19846
|
+
} }, hAsync("div", { key: 'e932a0827c6b0620522f9f3df3f5a06316098949', class: { container: true, disabled: !!disabled } }, hAsync("div", { key: '64eeea95469af9831655f56701e2332255bf6669' }, hAsync("input", { key: '32f7a8840d8a14a89f1a79b9c61890e0e2fe23a0', 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: '6cbea9714c51eb75b7be07a509049f0c330ffca5', class: "checkmark" })), hAsync("ic-typography", { key: '55164cf8d231d449267b74389f9d7cd8193ab6db', class: "radio-label", variant: "body" }, hAsync("label", { key: '54014827aa5c16641bc3fa864974382bf0715335', htmlFor: id }, label))), hasAdditionalField && (hAsync("div", { key: '5f3e1054494365c3fafdfd421bed64523307406b', class: {
|
|
18414
19847
|
"dynamic-container": true,
|
|
18415
19848
|
hidden: additionalFieldDisplay === "dynamic" && !selected,
|
|
18416
|
-
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '
|
|
19849
|
+
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: 'd9c292dd502569650dcf327a3e48716cde723593', class: "branch-corner" })), hAsync("div", { key: '3994230df8af7e9c5215646a1c5c3d5687961637' }, additionalFieldDisplay === "dynamic" && (hAsync("ic-typography", { key: '0b92403d743c4517ca099586a2845e71d528c329', variant: "caption", role: "alert" }, hAsync("p", { key: '0b689ea686ff2cb08b27858920a2f0548c197aa7', class: "dynamic-text" }, dynamicText))), hAsync("div", { key: '7e023eb75b14dd0a75acbe5321ecd676de0a67d4', class: {
|
|
18417
19850
|
"additional-field-wrapper": additionalFieldDisplay === "static",
|
|
18418
|
-
} }, hAsync("slot", { key: '
|
|
19851
|
+
} }, hAsync("slot", { key: 'b3f82b1650ef67a732b35a32c5088745f31d1f31', name: ADDITIONAL_FIELD })))))));
|
|
18419
19852
|
}
|
|
18420
19853
|
get el() { return getElement(this); }
|
|
18421
19854
|
static get watchers() { return {
|
|
@@ -18998,39 +20431,39 @@ class SearchBar {
|
|
|
18998
20431
|
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
|
18999
20432
|
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
|
19000
20433
|
renderHiddenInput$1(this.el, value, name, disabledMode);
|
|
19001
|
-
return (hAsync(Host, { key: '
|
|
20434
|
+
return (hAsync(Host, { key: '71d9a6e7a555373e98a3ee7ea114fc1f69f06570', class: {
|
|
19002
20435
|
"ic-search-bar-search": true,
|
|
19003
20436
|
"ic-search-bar-full-width": fullWidth,
|
|
19004
20437
|
"ic-search-bar-disabled": disabled,
|
|
19005
20438
|
"ic-search-bar-small": size === "small",
|
|
19006
20439
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19007
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '
|
|
20440
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '23dfe2a04d5c039174366f85fa42df074fd30c98', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '1c222b2269cbab7436dc225b75e09568d323a1f0', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly }, hAsync("slot", { key: 'e38a00e300ddc76daaf3c52332adab4ac16038c4', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: '17dff32cab5a5b34673c1255f0a1d696b9df84b4', ref: (el) => (this.anchorEl = el), size: size, disabled: disabledMode, readonly: readonly, fullWidth: fullWidth }, hAsync("input", { key: 'e5d666c8a1609a1683b735940afd707e67b7eaa6', id: inputId, name: name, ref: (el) => (this.inputEl = el), value: options && !!labelValue ? labelValue : value, class: {
|
|
19008
20441
|
"no-left-pad": readonly,
|
|
19009
20442
|
readonly,
|
|
19010
20443
|
"truncate-value": truncateValue,
|
|
19011
|
-
}, 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: '
|
|
20444
|
+
}, 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: '98887c2626a05e3ddc15c7ddad3a756262c197e8', class: {
|
|
19012
20445
|
"clear-button-container": true,
|
|
19013
20446
|
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
|
19014
|
-
} }, hAsync("ic-button", { key: '
|
|
20447
|
+
} }, hAsync("ic-button", { key: '119b7ae17e8c7cbd8a56e6bd8136340c269958e3', id: "clear-button", class: {
|
|
19015
20448
|
"clear-button": true,
|
|
19016
20449
|
"clear-button-unfocused": !clearButtonFocused,
|
|
19017
|
-
}, "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", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { key: '
|
|
20450
|
+
}, "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: 'bf3e848c1e275217c686f3aab3b10a09396d6b4e', class: "divider" })), hAsync("div", { key: '4075cd96e0274043b8da4e25d32a5cee5d4bb0e5', class: {
|
|
19018
20451
|
"search-submit-button-container": true,
|
|
19019
20452
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
|
19020
|
-
} }, hAsync("ic-button", { key: '
|
|
20453
|
+
} }, hAsync("ic-button", { key: '77e1e8bfef4ce5304dbf877b5ecfc440d37d864c', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
|
19021
20454
|
"search-submit-button": true,
|
|
19022
20455
|
"search-submit-button-small": size === "small",
|
|
19023
20456
|
"search-submit-button-unfocused": !searchSubmitFocused,
|
|
19024
20457
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
|
19025
|
-
}, 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", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: '
|
|
20458
|
+
}, 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: '20e98815de9ec0c35fa247026de3d9e273161ea6', class: {
|
|
19026
20459
|
"menu-container": true,
|
|
19027
20460
|
fullwidth: fullWidth,
|
|
19028
|
-
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '
|
|
20461
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: 'b2f7d74335c27d93e9f5dc5b63bab80daeb3eeae', class: {
|
|
19029
20462
|
"no-results": this.hadNoOptions() ||
|
|
19030
20463
|
(filteredOptions.length === 1 &&
|
|
19031
20464
|
(filteredOptions[0][labelField] === loadingLabel ||
|
|
19032
20465
|
filteredOptions[0][labelField] === loadingErrorLabel)),
|
|
19033
|
-
}, 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: '
|
|
20466
|
+
}, 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: 'f76306ff99a2c103fdea197759f6036d479dc51f', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
|
19034
20467
|
}
|
|
19035
20468
|
static get delegatesFocus() { return true; }
|
|
19036
20469
|
get el() { return getElement(this); }
|
|
@@ -19114,12 +20547,12 @@ class SectionContainer {
|
|
|
19114
20547
|
}
|
|
19115
20548
|
render() {
|
|
19116
20549
|
const { aligned, fullHeight } = this;
|
|
19117
|
-
return (hAsync(Host, { key: '
|
|
20550
|
+
return (hAsync(Host, { key: '1d47dd5e8fe26fbf69b3cea13a0a04304f2bd1e8', class: {
|
|
19118
20551
|
["aligned-left"]: aligned === "left" || aligned === null,
|
|
19119
20552
|
["aligned-center"]: aligned === "center",
|
|
19120
20553
|
["aligned-full-width"]: aligned === "full-width",
|
|
19121
20554
|
["no-vertical-padding"]: !!fullHeight,
|
|
19122
|
-
} }, hAsync("slot", { key: '
|
|
20555
|
+
} }, hAsync("slot", { key: '2aed7afff105eeb51ddff32f9759e1d62737107b' })));
|
|
19123
20556
|
}
|
|
19124
20557
|
static get style() { return IcSectionContainerStyle0; }
|
|
19125
20558
|
static get cmpMeta() { return {
|
|
@@ -19267,6 +20700,10 @@ class Select {
|
|
|
19267
20700
|
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
|
19268
20701
|
*/
|
|
19269
20702
|
this.theme = "inherit";
|
|
20703
|
+
/**
|
|
20704
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
20705
|
+
*/
|
|
20706
|
+
this.validationAriaLive = "polite";
|
|
19270
20707
|
/**
|
|
19271
20708
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
|
19272
20709
|
*/
|
|
@@ -19921,12 +21358,13 @@ class Select {
|
|
|
19921
21358
|
}
|
|
19922
21359
|
render() {
|
|
19923
21360
|
var _a;
|
|
19924
|
-
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, theme, hiddenInputValue, open, inputId, searchableSelectInputValue, loading, value, emptyOptionListText, uniqueOptions, selectOnEnter, form, inheritedAttributes, ariaActiveDescendant, hasTimedOut, noOptions, filteredOptions, clearButtonFocused, } = this;
|
|
21361
|
+
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationAriaLive, validationStatus, validationText, currValue, theme, hiddenInputValue, open, inputId, searchableSelectInputValue, loading, value, emptyOptionListText, uniqueOptions, selectOnEnter, form, inheritedAttributes, ariaActiveDescendant, hasTimedOut, noOptions, filteredOptions, clearButtonFocused, } = this;
|
|
19925
21362
|
// HTML inputs only accept 'string' for their value
|
|
19926
21363
|
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
|
19927
21364
|
renderHiddenInput$1(this.el, searchable ? hiddenInputValue : currValue, name || inputId, disabled);
|
|
19928
21365
|
const invalid = `${validationStatus === IcInformationStatus$1.Error}`;
|
|
19929
|
-
const
|
|
21366
|
+
const showValidation = hasValidationStatus(validationStatus, !!disabled);
|
|
21367
|
+
const describedBy = getInputDescribedByText$1(this.el, inputId, helperText !== "", showValidation).trim();
|
|
19930
21368
|
const valueLabelString = multiple
|
|
19931
21369
|
? this.getMultipleOptionsString(currValue)
|
|
19932
21370
|
: this.getLabelFromValue(currValue);
|
|
@@ -19934,30 +21372,30 @@ class Select {
|
|
|
19934
21372
|
(searchable
|
|
19935
21373
|
? !!searchableSelectInputValue
|
|
19936
21374
|
: !!currValue && !loading && showClearButton);
|
|
19937
|
-
return (hAsync(Host, { key: '
|
|
21375
|
+
return (hAsync(Host, { key: 'd4771b458b86fdf5e8fd7242b0faa34c641dc1fd', class: {
|
|
19938
21376
|
"ic-select-disabled": disabled,
|
|
19939
21377
|
"ic-select-searchable": searchable,
|
|
19940
21378
|
[`ic-select-${size}`]: size !== "medium",
|
|
19941
21379
|
"ic-select-full-width": fullWidth,
|
|
19942
21380
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19943
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
|
21381
|
+
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '085e9b190479932161c56015ed340dda3e94bd20', readonly: readonly }, !hideLabel && (hAsync("ic-input-label", { key: '7ed1f56a30c8ba83b5c5f21291221d8910310fbd', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly }, hAsync("slot", { key: '1d3aac656b887c2a553f425e310d3be2fcc0a570', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: '7f6973e971e7b892717e72d8420346d8951751ca', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, isSlotUsed$1(this.el, "icon") &&
|
|
19944
21382
|
!disabled &&
|
|
19945
|
-
(!readonly || !!value) && (hAsync("span", { key: '
|
|
21383
|
+
(!readonly || !!value) && (hAsync("span", { key: '208359e9a4b4c92823fa924ce0e7b0e5419c0cef', slot: "left-icon", class: {
|
|
19946
21384
|
readonly,
|
|
19947
21385
|
"has-value": !!value,
|
|
19948
|
-
} }, hAsync("slot", { key: '
|
|
21386
|
+
} }, hAsync("slot", { key: '462c17f5f746f3d54eaff493c990e6527ed7c381', 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: {
|
|
19949
21387
|
"value-text": true,
|
|
19950
21388
|
"select-input": true,
|
|
19951
21389
|
"with-clear-button": !!searchableSelectInputValue,
|
|
19952
21390
|
}, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: inputId, value: searchableSelectInputValue || undefined, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: form }), isClearable && (hAsync("div", { class: "clear-button-container" }, hAsync("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": searchableSelectInputValue &&
|
|
19953
21391
|
(currValue === null || loading)
|
|
19954
21392
|
? "Clear input"
|
|
19955
|
-
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { class: "divider" }))), hAsync("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
|
21393
|
+
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { class: "divider" }))), hAsync("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
|
19956
21394
|
"expand-icon": true,
|
|
19957
21395
|
"expand-icon-open": open,
|
|
19958
|
-
}, innerHTML: Expand, "aria-hidden": "true" }), hAsync("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (hAsync("div", { class: "select-container" }, hAsync("button", { class: "select-input", ref: (el) => (this.customSelectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && currValue
|
|
21396
|
+
}, innerHTML: Expand, "aria-hidden": "true" }), hAsync("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (hAsync("div", { class: "select-container" }, hAsync("button", { role: "combobox", class: "select-input", ref: (el) => (this.customSelectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && currValue
|
|
19959
21397
|
? `${currValue.length} of ${getOptionsWithoutGroupTitlesCount(options)} selected, ${valueLabelString}`
|
|
19960
|
-
: valueLabelString) || placeholder}
|
|
21398
|
+
: valueLabelString) || placeholder}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": `${open}`, "aria-owns": menuId, "aria-controls": menuId, "aria-required": `${required}`, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, hAsync("ic-typography", { variant: "body", class: {
|
|
19961
21399
|
"value-text": true,
|
|
19962
21400
|
"with-clear-button": isClearable,
|
|
19963
21401
|
placeholder: !loading && multiple
|
|
@@ -19966,13 +21404,15 @@ class Select {
|
|
|
19966
21404
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
|
19967
21405
|
"expand-icon": true,
|
|
19968
21406
|
"expand-icon-open": open,
|
|
19969
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (hAsync("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: '
|
|
21407
|
+
}, 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: '4daeee28961203c0b190687229c0f9f2b4a1d66e', class: {
|
|
19970
21408
|
"no-results": loading ||
|
|
19971
21409
|
hasTimedOut ||
|
|
19972
21410
|
((_a = noOptions === null || noOptions === void 0 ? void 0 : noOptions[0]) === null || _a === void 0 ? void 0 : _a.label) === emptyOptionListText,
|
|
19973
21411
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
|
19974
21412
|
? this.searchableSelectElement
|
|
19975
|
-
: 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: '
|
|
21413
|
+
: 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: '87993e273df521157bb8101f5f96639b0cb3503b', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hAsync("ic-input-validation", { key: 'c0248fb27e0d97f885c8227ffda4534ab65561ec', class: {
|
|
21414
|
+
"menu-open": open,
|
|
21415
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
|
|
19976
21416
|
}
|
|
19977
21417
|
static get delegatesFocus() { return true; }
|
|
19978
21418
|
get el() { return getElement(this); }
|
|
@@ -20013,6 +21453,7 @@ class Select {
|
|
|
20013
21453
|
"size": [1],
|
|
20014
21454
|
"timeout": [2],
|
|
20015
21455
|
"theme": [1],
|
|
21456
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
20016
21457
|
"validationStatus": [1, "validation-status"],
|
|
20017
21458
|
"validationText": [1, "validation-text"],
|
|
20018
21459
|
"loading": [1028],
|
|
@@ -20500,7 +21941,7 @@ class SideNavigation {
|
|
|
20500
21941
|
isAppNameSubtitleVariant,
|
|
20501
21942
|
appTitle: appTitle || "",
|
|
20502
21943
|
};
|
|
20503
|
-
return (hAsync(Host, { key: '
|
|
21944
|
+
return (hAsync(Host, { key: '1871b4817a2429ce72b39c00fc3d46bab905c6fc', class: {
|
|
20504
21945
|
"xs-menu-open": menuOpen && isSDevice,
|
|
20505
21946
|
"xs-menu-close": !menuOpen && isSDevice,
|
|
20506
21947
|
"sm-collapsed": !isSDevice && !menuExpanded,
|
|
@@ -20509,12 +21950,12 @@ class SideNavigation {
|
|
|
20509
21950
|
[`ic-side-navigation-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
|
20510
21951
|
["collapsed-labels"]: !isSDevice && !menuExpanded && !!collapsedIconLabels,
|
|
20511
21952
|
["ic-side-navigation-inline"]: !!inline,
|
|
20512
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '
|
|
21953
|
+
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'aebfc5addba3dd16ecce70793aca0bb2ab17063c', class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'a72db8a874a3e55441f1bb863820f46c0514797e', class: "side-navigation-inner" }, isSlotUsed$1(this.el, "primary-navigation") && (hAsync("nav", { key: 'f3f9d819f3d6b28a754fae1d49f7ce11a701bfe8', class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { key: 'd955badde7737aef71f05e06628d9d15de29c64b', "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { key: 'b4f076849b8d539dfa3fe2d585cb3f20ce6182be', class: "navigation-list" }, hAsync("slot", { key: 'aefe3f024c8d568d18f3258fd544ba2455689e4c', name: "primary-navigation" }))))), hAsync("div", { key: '06d0d7c5fdba21f969b7aa003367f0d6bf55c5ad', class: {
|
|
20513
21954
|
["bottom-wrapper"]: true,
|
|
20514
21955
|
["classification-spacing"]: hasClassificationBanner(),
|
|
20515
|
-
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: '
|
|
21956
|
+
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: '98ec2710e3a7efb48f1e10e61883bf907809fd42', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { key: '5e5deaff8dcebd21aff6a3d12b8b74a63a1d30af', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { key: 'fe90d8b0dd6f9eca02cbeff03282d6ceb9c6504c', class: "navigation-list" }, hAsync("slot", { key: 'e8898037866399513e4d30079dfa22103728822f', name: "secondary-navigation" })))), hAsync("div", { key: '6a6ff5aa39c7043b1086341bb1a6f6282d87e05f', class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", { key: '436be776f4e8b35c22ce667f954496b70ecd9560' }), displayExpandBtn && (hAsync("button", { key: 'ca535ebc2e5215117ab336d6e121303410ec5c2c', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { key: '8421c8faeb1b0befe65bd8688ba0d1900d412fc2', class: "app-status-wrapper" }, status && (hAsync("div", { key: '5c05a7847f5f3bc96c2ffd257dced7e641d44ca5', class: {
|
|
20516
21957
|
["app-status"]: true,
|
|
20517
|
-
} }, hAsync("ic-typography", { key: '
|
|
21958
|
+
} }, hAsync("ic-typography", { key: '573a3ebe74fb8b2ed301781aa92415168a7360a7', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version && (hAsync("ic-typography", { key: 'f7da37453fb39e3ca44f79f5780fe42ce7869bb8', variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
|
20518
21959
|
}
|
|
20519
21960
|
get el() { return getElement(this); }
|
|
20520
21961
|
static get watchers() { return {
|
|
@@ -20578,11 +22019,11 @@ class Skeleton {
|
|
|
20578
22019
|
width: el.style.width || (variant === "circle" ? "25px" : "260px"),
|
|
20579
22020
|
}
|
|
20580
22021
|
: undefined;
|
|
20581
|
-
return (hAsync(Host, { key: '
|
|
22022
|
+
return (hAsync(Host, { key: '9652d6ecbb5bd3bca6c490a6e80a80e40fa245af', class: {
|
|
20582
22023
|
skeleton: true,
|
|
20583
22024
|
"ic-skeleton-circle": variant === "circle",
|
|
20584
22025
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
20585
|
-
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: '
|
|
22026
|
+
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: 'f476ba878aa6acba4bbe00f1aa30502657331721' })));
|
|
20586
22027
|
}
|
|
20587
22028
|
get el() { return getElement(this); }
|
|
20588
22029
|
static get style() { return IcSkeletonStyle0; }
|
|
@@ -20639,9 +22080,9 @@ class SkipLink {
|
|
|
20639
22080
|
}
|
|
20640
22081
|
render() {
|
|
20641
22082
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
|
20642
|
-
return (hAsync(Host, { key: '
|
|
22083
|
+
return (hAsync(Host, { key: 'd5ded3b300f0b8dbe65235d6be9dec8ec8d88b5b', class: {
|
|
20643
22084
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
20644
|
-
} }, hAsync("ic-link", { key: '
|
|
22085
|
+
} }, hAsync("ic-link", { key: '8f81758c7ebf977b264890c2df38de381bf1b4f7', class: {
|
|
20645
22086
|
"display-top": !inline,
|
|
20646
22087
|
"full-width": !!fullWidth,
|
|
20647
22088
|
"show-background": !transparentBackground,
|
|
@@ -20706,12 +22147,12 @@ class StatusTag {
|
|
|
20706
22147
|
}
|
|
20707
22148
|
render() {
|
|
20708
22149
|
const { label, status, variant, size, announced, theme, uppercase } = this;
|
|
20709
|
-
return (hAsync(Host, { key: '
|
|
22150
|
+
return (hAsync(Host, { key: '294225d51b55c99b24e3eaf077fe5c62008004db', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, hAsync("strong", { key: 'c35594ae01f0e7769381c18a43aa58e21997f0da', class: {
|
|
20710
22151
|
["tag"]: true,
|
|
20711
22152
|
[`${variant}-${status}`]: true,
|
|
20712
22153
|
["outlined"]: variant === "outlined",
|
|
20713
22154
|
[`${size}`]: true,
|
|
20714
|
-
} }, hAsync("ic-typography", { key: '
|
|
22155
|
+
} }, hAsync("ic-typography", { key: '0ccc4949134d73f83cee64ec456d1a3f42054b9e', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, hAsync("span", { key: '4fbe4a1f344e5ced1878ae7e3ac6debfb6a91389' }, label)))));
|
|
20715
22156
|
}
|
|
20716
22157
|
static get style() { return IcStatusTagStyle0; }
|
|
20717
22158
|
static get cmpMeta() { return {
|
|
@@ -20746,6 +22187,19 @@ class Step {
|
|
|
20746
22187
|
* @internal If `true`, and a compact stepper is being used, the current step will be the only step in view.
|
|
20747
22188
|
*/
|
|
20748
22189
|
this.current = false;
|
|
22190
|
+
/**
|
|
22191
|
+
* Words within the component that can be replaced to translate the component into a different language
|
|
22192
|
+
*/
|
|
22193
|
+
this.icI18n = {
|
|
22194
|
+
next: "Next",
|
|
22195
|
+
step: "Step",
|
|
22196
|
+
of: "of",
|
|
22197
|
+
lastStep: "Last step",
|
|
22198
|
+
completed: "Completed",
|
|
22199
|
+
notRequired: "Not required",
|
|
22200
|
+
required: "Required",
|
|
22201
|
+
optional: "Optional",
|
|
22202
|
+
};
|
|
20749
22203
|
/**
|
|
20750
22204
|
* @internal Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
|
20751
22205
|
*/
|
|
@@ -20765,96 +22219,95 @@ class Step {
|
|
|
20765
22219
|
}
|
|
20766
22220
|
render() {
|
|
20767
22221
|
var _a, _b;
|
|
22222
|
+
const { compactStepStyling, current, heading, icI18n, lastStep, lastStepNum, nextStepHeading, progress, status, stepNum, subheading, theme, type, variant, } = this;
|
|
20768
22223
|
// ARIA LABEL
|
|
20769
22224
|
let ariaLabel = "";
|
|
20770
|
-
if (
|
|
20771
|
-
ariaLabel =
|
|
22225
|
+
if (type === "completed") {
|
|
22226
|
+
ariaLabel = `. ${icI18n.completed}`;
|
|
20772
22227
|
}
|
|
20773
|
-
else if (
|
|
20774
|
-
ariaLabel =
|
|
22228
|
+
else if (type === "disabled") {
|
|
22229
|
+
ariaLabel = `. ${icI18n.notRequired}`;
|
|
20775
22230
|
}
|
|
20776
|
-
else if (
|
|
20777
|
-
ariaLabel =
|
|
22231
|
+
else if (status === "required") {
|
|
22232
|
+
ariaLabel = `. ${icI18n.required}`;
|
|
20778
22233
|
}
|
|
20779
|
-
else if (
|
|
20780
|
-
ariaLabel =
|
|
22234
|
+
else if (status === "optional") {
|
|
22235
|
+
ariaLabel = `. ${icI18n.optional}`;
|
|
20781
22236
|
}
|
|
20782
22237
|
// STEP STATUS
|
|
20783
22238
|
let stepStatus;
|
|
20784
|
-
if (
|
|
20785
|
-
stepStatus =
|
|
22239
|
+
if (status && isPropDefined$1(status)) {
|
|
22240
|
+
stepStatus = status[0].toUpperCase() + status.slice(1);
|
|
20786
22241
|
}
|
|
20787
22242
|
// STEP TYPE
|
|
20788
22243
|
let stepType;
|
|
20789
|
-
if (
|
|
20790
|
-
stepType =
|
|
22244
|
+
if (type === "disabled" || compactStepStyling === "disabled") {
|
|
22245
|
+
stepType = icI18n.notRequired;
|
|
20791
22246
|
}
|
|
20792
|
-
else if (
|
|
20793
|
-
stepType =
|
|
22247
|
+
else if (compactStepStyling === "completed") {
|
|
22248
|
+
stepType = icI18n.completed;
|
|
20794
22249
|
}
|
|
20795
22250
|
// STATUS ICON FOR COMPACT STEP
|
|
20796
22251
|
let statusIcon;
|
|
20797
|
-
if (
|
|
20798
|
-
statusIcon = (hAsync("span", { key: '
|
|
22252
|
+
if (type === "completed" || compactStepStyling === "completed") {
|
|
22253
|
+
statusIcon = (hAsync("span", { key: '8c76808f7d75f2d9ae6293209ef86bae0e79716d', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
|
20799
22254
|
}
|
|
20800
|
-
else if (
|
|
20801
|
-
|
|
20802
|
-
statusIcon = (hAsync("span", { key: 'aedd81eacbe9ca6a4e331142d09053926b00dcd4', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
22255
|
+
else if (type === "disabled" || compactStepStyling === "disabled") {
|
|
22256
|
+
statusIcon = (hAsync("span", { key: '16ba6a8045db3f5694f7546a5458b6f91261d814', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
20803
22257
|
}
|
|
20804
22258
|
// COMPACT STEP COMPONENT
|
|
20805
|
-
const compactStep = (hAsync("div", { key: '
|
|
22259
|
+
const compactStep = (hAsync("div", { key: '914fd4dade3b6900052b9ac08f665610f10ee467', class: {
|
|
20806
22260
|
["step"]: true,
|
|
20807
|
-
["current"]: !!
|
|
20808
|
-
[`compact-step-${
|
|
20809
|
-
["disabled"]:
|
|
20810
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
|
22261
|
+
["current"]: !!current,
|
|
22262
|
+
[`compact-step-${compactStepStyling}`]: !!compactStepStyling,
|
|
22263
|
+
["disabled"]: type === "disabled" || compactStepStyling === "disabled",
|
|
22264
|
+
} }, hAsync("ic-loading-indicator", { key: '4679914758455a299e8bab80e4640fa3fcdb6a18', class: {
|
|
20811
22265
|
"compact-step-progress-indicator": true,
|
|
20812
|
-
"not-required":
|
|
20813
|
-
|
|
20814
|
-
|
|
20815
|
-
|
|
20816
|
-
this.type === "disabled" ||
|
|
22266
|
+
"not-required": type === "disabled" || compactStepStyling === "disabled",
|
|
22267
|
+
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), hAsync("div", { key: '7666cfe7acb4966bcb1baa07f457dba6b21120b5', class: "heading-area" }, hAsync("ic-typography", { key: '247088bc17d4ed998e5d04150e4a2e0c0a0185b2', variant: "h4", class: "heading" }, heading), hAsync("div", { key: 'bf63017723f6db8ccbb27583a2f04a548c596ea9', class: "info-line" }, hAsync("ic-typography", { key: '621c958bc31df3631b808a8055d964d71ba97388', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, hAsync("span", { key: 'e08ea47dd3a11327ca6ee4b8e0d75f292c8c812f', class: "visually-hidden" }, " steps")), (this.subheading ||
|
|
22268
|
+
type === "completed" ||
|
|
22269
|
+
type === "disabled" ||
|
|
20817
22270
|
(this.variant === "compact" &&
|
|
20818
|
-
!!
|
|
20819
|
-
|
|
20820
|
-
!!
|
|
20821
|
-
?
|
|
20822
|
-
:
|
|
20823
|
-
(
|
|
20824
|
-
|
|
20825
|
-
|
|
20826
|
-
(
|
|
20827
|
-
|
|
22271
|
+
!!compactStepStyling &&
|
|
22272
|
+
compactStepStyling !== "active") ||
|
|
22273
|
+
!!status) && (hAsync("div", { key: '7614152c3bfad5b936e206e3ab9c295763f2569c', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (hAsync("ic-typography", { key: '8c1e5c2b326a40237d5e3ef5ed1bcdec7c8f8132', variant: "caption" }, subheading !== null && isPropDefined$1(subheading)
|
|
22274
|
+
? subheading
|
|
22275
|
+
: type === "disabled" ||
|
|
22276
|
+
(variant === "compact" &&
|
|
22277
|
+
compactStepStyling === "disabled") ||
|
|
22278
|
+
type === "completed" ||
|
|
22279
|
+
(variant === "compact" &&
|
|
22280
|
+
compactStepStyling === "completed")
|
|
20828
22281
|
? stepType
|
|
20829
|
-
:
|
|
22282
|
+
: status && stepStatus))))), lastStep ? (hAsync("ic-typography", { variant: "subtitle-small", class: "next-step" }, icI18n.lastStep)) : (isPropDefined$1(nextStepHeading) && (hAsync("ic-typography", { variant: "subtitle-small", class: "next-step" }, icI18n.next, hAsync("span", { class: "visually-hidden" }, " ", icI18n.step), ":", " ", this.nextStepHeading))))));
|
|
20830
22283
|
// ICON FOR DEFAULT STEP
|
|
20831
22284
|
let icon;
|
|
20832
|
-
if (
|
|
20833
|
-
icon = (hAsync("ic-typography", { key: '
|
|
22285
|
+
if (type !== "completed") {
|
|
22286
|
+
icon = (hAsync("ic-typography", { key: 'ffa20478aed6b35a92c1cc1f16ebcebb97492553', variant: "subtitle-small" }, hAsync("span", { key: 'ed4a75d2aab01948cd6417c697a0c150d9f1d262', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
|
20834
22287
|
}
|
|
20835
22288
|
else {
|
|
20836
|
-
icon = (hAsync("div", { key: '
|
|
22289
|
+
icon = (hAsync("div", { key: 'b50a1c3094e7f1328d0f86ab10892afcd8a3c41a', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: '8c277146b4a653097a7e8ec5ceff6112e667ac38', class: "check-icon", innerHTML: checkIcon })));
|
|
20837
22290
|
}
|
|
20838
22291
|
// STEP CONNECT FOR DEFAULT STEP
|
|
20839
|
-
const partialBar =
|
|
20840
|
-
const finalStep = !
|
|
22292
|
+
const partialBar = type === "current" && (hAsync("div", { key: '5bc99a6129f3dfffc9b57175a2a18fd589a07557', class: "step-connect-inner" }));
|
|
22293
|
+
const finalStep = !lastStep && (hAsync("div", { key: 'e16d56443005483e87a58164452d57fe93ccbaca', class: {
|
|
20841
22294
|
["step-connect"]: true,
|
|
20842
22295
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
|
20843
22296
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
20844
22297
|
} }, partialBar));
|
|
20845
22298
|
// DEFAULT STEP COMPONENT
|
|
20846
|
-
const defaultStep = (hAsync("div", { key: '
|
|
22299
|
+
const defaultStep = (hAsync("div", { key: 'd50917250a7ce0866f877bf7b957a45789059240', class: {
|
|
20847
22300
|
["step"]: true,
|
|
20848
|
-
[`${
|
|
20849
|
-
} }, hAsync("div", { key: '
|
|
20850
|
-
?
|
|
22301
|
+
[`${type}`]: true,
|
|
22302
|
+
} }, hAsync("div", { key: 'c90e98efccf917d2327958e5bd0a722561e3e661', class: "step-top" }, hAsync("div", { key: '2ae403e7604d97633da0f5df80665626312e6d98', class: "step-icon" }, icon), finalStep), (heading || subheading || status) && (hAsync("div", { key: '0b028ca96dd4ba62da9a77327575af1178b95e87', class: "heading-area" }, heading && (hAsync("ic-typography", { key: '19127034e751855cf6b817d4afe4e4b6e1542321', variant: "subtitle-large", class: "heading" }, heading)), heading && (subheading || status) && (hAsync("ic-typography", { key: '1faa4f2dfc841105d9989e442360c44d0b162f4d', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined$1(subheading)
|
|
22303
|
+
? subheading
|
|
20851
22304
|
: stepStatus))))));
|
|
20852
|
-
return (hAsync(Host, { key: '
|
|
22305
|
+
return (hAsync(Host, { key: '05bb1106d2259fca749c197e79caa408dc237326', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
|
|
20853
22306
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
|
20854
22307
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
20855
|
-
[`ic-step-${
|
|
20856
|
-
[`ic-theme-${
|
|
20857
|
-
} },
|
|
22308
|
+
[`ic-step-${variant}`]: true,
|
|
22309
|
+
[`ic-theme-${theme}`]: this.theme !== "inherit",
|
|
22310
|
+
} }, variant === "compact" ? compactStep : defaultStep));
|
|
20858
22311
|
}
|
|
20859
22312
|
get el() { return getElement(this); }
|
|
20860
22313
|
static get watchers() { return {
|
|
@@ -20867,6 +22320,7 @@ class Step {
|
|
|
20867
22320
|
"$members$": {
|
|
20868
22321
|
"compactStepStyling": [1, "compact-step-styling"],
|
|
20869
22322
|
"current": [1028],
|
|
22323
|
+
"icI18n": [16],
|
|
20870
22324
|
"lastStep": [4, "last-step"],
|
|
20871
22325
|
"lastStepNum": [2, "last-step-num"],
|
|
20872
22326
|
"nextStepHeading": [1, "next-step-heading"],
|
|
@@ -20914,6 +22368,19 @@ class Stepper {
|
|
|
20914
22368
|
* If `true`, the information about each step, i.e. step title, step subtitle and step status, will be hidden on all default steps. The information about each step will still be visible in the compact variant of the stepper.
|
|
20915
22369
|
*/
|
|
20916
22370
|
this.hideStepInfo = false;
|
|
22371
|
+
/**
|
|
22372
|
+
* Provide alternative values for text in all child steps. For the purpose of translating the application into other languages.
|
|
22373
|
+
*/
|
|
22374
|
+
this.icI18n = {
|
|
22375
|
+
next: "Next",
|
|
22376
|
+
step: "Step",
|
|
22377
|
+
of: "of",
|
|
22378
|
+
lastStep: "Last step",
|
|
22379
|
+
completed: "Completed",
|
|
22380
|
+
notRequired: "Not required",
|
|
22381
|
+
required: "Required",
|
|
22382
|
+
optional: "Optional",
|
|
22383
|
+
};
|
|
20917
22384
|
/**
|
|
20918
22385
|
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
|
20919
22386
|
*/
|
|
@@ -20959,6 +22426,10 @@ class Stepper {
|
|
|
20959
22426
|
this.initialiseStepStates = () => {
|
|
20960
22427
|
this.steps.forEach((step, index) => {
|
|
20961
22428
|
var _a, _b, _c;
|
|
22429
|
+
// Set language
|
|
22430
|
+
if (this.icI18n !== undefined) {
|
|
22431
|
+
step.icI18n = this.icI18n;
|
|
22432
|
+
}
|
|
20962
22433
|
// Set variant
|
|
20963
22434
|
step.variant = this.variant;
|
|
20964
22435
|
// Assign stepNum to each step
|
|
@@ -21130,11 +22601,11 @@ class Stepper {
|
|
|
21130
22601
|
checkResizeObserver$1(this.runResizeObserver);
|
|
21131
22602
|
}
|
|
21132
22603
|
render() {
|
|
21133
|
-
return (hAsync(Host, { key: '
|
|
22604
|
+
return (hAsync(Host, { key: 'a5ec9b8d778ba54adf1b3034455e64df0a51fd7c', class: {
|
|
21134
22605
|
[`ic-stepper-${this.variant}`]: true,
|
|
21135
22606
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
|
21136
22607
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
21137
|
-
} }, hAsync("ul", { key: '
|
|
22608
|
+
} }, hAsync("ul", { key: '4140f5cb20325ee4c5c98c855c4b822a448294e8', class: "step-item-list" }, hAsync("slot", { key: 'cda080de502e7760bb3f9a1519f0261b554b0b77' }))));
|
|
21138
22609
|
}
|
|
21139
22610
|
get el() { return getElement(this); }
|
|
21140
22611
|
static get watchers() { return {
|
|
@@ -21150,6 +22621,7 @@ class Stepper {
|
|
|
21150
22621
|
"aligned": [1],
|
|
21151
22622
|
"connectorWidth": [2, "connector-width"],
|
|
21152
22623
|
"hideStepInfo": [4, "hide-step-info"],
|
|
22624
|
+
"icI18n": [16],
|
|
21153
22625
|
"theme": [1],
|
|
21154
22626
|
"variant": [1025],
|
|
21155
22627
|
"alignedFullWidth": [32],
|
|
@@ -21264,16 +22736,16 @@ class Switch {
|
|
|
21264
22736
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
|
21265
22737
|
const isSmall = size === "small";
|
|
21266
22738
|
renderHiddenInput$1(this.el, checkedState ? value : "", name, disabled);
|
|
21267
|
-
return (hAsync(Host, { key: '
|
|
22739
|
+
return (hAsync(Host, { key: '1f3cc9bbab1f273d76380e351f4fc3dfbcb85a55', class: {
|
|
21268
22740
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
21269
|
-
} }, hAsync("label", { key: '
|
|
22741
|
+
} }, hAsync("label", { key: '49569c926514f3832f137bc36638fc8318407abe', class: {
|
|
21270
22742
|
"ic-switch-container": true,
|
|
21271
22743
|
"ic-switch-disabled": !!disabled,
|
|
21272
22744
|
"ic-switch-small": isSmall,
|
|
21273
|
-
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '
|
|
22745
|
+
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '1e7934fa8eb3514931b16e3723374792da3fc77b', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
|
|
21274
22746
|
"ic-switch-label": true,
|
|
21275
22747
|
"ic-switch-label-small": isSmall,
|
|
21276
|
-
} }, hAsync("slot", { key: '
|
|
22748
|
+
} }, hAsync("slot", { key: '909af29daf9c94113ee16fbba1eeba563acb6a91', name: "helper-text", slot: "helper-text" }))), !hideLabel && hAsync("span", { key: 'e25526f252995da3cfe450eb806a3eb1ef5a2089', class: "ic-switch-line-break" }), hAsync("input", { key: 'e6e78d8ddb9af85c055adcad3ef21fbac2fd5d01', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText$1(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: 'a0be597711d9b13b2e0224b9518f364a55d7f3bd', class: "ic-switch-toggle" }, hAsync("svg", { key: '2f7dab194ad8a6d0795c9067b1a6f4e162b79aa3', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("line", { key: 'f763ce863fe848d012cacc38886a6c39c6857f06', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), hAsync("svg", { key: '49fa1c767bad7c491a6c52c4efa9c5fb1d2d9646', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: '5165a18b8d1e9d5e9d0067d00559d76f50522753', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), hAsync("slot", { key: 'ddee1e8995f799a83c5e00f44c041130bc7d7978', name: "right-adornment" }))));
|
|
21277
22749
|
}
|
|
21278
22750
|
static get delegatesFocus() { return true; }
|
|
21279
22751
|
get el() { return getElement(this); }
|
|
@@ -21632,6 +23104,14 @@ class TabContext {
|
|
|
21632
23104
|
tabEnabledHandler() {
|
|
21633
23105
|
this.enabledTabs = this.getEnabledTabs();
|
|
21634
23106
|
}
|
|
23107
|
+
/**
|
|
23108
|
+
* Sets focus on the tab context.
|
|
23109
|
+
*/
|
|
23110
|
+
async setFocus() {
|
|
23111
|
+
if (this.selectedTab != null) {
|
|
23112
|
+
this.tabs[this.selectedTab].setFocus();
|
|
23113
|
+
}
|
|
23114
|
+
}
|
|
21635
23115
|
/**
|
|
21636
23116
|
* @internal Used to set tab/tab panel IDs when a tab/tab panel has been removed
|
|
21637
23117
|
*/
|
|
@@ -21646,12 +23126,12 @@ class TabContext {
|
|
|
21646
23126
|
else {
|
|
21647
23127
|
this.setInitialTab();
|
|
21648
23128
|
}
|
|
21649
|
-
if (hadFocus && this.selectedTab) {
|
|
23129
|
+
if (hadFocus && this.selectedTab != null) {
|
|
21650
23130
|
this.tabs[this.selectedTab].setFocus();
|
|
21651
23131
|
}
|
|
21652
23132
|
}
|
|
21653
23133
|
render() {
|
|
21654
|
-
return hAsync("slot", { key: '
|
|
23134
|
+
return hAsync("slot", { key: 'a5806f753757f1367b776c388a57f5760656906d' });
|
|
21655
23135
|
}
|
|
21656
23136
|
get el() { return getElement(this); }
|
|
21657
23137
|
static get watchers() { return {
|
|
@@ -21669,6 +23149,7 @@ class TabContext {
|
|
|
21669
23149
|
"monochrome": [4],
|
|
21670
23150
|
"theme": [1],
|
|
21671
23151
|
"selectedTab": [32],
|
|
23152
|
+
"setFocus": [64],
|
|
21672
23153
|
"tabRemovedHandler": [64]
|
|
21673
23154
|
},
|
|
21674
23155
|
"$listeners$": [[0, "tabClick", "tabClickHandler"], [0, "tabCreated", "tabCreatedHandler"], [0, "tabPanelCreated", "tabCreatedHandler"], [0, "tabEnabled", "tabEnabledHandler"]],
|
|
@@ -21697,11 +23178,11 @@ class TabGroup {
|
|
|
21697
23178
|
}
|
|
21698
23179
|
render() {
|
|
21699
23180
|
const { inline, theme, label, monochrome } = this;
|
|
21700
|
-
return (hAsync(Host, { key: '
|
|
23181
|
+
return (hAsync(Host, { key: '89f78b3bc3025f9bc250fb045612f11230448011', role: "tablist", "aria-label": label, class: {
|
|
21701
23182
|
["ic-tab-group-inline"]: !!inline,
|
|
21702
23183
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
21703
23184
|
["ic-tab-group-monochrome"]: !!monochrome,
|
|
21704
|
-
} }, hAsync("ic-horizontal-scroll", { key: '
|
|
23185
|
+
} }, hAsync("ic-horizontal-scroll", { key: '8924e03f1928a7c726576570ca817638169be532', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, hAsync("div", { key: 'c9534b3cb05161ee14a494925bd31ce3dc6f98f2', class: "tabs-container" }, hAsync("slot", { key: '63515a30dd40c06faf2a79f5cbb0cdf15fb726f5' })))));
|
|
21705
23186
|
}
|
|
21706
23187
|
static get delegatesFocus() { return true; }
|
|
21707
23188
|
static get style() { return IcTabGroupStyle0; }
|
|
@@ -21744,10 +23225,10 @@ class TabPanel {
|
|
|
21744
23225
|
}
|
|
21745
23226
|
render() {
|
|
21746
23227
|
const { active, theme } = this;
|
|
21747
|
-
return (hAsync(Host, { key: '
|
|
23228
|
+
return (hAsync(Host, { key: '96cf1fa97b36ba44f3e17601512962335437029a', class: {
|
|
21748
23229
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
21749
23230
|
"ic-tab-panel-hidden": !active,
|
|
21750
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '
|
|
23231
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '5fe1129fa2147621848ecb047b50002021a71d6b' }, hAsync("slot", { key: '4d479874c672f99d382b08f5c772cb787a1bdf8a' }))));
|
|
21751
23232
|
}
|
|
21752
23233
|
get el() { return getElement(this); }
|
|
21753
23234
|
static get style() { return IcTabPanelStyle0; }
|
|
@@ -21768,7 +23249,379 @@ class TabPanel {
|
|
|
21768
23249
|
}; }
|
|
21769
23250
|
}
|
|
21770
23251
|
|
|
21771
|
-
const
|
|
23252
|
+
const ItemHook = () => {
|
|
23253
|
+
// adds offset to the item based on its variant
|
|
23254
|
+
// e.g. h2 = 4 + (8*(2-2)) = 4px
|
|
23255
|
+
// h3 = 4 + (8*(3-2)) = 12px
|
|
23256
|
+
const setItemLevelOffset = (variant) => {
|
|
23257
|
+
return `${4 + 8 * (parseInt(variant.split("")[1]) - 2)}px`;
|
|
23258
|
+
};
|
|
23259
|
+
return { setItemLevelOffset };
|
|
23260
|
+
};
|
|
23261
|
+
const ItemComponent = (itemProps) => {
|
|
23262
|
+
const { id, className, label, target, selected, truncate, variant, position, size, updateSelected, setItemLevelOffset, } = itemProps;
|
|
23263
|
+
return (hAsync("a", { id: id, onClick: () => updateSelected(position), class: `${selected && "table-of-contents-item-content-selected"}
|
|
23264
|
+
${size === "large"
|
|
23265
|
+
? `table-of-contents-item-content-large`
|
|
23266
|
+
: `table-of-contents-item-content-default`}
|
|
23267
|
+
${className}
|
|
23268
|
+
`, href: `#${target}` },
|
|
23269
|
+
hAsync("ic-typography", { id: `${id}-label`, bold: selected === position, class: `${truncate && "truncated-item-text"} ${size && `table-of-contents-item-content-${size}`}
|
|
23270
|
+
table-of-contents-item-label
|
|
23271
|
+
`, style: {
|
|
23272
|
+
paddingLeft: setItemLevelOffset(variant),
|
|
23273
|
+
} }, label)));
|
|
23274
|
+
};
|
|
23275
|
+
const TableOfContentsItem = (props) => {
|
|
23276
|
+
const innerProps = ItemHook();
|
|
23277
|
+
return hAsync(ItemComponent, Object.assign({}, props, innerProps));
|
|
23278
|
+
};
|
|
23279
|
+
|
|
23280
|
+
const icTableOfContentsCss = ":host{display:block;border:none;max-height:100vh}.table-of-contents-section-container{display:flex}.table-of-contents-content{top:0;left:0;padding:0 var(--ic-space-md);font:var(--ic-color-text-primary);max-height:100vh;z-index:1}:host .table-of-contents-position-top{min-width:10rem;max-width:50rem}:host .table-of-contents-position-side{min-width:8rem;max-width:20rem;width:20rem;position:sticky}.table-of-contents-list{display:flex;flex-direction:row;max-width:inherit}:host ol{list-style:none;margin-block-start:0;padding-inline-start:0}.table-of-contents-list-items{display:flex;flex-direction:column;width:100%}.table-of-contents-sidebar{background-color:var(--ic-table-of-contents-banner);height:1.75rem;min-width:0.25rem}.table-of-contents-sidebar-monochrome{background-color:var(--ic-table-of-contents-banner-monochrome)}.table-of-contents-item{min-height:1.5rem;line-height:1.5rem}.table-of-contents-item-content:hover{background-color:var(--ic-table-of-contents-hover)}.table-of-contents-item-monochrome-content:hover{background-color:var(--ic-table-of-contents-hover-monochrome)}.table-of-contents-item-content{border:none;max-width:inherit;display:flex;align-items:center;text-decoration:none;position:relative;color:var(--ic-table-of-contents-text);min-height:1.5rem;--ic-typography-color:var(--ic-table-of-contents-text)}.table-of-contents-item-content-default{padding-top:var(--ic-space-xxxs);padding-bottom:var(--ic-space-xxxs)}.table-of-contents-item-content:focus{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-transition-duration-fast);outline:none;background-color:var(--ic-table-of-contents-hover)}.table-of-contents-item-content:active{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-transition-duration-fast);outline:none;background-color:var(--ic-table-of-contents-pressed)}.truncated-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-of-contents-item-content-large{padding-top:var(--ic-space-xxs);padding-bottom:var(--ic-space-xxs)}.table-of-contents-sidebar.large{height:2.5rem}.table-of-contents-heading.large{padding-bottom:var(--ic-space-xs)}@media (prefers-reduced-motion: no-preference){.table-of-contents-sidebar{transition:all 0.3s ease}}@media (prefers-reduced-motion: reduce){.table-of-contents-sidebar{transition:none}}@media (forced-colors: active){.table-of-contents-sidebar{background-color:Highlight}}";
|
|
23281
|
+
var IcTableOfContentsStyle0 = icTableOfContentsCss;
|
|
23282
|
+
|
|
23283
|
+
const TOC_CONTENT_CLASS = "table-of-contents-content";
|
|
23284
|
+
const TOC_LIST_ITEMS_CLASS = "table-of-contents-list-items";
|
|
23285
|
+
const TOC_ITEM_CLASS = "table-of-contents-item-content";
|
|
23286
|
+
const TOC_CONTAINER_CLASS = "table-of-contents-section-container";
|
|
23287
|
+
class TableOfContents {
|
|
23288
|
+
constructor(hostRef) {
|
|
23289
|
+
registerInstance(this, hostRef);
|
|
23290
|
+
/**
|
|
23291
|
+
* Heading text of the table of contents.
|
|
23292
|
+
*/
|
|
23293
|
+
this.heading = "Contents";
|
|
23294
|
+
/**
|
|
23295
|
+
* Maximum heading level of child content that will generate an item in the table of contents. E.g. when set to '3', headings of <h4> and <h5> will not appear.
|
|
23296
|
+
*/
|
|
23297
|
+
this.maximumHeadingLevel = 3;
|
|
23298
|
+
/**
|
|
23299
|
+
* If `true`, the table of contents will display as black in the light theme, and white in dark theme.
|
|
23300
|
+
*/
|
|
23301
|
+
this.monochrome = false;
|
|
23302
|
+
/**
|
|
23303
|
+
* Whether the table of contents will appear on the right of or above child content on large viewport widths.
|
|
23304
|
+
*/
|
|
23305
|
+
this.position = "right";
|
|
23306
|
+
/**
|
|
23307
|
+
* Vertical offset to page scroll (in percent) when table of contents item is selected, to account for other page components like headers.
|
|
23308
|
+
*/
|
|
23309
|
+
this.setScrollHeight = 50;
|
|
23310
|
+
/**
|
|
23311
|
+
* The size of the table of contents items.
|
|
23312
|
+
*/
|
|
23313
|
+
this.size = "medium";
|
|
23314
|
+
/**
|
|
23315
|
+
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
|
23316
|
+
*/
|
|
23317
|
+
this.theme = "inherit";
|
|
23318
|
+
/**
|
|
23319
|
+
* If `true`, the table of contents item label will be truncated.
|
|
23320
|
+
*/
|
|
23321
|
+
this.truncate = true;
|
|
23322
|
+
this.focusedElement = 0;
|
|
23323
|
+
// heading items
|
|
23324
|
+
this.referenceElements = [];
|
|
23325
|
+
// heights of heading items
|
|
23326
|
+
this.currentTargetHeights = [];
|
|
23327
|
+
// header height if present
|
|
23328
|
+
this.headerHeight = 0;
|
|
23329
|
+
// holds initial position to allow for responsive changes
|
|
23330
|
+
this.initialPosition = this.position;
|
|
23331
|
+
// suppress scroll listener to allow for click selection without scroll listener firing
|
|
23332
|
+
this.suppressListener = false;
|
|
23333
|
+
/**
|
|
23334
|
+
* Generate a TOC Item.
|
|
23335
|
+
* These items are wrapped in empty tooltips that will be populated by addTooltip()
|
|
23336
|
+
* @param tocHeading heading element to refer item information from
|
|
23337
|
+
* @param children
|
|
23338
|
+
* @returns TocItem ready to be rendered, with nested children if applicable
|
|
23339
|
+
*/
|
|
23340
|
+
this.createTocItem = (tocHeading, children) => {
|
|
23341
|
+
const tocId = `toc_${tocHeading.id}`;
|
|
23342
|
+
const tocItem = (hAsync(TableOfContentsItem, { id: tocId, className: TOC_ITEM_CLASS, variant: tocHeading.tagName.toLowerCase(), label: tocHeading.textLabel, target: tocHeading.id, truncate: this.truncate, selected: this.focusedElement, updateSelected: this.updateOnSelection, position: tocHeading.trueIndex, size: this.size }));
|
|
23343
|
+
const wrappedToc = this.truncate ? (hAsync("ic-tooltip", { target: tocId, label: tocHeading.innerHTML }, tocItem)) : (tocItem);
|
|
23344
|
+
return (hAsync("li", { class: `table-of-contents-item ${this.monochrome && "table-of-contents-item-monochrome"}` }, wrappedToc, children ? hAsync("ol", null, children) : null));
|
|
23345
|
+
};
|
|
23346
|
+
/**
|
|
23347
|
+
* Render TocItems and recursively render children items if they exist
|
|
23348
|
+
* @param listItem
|
|
23349
|
+
* @returns HTML Element array to be rendered
|
|
23350
|
+
*/
|
|
23351
|
+
this.renderTocTree = (listItem) => {
|
|
23352
|
+
let results;
|
|
23353
|
+
if (listItem.treeChildren.length > 0) {
|
|
23354
|
+
const children = listItem.treeChildren.map((i) => this.renderTocTree(i));
|
|
23355
|
+
results = this.createTocItem(listItem, children);
|
|
23356
|
+
}
|
|
23357
|
+
else {
|
|
23358
|
+
results = this.createTocItem(listItem);
|
|
23359
|
+
}
|
|
23360
|
+
return results;
|
|
23361
|
+
};
|
|
23362
|
+
// list item clicked logic
|
|
23363
|
+
this.updateOnSelection = (position) => {
|
|
23364
|
+
this.suppressListener = true;
|
|
23365
|
+
this.focusedElement = position;
|
|
23366
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23367
|
+
};
|
|
23368
|
+
// truncate text if it goes out of bounds of the container
|
|
23369
|
+
this.truncateText = () => {
|
|
23370
|
+
var _a, _b;
|
|
23371
|
+
const links = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(`.${TOC_ITEM_CLASS}`);
|
|
23372
|
+
const contentList = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(`.${TOC_LIST_ITEMS_CLASS}`);
|
|
23373
|
+
if (contentList)
|
|
23374
|
+
links === null || links === void 0 ? void 0 : links.forEach((item) => {
|
|
23375
|
+
this.addTooltip(item, DEVICE_SIZES.S);
|
|
23376
|
+
});
|
|
23377
|
+
};
|
|
23378
|
+
}
|
|
23379
|
+
suppressListenerHandler() {
|
|
23380
|
+
window.scrollTo(0, window.scrollY - this.headerHeight - 50);
|
|
23381
|
+
}
|
|
23382
|
+
/**
|
|
23383
|
+
* Scrape for heading elements on the page content within TOC, down to the maximumHeadingLevel.
|
|
23384
|
+
* From this, generate an array of Elements with lower rank headings inserted as treeChildren on top level headings.
|
|
23385
|
+
* @returns RankedElement[] array of HTML elements with additional props for rank, trueIndex and treeChildren array
|
|
23386
|
+
*/
|
|
23387
|
+
generateHeadingTree() {
|
|
23388
|
+
var _a;
|
|
23389
|
+
const resultArray = [];
|
|
23390
|
+
const headingDepth = this.maximumHeadingLevel < 5
|
|
23391
|
+
? ["h2", "h3", "h4", "h5"]
|
|
23392
|
+
.slice(0, (this.maximumHeadingLevel < 2 ? 2 : this.maximumHeadingLevel) - 1)
|
|
23393
|
+
.join(",")
|
|
23394
|
+
: "h2, h3, h4, h5";
|
|
23395
|
+
const headingList = this.el.querySelectorAll(headingDepth);
|
|
23396
|
+
if (headingList) {
|
|
23397
|
+
const headingArray = Array.from(headingList);
|
|
23398
|
+
headingArray.forEach((item, index) => {
|
|
23399
|
+
this.referenceElements.push(item);
|
|
23400
|
+
item.trueIndex = index;
|
|
23401
|
+
item.rank = item.tagName.toLowerCase().slice(1, 2);
|
|
23402
|
+
item.textLabel = item.textContent
|
|
23403
|
+
? item.textContent.trimStart().split("\n")[0]
|
|
23404
|
+
: `${item.rank}-${index}`;
|
|
23405
|
+
item.treeChildren = [];
|
|
23406
|
+
});
|
|
23407
|
+
let currentRank = ((_a = headingArray[0]) === null || _a === void 0 ? void 0 : _a.rank) || 2;
|
|
23408
|
+
headingArray.reverse().forEach((h, i) => {
|
|
23409
|
+
if (!h.id) {
|
|
23410
|
+
h.setAttribute("id", h.textLabel.replace(/\s+/g, "-").toLowerCase());
|
|
23411
|
+
}
|
|
23412
|
+
if (h.rank > currentRank && h.trueIndex > 0) {
|
|
23413
|
+
if (headingArray[i] && headingArray[i].rank < h.rank) {
|
|
23414
|
+
headingArray[i].treeChildren.unshift(h);
|
|
23415
|
+
}
|
|
23416
|
+
else {
|
|
23417
|
+
resultArray.push(h);
|
|
23418
|
+
}
|
|
23419
|
+
}
|
|
23420
|
+
else {
|
|
23421
|
+
currentRank = h.rank;
|
|
23422
|
+
resultArray.push(h);
|
|
23423
|
+
}
|
|
23424
|
+
});
|
|
23425
|
+
}
|
|
23426
|
+
return resultArray.reverse();
|
|
23427
|
+
}
|
|
23428
|
+
//container orientation logic
|
|
23429
|
+
containerPosition() {
|
|
23430
|
+
var _a;
|
|
23431
|
+
if (this.position) {
|
|
23432
|
+
const container = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`.${TOC_CONTAINER_CLASS}`);
|
|
23433
|
+
switch (this.position) {
|
|
23434
|
+
case "right":
|
|
23435
|
+
container.style.flexDirection = "row-reverse";
|
|
23436
|
+
break;
|
|
23437
|
+
case "top":
|
|
23438
|
+
container.style.flexDirection = "column";
|
|
23439
|
+
break;
|
|
23440
|
+
}
|
|
23441
|
+
}
|
|
23442
|
+
}
|
|
23443
|
+
/**
|
|
23444
|
+
* Move the sidebar to the provided position on the page.
|
|
23445
|
+
* Also, resize the sidebar to stretch the height of the selected heading.
|
|
23446
|
+
* @param newPosition
|
|
23447
|
+
*/
|
|
23448
|
+
sidebarTranslation(newPosition) {
|
|
23449
|
+
var _a, _b, _c;
|
|
23450
|
+
const sidebar = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".table-of-contents-sidebar");
|
|
23451
|
+
const itemHeights = [];
|
|
23452
|
+
let previousItemsHeight = 0;
|
|
23453
|
+
(_c = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelectorAll(`.${TOC_ITEM_CLASS}`)) === null || _c === void 0 ? void 0 : _c.forEach((item) => {
|
|
23454
|
+
if (item !== null)
|
|
23455
|
+
itemHeights.push(item.offsetHeight);
|
|
23456
|
+
});
|
|
23457
|
+
itemHeights
|
|
23458
|
+
.slice(0, newPosition)
|
|
23459
|
+
.forEach((i) => (previousItemsHeight += i));
|
|
23460
|
+
sidebar.style.transform = `translateY(${previousItemsHeight}px)`;
|
|
23461
|
+
sidebar.style.height = `${itemHeights[newPosition]}px`;
|
|
23462
|
+
}
|
|
23463
|
+
// find element heights to be used to determine focused item from scroll position
|
|
23464
|
+
findElementsHeights() {
|
|
23465
|
+
const contentBounds = [];
|
|
23466
|
+
this.referenceElements.forEach((element) => {
|
|
23467
|
+
contentBounds.push(element.getBoundingClientRect().top);
|
|
23468
|
+
});
|
|
23469
|
+
this.currentTargetHeights = contentBounds;
|
|
23470
|
+
}
|
|
23471
|
+
//resize window logic
|
|
23472
|
+
handleResizeBounds() {
|
|
23473
|
+
if (window.innerWidth < DEVICE_SIZES.XL && this.initialPosition !== "top") {
|
|
23474
|
+
this.position = "top";
|
|
23475
|
+
this.containerPosition();
|
|
23476
|
+
}
|
|
23477
|
+
else if (window.innerWidth > DEVICE_SIZES.XL &&
|
|
23478
|
+
this.position === "top" &&
|
|
23479
|
+
this.initialPosition === "right") {
|
|
23480
|
+
this.position = "right";
|
|
23481
|
+
this.containerPosition();
|
|
23482
|
+
}
|
|
23483
|
+
this.findElementsHeights();
|
|
23484
|
+
this.truncateText();
|
|
23485
|
+
}
|
|
23486
|
+
// scroll logic
|
|
23487
|
+
updateSelectedItemFromScroll() {
|
|
23488
|
+
const targetHeight = window.scrollY + window.innerHeight * (this.setScrollHeight / 100);
|
|
23489
|
+
if (window.scrollY === 0) {
|
|
23490
|
+
this.focusedElement = 0;
|
|
23491
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23492
|
+
}
|
|
23493
|
+
else if (targetHeight < this.currentTargetHeights[this.focusedElement]) {
|
|
23494
|
+
const previousItems = this.currentTargetHeights.slice(0, this.focusedElement);
|
|
23495
|
+
const closestItem = previousItems.reduce((newValue, curr, index) => {
|
|
23496
|
+
if (Math.abs(curr - targetHeight) <
|
|
23497
|
+
Math.abs(previousItems[newValue] - targetHeight))
|
|
23498
|
+
return index;
|
|
23499
|
+
return newValue;
|
|
23500
|
+
}, 0);
|
|
23501
|
+
this.focusedElement = closestItem;
|
|
23502
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23503
|
+
}
|
|
23504
|
+
else if (targetHeight > this.currentTargetHeights[this.focusedElement] &&
|
|
23505
|
+
this.focusedElement !== this.currentTargetHeights.length) {
|
|
23506
|
+
const relevantItems = this.currentTargetHeights.slice(this.focusedElement);
|
|
23507
|
+
const closestItem = relevantItems.reduce((newValue, curr, index) => {
|
|
23508
|
+
if (Math.abs(curr - targetHeight) <
|
|
23509
|
+
Math.abs(relevantItems[newValue] - targetHeight) &&
|
|
23510
|
+
curr < targetHeight)
|
|
23511
|
+
return index;
|
|
23512
|
+
return newValue;
|
|
23513
|
+
}, 0);
|
|
23514
|
+
if (closestItem + this.focusedElement !== this.focusedElement) {
|
|
23515
|
+
this.focusedElement += closestItem;
|
|
23516
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23517
|
+
}
|
|
23518
|
+
}
|
|
23519
|
+
}
|
|
23520
|
+
// find header element height
|
|
23521
|
+
findHeaderElement() {
|
|
23522
|
+
const element = document.querySelector("ic-page-header");
|
|
23523
|
+
if (element) {
|
|
23524
|
+
return element.clientHeight;
|
|
23525
|
+
}
|
|
23526
|
+
const header = document.querySelector("header");
|
|
23527
|
+
if (header) {
|
|
23528
|
+
return header.clientHeight;
|
|
23529
|
+
}
|
|
23530
|
+
return 0;
|
|
23531
|
+
}
|
|
23532
|
+
// add margin to the list based off the header element height
|
|
23533
|
+
addListMargin() {
|
|
23534
|
+
var _a;
|
|
23535
|
+
const content = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`.${TOC_CONTENT_CLASS}`);
|
|
23536
|
+
content === null || content === void 0 ? void 0 : content.style.setProperty("top", `${this.headerHeight}px`);
|
|
23537
|
+
}
|
|
23538
|
+
// add tooltip to the item if it is too wide
|
|
23539
|
+
addTooltip(item, widthBreakpoint) {
|
|
23540
|
+
var _a;
|
|
23541
|
+
const itemLabel = item.querySelector(".table-of-contents-item-label");
|
|
23542
|
+
if (((_a = item.parentNode) === null || _a === void 0 ? void 0 : _a.tagName) == "IC-TOOLTIP") {
|
|
23543
|
+
const tooltip = item.parentNode;
|
|
23544
|
+
if ((itemLabel === null || itemLabel === void 0 ? void 0 : itemLabel.offsetWidth) < (itemLabel === null || itemLabel === void 0 ? void 0 : itemLabel.scrollWidth)) {
|
|
23545
|
+
const tooltipPosition = window.innerWidth < widthBreakpoint
|
|
23546
|
+
? "bottom"
|
|
23547
|
+
: this.position === "right"
|
|
23548
|
+
? "left"
|
|
23549
|
+
: "right";
|
|
23550
|
+
//Modify the ic-tooltip wrapped around the list item
|
|
23551
|
+
tooltip.setAttribute("disable-click", false);
|
|
23552
|
+
tooltip.setAttribute("disable-hover", false);
|
|
23553
|
+
tooltip.setAttribute("placement", tooltipPosition);
|
|
23554
|
+
tooltip.setAttribute("target", item.id);
|
|
23555
|
+
tooltip.setAttribute("style", "overflow:hidden");
|
|
23556
|
+
}
|
|
23557
|
+
else {
|
|
23558
|
+
//disable the tooltip if the item does not need to truncate
|
|
23559
|
+
tooltip.setAttribute("disable-click", true);
|
|
23560
|
+
tooltip.setAttribute("disable-hover", true);
|
|
23561
|
+
}
|
|
23562
|
+
}
|
|
23563
|
+
}
|
|
23564
|
+
// initialise resize observer
|
|
23565
|
+
componentWillLoad() {
|
|
23566
|
+
this.resizeObserver = new ResizeObserver(() => this.handleResizeBounds());
|
|
23567
|
+
this.resizeObserver.observe(this.el);
|
|
23568
|
+
}
|
|
23569
|
+
// initialise scroll listener
|
|
23570
|
+
componentDidRender() {
|
|
23571
|
+
document.addEventListener("scroll", () => {
|
|
23572
|
+
if (!this.suppressListener)
|
|
23573
|
+
this.updateSelectedItemFromScroll();
|
|
23574
|
+
else
|
|
23575
|
+
this.suppressListener = false;
|
|
23576
|
+
});
|
|
23577
|
+
this.containerPosition();
|
|
23578
|
+
this.findElementsHeights();
|
|
23579
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23580
|
+
}
|
|
23581
|
+
// after component has loaded modify the list based of position, size and surrounding elements
|
|
23582
|
+
async componentDidLoad() {
|
|
23583
|
+
this.focusedElement = 0;
|
|
23584
|
+
this.headerHeight = this.findHeaderElement();
|
|
23585
|
+
this.addListMargin();
|
|
23586
|
+
this.truncateText();
|
|
23587
|
+
this.findElementsHeights();
|
|
23588
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23589
|
+
}
|
|
23590
|
+
// Component is a wrapper for page contents, and will build list from heading items
|
|
23591
|
+
render() {
|
|
23592
|
+
const { heading, monochrome, position, size, theme } = this;
|
|
23593
|
+
return (hAsync(Host, { key: '251846b7b12255064f6f08dc5ed373e8ccf0326b', class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("ic-section-container", { key: '3a178d62dfe2ce56c052e18114bb2d7c3fbd47ee', class: TOC_CONTAINER_CLASS, aligned: "full-width" }, hAsync("div", { key: '34378cb8e4ac052d1f05cdc7b61880ab866e5c30', role: "navigation", class: `${TOC_CONTENT_CLASS} ${position === "top" && "table-of-contents-position-top"}
|
|
23594
|
+
${position === "right" && "table-of-contents-position-side"}` }, hAsync("ic-typography", { key: '9c2e6cd5dcf1bdcaada2fc63035c3fbe1aff0f44', class: `table-of-contents-heading ${size}`, variant: "subtitle-large" }, heading), hAsync("div", { key: '848fbb7b4e2923e6abc7c2b7dbe267221b0158e6', class: "table-of-contents-list" }, hAsync("div", { key: '31324398f103b292dfdf6edec92e738fa0c49c60', class: `table-of-contents-sidebar ${monochrome && `table-of-contents-sidebar-monochrome`}
|
|
23595
|
+
${size}
|
|
23596
|
+
` }), hAsync("ol", { key: 'b4cf6c02151d3257155a4b8e055df992b06e64e0', class: TOC_LIST_ITEMS_CLASS }, this.generateHeadingTree().map((item) => this.renderTocTree(item))))), hAsync("slot", { key: '0a5e55adfd3eeb0ba3c502c8936557f1b5f8bd76' }))));
|
|
23597
|
+
}
|
|
23598
|
+
get el() { return getElement(this); }
|
|
23599
|
+
static get watchers() { return {
|
|
23600
|
+
"suppressListener": ["suppressListenerHandler"]
|
|
23601
|
+
}; }
|
|
23602
|
+
static get style() { return IcTableOfContentsStyle0; }
|
|
23603
|
+
static get cmpMeta() { return {
|
|
23604
|
+
"$flags$": 9,
|
|
23605
|
+
"$tagName$": "ic-table-of-contents",
|
|
23606
|
+
"$members$": {
|
|
23607
|
+
"heading": [1],
|
|
23608
|
+
"maximumHeadingLevel": [2, "maximum-heading-level"],
|
|
23609
|
+
"monochrome": [4],
|
|
23610
|
+
"position": [1025],
|
|
23611
|
+
"setScrollHeight": [2, "set-scroll-height"],
|
|
23612
|
+
"size": [1],
|
|
23613
|
+
"theme": [1],
|
|
23614
|
+
"truncate": [4],
|
|
23615
|
+
"focusedElement": [32],
|
|
23616
|
+
"suppressListener": [32]
|
|
23617
|
+
},
|
|
23618
|
+
"$listeners$": undefined,
|
|
23619
|
+
"$lazyBundleId$": "-",
|
|
23620
|
+
"$attrsToReflect$": []
|
|
23621
|
+
}; }
|
|
23622
|
+
}
|
|
23623
|
+
|
|
23624
|
+
const icTextFieldCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-helpertext-padding:var(--ic-space-xs);--border-color:var(--ic-text-field-border-neutral);--border-color-hover:var(--ic-text-field-border-neutral-hover);--border-color-pressed:var(--ic-text-field-border-neutral-pressed);--border-color-disabled:var(--ic-text-field-border-disabled);--border-color-error:var(--ic-text-field-border-error);--border-color-error-hover:var(--ic-text-field-border-error-hover);--border-color-error-pressed:var(--ic-text-field-border-error-pressed);--border-color-success:var(--ic-text-field-border-success);--border-color-success-hover:var(--ic-text-field-border-success-hover);--border-color-success-pressed:var(--ic-text-field-border-success-pressed);--border-color-warning:var(--ic-text-field-border-warning);--border-color-warning-hover:var(--ic-text-field-border-warning-hover);--border-color-warning-pressed:var(--ic-text-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-text-field-label);--ic-input-label-helper-text-color:var(--ic-text-field-subtitle);--ic-input-validation-status-text-color:var(--ic-text-field-state-text);--ic-input-validation-error:var(--ic-text-field-state-icon-error);--ic-input-validation-warning-icon-color:var(\n --ic-text-field-state-icon-warning\n );--ic-input-validation-success-icon-color:var(\n --ic-text-field-state-icon-success\n );--ic-input-component-container-success-icon-inline-color:var(\n --ic-text-field-state-icon-success\n )}:host(.ic-text-field-disabled){--ic-input-label-text-color:var(--ic-text-field-label-disabled);--ic-input-label-helper-text-color:var(--ic-text-field-subtitle-disabled);--text-field-placeholder-color:var(\n --ic-text-field-text-area-placeholder-text-disabled\n )}:host(.ic-text-field-full-width){width:100%}::-moz-placeholder{color:var(\n --text-field-placeholder-color,\n var(--ic-text-field-placeholder-text)\n );opacity:1}::placeholder{color:var(\n --text-field-placeholder-color,\n var(--ic-text-field-placeholder-text)\n );opacity:1}input,textarea{border:0;border-radius:var(--ic-border-radius);color:var(--text-field-text-color, var(--ic-text-field-text));background-color:var(--input-bg-color, var(--ic-text-field-background));line-height:1.5rem;letter-spacing:0.005rem;width:100%;padding-right:var(--ic-space-xs);padding-left:var(--ic-space-xs);caret-color:var(\n --text-field-typing-cursor,\n var(--ic-text-field-typing-cursor)\n )}textarea{min-height:var(--ic-space-lg);resize:vertical;padding-top:0.375rem}input:focus,textarea:focus{border:0;outline:0}input:disabled,textarea:disabled{color:var(\n --text-field-disabled-text-color,\n var(--ic-text-field-text-disabled)\n )}input.readonly,textarea.readonly{color:var(--ic-text-field-read-only-input-text-internal);background:transparent}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=\"number\"]{-moz-appearance:textfield}textarea.no-resize{resize:none}.char-count-text{--ic-typography-color:var(--ic-text-field-character-limit);padding-right:var(--ic-space-xxxs)}:host(.ic-text-field-disabled) .char-count-text{--ic-typography-color:var(--ic-text-field-character-limit-disabled)}.no-left-pad{padding-left:0}::slotted([slot=\"icon\"]){fill:var(--ic-text-field-text-disabled)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-text-field-input-internal-icon)}.char-count{margin-right:calc(-1 * var(--ic-space-xxxs))}.remaining-char-count-desc{position:absolute;left:-9999px}.show-validation{margin-top:var(--ic-space-xs)}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration,input[type=\"search\"]::-webkit-search-results-button,input[type=\"search\"]::-webkit-search-results-decoration{display:none}input[type=\"search\"].truncate-value{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (forced-colors: active){input.readonly,textarea.readonly{color:canvastext}.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}";
|
|
21772
23625
|
var IcTextFieldStyle0 = icTextFieldCss;
|
|
21773
23626
|
|
|
21774
23627
|
let inputIds$1 = 0;
|
|
@@ -21918,6 +23771,10 @@ class TextField {
|
|
|
21918
23771
|
* The type of control to display. The default type is text.
|
|
21919
23772
|
*/
|
|
21920
23773
|
this.type = "text";
|
|
23774
|
+
/**
|
|
23775
|
+
* The value of the `aria-live` attribute on the validation message. When set to "default", the `aria-live` value will be handled automatically, e.g. "assertive" for `validation-status="error"`.
|
|
23776
|
+
*/
|
|
23777
|
+
this.validationAriaLive = "default";
|
|
21921
23778
|
/**
|
|
21922
23779
|
* If `true`, the icon in input control will be displayed - only applies when validationStatus ='success'.
|
|
21923
23780
|
*/
|
|
@@ -22003,6 +23860,15 @@ class TextField {
|
|
|
22003
23860
|
this.handleFormReset = () => {
|
|
22004
23861
|
this.value = this.initialValue;
|
|
22005
23862
|
};
|
|
23863
|
+
this.showValidationMargin = () => {
|
|
23864
|
+
const maxNumChars = this.readonly ? 0 : this.maxCharacters;
|
|
23865
|
+
const emptyString = isEmptyString$1(this.validationStatus) ||
|
|
23866
|
+
isEmptyString$1(this.validationText);
|
|
23867
|
+
const valueOutsideRange = this.minValueUnattained || this.maxValueExceeded;
|
|
23868
|
+
const charsOutsideRange = maxNumChars > 0 || this.minCharactersUnattained;
|
|
23869
|
+
return ((!emptyString || valueOutsideRange || charsOutsideRange) &&
|
|
23870
|
+
!this.validationInlineInternal);
|
|
23871
|
+
};
|
|
22006
23872
|
// triggered when attributes of host element change
|
|
22007
23873
|
this.hostMutationCallback = (mutationList) => {
|
|
22008
23874
|
mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
|
|
@@ -22096,7 +23962,7 @@ class TextField {
|
|
|
22096
23962
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22097
23963
|
}
|
|
22098
23964
|
render() {
|
|
22099
|
-
const { inputId, name, label, required, size, placeholder, helperText, hideCharCount, rows, resize, disabled, value, min, max, numChars, readonly, maxCharacters, maxCharactersMessage, maxCharactersWarning, maxCharactersReached, maxMessage, minCharacters, minCharactersMessage, minCharactersUnattained, minMessage, minValueUnattained, maxValueExceeded, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, theme, hideLabel, type, autocapitalize, ariaActiveDescendant, inheritedAttributes, ariaExpanded, ariaOwns, autocomplete, role, isFocussed, } = this;
|
|
23965
|
+
const { inputId, name, label, required, size, placeholder, helperText, hideCharCount, rows, resize, disabled, value, min, max, numChars, readonly, maxCharacters, maxCharactersMessage, maxCharactersWarning, maxCharactersReached, maxMessage, minCharacters, minCharactersMessage, minCharactersUnattained, minMessage, minValueUnattained, maxValueExceeded, validationAriaLive, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, theme, hideLabel, type, autocapitalize, ariaActiveDescendant, inheritedAttributes, ariaExpanded, ariaOwns, autocomplete, role, isFocussed, } = this;
|
|
22100
23966
|
const el = this.el;
|
|
22101
23967
|
const disabledMode = readonly || disabled;
|
|
22102
23968
|
const currentStatus = maxValueExceeded ||
|
|
@@ -22117,12 +23983,14 @@ class TextField {
|
|
|
22117
23983
|
? minCharactersMessage
|
|
22118
23984
|
: validationText;
|
|
22119
23985
|
const maxNumChars = readonly ? 0 : maxCharacters;
|
|
22120
|
-
const messageAriaLive =
|
|
22121
|
-
|
|
22122
|
-
|
|
22123
|
-
|
|
22124
|
-
|
|
22125
|
-
|
|
23986
|
+
const messageAriaLive = validationAriaLive === "default"
|
|
23987
|
+
? maxCharactersWarning ||
|
|
23988
|
+
maxValueExceeded ||
|
|
23989
|
+
minValueUnattained ||
|
|
23990
|
+
currentStatus === IcInformationStatus$1.Error
|
|
23991
|
+
? "assertive"
|
|
23992
|
+
: "polite"
|
|
23993
|
+
: validationAriaLive;
|
|
22126
23994
|
const showStatusText = this.hasStatus(currentStatus) &&
|
|
22127
23995
|
!(currentStatus == IcInformationStatus$1.Success && validationInline) &&
|
|
22128
23996
|
!validationInlineInternal;
|
|
@@ -22138,14 +24006,14 @@ class TextField {
|
|
|
22138
24006
|
hiddenInput
|
|
22139
24007
|
? renderHiddenInput$1(this.el, value, name, disabledMode)
|
|
22140
24008
|
: removeHiddenInput(this.el);
|
|
22141
|
-
return (hAsync(Host, { key: '
|
|
24009
|
+
return (hAsync(Host, { key: '985b46adc3cee088de75766a4230042e4af8c9c3', class: {
|
|
22142
24010
|
"ic-text-field-full-width": fullWidth,
|
|
22143
24011
|
"ic-text-field-disabled": disabledMode,
|
|
22144
24012
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
22145
|
-
} }, hAsync("ic-input-container", { key: '
|
|
24013
|
+
} }, hAsync("ic-input-container", { key: '4b9794b880ab440c1c2e6cf2072c13d9d88cc1fa', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '6ccf8091d697ddce0dade9a81d38e7bc17315da9', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly }, hAsync("slot", { key: '0ecf6a100c43efdca46f3b7c03ac6a5a8f7cc972', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: 'a1d649e733cab8590b92db3c0ecda49ea021103f', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (hAsync("span", { key: 'd3228d1ab97951891316b60608ce8a9fbe6295bb', class: {
|
|
22146
24014
|
readonly,
|
|
22147
24015
|
"has-value": this.getNumberOfCharacters(value) > 0,
|
|
22148
|
-
}, slot: "left-icon" }, hAsync("slot", { key: '
|
|
24016
|
+
}, slot: "left-icon" }, hAsync("slot", { key: 'ea62e21d7abc5048da1a8e9a15f5a5a535c963b3', 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: {
|
|
22149
24017
|
"no-left-pad": !showLeftIcon && readonly,
|
|
22150
24018
|
readonly,
|
|
22151
24019
|
"truncate-value": truncateValue,
|
|
@@ -22153,19 +24021,12 @@ class TextField {
|
|
|
22153
24021
|
"no-resize": resize === false || !!readonly,
|
|
22154
24022
|
"no-left-pad": !showLeftIcon && !!readonly,
|
|
22155
24023
|
readonly: !!readonly,
|
|
22156
|
-
}, 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$1(el, "clear-button") && (hAsync("slot", { key: '
|
|
22157
|
-
!isEmptyString$1(validationText) ||
|
|
22158
|
-
maxNumChars > 0 ||
|
|
22159
|
-
maxValueExceeded ||
|
|
22160
|
-
maxCharactersWarning ||
|
|
22161
|
-
minCharactersUnattained ||
|
|
22162
|
-
minValueUnattained) &&
|
|
22163
|
-
!validationInlineInternal && (hAsync("ic-input-validation", { key: '44d09f213ee6779ce6921e427c8ea660a1e47094', status: this.hasStatus(currentStatus) === false ||
|
|
24024
|
+
}, 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$1(el, "clear-button") && (hAsync("slot", { key: 'e02f69a6fd4c654b7f3b5f1593f7a29c7412d10f', name: "clear-button" })), isSlotUsed$1(el, "search-submit-button") && (hAsync("slot", { key: '2e32b1afd58a382a804a356537489efa523009ce', name: "search-submit-button" }))), isSlotUsed$1(el, "menu") && hAsync("slot", { key: '1cbac8ded359309907e51f16033b03d266eb8828', name: "menu" }), hAsync("ic-input-validation", { key: '55a5e1762111cb2715679f6263719924b098acd4', class: { "show-validation": this.showValidationMargin() }, status: this.hasStatus(currentStatus) === false ||
|
|
22164
24025
|
(currentStatus === IcInformationStatus$1.Success &&
|
|
22165
24026
|
validationInline) ||
|
|
22166
24027
|
validationInlineInternal
|
|
22167
24028
|
? ""
|
|
22168
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '
|
|
24029
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: 'ce76d39f556c5cf5ab0e97abb93e243cb0153f54', slot: "validation-message-adornment" }, !hideCharCount && (hAsync("ic-typography", { key: '49a4898f4b336ca7e1ced4550a9494c5505a78a6', variant: "caption", class: "char-count-text" }, hAsync("span", { key: '2b714b46208c477500494f1f43d919f972501f9b', class: "char-count" }, numChars, "/", maxNumChars))), hAsync("span", { key: '3559afb42041b8bb3080ae5bd015bc76a9af3b2d', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), hAsync("span", { key: '9f98def180554d1dc13e05d6cefac85fd91638bb', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))));
|
|
22169
24030
|
}
|
|
22170
24031
|
get el() { return getElement(this); }
|
|
22171
24032
|
static get watchers() { return {
|
|
@@ -22215,6 +24076,7 @@ class TextField {
|
|
|
22215
24076
|
"theme": [1],
|
|
22216
24077
|
"truncateValue": [4, "truncate-value"],
|
|
22217
24078
|
"type": [1],
|
|
24079
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
22218
24080
|
"validationInline": [4, "validation-inline"],
|
|
22219
24081
|
"validationInlineInternal": [4, "validation-inline-internal"],
|
|
22220
24082
|
"validationStatus": [1, "validation-status"],
|
|
@@ -22303,7 +24165,7 @@ class Theme {
|
|
|
22303
24165
|
}
|
|
22304
24166
|
render() {
|
|
22305
24167
|
const { themeClass } = this;
|
|
22306
|
-
return (hAsync(Host, { key: '
|
|
24168
|
+
return (hAsync(Host, { key: '5acfd70fc7d5cec478027487b121829ad9258623', class: themeClass }, hAsync("slot", { key: '962d9fdd42ceb26a48c49a06aa3df3cb13bb9157' })));
|
|
22307
24169
|
}
|
|
22308
24170
|
static get watchers() { return {
|
|
22309
24171
|
"brandColor": ["watchBrandColorPropHandler"],
|
|
@@ -22325,7 +24187,7 @@ class Theme {
|
|
|
22325
24187
|
|
|
22326
24188
|
var Clock = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>clock-outline</title><path d="M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z" /></svg>`;
|
|
22327
24189
|
|
|
22328
|
-
const icTimeInputCss = "/*! 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-input-label-helpertext-padding:var(--ic-space-xs);--input-bg-color:var(--ic-time-picker-field-background);--ic-input-label-text-color:var(--ic-time-picker-label);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle);--border-color:var(--ic-time-picker-time-field-border-default);--border-color-disabled:var(--ic-time-picker-border-disabled);--border-color-hover:var(--ic-time-picker-time-field-border-hover);--border-color-pressed:var(--ic-time-picker-time-field-border-pressed);--border-error-color:var(--ic-time-picker-border-error);--border-error-color-hover:var(--ic-time-picker-border-error-hover);--border-error-color-pressed:var(--ic-time-picker-border-error-pressed);--border-success-color:var(--ic-time-picker-border-success);--border-success-color-hover:var(--ic-time-picker-border-success-hover);--border-success-color-pressed:var(--ic-time-picker-border-success-pressed);--border-warning-color:var(--ic-time-picker-border-warning);--border-warning-color-hover:var(--ic-time-picker-border-warning-hover);--border-warning-color-pressed:var(--ic-time-picker-border-warning-pressed);--input-width:calc((4 * var(--ic-space-xxl)) + var(--ic-space-xxs))}:host(.ic-time-input-disabled){--ic-input-label-text-color:var(--ic-time-picker-label-disabled);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle-disabled)}:host(.ic-time-input-disabled) input{color:var(--ic-time-picker-time-text-disabled)}:host(.ic-time-input-large){--input-width:calc(\n (4 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-lg)\n )}:host(.ic-time-input-small){--input-width:calc(\n (3 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-xl)\n )}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-time-picker-time-text-default);caret-color:var(--ic-time-picker-typing-cursor)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}input:-webkit-autofill{box-shadow:0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset;-webkit-text-fill-color:var(--ic-time-picker-time-text-default) !important}input::-moz-placeholder{color:var(--ic-time-picker-field-placeholder-text)}input::placeholder{color:var(--ic-time-picker-field-placeholder-text)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.time-inputs{color:var(--ic-time-picker-field-placeholder-text)}.hour-input{width:1.438rem}.minute-input{width:1.813rem}.second-input,.second-input.fit-to-value{width:2.313rem}.fit-to-value{width:1.25rem}.sr-only{position:absolute;left:-9999px}.input-container{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}.action-buttons{display:flex;align-items:center}.show-clock-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.clock-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition);margin:0}.clear-button.hidden{display:none}.clear-button:focus,.clock-button:focus,.clear-button:active,.clock-button:active{background-color:var(--ic-color-focus-inner) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer) !important;border-radius:0.25rem}.clock-button:focus,.clock-button:active{--ic-button-tertiary-text-active:var(--ic-atoms-input-clear-button-focus);--ic-button-tertiary-text-hover-active:var(\n --ic-atoms-input-clear-button-focus\n );--ic-button-tertiary-text-pressed-active:var(\n --ic-atoms-input-clear-button-focus\n )}.clear-button:focus,.clock-button:focus,.clear-button:active *,.clock-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button svg{color:var(--ic-time-picker-clear-icon)}.clear-button:focus svg{color:var(--ic-atoms-input-clear-button-focus)}.divider{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-atoms-input-divider);border-radius:var(--ic-space-1px)}.divider.small{height:var(--ic-space-md)}.divider.medium{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}.divider.large{height:var(--ic-space-lg)}ic-input-validation{--ic-input-validation-status-text-color:var(--ic-time-picker-status-text);--ic-input-validation-error:var(--ic-time-picker-icon-error);--ic-input-validation-warning-icon-color:var(--ic-time-picker-icon-warning);--ic-input-validation-success-icon-color:var(--ic-time-picker-icon-success)}@media (forced-colors: active){.clear-button svg{color:
|
|
24190
|
+
const icTimeInputCss = "/*! 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-input-label-helpertext-padding:var(--ic-space-xs);--input-bg-color:var(--ic-time-picker-field-background);--ic-input-label-text-color:var(--ic-time-picker-label);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle);--border-color:var(--ic-time-picker-time-field-border-default);--border-color-disabled:var(--ic-time-picker-border-disabled);--border-color-hover:var(--ic-time-picker-time-field-border-hover);--border-color-pressed:var(--ic-time-picker-time-field-border-pressed);--border-error-color:var(--ic-time-picker-border-error);--border-error-color-hover:var(--ic-time-picker-border-error-hover);--border-error-color-pressed:var(--ic-time-picker-border-error-pressed);--border-success-color:var(--ic-time-picker-border-success);--border-success-color-hover:var(--ic-time-picker-border-success-hover);--border-success-color-pressed:var(--ic-time-picker-border-success-pressed);--border-warning-color:var(--ic-time-picker-border-warning);--border-warning-color-hover:var(--ic-time-picker-border-warning-hover);--border-warning-color-pressed:var(--ic-time-picker-border-warning-pressed);--input-width:calc((4 * var(--ic-space-xxl)) + var(--ic-space-xxs))}:host(.ic-time-input-disabled){--ic-input-label-text-color:var(--ic-time-picker-label-disabled);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle-disabled)}:host(.ic-time-input-disabled) input{color:var(--ic-time-picker-time-text-disabled)}:host(.ic-time-input-large){--input-width:calc(\n (4 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-lg)\n )}:host(.ic-time-input-small){--input-width:calc(\n (3 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-xl)\n )}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-time-picker-time-text-default);caret-color:var(--ic-time-picker-typing-cursor)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}input:-webkit-autofill{box-shadow:0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset;-webkit-text-fill-color:var(--ic-time-picker-time-text-default) !important}input::-moz-placeholder{color:var(--ic-time-picker-field-placeholder-text)}input::placeholder{color:var(--ic-time-picker-field-placeholder-text)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.time-inputs{color:var(--ic-time-picker-field-placeholder-text)}.hour-input{width:1.438rem}.minute-input{width:1.813rem}.second-input,.second-input.fit-to-value{width:2.313rem}.fit-to-value{width:1.25rem}.sr-only{position:absolute;left:-9999px}.input-container{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}.action-buttons{display:flex;align-items:center}.show-clock-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.clock-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition);margin:0}.clear-button.hidden{display:none}.clear-button:focus,.clock-button:focus,.clear-button:active,.clock-button:active{background-color:var(--ic-color-focus-inner) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer) !important;border-radius:0.25rem}.clock-button:focus,.clock-button:active{--ic-button-tertiary-text-active:var(--ic-atoms-input-clear-button-focus);--ic-button-tertiary-text-hover-active:var(\n --ic-atoms-input-clear-button-focus\n );--ic-button-tertiary-text-pressed-active:var(\n --ic-atoms-input-clear-button-focus\n )}.clear-button:focus,.clock-button:focus,.clear-button:active *,.clock-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button svg{color:var(--ic-time-picker-clear-icon)}.clear-button:focus svg{color:var(--ic-atoms-input-clear-button-focus)}.divider{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-atoms-input-divider);border-radius:var(--ic-space-1px)}.divider.small{height:var(--ic-space-md)}.divider.medium{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}.divider.large{height:var(--ic-space-lg)}ic-input-validation{--ic-input-validation-status-text-color:var(--ic-time-picker-status-text);--ic-input-validation-error:var(--ic-time-picker-icon-error);--ic-input-validation-warning-icon-color:var(--ic-time-picker-icon-warning);--ic-input-validation-success-icon-color:var(--ic-time-picker-icon-success)}@media (forced-colors: active){.clear-button svg{color:currentcolor}}";
|
|
22329
24191
|
var IcTimeInputStyle0 = icTimeInputCss;
|
|
22330
24192
|
|
|
22331
24193
|
let inputIds = 0;
|
|
@@ -22471,7 +24333,7 @@ class TimeInput {
|
|
|
22471
24333
|
};
|
|
22472
24334
|
this.setTimeValidity = () => {
|
|
22473
24335
|
const minHour = 0;
|
|
22474
|
-
const maxHour = this.timePeriod === "12" ?
|
|
24336
|
+
const maxHour = this.timePeriod === "12" ? 12 : 23;
|
|
22475
24337
|
if (!isEmptyString(this.hour)) {
|
|
22476
24338
|
this.isValidHour = +this.hour >= minHour && +this.hour <= maxHour;
|
|
22477
24339
|
}
|
|
@@ -22703,8 +24565,8 @@ class TimeInput {
|
|
|
22703
24565
|
let minValue = 0;
|
|
22704
24566
|
let maxValue = 59;
|
|
22705
24567
|
if (input === this.hourInputEl) {
|
|
22706
|
-
minValue = 0;
|
|
22707
|
-
maxValue = this.timePeriod === "12" ?
|
|
24568
|
+
minValue = this.timePeriod === "12" ? 1 : 0;
|
|
24569
|
+
maxValue = this.timePeriod === "12" ? 12 : 23;
|
|
22708
24570
|
}
|
|
22709
24571
|
let val = +input.value;
|
|
22710
24572
|
if (event.key === "ArrowUp") {
|
|
@@ -22996,12 +24858,12 @@ class TimeInput {
|
|
|
22996
24858
|
return timeParts.map((part) => {
|
|
22997
24859
|
switch (part.substring(0, 1)) {
|
|
22998
24860
|
case "H":
|
|
22999
|
-
return (hAsync("input", { class: "hour-input", id: "hour-input", ref: (el) => (this.hourInputEl = el), "aria-label": "hour", placeholder: "HH", disabled: this.disabled, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventHourInput) }));
|
|
24861
|
+
return (hAsync("input", { class: "hour-input", id: "hour-input", ref: (el) => (this.hourInputEl = el), "aria-label": "hour", placeholder: "HH", disabled: this.disabled, "aria-required": `${this.required}`, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventHourInput) }));
|
|
23000
24862
|
case "M":
|
|
23001
|
-
return (hAsync("input", { id: "minute-input", class: "minute-input", ref: (el) => (this.minuteInputEl = el), "aria-label": "minute", placeholder: "MM", disabled: this.disabled, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventMinuteInput) }));
|
|
24863
|
+
return (hAsync("input", { id: "minute-input", class: "minute-input", ref: (el) => (this.minuteInputEl = el), "aria-label": "minute", placeholder: "MM", disabled: this.disabled, "aria-required": `${this.required}`, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventMinuteInput) }));
|
|
23002
24864
|
case "S":
|
|
23003
24865
|
if (!this.isHHMMFormat()) {
|
|
23004
|
-
return (hAsync("input", { id: "second-input", class: "second-input", ref: (el) => (this.secondInputEl = el), "aria-label": "second", placeholder: "SS", disabled: this.disabled, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventSecondInput) }));
|
|
24866
|
+
return (hAsync("input", { id: "second-input", class: "second-input", ref: (el) => (this.secondInputEl = el), "aria-label": "second", placeholder: "SS", disabled: this.disabled, "aria-required": `${this.required}`, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventSecondInput) }));
|
|
23005
24867
|
}
|
|
23006
24868
|
return null;
|
|
23007
24869
|
default:
|
|
@@ -23226,23 +25088,23 @@ class TimeInput {
|
|
|
23226
25088
|
!(isEmptyString(this.hour) &&
|
|
23227
25089
|
isEmptyString(this.minute) &&
|
|
23228
25090
|
isEmptyString(this.second)));
|
|
23229
|
-
return (hAsync(Host, { key: '
|
|
25091
|
+
return (hAsync(Host, { key: 'a7604eeee0b3fbc569bf9dd8dde0985ca1d959ac', class: {
|
|
23230
25092
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
23231
25093
|
[`ic-time-input-disabled`]: disabled,
|
|
23232
25094
|
[`ic-time-input-${size}`]: true,
|
|
23233
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
|
25095
|
+
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '9caf38fa248baa68cb63412469c808a5b9930b91', disabled: disabled }, !(hideLabel && hideHelperText) && (hAsync("ic-input-label", { key: '14befa869df3cbeaf837f955d8094e90e8e95e26', for: inputId, label: label, hideLabel: hideLabel, helperText: !hideHelperText ? helperText : "", disabled: disabled }, hAsync("slot", { key: 'a61c2058d17a901815692eeb2990dcba1ae9928a', name: "helper-text", slot: "helper-text" }))), hAsync("span", { key: 'e5bb9bd6404b69e81ce030df1b06628adde559a0', id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideLabel && `${label}\n`, hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), hAsync("span", { key: '047a67f53e98a368730bec49b6575d85ad8333ce', id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), hAsync("span", { key: 'bb77df1421d9dd8a3bf8389adcd31d5b8e65784c', id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("ic-input-component-container", { key: '12ae117fc0956a5896a65b96f7cfdb5b2b7cdb44', id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group", class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: 'efb28f6dda4ad90179c7fde4f568ce7f52f6ec87', class: "input-container" }, hAsync("div", { key: 'b59b030317e837115e7d9f10a2765f883c52eae7', class: "time-inputs" }, [
|
|
23234
25096
|
this.getInputsInOrder()[0],
|
|
23235
25097
|
":",
|
|
23236
25098
|
this.getInputsInOrder()[1],
|
|
23237
25099
|
!this.isHHMMFormat()
|
|
23238
25100
|
? [":", this.getInputsInOrder()[2]]
|
|
23239
25101
|
: null,
|
|
23240
|
-
]), hAsync("div", { key: '
|
|
25102
|
+
]), hAsync("div", { key: '80f2e178df91b5ae6bba0bfeda0600330d877222', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: '295fa279d38b8239e3640a719ae350cc493a40f0', id: "clear-button", "aria-label": "Clear input", class: {
|
|
23241
25103
|
["clear-button"]: true,
|
|
23242
25104
|
["hidden"]: isEmptyString(this.hour) &&
|
|
23243
25105
|
isEmptyString(this.minute) &&
|
|
23244
25106
|
isEmptyString(this.second),
|
|
23245
|
-
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showClockButton && (hAsync("div", { key: '
|
|
25107
|
+
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showClockButton && (hAsync("div", { key: 'ca4ef9f3d4246c6742e020db86dc91872b8ccc3f', class: "show-clock-button-wrapper" }, hAsync("div", { key: 'd5506d97163e73e1f972e680d6a76c886f18c798', class: { divider: showDivider, [size]: true } }), hAsync("ic-button", { key: 'eff1265aa61ef2ace0ce84e7525389f23f7cd57b', id: "clock-button", "aria-label": "Display clock", "aria-haspopup": "dialog", class: "clock-button", disabled: this.disabled, innerHTML: Clock, variant: "icon-tertiary", size: size, onFocus: this.handleClockFocus, onBlur: this.handleClockBlur, theme: this.clockFocused ? "light" : "dark" })))))), hAsync("span", { key: 'd017a4408998c19d9a7d352344125fd09457849c', id: this.selectedTimeInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: '3ac394520da65af634cd087b758441c79a46990a', ref: (el) => (this.selectedTimeInfoEl = el), role: "status" })), (hasCustomValidation || !isEmptyString(this.invalidTimeText)) && (hAsync("ic-input-validation", { key: '4cf54814f4837f9480643691e19af77b0fe24aae', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidTimeText, for: inputId })))));
|
|
23246
25108
|
}
|
|
23247
25109
|
static get delegatesFocus() { return true; }
|
|
23248
25110
|
get el() { return getElement(this); }
|
|
@@ -23503,13 +25365,13 @@ class Toast {
|
|
|
23503
25365
|
}
|
|
23504
25366
|
render() {
|
|
23505
25367
|
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
|
|
23506
|
-
return (hAsync(Host, { key: '
|
|
25368
|
+
return (hAsync(Host, { key: '4e5a088492c0c9fb37f0ca2211d6f458be9e1318', class: { ["ic-toast-hidden"]: !visible }, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: '5692e63d07ebc6ca0beaf89952f6dea339f46b28', class: "container" }, variant && visible && (hAsync("div", { key: 'a1a33233e9436d44ed398a72519d25d37256d355', class: "toast-icon-container" }, hAsync("div", { key: 'eea9ec3d6b4d330d07f0d9aff54b040b14406d41', class: {
|
|
23507
25369
|
["divider"]: true,
|
|
23508
25370
|
[`divider-${variant}`]: true,
|
|
23509
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
|
25371
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '92552b4b1b4d5de15284d8f5382a56ed81a99d89', class: {
|
|
23510
25372
|
["toast-content"]: true,
|
|
23511
25373
|
["no-icon"]: variant === "neutral" && !isSlotUsed$1(this.el, "neutral-icon"),
|
|
23512
|
-
} }, hAsync("div", { key: '
|
|
25374
|
+
} }, hAsync("div", { key: '96b38beec1024b8c1eff1b86e823f1f95c1e574d', class: "toast-text" }, hAsync("ic-typography", { key: 'aacffb589fd0e8180b0b72ad7d1315f4720e67ed', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? hAsync("h5", null, heading) : hAsync("p", null, heading))), message && (hAsync("ic-typography", { key: '6cbbb428be1211f1d730838a45cb17757d8af28a', variant: "body", class: "toast-message" }, visible && hAsync("p", { key: '45191e3180d2b133071d727f515c3b16391ca681' }, message)))), isSlotUsed$1(this.el, "action") && (hAsync("div", { key: '4d3555d3dc5bb374ac8aa3c112e91da2da37c66d', class: "toast-action-container" }, hAsync("slot", { key: '0fcefdc03a5ff6f20e589f74433e51ea25b2e929', 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 })))));
|
|
23513
25375
|
}
|
|
23514
25376
|
get el() { return getElement(this); }
|
|
23515
25377
|
static get watchers() { return {
|
|
@@ -23581,7 +25443,7 @@ class ToastRegion {
|
|
|
23581
25443
|
}
|
|
23582
25444
|
}
|
|
23583
25445
|
render() {
|
|
23584
|
-
return hAsync("slot", { key: '
|
|
25446
|
+
return hAsync("slot", { key: 'fd1b79dd960a3c3caef1d90e1e1184e4e9fa0432' });
|
|
23585
25447
|
}
|
|
23586
25448
|
get el() { return getElement(this); }
|
|
23587
25449
|
static get watchers() { return {
|
|
@@ -23741,7 +25603,7 @@ class ToggleButton {
|
|
|
23741
25603
|
render() {
|
|
23742
25604
|
const { accessibleLabel, checked, disabled, fullWidth, iconPlacement, monochrome, label, loading, outline, size, theme, tooltipPlacement, variant, } = this;
|
|
23743
25605
|
const iconVariant = variant === "icon";
|
|
23744
|
-
return (hAsync(Host, { key: '
|
|
25606
|
+
return (hAsync(Host, { key: '996e234f8829d4506354673ec53eb5a88b243caf', class: {
|
|
23745
25607
|
"ic-toggle-button-checked": checked,
|
|
23746
25608
|
"ic-toggle-button-disabled": disabled,
|
|
23747
25609
|
"ic-toggle-button-icon": iconVariant,
|
|
@@ -23751,7 +25613,7 @@ class ToggleButton {
|
|
|
23751
25613
|
"ic-toggle-button-hide-outline": !outline,
|
|
23752
25614
|
[`ic-toggle-button-${size}`]: true,
|
|
23753
25615
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
23754
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '
|
|
25616
|
+
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '6f1304c7a67b25ab45fcc83e485589db447e8ae8', "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: 'dde5e4570100dd127b39742e14ef6f68b8295b63' }), isSlotUsed$1(this.el, "icon") && (hAsync("slot", { key: '672197af20d7fa1d2f871f6175d2e01e97855a43', name: "icon", slot: `${iconPlacement}-icon` })), isSlotUsed$1(this.el, "badge") && (hAsync("slot", { key: '52e533530bb554faa55b950b992c4459d8f553e7', name: "badge", slot: "badge" })))));
|
|
23755
25617
|
}
|
|
23756
25618
|
static get delegatesFocus() { return true; }
|
|
23757
25619
|
get el() { return getElement(this); }
|
|
@@ -24012,14 +25874,14 @@ class ToggleButtonGroup {
|
|
|
24012
25874
|
}
|
|
24013
25875
|
render() {
|
|
24014
25876
|
const { accessibleLabel, disabled, fullWidth, loading, monochrome, outline, theme, } = this;
|
|
24015
|
-
return (hAsync(Host, { key: '
|
|
25877
|
+
return (hAsync(Host, { key: '0411fab0ff536df861d5d69e987a1bbdc25bd722', role: "group", "aria-label": accessibleLabel, tabindex: 0, class: {
|
|
24016
25878
|
"ic-toggle-button-group-disabled": disabled,
|
|
24017
25879
|
"ic-toggle-button-group-full-width": fullWidth,
|
|
24018
25880
|
"ic-toggle-button-group-loading": loading,
|
|
24019
25881
|
"ic-toggle-button-group-monochrome": monochrome,
|
|
24020
25882
|
"ic-toggle-button-group-hide-outline": !outline,
|
|
24021
25883
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
24022
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
|
25884
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: 'a031963635f3c0513b7b3786b02c86b75ce1d9c1' })));
|
|
24023
25885
|
}
|
|
24024
25886
|
get el() { return getElement(this); }
|
|
24025
25887
|
static get watchers() { return {
|
|
@@ -24146,8 +26008,10 @@ class Tooltip {
|
|
|
24146
26008
|
}
|
|
24147
26009
|
};
|
|
24148
26010
|
this.hide = () => {
|
|
24149
|
-
this.toolTip
|
|
24150
|
-
|
|
26011
|
+
if (this.toolTip !== undefined) {
|
|
26012
|
+
this.toolTip.removeAttribute("data-show");
|
|
26013
|
+
this.persistTooltip = false;
|
|
26014
|
+
}
|
|
24151
26015
|
if (this.popperInstance !== undefined) {
|
|
24152
26016
|
this.popperInstance.destroy();
|
|
24153
26017
|
}
|
|
@@ -24273,10 +26137,10 @@ class Tooltip {
|
|
|
24273
26137
|
}
|
|
24274
26138
|
render() {
|
|
24275
26139
|
const { label, maxLines, silent, theme } = this;
|
|
24276
|
-
return (hAsync(Host, { key: '
|
|
26140
|
+
return (hAsync(Host, { key: '9e66710981ac51e4fae8ff9e6b8d30eb44870c3b', class: {
|
|
24277
26141
|
"ic-tooltip": true,
|
|
24278
26142
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
24279
|
-
} }, hAsync("div", { key: '
|
|
26143
|
+
} }, hAsync("div", { key: 'f0b962933c6c88872a4cd8661348de663a40ecc4', ref: (el) => (this.toolTip = el), role: "tooltip", class: "ic-tooltip-container", "aria-hidden": `${silent}` }, hAsync("ic-typography", { key: '8935a9eaa6be2f05cf71a95b53d9b06e1cf2b080', maxLines: maxLines, variant: "caption" }, label), hAsync("div", { key: 'b433ac73eab9462e32a14710d7f29ee78d515f15', ref: (el) => (this.arrow = el), class: "ic-tooltip-arrow" })), hAsync("slot", { key: 'e9d8e149871c83c45c87d6418b86e7a901e10ae1' })));
|
|
24280
26144
|
}
|
|
24281
26145
|
get el() { return getElement(this); }
|
|
24282
26146
|
static get watchers() { return {
|
|
@@ -24863,7 +26727,7 @@ class TreeItem {
|
|
|
24863
26727
|
rel: this.rel,
|
|
24864
26728
|
target: this.target,
|
|
24865
26729
|
};
|
|
24866
|
-
return (hAsync(Host, { key: '
|
|
26730
|
+
return (hAsync(Host, { key: 'd255f1d49d96b7d81028f57d2d6970f61779178c', class: {
|
|
24867
26731
|
"ic-tree-item-disabled": disabled,
|
|
24868
26732
|
"ic-tree-item-selected": !disabled && selected,
|
|
24869
26733
|
[`ic-tree-item-${size}`]: size !== "medium",
|
|
@@ -24874,7 +26738,7 @@ class TreeItem {
|
|
|
24874
26738
|
}, tabIndex: disabled ? -1 : 0, onClick: this.handleTreeItemClicked, ref: (el) => (this.treeItemElement = el), "aria-disabled": disabled ? "true" : "false", "aria-live": "polite" }, attrs, { onFocus: () => this.handleDisplayTooltip(true), onBlur: () => this.handleDisplayTooltip(false) }), this.isParent && (hAsync("span", { class: {
|
|
24875
26739
|
["arrow-dropdown"]: true,
|
|
24876
26740
|
["tree-item-expanded"]: expanded,
|
|
24877
|
-
}, "aria-hidden": "true", innerHTML: arrowDropdown })), isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { class: "tree-item-label" }, isSlotUsed(this.el, "label") ? hAsync("slot", { name: "label" }) : label))), expanded && (hAsync("div", { key: '
|
|
26741
|
+
}, "aria-hidden": "true", innerHTML: arrowDropdown })), isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { class: "tree-item-label" }, isSlotUsed(this.el, "label") ? hAsync("slot", { name: "label" }) : label))), expanded && (hAsync("div", { key: 'dd643489739fe645df8bb5914695188429948389', "aria-hidden": `${!expanded}` }, hAsync("slot", { key: 'f0053e420c79af89cde77b7c30ee9b08fe0a53d0' })))));
|
|
24878
26742
|
}
|
|
24879
26743
|
get el() { return getElement(this); }
|
|
24880
26744
|
static get watchers() { return {
|
|
@@ -25211,7 +27075,7 @@ class TreeView {
|
|
|
25211
27075
|
if (icon) {
|
|
25212
27076
|
const iconSlot = document.createElement("div");
|
|
25213
27077
|
iconSlot.setAttribute("slot", "icon");
|
|
25214
|
-
iconSlot.innerHTML = icon;
|
|
27078
|
+
iconSlot.innerHTML = sanitizeHTMLIconString$1(icon);
|
|
25215
27079
|
treeItem.appendChild(iconSlot);
|
|
25216
27080
|
}
|
|
25217
27081
|
parentElement.appendChild(treeItem);
|
|
@@ -25231,14 +27095,14 @@ class TreeView {
|
|
|
25231
27095
|
}
|
|
25232
27096
|
render() {
|
|
25233
27097
|
const { heading, isLoaded, size, theme, truncateHeading } = this;
|
|
25234
|
-
return (hAsync(Host, { key: '
|
|
27098
|
+
return (hAsync(Host, { key: '414d715e703585390a75012284474a32406b4c33', "context-id": this.treeViewId, class: {
|
|
25235
27099
|
[`ic-tree-view-${size}`]: size !== "medium",
|
|
25236
27100
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
25237
27101
|
"ic-tree-view-truncate": truncateHeading,
|
|
25238
|
-
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '
|
|
27102
|
+
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '61415865200f228d82d4530f5e10b048743784c0', class: "heading-area-container" }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '6f27b38e2c407bd061d7269dc196abfa0e4a383c', class: "icon-container" }, hAsync("slot", { key: '648111ac2e052d29cbaa1574d1c21fcdd24c3fff', name: "icon" }))), hAsync("ic-typography", { key: '37a578333ada372b77e2647f4f42ecac9897d16a', variant: "subtitle-large", class: {
|
|
25239
27103
|
"tree-view-header": true,
|
|
25240
27104
|
"with-padding": this.truncateHeading && !isLoaded,
|
|
25241
|
-
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '
|
|
27105
|
+
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '3039892aa557a89cbe9caf6c141c6b6254db5077' })));
|
|
25242
27106
|
}
|
|
25243
27107
|
get el() { return getElement(this); }
|
|
25244
27108
|
static get watchers() { return {
|
|
@@ -25436,7 +27300,7 @@ class Typography {
|
|
|
25436
27300
|
render() {
|
|
25437
27301
|
var _a, _b;
|
|
25438
27302
|
const { variant, applyVerticalMargins, maxLines, truncated, expanded, strikethrough, underline, italic, bold, theme, } = this;
|
|
25439
|
-
return (hAsync(Host, { key: '
|
|
27303
|
+
return (hAsync(Host, { key: '305bed1ac7754985aacba1a23e9deff81691a69c', class: {
|
|
25440
27304
|
[`ic-typography-${variant}`]: true,
|
|
25441
27305
|
[`ic-typography-vertical-margins-${variant}`]: !!applyVerticalMargins,
|
|
25442
27306
|
["ic-typography-bold"]: !!bold,
|
|
@@ -25449,7 +27313,7 @@ class Typography {
|
|
|
25449
27313
|
((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===
|
|
25450
27314
|
"IC-TOOLTIP") &&
|
|
25451
27315
|
maxLines &&
|
|
25452
|
-
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: '
|
|
27316
|
+
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: 'd517a2391d01ee3f2847a19148001d33fdc68ad0', class: { "trunc-btn": true, focus: this.truncButtonFocussed }, onFocus: this.truncButtonFocus, onBlur: this.truncButtonBlur, onMouseDown: this.truncButtonFocusFromMouse, onClick: this.toggleExpanded }, expanded ? "See less" : "See more"))));
|
|
25453
27317
|
}
|
|
25454
27318
|
get el() { return getElement(this); }
|
|
25455
27319
|
static get watchers() { return {
|
|
@@ -25547,6 +27411,7 @@ registerComponents([
|
|
|
25547
27411
|
TabContext,
|
|
25548
27412
|
TabGroup,
|
|
25549
27413
|
TabPanel,
|
|
27414
|
+
TableOfContents,
|
|
25550
27415
|
TextField,
|
|
25551
27416
|
Theme,
|
|
25552
27417
|
TimeInput,
|