@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.mjs
CHANGED
|
@@ -3105,48 +3105,48 @@ var IcBrandForegroundEnum$1;
|
|
|
3105
3105
|
IcBrandForegroundEnum["Light"] = "light";
|
|
3106
3106
|
})(IcBrandForegroundEnum$1 || (IcBrandForegroundEnum$1 = {}));
|
|
3107
3107
|
|
|
3108
|
-
var errorIcon = `<svg
|
|
3109
|
-
<title
|
|
3110
|
-
<g
|
|
3111
|
-
<path
|
|
3108
|
+
var errorIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
|
3109
|
+
<title>Error</title>
|
|
3110
|
+
<g>
|
|
3111
|
+
<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" />
|
|
3112
3112
|
</g>
|
|
3113
3113
|
</svg>
|
|
3114
3114
|
`;
|
|
3115
3115
|
|
|
3116
|
-
var infoIcon = `<svg
|
|
3117
|
-
<title
|
|
3118
|
-
<g
|
|
3119
|
-
<path
|
|
3116
|
+
var infoIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
|
3117
|
+
<title>For your information</title>
|
|
3118
|
+
<g>
|
|
3119
|
+
<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" />
|
|
3120
3120
|
</g>
|
|
3121
3121
|
</svg>
|
|
3122
3122
|
`;
|
|
3123
3123
|
|
|
3124
|
-
var neutralIcon = `<svg
|
|
3125
|
-
<title
|
|
3126
|
-
<g
|
|
3127
|
-
<path
|
|
3124
|
+
var neutralIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
|
3125
|
+
<title>Neutral</title>
|
|
3126
|
+
<g>
|
|
3127
|
+
<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" />
|
|
3128
3128
|
</g>
|
|
3129
3129
|
</svg>
|
|
3130
3130
|
`;
|
|
3131
3131
|
|
|
3132
|
-
var successIcon = `<svg
|
|
3133
|
-
<title
|
|
3134
|
-
<g
|
|
3135
|
-
<path
|
|
3132
|
+
var successIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
|
3133
|
+
<title>Success</title>
|
|
3134
|
+
<g>
|
|
3135
|
+
<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" />
|
|
3136
3136
|
</g>
|
|
3137
3137
|
</svg>
|
|
3138
3138
|
`;
|
|
3139
3139
|
|
|
3140
|
-
var warningIcon$1 = `<svg
|
|
3141
|
-
<title
|
|
3142
|
-
<g
|
|
3143
|
-
<path
|
|
3140
|
+
var warningIcon$1 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
|
3141
|
+
<title>Warning</title>
|
|
3142
|
+
<g>
|
|
3143
|
+
<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" />
|
|
3144
3144
|
</g>
|
|
3145
3145
|
</svg>
|
|
3146
3146
|
`;
|
|
3147
3147
|
|
|
3148
3148
|
var aiIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3149
|
-
<title
|
|
3149
|
+
<title>Artificial Intelligence (AI)</title>
|
|
3150
3150
|
<g clip-path="url(#clip0_43876_12457)">
|
|
3151
3151
|
<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" />
|
|
3152
3152
|
</g>
|
|
@@ -3277,6 +3277,7 @@ const IGNORED_KEYBOARD_CHARACTERS = [
|
|
|
3277
3277
|
"Shift",
|
|
3278
3278
|
"Tab",
|
|
3279
3279
|
];
|
|
3280
|
+
const IC_CUSTOM_ALLOWED_COMPONENTS$1 = [];
|
|
3280
3281
|
|
|
3281
3282
|
const DARK_MODE_THRESHOLD = 133.3505;
|
|
3282
3283
|
const ANYWHERE_SEARCH_POSITION = "anywhere";
|
|
@@ -4296,7 +4297,7 @@ class Alert {
|
|
|
4296
4297
|
}, ref: (el) => (this.messageEl = el) }, heading && (hAsync("ic-typography", { class: {
|
|
4297
4298
|
"alert-title": true,
|
|
4298
4299
|
"alert-title-above": titleAbove || alertTitleWrap,
|
|
4299
|
-
}, 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" })))))));
|
|
4300
|
+
}, 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" })))))));
|
|
4300
4301
|
}
|
|
4301
4302
|
get el() { return getElement(this); }
|
|
4302
4303
|
static get watchers() { return {
|
|
@@ -5298,6 +5299,10 @@ class Button {
|
|
|
5298
5299
|
watchDisabledHandler() {
|
|
5299
5300
|
removeDisabledFalse$1(this.disabled, this.el);
|
|
5300
5301
|
}
|
|
5302
|
+
watchVariantHandler(newVariant) {
|
|
5303
|
+
if (newVariant === "icon")
|
|
5304
|
+
this.variant = "icon-tertiary";
|
|
5305
|
+
}
|
|
5301
5306
|
disconnectedCallback() {
|
|
5302
5307
|
var _a, _b;
|
|
5303
5308
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
@@ -5330,6 +5335,9 @@ class Button {
|
|
|
5330
5335
|
}
|
|
5331
5336
|
}
|
|
5332
5337
|
}
|
|
5338
|
+
if (this.variant === "icon") {
|
|
5339
|
+
this.variant = "icon-tertiary";
|
|
5340
|
+
}
|
|
5333
5341
|
}
|
|
5334
5342
|
componentDidLoad() {
|
|
5335
5343
|
this.updateTheme();
|
|
@@ -5428,11 +5436,7 @@ class Button {
|
|
|
5428
5436
|
const buttonId = hasTooltip
|
|
5429
5437
|
? `ic-button-with-tooltip-${id || buttonIdNum}`
|
|
5430
5438
|
: undefined;
|
|
5431
|
-
const describedby = !hasTooltip
|
|
5432
|
-
? describedById
|
|
5433
|
-
: variant !== "icon" || !ariaLabel
|
|
5434
|
-
? `ic-tooltip-${buttonId}`
|
|
5435
|
-
: undefined;
|
|
5439
|
+
const describedby = !hasTooltip ? describedById : `ic-tooltip-${buttonId}`;
|
|
5436
5440
|
const hasLeftIcon = !!this.getSlottedIcon("left");
|
|
5437
5441
|
const hasRightIcon = !!this.getSlottedIcon("right");
|
|
5438
5442
|
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 ||
|
|
@@ -5442,7 +5446,7 @@ class Button {
|
|
|
5442
5446
|
variant !== "destructive" && (hAsync("span", { class: dropdownExpanded
|
|
5443
5447
|
? "dropdown-expanded"
|
|
5444
5448
|
: "arrow-dropdown", innerHTML: arrowDropdown$1 }))))));
|
|
5445
|
-
return (hAsync(Host, { key: '
|
|
5449
|
+
return (hAsync(Host, { key: '1f58739b62e290b1b86fa82c9153e04711196367', class: {
|
|
5446
5450
|
"ic-button-disabled": disabled && !loading,
|
|
5447
5451
|
"ic-button-full-width": fullWidth,
|
|
5448
5452
|
"ic-button-loading": loading,
|
|
@@ -5458,12 +5462,13 @@ class Button {
|
|
|
5458
5462
|
monochrome,
|
|
5459
5463
|
"top-icon": isSlotUsed$1(this.el, "top-icon"),
|
|
5460
5464
|
"with-badge": isSlotUsed$1(this.el, "badge"),
|
|
5461
|
-
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: '
|
|
5465
|
+
}, 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))));
|
|
5462
5466
|
}
|
|
5463
5467
|
static get delegatesFocus() { return true; }
|
|
5464
5468
|
get el() { return getElement(this); }
|
|
5465
5469
|
static get watchers() { return {
|
|
5466
|
-
"disabled": ["watchDisabledHandler"]
|
|
5470
|
+
"disabled": ["watchDisabledHandler"],
|
|
5471
|
+
"variant": ["watchVariantHandler"]
|
|
5467
5472
|
}; }
|
|
5468
5473
|
static get style() { return IcButtonStyle0; }
|
|
5469
5474
|
static get cmpMeta() { return {
|
|
@@ -5502,7 +5507,7 @@ class Button {
|
|
|
5502
5507
|
"tooltipPlacement": [1, "tooltip-placement"],
|
|
5503
5508
|
"transparentBackground": [4, "transparent-background"],
|
|
5504
5509
|
"type": [1],
|
|
5505
|
-
"variant": [
|
|
5510
|
+
"variant": [1025],
|
|
5506
5511
|
"ariaLabel": [32],
|
|
5507
5512
|
"describedByContent": [32],
|
|
5508
5513
|
"title": [32],
|
|
@@ -6168,7 +6173,7 @@ class CardVertical {
|
|
|
6168
6173
|
}; }
|
|
6169
6174
|
}
|
|
6170
6175
|
|
|
6171
|
-
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}";
|
|
6176
|
+
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}";
|
|
6172
6177
|
var IcCheckboxStyle0 = icCheckboxCss;
|
|
6173
6178
|
|
|
6174
6179
|
/**
|
|
@@ -6287,9 +6292,9 @@ class Checkbox {
|
|
|
6287
6292
|
checkbox: true,
|
|
6288
6293
|
checked,
|
|
6289
6294
|
indeterminate: displayIndeterminate,
|
|
6290
|
-
}, 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: '
|
|
6295
|
+
}, 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: {
|
|
6291
6296
|
"additional-field-wrapper": !isDynamicAdditionalField,
|
|
6292
|
-
} }, hAsync("slot", { key: '
|
|
6297
|
+
} }, hAsync("slot", { key: '905f210aaf41f4ba5d7c24e92bd19dbb17b81355', name: "additional-field" })))))));
|
|
6293
6298
|
}
|
|
6294
6299
|
static get delegatesFocus() { return true; }
|
|
6295
6300
|
get el() { return getElement(this); }
|
|
@@ -6326,7 +6331,7 @@ class Checkbox {
|
|
|
6326
6331
|
}; }
|
|
6327
6332
|
}
|
|
6328
6333
|
|
|
6329
|
-
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}";
|
|
6334
|
+
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}";
|
|
6330
6335
|
var IcCheckboxGroupStyle0 = icCheckboxGroupCss;
|
|
6331
6336
|
|
|
6332
6337
|
const CHECKBOX_SELECTOR = "ic-checkbox";
|
|
@@ -6424,11 +6429,14 @@ class CheckboxGroup {
|
|
|
6424
6429
|
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationStatus, validationText, } = this;
|
|
6425
6430
|
const describedBy = getInputDescribedByText$1(this.el, name, helperText !== "", validationStatus !== "");
|
|
6426
6431
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
|
6427
|
-
|
|
6432
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
6433
|
+
return (hAsync(Host, { key: '6d5ed4db589400cd64aeed3bccd46087858d2902', class: {
|
|
6428
6434
|
"ic-checkbox-group-disabled": !!disabled,
|
|
6429
6435
|
[`ic-checkbox-group-${size}`]: true,
|
|
6430
6436
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6431
|
-
} }, renderSRText && (hAsync("span", { key: '
|
|
6437
|
+
} }, 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: {
|
|
6438
|
+
"show-validation": showValidation,
|
|
6439
|
+
}, for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
|
6432
6440
|
}
|
|
6433
6441
|
get el() { return getElement(this); }
|
|
6434
6442
|
static get watchers() { return {
|
|
@@ -6464,7 +6472,7 @@ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org
|
|
|
6464
6472
|
</svg>
|
|
6465
6473
|
`;
|
|
6466
6474
|
|
|
6467
|
-
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}}";
|
|
6475
|
+
const icChipCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;max-width:100%;vertical-align:middle}:host(.ic-chip-dismissed){display:none}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding:calc(var(--ic-space-xxs) - var(--ic-space-1px)) var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;position:relative;background-color:var(--chip-bg-color);border:var(--ic-border-width) solid transparent;justify-content:space-between}@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}}";
|
|
6468
6476
|
var IcChipStyle0 = icChipCss;
|
|
6469
6477
|
|
|
6470
6478
|
/**
|
|
@@ -6558,10 +6566,11 @@ class Chip {
|
|
|
6558
6566
|
render() {
|
|
6559
6567
|
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
|
6560
6568
|
const ariaLabel = `${label} chip`;
|
|
6561
|
-
return (hAsync(Host, { key: '
|
|
6569
|
+
return (hAsync(Host, { key: 'c7b88d4999b6de5004edc4bd27e185b9232fdaf9', class: {
|
|
6570
|
+
"ic-chip-dismissed": !visible,
|
|
6562
6571
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6563
6572
|
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
|
6564
|
-
} }, visible && (hAsync("div", { key: '
|
|
6573
|
+
} }, visible && (hAsync("div", { key: 'dbbb2bd77adea5e65d61e11b6c4b2b06fadbb9b1', class: {
|
|
6565
6574
|
chip: true,
|
|
6566
6575
|
[`${variant}`]: true,
|
|
6567
6576
|
[`${size}`]: true,
|
|
@@ -6569,7 +6578,7 @@ class Chip {
|
|
|
6569
6578
|
dismissible,
|
|
6570
6579
|
hovered,
|
|
6571
6580
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
|
6572
|
-
} }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: '
|
|
6581
|
+
} }, 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}` : ""))));
|
|
6573
6582
|
}
|
|
6574
6583
|
static get delegatesFocus() { return true; }
|
|
6575
6584
|
get el() { return getElement(this); }
|
|
@@ -6697,10 +6706,10 @@ class DataList {
|
|
|
6697
6706
|
if (size === "small") {
|
|
6698
6707
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
|
6699
6708
|
}
|
|
6700
|
-
return (hAsync(Host, { key: '
|
|
6709
|
+
return (hAsync(Host, { key: 'a050ac5764ea9496f33d53abdd27f1a193185cbb', class: {
|
|
6701
6710
|
"ic-data-list-small": size === "small",
|
|
6702
6711
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6703
|
-
} }, hAsync("div", { key: '
|
|
6712
|
+
} }, 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' }))));
|
|
6704
6713
|
}
|
|
6705
6714
|
get el() { return getElement(this); }
|
|
6706
6715
|
static get style() { return IcDataListStyle0; }
|
|
@@ -6790,12 +6799,12 @@ class DataRow {
|
|
|
6790
6799
|
}
|
|
6791
6800
|
render() {
|
|
6792
6801
|
const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
|
|
6793
|
-
return (hAsync(Host, { key: '
|
|
6802
|
+
return (hAsync(Host, { key: '8a70c9ceda7aebc616eb335f08e626952c87ddf3', class: {
|
|
6794
6803
|
["ic-data-row-small"]: size === "small",
|
|
6795
6804
|
["breakpoint-medium"]: listSize === "m",
|
|
6796
6805
|
["breakpoint-xs"]: listSize === "xs",
|
|
6797
6806
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6798
|
-
}, role: "listitem" }, hAsync("div", { key: '
|
|
6807
|
+
}, 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" })));
|
|
6799
6808
|
}
|
|
6800
6809
|
get el() { return getElement(this); }
|
|
6801
6810
|
static get style() { return IcDataRowStyle0; }
|
|
@@ -6828,6 +6837,1380 @@ var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24
|
|
|
6828
6837
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
|
6829
6838
|
</svg>`;
|
|
6830
6839
|
|
|
6840
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6841
|
+
|
|
6842
|
+
var purify = {exports: {}};
|
|
6843
|
+
|
|
6844
|
+
/*! @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 */
|
|
6845
|
+
|
|
6846
|
+
(function (module, exports) {
|
|
6847
|
+
(function (global, factory) {
|
|
6848
|
+
module.exports = factory() ;
|
|
6849
|
+
})(commonjsGlobal, (function () {
|
|
6850
|
+
const {
|
|
6851
|
+
entries,
|
|
6852
|
+
setPrototypeOf,
|
|
6853
|
+
isFrozen,
|
|
6854
|
+
getPrototypeOf,
|
|
6855
|
+
getOwnPropertyDescriptor
|
|
6856
|
+
} = Object;
|
|
6857
|
+
let {
|
|
6858
|
+
freeze,
|
|
6859
|
+
seal,
|
|
6860
|
+
create
|
|
6861
|
+
} = Object; // eslint-disable-line import/no-mutable-exports
|
|
6862
|
+
let {
|
|
6863
|
+
apply,
|
|
6864
|
+
construct
|
|
6865
|
+
} = typeof Reflect !== 'undefined' && Reflect;
|
|
6866
|
+
if (!freeze) {
|
|
6867
|
+
freeze = function freeze(x) {
|
|
6868
|
+
return x;
|
|
6869
|
+
};
|
|
6870
|
+
}
|
|
6871
|
+
if (!seal) {
|
|
6872
|
+
seal = function seal(x) {
|
|
6873
|
+
return x;
|
|
6874
|
+
};
|
|
6875
|
+
}
|
|
6876
|
+
if (!apply) {
|
|
6877
|
+
apply = function apply(fun, thisValue, args) {
|
|
6878
|
+
return fun.apply(thisValue, args);
|
|
6879
|
+
};
|
|
6880
|
+
}
|
|
6881
|
+
if (!construct) {
|
|
6882
|
+
construct = function construct(Func, args) {
|
|
6883
|
+
return new Func(...args);
|
|
6884
|
+
};
|
|
6885
|
+
}
|
|
6886
|
+
const arrayForEach = unapply(Array.prototype.forEach);
|
|
6887
|
+
const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
|
6888
|
+
const arrayPop = unapply(Array.prototype.pop);
|
|
6889
|
+
const arrayPush = unapply(Array.prototype.push);
|
|
6890
|
+
const arraySplice = unapply(Array.prototype.splice);
|
|
6891
|
+
const stringToLowerCase = unapply(String.prototype.toLowerCase);
|
|
6892
|
+
const stringToString = unapply(String.prototype.toString);
|
|
6893
|
+
const stringMatch = unapply(String.prototype.match);
|
|
6894
|
+
const stringReplace = unapply(String.prototype.replace);
|
|
6895
|
+
const stringIndexOf = unapply(String.prototype.indexOf);
|
|
6896
|
+
const stringTrim = unapply(String.prototype.trim);
|
|
6897
|
+
const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
|
|
6898
|
+
const regExpTest = unapply(RegExp.prototype.test);
|
|
6899
|
+
const typeErrorCreate = unconstruct(TypeError);
|
|
6900
|
+
/**
|
|
6901
|
+
* Creates a new function that calls the given function with a specified thisArg and arguments.
|
|
6902
|
+
*
|
|
6903
|
+
* @param func - The function to be wrapped and called.
|
|
6904
|
+
* @returns A new function that calls the given function with a specified thisArg and arguments.
|
|
6905
|
+
*/
|
|
6906
|
+
function unapply(func) {
|
|
6907
|
+
return function (thisArg) {
|
|
6908
|
+
if (thisArg instanceof RegExp) {
|
|
6909
|
+
thisArg.lastIndex = 0;
|
|
6910
|
+
}
|
|
6911
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
6912
|
+
args[_key - 1] = arguments[_key];
|
|
6913
|
+
}
|
|
6914
|
+
return apply(func, thisArg, args);
|
|
6915
|
+
};
|
|
6916
|
+
}
|
|
6917
|
+
/**
|
|
6918
|
+
* Creates a new function that constructs an instance of the given constructor function with the provided arguments.
|
|
6919
|
+
*
|
|
6920
|
+
* @param func - The constructor function to be wrapped and called.
|
|
6921
|
+
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
|
6922
|
+
*/
|
|
6923
|
+
function unconstruct(func) {
|
|
6924
|
+
return function () {
|
|
6925
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
6926
|
+
args[_key2] = arguments[_key2];
|
|
6927
|
+
}
|
|
6928
|
+
return construct(func, args);
|
|
6929
|
+
};
|
|
6930
|
+
}
|
|
6931
|
+
/**
|
|
6932
|
+
* Add properties to a lookup table
|
|
6933
|
+
*
|
|
6934
|
+
* @param set - The set to which elements will be added.
|
|
6935
|
+
* @param array - The array containing elements to be added to the set.
|
|
6936
|
+
* @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
|
|
6937
|
+
* @returns The modified set with added elements.
|
|
6938
|
+
*/
|
|
6939
|
+
function addToSet(set, array) {
|
|
6940
|
+
let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
|
|
6941
|
+
if (setPrototypeOf) {
|
|
6942
|
+
// Make 'in' and truthy checks like Boolean(set.constructor)
|
|
6943
|
+
// independent of any properties defined on Object.prototype.
|
|
6944
|
+
// Prevent prototype setters from intercepting set as a this value.
|
|
6945
|
+
setPrototypeOf(set, null);
|
|
6946
|
+
}
|
|
6947
|
+
let l = array.length;
|
|
6948
|
+
while (l--) {
|
|
6949
|
+
let element = array[l];
|
|
6950
|
+
if (typeof element === 'string') {
|
|
6951
|
+
const lcElement = transformCaseFunc(element);
|
|
6952
|
+
if (lcElement !== element) {
|
|
6953
|
+
// Config presets (e.g. tags.js, attrs.js) are immutable.
|
|
6954
|
+
if (!isFrozen(array)) {
|
|
6955
|
+
array[l] = lcElement;
|
|
6956
|
+
}
|
|
6957
|
+
element = lcElement;
|
|
6958
|
+
}
|
|
6959
|
+
}
|
|
6960
|
+
set[element] = true;
|
|
6961
|
+
}
|
|
6962
|
+
return set;
|
|
6963
|
+
}
|
|
6964
|
+
/**
|
|
6965
|
+
* Clean up an array to harden against CSPP
|
|
6966
|
+
*
|
|
6967
|
+
* @param array - The array to be cleaned.
|
|
6968
|
+
* @returns The cleaned version of the array
|
|
6969
|
+
*/
|
|
6970
|
+
function cleanArray(array) {
|
|
6971
|
+
for (let index = 0; index < array.length; index++) {
|
|
6972
|
+
const isPropertyExist = objectHasOwnProperty(array, index);
|
|
6973
|
+
if (!isPropertyExist) {
|
|
6974
|
+
array[index] = null;
|
|
6975
|
+
}
|
|
6976
|
+
}
|
|
6977
|
+
return array;
|
|
6978
|
+
}
|
|
6979
|
+
/**
|
|
6980
|
+
* Shallow clone an object
|
|
6981
|
+
*
|
|
6982
|
+
* @param object - The object to be cloned.
|
|
6983
|
+
* @returns A new object that copies the original.
|
|
6984
|
+
*/
|
|
6985
|
+
function clone(object) {
|
|
6986
|
+
const newObject = create(null);
|
|
6987
|
+
for (const [property, value] of entries(object)) {
|
|
6988
|
+
const isPropertyExist = objectHasOwnProperty(object, property);
|
|
6989
|
+
if (isPropertyExist) {
|
|
6990
|
+
if (Array.isArray(value)) {
|
|
6991
|
+
newObject[property] = cleanArray(value);
|
|
6992
|
+
} else if (value && typeof value === 'object' && value.constructor === Object) {
|
|
6993
|
+
newObject[property] = clone(value);
|
|
6994
|
+
} else {
|
|
6995
|
+
newObject[property] = value;
|
|
6996
|
+
}
|
|
6997
|
+
}
|
|
6998
|
+
}
|
|
6999
|
+
return newObject;
|
|
7000
|
+
}
|
|
7001
|
+
/**
|
|
7002
|
+
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
|
7003
|
+
*
|
|
7004
|
+
* @param object - The object to look up the getter function in its prototype chain.
|
|
7005
|
+
* @param prop - The property name for which to find the getter function.
|
|
7006
|
+
* @returns The getter function found in the prototype chain or a fallback function.
|
|
7007
|
+
*/
|
|
7008
|
+
function lookupGetter(object, prop) {
|
|
7009
|
+
while (object !== null) {
|
|
7010
|
+
const desc = getOwnPropertyDescriptor(object, prop);
|
|
7011
|
+
if (desc) {
|
|
7012
|
+
if (desc.get) {
|
|
7013
|
+
return unapply(desc.get);
|
|
7014
|
+
}
|
|
7015
|
+
if (typeof desc.value === 'function') {
|
|
7016
|
+
return unapply(desc.value);
|
|
7017
|
+
}
|
|
7018
|
+
}
|
|
7019
|
+
object = getPrototypeOf(object);
|
|
7020
|
+
}
|
|
7021
|
+
function fallbackValue() {
|
|
7022
|
+
return null;
|
|
7023
|
+
}
|
|
7024
|
+
return fallbackValue;
|
|
7025
|
+
}
|
|
7026
|
+
|
|
7027
|
+
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']);
|
|
7028
|
+
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']);
|
|
7029
|
+
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']);
|
|
7030
|
+
// List of SVG elements that are disallowed by default.
|
|
7031
|
+
// We still need to know them so that we can do namespace
|
|
7032
|
+
// checks properly in case one wants to add them to
|
|
7033
|
+
// allow-list.
|
|
7034
|
+
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']);
|
|
7035
|
+
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']);
|
|
7036
|
+
// Similarly to SVG, we want to know all MathML elements,
|
|
7037
|
+
// even those that we disallow by default.
|
|
7038
|
+
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
|
7039
|
+
const text = freeze(['#text']);
|
|
7040
|
+
|
|
7041
|
+
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']);
|
|
7042
|
+
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']);
|
|
7043
|
+
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']);
|
|
7044
|
+
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
7045
|
+
|
|
7046
|
+
// eslint-disable-next-line unicorn/better-regex
|
|
7047
|
+
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode
|
|
7048
|
+
const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
|
|
7049
|
+
const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm); // eslint-disable-line unicorn/better-regex
|
|
7050
|
+
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
|
|
7051
|
+
const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
|
|
7052
|
+
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
|
|
7053
|
+
);
|
|
7054
|
+
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
7055
|
+
const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
|
|
7056
|
+
);
|
|
7057
|
+
const DOCTYPE_NAME = seal(/^html$/i);
|
|
7058
|
+
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
7059
|
+
|
|
7060
|
+
var EXPRESSIONS = /*#__PURE__*/Object.freeze({
|
|
7061
|
+
__proto__: null,
|
|
7062
|
+
ARIA_ATTR: ARIA_ATTR,
|
|
7063
|
+
ATTR_WHITESPACE: ATTR_WHITESPACE,
|
|
7064
|
+
CUSTOM_ELEMENT: CUSTOM_ELEMENT,
|
|
7065
|
+
DATA_ATTR: DATA_ATTR,
|
|
7066
|
+
DOCTYPE_NAME: DOCTYPE_NAME,
|
|
7067
|
+
ERB_EXPR: ERB_EXPR,
|
|
7068
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI,
|
|
7069
|
+
IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
|
|
7070
|
+
MUSTACHE_EXPR: MUSTACHE_EXPR,
|
|
7071
|
+
TMPLIT_EXPR: TMPLIT_EXPR
|
|
7072
|
+
});
|
|
7073
|
+
|
|
7074
|
+
/* eslint-disable @typescript-eslint/indent */
|
|
7075
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
|
7076
|
+
const NODE_TYPE = {
|
|
7077
|
+
element: 1,
|
|
7078
|
+
attribute: 2,
|
|
7079
|
+
text: 3,
|
|
7080
|
+
cdataSection: 4,
|
|
7081
|
+
entityReference: 5,
|
|
7082
|
+
// Deprecated
|
|
7083
|
+
entityNode: 6,
|
|
7084
|
+
// Deprecated
|
|
7085
|
+
progressingInstruction: 7,
|
|
7086
|
+
comment: 8,
|
|
7087
|
+
document: 9,
|
|
7088
|
+
documentType: 10,
|
|
7089
|
+
documentFragment: 11,
|
|
7090
|
+
notation: 12 // Deprecated
|
|
7091
|
+
};
|
|
7092
|
+
const getGlobal = function getGlobal() {
|
|
7093
|
+
return typeof window === 'undefined' ? null : window;
|
|
7094
|
+
};
|
|
7095
|
+
/**
|
|
7096
|
+
* Creates a no-op policy for internal use only.
|
|
7097
|
+
* Don't export this function outside this module!
|
|
7098
|
+
* @param trustedTypes The policy factory.
|
|
7099
|
+
* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
|
|
7100
|
+
* @return The policy created (or null, if Trusted Types
|
|
7101
|
+
* are not supported or creating the policy failed).
|
|
7102
|
+
*/
|
|
7103
|
+
const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
|
|
7104
|
+
if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
|
|
7105
|
+
return null;
|
|
7106
|
+
}
|
|
7107
|
+
// Allow the callers to control the unique policy name
|
|
7108
|
+
// by adding a data-tt-policy-suffix to the script element with the DOMPurify.
|
|
7109
|
+
// Policy creation with duplicate names throws in Trusted Types.
|
|
7110
|
+
let suffix = null;
|
|
7111
|
+
const ATTR_NAME = 'data-tt-policy-suffix';
|
|
7112
|
+
if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
|
|
7113
|
+
suffix = purifyHostElement.getAttribute(ATTR_NAME);
|
|
7114
|
+
}
|
|
7115
|
+
const policyName = 'dompurify' + (suffix ? '#' + suffix : '');
|
|
7116
|
+
try {
|
|
7117
|
+
return trustedTypes.createPolicy(policyName, {
|
|
7118
|
+
createHTML(html) {
|
|
7119
|
+
return html;
|
|
7120
|
+
},
|
|
7121
|
+
createScriptURL(scriptUrl) {
|
|
7122
|
+
return scriptUrl;
|
|
7123
|
+
}
|
|
7124
|
+
});
|
|
7125
|
+
} catch (_) {
|
|
7126
|
+
// Policy creation failed (most likely another DOMPurify script has
|
|
7127
|
+
// already run). Skip creating the policy, as this will only cause errors
|
|
7128
|
+
// if TT are enforced.
|
|
7129
|
+
console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
|
|
7130
|
+
return null;
|
|
7131
|
+
}
|
|
7132
|
+
};
|
|
7133
|
+
const _createHooksMap = function _createHooksMap() {
|
|
7134
|
+
return {
|
|
7135
|
+
afterSanitizeAttributes: [],
|
|
7136
|
+
afterSanitizeElements: [],
|
|
7137
|
+
afterSanitizeShadowDOM: [],
|
|
7138
|
+
beforeSanitizeAttributes: [],
|
|
7139
|
+
beforeSanitizeElements: [],
|
|
7140
|
+
beforeSanitizeShadowDOM: [],
|
|
7141
|
+
uponSanitizeAttribute: [],
|
|
7142
|
+
uponSanitizeElement: [],
|
|
7143
|
+
uponSanitizeShadowNode: []
|
|
7144
|
+
};
|
|
7145
|
+
};
|
|
7146
|
+
function createDOMPurify() {
|
|
7147
|
+
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
7148
|
+
const DOMPurify = root => createDOMPurify(root);
|
|
7149
|
+
DOMPurify.version = '3.2.6';
|
|
7150
|
+
DOMPurify.removed = [];
|
|
7151
|
+
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
7152
|
+
// Not running in a browser, provide a factory function
|
|
7153
|
+
// so that you can pass your own Window
|
|
7154
|
+
DOMPurify.isSupported = false;
|
|
7155
|
+
return DOMPurify;
|
|
7156
|
+
}
|
|
7157
|
+
let {
|
|
7158
|
+
document
|
|
7159
|
+
} = window;
|
|
7160
|
+
const originalDocument = document;
|
|
7161
|
+
const currentScript = originalDocument.currentScript;
|
|
7162
|
+
const {
|
|
7163
|
+
DocumentFragment,
|
|
7164
|
+
HTMLTemplateElement,
|
|
7165
|
+
Node,
|
|
7166
|
+
Element,
|
|
7167
|
+
NodeFilter,
|
|
7168
|
+
NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,
|
|
7169
|
+
HTMLFormElement,
|
|
7170
|
+
DOMParser,
|
|
7171
|
+
trustedTypes
|
|
7172
|
+
} = window;
|
|
7173
|
+
const ElementPrototype = Element.prototype;
|
|
7174
|
+
const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
|
|
7175
|
+
const remove = lookupGetter(ElementPrototype, 'remove');
|
|
7176
|
+
const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
|
|
7177
|
+
const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
|
|
7178
|
+
const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
|
|
7179
|
+
// As per issue #47, the web-components registry is inherited by a
|
|
7180
|
+
// new document created via createHTMLDocument. As per the spec
|
|
7181
|
+
// (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
|
|
7182
|
+
// a new empty registry is used when creating a template contents owner
|
|
7183
|
+
// document, so we use that as our parent document to ensure nothing
|
|
7184
|
+
// is inherited.
|
|
7185
|
+
if (typeof HTMLTemplateElement === 'function') {
|
|
7186
|
+
const template = document.createElement('template');
|
|
7187
|
+
if (template.content && template.content.ownerDocument) {
|
|
7188
|
+
document = template.content.ownerDocument;
|
|
7189
|
+
}
|
|
7190
|
+
}
|
|
7191
|
+
let trustedTypesPolicy;
|
|
7192
|
+
let emptyHTML = '';
|
|
7193
|
+
const {
|
|
7194
|
+
implementation,
|
|
7195
|
+
createNodeIterator,
|
|
7196
|
+
createDocumentFragment,
|
|
7197
|
+
getElementsByTagName
|
|
7198
|
+
} = document;
|
|
7199
|
+
const {
|
|
7200
|
+
importNode
|
|
7201
|
+
} = originalDocument;
|
|
7202
|
+
let hooks = _createHooksMap();
|
|
7203
|
+
/**
|
|
7204
|
+
* Expose whether this browser supports running the full DOMPurify.
|
|
7205
|
+
*/
|
|
7206
|
+
DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;
|
|
7207
|
+
const {
|
|
7208
|
+
MUSTACHE_EXPR,
|
|
7209
|
+
ERB_EXPR,
|
|
7210
|
+
TMPLIT_EXPR,
|
|
7211
|
+
DATA_ATTR,
|
|
7212
|
+
ARIA_ATTR,
|
|
7213
|
+
IS_SCRIPT_OR_DATA,
|
|
7214
|
+
ATTR_WHITESPACE,
|
|
7215
|
+
CUSTOM_ELEMENT
|
|
7216
|
+
} = EXPRESSIONS;
|
|
7217
|
+
let {
|
|
7218
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI$1
|
|
7219
|
+
} = EXPRESSIONS;
|
|
7220
|
+
/**
|
|
7221
|
+
* We consider the elements and attributes below to be safe. Ideally
|
|
7222
|
+
* don't add any new ones but feel free to remove unwanted ones.
|
|
7223
|
+
*/
|
|
7224
|
+
/* allowed element names */
|
|
7225
|
+
let ALLOWED_TAGS = null;
|
|
7226
|
+
const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
|
|
7227
|
+
/* Allowed attribute names */
|
|
7228
|
+
let ALLOWED_ATTR = null;
|
|
7229
|
+
const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
|
|
7230
|
+
/*
|
|
7231
|
+
* Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
|
|
7232
|
+
* @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
|
|
7233
|
+
* @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
|
|
7234
|
+
* @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
|
|
7235
|
+
*/
|
|
7236
|
+
let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
7237
|
+
tagNameCheck: {
|
|
7238
|
+
writable: true,
|
|
7239
|
+
configurable: false,
|
|
7240
|
+
enumerable: true,
|
|
7241
|
+
value: null
|
|
7242
|
+
},
|
|
7243
|
+
attributeNameCheck: {
|
|
7244
|
+
writable: true,
|
|
7245
|
+
configurable: false,
|
|
7246
|
+
enumerable: true,
|
|
7247
|
+
value: null
|
|
7248
|
+
},
|
|
7249
|
+
allowCustomizedBuiltInElements: {
|
|
7250
|
+
writable: true,
|
|
7251
|
+
configurable: false,
|
|
7252
|
+
enumerable: true,
|
|
7253
|
+
value: false
|
|
7254
|
+
}
|
|
7255
|
+
}));
|
|
7256
|
+
/* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
|
|
7257
|
+
let FORBID_TAGS = null;
|
|
7258
|
+
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
|
7259
|
+
let FORBID_ATTR = null;
|
|
7260
|
+
/* Decide if ARIA attributes are okay */
|
|
7261
|
+
let ALLOW_ARIA_ATTR = true;
|
|
7262
|
+
/* Decide if custom data attributes are okay */
|
|
7263
|
+
let ALLOW_DATA_ATTR = true;
|
|
7264
|
+
/* Decide if unknown protocols are okay */
|
|
7265
|
+
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
|
7266
|
+
/* Decide if self-closing tags in attributes are allowed.
|
|
7267
|
+
* Usually removed due to a mXSS issue in jQuery 3.0 */
|
|
7268
|
+
let ALLOW_SELF_CLOSE_IN_ATTR = true;
|
|
7269
|
+
/* Output should be safe for common template engines.
|
|
7270
|
+
* This means, DOMPurify removes data attributes, mustaches and ERB
|
|
7271
|
+
*/
|
|
7272
|
+
let SAFE_FOR_TEMPLATES = false;
|
|
7273
|
+
/* Output should be safe even for XML used within HTML and alike.
|
|
7274
|
+
* This means, DOMPurify removes comments when containing risky content.
|
|
7275
|
+
*/
|
|
7276
|
+
let SAFE_FOR_XML = true;
|
|
7277
|
+
/* Decide if document with <html>... should be returned */
|
|
7278
|
+
let WHOLE_DOCUMENT = false;
|
|
7279
|
+
/* Track whether config is already set on this instance of DOMPurify. */
|
|
7280
|
+
let SET_CONFIG = false;
|
|
7281
|
+
/* Decide if all elements (e.g. style, script) must be children of
|
|
7282
|
+
* document.body. By default, browsers might move them to document.head */
|
|
7283
|
+
let FORCE_BODY = false;
|
|
7284
|
+
/* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
|
|
7285
|
+
* string (or a TrustedHTML object if Trusted Types are supported).
|
|
7286
|
+
* If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
|
|
7287
|
+
*/
|
|
7288
|
+
let RETURN_DOM = false;
|
|
7289
|
+
/* Decide if a DOM `DocumentFragment` should be returned, instead of a html
|
|
7290
|
+
* string (or a TrustedHTML object if Trusted Types are supported) */
|
|
7291
|
+
let RETURN_DOM_FRAGMENT = false;
|
|
7292
|
+
/* Try to return a Trusted Type object instead of a string, return a string in
|
|
7293
|
+
* case Trusted Types are not supported */
|
|
7294
|
+
let RETURN_TRUSTED_TYPE = false;
|
|
7295
|
+
/* Output should be free from DOM clobbering attacks?
|
|
7296
|
+
* This sanitizes markups named with colliding, clobberable built-in DOM APIs.
|
|
7297
|
+
*/
|
|
7298
|
+
let SANITIZE_DOM = true;
|
|
7299
|
+
/* Achieve full DOM Clobbering protection by isolating the namespace of named
|
|
7300
|
+
* properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
|
|
7301
|
+
*
|
|
7302
|
+
* HTML/DOM spec rules that enable DOM Clobbering:
|
|
7303
|
+
* - Named Access on Window (§7.3.3)
|
|
7304
|
+
* - DOM Tree Accessors (§3.1.5)
|
|
7305
|
+
* - Form Element Parent-Child Relations (§4.10.3)
|
|
7306
|
+
* - Iframe srcdoc / Nested WindowProxies (§4.8.5)
|
|
7307
|
+
* - HTMLCollection (§4.2.10.2)
|
|
7308
|
+
*
|
|
7309
|
+
* Namespace isolation is implemented by prefixing `id` and `name` attributes
|
|
7310
|
+
* with a constant string, i.e., `user-content-`
|
|
7311
|
+
*/
|
|
7312
|
+
let SANITIZE_NAMED_PROPS = false;
|
|
7313
|
+
const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';
|
|
7314
|
+
/* Keep element content when removing element? */
|
|
7315
|
+
let KEEP_CONTENT = true;
|
|
7316
|
+
/* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
|
|
7317
|
+
* of importing it into a new Document and returning a sanitized copy */
|
|
7318
|
+
let IN_PLACE = false;
|
|
7319
|
+
/* Allow usage of profiles like html, svg and mathMl */
|
|
7320
|
+
let USE_PROFILES = {};
|
|
7321
|
+
/* Tags to ignore content of when KEEP_CONTENT is true */
|
|
7322
|
+
let FORBID_CONTENTS = null;
|
|
7323
|
+
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']);
|
|
7324
|
+
/* Tags that are safe for data: URIs */
|
|
7325
|
+
let DATA_URI_TAGS = null;
|
|
7326
|
+
const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
|
|
7327
|
+
/* Attributes safe for values like "javascript:" */
|
|
7328
|
+
let URI_SAFE_ATTRIBUTES = null;
|
|
7329
|
+
const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);
|
|
7330
|
+
const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
7331
|
+
const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
7332
|
+
const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
|
7333
|
+
/* Document namespace */
|
|
7334
|
+
let NAMESPACE = HTML_NAMESPACE;
|
|
7335
|
+
let IS_EMPTY_INPUT = false;
|
|
7336
|
+
/* Allowed XHTML+XML namespaces */
|
|
7337
|
+
let ALLOWED_NAMESPACES = null;
|
|
7338
|
+
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
|
7339
|
+
let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
|
|
7340
|
+
let HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);
|
|
7341
|
+
// Certain elements are allowed in both SVG and HTML
|
|
7342
|
+
// namespace. We need to specify them explicitly
|
|
7343
|
+
// so that they don't get erroneously deleted from
|
|
7344
|
+
// HTML namespace.
|
|
7345
|
+
const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
|
|
7346
|
+
/* Parsing of strict XHTML documents */
|
|
7347
|
+
let PARSER_MEDIA_TYPE = null;
|
|
7348
|
+
const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
|
|
7349
|
+
const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
|
|
7350
|
+
let transformCaseFunc = null;
|
|
7351
|
+
/* Keep a reference to config to pass to hooks */
|
|
7352
|
+
let CONFIG = null;
|
|
7353
|
+
/* Ideally, do not touch anything below this line */
|
|
7354
|
+
/* ______________________________________________ */
|
|
7355
|
+
const formElement = document.createElement('form');
|
|
7356
|
+
const isRegexOrFunction = function isRegexOrFunction(testValue) {
|
|
7357
|
+
return testValue instanceof RegExp || testValue instanceof Function;
|
|
7358
|
+
};
|
|
7359
|
+
/**
|
|
7360
|
+
* _parseConfig
|
|
7361
|
+
*
|
|
7362
|
+
* @param cfg optional config literal
|
|
7363
|
+
*/
|
|
7364
|
+
// eslint-disable-next-line complexity
|
|
7365
|
+
const _parseConfig = function _parseConfig() {
|
|
7366
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7367
|
+
if (CONFIG && CONFIG === cfg) {
|
|
7368
|
+
return;
|
|
7369
|
+
}
|
|
7370
|
+
/* Shield configuration object from tampering */
|
|
7371
|
+
if (!cfg || typeof cfg !== 'object') {
|
|
7372
|
+
cfg = {};
|
|
7373
|
+
}
|
|
7374
|
+
/* Shield configuration object from prototype pollution */
|
|
7375
|
+
cfg = clone(cfg);
|
|
7376
|
+
PARSER_MEDIA_TYPE =
|
|
7377
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
|
7378
|
+
SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
|
|
7379
|
+
// HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
|
|
7380
|
+
transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
|
|
7381
|
+
/* Set configuration parameters */
|
|
7382
|
+
ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
|
7383
|
+
ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
|
7384
|
+
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
|
7385
|
+
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;
|
|
7386
|
+
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;
|
|
7387
|
+
FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
7388
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
7389
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
7390
|
+
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
|
|
7391
|
+
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
|
7392
|
+
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
|
7393
|
+
ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
|
|
7394
|
+
ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true
|
|
7395
|
+
SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
|
|
7396
|
+
SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true
|
|
7397
|
+
WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
|
|
7398
|
+
RETURN_DOM = cfg.RETURN_DOM || false; // Default false
|
|
7399
|
+
RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
|
|
7400
|
+
RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
|
|
7401
|
+
FORCE_BODY = cfg.FORCE_BODY || false; // Default false
|
|
7402
|
+
SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
|
|
7403
|
+
SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
|
|
7404
|
+
KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
|
|
7405
|
+
IN_PLACE = cfg.IN_PLACE || false; // Default false
|
|
7406
|
+
IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
|
|
7407
|
+
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
|
7408
|
+
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
|
|
7409
|
+
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
|
|
7410
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
|
|
7411
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
|
7412
|
+
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|
|
7413
|
+
}
|
|
7414
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
|
|
7415
|
+
CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
|
|
7416
|
+
}
|
|
7417
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {
|
|
7418
|
+
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
|
|
7419
|
+
}
|
|
7420
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
7421
|
+
ALLOW_DATA_ATTR = false;
|
|
7422
|
+
}
|
|
7423
|
+
if (RETURN_DOM_FRAGMENT) {
|
|
7424
|
+
RETURN_DOM = true;
|
|
7425
|
+
}
|
|
7426
|
+
/* Parse profile info */
|
|
7427
|
+
if (USE_PROFILES) {
|
|
7428
|
+
ALLOWED_TAGS = addToSet({}, text);
|
|
7429
|
+
ALLOWED_ATTR = [];
|
|
7430
|
+
if (USE_PROFILES.html === true) {
|
|
7431
|
+
addToSet(ALLOWED_TAGS, html$1);
|
|
7432
|
+
addToSet(ALLOWED_ATTR, html);
|
|
7433
|
+
}
|
|
7434
|
+
if (USE_PROFILES.svg === true) {
|
|
7435
|
+
addToSet(ALLOWED_TAGS, svg$1);
|
|
7436
|
+
addToSet(ALLOWED_ATTR, svg);
|
|
7437
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7438
|
+
}
|
|
7439
|
+
if (USE_PROFILES.svgFilters === true) {
|
|
7440
|
+
addToSet(ALLOWED_TAGS, svgFilters);
|
|
7441
|
+
addToSet(ALLOWED_ATTR, svg);
|
|
7442
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7443
|
+
}
|
|
7444
|
+
if (USE_PROFILES.mathMl === true) {
|
|
7445
|
+
addToSet(ALLOWED_TAGS, mathMl$1);
|
|
7446
|
+
addToSet(ALLOWED_ATTR, mathMl);
|
|
7447
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7448
|
+
}
|
|
7449
|
+
}
|
|
7450
|
+
/* Merge configuration parameters */
|
|
7451
|
+
if (cfg.ADD_TAGS) {
|
|
7452
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
7453
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
7454
|
+
}
|
|
7455
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
7456
|
+
}
|
|
7457
|
+
if (cfg.ADD_ATTR) {
|
|
7458
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
7459
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
7460
|
+
}
|
|
7461
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
7462
|
+
}
|
|
7463
|
+
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
7464
|
+
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
7465
|
+
}
|
|
7466
|
+
if (cfg.FORBID_CONTENTS) {
|
|
7467
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
7468
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
7469
|
+
}
|
|
7470
|
+
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
7471
|
+
}
|
|
7472
|
+
/* Add #text in case KEEP_CONTENT is set to true */
|
|
7473
|
+
if (KEEP_CONTENT) {
|
|
7474
|
+
ALLOWED_TAGS['#text'] = true;
|
|
7475
|
+
}
|
|
7476
|
+
/* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
|
|
7477
|
+
if (WHOLE_DOCUMENT) {
|
|
7478
|
+
addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
|
|
7479
|
+
}
|
|
7480
|
+
/* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
|
|
7481
|
+
if (ALLOWED_TAGS.table) {
|
|
7482
|
+
addToSet(ALLOWED_TAGS, ['tbody']);
|
|
7483
|
+
delete FORBID_TAGS.tbody;
|
|
7484
|
+
}
|
|
7485
|
+
if (cfg.TRUSTED_TYPES_POLICY) {
|
|
7486
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
|
|
7487
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
7488
|
+
}
|
|
7489
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
|
|
7490
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
7491
|
+
}
|
|
7492
|
+
// Overwrite existing TrustedTypes policy.
|
|
7493
|
+
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
|
7494
|
+
// Sign local variables required by `sanitize`.
|
|
7495
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
|
7496
|
+
} else {
|
|
7497
|
+
// Uninitialized policy, attempt to initialize the internal dompurify policy.
|
|
7498
|
+
if (trustedTypesPolicy === undefined) {
|
|
7499
|
+
trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
|
7500
|
+
}
|
|
7501
|
+
// If creating the internal policy succeeded sign internal variables.
|
|
7502
|
+
if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {
|
|
7503
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
|
7504
|
+
}
|
|
7505
|
+
}
|
|
7506
|
+
// Prevent further manipulation of configuration.
|
|
7507
|
+
// Not available in IE8, Safari 5, etc.
|
|
7508
|
+
if (freeze) {
|
|
7509
|
+
freeze(cfg);
|
|
7510
|
+
}
|
|
7511
|
+
CONFIG = cfg;
|
|
7512
|
+
};
|
|
7513
|
+
/* Keep track of all possible SVG and MathML tags
|
|
7514
|
+
* so that we can perform the namespace checks
|
|
7515
|
+
* correctly. */
|
|
7516
|
+
const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
|
|
7517
|
+
const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
|
|
7518
|
+
/**
|
|
7519
|
+
* @param element a DOM element whose namespace is being checked
|
|
7520
|
+
* @returns Return false if the element has a
|
|
7521
|
+
* namespace that a spec-compliant parser would never
|
|
7522
|
+
* return. Return true otherwise.
|
|
7523
|
+
*/
|
|
7524
|
+
const _checkValidNamespace = function _checkValidNamespace(element) {
|
|
7525
|
+
let parent = getParentNode(element);
|
|
7526
|
+
// In JSDOM, if we're inside shadow DOM, then parentNode
|
|
7527
|
+
// can be null. We just simulate parent in this case.
|
|
7528
|
+
if (!parent || !parent.tagName) {
|
|
7529
|
+
parent = {
|
|
7530
|
+
namespaceURI: NAMESPACE,
|
|
7531
|
+
tagName: 'template'
|
|
7532
|
+
};
|
|
7533
|
+
}
|
|
7534
|
+
const tagName = stringToLowerCase(element.tagName);
|
|
7535
|
+
const parentTagName = stringToLowerCase(parent.tagName);
|
|
7536
|
+
if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
7537
|
+
return false;
|
|
7538
|
+
}
|
|
7539
|
+
if (element.namespaceURI === SVG_NAMESPACE) {
|
|
7540
|
+
// The only way to switch from HTML namespace to SVG
|
|
7541
|
+
// is via <svg>. If it happens via any other tag, then
|
|
7542
|
+
// it should be killed.
|
|
7543
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
7544
|
+
return tagName === 'svg';
|
|
7545
|
+
}
|
|
7546
|
+
// The only way to switch from MathML to SVG is via`
|
|
7547
|
+
// svg if parent is either <annotation-xml> or MathML
|
|
7548
|
+
// text integration points.
|
|
7549
|
+
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
|
7550
|
+
return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
|
7551
|
+
}
|
|
7552
|
+
// We only allow elements that are defined in SVG
|
|
7553
|
+
// spec. All others are disallowed in SVG namespace.
|
|
7554
|
+
return Boolean(ALL_SVG_TAGS[tagName]);
|
|
7555
|
+
}
|
|
7556
|
+
if (element.namespaceURI === MATHML_NAMESPACE) {
|
|
7557
|
+
// The only way to switch from HTML namespace to MathML
|
|
7558
|
+
// is via <math>. If it happens via any other tag, then
|
|
7559
|
+
// it should be killed.
|
|
7560
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
7561
|
+
return tagName === 'math';
|
|
7562
|
+
}
|
|
7563
|
+
// The only way to switch from SVG to MathML is via
|
|
7564
|
+
// <math> and HTML integration points
|
|
7565
|
+
if (parent.namespaceURI === SVG_NAMESPACE) {
|
|
7566
|
+
return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
|
|
7567
|
+
}
|
|
7568
|
+
// We only allow elements that are defined in MathML
|
|
7569
|
+
// spec. All others are disallowed in MathML namespace.
|
|
7570
|
+
return Boolean(ALL_MATHML_TAGS[tagName]);
|
|
7571
|
+
}
|
|
7572
|
+
if (element.namespaceURI === HTML_NAMESPACE) {
|
|
7573
|
+
// The only way to switch from SVG to HTML is via
|
|
7574
|
+
// HTML integration points, and from MathML to HTML
|
|
7575
|
+
// is via MathML text integration points
|
|
7576
|
+
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
|
7577
|
+
return false;
|
|
7578
|
+
}
|
|
7579
|
+
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
|
7580
|
+
return false;
|
|
7581
|
+
}
|
|
7582
|
+
// We disallow tags that are specific for MathML
|
|
7583
|
+
// or SVG and should never appear in HTML namespace
|
|
7584
|
+
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
|
7585
|
+
}
|
|
7586
|
+
// For XHTML and XML documents that support custom namespaces
|
|
7587
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
7588
|
+
return true;
|
|
7589
|
+
}
|
|
7590
|
+
// The code should never reach this place (this means
|
|
7591
|
+
// that the element somehow got namespace that is not
|
|
7592
|
+
// HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
|
|
7593
|
+
// Return false just in case.
|
|
7594
|
+
return false;
|
|
7595
|
+
};
|
|
7596
|
+
/**
|
|
7597
|
+
* _forceRemove
|
|
7598
|
+
*
|
|
7599
|
+
* @param node a DOM node
|
|
7600
|
+
*/
|
|
7601
|
+
const _forceRemove = function _forceRemove(node) {
|
|
7602
|
+
arrayPush(DOMPurify.removed, {
|
|
7603
|
+
element: node
|
|
7604
|
+
});
|
|
7605
|
+
try {
|
|
7606
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-remove
|
|
7607
|
+
getParentNode(node).removeChild(node);
|
|
7608
|
+
} catch (_) {
|
|
7609
|
+
remove(node);
|
|
7610
|
+
}
|
|
7611
|
+
};
|
|
7612
|
+
/**
|
|
7613
|
+
* _removeAttribute
|
|
7614
|
+
*
|
|
7615
|
+
* @param name an Attribute name
|
|
7616
|
+
* @param element a DOM node
|
|
7617
|
+
*/
|
|
7618
|
+
const _removeAttribute = function _removeAttribute(name, element) {
|
|
7619
|
+
try {
|
|
7620
|
+
arrayPush(DOMPurify.removed, {
|
|
7621
|
+
attribute: element.getAttributeNode(name),
|
|
7622
|
+
from: element
|
|
7623
|
+
});
|
|
7624
|
+
} catch (_) {
|
|
7625
|
+
arrayPush(DOMPurify.removed, {
|
|
7626
|
+
attribute: null,
|
|
7627
|
+
from: element
|
|
7628
|
+
});
|
|
7629
|
+
}
|
|
7630
|
+
element.removeAttribute(name);
|
|
7631
|
+
// We void attribute values for unremovable "is" attributes
|
|
7632
|
+
if (name === 'is') {
|
|
7633
|
+
if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
|
|
7634
|
+
try {
|
|
7635
|
+
_forceRemove(element);
|
|
7636
|
+
} catch (_) {}
|
|
7637
|
+
} else {
|
|
7638
|
+
try {
|
|
7639
|
+
element.setAttribute(name, '');
|
|
7640
|
+
} catch (_) {}
|
|
7641
|
+
}
|
|
7642
|
+
}
|
|
7643
|
+
};
|
|
7644
|
+
/**
|
|
7645
|
+
* _initDocument
|
|
7646
|
+
*
|
|
7647
|
+
* @param dirty - a string of dirty markup
|
|
7648
|
+
* @return a DOM, filled with the dirty markup
|
|
7649
|
+
*/
|
|
7650
|
+
const _initDocument = function _initDocument(dirty) {
|
|
7651
|
+
/* Create a HTML document */
|
|
7652
|
+
let doc = null;
|
|
7653
|
+
let leadingWhitespace = null;
|
|
7654
|
+
if (FORCE_BODY) {
|
|
7655
|
+
dirty = '<remove></remove>' + dirty;
|
|
7656
|
+
} else {
|
|
7657
|
+
/* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
|
|
7658
|
+
const matches = stringMatch(dirty, /^[\r\n\t ]+/);
|
|
7659
|
+
leadingWhitespace = matches && matches[0];
|
|
7660
|
+
}
|
|
7661
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {
|
|
7662
|
+
// Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
|
|
7663
|
+
dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
|
|
7664
|
+
}
|
|
7665
|
+
const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
7666
|
+
/*
|
|
7667
|
+
* Use the DOMParser API by default, fallback later if needs be
|
|
7668
|
+
* DOMParser not work for svg when has multiple root element.
|
|
7669
|
+
*/
|
|
7670
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
7671
|
+
try {
|
|
7672
|
+
doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
|
|
7673
|
+
} catch (_) {}
|
|
7674
|
+
}
|
|
7675
|
+
/* Use createHTMLDocument in case DOMParser is not available */
|
|
7676
|
+
if (!doc || !doc.documentElement) {
|
|
7677
|
+
doc = implementation.createDocument(NAMESPACE, 'template', null);
|
|
7678
|
+
try {
|
|
7679
|
+
doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
|
|
7680
|
+
} catch (_) {
|
|
7681
|
+
// Syntax error if dirtyPayload is invalid xml
|
|
7682
|
+
}
|
|
7683
|
+
}
|
|
7684
|
+
const body = doc.body || doc.documentElement;
|
|
7685
|
+
if (dirty && leadingWhitespace) {
|
|
7686
|
+
body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
|
|
7687
|
+
}
|
|
7688
|
+
/* Work on whole document or just its body */
|
|
7689
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
7690
|
+
return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
|
|
7691
|
+
}
|
|
7692
|
+
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
|
7693
|
+
};
|
|
7694
|
+
/**
|
|
7695
|
+
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
|
7696
|
+
*
|
|
7697
|
+
* @param root The root element or node to start traversing on.
|
|
7698
|
+
* @return The created NodeIterator
|
|
7699
|
+
*/
|
|
7700
|
+
const _createNodeIterator = function _createNodeIterator(root) {
|
|
7701
|
+
return createNodeIterator.call(root.ownerDocument || root, root,
|
|
7702
|
+
// eslint-disable-next-line no-bitwise
|
|
7703
|
+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
|
7704
|
+
};
|
|
7705
|
+
/**
|
|
7706
|
+
* _isClobbered
|
|
7707
|
+
*
|
|
7708
|
+
* @param element element to check for clobbering attacks
|
|
7709
|
+
* @return true if clobbered, false if safe
|
|
7710
|
+
*/
|
|
7711
|
+
const _isClobbered = function _isClobbered(element) {
|
|
7712
|
+
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');
|
|
7713
|
+
};
|
|
7714
|
+
/**
|
|
7715
|
+
* Checks whether the given object is a DOM node.
|
|
7716
|
+
*
|
|
7717
|
+
* @param value object to check whether it's a DOM node
|
|
7718
|
+
* @return true is object is a DOM node
|
|
7719
|
+
*/
|
|
7720
|
+
const _isNode = function _isNode(value) {
|
|
7721
|
+
return typeof Node === 'function' && value instanceof Node;
|
|
7722
|
+
};
|
|
7723
|
+
function _executeHooks(hooks, currentNode, data) {
|
|
7724
|
+
arrayForEach(hooks, hook => {
|
|
7725
|
+
hook.call(DOMPurify, currentNode, data, CONFIG);
|
|
7726
|
+
});
|
|
7727
|
+
}
|
|
7728
|
+
/**
|
|
7729
|
+
* _sanitizeElements
|
|
7730
|
+
*
|
|
7731
|
+
* @protect nodeName
|
|
7732
|
+
* @protect textContent
|
|
7733
|
+
* @protect removeChild
|
|
7734
|
+
* @param currentNode to check for permission to exist
|
|
7735
|
+
* @return true if node was killed, false if left alive
|
|
7736
|
+
*/
|
|
7737
|
+
const _sanitizeElements = function _sanitizeElements(currentNode) {
|
|
7738
|
+
let content = null;
|
|
7739
|
+
/* Execute a hook if present */
|
|
7740
|
+
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
7741
|
+
/* Check if element is clobbered or can clobber */
|
|
7742
|
+
if (_isClobbered(currentNode)) {
|
|
7743
|
+
_forceRemove(currentNode);
|
|
7744
|
+
return true;
|
|
7745
|
+
}
|
|
7746
|
+
/* Now let's check the element's type and name */
|
|
7747
|
+
const tagName = transformCaseFunc(currentNode.nodeName);
|
|
7748
|
+
/* Execute a hook if present */
|
|
7749
|
+
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
|
7750
|
+
tagName,
|
|
7751
|
+
allowedTags: ALLOWED_TAGS
|
|
7752
|
+
});
|
|
7753
|
+
/* Detect mXSS attempts abusing namespace confusion */
|
|
7754
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
7755
|
+
_forceRemove(currentNode);
|
|
7756
|
+
return true;
|
|
7757
|
+
}
|
|
7758
|
+
/* Remove any occurrence of processing instructions */
|
|
7759
|
+
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
7760
|
+
_forceRemove(currentNode);
|
|
7761
|
+
return true;
|
|
7762
|
+
}
|
|
7763
|
+
/* Remove any kind of possibly harmful comments */
|
|
7764
|
+
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
|
|
7765
|
+
_forceRemove(currentNode);
|
|
7766
|
+
return true;
|
|
7767
|
+
}
|
|
7768
|
+
/* Remove element if anything forbids its presence */
|
|
7769
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
7770
|
+
/* Check if we have a custom element to handle */
|
|
7771
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
7772
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
7773
|
+
return false;
|
|
7774
|
+
}
|
|
7775
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
|
7776
|
+
return false;
|
|
7777
|
+
}
|
|
7778
|
+
}
|
|
7779
|
+
/* Keep content except for bad-listed elements */
|
|
7780
|
+
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
7781
|
+
const parentNode = getParentNode(currentNode) || currentNode.parentNode;
|
|
7782
|
+
const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
|
|
7783
|
+
if (childNodes && parentNode) {
|
|
7784
|
+
const childCount = childNodes.length;
|
|
7785
|
+
for (let i = childCount - 1; i >= 0; --i) {
|
|
7786
|
+
const childClone = cloneNode(childNodes[i], true);
|
|
7787
|
+
childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
|
|
7788
|
+
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
|
7789
|
+
}
|
|
7790
|
+
}
|
|
7791
|
+
}
|
|
7792
|
+
_forceRemove(currentNode);
|
|
7793
|
+
return true;
|
|
7794
|
+
}
|
|
7795
|
+
/* Check whether element has a valid namespace */
|
|
7796
|
+
if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
|
|
7797
|
+
_forceRemove(currentNode);
|
|
7798
|
+
return true;
|
|
7799
|
+
}
|
|
7800
|
+
/* Make sure that older browsers don't get fallback-tag mXSS */
|
|
7801
|
+
if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
|
|
7802
|
+
_forceRemove(currentNode);
|
|
7803
|
+
return true;
|
|
7804
|
+
}
|
|
7805
|
+
/* Sanitize element content to be template-safe */
|
|
7806
|
+
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
|
|
7807
|
+
/* Get the element's text content */
|
|
7808
|
+
content = currentNode.textContent;
|
|
7809
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
7810
|
+
content = stringReplace(content, expr, ' ');
|
|
7811
|
+
});
|
|
7812
|
+
if (currentNode.textContent !== content) {
|
|
7813
|
+
arrayPush(DOMPurify.removed, {
|
|
7814
|
+
element: currentNode.cloneNode()
|
|
7815
|
+
});
|
|
7816
|
+
currentNode.textContent = content;
|
|
7817
|
+
}
|
|
7818
|
+
}
|
|
7819
|
+
/* Execute a hook if present */
|
|
7820
|
+
_executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
|
7821
|
+
return false;
|
|
7822
|
+
};
|
|
7823
|
+
/**
|
|
7824
|
+
* _isValidAttribute
|
|
7825
|
+
*
|
|
7826
|
+
* @param lcTag Lowercase tag name of containing element.
|
|
7827
|
+
* @param lcName Lowercase attribute name.
|
|
7828
|
+
* @param value Attribute value.
|
|
7829
|
+
* @return Returns true if `value` is valid, otherwise false.
|
|
7830
|
+
*/
|
|
7831
|
+
// eslint-disable-next-line complexity
|
|
7832
|
+
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
7833
|
+
/* Make sure attribute cannot clobber */
|
|
7834
|
+
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
7835
|
+
return false;
|
|
7836
|
+
}
|
|
7837
|
+
/* Allow valid data-* attributes: At least one character after "-"
|
|
7838
|
+
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
7839
|
+
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
7840
|
+
We don't need to check the value; it's always URI safe. */
|
|
7841
|
+
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]) {
|
|
7842
|
+
if (
|
|
7843
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
7844
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
7845
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
7846
|
+
_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)) ||
|
|
7847
|
+
// Alternative, second condition checks if it's an `is`-attribute, AND
|
|
7848
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
7849
|
+
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 {
|
|
7850
|
+
return false;
|
|
7851
|
+
}
|
|
7852
|
+
/* Check value is safe. First, is attr inert? If so, is safe */
|
|
7853
|
+
} 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) {
|
|
7854
|
+
return false;
|
|
7855
|
+
} else ;
|
|
7856
|
+
return true;
|
|
7857
|
+
};
|
|
7858
|
+
/**
|
|
7859
|
+
* _isBasicCustomElement
|
|
7860
|
+
* checks if at least one dash is included in tagName, and it's not the first char
|
|
7861
|
+
* for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
|
|
7862
|
+
*
|
|
7863
|
+
* @param tagName name of the tag of the node to sanitize
|
|
7864
|
+
* @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
|
7865
|
+
*/
|
|
7866
|
+
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
|
7867
|
+
return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);
|
|
7868
|
+
};
|
|
7869
|
+
/**
|
|
7870
|
+
* _sanitizeAttributes
|
|
7871
|
+
*
|
|
7872
|
+
* @protect attributes
|
|
7873
|
+
* @protect nodeName
|
|
7874
|
+
* @protect removeAttribute
|
|
7875
|
+
* @protect setAttribute
|
|
7876
|
+
*
|
|
7877
|
+
* @param currentNode to sanitize
|
|
7878
|
+
*/
|
|
7879
|
+
const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
|
|
7880
|
+
/* Execute a hook if present */
|
|
7881
|
+
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
|
7882
|
+
const {
|
|
7883
|
+
attributes
|
|
7884
|
+
} = currentNode;
|
|
7885
|
+
/* Check if we have attributes; if not we might have a text node */
|
|
7886
|
+
if (!attributes || _isClobbered(currentNode)) {
|
|
7887
|
+
return;
|
|
7888
|
+
}
|
|
7889
|
+
const hookEvent = {
|
|
7890
|
+
attrName: '',
|
|
7891
|
+
attrValue: '',
|
|
7892
|
+
keepAttr: true,
|
|
7893
|
+
allowedAttributes: ALLOWED_ATTR,
|
|
7894
|
+
forceKeepAttr: undefined
|
|
7895
|
+
};
|
|
7896
|
+
let l = attributes.length;
|
|
7897
|
+
/* Go backwards over all attributes; safely remove bad ones */
|
|
7898
|
+
while (l--) {
|
|
7899
|
+
const attr = attributes[l];
|
|
7900
|
+
const {
|
|
7901
|
+
name,
|
|
7902
|
+
namespaceURI,
|
|
7903
|
+
value: attrValue
|
|
7904
|
+
} = attr;
|
|
7905
|
+
const lcName = transformCaseFunc(name);
|
|
7906
|
+
const initValue = attrValue;
|
|
7907
|
+
let value = name === 'value' ? initValue : stringTrim(initValue);
|
|
7908
|
+
/* Execute a hook if present */
|
|
7909
|
+
hookEvent.attrName = lcName;
|
|
7910
|
+
hookEvent.attrValue = value;
|
|
7911
|
+
hookEvent.keepAttr = true;
|
|
7912
|
+
hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
|
|
7913
|
+
_executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
|
|
7914
|
+
value = hookEvent.attrValue;
|
|
7915
|
+
/* Full DOM Clobbering protection via namespace isolation,
|
|
7916
|
+
* Prefix id and name attributes with `user-content-`
|
|
7917
|
+
*/
|
|
7918
|
+
if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {
|
|
7919
|
+
// Remove the attribute with this value
|
|
7920
|
+
_removeAttribute(name, currentNode);
|
|
7921
|
+
// Prefix the value and later re-create the attribute with the sanitized value
|
|
7922
|
+
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
7923
|
+
}
|
|
7924
|
+
/* Work around a security issue with comments inside attributes */
|
|
7925
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
7926
|
+
_removeAttribute(name, currentNode);
|
|
7927
|
+
continue;
|
|
7928
|
+
}
|
|
7929
|
+
/* Did the hooks approve of the attribute? */
|
|
7930
|
+
if (hookEvent.forceKeepAttr) {
|
|
7931
|
+
continue;
|
|
7932
|
+
}
|
|
7933
|
+
/* Did the hooks approve of the attribute? */
|
|
7934
|
+
if (!hookEvent.keepAttr) {
|
|
7935
|
+
_removeAttribute(name, currentNode);
|
|
7936
|
+
continue;
|
|
7937
|
+
}
|
|
7938
|
+
/* Work around a security issue in jQuery 3.0 */
|
|
7939
|
+
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
7940
|
+
_removeAttribute(name, currentNode);
|
|
7941
|
+
continue;
|
|
7942
|
+
}
|
|
7943
|
+
/* Sanitize attribute content to be template-safe */
|
|
7944
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
7945
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
7946
|
+
value = stringReplace(value, expr, ' ');
|
|
7947
|
+
});
|
|
7948
|
+
}
|
|
7949
|
+
/* Is `value` valid for this attribute? */
|
|
7950
|
+
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
7951
|
+
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
7952
|
+
_removeAttribute(name, currentNode);
|
|
7953
|
+
continue;
|
|
7954
|
+
}
|
|
7955
|
+
/* Handle attributes that require Trusted Types */
|
|
7956
|
+
if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {
|
|
7957
|
+
if (namespaceURI) ; else {
|
|
7958
|
+
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
7959
|
+
case 'TrustedHTML':
|
|
7960
|
+
{
|
|
7961
|
+
value = trustedTypesPolicy.createHTML(value);
|
|
7962
|
+
break;
|
|
7963
|
+
}
|
|
7964
|
+
case 'TrustedScriptURL':
|
|
7965
|
+
{
|
|
7966
|
+
value = trustedTypesPolicy.createScriptURL(value);
|
|
7967
|
+
break;
|
|
7968
|
+
}
|
|
7969
|
+
}
|
|
7970
|
+
}
|
|
7971
|
+
}
|
|
7972
|
+
/* Handle invalid data-* attribute set by try-catching it */
|
|
7973
|
+
if (value !== initValue) {
|
|
7974
|
+
try {
|
|
7975
|
+
if (namespaceURI) {
|
|
7976
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
7977
|
+
} else {
|
|
7978
|
+
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
|
7979
|
+
currentNode.setAttribute(name, value);
|
|
7980
|
+
}
|
|
7981
|
+
if (_isClobbered(currentNode)) {
|
|
7982
|
+
_forceRemove(currentNode);
|
|
7983
|
+
} else {
|
|
7984
|
+
arrayPop(DOMPurify.removed);
|
|
7985
|
+
}
|
|
7986
|
+
} catch (_) {
|
|
7987
|
+
_removeAttribute(name, currentNode);
|
|
7988
|
+
}
|
|
7989
|
+
}
|
|
7990
|
+
}
|
|
7991
|
+
/* Execute a hook if present */
|
|
7992
|
+
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
7993
|
+
};
|
|
7994
|
+
/**
|
|
7995
|
+
* _sanitizeShadowDOM
|
|
7996
|
+
*
|
|
7997
|
+
* @param fragment to iterate over recursively
|
|
7998
|
+
*/
|
|
7999
|
+
const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
|
|
8000
|
+
let shadowNode = null;
|
|
8001
|
+
const shadowIterator = _createNodeIterator(fragment);
|
|
8002
|
+
/* Execute a hook if present */
|
|
8003
|
+
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
8004
|
+
while (shadowNode = shadowIterator.nextNode()) {
|
|
8005
|
+
/* Execute a hook if present */
|
|
8006
|
+
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
|
8007
|
+
/* Sanitize tags and elements */
|
|
8008
|
+
_sanitizeElements(shadowNode);
|
|
8009
|
+
/* Check attributes next */
|
|
8010
|
+
_sanitizeAttributes(shadowNode);
|
|
8011
|
+
/* Deep shadow DOM detected */
|
|
8012
|
+
if (shadowNode.content instanceof DocumentFragment) {
|
|
8013
|
+
_sanitizeShadowDOM(shadowNode.content);
|
|
8014
|
+
}
|
|
8015
|
+
}
|
|
8016
|
+
/* Execute a hook if present */
|
|
8017
|
+
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
8018
|
+
};
|
|
8019
|
+
// eslint-disable-next-line complexity
|
|
8020
|
+
DOMPurify.sanitize = function (dirty) {
|
|
8021
|
+
let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8022
|
+
let body = null;
|
|
8023
|
+
let importedNode = null;
|
|
8024
|
+
let currentNode = null;
|
|
8025
|
+
let returnNode = null;
|
|
8026
|
+
/* Make sure we have a string to sanitize.
|
|
8027
|
+
DO NOT return early, as this will return the wrong type if
|
|
8028
|
+
the user has requested a DOM object rather than a string */
|
|
8029
|
+
IS_EMPTY_INPUT = !dirty;
|
|
8030
|
+
if (IS_EMPTY_INPUT) {
|
|
8031
|
+
dirty = '<!-->';
|
|
8032
|
+
}
|
|
8033
|
+
/* Stringify, in case dirty is an object */
|
|
8034
|
+
if (typeof dirty !== 'string' && !_isNode(dirty)) {
|
|
8035
|
+
if (typeof dirty.toString === 'function') {
|
|
8036
|
+
dirty = dirty.toString();
|
|
8037
|
+
if (typeof dirty !== 'string') {
|
|
8038
|
+
throw typeErrorCreate('dirty is not a string, aborting');
|
|
8039
|
+
}
|
|
8040
|
+
} else {
|
|
8041
|
+
throw typeErrorCreate('toString is not a function');
|
|
8042
|
+
}
|
|
8043
|
+
}
|
|
8044
|
+
/* Return dirty HTML if DOMPurify cannot run */
|
|
8045
|
+
if (!DOMPurify.isSupported) {
|
|
8046
|
+
return dirty;
|
|
8047
|
+
}
|
|
8048
|
+
/* Assign config vars */
|
|
8049
|
+
if (!SET_CONFIG) {
|
|
8050
|
+
_parseConfig(cfg);
|
|
8051
|
+
}
|
|
8052
|
+
/* Clean up removed elements */
|
|
8053
|
+
DOMPurify.removed = [];
|
|
8054
|
+
/* Check if dirty is correctly typed for IN_PLACE */
|
|
8055
|
+
if (typeof dirty === 'string') {
|
|
8056
|
+
IN_PLACE = false;
|
|
8057
|
+
}
|
|
8058
|
+
if (IN_PLACE) {
|
|
8059
|
+
/* Do some early pre-sanitization to avoid unsafe root nodes */
|
|
8060
|
+
if (dirty.nodeName) {
|
|
8061
|
+
const tagName = transformCaseFunc(dirty.nodeName);
|
|
8062
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
8063
|
+
throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
|
|
8064
|
+
}
|
|
8065
|
+
}
|
|
8066
|
+
} else if (dirty instanceof Node) {
|
|
8067
|
+
/* If dirty is a DOM element, append to an empty document to avoid
|
|
8068
|
+
elements being stripped by the parser */
|
|
8069
|
+
body = _initDocument('<!---->');
|
|
8070
|
+
importedNode = body.ownerDocument.importNode(dirty, true);
|
|
8071
|
+
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {
|
|
8072
|
+
/* Node is already a body, use as is */
|
|
8073
|
+
body = importedNode;
|
|
8074
|
+
} else if (importedNode.nodeName === 'HTML') {
|
|
8075
|
+
body = importedNode;
|
|
8076
|
+
} else {
|
|
8077
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
|
8078
|
+
body.appendChild(importedNode);
|
|
8079
|
+
}
|
|
8080
|
+
} else {
|
|
8081
|
+
/* Exit directly if we have nothing to do */
|
|
8082
|
+
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
|
|
8083
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
|
8084
|
+
dirty.indexOf('<') === -1) {
|
|
8085
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
8086
|
+
}
|
|
8087
|
+
/* Initialize the document to work on */
|
|
8088
|
+
body = _initDocument(dirty);
|
|
8089
|
+
/* Check we have a DOM node from the data */
|
|
8090
|
+
if (!body) {
|
|
8091
|
+
return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
|
|
8092
|
+
}
|
|
8093
|
+
}
|
|
8094
|
+
/* Remove first element node (ours) if FORCE_BODY is set */
|
|
8095
|
+
if (body && FORCE_BODY) {
|
|
8096
|
+
_forceRemove(body.firstChild);
|
|
8097
|
+
}
|
|
8098
|
+
/* Get node iterator */
|
|
8099
|
+
const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
|
|
8100
|
+
/* Now start iterating over the created document */
|
|
8101
|
+
while (currentNode = nodeIterator.nextNode()) {
|
|
8102
|
+
/* Sanitize tags and elements */
|
|
8103
|
+
_sanitizeElements(currentNode);
|
|
8104
|
+
/* Check attributes next */
|
|
8105
|
+
_sanitizeAttributes(currentNode);
|
|
8106
|
+
/* Shadow DOM detected, sanitize it */
|
|
8107
|
+
if (currentNode.content instanceof DocumentFragment) {
|
|
8108
|
+
_sanitizeShadowDOM(currentNode.content);
|
|
8109
|
+
}
|
|
8110
|
+
}
|
|
8111
|
+
/* If we sanitized `dirty` in-place, return it. */
|
|
8112
|
+
if (IN_PLACE) {
|
|
8113
|
+
return dirty;
|
|
8114
|
+
}
|
|
8115
|
+
/* Return sanitized string or DOM */
|
|
8116
|
+
if (RETURN_DOM) {
|
|
8117
|
+
if (RETURN_DOM_FRAGMENT) {
|
|
8118
|
+
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
8119
|
+
while (body.firstChild) {
|
|
8120
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
|
8121
|
+
returnNode.appendChild(body.firstChild);
|
|
8122
|
+
}
|
|
8123
|
+
} else {
|
|
8124
|
+
returnNode = body;
|
|
8125
|
+
}
|
|
8126
|
+
if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
|
|
8127
|
+
/*
|
|
8128
|
+
AdoptNode() is not used because internal state is not reset
|
|
8129
|
+
(e.g. the past names map of a HTMLFormElement), this is safe
|
|
8130
|
+
in theory but we would rather not risk another attack vector.
|
|
8131
|
+
The state that is cloned by importNode() is explicitly defined
|
|
8132
|
+
by the specs.
|
|
8133
|
+
*/
|
|
8134
|
+
returnNode = importNode.call(originalDocument, returnNode, true);
|
|
8135
|
+
}
|
|
8136
|
+
return returnNode;
|
|
8137
|
+
}
|
|
8138
|
+
let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
|
|
8139
|
+
/* Serialize doctype if allowed */
|
|
8140
|
+
if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
|
|
8141
|
+
serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
|
|
8142
|
+
}
|
|
8143
|
+
/* Sanitize final string template-safe */
|
|
8144
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
8145
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
8146
|
+
serializedHTML = stringReplace(serializedHTML, expr, ' ');
|
|
8147
|
+
});
|
|
8148
|
+
}
|
|
8149
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
|
|
8150
|
+
};
|
|
8151
|
+
DOMPurify.setConfig = function () {
|
|
8152
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8153
|
+
_parseConfig(cfg);
|
|
8154
|
+
SET_CONFIG = true;
|
|
8155
|
+
};
|
|
8156
|
+
DOMPurify.clearConfig = function () {
|
|
8157
|
+
CONFIG = null;
|
|
8158
|
+
SET_CONFIG = false;
|
|
8159
|
+
};
|
|
8160
|
+
DOMPurify.isValidAttribute = function (tag, attr, value) {
|
|
8161
|
+
/* Initialize shared config vars if necessary. */
|
|
8162
|
+
if (!CONFIG) {
|
|
8163
|
+
_parseConfig({});
|
|
8164
|
+
}
|
|
8165
|
+
const lcTag = transformCaseFunc(tag);
|
|
8166
|
+
const lcName = transformCaseFunc(attr);
|
|
8167
|
+
return _isValidAttribute(lcTag, lcName, value);
|
|
8168
|
+
};
|
|
8169
|
+
DOMPurify.addHook = function (entryPoint, hookFunction) {
|
|
8170
|
+
if (typeof hookFunction !== 'function') {
|
|
8171
|
+
return;
|
|
8172
|
+
}
|
|
8173
|
+
arrayPush(hooks[entryPoint], hookFunction);
|
|
8174
|
+
};
|
|
8175
|
+
DOMPurify.removeHook = function (entryPoint, hookFunction) {
|
|
8176
|
+
if (hookFunction !== undefined) {
|
|
8177
|
+
const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
|
|
8178
|
+
return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0];
|
|
8179
|
+
}
|
|
8180
|
+
return arrayPop(hooks[entryPoint]);
|
|
8181
|
+
};
|
|
8182
|
+
DOMPurify.removeHooks = function (entryPoint) {
|
|
8183
|
+
hooks[entryPoint] = [];
|
|
8184
|
+
};
|
|
8185
|
+
DOMPurify.removeAllHooks = function () {
|
|
8186
|
+
hooks = _createHooksMap();
|
|
8187
|
+
};
|
|
8188
|
+
return DOMPurify;
|
|
8189
|
+
}
|
|
8190
|
+
var purify = createDOMPurify();
|
|
8191
|
+
|
|
8192
|
+
return purify;
|
|
8193
|
+
|
|
8194
|
+
}));
|
|
8195
|
+
|
|
8196
|
+
}(purify));
|
|
8197
|
+
|
|
8198
|
+
var purifier = purify.exports;
|
|
8199
|
+
|
|
8200
|
+
const IC_CUSTOM_ALLOWED_COMPONENTS = [];
|
|
8201
|
+
|
|
8202
|
+
/* istanbul ignore next */
|
|
8203
|
+
const getCustomElementHandling$1 = (allowICPrefix) => ({
|
|
8204
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
8205
|
+
tagNameCheck: (tagName) => (allowICPrefix && tagName.startsWith("ic-")) ||
|
|
8206
|
+
IC_CUSTOM_ALLOWED_COMPONENTS.includes(tagName),
|
|
8207
|
+
attributeNameCheck: /.*/,
|
|
8208
|
+
},
|
|
8209
|
+
});
|
|
8210
|
+
const sanitizeHTMLIconString$1 = (html) => {
|
|
8211
|
+
return purifier.sanitize(html, getCustomElementHandling$1(false));
|
|
8212
|
+
};
|
|
8213
|
+
|
|
6831
8214
|
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}}";
|
|
6832
8215
|
var IcDataTableStyle0 = icDataTableCss;
|
|
6833
8216
|
|
|
@@ -7413,10 +8796,7 @@ class DataTable {
|
|
|
7413
8796
|
};
|
|
7414
8797
|
this.createCellContent = (columnProps, cell, cellSlotName, hasIcon, cellValue, rowOptions, currentRowHeight) => {
|
|
7415
8798
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
7416
|
-
return (hAsync("div", {
|
|
7417
|
-
!isSlotUsed(this.el, cellSlotName)
|
|
7418
|
-
? cell
|
|
7419
|
-
: 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) ||
|
|
8799
|
+
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) ||
|
|
7420
8800
|
((_c = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _c === void 0 ? void 0 : _c.horizontal) ||
|
|
7421
8801
|
this.getCellAlignment(cell, "horizontal")}`]: !!((_d = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _d === void 0 ? void 0 : _d.horizontal) ||
|
|
7422
8802
|
!!((_e = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
|
|
@@ -7429,7 +8809,8 @@ class DataTable {
|
|
|
7429
8809
|
!!(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
|
|
7430
8810
|
? this.setRowHeight(currentRowHeight)
|
|
7431
8811
|
: 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)) &&
|
|
7432
|
-
(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")
|
|
8812
|
+
(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")) ||
|
|
8813
|
+
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" &&
|
|
7433
8814
|
!isSlotUsed(this.el, cellSlotName) && (hAsync("div", { class: {
|
|
7434
8815
|
"cell-text-wrapper": true,
|
|
7435
8816
|
"cell-text-no-wrap": !this.truncationPattern,
|
|
@@ -7444,7 +8825,7 @@ class DataTable {
|
|
|
7444
8825
|
Object.keys(cell).includes("description") && (hAsync("div", { class: {
|
|
7445
8826
|
["cell-description"]: true,
|
|
7446
8827
|
[`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true,
|
|
7447
|
-
} }, ((_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"))))))))));
|
|
8828
|
+
} }, ((_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"))))))))));
|
|
7448
8829
|
};
|
|
7449
8830
|
this.createCells = (row, rowIndex) => {
|
|
7450
8831
|
var _a;
|
|
@@ -7490,7 +8871,7 @@ class DataTable {
|
|
|
7490
8871
|
"truncation-tooltip": this.columnHeaderTruncation,
|
|
7491
8872
|
[`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
|
|
7492
8873
|
} }, isSlotUsed(this.el, `${key}-column-icon`) ? (hAsync("slot", { name: `${key}-column-icon` })) : (icon &&
|
|
7493
|
-
!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: {
|
|
8874
|
+
!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: {
|
|
7494
8875
|
["column-header-text"]: true,
|
|
7495
8876
|
[`text-${this.density}`]: this.notDefaultDensity(),
|
|
7496
8877
|
} }, title))) : (hAsync("ic-typography", { variant: "body", class: {
|
|
@@ -8167,22 +9548,22 @@ class DataTable {
|
|
|
8167
9548
|
? "deselect all"
|
|
8168
9549
|
: "select all remaining"
|
|
8169
9550
|
: "select all";
|
|
8170
|
-
return (hAsync(Host, { key: '
|
|
9551
|
+
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: {
|
|
8171
9552
|
["table-row-container"]: true,
|
|
8172
9553
|
scrollable,
|
|
8173
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '
|
|
9554
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: 'eff477957c0785a651c480b4e9ddd88534563a81', style: {
|
|
8174
9555
|
"--table-layout": tableLayout,
|
|
8175
|
-
} }, hAsync("caption", { key: '
|
|
9556
|
+
} }, hAsync("caption", { key: 'e41a3f6133cb02f96e2fd537cdcb24c3467e92a6', class: "table-caption" }, caption), !hideColumnHeaders && (hAsync("thead", { key: 'b36805140e81e3e3a9fd065792c0ac514d64ae16', class: {
|
|
8176
9557
|
["column-header-sticky"]: stickyColumnHeaders,
|
|
8177
9558
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
|
8178
|
-
} }, hAsync("tr", { key: '
|
|
9559
|
+
} }, hAsync("tr", { key: '7b377adb333d251f84400dd6aa499dfa1fa3df6d' }, rowSelection && data && (hAsync("th", { key: 'ab9831b9c3f4e4b96c5223961753506ce0629cc1', class: {
|
|
8179
9560
|
"column-header": true,
|
|
8180
9561
|
"checkbox-cell": true,
|
|
8181
9562
|
"updating-state-headers": updating && !loading,
|
|
8182
9563
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
|
8183
|
-
} }, hAsync("div", { key: '
|
|
9564
|
+
} }, 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 &&
|
|
8184
9565
|
!loading &&
|
|
8185
|
-
(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: '
|
|
9566
|
+
(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
|
|
8186
9567
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
|
8187
9568
|
sortedColumn} sorted ${sortedColumnOrder}`
|
|
8188
9569
|
: "table unsorted")))));
|
|
@@ -8414,7 +9795,7 @@ var Calendar = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" v
|
|
|
8414
9795
|
<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"/>
|
|
8415
9796
|
</svg>`;
|
|
8416
9797
|
|
|
8417
|
-
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)}";
|
|
9798
|
+
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}}";
|
|
8418
9799
|
var IcDateInputStyle0 = icDateInputCss;
|
|
8419
9800
|
|
|
8420
9801
|
let inputIds$5 = 0;
|
|
@@ -9032,9 +10413,9 @@ class DateInput {
|
|
|
9032
10413
|
// Get input based on letter representing each date part ("D", "M" or "Y")
|
|
9033
10414
|
// (retrieved from dateFormat)
|
|
9034
10415
|
this.getInputFromDatePart = (datePart) => {
|
|
9035
|
-
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) }));
|
|
9036
|
-
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) }));
|
|
9037
|
-
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) }));
|
|
10416
|
+
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) }));
|
|
10417
|
+
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) }));
|
|
10418
|
+
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) }));
|
|
9038
10419
|
let input;
|
|
9039
10420
|
switch (datePart) {
|
|
9040
10421
|
case "D":
|
|
@@ -9585,15 +10966,15 @@ class DateInput {
|
|
|
9585
10966
|
: "";
|
|
9586
10967
|
const assistiveHint = `Type or use the up and down arrow keys to change the values for the ${this.getDescOfInputsOrder()}.`;
|
|
9587
10968
|
renderHiddenInput(true, this.el, this.name, this.convertToDate(this.year, this.month, this.day), this.disabled);
|
|
9588
|
-
return (hAsync(Host, { key: '
|
|
10969
|
+
return (hAsync(Host, { key: '7ced152386fffdfcd023d8ded5a0eb1733c7013a', class: {
|
|
9589
10970
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
9590
10971
|
[`ic-date-input-disabled`]: disabled,
|
|
9591
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
|
10972
|
+
}, 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: {
|
|
9592
10973
|
["clear-button"]: true,
|
|
9593
10974
|
["hidden"]: isEmptyString(this.day) &&
|
|
9594
10975
|
isEmptyString(this.month) &&
|
|
9595
10976
|
isEmptyString(this.year),
|
|
9596
|
-
}, 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: '
|
|
10977
|
+
}, 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 })))));
|
|
9597
10978
|
}
|
|
9598
10979
|
static get delegatesFocus() { return true; }
|
|
9599
10980
|
get el() { return getElement(this); }
|
|
@@ -10909,6 +12290,7 @@ class Dialog {
|
|
|
10909
12290
|
this.IC_ACCORDION_GROUP = "IC-ACCORDION-GROUP";
|
|
10910
12291
|
this.IC_CHECKBOX = "IC-CHECKBOX";
|
|
10911
12292
|
this.IC_SEARCH_BAR = "IC-SEARCH-BAR";
|
|
12293
|
+
this.IC_TAB_CONTEXT = "IC-TAB-CONTEXT";
|
|
10912
12294
|
this.resizeObserver = null;
|
|
10913
12295
|
this.dialogRendered = false;
|
|
10914
12296
|
this.fadeIn = false;
|
|
@@ -11049,7 +12431,7 @@ class Dialog {
|
|
|
11049
12431
|
var _a;
|
|
11050
12432
|
this.interactiveElementList = Array.from(((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll("ic-button")) || []);
|
|
11051
12433
|
const slottedInteractiveElements = Array.from(this.el.querySelectorAll(`a[href], button, input:not(.ic-input), textarea, select, details, [tabindex]:not([tabindex="-1"]),
|
|
11052
|
-
ic-button, ic-checkbox, ic-select, ic-search-bar, ic-tab-
|
|
12434
|
+
ic-button, ic-checkbox, ic-select, ic-search-bar, ic-tab-context,
|
|
11053
12435
|
ic-back-to-top, ic-breadcrumb, ic-chip[dismissible="true"], ic-footer-link, ic-link, ic-navigation-button,
|
|
11054
12436
|
ic-navigation-item, ic-switch, ic-text-field, ic-accordion-group, ic-accordion, ic-date-input, ic-date-picker`));
|
|
11055
12437
|
if (slottedInteractiveElements.length > 0) {
|
|
@@ -11103,6 +12485,7 @@ class Dialog {
|
|
|
11103
12485
|
case this.IC_SEARCH_BAR:
|
|
11104
12486
|
case this.IC_TEXT_FIELD:
|
|
11105
12487
|
case this.IC_CHECKBOX:
|
|
12488
|
+
case this.IC_TAB_CONTEXT:
|
|
11106
12489
|
element.setFocus();
|
|
11107
12490
|
break;
|
|
11108
12491
|
default:
|
|
@@ -11118,7 +12501,7 @@ class Dialog {
|
|
|
11118
12501
|
[`${size}`]: true,
|
|
11119
12502
|
"disable-height-constraint": !!disableHeightConstraint,
|
|
11120
12503
|
"disable-width-constraint": !!disableWidthConstraint,
|
|
11121
|
-
}, "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)
|
|
12504
|
+
}, "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)
|
|
11122
12505
|
? ""
|
|
11123
12506
|
: 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: {
|
|
11124
12507
|
[DIALOG_CONTROLS]: true,
|
|
@@ -11224,7 +12607,7 @@ class Dialog {
|
|
|
11224
12607
|
}
|
|
11225
12608
|
render() {
|
|
11226
12609
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme } = this;
|
|
11227
|
-
return (hAsync(Host, { key: '
|
|
12610
|
+
return (hAsync(Host, { key: '6de63d3d94afa349dc9bb5b30296837bbf89f810', class: {
|
|
11228
12611
|
"ic-dialog-hidden": !dialogRendered,
|
|
11229
12612
|
"ic-dialog-fade-in": fadeIn,
|
|
11230
12613
|
"disable-height-constraint": !!disableHeightConstraint,
|
|
@@ -11424,11 +12807,11 @@ class EmptyState {
|
|
|
11424
12807
|
}
|
|
11425
12808
|
render() {
|
|
11426
12809
|
const { aligned, body, maxLines, heading, imageSize, subheading, theme } = this;
|
|
11427
|
-
return (hAsync(Host, { key: '
|
|
12810
|
+
return (hAsync(Host, { key: 'd1f0ef089d59f00d57b70a44c22f248ce12314fa', class: {
|
|
11428
12811
|
[`ic-empty-state-${aligned}`]: true,
|
|
11429
12812
|
[`image-${imageSize}`]: isSlotUsed$1(this.el, "image"),
|
|
11430
12813
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
11431
|
-
} }, isSlotUsed$1(this.el, "image") && hAsync("slot", { key: '
|
|
12814
|
+
} }, 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" })))));
|
|
11432
12815
|
}
|
|
11433
12816
|
get el() { return getElement(this); }
|
|
11434
12817
|
static get style() { return IcEmptyStateStyle0; }
|
|
@@ -11621,12 +13004,12 @@ class FooterLink {
|
|
|
11621
13004
|
const { footerConfig, href, hreflang, referrerpolicy, rel, target, download, } = this;
|
|
11622
13005
|
const { small, grouped } = footerConfig;
|
|
11623
13006
|
const isLogoLink = !!this.el.closest("div[slot='logo']");
|
|
11624
|
-
return (hAsync(Host, { key: '
|
|
13007
|
+
return (hAsync(Host, { key: 'da89e5595b7e1b6308d72243462bd0a2f989b501', class: {
|
|
11625
13008
|
"footer-link": true,
|
|
11626
13009
|
[`footer-link-${grouped ? "grouped" : "ungrouped"}-${small ? "small" : "sparse"}`]: true,
|
|
11627
13010
|
[`footer-link-${this.foregroundColor}`]: true,
|
|
11628
13011
|
"footer-logo-link": isLogoLink,
|
|
11629
|
-
}, role: "listitem" }, hAsync("ic-link", { key: '
|
|
13012
|
+
}, 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' }))));
|
|
11630
13013
|
}
|
|
11631
13014
|
static get delegatesFocus() { return true; }
|
|
11632
13015
|
get el() { return getElement(this); }
|
|
@@ -11801,18 +13184,18 @@ class Hero {
|
|
|
11801
13184
|
"background-position": scrollFactor,
|
|
11802
13185
|
};
|
|
11803
13186
|
}
|
|
11804
|
-
return (hAsync(Host, { key: '
|
|
13187
|
+
return (hAsync(Host, { key: 'aee3d892e9e8aeda5b348da837eee5c8c1e8735a', class: {
|
|
11805
13188
|
[`ic-hero-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
|
11806
13189
|
["has-background-image"]: backgroundImage !== undefined,
|
|
11807
13190
|
["has-right-content"]: this.rightContent,
|
|
11808
13191
|
["ic-hero-small"]: size === "small",
|
|
11809
13192
|
["secondary-heading"]: !!secondaryHeading,
|
|
11810
|
-
}, style: style }, hAsync("ic-section-container", { key: '
|
|
13193
|
+
}, style: style }, hAsync("ic-section-container", { key: '6f588f23372a118fbf316d0c5202d17af21f4e43', aligned: aligned, fullHeight: true, class: "section-container" }, hAsync("div", { key: '1c34b2d8b07a045c1c801d99b4e1d707e1a99e88', class: {
|
|
11811
13194
|
["left-container"]: true,
|
|
11812
13195
|
["left-container-full-width"]: this.leftContentFullWidth,
|
|
11813
|
-
} }, hAsync("div", { key: '
|
|
13196
|
+
} }, hAsync("div", { key: '72acdd6b683c699d5e799aa83546bde5b52962db', class: "heading" }, hAsync("slot", { key: '5915be3f3cd2a5329ba8beb46bc0b704693a7fec', name: "heading" }, hAsync("ic-typography", { key: 'f9b16a498674c7a29e669be2b63ae3d730cbacba', variant: size === "small" ? "h2" : "h1", class: {
|
|
11814
13197
|
["heading-bottom-spacing"]: size !== "small",
|
|
11815
|
-
} }, hAsync("h2", { key: '
|
|
13198
|
+
} }, 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))))))))));
|
|
11816
13199
|
}
|
|
11817
13200
|
get el() { return getElement(this); }
|
|
11818
13201
|
static get style() { return IcHeroStyle0; }
|
|
@@ -12003,22 +13386,22 @@ class HorizontalScroll {
|
|
|
12003
13386
|
}
|
|
12004
13387
|
render() {
|
|
12005
13388
|
const { firstItemVisible, lastItemVisible, itemOverflow } = this;
|
|
12006
|
-
return (hAsync(Host, { key: '
|
|
13389
|
+
return (hAsync(Host, { key: '70a4e7c8a5e6e69d64d78375798498b7807ae16a', class: {
|
|
12007
13390
|
["ic-horizontal-scroll-visible"]: itemOverflow,
|
|
12008
13391
|
["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum$1.Dark,
|
|
12009
13392
|
["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum$1.Light,
|
|
12010
13393
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
12011
|
-
} }, hAsync("div", { key: '
|
|
13394
|
+
} }, hAsync("div", { key: '586bf3284c05ffad1ebd3c61e44e992aa9d71c25', "aria-hidden": "true", class: {
|
|
12012
13395
|
["scroll-container-left"]: true,
|
|
12013
13396
|
["hidden"]: !itemOverflow,
|
|
12014
13397
|
["disabled"]: firstItemVisible,
|
|
12015
|
-
}, role: "tab" }, hAsync("ic-button", { key: '
|
|
13398
|
+
}, role: "tab" }, hAsync("ic-button", { key: '0125b0d48b7ae82fb580bc890450d1fb14f71a5f', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
|
|
12016
13399
|
? "dark"
|
|
12017
|
-
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: '
|
|
13400
|
+
: "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: {
|
|
12018
13401
|
["scroll-container-right"]: true,
|
|
12019
13402
|
["hidden"]: !itemOverflow,
|
|
12020
13403
|
["disabled"]: lastItemVisible,
|
|
12021
|
-
}, role: "tab" }, hAsync("span", { key: '
|
|
13404
|
+
}, 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"
|
|
12022
13405
|
? "dark"
|
|
12023
13406
|
: "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
|
|
12024
13407
|
}
|
|
@@ -12093,15 +13476,15 @@ class InputComponentContainer {
|
|
|
12093
13476
|
}
|
|
12094
13477
|
render() {
|
|
12095
13478
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
|
12096
|
-
return (hAsync(Host, { key: '
|
|
13479
|
+
return (hAsync(Host, { key: '82e6604ab956d7648209ae1214797d48ce4a169c', class: {
|
|
12097
13480
|
[`ic-input-component-container-${size}`]: true,
|
|
12098
13481
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
|
12099
13482
|
"ic-input-component-container-disabled": !!disabled,
|
|
12100
13483
|
"ic-input-component-container-readonly": !!readonly,
|
|
12101
13484
|
"ic-input-component-container-multiline": !!multiLine,
|
|
12102
13485
|
"ic-input-component-container-full-width": !!fullWidth,
|
|
12103
|
-
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '
|
|
12104
|
-
validationStatus === IcInformationStatus$1.Success && (hAsync("span", { key: '
|
|
13486
|
+
}, "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 &&
|
|
13487
|
+
validationStatus === IcInformationStatus$1.Success && (hAsync("span", { key: 'ac962172c01b7cc0abf776b7a5ff0e58cd996ad7', class: "inline-success", innerHTML: successIcon })))));
|
|
12105
13488
|
}
|
|
12106
13489
|
get el() { return getElement(this); }
|
|
12107
13490
|
static get watchers() { return {
|
|
@@ -12142,11 +13525,11 @@ class InputContainer {
|
|
|
12142
13525
|
this.readonly = false;
|
|
12143
13526
|
}
|
|
12144
13527
|
render() {
|
|
12145
|
-
return (hAsync(Host, { key: '
|
|
13528
|
+
return (hAsync(Host, { key: 'd7a6f03073013efef8534f6305e64f66d2b58b91' }, hAsync("div", { key: 'f93b5ad4fc27eed8fabf3fd83de73906b4592ca4', class: {
|
|
12146
13529
|
["component-container"]: true,
|
|
12147
13530
|
["disabled"]: !!this.disabled,
|
|
12148
13531
|
["readonly"]: !!this.readonly,
|
|
12149
|
-
} }, hAsync("slot", { key: '
|
|
13532
|
+
} }, hAsync("slot", { key: '59074f71d915aebc3205308c0406b4f6ab2a73ae' }))));
|
|
12150
13533
|
}
|
|
12151
13534
|
static get style() { return IcInputContainerStyle0; }
|
|
12152
13535
|
static get cmpMeta() { return {
|
|
@@ -12229,11 +13612,11 @@ class InputLabel {
|
|
|
12229
13612
|
"helpertext-readonly": readonly,
|
|
12230
13613
|
};
|
|
12231
13614
|
const helperTextSlot = this.el.querySelector("slot[name='helper-text']");
|
|
12232
|
-
return (hAsync(Host, { key: '
|
|
13615
|
+
return (hAsync(Host, { key: 'b4ae951684bc9fbacd077fd7586a60a680cb1114', class: {
|
|
12233
13616
|
"ic-input-label-disabled": !!disabled,
|
|
12234
13617
|
"ic-input-label-readonly": readonly,
|
|
12235
13618
|
"with-helper": this.isHelperTextSlotUsed(helperTextSlot) || helperText !== "",
|
|
12236
|
-
} }, !hideLabel && (hAsync("ic-typography", { key: '
|
|
13619
|
+
} }, !hideLabel && (hAsync("ic-typography", { key: 'dd5d6d73707aadd9cc59225224fffadefecda9c7', variant: "label", class: {
|
|
12237
13620
|
"readonly-label": readonly,
|
|
12238
13621
|
"error-label": status === "error" && !(readonly || disabled),
|
|
12239
13622
|
} }, 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))))));
|
|
@@ -12260,14 +13643,15 @@ class InputLabel {
|
|
|
12260
13643
|
}; }
|
|
12261
13644
|
}
|
|
12262
13645
|
|
|
12263
|
-
const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);margin-top:var(--ic-space-xs)
|
|
13646
|
+
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}";
|
|
12264
13647
|
var IcInputValidationStyle0 = icInputValidationCss;
|
|
12265
13648
|
|
|
12266
|
-
const
|
|
13649
|
+
const ICON = {
|
|
12267
13650
|
[IcInformationStatus$1.Warning]: warningIcon$1,
|
|
12268
13651
|
[IcInformationStatus$1.Error]: errorIcon,
|
|
12269
13652
|
[IcInformationStatus$1.Success]: successIcon,
|
|
12270
13653
|
};
|
|
13654
|
+
const INVISIBLE_CHAR = "\u200B";
|
|
12271
13655
|
/**
|
|
12272
13656
|
* @slot validation-message-adornment - Content will be placed to the right of the validation message.
|
|
12273
13657
|
*/
|
|
@@ -12287,21 +13671,34 @@ class InputValidation {
|
|
|
12287
13671
|
*/
|
|
12288
13672
|
this.status = "";
|
|
12289
13673
|
}
|
|
13674
|
+
watchMessageHandler(newValue) {
|
|
13675
|
+
// Force detectable DOM changes
|
|
13676
|
+
// Invisible character used as screen readers can ignore whitespace changes e.g. "" and " "
|
|
13677
|
+
this.messageEl.textContent = INVISIBLE_CHAR;
|
|
13678
|
+
setTimeout(() => {
|
|
13679
|
+
this.messageEl.textContent = newValue;
|
|
13680
|
+
}, 200); // Delay to help ensure screen readers detect change
|
|
13681
|
+
}
|
|
12290
13682
|
componentDidLoad() {
|
|
12291
13683
|
onComponentRequiredPropUndefined$1([{ prop: this.message, propName: "message" }], "Input Validation");
|
|
13684
|
+
this.messageEl.textContent = INVISIBLE_CHAR;
|
|
12292
13685
|
}
|
|
12293
13686
|
render() {
|
|
12294
13687
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
|
12295
|
-
const displayIcon = status !== "" ?
|
|
12296
|
-
return (hAsync(Host, { key: '
|
|
13688
|
+
const displayIcon = status !== "" ? ICON[status] : "";
|
|
13689
|
+
return (hAsync(Host, { key: 'f1ba7e992a65cbd63d86411844668a0db4944cf2', class: {
|
|
12297
13690
|
[`ic-input-validation-${status}`]: status !== "",
|
|
12298
13691
|
"ic-input-validation-full-width": !!fullWidth,
|
|
12299
|
-
|
|
13692
|
+
"ic-input-validation-with-status": status !== "",
|
|
13693
|
+
} }, displayIcon !== "" && (hAsync("span", { key: '43bf05c319e9f4cdb7f6e5affd403d745b7dac00', class: {
|
|
12300
13694
|
"status-icon": true,
|
|
12301
13695
|
[`icon-${status}`]: true,
|
|
12302
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
|
13696
|
+
}, 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" })));
|
|
12303
13697
|
}
|
|
12304
13698
|
get el() { return getElement(this); }
|
|
13699
|
+
static get watchers() { return {
|
|
13700
|
+
"message": ["watchMessageHandler"]
|
|
13701
|
+
}; }
|
|
12305
13702
|
static get style() { return IcInputValidationStyle0; }
|
|
12306
13703
|
static get cmpMeta() { return {
|
|
12307
13704
|
"$flags$": 4,
|
|
@@ -12448,10 +13845,10 @@ class LayoutGrid {
|
|
|
12448
13845
|
}
|
|
12449
13846
|
render() {
|
|
12450
13847
|
const { aligned, fullHeight } = this;
|
|
12451
|
-
return (hAsync(Host, { key: '
|
|
13848
|
+
return (hAsync(Host, { key: 'c7903c71e7a267ce14d624e371128b66b990319e', class: {
|
|
12452
13849
|
[`ic-layout-grid-aligned-${aligned}`]: true,
|
|
12453
13850
|
["ic-layout-grid-no-vertical-padding"]: !!fullHeight,
|
|
12454
|
-
} }, hAsync("slot", { key: '
|
|
13851
|
+
} }, hAsync("slot", { key: '7d501b244c1e6631ac1f712707b816be89014298' })));
|
|
12455
13852
|
}
|
|
12456
13853
|
get el() { return getElement(this); }
|
|
12457
13854
|
static get watchers() { return {
|
|
@@ -12531,9 +13928,9 @@ class LayoutGridItem {
|
|
|
12531
13928
|
}
|
|
12532
13929
|
render() {
|
|
12533
13930
|
const { hideInMobileMode } = this;
|
|
12534
|
-
return (hAsync(Host, { key: '
|
|
13931
|
+
return (hAsync(Host, { key: 'a6e63c7a2e569fefef8bd1f801719ec0cfc999f2', class: {
|
|
12535
13932
|
"ic-layout-grid-hide-in-mobile": !!hideInMobileMode,
|
|
12536
|
-
} }, hAsync("slot", { key: '
|
|
13933
|
+
} }, hAsync("slot", { key: '976299cc75e2a275ce07dc9bb4ccde082c559175' })));
|
|
12537
13934
|
}
|
|
12538
13935
|
get el() { return getElement(this); }
|
|
12539
13936
|
static get watchers() { return {
|
|
@@ -12646,7 +14043,7 @@ class Link {
|
|
|
12646
14043
|
}
|
|
12647
14044
|
render() {
|
|
12648
14045
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
|
12649
|
-
return (hAsync(Host, { key: '
|
|
14046
|
+
return (hAsync(Host, { key: '17cbca6abdc9b48879a9d307c5bb73fada03aa2d', class: {
|
|
12650
14047
|
["ic-link"]: true,
|
|
12651
14048
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
12652
14049
|
["ic-link-monochrome"]: !!monochrome,
|
|
@@ -12861,23 +14258,23 @@ class LoadingIndicator {
|
|
|
12861
14258
|
}
|
|
12862
14259
|
render() {
|
|
12863
14260
|
const { circularDiameter, circularDimensions: { x, y, r, dashArray, dashOffset }, description, fullWidth, indicatorLabel, innerLabel, label, max, min, monochrome, progress, size, theme, type, } = this;
|
|
12864
|
-
return (hAsync(Host, { key: '
|
|
14261
|
+
return (hAsync(Host, { key: '8e5015de29e0c003ae813d95e215031276669fed', class: {
|
|
12865
14262
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
12866
14263
|
"ic-loading-indicator-full-width": fullWidth,
|
|
12867
14264
|
"ic-loading-indicator-label": !!label,
|
|
12868
14265
|
"ic-loading-indicator-monochrome": monochrome,
|
|
12869
|
-
} }, hAsync("div", { key: '
|
|
14266
|
+
} }, hAsync("div", { key: 'fdd7384e07827cfc6f32cd7f7fde71807a441e7d', class: "ic-loading-container", part: "ic-loading-container" }, hAsync("div", { key: 'dd4b7dae54199c8313a6bd9c5a2133b11de29b57', ref: (el) => (this.outerElement = el), class: {
|
|
12870
14267
|
[`ic-loading-${type}-outer`]: true,
|
|
12871
14268
|
[progress === undefined ? "indeterminate" : "determinate"]: true,
|
|
12872
|
-
}, 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: '
|
|
14269
|
+
}, 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: {
|
|
12873
14270
|
[`ic-loading-${type}-inner`]: true,
|
|
12874
14271
|
"inner-label": !!innerLabel,
|
|
12875
|
-
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: '
|
|
14272
|
+
} }, 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: {
|
|
12876
14273
|
"--circular-steps-max": progress ? `${max}` : undefined,
|
|
12877
14274
|
"--progress-value": progress !== undefined ? `${progress}` : undefined,
|
|
12878
14275
|
"--stroke-dasharray": dashArray,
|
|
12879
14276
|
"--stroke-dashoffset": dashOffset,
|
|
12880
|
-
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: '
|
|
14277
|
+
}, 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))))));
|
|
12881
14278
|
}
|
|
12882
14279
|
get el() { return getElement(this); }
|
|
12883
14280
|
static get watchers() { return {
|
|
@@ -14712,7 +16109,22 @@ var checkIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2
|
|
|
14712
16109
|
</svg>
|
|
14713
16110
|
`;
|
|
14714
16111
|
|
|
14715
|
-
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}}";
|
|
16112
|
+
/* istanbul ignore next */
|
|
16113
|
+
const getCustomElementHandling = (allowICPrefix) => ({
|
|
16114
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
16115
|
+
tagNameCheck: (tagName) => (allowICPrefix && tagName.startsWith("ic-")) ||
|
|
16116
|
+
IC_CUSTOM_ALLOWED_COMPONENTS$1.includes(tagName),
|
|
16117
|
+
attributeNameCheck: /.*/,
|
|
16118
|
+
},
|
|
16119
|
+
});
|
|
16120
|
+
const sanitizeHTMLString = (html) => {
|
|
16121
|
+
return purifier.sanitize(html, getCustomElementHandling(true));
|
|
16122
|
+
};
|
|
16123
|
+
const sanitizeHTMLIconString = (html) => {
|
|
16124
|
+
return purifier.sanitize(html, getCustomElementHandling(false));
|
|
16125
|
+
};
|
|
16126
|
+
|
|
16127
|
+
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}}";
|
|
14716
16128
|
var IcMenuStyle0 = icMenuCss;
|
|
14717
16129
|
|
|
14718
16130
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -15446,7 +16858,7 @@ class Menu {
|
|
|
15446
16858
|
return (hAsync(Fragment, null, option.loading && hAsync("ic-loading-indicator", { size: "icon" }), hAsync("div", { class: {
|
|
15447
16859
|
"option-text-container": true,
|
|
15448
16860
|
"show-check-icon": showCheckIcon,
|
|
15449
|
-
} }, 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 })));
|
|
16861
|
+
} }, 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 })));
|
|
15450
16862
|
};
|
|
15451
16863
|
this.displayOption = (option, selected, index, parentOption) => {
|
|
15452
16864
|
const { open, keyboardNav, isManualMode, initialOptionsListRender, optionHighlighted, options, } = this;
|
|
@@ -15468,7 +16880,7 @@ class Menu {
|
|
|
15468
16880
|
? "0"
|
|
15469
16881
|
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": selected ? "true" : "false", "aria-disabled": option.disabled ? "true" : "false", onClick: !option.timedOut && !option.loading
|
|
15470
16882
|
? this.handleOptionClick
|
|
15471
|
-
: 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",
|
|
16883
|
+
: 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))));
|
|
15472
16884
|
};
|
|
15473
16885
|
}
|
|
15474
16886
|
watchOpenHandler() {
|
|
@@ -15635,7 +17047,7 @@ class Menu {
|
|
|
15635
17047
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
|
15636
17048
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
|
15637
17049
|
const hasNoResults = this.host.classList.contains("no-results");
|
|
15638
|
-
return (hAsync(Host, { key: '
|
|
17050
|
+
return (hAsync(Host, { key: 'e17a70bcf59709dd5b9d0cc7b404520ff06bcf35', class: {
|
|
15639
17051
|
"ic-menu-full-width": !!fullWidth,
|
|
15640
17052
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
|
15641
17053
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
|
@@ -15644,7 +17056,7 @@ class Menu {
|
|
|
15644
17056
|
[`ic-menu-${size}`]: true,
|
|
15645
17057
|
"ic-menu-open": open && options.length !== 0,
|
|
15646
17058
|
"ic-menu-multiple": multiSelect,
|
|
15647
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
|
17059
|
+
} }, 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 &&
|
|
15648
17060
|
!keyboardNav &&
|
|
15649
17061
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
|
15650
17062
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
|
@@ -15672,7 +17084,7 @@ class Menu {
|
|
|
15672
17084
|
multiSelect &&
|
|
15673
17085
|
!isLoading &&
|
|
15674
17086
|
!hasTimedOut &&
|
|
15675
|
-
!hasNoResults && (hAsync("div", { key: '
|
|
17087
|
+
!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)))));
|
|
15676
17088
|
}
|
|
15677
17089
|
get host() { return getElement(this); }
|
|
15678
17090
|
static get watchers() { return {
|
|
@@ -15732,7 +17144,7 @@ class MenuGroup {
|
|
|
15732
17144
|
}
|
|
15733
17145
|
render() {
|
|
15734
17146
|
const parentMenu = this.el.closest("ic-popover-menu");
|
|
15735
|
-
return (hAsync(Host, { key: '
|
|
17147
|
+
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' }))));
|
|
15736
17148
|
}
|
|
15737
17149
|
get el() { return getElement(this); }
|
|
15738
17150
|
static get style() { return IcMenuGroupStyle0; }
|
|
@@ -16279,7 +17691,7 @@ class NavigationGroup {
|
|
|
16279
17691
|
const isTopNav = this.navigationType === "top";
|
|
16280
17692
|
const isTopNavDesktop = !inTopNavSideMenu && isTopNav;
|
|
16281
17693
|
const ariaExpanded = (isSideNav && expanded) || (isTopNav && dropdownOpen);
|
|
16282
|
-
return (hAsync(Host, { key: '
|
|
17694
|
+
return (hAsync(Host, { key: '393cd6fdb52feac00792c6045472ffb466c45663', class: {
|
|
16283
17695
|
"in-side-menu": inTopNavSideMenu,
|
|
16284
17696
|
"ic-navigation-group-expandable": expandable,
|
|
16285
17697
|
"ic-navigation-group-side-nav": isSideNav,
|
|
@@ -16704,16 +18116,16 @@ class NavigationMenu {
|
|
|
16704
18116
|
}
|
|
16705
18117
|
}
|
|
16706
18118
|
render() {
|
|
16707
|
-
return (hAsync(Host, { key: '
|
|
18119
|
+
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: {
|
|
16708
18120
|
["menu-close-button-container"]: true,
|
|
16709
18121
|
["nav-group-first"]: this.navGroupFirst,
|
|
16710
|
-
} }, hAsync("ic-button", { key: '
|
|
18122
|
+
} }, 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: {
|
|
16711
18123
|
["menu-buttons-container"]: true,
|
|
16712
18124
|
["menu-buttons-container-nav-item-above"]: this.navItemAboveButtons,
|
|
16713
|
-
} }, hAsync("slot", { key: '
|
|
18125
|
+
} }, hAsync("slot", { key: 'c5c8f1021794b892fbb72511bb01336a75ce0127', name: "buttons" }))), (this.status !== "" || this.version !== "") && (hAsync("div", { key: '2fd5a79a68bec985b82699c8ec6df946ac4a84e4', class: {
|
|
16714
18126
|
["menu-status-version-container"]: true,
|
|
16715
18127
|
["status-version-no-buttons"]: !this.hasButtons,
|
|
16716
|
-
} }, this.status !== "" && (hAsync("div", { key: '
|
|
18128
|
+
} }, 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))))))));
|
|
16717
18129
|
}
|
|
16718
18130
|
get el() { return getElement(this); }
|
|
16719
18131
|
static get style() { return IcNavigationMenuStyle0; }
|
|
@@ -16846,19 +18258,19 @@ class PageHeader {
|
|
|
16846
18258
|
const navAriaLabel = `${isSlotUsed$1(this.el, "heading")
|
|
16847
18259
|
? (_b = (_a = this.el.querySelector('[slot="heading"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : ""
|
|
16848
18260
|
: heading !== null && heading !== void 0 ? heading : ""} page sections`;
|
|
16849
|
-
return (hAsync(Host, { key: '
|
|
18261
|
+
return (hAsync(Host, { key: 'ef9b1c5acf30851bedddd8f840fae60b545dfd3f', class: {
|
|
16850
18262
|
["ic-page-header-sticky"]: !!sticky,
|
|
16851
18263
|
["ic-page-header-sticky-desktop"]: !sticky && !!stickyDesktopOnly,
|
|
16852
18264
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
16853
|
-
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: '
|
|
18265
|
+
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: 'e3f5ec39b13afbd9be424125fa43ea4634a90418', class: {
|
|
16854
18266
|
["border-bottom"]: !!border,
|
|
16855
18267
|
["tabs"]: isSlotUsed$1(this.el, "tabs"),
|
|
16856
|
-
}, role: "presentation" }, hAsync("ic-section-container", { key: '
|
|
18268
|
+
}, 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: {
|
|
16857
18269
|
["subheading-content"]: !!subheading || isSlotUsed$1(this.el, "subheading"),
|
|
16858
18270
|
["small"]: size === "small",
|
|
16859
|
-
} }, hAsync("slot", { key: '
|
|
16860
|
-
isSlotUsed$1(this.el, "tabs")) && (hAsync("div", { key: '
|
|
16861
|
-
!isSlotUsed$1(this.el, "tabs") && hAsync("slot", { key: '
|
|
18271
|
+
} }, 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") ||
|
|
18272
|
+
isSlotUsed$1(this.el, "tabs")) && (hAsync("div", { key: '9f527e5a1c67ec718a55fa4756249bb0f4c6a6fe', class: "navigation-area" }, isSlotUsed$1(this.el, "stepper") &&
|
|
18273
|
+
!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" })))))))))));
|
|
16862
18274
|
}
|
|
16863
18275
|
get el() { return getElement(this); }
|
|
16864
18276
|
static get style() { return IcPageHeaderStyle0; }
|
|
@@ -17136,14 +18548,14 @@ class Pagination {
|
|
|
17136
18548
|
}
|
|
17137
18549
|
render() {
|
|
17138
18550
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
|
17139
|
-
return (hAsync(Host, { key: '
|
|
18551
|
+
return (hAsync(Host, { key: 'fb99bef90dd70acdcc38a49c5ead06d6d8351ed4', class: {
|
|
17140
18552
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
17141
18553
|
["ic-pagination-monochrome"]: !!monochrome,
|
|
17142
|
-
} }, type === "simple" && (hAsync("nav", { key: '
|
|
18554
|
+
} }, type === "simple" && (hAsync("nav", { key: '5134a43228fbd8a137fd3e34607a1139bc09c9cc', class: {
|
|
17143
18555
|
["disabled"]: !!disabled,
|
|
17144
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '
|
|
18556
|
+
}, 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: {
|
|
17145
18557
|
["disabled"]: !!disabled,
|
|
17146
|
-
}, 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: '
|
|
18558
|
+
}, 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))));
|
|
17147
18559
|
}
|
|
17148
18560
|
get el() { return getElement(this); }
|
|
17149
18561
|
static get watchers() { return {
|
|
@@ -17257,6 +18669,17 @@ class PaginationBar {
|
|
|
17257
18669
|
If `true`, the pagination bar is set to the first page when the 'items per page' changes
|
|
17258
18670
|
*/
|
|
17259
18671
|
this.setToFirstPageOnPaginationChange = false;
|
|
18672
|
+
this.setSelectedItemsPerPage = (selectedItemsPerPage, displayedItemsPerPageOptions = []) => {
|
|
18673
|
+
var _a;
|
|
18674
|
+
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()); });
|
|
18675
|
+
if (isSelectedItemsPerPagePresent) {
|
|
18676
|
+
this.setItemsPerPage(selectedItemsPerPage, false);
|
|
18677
|
+
}
|
|
18678
|
+
else {
|
|
18679
|
+
console.error(`The selected items per page option "${this.selectedItemsPerPage}" does not exist`);
|
|
18680
|
+
this.setItemsPerPage(+((_a = displayedItemsPerPageOptions[0]) === null || _a === void 0 ? void 0 : _a.value), false);
|
|
18681
|
+
}
|
|
18682
|
+
};
|
|
17260
18683
|
this.changeItemsPerPage = () => {
|
|
17261
18684
|
this.setItemsPerPage(Number(this.pageDropdownEl.value));
|
|
17262
18685
|
this.userSetItemsPerPage = Number(this.pageDropdownEl.value);
|
|
@@ -17370,12 +18793,15 @@ class PaginationBar {
|
|
|
17370
18793
|
this.activePage = firstPage;
|
|
17371
18794
|
this.icPageChange.emit({ value: firstPage });
|
|
17372
18795
|
};
|
|
17373
|
-
this.setItemsPerPage = (newValue) => {
|
|
18796
|
+
this.setItemsPerPage = (newValue, isUserAction = true) => {
|
|
17374
18797
|
var _a;
|
|
17375
18798
|
if (this.itemsPerPage !== newValue) {
|
|
17376
18799
|
this.itemsPerPage = newValue;
|
|
17377
18800
|
this.itemsPerPageString = newValue.toString();
|
|
17378
|
-
this.icItemsPerPageChange.emit({
|
|
18801
|
+
this.icItemsPerPageChange.emit({
|
|
18802
|
+
value: this.itemsPerPage,
|
|
18803
|
+
isUserAction,
|
|
18804
|
+
});
|
|
17379
18805
|
if (this.setToFirstPageOnPaginationChange) {
|
|
17380
18806
|
this.setToFirstPage();
|
|
17381
18807
|
}
|
|
@@ -17422,13 +18848,19 @@ class PaginationBar {
|
|
|
17422
18848
|
this.setItemsPerPage(lastOptionValue);
|
|
17423
18849
|
}
|
|
17424
18850
|
else {
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
|
|
17428
|
-
}
|
|
17429
|
-
|
|
17430
|
-
|
|
17431
|
-
|
|
18851
|
+
if (this.selectedItemsPerPage !== null &&
|
|
18852
|
+
this.selectedItemsPerPage !== undefined) {
|
|
18853
|
+
this.setSelectedItemsPerPage(this.selectedItemsPerPage, this.displayedItemsPerPageOptions);
|
|
18854
|
+
}
|
|
18855
|
+
else {
|
|
18856
|
+
const updated = this.displayedItemsPerPageOptions.some(({ value }) => {
|
|
18857
|
+
lastOptionValue = Number(value);
|
|
18858
|
+
return this.itemsPerPage <= lastOptionValue;
|
|
18859
|
+
});
|
|
18860
|
+
this.setItemsPerPage(updated || (!updated && this.itemsPerPage > lastOptionValue)
|
|
18861
|
+
? lastOptionValue
|
|
18862
|
+
: this.itemsPerPage, false);
|
|
18863
|
+
}
|
|
17432
18864
|
}
|
|
17433
18865
|
};
|
|
17434
18866
|
this.setUpperBound = () => {
|
|
@@ -17448,15 +18880,9 @@ class PaginationBar {
|
|
|
17448
18880
|
}
|
|
17449
18881
|
}
|
|
17450
18882
|
watchSelectedItemsPerPageHandler() {
|
|
17451
|
-
var _a;
|
|
17452
18883
|
if (this.selectedItemsPerPage !== null &&
|
|
17453
18884
|
this.selectedItemsPerPage !== undefined) {
|
|
17454
|
-
|
|
17455
|
-
this.setItemsPerPage(this.selectedItemsPerPage);
|
|
17456
|
-
}
|
|
17457
|
-
else {
|
|
17458
|
-
console.error(`The selected items per page option "${this.selectedItemsPerPage}" does not exist`);
|
|
17459
|
-
}
|
|
18885
|
+
this.setSelectedItemsPerPage(this.selectedItemsPerPage, this.displayedItemsPerPageOptions);
|
|
17460
18886
|
}
|
|
17461
18887
|
}
|
|
17462
18888
|
watchItemLabelHandler() {
|
|
@@ -17487,7 +18913,6 @@ class PaginationBar {
|
|
|
17487
18913
|
this.watchPageLabelHandler();
|
|
17488
18914
|
this.watchItemLabelHandler();
|
|
17489
18915
|
this.setPaginationBarContent();
|
|
17490
|
-
this.watchSelectedItemsPerPageHandler();
|
|
17491
18916
|
}
|
|
17492
18917
|
componentDidLoad() {
|
|
17493
18918
|
var _a, _b, _c;
|
|
@@ -17509,21 +18934,21 @@ class PaginationBar {
|
|
|
17509
18934
|
}
|
|
17510
18935
|
render() {
|
|
17511
18936
|
const { alignment, displayedItemsPerPageOptions, PAGE_INPUT_FIELD_ID, type, rangeLabelType, hideRangeLabel, showItemsPerPageControl, showGoToPageControl, pageLabel, capitalizedPageLabel, lowerCasePageLabel, capitalizedItemLabel, lowerCaseItemLabel, totalPages, activePage, itemsPerPageString, theme, monochrome, selectItemsPerPageOnEnter, } = this;
|
|
17512
|
-
return (hAsync(Host, { key: '
|
|
18937
|
+
return (hAsync(Host, { key: '38c00586aa21b2e5f0cd21faa1e3f9c7f47f0535', class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '9582443e86e7df6f5128a2c63aabe5c4779ef3ea', class: {
|
|
17513
18938
|
["pagination-bar"]: true,
|
|
17514
18939
|
[`pagination-bar-${alignment}`]: true,
|
|
17515
|
-
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { key: '
|
|
18940
|
+
}, 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: {
|
|
17516
18941
|
["items-per-page-control-label"]: true,
|
|
17517
|
-
}, variant: "label", onClick: this.itemsPerPageLabelClickHandler }, capitalizedItemLabel, "s per ", lowerCasePageLabel), hAsync("ic-select", { key: '
|
|
18942
|
+
}, 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 &&
|
|
17518
18943
|
(rangeLabelType === "data" ? (hAsync("ic-typography", { class: {
|
|
17519
18944
|
["item-pagination-label"]: true,
|
|
17520
18945
|
}, variant: "label", "aria-live": "polite" }, this.upperBound === 0 && `0 ${lowerCaseItemLabel}s`, this.upperBound > 0 &&
|
|
17521
18946
|
`${this.lowerBound} - ${this.upperBound} of ${this.totalItems} ${lowerCaseItemLabel}${this.totalItems > 1 ? "s" : ""}`)) : (hAsync("ic-typography", { class: {
|
|
17522
18947
|
["page-pagination-label"]: true,
|
|
17523
|
-
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: '
|
|
18948
|
+
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: 'a369e23b36569d56fb21a9d906cffd1fc4506677', class: {
|
|
17524
18949
|
["pagination-controls"]: true,
|
|
17525
18950
|
["pagination-controls-wrap"]: this.paginationWrapped,
|
|
17526
|
-
} }, hAsync("div", { key: '
|
|
18951
|
+
} }, 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")))))));
|
|
17527
18952
|
}
|
|
17528
18953
|
get el() { return getElement(this); }
|
|
17529
18954
|
static get watchers() { return {
|
|
@@ -17621,7 +19046,7 @@ class PaginationItem {
|
|
|
17621
19046
|
}
|
|
17622
19047
|
render() {
|
|
17623
19048
|
const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
|
|
17624
|
-
return (hAsync("a", { key: '
|
|
19049
|
+
return (hAsync("a", { key: 'ed0d1ec644f4332880be47cf2240ce08e8ba8f5c', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (hAsync("div", { class: {
|
|
17625
19050
|
["item-container"]: true,
|
|
17626
19051
|
["ellipsis"]: true,
|
|
17627
19052
|
["disabled"]: !!disabled,
|
|
@@ -17940,17 +19365,17 @@ class PopoverMenu {
|
|
|
17940
19365
|
this.popperProps = props;
|
|
17941
19366
|
}
|
|
17942
19367
|
render() {
|
|
17943
|
-
return (hAsync(Host, { key: '
|
|
19368
|
+
return (hAsync(Host, { key: 'b3b80be668dab0b1bf8e9c86a92871a2ccf7fa05', class: {
|
|
17944
19369
|
["ic-popover-menu-open"]: !!this.open,
|
|
17945
19370
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
17946
|
-
} }, hAsync("div", { key: '
|
|
19371
|
+
} }, hAsync("div", { key: '2354b0125ce713af1824928f0f63bfc4e1a51539', id: this.parentPopover === undefined
|
|
17947
19372
|
? `ic-popover-submenu-${this.submenuId}`
|
|
17948
19373
|
: "", class: {
|
|
17949
19374
|
menu: true,
|
|
17950
|
-
} }, hAsync("span", { key: '
|
|
19375
|
+
} }, hAsync("span", { key: 'a0fe248c348b955225eb3cbd9d4713dd4d2260f5', class: {
|
|
17951
19376
|
"opening-from-parent": this.openingFromParent,
|
|
17952
19377
|
"opening-from-child": this.openingFromChild,
|
|
17953
|
-
} }, isPropDefined$1(this.submenuId) && (hAsync("span", { key: '
|
|
19378
|
+
} }, 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' }))))));
|
|
17954
19379
|
}
|
|
17955
19380
|
static get delegatesFocus() { return true; }
|
|
17956
19381
|
get el() { return getElement(this); }
|
|
@@ -17984,7 +19409,7 @@ class PopoverMenu {
|
|
|
17984
19409
|
}; }
|
|
17985
19410
|
}
|
|
17986
19411
|
|
|
17987
|
-
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)}";
|
|
19412
|
+
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)}";
|
|
17988
19413
|
var IcRadioGroupStyle0 = icRadioGroupCss;
|
|
17989
19414
|
|
|
17990
19415
|
/**
|
|
@@ -18020,6 +19445,10 @@ class RadioGroup {
|
|
|
18020
19445
|
* The size of the radio group component.
|
|
18021
19446
|
*/
|
|
18022
19447
|
this.size = "medium";
|
|
19448
|
+
/**
|
|
19449
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
19450
|
+
*/
|
|
19451
|
+
this.validationAriaLive = "polite";
|
|
18023
19452
|
/**
|
|
18024
19453
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
|
18025
19454
|
*/
|
|
@@ -18213,17 +19642,20 @@ class RadioGroup {
|
|
|
18213
19642
|
}
|
|
18214
19643
|
}
|
|
18215
19644
|
render() {
|
|
18216
|
-
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationStatus, validationText, theme, } = this;
|
|
18217
|
-
|
|
19645
|
+
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationAriaLive, validationStatus, validationText, theme, } = this;
|
|
19646
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
19647
|
+
return (hAsync(Host, { key: '4ea2e0ca7614fb4ce6563ea146f86d72707a399a', onKeyDown: handleKeyDown, class: {
|
|
18218
19648
|
"ic-radio-group-small": size === "small",
|
|
18219
19649
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18220
|
-
} }, hAsync("
|
|
19650
|
+
} }, hAsync("fieldset", { key: 'ebad7a878454455a15892bf53c43bdcb914b77c4', role: "radiogroup", id: this.name, "aria-required": `${required}` }, !hideLabel && (hAsync("legend", { key: 'aac1f37c7b1d4d5bc621bd3030dc9eef60417659' }, hAsync("ic-input-label", { key: 'fd04e3f74c89b633996eb22e60902e988a8ac8ef', class: {
|
|
18221
19651
|
[`${validationStatus}`]: true,
|
|
18222
19652
|
["disabled"]: !!disabled,
|
|
18223
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '
|
|
19653
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '66325d58018dff189c975e3e4fc01249b51b6b9f', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '6d2d332396c87b798d5d160bdb5977c0a8ad6751', class: {
|
|
18224
19654
|
"radio-buttons-container": true,
|
|
18225
19655
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
|
18226
|
-
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: '
|
|
19656
|
+
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: 'fb0a1b41503ba88ce9bda3c0bc8236ae0a7e3795' }))), hAsync("ic-input-validation", { key: 'f9f7c2bdffd83d705149f74fe2caad93e57dd85b', class: {
|
|
19657
|
+
"show-validation": showValidation,
|
|
19658
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
|
18227
19659
|
}
|
|
18228
19660
|
get el() { return getElement(this); }
|
|
18229
19661
|
static get watchers() { return {
|
|
@@ -18244,6 +19676,7 @@ class RadioGroup {
|
|
|
18244
19676
|
"orientation": [1],
|
|
18245
19677
|
"required": [4],
|
|
18246
19678
|
"size": [1],
|
|
19679
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
18247
19680
|
"validationStatus": [1, "validation-status"],
|
|
18248
19681
|
"validationText": [1, "validation-text"],
|
|
18249
19682
|
"theme": [1],
|
|
@@ -18258,7 +19691,7 @@ class RadioGroup {
|
|
|
18258
19691
|
}; }
|
|
18259
19692
|
}
|
|
18260
19693
|
|
|
18261
|
-
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-
|
|
19694
|
+
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}";
|
|
18262
19695
|
var IcRadioOptionStyle0 = icRadioOptionCss;
|
|
18263
19696
|
|
|
18264
19697
|
const ADDITIONAL_FIELD = "additional-field";
|
|
@@ -18403,15 +19836,15 @@ class RadioOption {
|
|
|
18403
19836
|
render() {
|
|
18404
19837
|
const { additionalFieldDisplay, disabled, dynamicText, form, groupLabel, handleClick, handleKeyDown, hasAdditionalField, label, name, selected, value, theme, } = this;
|
|
18405
19838
|
const id = `ic-radio-option-${isPropDefined$1(label) || value}-${groupLabel}`;
|
|
18406
|
-
return (hAsync(Host, { key: '
|
|
19839
|
+
return (hAsync(Host, { key: '3d233946c372788a34128912099c47d6858d7ea9', onClick: handleClick, onKeyDown: handleKeyDown, class: {
|
|
18407
19840
|
["ic-radio-option-disabled"]: !!disabled,
|
|
18408
19841
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18409
|
-
} }, hAsync("div", { key: '
|
|
19842
|
+
} }, 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: {
|
|
18410
19843
|
"dynamic-container": true,
|
|
18411
19844
|
hidden: additionalFieldDisplay === "dynamic" && !selected,
|
|
18412
|
-
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '
|
|
19845
|
+
} }, 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: {
|
|
18413
19846
|
"additional-field-wrapper": additionalFieldDisplay === "static",
|
|
18414
|
-
} }, hAsync("slot", { key: '
|
|
19847
|
+
} }, hAsync("slot", { key: 'b3f82b1650ef67a732b35a32c5088745f31d1f31', name: ADDITIONAL_FIELD })))))));
|
|
18415
19848
|
}
|
|
18416
19849
|
get el() { return getElement(this); }
|
|
18417
19850
|
static get watchers() { return {
|
|
@@ -18994,39 +20427,39 @@ class SearchBar {
|
|
|
18994
20427
|
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
|
18995
20428
|
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
|
18996
20429
|
renderHiddenInput$1(this.el, value, name, disabledMode);
|
|
18997
|
-
return (hAsync(Host, { key: '
|
|
20430
|
+
return (hAsync(Host, { key: '71d9a6e7a555373e98a3ee7ea114fc1f69f06570', class: {
|
|
18998
20431
|
"ic-search-bar-search": true,
|
|
18999
20432
|
"ic-search-bar-full-width": fullWidth,
|
|
19000
20433
|
"ic-search-bar-disabled": disabled,
|
|
19001
20434
|
"ic-search-bar-small": size === "small",
|
|
19002
20435
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19003
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '
|
|
20436
|
+
}, 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: {
|
|
19004
20437
|
"no-left-pad": readonly,
|
|
19005
20438
|
readonly,
|
|
19006
20439
|
"truncate-value": truncateValue,
|
|
19007
|
-
}, 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: '
|
|
20440
|
+
}, 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: {
|
|
19008
20441
|
"clear-button-container": true,
|
|
19009
20442
|
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
|
19010
|
-
} }, hAsync("ic-button", { key: '
|
|
20443
|
+
} }, hAsync("ic-button", { key: '119b7ae17e8c7cbd8a56e6bd8136340c269958e3', id: "clear-button", class: {
|
|
19011
20444
|
"clear-button": true,
|
|
19012
20445
|
"clear-button-unfocused": !clearButtonFocused,
|
|
19013
|
-
}, "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: '
|
|
20446
|
+
}, "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: {
|
|
19014
20447
|
"search-submit-button-container": true,
|
|
19015
20448
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
|
19016
|
-
} }, hAsync("ic-button", { key: '
|
|
20449
|
+
} }, hAsync("ic-button", { key: '77e1e8bfef4ce5304dbf877b5ecfc440d37d864c', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
|
19017
20450
|
"search-submit-button": true,
|
|
19018
20451
|
"search-submit-button-small": size === "small",
|
|
19019
20452
|
"search-submit-button-unfocused": !searchSubmitFocused,
|
|
19020
20453
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
|
19021
|
-
}, 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: '
|
|
20454
|
+
}, 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: {
|
|
19022
20455
|
"menu-container": true,
|
|
19023
20456
|
fullwidth: fullWidth,
|
|
19024
|
-
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '
|
|
20457
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: 'b2f7d74335c27d93e9f5dc5b63bab80daeb3eeae', class: {
|
|
19025
20458
|
"no-results": this.hadNoOptions() ||
|
|
19026
20459
|
(filteredOptions.length === 1 &&
|
|
19027
20460
|
(filteredOptions[0][labelField] === loadingLabel ||
|
|
19028
20461
|
filteredOptions[0][labelField] === loadingErrorLabel)),
|
|
19029
|
-
}, 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: '
|
|
20462
|
+
}, 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" })));
|
|
19030
20463
|
}
|
|
19031
20464
|
static get delegatesFocus() { return true; }
|
|
19032
20465
|
get el() { return getElement(this); }
|
|
@@ -19110,12 +20543,12 @@ class SectionContainer {
|
|
|
19110
20543
|
}
|
|
19111
20544
|
render() {
|
|
19112
20545
|
const { aligned, fullHeight } = this;
|
|
19113
|
-
return (hAsync(Host, { key: '
|
|
20546
|
+
return (hAsync(Host, { key: '1d47dd5e8fe26fbf69b3cea13a0a04304f2bd1e8', class: {
|
|
19114
20547
|
["aligned-left"]: aligned === "left" || aligned === null,
|
|
19115
20548
|
["aligned-center"]: aligned === "center",
|
|
19116
20549
|
["aligned-full-width"]: aligned === "full-width",
|
|
19117
20550
|
["no-vertical-padding"]: !!fullHeight,
|
|
19118
|
-
} }, hAsync("slot", { key: '
|
|
20551
|
+
} }, hAsync("slot", { key: '2aed7afff105eeb51ddff32f9759e1d62737107b' })));
|
|
19119
20552
|
}
|
|
19120
20553
|
static get style() { return IcSectionContainerStyle0; }
|
|
19121
20554
|
static get cmpMeta() { return {
|
|
@@ -19263,6 +20696,10 @@ class Select {
|
|
|
19263
20696
|
* 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.
|
|
19264
20697
|
*/
|
|
19265
20698
|
this.theme = "inherit";
|
|
20699
|
+
/**
|
|
20700
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
20701
|
+
*/
|
|
20702
|
+
this.validationAriaLive = "polite";
|
|
19266
20703
|
/**
|
|
19267
20704
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
|
19268
20705
|
*/
|
|
@@ -19917,12 +21354,13 @@ class Select {
|
|
|
19917
21354
|
}
|
|
19918
21355
|
render() {
|
|
19919
21356
|
var _a;
|
|
19920
|
-
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;
|
|
21357
|
+
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;
|
|
19921
21358
|
// HTML inputs only accept 'string' for their value
|
|
19922
21359
|
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
|
19923
21360
|
renderHiddenInput$1(this.el, searchable ? hiddenInputValue : currValue, name || inputId, disabled);
|
|
19924
21361
|
const invalid = `${validationStatus === IcInformationStatus$1.Error}`;
|
|
19925
|
-
const
|
|
21362
|
+
const showValidation = hasValidationStatus(validationStatus, !!disabled);
|
|
21363
|
+
const describedBy = getInputDescribedByText$1(this.el, inputId, helperText !== "", showValidation).trim();
|
|
19926
21364
|
const valueLabelString = multiple
|
|
19927
21365
|
? this.getMultipleOptionsString(currValue)
|
|
19928
21366
|
: this.getLabelFromValue(currValue);
|
|
@@ -19930,30 +21368,30 @@ class Select {
|
|
|
19930
21368
|
(searchable
|
|
19931
21369
|
? !!searchableSelectInputValue
|
|
19932
21370
|
: !!currValue && !loading && showClearButton);
|
|
19933
|
-
return (hAsync(Host, { key: '
|
|
21371
|
+
return (hAsync(Host, { key: 'd4771b458b86fdf5e8fd7242b0faa34c641dc1fd', class: {
|
|
19934
21372
|
"ic-select-disabled": disabled,
|
|
19935
21373
|
"ic-select-searchable": searchable,
|
|
19936
21374
|
[`ic-select-${size}`]: size !== "medium",
|
|
19937
21375
|
"ic-select-full-width": fullWidth,
|
|
19938
21376
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19939
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
|
21377
|
+
}, 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") &&
|
|
19940
21378
|
!disabled &&
|
|
19941
|
-
(!readonly || !!value) && (hAsync("span", { key: '
|
|
21379
|
+
(!readonly || !!value) && (hAsync("span", { key: '208359e9a4b4c92823fa924ce0e7b0e5419c0cef', slot: "left-icon", class: {
|
|
19942
21380
|
readonly,
|
|
19943
21381
|
"has-value": !!value,
|
|
19944
|
-
} }, hAsync("slot", { key: '
|
|
21382
|
+
} }, 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: {
|
|
19945
21383
|
"value-text": true,
|
|
19946
21384
|
"select-input": true,
|
|
19947
21385
|
"with-clear-button": !!searchableSelectInputValue,
|
|
19948
21386
|
}, 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 &&
|
|
19949
21387
|
(currValue === null || loading)
|
|
19950
21388
|
? "Clear input"
|
|
19951
|
-
: "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: {
|
|
21389
|
+
: "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: {
|
|
19952
21390
|
"expand-icon": true,
|
|
19953
21391
|
"expand-icon-open": open,
|
|
19954
|
-
}, 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
|
|
21392
|
+
}, 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
|
|
19955
21393
|
? `${currValue.length} of ${getOptionsWithoutGroupTitlesCount(options)} selected, ${valueLabelString}`
|
|
19956
|
-
: valueLabelString) || placeholder}
|
|
21394
|
+
: 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: {
|
|
19957
21395
|
"value-text": true,
|
|
19958
21396
|
"with-clear-button": isClearable,
|
|
19959
21397
|
placeholder: !loading && multiple
|
|
@@ -19962,13 +21400,15 @@ class Select {
|
|
|
19962
21400
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
|
19963
21401
|
"expand-icon": true,
|
|
19964
21402
|
"expand-icon-open": open,
|
|
19965
|
-
}, 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: '
|
|
21403
|
+
}, 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: {
|
|
19966
21404
|
"no-results": loading ||
|
|
19967
21405
|
hasTimedOut ||
|
|
19968
21406
|
((_a = noOptions === null || noOptions === void 0 ? void 0 : noOptions[0]) === null || _a === void 0 ? void 0 : _a.label) === emptyOptionListText,
|
|
19969
21407
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
|
19970
21408
|
? this.searchableSelectElement
|
|
19971
|
-
: 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: '
|
|
21409
|
+
: 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: {
|
|
21410
|
+
"menu-open": open,
|
|
21411
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
|
|
19972
21412
|
}
|
|
19973
21413
|
static get delegatesFocus() { return true; }
|
|
19974
21414
|
get el() { return getElement(this); }
|
|
@@ -20009,6 +21449,7 @@ class Select {
|
|
|
20009
21449
|
"size": [1],
|
|
20010
21450
|
"timeout": [2],
|
|
20011
21451
|
"theme": [1],
|
|
21452
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
20012
21453
|
"validationStatus": [1, "validation-status"],
|
|
20013
21454
|
"validationText": [1, "validation-text"],
|
|
20014
21455
|
"loading": [1028],
|
|
@@ -20496,7 +21937,7 @@ class SideNavigation {
|
|
|
20496
21937
|
isAppNameSubtitleVariant,
|
|
20497
21938
|
appTitle: appTitle || "",
|
|
20498
21939
|
};
|
|
20499
|
-
return (hAsync(Host, { key: '
|
|
21940
|
+
return (hAsync(Host, { key: '1871b4817a2429ce72b39c00fc3d46bab905c6fc', class: {
|
|
20500
21941
|
"xs-menu-open": menuOpen && isSDevice,
|
|
20501
21942
|
"xs-menu-close": !menuOpen && isSDevice,
|
|
20502
21943
|
"sm-collapsed": !isSDevice && !menuExpanded,
|
|
@@ -20505,12 +21946,12 @@ class SideNavigation {
|
|
|
20505
21946
|
[`ic-side-navigation-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
|
20506
21947
|
["collapsed-labels"]: !isSDevice && !menuExpanded && !!collapsedIconLabels,
|
|
20507
21948
|
["ic-side-navigation-inline"]: !!inline,
|
|
20508
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '
|
|
21949
|
+
} }, 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: {
|
|
20509
21950
|
["bottom-wrapper"]: true,
|
|
20510
21951
|
["classification-spacing"]: hasClassificationBanner(),
|
|
20511
|
-
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: '
|
|
21952
|
+
} }, 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: {
|
|
20512
21953
|
["app-status"]: true,
|
|
20513
|
-
} }, hAsync("ic-typography", { key: '
|
|
21954
|
+
} }, 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))))))));
|
|
20514
21955
|
}
|
|
20515
21956
|
get el() { return getElement(this); }
|
|
20516
21957
|
static get watchers() { return {
|
|
@@ -20574,11 +22015,11 @@ class Skeleton {
|
|
|
20574
22015
|
width: el.style.width || (variant === "circle" ? "25px" : "260px"),
|
|
20575
22016
|
}
|
|
20576
22017
|
: undefined;
|
|
20577
|
-
return (hAsync(Host, { key: '
|
|
22018
|
+
return (hAsync(Host, { key: '9652d6ecbb5bd3bca6c490a6e80a80e40fa245af', class: {
|
|
20578
22019
|
skeleton: true,
|
|
20579
22020
|
"ic-skeleton-circle": variant === "circle",
|
|
20580
22021
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
20581
|
-
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: '
|
|
22022
|
+
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: 'f476ba878aa6acba4bbe00f1aa30502657331721' })));
|
|
20582
22023
|
}
|
|
20583
22024
|
get el() { return getElement(this); }
|
|
20584
22025
|
static get style() { return IcSkeletonStyle0; }
|
|
@@ -20635,9 +22076,9 @@ class SkipLink {
|
|
|
20635
22076
|
}
|
|
20636
22077
|
render() {
|
|
20637
22078
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
|
20638
|
-
return (hAsync(Host, { key: '
|
|
22079
|
+
return (hAsync(Host, { key: 'd5ded3b300f0b8dbe65235d6be9dec8ec8d88b5b', class: {
|
|
20639
22080
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
20640
|
-
} }, hAsync("ic-link", { key: '
|
|
22081
|
+
} }, hAsync("ic-link", { key: '8f81758c7ebf977b264890c2df38de381bf1b4f7', class: {
|
|
20641
22082
|
"display-top": !inline,
|
|
20642
22083
|
"full-width": !!fullWidth,
|
|
20643
22084
|
"show-background": !transparentBackground,
|
|
@@ -20702,12 +22143,12 @@ class StatusTag {
|
|
|
20702
22143
|
}
|
|
20703
22144
|
render() {
|
|
20704
22145
|
const { label, status, variant, size, announced, theme, uppercase } = this;
|
|
20705
|
-
return (hAsync(Host, { key: '
|
|
22146
|
+
return (hAsync(Host, { key: '294225d51b55c99b24e3eaf077fe5c62008004db', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, hAsync("strong", { key: 'c35594ae01f0e7769381c18a43aa58e21997f0da', class: {
|
|
20706
22147
|
["tag"]: true,
|
|
20707
22148
|
[`${variant}-${status}`]: true,
|
|
20708
22149
|
["outlined"]: variant === "outlined",
|
|
20709
22150
|
[`${size}`]: true,
|
|
20710
|
-
} }, hAsync("ic-typography", { key: '
|
|
22151
|
+
} }, hAsync("ic-typography", { key: '0ccc4949134d73f83cee64ec456d1a3f42054b9e', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, hAsync("span", { key: '4fbe4a1f344e5ced1878ae7e3ac6debfb6a91389' }, label)))));
|
|
20711
22152
|
}
|
|
20712
22153
|
static get style() { return IcStatusTagStyle0; }
|
|
20713
22154
|
static get cmpMeta() { return {
|
|
@@ -20742,6 +22183,19 @@ class Step {
|
|
|
20742
22183
|
* @internal If `true`, and a compact stepper is being used, the current step will be the only step in view.
|
|
20743
22184
|
*/
|
|
20744
22185
|
this.current = false;
|
|
22186
|
+
/**
|
|
22187
|
+
* Words within the component that can be replaced to translate the component into a different language
|
|
22188
|
+
*/
|
|
22189
|
+
this.icI18n = {
|
|
22190
|
+
next: "Next",
|
|
22191
|
+
step: "Step",
|
|
22192
|
+
of: "of",
|
|
22193
|
+
lastStep: "Last step",
|
|
22194
|
+
completed: "Completed",
|
|
22195
|
+
notRequired: "Not required",
|
|
22196
|
+
required: "Required",
|
|
22197
|
+
optional: "Optional",
|
|
22198
|
+
};
|
|
20745
22199
|
/**
|
|
20746
22200
|
* @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.
|
|
20747
22201
|
*/
|
|
@@ -20761,96 +22215,95 @@ class Step {
|
|
|
20761
22215
|
}
|
|
20762
22216
|
render() {
|
|
20763
22217
|
var _a, _b;
|
|
22218
|
+
const { compactStepStyling, current, heading, icI18n, lastStep, lastStepNum, nextStepHeading, progress, status, stepNum, subheading, theme, type, variant, } = this;
|
|
20764
22219
|
// ARIA LABEL
|
|
20765
22220
|
let ariaLabel = "";
|
|
20766
|
-
if (
|
|
20767
|
-
ariaLabel =
|
|
22221
|
+
if (type === "completed") {
|
|
22222
|
+
ariaLabel = `. ${icI18n.completed}`;
|
|
20768
22223
|
}
|
|
20769
|
-
else if (
|
|
20770
|
-
ariaLabel =
|
|
22224
|
+
else if (type === "disabled") {
|
|
22225
|
+
ariaLabel = `. ${icI18n.notRequired}`;
|
|
20771
22226
|
}
|
|
20772
|
-
else if (
|
|
20773
|
-
ariaLabel =
|
|
22227
|
+
else if (status === "required") {
|
|
22228
|
+
ariaLabel = `. ${icI18n.required}`;
|
|
20774
22229
|
}
|
|
20775
|
-
else if (
|
|
20776
|
-
ariaLabel =
|
|
22230
|
+
else if (status === "optional") {
|
|
22231
|
+
ariaLabel = `. ${icI18n.optional}`;
|
|
20777
22232
|
}
|
|
20778
22233
|
// STEP STATUS
|
|
20779
22234
|
let stepStatus;
|
|
20780
|
-
if (
|
|
20781
|
-
stepStatus =
|
|
22235
|
+
if (status && isPropDefined$1(status)) {
|
|
22236
|
+
stepStatus = status[0].toUpperCase() + status.slice(1);
|
|
20782
22237
|
}
|
|
20783
22238
|
// STEP TYPE
|
|
20784
22239
|
let stepType;
|
|
20785
|
-
if (
|
|
20786
|
-
stepType =
|
|
22240
|
+
if (type === "disabled" || compactStepStyling === "disabled") {
|
|
22241
|
+
stepType = icI18n.notRequired;
|
|
20787
22242
|
}
|
|
20788
|
-
else if (
|
|
20789
|
-
stepType =
|
|
22243
|
+
else if (compactStepStyling === "completed") {
|
|
22244
|
+
stepType = icI18n.completed;
|
|
20790
22245
|
}
|
|
20791
22246
|
// STATUS ICON FOR COMPACT STEP
|
|
20792
22247
|
let statusIcon;
|
|
20793
|
-
if (
|
|
20794
|
-
statusIcon = (hAsync("span", { key: '
|
|
22248
|
+
if (type === "completed" || compactStepStyling === "completed") {
|
|
22249
|
+
statusIcon = (hAsync("span", { key: '8c76808f7d75f2d9ae6293209ef86bae0e79716d', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
|
20795
22250
|
}
|
|
20796
|
-
else if (
|
|
20797
|
-
|
|
20798
|
-
statusIcon = (hAsync("span", { key: 'aedd81eacbe9ca6a4e331142d09053926b00dcd4', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
22251
|
+
else if (type === "disabled" || compactStepStyling === "disabled") {
|
|
22252
|
+
statusIcon = (hAsync("span", { key: '16ba6a8045db3f5694f7546a5458b6f91261d814', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
20799
22253
|
}
|
|
20800
22254
|
// COMPACT STEP COMPONENT
|
|
20801
|
-
const compactStep = (hAsync("div", { key: '
|
|
22255
|
+
const compactStep = (hAsync("div", { key: '914fd4dade3b6900052b9ac08f665610f10ee467', class: {
|
|
20802
22256
|
["step"]: true,
|
|
20803
|
-
["current"]: !!
|
|
20804
|
-
[`compact-step-${
|
|
20805
|
-
["disabled"]:
|
|
20806
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
|
22257
|
+
["current"]: !!current,
|
|
22258
|
+
[`compact-step-${compactStepStyling}`]: !!compactStepStyling,
|
|
22259
|
+
["disabled"]: type === "disabled" || compactStepStyling === "disabled",
|
|
22260
|
+
} }, hAsync("ic-loading-indicator", { key: '4679914758455a299e8bab80e4640fa3fcdb6a18', class: {
|
|
20807
22261
|
"compact-step-progress-indicator": true,
|
|
20808
|
-
"not-required":
|
|
20809
|
-
|
|
20810
|
-
|
|
20811
|
-
|
|
20812
|
-
this.type === "disabled" ||
|
|
22262
|
+
"not-required": type === "disabled" || compactStepStyling === "disabled",
|
|
22263
|
+
}, "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 ||
|
|
22264
|
+
type === "completed" ||
|
|
22265
|
+
type === "disabled" ||
|
|
20813
22266
|
(this.variant === "compact" &&
|
|
20814
|
-
!!
|
|
20815
|
-
|
|
20816
|
-
!!
|
|
20817
|
-
?
|
|
20818
|
-
:
|
|
20819
|
-
(
|
|
20820
|
-
|
|
20821
|
-
|
|
20822
|
-
(
|
|
20823
|
-
|
|
22267
|
+
!!compactStepStyling &&
|
|
22268
|
+
compactStepStyling !== "active") ||
|
|
22269
|
+
!!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)
|
|
22270
|
+
? subheading
|
|
22271
|
+
: type === "disabled" ||
|
|
22272
|
+
(variant === "compact" &&
|
|
22273
|
+
compactStepStyling === "disabled") ||
|
|
22274
|
+
type === "completed" ||
|
|
22275
|
+
(variant === "compact" &&
|
|
22276
|
+
compactStepStyling === "completed")
|
|
20824
22277
|
? stepType
|
|
20825
|
-
:
|
|
22278
|
+
: 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))))));
|
|
20826
22279
|
// ICON FOR DEFAULT STEP
|
|
20827
22280
|
let icon;
|
|
20828
|
-
if (
|
|
20829
|
-
icon = (hAsync("ic-typography", { key: '
|
|
22281
|
+
if (type !== "completed") {
|
|
22282
|
+
icon = (hAsync("ic-typography", { key: 'ffa20478aed6b35a92c1cc1f16ebcebb97492553', variant: "subtitle-small" }, hAsync("span", { key: 'ed4a75d2aab01948cd6417c697a0c150d9f1d262', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
|
20830
22283
|
}
|
|
20831
22284
|
else {
|
|
20832
|
-
icon = (hAsync("div", { key: '
|
|
22285
|
+
icon = (hAsync("div", { key: 'b50a1c3094e7f1328d0f86ab10892afcd8a3c41a', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: '8c277146b4a653097a7e8ec5ceff6112e667ac38', class: "check-icon", innerHTML: checkIcon })));
|
|
20833
22286
|
}
|
|
20834
22287
|
// STEP CONNECT FOR DEFAULT STEP
|
|
20835
|
-
const partialBar =
|
|
20836
|
-
const finalStep = !
|
|
22288
|
+
const partialBar = type === "current" && (hAsync("div", { key: '5bc99a6129f3dfffc9b57175a2a18fd589a07557', class: "step-connect-inner" }));
|
|
22289
|
+
const finalStep = !lastStep && (hAsync("div", { key: 'e16d56443005483e87a58164452d57fe93ccbaca', class: {
|
|
20837
22290
|
["step-connect"]: true,
|
|
20838
22291
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
|
20839
22292
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
20840
22293
|
} }, partialBar));
|
|
20841
22294
|
// DEFAULT STEP COMPONENT
|
|
20842
|
-
const defaultStep = (hAsync("div", { key: '
|
|
22295
|
+
const defaultStep = (hAsync("div", { key: 'd50917250a7ce0866f877bf7b957a45789059240', class: {
|
|
20843
22296
|
["step"]: true,
|
|
20844
|
-
[`${
|
|
20845
|
-
} }, hAsync("div", { key: '
|
|
20846
|
-
?
|
|
22297
|
+
[`${type}`]: true,
|
|
22298
|
+
} }, 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)
|
|
22299
|
+
? subheading
|
|
20847
22300
|
: stepStatus))))));
|
|
20848
|
-
return (hAsync(Host, { key: '
|
|
22301
|
+
return (hAsync(Host, { key: '05bb1106d2259fca749c197e79caa408dc237326', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
|
|
20849
22302
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
|
20850
22303
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
20851
|
-
[`ic-step-${
|
|
20852
|
-
[`ic-theme-${
|
|
20853
|
-
} },
|
|
22304
|
+
[`ic-step-${variant}`]: true,
|
|
22305
|
+
[`ic-theme-${theme}`]: this.theme !== "inherit",
|
|
22306
|
+
} }, variant === "compact" ? compactStep : defaultStep));
|
|
20854
22307
|
}
|
|
20855
22308
|
get el() { return getElement(this); }
|
|
20856
22309
|
static get watchers() { return {
|
|
@@ -20863,6 +22316,7 @@ class Step {
|
|
|
20863
22316
|
"$members$": {
|
|
20864
22317
|
"compactStepStyling": [1, "compact-step-styling"],
|
|
20865
22318
|
"current": [1028],
|
|
22319
|
+
"icI18n": [16],
|
|
20866
22320
|
"lastStep": [4, "last-step"],
|
|
20867
22321
|
"lastStepNum": [2, "last-step-num"],
|
|
20868
22322
|
"nextStepHeading": [1, "next-step-heading"],
|
|
@@ -20910,6 +22364,19 @@ class Stepper {
|
|
|
20910
22364
|
* 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.
|
|
20911
22365
|
*/
|
|
20912
22366
|
this.hideStepInfo = false;
|
|
22367
|
+
/**
|
|
22368
|
+
* Provide alternative values for text in all child steps. For the purpose of translating the application into other languages.
|
|
22369
|
+
*/
|
|
22370
|
+
this.icI18n = {
|
|
22371
|
+
next: "Next",
|
|
22372
|
+
step: "Step",
|
|
22373
|
+
of: "of",
|
|
22374
|
+
lastStep: "Last step",
|
|
22375
|
+
completed: "Completed",
|
|
22376
|
+
notRequired: "Not required",
|
|
22377
|
+
required: "Required",
|
|
22378
|
+
optional: "Optional",
|
|
22379
|
+
};
|
|
20913
22380
|
/**
|
|
20914
22381
|
* 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.
|
|
20915
22382
|
*/
|
|
@@ -20955,6 +22422,10 @@ class Stepper {
|
|
|
20955
22422
|
this.initialiseStepStates = () => {
|
|
20956
22423
|
this.steps.forEach((step, index) => {
|
|
20957
22424
|
var _a, _b, _c;
|
|
22425
|
+
// Set language
|
|
22426
|
+
if (this.icI18n !== undefined) {
|
|
22427
|
+
step.icI18n = this.icI18n;
|
|
22428
|
+
}
|
|
20958
22429
|
// Set variant
|
|
20959
22430
|
step.variant = this.variant;
|
|
20960
22431
|
// Assign stepNum to each step
|
|
@@ -21126,11 +22597,11 @@ class Stepper {
|
|
|
21126
22597
|
checkResizeObserver$1(this.runResizeObserver);
|
|
21127
22598
|
}
|
|
21128
22599
|
render() {
|
|
21129
|
-
return (hAsync(Host, { key: '
|
|
22600
|
+
return (hAsync(Host, { key: 'a5ec9b8d778ba54adf1b3034455e64df0a51fd7c', class: {
|
|
21130
22601
|
[`ic-stepper-${this.variant}`]: true,
|
|
21131
22602
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
|
21132
22603
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
21133
|
-
} }, hAsync("ul", { key: '
|
|
22604
|
+
} }, hAsync("ul", { key: '4140f5cb20325ee4c5c98c855c4b822a448294e8', class: "step-item-list" }, hAsync("slot", { key: 'cda080de502e7760bb3f9a1519f0261b554b0b77' }))));
|
|
21134
22605
|
}
|
|
21135
22606
|
get el() { return getElement(this); }
|
|
21136
22607
|
static get watchers() { return {
|
|
@@ -21146,6 +22617,7 @@ class Stepper {
|
|
|
21146
22617
|
"aligned": [1],
|
|
21147
22618
|
"connectorWidth": [2, "connector-width"],
|
|
21148
22619
|
"hideStepInfo": [4, "hide-step-info"],
|
|
22620
|
+
"icI18n": [16],
|
|
21149
22621
|
"theme": [1],
|
|
21150
22622
|
"variant": [1025],
|
|
21151
22623
|
"alignedFullWidth": [32],
|
|
@@ -21260,16 +22732,16 @@ class Switch {
|
|
|
21260
22732
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
|
21261
22733
|
const isSmall = size === "small";
|
|
21262
22734
|
renderHiddenInput$1(this.el, checkedState ? value : "", name, disabled);
|
|
21263
|
-
return (hAsync(Host, { key: '
|
|
22735
|
+
return (hAsync(Host, { key: '1f3cc9bbab1f273d76380e351f4fc3dfbcb85a55', class: {
|
|
21264
22736
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
21265
|
-
} }, hAsync("label", { key: '
|
|
22737
|
+
} }, hAsync("label", { key: '49569c926514f3832f137bc36638fc8318407abe', class: {
|
|
21266
22738
|
"ic-switch-container": true,
|
|
21267
22739
|
"ic-switch-disabled": !!disabled,
|
|
21268
22740
|
"ic-switch-small": isSmall,
|
|
21269
|
-
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '
|
|
22741
|
+
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '1e7934fa8eb3514931b16e3723374792da3fc77b', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
|
|
21270
22742
|
"ic-switch-label": true,
|
|
21271
22743
|
"ic-switch-label-small": isSmall,
|
|
21272
|
-
} }, hAsync("slot", { key: '
|
|
22744
|
+
} }, 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" }))));
|
|
21273
22745
|
}
|
|
21274
22746
|
static get delegatesFocus() { return true; }
|
|
21275
22747
|
get el() { return getElement(this); }
|
|
@@ -21628,6 +23100,14 @@ class TabContext {
|
|
|
21628
23100
|
tabEnabledHandler() {
|
|
21629
23101
|
this.enabledTabs = this.getEnabledTabs();
|
|
21630
23102
|
}
|
|
23103
|
+
/**
|
|
23104
|
+
* Sets focus on the tab context.
|
|
23105
|
+
*/
|
|
23106
|
+
async setFocus() {
|
|
23107
|
+
if (this.selectedTab != null) {
|
|
23108
|
+
this.tabs[this.selectedTab].setFocus();
|
|
23109
|
+
}
|
|
23110
|
+
}
|
|
21631
23111
|
/**
|
|
21632
23112
|
* @internal Used to set tab/tab panel IDs when a tab/tab panel has been removed
|
|
21633
23113
|
*/
|
|
@@ -21642,12 +23122,12 @@ class TabContext {
|
|
|
21642
23122
|
else {
|
|
21643
23123
|
this.setInitialTab();
|
|
21644
23124
|
}
|
|
21645
|
-
if (hadFocus && this.selectedTab) {
|
|
23125
|
+
if (hadFocus && this.selectedTab != null) {
|
|
21646
23126
|
this.tabs[this.selectedTab].setFocus();
|
|
21647
23127
|
}
|
|
21648
23128
|
}
|
|
21649
23129
|
render() {
|
|
21650
|
-
return hAsync("slot", { key: '
|
|
23130
|
+
return hAsync("slot", { key: 'a5806f753757f1367b776c388a57f5760656906d' });
|
|
21651
23131
|
}
|
|
21652
23132
|
get el() { return getElement(this); }
|
|
21653
23133
|
static get watchers() { return {
|
|
@@ -21665,6 +23145,7 @@ class TabContext {
|
|
|
21665
23145
|
"monochrome": [4],
|
|
21666
23146
|
"theme": [1],
|
|
21667
23147
|
"selectedTab": [32],
|
|
23148
|
+
"setFocus": [64],
|
|
21668
23149
|
"tabRemovedHandler": [64]
|
|
21669
23150
|
},
|
|
21670
23151
|
"$listeners$": [[0, "tabClick", "tabClickHandler"], [0, "tabCreated", "tabCreatedHandler"], [0, "tabPanelCreated", "tabCreatedHandler"], [0, "tabEnabled", "tabEnabledHandler"]],
|
|
@@ -21693,11 +23174,11 @@ class TabGroup {
|
|
|
21693
23174
|
}
|
|
21694
23175
|
render() {
|
|
21695
23176
|
const { inline, theme, label, monochrome } = this;
|
|
21696
|
-
return (hAsync(Host, { key: '
|
|
23177
|
+
return (hAsync(Host, { key: '89f78b3bc3025f9bc250fb045612f11230448011', role: "tablist", "aria-label": label, class: {
|
|
21697
23178
|
["ic-tab-group-inline"]: !!inline,
|
|
21698
23179
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
21699
23180
|
["ic-tab-group-monochrome"]: !!monochrome,
|
|
21700
|
-
} }, hAsync("ic-horizontal-scroll", { key: '
|
|
23181
|
+
} }, hAsync("ic-horizontal-scroll", { key: '8924e03f1928a7c726576570ca817638169be532', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, hAsync("div", { key: 'c9534b3cb05161ee14a494925bd31ce3dc6f98f2', class: "tabs-container" }, hAsync("slot", { key: '63515a30dd40c06faf2a79f5cbb0cdf15fb726f5' })))));
|
|
21701
23182
|
}
|
|
21702
23183
|
static get delegatesFocus() { return true; }
|
|
21703
23184
|
static get style() { return IcTabGroupStyle0; }
|
|
@@ -21740,10 +23221,10 @@ class TabPanel {
|
|
|
21740
23221
|
}
|
|
21741
23222
|
render() {
|
|
21742
23223
|
const { active, theme } = this;
|
|
21743
|
-
return (hAsync(Host, { key: '
|
|
23224
|
+
return (hAsync(Host, { key: '96cf1fa97b36ba44f3e17601512962335437029a', class: {
|
|
21744
23225
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
21745
23226
|
"ic-tab-panel-hidden": !active,
|
|
21746
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '
|
|
23227
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '5fe1129fa2147621848ecb047b50002021a71d6b' }, hAsync("slot", { key: '4d479874c672f99d382b08f5c772cb787a1bdf8a' }))));
|
|
21747
23228
|
}
|
|
21748
23229
|
get el() { return getElement(this); }
|
|
21749
23230
|
static get style() { return IcTabPanelStyle0; }
|
|
@@ -21764,7 +23245,379 @@ class TabPanel {
|
|
|
21764
23245
|
}; }
|
|
21765
23246
|
}
|
|
21766
23247
|
|
|
21767
|
-
const
|
|
23248
|
+
const ItemHook = () => {
|
|
23249
|
+
// adds offset to the item based on its variant
|
|
23250
|
+
// e.g. h2 = 4 + (8*(2-2)) = 4px
|
|
23251
|
+
// h3 = 4 + (8*(3-2)) = 12px
|
|
23252
|
+
const setItemLevelOffset = (variant) => {
|
|
23253
|
+
return `${4 + 8 * (parseInt(variant.split("")[1]) - 2)}px`;
|
|
23254
|
+
};
|
|
23255
|
+
return { setItemLevelOffset };
|
|
23256
|
+
};
|
|
23257
|
+
const ItemComponent = (itemProps) => {
|
|
23258
|
+
const { id, className, label, target, selected, truncate, variant, position, size, updateSelected, setItemLevelOffset, } = itemProps;
|
|
23259
|
+
return (hAsync("a", { id: id, onClick: () => updateSelected(position), class: `${selected && "table-of-contents-item-content-selected"}
|
|
23260
|
+
${size === "large"
|
|
23261
|
+
? `table-of-contents-item-content-large`
|
|
23262
|
+
: `table-of-contents-item-content-default`}
|
|
23263
|
+
${className}
|
|
23264
|
+
`, href: `#${target}` },
|
|
23265
|
+
hAsync("ic-typography", { id: `${id}-label`, bold: selected === position, class: `${truncate && "truncated-item-text"} ${size && `table-of-contents-item-content-${size}`}
|
|
23266
|
+
table-of-contents-item-label
|
|
23267
|
+
`, style: {
|
|
23268
|
+
paddingLeft: setItemLevelOffset(variant),
|
|
23269
|
+
} }, label)));
|
|
23270
|
+
};
|
|
23271
|
+
const TableOfContentsItem = (props) => {
|
|
23272
|
+
const innerProps = ItemHook();
|
|
23273
|
+
return hAsync(ItemComponent, Object.assign({}, props, innerProps));
|
|
23274
|
+
};
|
|
23275
|
+
|
|
23276
|
+
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}}";
|
|
23277
|
+
var IcTableOfContentsStyle0 = icTableOfContentsCss;
|
|
23278
|
+
|
|
23279
|
+
const TOC_CONTENT_CLASS = "table-of-contents-content";
|
|
23280
|
+
const TOC_LIST_ITEMS_CLASS = "table-of-contents-list-items";
|
|
23281
|
+
const TOC_ITEM_CLASS = "table-of-contents-item-content";
|
|
23282
|
+
const TOC_CONTAINER_CLASS = "table-of-contents-section-container";
|
|
23283
|
+
class TableOfContents {
|
|
23284
|
+
constructor(hostRef) {
|
|
23285
|
+
registerInstance(this, hostRef);
|
|
23286
|
+
/**
|
|
23287
|
+
* Heading text of the table of contents.
|
|
23288
|
+
*/
|
|
23289
|
+
this.heading = "Contents";
|
|
23290
|
+
/**
|
|
23291
|
+
* 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.
|
|
23292
|
+
*/
|
|
23293
|
+
this.maximumHeadingLevel = 3;
|
|
23294
|
+
/**
|
|
23295
|
+
* If `true`, the table of contents will display as black in the light theme, and white in dark theme.
|
|
23296
|
+
*/
|
|
23297
|
+
this.monochrome = false;
|
|
23298
|
+
/**
|
|
23299
|
+
* Whether the table of contents will appear on the right of or above child content on large viewport widths.
|
|
23300
|
+
*/
|
|
23301
|
+
this.position = "right";
|
|
23302
|
+
/**
|
|
23303
|
+
* Vertical offset to page scroll (in percent) when table of contents item is selected, to account for other page components like headers.
|
|
23304
|
+
*/
|
|
23305
|
+
this.setScrollHeight = 50;
|
|
23306
|
+
/**
|
|
23307
|
+
* The size of the table of contents items.
|
|
23308
|
+
*/
|
|
23309
|
+
this.size = "medium";
|
|
23310
|
+
/**
|
|
23311
|
+
* 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.
|
|
23312
|
+
*/
|
|
23313
|
+
this.theme = "inherit";
|
|
23314
|
+
/**
|
|
23315
|
+
* If `true`, the table of contents item label will be truncated.
|
|
23316
|
+
*/
|
|
23317
|
+
this.truncate = true;
|
|
23318
|
+
this.focusedElement = 0;
|
|
23319
|
+
// heading items
|
|
23320
|
+
this.referenceElements = [];
|
|
23321
|
+
// heights of heading items
|
|
23322
|
+
this.currentTargetHeights = [];
|
|
23323
|
+
// header height if present
|
|
23324
|
+
this.headerHeight = 0;
|
|
23325
|
+
// holds initial position to allow for responsive changes
|
|
23326
|
+
this.initialPosition = this.position;
|
|
23327
|
+
// suppress scroll listener to allow for click selection without scroll listener firing
|
|
23328
|
+
this.suppressListener = false;
|
|
23329
|
+
/**
|
|
23330
|
+
* Generate a TOC Item.
|
|
23331
|
+
* These items are wrapped in empty tooltips that will be populated by addTooltip()
|
|
23332
|
+
* @param tocHeading heading element to refer item information from
|
|
23333
|
+
* @param children
|
|
23334
|
+
* @returns TocItem ready to be rendered, with nested children if applicable
|
|
23335
|
+
*/
|
|
23336
|
+
this.createTocItem = (tocHeading, children) => {
|
|
23337
|
+
const tocId = `toc_${tocHeading.id}`;
|
|
23338
|
+
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 }));
|
|
23339
|
+
const wrappedToc = this.truncate ? (hAsync("ic-tooltip", { target: tocId, label: tocHeading.innerHTML }, tocItem)) : (tocItem);
|
|
23340
|
+
return (hAsync("li", { class: `table-of-contents-item ${this.monochrome && "table-of-contents-item-monochrome"}` }, wrappedToc, children ? hAsync("ol", null, children) : null));
|
|
23341
|
+
};
|
|
23342
|
+
/**
|
|
23343
|
+
* Render TocItems and recursively render children items if they exist
|
|
23344
|
+
* @param listItem
|
|
23345
|
+
* @returns HTML Element array to be rendered
|
|
23346
|
+
*/
|
|
23347
|
+
this.renderTocTree = (listItem) => {
|
|
23348
|
+
let results;
|
|
23349
|
+
if (listItem.treeChildren.length > 0) {
|
|
23350
|
+
const children = listItem.treeChildren.map((i) => this.renderTocTree(i));
|
|
23351
|
+
results = this.createTocItem(listItem, children);
|
|
23352
|
+
}
|
|
23353
|
+
else {
|
|
23354
|
+
results = this.createTocItem(listItem);
|
|
23355
|
+
}
|
|
23356
|
+
return results;
|
|
23357
|
+
};
|
|
23358
|
+
// list item clicked logic
|
|
23359
|
+
this.updateOnSelection = (position) => {
|
|
23360
|
+
this.suppressListener = true;
|
|
23361
|
+
this.focusedElement = position;
|
|
23362
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23363
|
+
};
|
|
23364
|
+
// truncate text if it goes out of bounds of the container
|
|
23365
|
+
this.truncateText = () => {
|
|
23366
|
+
var _a, _b;
|
|
23367
|
+
const links = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(`.${TOC_ITEM_CLASS}`);
|
|
23368
|
+
const contentList = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(`.${TOC_LIST_ITEMS_CLASS}`);
|
|
23369
|
+
if (contentList)
|
|
23370
|
+
links === null || links === void 0 ? void 0 : links.forEach((item) => {
|
|
23371
|
+
this.addTooltip(item, DEVICE_SIZES.S);
|
|
23372
|
+
});
|
|
23373
|
+
};
|
|
23374
|
+
}
|
|
23375
|
+
suppressListenerHandler() {
|
|
23376
|
+
window.scrollTo(0, window.scrollY - this.headerHeight - 50);
|
|
23377
|
+
}
|
|
23378
|
+
/**
|
|
23379
|
+
* Scrape for heading elements on the page content within TOC, down to the maximumHeadingLevel.
|
|
23380
|
+
* From this, generate an array of Elements with lower rank headings inserted as treeChildren on top level headings.
|
|
23381
|
+
* @returns RankedElement[] array of HTML elements with additional props for rank, trueIndex and treeChildren array
|
|
23382
|
+
*/
|
|
23383
|
+
generateHeadingTree() {
|
|
23384
|
+
var _a;
|
|
23385
|
+
const resultArray = [];
|
|
23386
|
+
const headingDepth = this.maximumHeadingLevel < 5
|
|
23387
|
+
? ["h2", "h3", "h4", "h5"]
|
|
23388
|
+
.slice(0, (this.maximumHeadingLevel < 2 ? 2 : this.maximumHeadingLevel) - 1)
|
|
23389
|
+
.join(",")
|
|
23390
|
+
: "h2, h3, h4, h5";
|
|
23391
|
+
const headingList = this.el.querySelectorAll(headingDepth);
|
|
23392
|
+
if (headingList) {
|
|
23393
|
+
const headingArray = Array.from(headingList);
|
|
23394
|
+
headingArray.forEach((item, index) => {
|
|
23395
|
+
this.referenceElements.push(item);
|
|
23396
|
+
item.trueIndex = index;
|
|
23397
|
+
item.rank = item.tagName.toLowerCase().slice(1, 2);
|
|
23398
|
+
item.textLabel = item.textContent
|
|
23399
|
+
? item.textContent.trimStart().split("\n")[0]
|
|
23400
|
+
: `${item.rank}-${index}`;
|
|
23401
|
+
item.treeChildren = [];
|
|
23402
|
+
});
|
|
23403
|
+
let currentRank = ((_a = headingArray[0]) === null || _a === void 0 ? void 0 : _a.rank) || 2;
|
|
23404
|
+
headingArray.reverse().forEach((h, i) => {
|
|
23405
|
+
if (!h.id) {
|
|
23406
|
+
h.setAttribute("id", h.textLabel.replace(/\s+/g, "-").toLowerCase());
|
|
23407
|
+
}
|
|
23408
|
+
if (h.rank > currentRank && h.trueIndex > 0) {
|
|
23409
|
+
if (headingArray[i] && headingArray[i].rank < h.rank) {
|
|
23410
|
+
headingArray[i].treeChildren.unshift(h);
|
|
23411
|
+
}
|
|
23412
|
+
else {
|
|
23413
|
+
resultArray.push(h);
|
|
23414
|
+
}
|
|
23415
|
+
}
|
|
23416
|
+
else {
|
|
23417
|
+
currentRank = h.rank;
|
|
23418
|
+
resultArray.push(h);
|
|
23419
|
+
}
|
|
23420
|
+
});
|
|
23421
|
+
}
|
|
23422
|
+
return resultArray.reverse();
|
|
23423
|
+
}
|
|
23424
|
+
//container orientation logic
|
|
23425
|
+
containerPosition() {
|
|
23426
|
+
var _a;
|
|
23427
|
+
if (this.position) {
|
|
23428
|
+
const container = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`.${TOC_CONTAINER_CLASS}`);
|
|
23429
|
+
switch (this.position) {
|
|
23430
|
+
case "right":
|
|
23431
|
+
container.style.flexDirection = "row-reverse";
|
|
23432
|
+
break;
|
|
23433
|
+
case "top":
|
|
23434
|
+
container.style.flexDirection = "column";
|
|
23435
|
+
break;
|
|
23436
|
+
}
|
|
23437
|
+
}
|
|
23438
|
+
}
|
|
23439
|
+
/**
|
|
23440
|
+
* Move the sidebar to the provided position on the page.
|
|
23441
|
+
* Also, resize the sidebar to stretch the height of the selected heading.
|
|
23442
|
+
* @param newPosition
|
|
23443
|
+
*/
|
|
23444
|
+
sidebarTranslation(newPosition) {
|
|
23445
|
+
var _a, _b, _c;
|
|
23446
|
+
const sidebar = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".table-of-contents-sidebar");
|
|
23447
|
+
const itemHeights = [];
|
|
23448
|
+
let previousItemsHeight = 0;
|
|
23449
|
+
(_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) => {
|
|
23450
|
+
if (item !== null)
|
|
23451
|
+
itemHeights.push(item.offsetHeight);
|
|
23452
|
+
});
|
|
23453
|
+
itemHeights
|
|
23454
|
+
.slice(0, newPosition)
|
|
23455
|
+
.forEach((i) => (previousItemsHeight += i));
|
|
23456
|
+
sidebar.style.transform = `translateY(${previousItemsHeight}px)`;
|
|
23457
|
+
sidebar.style.height = `${itemHeights[newPosition]}px`;
|
|
23458
|
+
}
|
|
23459
|
+
// find element heights to be used to determine focused item from scroll position
|
|
23460
|
+
findElementsHeights() {
|
|
23461
|
+
const contentBounds = [];
|
|
23462
|
+
this.referenceElements.forEach((element) => {
|
|
23463
|
+
contentBounds.push(element.getBoundingClientRect().top);
|
|
23464
|
+
});
|
|
23465
|
+
this.currentTargetHeights = contentBounds;
|
|
23466
|
+
}
|
|
23467
|
+
//resize window logic
|
|
23468
|
+
handleResizeBounds() {
|
|
23469
|
+
if (window.innerWidth < DEVICE_SIZES.XL && this.initialPosition !== "top") {
|
|
23470
|
+
this.position = "top";
|
|
23471
|
+
this.containerPosition();
|
|
23472
|
+
}
|
|
23473
|
+
else if (window.innerWidth > DEVICE_SIZES.XL &&
|
|
23474
|
+
this.position === "top" &&
|
|
23475
|
+
this.initialPosition === "right") {
|
|
23476
|
+
this.position = "right";
|
|
23477
|
+
this.containerPosition();
|
|
23478
|
+
}
|
|
23479
|
+
this.findElementsHeights();
|
|
23480
|
+
this.truncateText();
|
|
23481
|
+
}
|
|
23482
|
+
// scroll logic
|
|
23483
|
+
updateSelectedItemFromScroll() {
|
|
23484
|
+
const targetHeight = window.scrollY + window.innerHeight * (this.setScrollHeight / 100);
|
|
23485
|
+
if (window.scrollY === 0) {
|
|
23486
|
+
this.focusedElement = 0;
|
|
23487
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23488
|
+
}
|
|
23489
|
+
else if (targetHeight < this.currentTargetHeights[this.focusedElement]) {
|
|
23490
|
+
const previousItems = this.currentTargetHeights.slice(0, this.focusedElement);
|
|
23491
|
+
const closestItem = previousItems.reduce((newValue, curr, index) => {
|
|
23492
|
+
if (Math.abs(curr - targetHeight) <
|
|
23493
|
+
Math.abs(previousItems[newValue] - targetHeight))
|
|
23494
|
+
return index;
|
|
23495
|
+
return newValue;
|
|
23496
|
+
}, 0);
|
|
23497
|
+
this.focusedElement = closestItem;
|
|
23498
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23499
|
+
}
|
|
23500
|
+
else if (targetHeight > this.currentTargetHeights[this.focusedElement] &&
|
|
23501
|
+
this.focusedElement !== this.currentTargetHeights.length) {
|
|
23502
|
+
const relevantItems = this.currentTargetHeights.slice(this.focusedElement);
|
|
23503
|
+
const closestItem = relevantItems.reduce((newValue, curr, index) => {
|
|
23504
|
+
if (Math.abs(curr - targetHeight) <
|
|
23505
|
+
Math.abs(relevantItems[newValue] - targetHeight) &&
|
|
23506
|
+
curr < targetHeight)
|
|
23507
|
+
return index;
|
|
23508
|
+
return newValue;
|
|
23509
|
+
}, 0);
|
|
23510
|
+
if (closestItem + this.focusedElement !== this.focusedElement) {
|
|
23511
|
+
this.focusedElement += closestItem;
|
|
23512
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23513
|
+
}
|
|
23514
|
+
}
|
|
23515
|
+
}
|
|
23516
|
+
// find header element height
|
|
23517
|
+
findHeaderElement() {
|
|
23518
|
+
const element = document.querySelector("ic-page-header");
|
|
23519
|
+
if (element) {
|
|
23520
|
+
return element.clientHeight;
|
|
23521
|
+
}
|
|
23522
|
+
const header = document.querySelector("header");
|
|
23523
|
+
if (header) {
|
|
23524
|
+
return header.clientHeight;
|
|
23525
|
+
}
|
|
23526
|
+
return 0;
|
|
23527
|
+
}
|
|
23528
|
+
// add margin to the list based off the header element height
|
|
23529
|
+
addListMargin() {
|
|
23530
|
+
var _a;
|
|
23531
|
+
const content = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`.${TOC_CONTENT_CLASS}`);
|
|
23532
|
+
content === null || content === void 0 ? void 0 : content.style.setProperty("top", `${this.headerHeight}px`);
|
|
23533
|
+
}
|
|
23534
|
+
// add tooltip to the item if it is too wide
|
|
23535
|
+
addTooltip(item, widthBreakpoint) {
|
|
23536
|
+
var _a;
|
|
23537
|
+
const itemLabel = item.querySelector(".table-of-contents-item-label");
|
|
23538
|
+
if (((_a = item.parentNode) === null || _a === void 0 ? void 0 : _a.tagName) == "IC-TOOLTIP") {
|
|
23539
|
+
const tooltip = item.parentNode;
|
|
23540
|
+
if ((itemLabel === null || itemLabel === void 0 ? void 0 : itemLabel.offsetWidth) < (itemLabel === null || itemLabel === void 0 ? void 0 : itemLabel.scrollWidth)) {
|
|
23541
|
+
const tooltipPosition = window.innerWidth < widthBreakpoint
|
|
23542
|
+
? "bottom"
|
|
23543
|
+
: this.position === "right"
|
|
23544
|
+
? "left"
|
|
23545
|
+
: "right";
|
|
23546
|
+
//Modify the ic-tooltip wrapped around the list item
|
|
23547
|
+
tooltip.setAttribute("disable-click", false);
|
|
23548
|
+
tooltip.setAttribute("disable-hover", false);
|
|
23549
|
+
tooltip.setAttribute("placement", tooltipPosition);
|
|
23550
|
+
tooltip.setAttribute("target", item.id);
|
|
23551
|
+
tooltip.setAttribute("style", "overflow:hidden");
|
|
23552
|
+
}
|
|
23553
|
+
else {
|
|
23554
|
+
//disable the tooltip if the item does not need to truncate
|
|
23555
|
+
tooltip.setAttribute("disable-click", true);
|
|
23556
|
+
tooltip.setAttribute("disable-hover", true);
|
|
23557
|
+
}
|
|
23558
|
+
}
|
|
23559
|
+
}
|
|
23560
|
+
// initialise resize observer
|
|
23561
|
+
componentWillLoad() {
|
|
23562
|
+
this.resizeObserver = new ResizeObserver(() => this.handleResizeBounds());
|
|
23563
|
+
this.resizeObserver.observe(this.el);
|
|
23564
|
+
}
|
|
23565
|
+
// initialise scroll listener
|
|
23566
|
+
componentDidRender() {
|
|
23567
|
+
document.addEventListener("scroll", () => {
|
|
23568
|
+
if (!this.suppressListener)
|
|
23569
|
+
this.updateSelectedItemFromScroll();
|
|
23570
|
+
else
|
|
23571
|
+
this.suppressListener = false;
|
|
23572
|
+
});
|
|
23573
|
+
this.containerPosition();
|
|
23574
|
+
this.findElementsHeights();
|
|
23575
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23576
|
+
}
|
|
23577
|
+
// after component has loaded modify the list based of position, size and surrounding elements
|
|
23578
|
+
async componentDidLoad() {
|
|
23579
|
+
this.focusedElement = 0;
|
|
23580
|
+
this.headerHeight = this.findHeaderElement();
|
|
23581
|
+
this.addListMargin();
|
|
23582
|
+
this.truncateText();
|
|
23583
|
+
this.findElementsHeights();
|
|
23584
|
+
this.sidebarTranslation(this.focusedElement);
|
|
23585
|
+
}
|
|
23586
|
+
// Component is a wrapper for page contents, and will build list from heading items
|
|
23587
|
+
render() {
|
|
23588
|
+
const { heading, monochrome, position, size, theme } = this;
|
|
23589
|
+
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"}
|
|
23590
|
+
${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`}
|
|
23591
|
+
${size}
|
|
23592
|
+
` }), hAsync("ol", { key: 'b4cf6c02151d3257155a4b8e055df992b06e64e0', class: TOC_LIST_ITEMS_CLASS }, this.generateHeadingTree().map((item) => this.renderTocTree(item))))), hAsync("slot", { key: '0a5e55adfd3eeb0ba3c502c8936557f1b5f8bd76' }))));
|
|
23593
|
+
}
|
|
23594
|
+
get el() { return getElement(this); }
|
|
23595
|
+
static get watchers() { return {
|
|
23596
|
+
"suppressListener": ["suppressListenerHandler"]
|
|
23597
|
+
}; }
|
|
23598
|
+
static get style() { return IcTableOfContentsStyle0; }
|
|
23599
|
+
static get cmpMeta() { return {
|
|
23600
|
+
"$flags$": 9,
|
|
23601
|
+
"$tagName$": "ic-table-of-contents",
|
|
23602
|
+
"$members$": {
|
|
23603
|
+
"heading": [1],
|
|
23604
|
+
"maximumHeadingLevel": [2, "maximum-heading-level"],
|
|
23605
|
+
"monochrome": [4],
|
|
23606
|
+
"position": [1025],
|
|
23607
|
+
"setScrollHeight": [2, "set-scroll-height"],
|
|
23608
|
+
"size": [1],
|
|
23609
|
+
"theme": [1],
|
|
23610
|
+
"truncate": [4],
|
|
23611
|
+
"focusedElement": [32],
|
|
23612
|
+
"suppressListener": [32]
|
|
23613
|
+
},
|
|
23614
|
+
"$listeners$": undefined,
|
|
23615
|
+
"$lazyBundleId$": "-",
|
|
23616
|
+
"$attrsToReflect$": []
|
|
23617
|
+
}; }
|
|
23618
|
+
}
|
|
23619
|
+
|
|
23620
|
+
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}}";
|
|
21768
23621
|
var IcTextFieldStyle0 = icTextFieldCss;
|
|
21769
23622
|
|
|
21770
23623
|
let inputIds$1 = 0;
|
|
@@ -21914,6 +23767,10 @@ class TextField {
|
|
|
21914
23767
|
* The type of control to display. The default type is text.
|
|
21915
23768
|
*/
|
|
21916
23769
|
this.type = "text";
|
|
23770
|
+
/**
|
|
23771
|
+
* 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"`.
|
|
23772
|
+
*/
|
|
23773
|
+
this.validationAriaLive = "default";
|
|
21917
23774
|
/**
|
|
21918
23775
|
* If `true`, the icon in input control will be displayed - only applies when validationStatus ='success'.
|
|
21919
23776
|
*/
|
|
@@ -21999,6 +23856,15 @@ class TextField {
|
|
|
21999
23856
|
this.handleFormReset = () => {
|
|
22000
23857
|
this.value = this.initialValue;
|
|
22001
23858
|
};
|
|
23859
|
+
this.showValidationMargin = () => {
|
|
23860
|
+
const maxNumChars = this.readonly ? 0 : this.maxCharacters;
|
|
23861
|
+
const emptyString = isEmptyString$1(this.validationStatus) ||
|
|
23862
|
+
isEmptyString$1(this.validationText);
|
|
23863
|
+
const valueOutsideRange = this.minValueUnattained || this.maxValueExceeded;
|
|
23864
|
+
const charsOutsideRange = maxNumChars > 0 || this.minCharactersUnattained;
|
|
23865
|
+
return ((!emptyString || valueOutsideRange || charsOutsideRange) &&
|
|
23866
|
+
!this.validationInlineInternal);
|
|
23867
|
+
};
|
|
22002
23868
|
// triggered when attributes of host element change
|
|
22003
23869
|
this.hostMutationCallback = (mutationList) => {
|
|
22004
23870
|
mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
|
|
@@ -22092,7 +23958,7 @@ class TextField {
|
|
|
22092
23958
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22093
23959
|
}
|
|
22094
23960
|
render() {
|
|
22095
|
-
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;
|
|
23961
|
+
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;
|
|
22096
23962
|
const el = this.el;
|
|
22097
23963
|
const disabledMode = readonly || disabled;
|
|
22098
23964
|
const currentStatus = maxValueExceeded ||
|
|
@@ -22113,12 +23979,14 @@ class TextField {
|
|
|
22113
23979
|
? minCharactersMessage
|
|
22114
23980
|
: validationText;
|
|
22115
23981
|
const maxNumChars = readonly ? 0 : maxCharacters;
|
|
22116
|
-
const messageAriaLive =
|
|
22117
|
-
|
|
22118
|
-
|
|
22119
|
-
|
|
22120
|
-
|
|
22121
|
-
|
|
23982
|
+
const messageAriaLive = validationAriaLive === "default"
|
|
23983
|
+
? maxCharactersWarning ||
|
|
23984
|
+
maxValueExceeded ||
|
|
23985
|
+
minValueUnattained ||
|
|
23986
|
+
currentStatus === IcInformationStatus$1.Error
|
|
23987
|
+
? "assertive"
|
|
23988
|
+
: "polite"
|
|
23989
|
+
: validationAriaLive;
|
|
22122
23990
|
const showStatusText = this.hasStatus(currentStatus) &&
|
|
22123
23991
|
!(currentStatus == IcInformationStatus$1.Success && validationInline) &&
|
|
22124
23992
|
!validationInlineInternal;
|
|
@@ -22134,14 +24002,14 @@ class TextField {
|
|
|
22134
24002
|
hiddenInput
|
|
22135
24003
|
? renderHiddenInput$1(this.el, value, name, disabledMode)
|
|
22136
24004
|
: removeHiddenInput(this.el);
|
|
22137
|
-
return (hAsync(Host, { key: '
|
|
24005
|
+
return (hAsync(Host, { key: '985b46adc3cee088de75766a4230042e4af8c9c3', class: {
|
|
22138
24006
|
"ic-text-field-full-width": fullWidth,
|
|
22139
24007
|
"ic-text-field-disabled": disabledMode,
|
|
22140
24008
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
22141
|
-
} }, hAsync("ic-input-container", { key: '
|
|
24009
|
+
} }, 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: {
|
|
22142
24010
|
readonly,
|
|
22143
24011
|
"has-value": this.getNumberOfCharacters(value) > 0,
|
|
22144
|
-
}, slot: "left-icon" }, hAsync("slot", { key: '
|
|
24012
|
+
}, 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: {
|
|
22145
24013
|
"no-left-pad": !showLeftIcon && readonly,
|
|
22146
24014
|
readonly,
|
|
22147
24015
|
"truncate-value": truncateValue,
|
|
@@ -22149,19 +24017,12 @@ class TextField {
|
|
|
22149
24017
|
"no-resize": resize === false || !!readonly,
|
|
22150
24018
|
"no-left-pad": !showLeftIcon && !!readonly,
|
|
22151
24019
|
readonly: !!readonly,
|
|
22152
|
-
}, 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: '
|
|
22153
|
-
!isEmptyString$1(validationText) ||
|
|
22154
|
-
maxNumChars > 0 ||
|
|
22155
|
-
maxValueExceeded ||
|
|
22156
|
-
maxCharactersWarning ||
|
|
22157
|
-
minCharactersUnattained ||
|
|
22158
|
-
minValueUnattained) &&
|
|
22159
|
-
!validationInlineInternal && (hAsync("ic-input-validation", { key: '44d09f213ee6779ce6921e427c8ea660a1e47094', status: this.hasStatus(currentStatus) === false ||
|
|
24020
|
+
}, 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 ||
|
|
22160
24021
|
(currentStatus === IcInformationStatus$1.Success &&
|
|
22161
24022
|
validationInline) ||
|
|
22162
24023
|
validationInlineInternal
|
|
22163
24024
|
? ""
|
|
22164
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '
|
|
24025
|
+
: 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.")))))));
|
|
22165
24026
|
}
|
|
22166
24027
|
get el() { return getElement(this); }
|
|
22167
24028
|
static get watchers() { return {
|
|
@@ -22211,6 +24072,7 @@ class TextField {
|
|
|
22211
24072
|
"theme": [1],
|
|
22212
24073
|
"truncateValue": [4, "truncate-value"],
|
|
22213
24074
|
"type": [1],
|
|
24075
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
22214
24076
|
"validationInline": [4, "validation-inline"],
|
|
22215
24077
|
"validationInlineInternal": [4, "validation-inline-internal"],
|
|
22216
24078
|
"validationStatus": [1, "validation-status"],
|
|
@@ -22299,7 +24161,7 @@ class Theme {
|
|
|
22299
24161
|
}
|
|
22300
24162
|
render() {
|
|
22301
24163
|
const { themeClass } = this;
|
|
22302
|
-
return (hAsync(Host, { key: '
|
|
24164
|
+
return (hAsync(Host, { key: '5acfd70fc7d5cec478027487b121829ad9258623', class: themeClass }, hAsync("slot", { key: '962d9fdd42ceb26a48c49a06aa3df3cb13bb9157' })));
|
|
22303
24165
|
}
|
|
22304
24166
|
static get watchers() { return {
|
|
22305
24167
|
"brandColor": ["watchBrandColorPropHandler"],
|
|
@@ -22321,7 +24183,7 @@ class Theme {
|
|
|
22321
24183
|
|
|
22322
24184
|
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>`;
|
|
22323
24185
|
|
|
22324
|
-
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:
|
|
24186
|
+
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}}";
|
|
22325
24187
|
var IcTimeInputStyle0 = icTimeInputCss;
|
|
22326
24188
|
|
|
22327
24189
|
let inputIds = 0;
|
|
@@ -22467,7 +24329,7 @@ class TimeInput {
|
|
|
22467
24329
|
};
|
|
22468
24330
|
this.setTimeValidity = () => {
|
|
22469
24331
|
const minHour = 0;
|
|
22470
|
-
const maxHour = this.timePeriod === "12" ?
|
|
24332
|
+
const maxHour = this.timePeriod === "12" ? 12 : 23;
|
|
22471
24333
|
if (!isEmptyString(this.hour)) {
|
|
22472
24334
|
this.isValidHour = +this.hour >= minHour && +this.hour <= maxHour;
|
|
22473
24335
|
}
|
|
@@ -22699,8 +24561,8 @@ class TimeInput {
|
|
|
22699
24561
|
let minValue = 0;
|
|
22700
24562
|
let maxValue = 59;
|
|
22701
24563
|
if (input === this.hourInputEl) {
|
|
22702
|
-
minValue = 0;
|
|
22703
|
-
maxValue = this.timePeriod === "12" ?
|
|
24564
|
+
minValue = this.timePeriod === "12" ? 1 : 0;
|
|
24565
|
+
maxValue = this.timePeriod === "12" ? 12 : 23;
|
|
22704
24566
|
}
|
|
22705
24567
|
let val = +input.value;
|
|
22706
24568
|
if (event.key === "ArrowUp") {
|
|
@@ -22992,12 +24854,12 @@ class TimeInput {
|
|
|
22992
24854
|
return timeParts.map((part) => {
|
|
22993
24855
|
switch (part.substring(0, 1)) {
|
|
22994
24856
|
case "H":
|
|
22995
|
-
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) }));
|
|
24857
|
+
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) }));
|
|
22996
24858
|
case "M":
|
|
22997
|
-
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) }));
|
|
24859
|
+
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) }));
|
|
22998
24860
|
case "S":
|
|
22999
24861
|
if (!this.isHHMMFormat()) {
|
|
23000
|
-
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) }));
|
|
24862
|
+
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) }));
|
|
23001
24863
|
}
|
|
23002
24864
|
return null;
|
|
23003
24865
|
default:
|
|
@@ -23222,23 +25084,23 @@ class TimeInput {
|
|
|
23222
25084
|
!(isEmptyString(this.hour) &&
|
|
23223
25085
|
isEmptyString(this.minute) &&
|
|
23224
25086
|
isEmptyString(this.second)));
|
|
23225
|
-
return (hAsync(Host, { key: '
|
|
25087
|
+
return (hAsync(Host, { key: 'a7604eeee0b3fbc569bf9dd8dde0985ca1d959ac', class: {
|
|
23226
25088
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
23227
25089
|
[`ic-time-input-disabled`]: disabled,
|
|
23228
25090
|
[`ic-time-input-${size}`]: true,
|
|
23229
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
|
25091
|
+
}, 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" }, [
|
|
23230
25092
|
this.getInputsInOrder()[0],
|
|
23231
25093
|
":",
|
|
23232
25094
|
this.getInputsInOrder()[1],
|
|
23233
25095
|
!this.isHHMMFormat()
|
|
23234
25096
|
? [":", this.getInputsInOrder()[2]]
|
|
23235
25097
|
: null,
|
|
23236
|
-
]), hAsync("div", { key: '
|
|
25098
|
+
]), hAsync("div", { key: '80f2e178df91b5ae6bba0bfeda0600330d877222', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: '295fa279d38b8239e3640a719ae350cc493a40f0', id: "clear-button", "aria-label": "Clear input", class: {
|
|
23237
25099
|
["clear-button"]: true,
|
|
23238
25100
|
["hidden"]: isEmptyString(this.hour) &&
|
|
23239
25101
|
isEmptyString(this.minute) &&
|
|
23240
25102
|
isEmptyString(this.second),
|
|
23241
|
-
}, 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: '
|
|
25103
|
+
}, 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 })))));
|
|
23242
25104
|
}
|
|
23243
25105
|
static get delegatesFocus() { return true; }
|
|
23244
25106
|
get el() { return getElement(this); }
|
|
@@ -23499,13 +25361,13 @@ class Toast {
|
|
|
23499
25361
|
}
|
|
23500
25362
|
render() {
|
|
23501
25363
|
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
|
|
23502
|
-
return (hAsync(Host, { key: '
|
|
25364
|
+
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: {
|
|
23503
25365
|
["divider"]: true,
|
|
23504
25366
|
[`divider-${variant}`]: true,
|
|
23505
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
|
25367
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '92552b4b1b4d5de15284d8f5382a56ed81a99d89', class: {
|
|
23506
25368
|
["toast-content"]: true,
|
|
23507
25369
|
["no-icon"]: variant === "neutral" && !isSlotUsed$1(this.el, "neutral-icon"),
|
|
23508
|
-
} }, hAsync("div", { key: '
|
|
25370
|
+
} }, 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 })))));
|
|
23509
25371
|
}
|
|
23510
25372
|
get el() { return getElement(this); }
|
|
23511
25373
|
static get watchers() { return {
|
|
@@ -23577,7 +25439,7 @@ class ToastRegion {
|
|
|
23577
25439
|
}
|
|
23578
25440
|
}
|
|
23579
25441
|
render() {
|
|
23580
|
-
return hAsync("slot", { key: '
|
|
25442
|
+
return hAsync("slot", { key: 'fd1b79dd960a3c3caef1d90e1e1184e4e9fa0432' });
|
|
23581
25443
|
}
|
|
23582
25444
|
get el() { return getElement(this); }
|
|
23583
25445
|
static get watchers() { return {
|
|
@@ -23737,7 +25599,7 @@ class ToggleButton {
|
|
|
23737
25599
|
render() {
|
|
23738
25600
|
const { accessibleLabel, checked, disabled, fullWidth, iconPlacement, monochrome, label, loading, outline, size, theme, tooltipPlacement, variant, } = this;
|
|
23739
25601
|
const iconVariant = variant === "icon";
|
|
23740
|
-
return (hAsync(Host, { key: '
|
|
25602
|
+
return (hAsync(Host, { key: '996e234f8829d4506354673ec53eb5a88b243caf', class: {
|
|
23741
25603
|
"ic-toggle-button-checked": checked,
|
|
23742
25604
|
"ic-toggle-button-disabled": disabled,
|
|
23743
25605
|
"ic-toggle-button-icon": iconVariant,
|
|
@@ -23747,7 +25609,7 @@ class ToggleButton {
|
|
|
23747
25609
|
"ic-toggle-button-hide-outline": !outline,
|
|
23748
25610
|
[`ic-toggle-button-${size}`]: true,
|
|
23749
25611
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
23750
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '
|
|
25612
|
+
}, 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" })))));
|
|
23751
25613
|
}
|
|
23752
25614
|
static get delegatesFocus() { return true; }
|
|
23753
25615
|
get el() { return getElement(this); }
|
|
@@ -24008,14 +25870,14 @@ class ToggleButtonGroup {
|
|
|
24008
25870
|
}
|
|
24009
25871
|
render() {
|
|
24010
25872
|
const { accessibleLabel, disabled, fullWidth, loading, monochrome, outline, theme, } = this;
|
|
24011
|
-
return (hAsync(Host, { key: '
|
|
25873
|
+
return (hAsync(Host, { key: '0411fab0ff536df861d5d69e987a1bbdc25bd722', role: "group", "aria-label": accessibleLabel, tabindex: 0, class: {
|
|
24012
25874
|
"ic-toggle-button-group-disabled": disabled,
|
|
24013
25875
|
"ic-toggle-button-group-full-width": fullWidth,
|
|
24014
25876
|
"ic-toggle-button-group-loading": loading,
|
|
24015
25877
|
"ic-toggle-button-group-monochrome": monochrome,
|
|
24016
25878
|
"ic-toggle-button-group-hide-outline": !outline,
|
|
24017
25879
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
24018
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
|
25880
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: 'a031963635f3c0513b7b3786b02c86b75ce1d9c1' })));
|
|
24019
25881
|
}
|
|
24020
25882
|
get el() { return getElement(this); }
|
|
24021
25883
|
static get watchers() { return {
|
|
@@ -24142,8 +26004,10 @@ class Tooltip {
|
|
|
24142
26004
|
}
|
|
24143
26005
|
};
|
|
24144
26006
|
this.hide = () => {
|
|
24145
|
-
this.toolTip
|
|
24146
|
-
|
|
26007
|
+
if (this.toolTip !== undefined) {
|
|
26008
|
+
this.toolTip.removeAttribute("data-show");
|
|
26009
|
+
this.persistTooltip = false;
|
|
26010
|
+
}
|
|
24147
26011
|
if (this.popperInstance !== undefined) {
|
|
24148
26012
|
this.popperInstance.destroy();
|
|
24149
26013
|
}
|
|
@@ -24269,10 +26133,10 @@ class Tooltip {
|
|
|
24269
26133
|
}
|
|
24270
26134
|
render() {
|
|
24271
26135
|
const { label, maxLines, silent, theme } = this;
|
|
24272
|
-
return (hAsync(Host, { key: '
|
|
26136
|
+
return (hAsync(Host, { key: '9e66710981ac51e4fae8ff9e6b8d30eb44870c3b', class: {
|
|
24273
26137
|
"ic-tooltip": true,
|
|
24274
26138
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
24275
|
-
} }, hAsync("div", { key: '
|
|
26139
|
+
} }, 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' })));
|
|
24276
26140
|
}
|
|
24277
26141
|
get el() { return getElement(this); }
|
|
24278
26142
|
static get watchers() { return {
|
|
@@ -24859,7 +26723,7 @@ class TreeItem {
|
|
|
24859
26723
|
rel: this.rel,
|
|
24860
26724
|
target: this.target,
|
|
24861
26725
|
};
|
|
24862
|
-
return (hAsync(Host, { key: '
|
|
26726
|
+
return (hAsync(Host, { key: 'd255f1d49d96b7d81028f57d2d6970f61779178c', class: {
|
|
24863
26727
|
"ic-tree-item-disabled": disabled,
|
|
24864
26728
|
"ic-tree-item-selected": !disabled && selected,
|
|
24865
26729
|
[`ic-tree-item-${size}`]: size !== "medium",
|
|
@@ -24870,7 +26734,7 @@ class TreeItem {
|
|
|
24870
26734
|
}, 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: {
|
|
24871
26735
|
["arrow-dropdown"]: true,
|
|
24872
26736
|
["tree-item-expanded"]: expanded,
|
|
24873
|
-
}, "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: '
|
|
26737
|
+
}, "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' })))));
|
|
24874
26738
|
}
|
|
24875
26739
|
get el() { return getElement(this); }
|
|
24876
26740
|
static get watchers() { return {
|
|
@@ -25207,7 +27071,7 @@ class TreeView {
|
|
|
25207
27071
|
if (icon) {
|
|
25208
27072
|
const iconSlot = document.createElement("div");
|
|
25209
27073
|
iconSlot.setAttribute("slot", "icon");
|
|
25210
|
-
iconSlot.innerHTML = icon;
|
|
27074
|
+
iconSlot.innerHTML = sanitizeHTMLIconString$1(icon);
|
|
25211
27075
|
treeItem.appendChild(iconSlot);
|
|
25212
27076
|
}
|
|
25213
27077
|
parentElement.appendChild(treeItem);
|
|
@@ -25227,14 +27091,14 @@ class TreeView {
|
|
|
25227
27091
|
}
|
|
25228
27092
|
render() {
|
|
25229
27093
|
const { heading, isLoaded, size, theme, truncateHeading } = this;
|
|
25230
|
-
return (hAsync(Host, { key: '
|
|
27094
|
+
return (hAsync(Host, { key: '414d715e703585390a75012284474a32406b4c33', "context-id": this.treeViewId, class: {
|
|
25231
27095
|
[`ic-tree-view-${size}`]: size !== "medium",
|
|
25232
27096
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
25233
27097
|
"ic-tree-view-truncate": truncateHeading,
|
|
25234
|
-
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '
|
|
27098
|
+
}, 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: {
|
|
25235
27099
|
"tree-view-header": true,
|
|
25236
27100
|
"with-padding": this.truncateHeading && !isLoaded,
|
|
25237
|
-
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '
|
|
27101
|
+
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '3039892aa557a89cbe9caf6c141c6b6254db5077' })));
|
|
25238
27102
|
}
|
|
25239
27103
|
get el() { return getElement(this); }
|
|
25240
27104
|
static get watchers() { return {
|
|
@@ -25432,7 +27296,7 @@ class Typography {
|
|
|
25432
27296
|
render() {
|
|
25433
27297
|
var _a, _b;
|
|
25434
27298
|
const { variant, applyVerticalMargins, maxLines, truncated, expanded, strikethrough, underline, italic, bold, theme, } = this;
|
|
25435
|
-
return (hAsync(Host, { key: '
|
|
27299
|
+
return (hAsync(Host, { key: '305bed1ac7754985aacba1a23e9deff81691a69c', class: {
|
|
25436
27300
|
[`ic-typography-${variant}`]: true,
|
|
25437
27301
|
[`ic-typography-vertical-margins-${variant}`]: !!applyVerticalMargins,
|
|
25438
27302
|
["ic-typography-bold"]: !!bold,
|
|
@@ -25445,7 +27309,7 @@ class Typography {
|
|
|
25445
27309
|
((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===
|
|
25446
27310
|
"IC-TOOLTIP") &&
|
|
25447
27311
|
maxLines &&
|
|
25448
|
-
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: '
|
|
27312
|
+
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"))));
|
|
25449
27313
|
}
|
|
25450
27314
|
get el() { return getElement(this); }
|
|
25451
27315
|
static get watchers() { return {
|
|
@@ -25543,6 +27407,7 @@ registerComponents([
|
|
|
25543
27407
|
TabContext,
|
|
25544
27408
|
TabGroup,
|
|
25545
27409
|
TabPanel,
|
|
27410
|
+
TableOfContents,
|
|
25546
27411
|
TextField,
|
|
25547
27412
|
Theme,
|
|
25548
27413
|
TimeInput,
|