@ukic/canary-web-components 3.0.0-canary.26 → 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-b55826ba.js → helpers-046745ee.js} +3 -1
- package/dist/cjs/helpers-046745ee.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-action-chip.cjs.entry.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +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 +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 +36 -23
- 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-row.cjs.entry.js +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 +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +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 +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +7 -6
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu.cjs.entry.js +21 -5
- 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 +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +23 -16
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +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 +2 -2
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +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 +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +1 -1
- package/dist/cjs/ic-time-input.cjs.entry.js +8 -8
- package/dist/cjs/ic-time-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +1 -1
- 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 +1 -1
- 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/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.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 +52 -21
- 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.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.map +1 -1
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.js.map +1 -1
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.stories.js.map +1 -1
- package/dist/collection/components/ic-table-of-contents/test/a11y/ic-table-of-contents.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-time-input/ic-time-input.css +1 -1
- package/dist/collection/components/ic-time-input/ic-time-input.js +7 -7
- 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.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 +2 -1
- package/dist/components/helpers.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-chip.js +5 -4
- package/dist/components/ic-chip.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 +1 -1
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-footer.js +1 -1
- package/dist/components/ic-horizontal-scroll2.js +1 -1
- package/dist/components/ic-input-validation2.js +6 -5
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-menu2.js +21 -5
- 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 +1 -1
- package/dist/components/ic-navigation-item.js +1 -1
- package/dist/components/ic-navigation-menu2.js +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 +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 +1 -1
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +1 -1
- package/dist/components/ic-select2.js +17 -9
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +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-text-field2.js +9 -9
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-time-input.js +8 -8
- package/dist/components/ic-time-input.js.map +1 -1
- package/dist/components/ic-toast.js +1 -1
- package/dist/components/ic-toggle-button.js +1 -1
- package/dist/components/ic-top-navigation.js +1 -1
- package/dist/components/ic-tree-view.js +5 -4
- package/dist/components/ic-tree-view.js.map +1 -1
- package/dist/components/purify.js +1363 -0
- package/dist/components/purify.js.map +1 -0
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-20f248be.entry.js → p-05e0cadf.entry.js} +2 -2
- package/dist/core/{p-b8cb867c.entry.js → p-07365d6f.entry.js} +2 -2
- package/dist/core/{p-a7bc9a19.entry.js → p-0b0cc10d.entry.js} +2 -2
- package/dist/core/{p-318c6a4c.entry.js → p-0e882f70.entry.js} +2 -2
- package/dist/core/{p-a8d934fe.entry.js → p-0ec0be8d.entry.js} +2 -2
- package/dist/core/{p-3bee8f39.entry.js → p-182883cb.entry.js} +2 -2
- package/dist/core/{p-3414247d.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-fc125ca6.entry.js → p-266d5e13.entry.js} +2 -2
- package/dist/core/p-2bba11f8.entry.js +2 -0
- package/dist/core/{p-c08ea34d.entry.js.map → p-2bba11f8.entry.js.map} +1 -1
- package/dist/core/{p-570ff466.entry.js → p-2f0ab1d0.entry.js} +2 -2
- 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-479e5fa2.entry.js +2 -0
- package/dist/core/p-479e5fa2.entry.js.map +1 -0
- package/dist/core/p-542ac498.js +2 -0
- package/dist/core/p-542ac498.js.map +1 -0
- package/dist/core/{p-4fa1a80f.entry.js → p-54da2d5f.entry.js} +2 -2
- package/dist/core/{p-6a884eef.entry.js → p-553531bf.entry.js} +2 -2
- package/dist/core/{p-b12c4643.entry.js → p-5d6290bb.entry.js} +2 -2
- package/dist/core/p-5d6290bb.entry.js.map +1 -0
- package/dist/core/{p-8bb49790.entry.js → p-656b92d7.entry.js} +2 -2
- package/dist/core/{p-a0c361ec.entry.js → p-6addd986.entry.js} +2 -2
- package/dist/core/{p-c7a97221.entry.js → p-6d4418e4.entry.js} +2 -2
- package/dist/core/{p-9c491db1.entry.js → p-6e5fc63c.entry.js} +2 -2
- package/dist/core/{p-d6a1b39c.entry.js → p-70447473.entry.js} +2 -2
- package/dist/core/{p-17423822.entry.js → p-77c4d1d2.entry.js} +2 -2
- package/dist/core/{p-4479c7e7.entry.js → p-796b9ac5.entry.js} +2 -2
- package/dist/core/{p-09c0961a.entry.js → p-7986db4a.entry.js} +2 -2
- package/dist/core/p-7bb3531c.entry.js +2 -0
- package/dist/core/p-7bb3531c.entry.js.map +1 -0
- package/dist/core/{p-cd3f12ad.entry.js → p-8a5ae4ab.entry.js} +2 -2
- package/dist/core/{p-f4b08cdb.entry.js → p-8b4a7a78.entry.js} +2 -2
- package/dist/core/{p-b95d99c7.entry.js → p-8c841dc8.entry.js} +2 -2
- package/dist/core/{p-55934942.entry.js → p-94e5ed81.entry.js} +2 -2
- package/dist/core/{p-b5dd226f.entry.js → p-9af5008c.entry.js} +2 -2
- package/dist/core/{p-7821c7dc.entry.js → p-9b68bee6.entry.js} +2 -2
- 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-30a2abe9.entry.js → p-a7a572d9.entry.js} +2 -2
- package/dist/core/{p-3bb4ea35.entry.js → p-a86756fa.entry.js} +2 -2
- package/dist/core/{p-aaa6d8e1.entry.js → p-ac2f8cc8.entry.js} +2 -2
- package/dist/core/{p-9c8070a1.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-b7a726fb.entry.js +2 -0
- package/dist/core/p-b7a726fb.entry.js.map +1 -0
- package/dist/core/{p-d3eb3356.entry.js → p-ba26a1f0.entry.js} +2 -2
- package/dist/core/{p-d3b9c04b.entry.js → p-bad17ba7.entry.js} +2 -2
- package/dist/core/{p-9ad64b6f.entry.js → p-bf08d34c.entry.js} +2 -2
- package/dist/core/{p-b2c49dfd.entry.js → p-bf5558ac.entry.js} +2 -2
- package/dist/core/{p-d143aa70.entry.js → p-c1ae14ad.entry.js} +2 -2
- 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-92f199b0.entry.js → p-d77981a5.entry.js} +2 -2
- package/dist/core/{p-98286c35.entry.js → p-e0abd214.entry.js} +2 -2
- package/dist/core/p-e0abd214.entry.js.map +1 -0
- package/dist/core/{p-f5cc4e94.entry.js → p-e8cea1d5.entry.js} +2 -2
- package/dist/core/{p-5534bb37.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-9f5a1473.entry.js → p-f7b1d6bf.entry.js} +2 -2
- package/dist/core/p-f7b1d6bf.entry.js.map +1 -0
- package/dist/core/{p-e435052b.entry.js → p-fba9f5b6.entry.js} +2 -2
- package/dist/core/{p-0fffe635.entry.js → p-ff4a873e.entry.js} +2 -2
- 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-fee7d348.js → helpers-1dbd527e.js} +3 -2
- package/dist/esm/helpers-1dbd527e.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-action-chip.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +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 +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 +36 -23
- 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-row.entry.js +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 +1 -1
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +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 +1 -1
- package/dist/esm/ic-footer.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +1 -1
- package/dist/esm/ic-input-component-container_4.entry.js +7 -6
- package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +1 -1
- package/dist/esm/ic-menu-group.entry.js +1 -1
- package/dist/esm/ic-menu-item.entry.js +1 -1
- package/dist/esm/ic-menu.entry.js +21 -5
- 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 +1 -1
- package/dist/esm/ic-navigation-item.entry.js +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +1 -1
- package/dist/esm/ic-page-header.entry.js +1 -1
- package/dist/esm/ic-pagination_4.entry.js +23 -16
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +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 +2 -2
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +1 -1
- package/dist/esm/ic-side-navigation.entry.js +1 -1
- package/dist/esm/ic-status-tag.entry.js +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 +1 -1
- package/dist/esm/ic-tab-group.entry.js +1 -1
- package/dist/esm/ic-tab.entry.js +1 -1
- package/dist/esm/ic-theme.entry.js +1 -1
- package/dist/esm/ic-time-input.entry.js +8 -8
- package/dist/esm/ic-time-input.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +1 -1
- package/dist/esm/ic-toggle-button.entry.js +1 -1
- package/dist/esm/ic-top-navigation.entry.js +1 -1
- 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 +1 -1
- 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 +0 -9
- 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.d.ts +4 -4
- 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/hydrate/index.js +1595 -142
- package/hydrate/index.mjs +1595 -142
- package/package.json +3 -3
- package/dist/cjs/helpers-b55826ba.js.map +0 -1
- package/dist/core/p-25d21dbd.entry.js +0 -2
- package/dist/core/p-25d21dbd.entry.js.map +0 -1
- package/dist/core/p-4eb74281.entry.js +0 -2
- package/dist/core/p-4eb74281.entry.js.map +0 -1
- package/dist/core/p-514c4401.entry.js +0 -2
- package/dist/core/p-514c4401.entry.js.map +0 -1
- package/dist/core/p-587d704d.entry.js +0 -2
- package/dist/core/p-587d704d.entry.js.map +0 -1
- package/dist/core/p-9810080e.entry.js +0 -2
- package/dist/core/p-9810080e.entry.js.map +0 -1
- package/dist/core/p-98286c35.entry.js.map +0 -1
- package/dist/core/p-9f5a1473.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-b12c4643.entry.js.map +0 -1
- package/dist/core/p-c039a175.entry.js +0 -2
- package/dist/core/p-c039a175.entry.js.map +0 -1
- package/dist/core/p-c08ea34d.entry.js +0 -2
- package/dist/core/p-c95be271.entry.js +0 -2
- package/dist/core/p-c95be271.entry.js.map +0 -1
- package/dist/core/p-d7c44cce.entry.js +0 -2
- package/dist/core/p-d7c44cce.entry.js.map +0 -1
- package/dist/core/p-ee95905f.js +0 -2
- package/dist/core/p-ee95905f.js.map +0 -1
- package/dist/core/p-f6772530.entry.js +0 -2
- package/dist/core/p-f6772530.entry.js.map +0 -1
- package/dist/esm/helpers-fee7d348.js.map +0 -1
- /package/dist/core/{p-20f248be.entry.js.map → p-05e0cadf.entry.js.map} +0 -0
- /package/dist/core/{p-b8cb867c.entry.js.map → p-07365d6f.entry.js.map} +0 -0
- /package/dist/core/{p-a7bc9a19.entry.js.map → p-0b0cc10d.entry.js.map} +0 -0
- /package/dist/core/{p-318c6a4c.entry.js.map → p-0e882f70.entry.js.map} +0 -0
- /package/dist/core/{p-a8d934fe.entry.js.map → p-0ec0be8d.entry.js.map} +0 -0
- /package/dist/core/{p-3bee8f39.entry.js.map → p-182883cb.entry.js.map} +0 -0
- /package/dist/core/{p-3414247d.entry.js.map → p-18b793e0.entry.js.map} +0 -0
- /package/dist/core/{p-fc125ca6.entry.js.map → p-266d5e13.entry.js.map} +0 -0
- /package/dist/core/{p-570ff466.entry.js.map → p-2f0ab1d0.entry.js.map} +0 -0
- /package/dist/core/{p-4fa1a80f.entry.js.map → p-54da2d5f.entry.js.map} +0 -0
- /package/dist/core/{p-6a884eef.entry.js.map → p-553531bf.entry.js.map} +0 -0
- /package/dist/core/{p-8bb49790.entry.js.map → p-656b92d7.entry.js.map} +0 -0
- /package/dist/core/{p-a0c361ec.entry.js.map → p-6addd986.entry.js.map} +0 -0
- /package/dist/core/{p-c7a97221.entry.js.map → p-6d4418e4.entry.js.map} +0 -0
- /package/dist/core/{p-9c491db1.entry.js.map → p-6e5fc63c.entry.js.map} +0 -0
- /package/dist/core/{p-d6a1b39c.entry.js.map → p-70447473.entry.js.map} +0 -0
- /package/dist/core/{p-17423822.entry.js.map → p-77c4d1d2.entry.js.map} +0 -0
- /package/dist/core/{p-4479c7e7.entry.js.map → p-796b9ac5.entry.js.map} +0 -0
- /package/dist/core/{p-09c0961a.entry.js.map → p-7986db4a.entry.js.map} +0 -0
- /package/dist/core/{p-cd3f12ad.entry.js.map → p-8a5ae4ab.entry.js.map} +0 -0
- /package/dist/core/{p-f4b08cdb.entry.js.map → p-8b4a7a78.entry.js.map} +0 -0
- /package/dist/core/{p-b95d99c7.entry.js.map → p-8c841dc8.entry.js.map} +0 -0
- /package/dist/core/{p-55934942.entry.js.map → p-94e5ed81.entry.js.map} +0 -0
- /package/dist/core/{p-b5dd226f.entry.js.map → p-9af5008c.entry.js.map} +0 -0
- /package/dist/core/{p-7821c7dc.entry.js.map → p-9b68bee6.entry.js.map} +0 -0
- /package/dist/core/{p-30a2abe9.entry.js.map → p-a7a572d9.entry.js.map} +0 -0
- /package/dist/core/{p-3bb4ea35.entry.js.map → p-a86756fa.entry.js.map} +0 -0
- /package/dist/core/{p-aaa6d8e1.entry.js.map → p-ac2f8cc8.entry.js.map} +0 -0
- /package/dist/core/{p-9c8070a1.entry.js.map → p-b10f5992.entry.js.map} +0 -0
- /package/dist/core/{p-d3eb3356.entry.js.map → p-ba26a1f0.entry.js.map} +0 -0
- /package/dist/core/{p-d3b9c04b.entry.js.map → p-bad17ba7.entry.js.map} +0 -0
- /package/dist/core/{p-9ad64b6f.entry.js.map → p-bf08d34c.entry.js.map} +0 -0
- /package/dist/core/{p-b2c49dfd.entry.js.map → p-bf5558ac.entry.js.map} +0 -0
- /package/dist/core/{p-d143aa70.entry.js.map → p-c1ae14ad.entry.js.map} +0 -0
- /package/dist/core/{p-92f199b0.entry.js.map → p-d77981a5.entry.js.map} +0 -0
- /package/dist/core/{p-f5cc4e94.entry.js.map → p-e8cea1d5.entry.js.map} +0 -0
- /package/dist/core/{p-5534bb37.entry.js.map → p-f591abc2.entry.js.map} +0 -0
- /package/dist/core/{p-e435052b.entry.js.map → p-fba9f5b6.entry.js.map} +0 -0
- /package/dist/core/{p-0fffe635.entry.js.map → p-ff4a873e.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -3281,6 +3281,7 @@ const IGNORED_KEYBOARD_CHARACTERS = [
|
|
|
3281
3281
|
"Shift",
|
|
3282
3282
|
"Tab",
|
|
3283
3283
|
];
|
|
3284
|
+
const IC_CUSTOM_ALLOWED_COMPONENTS$1 = [];
|
|
3284
3285
|
|
|
3285
3286
|
const DARK_MODE_THRESHOLD = 133.3505;
|
|
3286
3287
|
const ANYWHERE_SEARCH_POSITION = "anywhere";
|
|
@@ -6334,7 +6335,7 @@ class Checkbox {
|
|
|
6334
6335
|
}; }
|
|
6335
6336
|
}
|
|
6336
6337
|
|
|
6337
|
-
const icCheckboxGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-checkbox-group-label);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle);--ic-input-validation-error:var(--ic-checkbox-state-icon-error);--ic-input-validation-status-text-color:var(--ic-checkbox-state-text)}:host(.ic-checkbox-group-disabled){--ic-input-label-text-color:var(--ic-checkbox-group-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-checkbox-group-subtitle-disabled\n )}ic-input-label.error{color:var(--ic-checkbox-group-label-error);--ic-typography-color:var(--ic-checkbox-group-label-error);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle-error)}ic-input-label:not(.with-helper) .ic-typography-label,ic-input-label .helpertext{margin-bottom:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-checkbox-group-small) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) / 2)}:host(.ic-checkbox-group-large) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-checkbox-group-large) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) * 1.5)}ic-input-label .helpertext{display:block}ic-input-validation{margin-top:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-validation{margin-top:calc(var(--ic-space-sm) / 2)}:host(.ic-checkbox-group-large) ic-input-validation{margin-top:calc(var(--ic-space-sm) * 1.5)}.checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxs))}:host(.ic-checkbox-group-small) .checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxxs))}.screen-reader-only-text{position:absolute;left:-9999px;background-color:#fff;color:#000;text-transform:none}.screen-reader-only-text:dir(rtl){right:-9999px}";
|
|
6338
|
+
const icCheckboxGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-checkbox-group-label);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle);--ic-input-validation-error:var(--ic-checkbox-state-icon-error);--ic-input-validation-status-text-color:var(--ic-checkbox-state-text)}:host(.ic-checkbox-group-disabled){--ic-input-label-text-color:var(--ic-checkbox-group-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-checkbox-group-subtitle-disabled\n )}ic-input-label.error{color:var(--ic-checkbox-group-label-error);--ic-typography-color:var(--ic-checkbox-group-label-error);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle-error)}ic-input-label:not(.with-helper) .ic-typography-label,ic-input-label .helpertext{margin-bottom:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-checkbox-group-small) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) / 2)}:host(.ic-checkbox-group-large) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-checkbox-group-large) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) * 1.5)}ic-input-label .helpertext{display:block}ic-input-validation.show-validation{margin-top:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-validation.show-validation{margin-top:calc(var(--ic-space-sm) / 2)}:host(.ic-checkbox-group-large) ic-input-validation.show-validation{margin-top:calc(var(--ic-space-sm) * 1.5)}.checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxs))}:host(.ic-checkbox-group-small) .checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxxs))}.screen-reader-only-text{position:absolute;left:-9999px;background-color:#fff;color:#000;text-transform:none}.screen-reader-only-text:dir(rtl){right:-9999px}";
|
|
6338
6339
|
var IcCheckboxGroupStyle0 = icCheckboxGroupCss;
|
|
6339
6340
|
|
|
6340
6341
|
const CHECKBOX_SELECTOR = "ic-checkbox";
|
|
@@ -6432,11 +6433,14 @@ class CheckboxGroup {
|
|
|
6432
6433
|
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationStatus, validationText, } = this;
|
|
6433
6434
|
const describedBy = getInputDescribedByText$1(this.el, name, helperText !== "", validationStatus !== "");
|
|
6434
6435
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
|
6435
|
-
|
|
6436
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
6437
|
+
return (hAsync(Host, { key: '6d5ed4db589400cd64aeed3bccd46087858d2902', class: {
|
|
6436
6438
|
"ic-checkbox-group-disabled": !!disabled,
|
|
6437
6439
|
[`ic-checkbox-group-${size}`]: true,
|
|
6438
6440
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6439
|
-
} }, renderSRText && (hAsync("span", { key: '
|
|
6441
|
+
} }, renderSRText && (hAsync("span", { key: '2fc368a571755ad3125067498b17b52ce8933e8f', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { key: '6b7d3155fa0479fbd51c5e5100945ee4995dfadf', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: '469a466275aa307d6ca876ec18a79bb5d29167b8' }, hAsync("ic-input-label", { key: '4cd2e89ab463ea9c7438fb1759faddf6df8750d1', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }, hAsync("slot", { key: '0b0b0a5028039ef6d487d441ebd28f47f32200b7', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '747fea859cd5a3bbd474454b408f648169b5fe45', class: "checkboxes-container" }, hAsync("slot", { key: '200a6c033ff1243e8778aec3c91a22213f5082f5' }))), showValidation && (hAsync("ic-input-validation", { key: 'df907eeb4348050b37357f27405b3ef548990163', class: {
|
|
6442
|
+
"show-validation": showValidation,
|
|
6443
|
+
}, for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
|
6440
6444
|
}
|
|
6441
6445
|
get el() { return getElement(this); }
|
|
6442
6446
|
static get watchers() { return {
|
|
@@ -6472,7 +6476,7 @@ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org
|
|
|
6472
6476
|
</svg>
|
|
6473
6477
|
`;
|
|
6474
6478
|
|
|
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}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding:calc(var(--ic-space-xxs) - var(--ic-space-1px)) var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;position:relative;background-color:var(--chip-bg-color);border:var(--ic-border-width) solid transparent;justify-content:space-between}@media (prefers-reduced-motion: no-preference){.chip{transition:var(--ic-easing-transition-fast)}}.chip.small{padding:var(--ic-space-1px) var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.chip.large{padding:calc(var(--ic-space-xs) - var(--ic-space-1px)) var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.label{padding:0 var(--ic-space-xs)}.chip:focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);z-index:1}ic-tooltip:focus-within{z-index:1}.filled{--chip-bg-color:var(\n --chip-custom-color,\n var(--ic-chip-background-filled-default)\n );--ic-typography-color:var(\n --chip-custom-foreground-color,\n var(--ic-chip-label)\n );color:var(--chip-custom-foreground-color, var(--ic-chip-label))}.filled.disabled{--chip-bg-color:var(--ic-chip-background-filled-inactive)}:host(.ic-chip-dark-text){--chip-custom-foreground-color:var(--ic-architectural-black)}:host(.ic-chip-light-text){--chip-custom-foreground-color:var(--ic-architectural-white)}:host(.ic-chip-dark-text) .chip.filled.hovered:not(:focus-within){--chip-hover-bg:var(--ic-action-dark-bg-hover)}:host(.ic-chip-dark-text) .chip.filled:focus-within{--chip-pressed-bg:var(--ic-action-dark-bg-pressed)}:host(.ic-chip-light-text) .chip.filled.hovered:not(:focus-within){--chip-hover-bg:var(--ic-action-light-bg-hover)}:host(.ic-chip-light-text) .chip.filled:focus-within{--chip-pressed-bg:var(--ic-action-light-bg-pressed)}.outlined{color:var(--ic-chip-outline-label);border-color:var(--chip-custom-color, var(--ic-chip-outline));padding:calc(var(--ic-space-xxs));--ic-typography-color:var(--ic-chip-outline-label)}.outlined.disabled{border:var(--ic-border-disabled);border-color:var(--ic-chip-outline-inactive)}.chip.disabled ic-typography{--ic-typography-color:var(--ic-chip-label-inactive)}.dismiss-icon{border:none;border-radius:50%;padding:0;color:currentcolor;background:none;cursor:pointer;margin:var(--ic-space-xxxs);height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs))}.dismiss-icon:focus{outline:var(--ic-hc-focus-outline)}.dismiss-icon[disabled]{pointer-events:none;color:var(--ic-chip-icon-inactive)}.icon{padding:var(--ic-space-xxxs);box-sizing:border-box}.icon,ic-tooltip{width:var(--ic-space-lg);height:var(--ic-space-lg)}.chip.disabled path,.chip.disabled ::slotted(svg){fill:var(--ic-chip-icon-inactive)}.outlined.non-transparent{background-color:var(--ic-chip-outline-background)}:host .chip.hovered:not(:focus-within){background-image:linear-gradient(var(--chip-hover-bg) 0 0)}:host .chip:focus-within{background-image:linear-gradient(var(--chip-pressed-bg) 0 0)}.sr-only{position:absolute;left:-9999px}.sr-only:dir(rtl){right:-9999px}@media (forced-colors: active){.chip{border:var(--ic-border-hc)}.chip.disabled{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.chip.disabled ic-typography{--ic-typography-color:GrayText}.chip.disabled path,.chip.disabled ::slotted(svg){fill:GrayText}.chip:focus-within{outline:none;border-color:Highlight}}";
|
|
6479
|
+
const icChipCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;max-width:100%;vertical-align:middle}:host(.ic-chip-dismissed){display:none}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding:calc(var(--ic-space-xxs) - var(--ic-space-1px)) var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;position:relative;background-color:var(--chip-bg-color);border:var(--ic-border-width) solid transparent;justify-content:space-between}@media (prefers-reduced-motion: no-preference){.chip{transition:var(--ic-easing-transition-fast)}}.chip.small{padding:var(--ic-space-1px) var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.chip.large{padding:calc(var(--ic-space-xs) - var(--ic-space-1px)) var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.label{padding:0 var(--ic-space-xs)}.chip:focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);z-index:1}ic-tooltip:focus-within{z-index:1}.filled{--chip-bg-color:var(\n --chip-custom-color,\n var(--ic-chip-background-filled-default)\n );--ic-typography-color:var(\n --chip-custom-foreground-color,\n var(--ic-chip-label)\n );color:var(--chip-custom-foreground-color, var(--ic-chip-label))}.filled.disabled{--chip-bg-color:var(--ic-chip-background-filled-inactive)}:host(.ic-chip-dark-text){--chip-custom-foreground-color:var(--ic-architectural-black)}:host(.ic-chip-light-text){--chip-custom-foreground-color:var(--ic-architectural-white)}:host(.ic-chip-dark-text) .chip.filled.hovered:not(:focus-within){--chip-hover-bg:var(--ic-action-dark-bg-hover)}:host(.ic-chip-dark-text) .chip.filled:focus-within{--chip-pressed-bg:var(--ic-action-dark-bg-pressed)}:host(.ic-chip-light-text) .chip.filled.hovered:not(:focus-within){--chip-hover-bg:var(--ic-action-light-bg-hover)}:host(.ic-chip-light-text) .chip.filled:focus-within{--chip-pressed-bg:var(--ic-action-light-bg-pressed)}.outlined{color:var(--ic-chip-outline-label);border-color:var(--chip-custom-color, var(--ic-chip-outline));padding:calc(var(--ic-space-xxs));--ic-typography-color:var(--ic-chip-outline-label)}.outlined.disabled{border:var(--ic-border-disabled);border-color:var(--ic-chip-outline-inactive)}.chip.disabled ic-typography{--ic-typography-color:var(--ic-chip-label-inactive)}.dismiss-icon{border:none;border-radius:50%;padding:0;color:currentcolor;background:none;cursor:pointer;margin:var(--ic-space-xxxs);height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs))}.dismiss-icon:focus{outline:var(--ic-hc-focus-outline)}.dismiss-icon[disabled]{pointer-events:none;color:var(--ic-chip-icon-inactive)}.icon{padding:var(--ic-space-xxxs);box-sizing:border-box}.icon,ic-tooltip{width:var(--ic-space-lg);height:var(--ic-space-lg)}.chip.disabled path,.chip.disabled ::slotted(svg){fill:var(--ic-chip-icon-inactive)}.outlined.non-transparent{background-color:var(--ic-chip-outline-background)}:host .chip.hovered:not(:focus-within){background-image:linear-gradient(var(--chip-hover-bg) 0 0)}:host .chip:focus-within{background-image:linear-gradient(var(--chip-pressed-bg) 0 0)}.sr-only{position:absolute;left:-9999px}.sr-only:dir(rtl){right:-9999px}@media (forced-colors: active){.chip{border:var(--ic-border-hc)}.chip.disabled{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.chip.disabled ic-typography{--ic-typography-color:GrayText}.chip.disabled path,.chip.disabled ::slotted(svg){fill:GrayText}.chip:focus-within{outline:none;border-color:Highlight}}";
|
|
6476
6480
|
var IcChipStyle0 = icChipCss;
|
|
6477
6481
|
|
|
6478
6482
|
/**
|
|
@@ -6566,10 +6570,11 @@ class Chip {
|
|
|
6566
6570
|
render() {
|
|
6567
6571
|
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
|
6568
6572
|
const ariaLabel = `${label} chip`;
|
|
6569
|
-
return (hAsync(Host, { key: '
|
|
6573
|
+
return (hAsync(Host, { key: 'c7b88d4999b6de5004edc4bd27e185b9232fdaf9', class: {
|
|
6574
|
+
"ic-chip-dismissed": !visible,
|
|
6570
6575
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6571
6576
|
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
|
6572
|
-
} }, visible && (hAsync("div", { key: '
|
|
6577
|
+
} }, visible && (hAsync("div", { key: 'dbbb2bd77adea5e65d61e11b6c4b2b06fadbb9b1', class: {
|
|
6573
6578
|
chip: true,
|
|
6574
6579
|
[`${variant}`]: true,
|
|
6575
6580
|
[`${size}`]: true,
|
|
@@ -6577,7 +6582,7 @@ class Chip {
|
|
|
6577
6582
|
dismissible,
|
|
6578
6583
|
hovered,
|
|
6579
6584
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
|
6580
|
-
} }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: '
|
|
6585
|
+
} }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: '443ef9dc619483da883171e367ac9541aaf61a38', class: "icon" }, hAsync("slot", { key: '3d5f5e0db37a1d2c0b8d2f25e0af2801cc52598e', name: "icon" }))), hAsync("ic-typography", { key: '23603177321e0a67c86da4720574592e3db8db80', variant: "label", "apply-vertical-margins": false, class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, hAsync("span", { key: '2d55524b494e17a0ee3c8a7441ffbc1a5d47f6a4' }, label)), dismissible && (hAsync("ic-tooltip", { key: '2def11f340b2b51518caebdf0e87b61e87d9baeb', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, hAsync("button", { key: 'c437a1dc096b14ba3bb2fa5723fa0044e83a9b3a', id: "dismiss-icon", class: "dismiss-icon", ref: (el) => (this.buttonEl = el), "aria-label": `${dismissLabel} ${ariaLabel}`, disabled: disabled, tabindex: disabled ? -1 : 0, onClick: this.dismissAction, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, innerHTML: dismissIcon }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: '9b3fec37d1d44def4248cf53ae2916d9f62e1a08', name: "badge" }))), dismissible && (hAsync("div", { key: 'bc8d8601488092dde7dae7db5f0f36b802f6df9f', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
|
|
6581
6586
|
}
|
|
6582
6587
|
static get delegatesFocus() { return true; }
|
|
6583
6588
|
get el() { return getElement(this); }
|
|
@@ -6836,6 +6841,1380 @@ var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24
|
|
|
6836
6841
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
|
6837
6842
|
</svg>`;
|
|
6838
6843
|
|
|
6844
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6845
|
+
|
|
6846
|
+
var purify = {exports: {}};
|
|
6847
|
+
|
|
6848
|
+
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
6849
|
+
|
|
6850
|
+
(function (module, exports) {
|
|
6851
|
+
(function (global, factory) {
|
|
6852
|
+
module.exports = factory() ;
|
|
6853
|
+
})(commonjsGlobal, (function () {
|
|
6854
|
+
const {
|
|
6855
|
+
entries,
|
|
6856
|
+
setPrototypeOf,
|
|
6857
|
+
isFrozen,
|
|
6858
|
+
getPrototypeOf,
|
|
6859
|
+
getOwnPropertyDescriptor
|
|
6860
|
+
} = Object;
|
|
6861
|
+
let {
|
|
6862
|
+
freeze,
|
|
6863
|
+
seal,
|
|
6864
|
+
create
|
|
6865
|
+
} = Object; // eslint-disable-line import/no-mutable-exports
|
|
6866
|
+
let {
|
|
6867
|
+
apply,
|
|
6868
|
+
construct
|
|
6869
|
+
} = typeof Reflect !== 'undefined' && Reflect;
|
|
6870
|
+
if (!freeze) {
|
|
6871
|
+
freeze = function freeze(x) {
|
|
6872
|
+
return x;
|
|
6873
|
+
};
|
|
6874
|
+
}
|
|
6875
|
+
if (!seal) {
|
|
6876
|
+
seal = function seal(x) {
|
|
6877
|
+
return x;
|
|
6878
|
+
};
|
|
6879
|
+
}
|
|
6880
|
+
if (!apply) {
|
|
6881
|
+
apply = function apply(fun, thisValue, args) {
|
|
6882
|
+
return fun.apply(thisValue, args);
|
|
6883
|
+
};
|
|
6884
|
+
}
|
|
6885
|
+
if (!construct) {
|
|
6886
|
+
construct = function construct(Func, args) {
|
|
6887
|
+
return new Func(...args);
|
|
6888
|
+
};
|
|
6889
|
+
}
|
|
6890
|
+
const arrayForEach = unapply(Array.prototype.forEach);
|
|
6891
|
+
const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
|
6892
|
+
const arrayPop = unapply(Array.prototype.pop);
|
|
6893
|
+
const arrayPush = unapply(Array.prototype.push);
|
|
6894
|
+
const arraySplice = unapply(Array.prototype.splice);
|
|
6895
|
+
const stringToLowerCase = unapply(String.prototype.toLowerCase);
|
|
6896
|
+
const stringToString = unapply(String.prototype.toString);
|
|
6897
|
+
const stringMatch = unapply(String.prototype.match);
|
|
6898
|
+
const stringReplace = unapply(String.prototype.replace);
|
|
6899
|
+
const stringIndexOf = unapply(String.prototype.indexOf);
|
|
6900
|
+
const stringTrim = unapply(String.prototype.trim);
|
|
6901
|
+
const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
|
|
6902
|
+
const regExpTest = unapply(RegExp.prototype.test);
|
|
6903
|
+
const typeErrorCreate = unconstruct(TypeError);
|
|
6904
|
+
/**
|
|
6905
|
+
* Creates a new function that calls the given function with a specified thisArg and arguments.
|
|
6906
|
+
*
|
|
6907
|
+
* @param func - The function to be wrapped and called.
|
|
6908
|
+
* @returns A new function that calls the given function with a specified thisArg and arguments.
|
|
6909
|
+
*/
|
|
6910
|
+
function unapply(func) {
|
|
6911
|
+
return function (thisArg) {
|
|
6912
|
+
if (thisArg instanceof RegExp) {
|
|
6913
|
+
thisArg.lastIndex = 0;
|
|
6914
|
+
}
|
|
6915
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
6916
|
+
args[_key - 1] = arguments[_key];
|
|
6917
|
+
}
|
|
6918
|
+
return apply(func, thisArg, args);
|
|
6919
|
+
};
|
|
6920
|
+
}
|
|
6921
|
+
/**
|
|
6922
|
+
* Creates a new function that constructs an instance of the given constructor function with the provided arguments.
|
|
6923
|
+
*
|
|
6924
|
+
* @param func - The constructor function to be wrapped and called.
|
|
6925
|
+
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
|
6926
|
+
*/
|
|
6927
|
+
function unconstruct(func) {
|
|
6928
|
+
return function () {
|
|
6929
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
6930
|
+
args[_key2] = arguments[_key2];
|
|
6931
|
+
}
|
|
6932
|
+
return construct(func, args);
|
|
6933
|
+
};
|
|
6934
|
+
}
|
|
6935
|
+
/**
|
|
6936
|
+
* Add properties to a lookup table
|
|
6937
|
+
*
|
|
6938
|
+
* @param set - The set to which elements will be added.
|
|
6939
|
+
* @param array - The array containing elements to be added to the set.
|
|
6940
|
+
* @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
|
|
6941
|
+
* @returns The modified set with added elements.
|
|
6942
|
+
*/
|
|
6943
|
+
function addToSet(set, array) {
|
|
6944
|
+
let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
|
|
6945
|
+
if (setPrototypeOf) {
|
|
6946
|
+
// Make 'in' and truthy checks like Boolean(set.constructor)
|
|
6947
|
+
// independent of any properties defined on Object.prototype.
|
|
6948
|
+
// Prevent prototype setters from intercepting set as a this value.
|
|
6949
|
+
setPrototypeOf(set, null);
|
|
6950
|
+
}
|
|
6951
|
+
let l = array.length;
|
|
6952
|
+
while (l--) {
|
|
6953
|
+
let element = array[l];
|
|
6954
|
+
if (typeof element === 'string') {
|
|
6955
|
+
const lcElement = transformCaseFunc(element);
|
|
6956
|
+
if (lcElement !== element) {
|
|
6957
|
+
// Config presets (e.g. tags.js, attrs.js) are immutable.
|
|
6958
|
+
if (!isFrozen(array)) {
|
|
6959
|
+
array[l] = lcElement;
|
|
6960
|
+
}
|
|
6961
|
+
element = lcElement;
|
|
6962
|
+
}
|
|
6963
|
+
}
|
|
6964
|
+
set[element] = true;
|
|
6965
|
+
}
|
|
6966
|
+
return set;
|
|
6967
|
+
}
|
|
6968
|
+
/**
|
|
6969
|
+
* Clean up an array to harden against CSPP
|
|
6970
|
+
*
|
|
6971
|
+
* @param array - The array to be cleaned.
|
|
6972
|
+
* @returns The cleaned version of the array
|
|
6973
|
+
*/
|
|
6974
|
+
function cleanArray(array) {
|
|
6975
|
+
for (let index = 0; index < array.length; index++) {
|
|
6976
|
+
const isPropertyExist = objectHasOwnProperty(array, index);
|
|
6977
|
+
if (!isPropertyExist) {
|
|
6978
|
+
array[index] = null;
|
|
6979
|
+
}
|
|
6980
|
+
}
|
|
6981
|
+
return array;
|
|
6982
|
+
}
|
|
6983
|
+
/**
|
|
6984
|
+
* Shallow clone an object
|
|
6985
|
+
*
|
|
6986
|
+
* @param object - The object to be cloned.
|
|
6987
|
+
* @returns A new object that copies the original.
|
|
6988
|
+
*/
|
|
6989
|
+
function clone(object) {
|
|
6990
|
+
const newObject = create(null);
|
|
6991
|
+
for (const [property, value] of entries(object)) {
|
|
6992
|
+
const isPropertyExist = objectHasOwnProperty(object, property);
|
|
6993
|
+
if (isPropertyExist) {
|
|
6994
|
+
if (Array.isArray(value)) {
|
|
6995
|
+
newObject[property] = cleanArray(value);
|
|
6996
|
+
} else if (value && typeof value === 'object' && value.constructor === Object) {
|
|
6997
|
+
newObject[property] = clone(value);
|
|
6998
|
+
} else {
|
|
6999
|
+
newObject[property] = value;
|
|
7000
|
+
}
|
|
7001
|
+
}
|
|
7002
|
+
}
|
|
7003
|
+
return newObject;
|
|
7004
|
+
}
|
|
7005
|
+
/**
|
|
7006
|
+
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
|
7007
|
+
*
|
|
7008
|
+
* @param object - The object to look up the getter function in its prototype chain.
|
|
7009
|
+
* @param prop - The property name for which to find the getter function.
|
|
7010
|
+
* @returns The getter function found in the prototype chain or a fallback function.
|
|
7011
|
+
*/
|
|
7012
|
+
function lookupGetter(object, prop) {
|
|
7013
|
+
while (object !== null) {
|
|
7014
|
+
const desc = getOwnPropertyDescriptor(object, prop);
|
|
7015
|
+
if (desc) {
|
|
7016
|
+
if (desc.get) {
|
|
7017
|
+
return unapply(desc.get);
|
|
7018
|
+
}
|
|
7019
|
+
if (typeof desc.value === 'function') {
|
|
7020
|
+
return unapply(desc.value);
|
|
7021
|
+
}
|
|
7022
|
+
}
|
|
7023
|
+
object = getPrototypeOf(object);
|
|
7024
|
+
}
|
|
7025
|
+
function fallbackValue() {
|
|
7026
|
+
return null;
|
|
7027
|
+
}
|
|
7028
|
+
return fallbackValue;
|
|
7029
|
+
}
|
|
7030
|
+
|
|
7031
|
+
const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
|
|
7032
|
+
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
7033
|
+
const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
|
|
7034
|
+
// List of SVG elements that are disallowed by default.
|
|
7035
|
+
// We still need to know them so that we can do namespace
|
|
7036
|
+
// checks properly in case one wants to add them to
|
|
7037
|
+
// allow-list.
|
|
7038
|
+
const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);
|
|
7039
|
+
const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']);
|
|
7040
|
+
// Similarly to SVG, we want to know all MathML elements,
|
|
7041
|
+
// even those that we disallow by default.
|
|
7042
|
+
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
|
7043
|
+
const text = freeze(['#text']);
|
|
7044
|
+
|
|
7045
|
+
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
7046
|
+
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
7047
|
+
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
|
|
7048
|
+
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
7049
|
+
|
|
7050
|
+
// eslint-disable-next-line unicorn/better-regex
|
|
7051
|
+
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode
|
|
7052
|
+
const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
|
|
7053
|
+
const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm); // eslint-disable-line unicorn/better-regex
|
|
7054
|
+
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
|
|
7055
|
+
const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
|
|
7056
|
+
const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape
|
|
7057
|
+
);
|
|
7058
|
+
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
7059
|
+
const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
|
|
7060
|
+
);
|
|
7061
|
+
const DOCTYPE_NAME = seal(/^html$/i);
|
|
7062
|
+
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
7063
|
+
|
|
7064
|
+
var EXPRESSIONS = /*#__PURE__*/Object.freeze({
|
|
7065
|
+
__proto__: null,
|
|
7066
|
+
ARIA_ATTR: ARIA_ATTR,
|
|
7067
|
+
ATTR_WHITESPACE: ATTR_WHITESPACE,
|
|
7068
|
+
CUSTOM_ELEMENT: CUSTOM_ELEMENT,
|
|
7069
|
+
DATA_ATTR: DATA_ATTR,
|
|
7070
|
+
DOCTYPE_NAME: DOCTYPE_NAME,
|
|
7071
|
+
ERB_EXPR: ERB_EXPR,
|
|
7072
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI,
|
|
7073
|
+
IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
|
|
7074
|
+
MUSTACHE_EXPR: MUSTACHE_EXPR,
|
|
7075
|
+
TMPLIT_EXPR: TMPLIT_EXPR
|
|
7076
|
+
});
|
|
7077
|
+
|
|
7078
|
+
/* eslint-disable @typescript-eslint/indent */
|
|
7079
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
|
7080
|
+
const NODE_TYPE = {
|
|
7081
|
+
element: 1,
|
|
7082
|
+
attribute: 2,
|
|
7083
|
+
text: 3,
|
|
7084
|
+
cdataSection: 4,
|
|
7085
|
+
entityReference: 5,
|
|
7086
|
+
// Deprecated
|
|
7087
|
+
entityNode: 6,
|
|
7088
|
+
// Deprecated
|
|
7089
|
+
progressingInstruction: 7,
|
|
7090
|
+
comment: 8,
|
|
7091
|
+
document: 9,
|
|
7092
|
+
documentType: 10,
|
|
7093
|
+
documentFragment: 11,
|
|
7094
|
+
notation: 12 // Deprecated
|
|
7095
|
+
};
|
|
7096
|
+
const getGlobal = function getGlobal() {
|
|
7097
|
+
return typeof window === 'undefined' ? null : window;
|
|
7098
|
+
};
|
|
7099
|
+
/**
|
|
7100
|
+
* Creates a no-op policy for internal use only.
|
|
7101
|
+
* Don't export this function outside this module!
|
|
7102
|
+
* @param trustedTypes The policy factory.
|
|
7103
|
+
* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
|
|
7104
|
+
* @return The policy created (or null, if Trusted Types
|
|
7105
|
+
* are not supported or creating the policy failed).
|
|
7106
|
+
*/
|
|
7107
|
+
const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
|
|
7108
|
+
if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
|
|
7109
|
+
return null;
|
|
7110
|
+
}
|
|
7111
|
+
// Allow the callers to control the unique policy name
|
|
7112
|
+
// by adding a data-tt-policy-suffix to the script element with the DOMPurify.
|
|
7113
|
+
// Policy creation with duplicate names throws in Trusted Types.
|
|
7114
|
+
let suffix = null;
|
|
7115
|
+
const ATTR_NAME = 'data-tt-policy-suffix';
|
|
7116
|
+
if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
|
|
7117
|
+
suffix = purifyHostElement.getAttribute(ATTR_NAME);
|
|
7118
|
+
}
|
|
7119
|
+
const policyName = 'dompurify' + (suffix ? '#' + suffix : '');
|
|
7120
|
+
try {
|
|
7121
|
+
return trustedTypes.createPolicy(policyName, {
|
|
7122
|
+
createHTML(html) {
|
|
7123
|
+
return html;
|
|
7124
|
+
},
|
|
7125
|
+
createScriptURL(scriptUrl) {
|
|
7126
|
+
return scriptUrl;
|
|
7127
|
+
}
|
|
7128
|
+
});
|
|
7129
|
+
} catch (_) {
|
|
7130
|
+
// Policy creation failed (most likely another DOMPurify script has
|
|
7131
|
+
// already run). Skip creating the policy, as this will only cause errors
|
|
7132
|
+
// if TT are enforced.
|
|
7133
|
+
console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
|
|
7134
|
+
return null;
|
|
7135
|
+
}
|
|
7136
|
+
};
|
|
7137
|
+
const _createHooksMap = function _createHooksMap() {
|
|
7138
|
+
return {
|
|
7139
|
+
afterSanitizeAttributes: [],
|
|
7140
|
+
afterSanitizeElements: [],
|
|
7141
|
+
afterSanitizeShadowDOM: [],
|
|
7142
|
+
beforeSanitizeAttributes: [],
|
|
7143
|
+
beforeSanitizeElements: [],
|
|
7144
|
+
beforeSanitizeShadowDOM: [],
|
|
7145
|
+
uponSanitizeAttribute: [],
|
|
7146
|
+
uponSanitizeElement: [],
|
|
7147
|
+
uponSanitizeShadowNode: []
|
|
7148
|
+
};
|
|
7149
|
+
};
|
|
7150
|
+
function createDOMPurify() {
|
|
7151
|
+
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
7152
|
+
const DOMPurify = root => createDOMPurify(root);
|
|
7153
|
+
DOMPurify.version = '3.2.6';
|
|
7154
|
+
DOMPurify.removed = [];
|
|
7155
|
+
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
7156
|
+
// Not running in a browser, provide a factory function
|
|
7157
|
+
// so that you can pass your own Window
|
|
7158
|
+
DOMPurify.isSupported = false;
|
|
7159
|
+
return DOMPurify;
|
|
7160
|
+
}
|
|
7161
|
+
let {
|
|
7162
|
+
document
|
|
7163
|
+
} = window;
|
|
7164
|
+
const originalDocument = document;
|
|
7165
|
+
const currentScript = originalDocument.currentScript;
|
|
7166
|
+
const {
|
|
7167
|
+
DocumentFragment,
|
|
7168
|
+
HTMLTemplateElement,
|
|
7169
|
+
Node,
|
|
7170
|
+
Element,
|
|
7171
|
+
NodeFilter,
|
|
7172
|
+
NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,
|
|
7173
|
+
HTMLFormElement,
|
|
7174
|
+
DOMParser,
|
|
7175
|
+
trustedTypes
|
|
7176
|
+
} = window;
|
|
7177
|
+
const ElementPrototype = Element.prototype;
|
|
7178
|
+
const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
|
|
7179
|
+
const remove = lookupGetter(ElementPrototype, 'remove');
|
|
7180
|
+
const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
|
|
7181
|
+
const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
|
|
7182
|
+
const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
|
|
7183
|
+
// As per issue #47, the web-components registry is inherited by a
|
|
7184
|
+
// new document created via createHTMLDocument. As per the spec
|
|
7185
|
+
// (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
|
|
7186
|
+
// a new empty registry is used when creating a template contents owner
|
|
7187
|
+
// document, so we use that as our parent document to ensure nothing
|
|
7188
|
+
// is inherited.
|
|
7189
|
+
if (typeof HTMLTemplateElement === 'function') {
|
|
7190
|
+
const template = document.createElement('template');
|
|
7191
|
+
if (template.content && template.content.ownerDocument) {
|
|
7192
|
+
document = template.content.ownerDocument;
|
|
7193
|
+
}
|
|
7194
|
+
}
|
|
7195
|
+
let trustedTypesPolicy;
|
|
7196
|
+
let emptyHTML = '';
|
|
7197
|
+
const {
|
|
7198
|
+
implementation,
|
|
7199
|
+
createNodeIterator,
|
|
7200
|
+
createDocumentFragment,
|
|
7201
|
+
getElementsByTagName
|
|
7202
|
+
} = document;
|
|
7203
|
+
const {
|
|
7204
|
+
importNode
|
|
7205
|
+
} = originalDocument;
|
|
7206
|
+
let hooks = _createHooksMap();
|
|
7207
|
+
/**
|
|
7208
|
+
* Expose whether this browser supports running the full DOMPurify.
|
|
7209
|
+
*/
|
|
7210
|
+
DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;
|
|
7211
|
+
const {
|
|
7212
|
+
MUSTACHE_EXPR,
|
|
7213
|
+
ERB_EXPR,
|
|
7214
|
+
TMPLIT_EXPR,
|
|
7215
|
+
DATA_ATTR,
|
|
7216
|
+
ARIA_ATTR,
|
|
7217
|
+
IS_SCRIPT_OR_DATA,
|
|
7218
|
+
ATTR_WHITESPACE,
|
|
7219
|
+
CUSTOM_ELEMENT
|
|
7220
|
+
} = EXPRESSIONS;
|
|
7221
|
+
let {
|
|
7222
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI$1
|
|
7223
|
+
} = EXPRESSIONS;
|
|
7224
|
+
/**
|
|
7225
|
+
* We consider the elements and attributes below to be safe. Ideally
|
|
7226
|
+
* don't add any new ones but feel free to remove unwanted ones.
|
|
7227
|
+
*/
|
|
7228
|
+
/* allowed element names */
|
|
7229
|
+
let ALLOWED_TAGS = null;
|
|
7230
|
+
const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
|
|
7231
|
+
/* Allowed attribute names */
|
|
7232
|
+
let ALLOWED_ATTR = null;
|
|
7233
|
+
const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
|
|
7234
|
+
/*
|
|
7235
|
+
* Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
|
|
7236
|
+
* @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
|
|
7237
|
+
* @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
|
|
7238
|
+
* @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
|
|
7239
|
+
*/
|
|
7240
|
+
let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
7241
|
+
tagNameCheck: {
|
|
7242
|
+
writable: true,
|
|
7243
|
+
configurable: false,
|
|
7244
|
+
enumerable: true,
|
|
7245
|
+
value: null
|
|
7246
|
+
},
|
|
7247
|
+
attributeNameCheck: {
|
|
7248
|
+
writable: true,
|
|
7249
|
+
configurable: false,
|
|
7250
|
+
enumerable: true,
|
|
7251
|
+
value: null
|
|
7252
|
+
},
|
|
7253
|
+
allowCustomizedBuiltInElements: {
|
|
7254
|
+
writable: true,
|
|
7255
|
+
configurable: false,
|
|
7256
|
+
enumerable: true,
|
|
7257
|
+
value: false
|
|
7258
|
+
}
|
|
7259
|
+
}));
|
|
7260
|
+
/* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
|
|
7261
|
+
let FORBID_TAGS = null;
|
|
7262
|
+
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
|
7263
|
+
let FORBID_ATTR = null;
|
|
7264
|
+
/* Decide if ARIA attributes are okay */
|
|
7265
|
+
let ALLOW_ARIA_ATTR = true;
|
|
7266
|
+
/* Decide if custom data attributes are okay */
|
|
7267
|
+
let ALLOW_DATA_ATTR = true;
|
|
7268
|
+
/* Decide if unknown protocols are okay */
|
|
7269
|
+
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
|
7270
|
+
/* Decide if self-closing tags in attributes are allowed.
|
|
7271
|
+
* Usually removed due to a mXSS issue in jQuery 3.0 */
|
|
7272
|
+
let ALLOW_SELF_CLOSE_IN_ATTR = true;
|
|
7273
|
+
/* Output should be safe for common template engines.
|
|
7274
|
+
* This means, DOMPurify removes data attributes, mustaches and ERB
|
|
7275
|
+
*/
|
|
7276
|
+
let SAFE_FOR_TEMPLATES = false;
|
|
7277
|
+
/* Output should be safe even for XML used within HTML and alike.
|
|
7278
|
+
* This means, DOMPurify removes comments when containing risky content.
|
|
7279
|
+
*/
|
|
7280
|
+
let SAFE_FOR_XML = true;
|
|
7281
|
+
/* Decide if document with <html>... should be returned */
|
|
7282
|
+
let WHOLE_DOCUMENT = false;
|
|
7283
|
+
/* Track whether config is already set on this instance of DOMPurify. */
|
|
7284
|
+
let SET_CONFIG = false;
|
|
7285
|
+
/* Decide if all elements (e.g. style, script) must be children of
|
|
7286
|
+
* document.body. By default, browsers might move them to document.head */
|
|
7287
|
+
let FORCE_BODY = false;
|
|
7288
|
+
/* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
|
|
7289
|
+
* string (or a TrustedHTML object if Trusted Types are supported).
|
|
7290
|
+
* If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
|
|
7291
|
+
*/
|
|
7292
|
+
let RETURN_DOM = false;
|
|
7293
|
+
/* Decide if a DOM `DocumentFragment` should be returned, instead of a html
|
|
7294
|
+
* string (or a TrustedHTML object if Trusted Types are supported) */
|
|
7295
|
+
let RETURN_DOM_FRAGMENT = false;
|
|
7296
|
+
/* Try to return a Trusted Type object instead of a string, return a string in
|
|
7297
|
+
* case Trusted Types are not supported */
|
|
7298
|
+
let RETURN_TRUSTED_TYPE = false;
|
|
7299
|
+
/* Output should be free from DOM clobbering attacks?
|
|
7300
|
+
* This sanitizes markups named with colliding, clobberable built-in DOM APIs.
|
|
7301
|
+
*/
|
|
7302
|
+
let SANITIZE_DOM = true;
|
|
7303
|
+
/* Achieve full DOM Clobbering protection by isolating the namespace of named
|
|
7304
|
+
* properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
|
|
7305
|
+
*
|
|
7306
|
+
* HTML/DOM spec rules that enable DOM Clobbering:
|
|
7307
|
+
* - Named Access on Window (§7.3.3)
|
|
7308
|
+
* - DOM Tree Accessors (§3.1.5)
|
|
7309
|
+
* - Form Element Parent-Child Relations (§4.10.3)
|
|
7310
|
+
* - Iframe srcdoc / Nested WindowProxies (§4.8.5)
|
|
7311
|
+
* - HTMLCollection (§4.2.10.2)
|
|
7312
|
+
*
|
|
7313
|
+
* Namespace isolation is implemented by prefixing `id` and `name` attributes
|
|
7314
|
+
* with a constant string, i.e., `user-content-`
|
|
7315
|
+
*/
|
|
7316
|
+
let SANITIZE_NAMED_PROPS = false;
|
|
7317
|
+
const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';
|
|
7318
|
+
/* Keep element content when removing element? */
|
|
7319
|
+
let KEEP_CONTENT = true;
|
|
7320
|
+
/* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
|
|
7321
|
+
* of importing it into a new Document and returning a sanitized copy */
|
|
7322
|
+
let IN_PLACE = false;
|
|
7323
|
+
/* Allow usage of profiles like html, svg and mathMl */
|
|
7324
|
+
let USE_PROFILES = {};
|
|
7325
|
+
/* Tags to ignore content of when KEEP_CONTENT is true */
|
|
7326
|
+
let FORBID_CONTENTS = null;
|
|
7327
|
+
const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
|
|
7328
|
+
/* Tags that are safe for data: URIs */
|
|
7329
|
+
let DATA_URI_TAGS = null;
|
|
7330
|
+
const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
|
|
7331
|
+
/* Attributes safe for values like "javascript:" */
|
|
7332
|
+
let URI_SAFE_ATTRIBUTES = null;
|
|
7333
|
+
const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);
|
|
7334
|
+
const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
7335
|
+
const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
7336
|
+
const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
|
7337
|
+
/* Document namespace */
|
|
7338
|
+
let NAMESPACE = HTML_NAMESPACE;
|
|
7339
|
+
let IS_EMPTY_INPUT = false;
|
|
7340
|
+
/* Allowed XHTML+XML namespaces */
|
|
7341
|
+
let ALLOWED_NAMESPACES = null;
|
|
7342
|
+
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
|
7343
|
+
let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
|
|
7344
|
+
let HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);
|
|
7345
|
+
// Certain elements are allowed in both SVG and HTML
|
|
7346
|
+
// namespace. We need to specify them explicitly
|
|
7347
|
+
// so that they don't get erroneously deleted from
|
|
7348
|
+
// HTML namespace.
|
|
7349
|
+
const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
|
|
7350
|
+
/* Parsing of strict XHTML documents */
|
|
7351
|
+
let PARSER_MEDIA_TYPE = null;
|
|
7352
|
+
const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
|
|
7353
|
+
const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
|
|
7354
|
+
let transformCaseFunc = null;
|
|
7355
|
+
/* Keep a reference to config to pass to hooks */
|
|
7356
|
+
let CONFIG = null;
|
|
7357
|
+
/* Ideally, do not touch anything below this line */
|
|
7358
|
+
/* ______________________________________________ */
|
|
7359
|
+
const formElement = document.createElement('form');
|
|
7360
|
+
const isRegexOrFunction = function isRegexOrFunction(testValue) {
|
|
7361
|
+
return testValue instanceof RegExp || testValue instanceof Function;
|
|
7362
|
+
};
|
|
7363
|
+
/**
|
|
7364
|
+
* _parseConfig
|
|
7365
|
+
*
|
|
7366
|
+
* @param cfg optional config literal
|
|
7367
|
+
*/
|
|
7368
|
+
// eslint-disable-next-line complexity
|
|
7369
|
+
const _parseConfig = function _parseConfig() {
|
|
7370
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7371
|
+
if (CONFIG && CONFIG === cfg) {
|
|
7372
|
+
return;
|
|
7373
|
+
}
|
|
7374
|
+
/* Shield configuration object from tampering */
|
|
7375
|
+
if (!cfg || typeof cfg !== 'object') {
|
|
7376
|
+
cfg = {};
|
|
7377
|
+
}
|
|
7378
|
+
/* Shield configuration object from prototype pollution */
|
|
7379
|
+
cfg = clone(cfg);
|
|
7380
|
+
PARSER_MEDIA_TYPE =
|
|
7381
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
|
7382
|
+
SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
|
|
7383
|
+
// HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
|
|
7384
|
+
transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
|
|
7385
|
+
/* Set configuration parameters */
|
|
7386
|
+
ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
|
7387
|
+
ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
|
7388
|
+
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
|
7389
|
+
URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
|
7390
|
+
DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
|
|
7391
|
+
FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
7392
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
7393
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
7394
|
+
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
|
|
7395
|
+
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
|
7396
|
+
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
|
7397
|
+
ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
|
|
7398
|
+
ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true
|
|
7399
|
+
SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
|
|
7400
|
+
SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true
|
|
7401
|
+
WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
|
|
7402
|
+
RETURN_DOM = cfg.RETURN_DOM || false; // Default false
|
|
7403
|
+
RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
|
|
7404
|
+
RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
|
|
7405
|
+
FORCE_BODY = cfg.FORCE_BODY || false; // Default false
|
|
7406
|
+
SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
|
|
7407
|
+
SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
|
|
7408
|
+
KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
|
|
7409
|
+
IN_PLACE = cfg.IN_PLACE || false; // Default false
|
|
7410
|
+
IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
|
|
7411
|
+
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
|
7412
|
+
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
|
|
7413
|
+
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
|
|
7414
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
|
|
7415
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
|
7416
|
+
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|
|
7417
|
+
}
|
|
7418
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
|
|
7419
|
+
CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
|
|
7420
|
+
}
|
|
7421
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {
|
|
7422
|
+
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
|
|
7423
|
+
}
|
|
7424
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
7425
|
+
ALLOW_DATA_ATTR = false;
|
|
7426
|
+
}
|
|
7427
|
+
if (RETURN_DOM_FRAGMENT) {
|
|
7428
|
+
RETURN_DOM = true;
|
|
7429
|
+
}
|
|
7430
|
+
/* Parse profile info */
|
|
7431
|
+
if (USE_PROFILES) {
|
|
7432
|
+
ALLOWED_TAGS = addToSet({}, text);
|
|
7433
|
+
ALLOWED_ATTR = [];
|
|
7434
|
+
if (USE_PROFILES.html === true) {
|
|
7435
|
+
addToSet(ALLOWED_TAGS, html$1);
|
|
7436
|
+
addToSet(ALLOWED_ATTR, html);
|
|
7437
|
+
}
|
|
7438
|
+
if (USE_PROFILES.svg === true) {
|
|
7439
|
+
addToSet(ALLOWED_TAGS, svg$1);
|
|
7440
|
+
addToSet(ALLOWED_ATTR, svg);
|
|
7441
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7442
|
+
}
|
|
7443
|
+
if (USE_PROFILES.svgFilters === true) {
|
|
7444
|
+
addToSet(ALLOWED_TAGS, svgFilters);
|
|
7445
|
+
addToSet(ALLOWED_ATTR, svg);
|
|
7446
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7447
|
+
}
|
|
7448
|
+
if (USE_PROFILES.mathMl === true) {
|
|
7449
|
+
addToSet(ALLOWED_TAGS, mathMl$1);
|
|
7450
|
+
addToSet(ALLOWED_ATTR, mathMl);
|
|
7451
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7452
|
+
}
|
|
7453
|
+
}
|
|
7454
|
+
/* Merge configuration parameters */
|
|
7455
|
+
if (cfg.ADD_TAGS) {
|
|
7456
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
7457
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
7458
|
+
}
|
|
7459
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
7460
|
+
}
|
|
7461
|
+
if (cfg.ADD_ATTR) {
|
|
7462
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
7463
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
7464
|
+
}
|
|
7465
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
7466
|
+
}
|
|
7467
|
+
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
7468
|
+
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
7469
|
+
}
|
|
7470
|
+
if (cfg.FORBID_CONTENTS) {
|
|
7471
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
7472
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
7473
|
+
}
|
|
7474
|
+
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
7475
|
+
}
|
|
7476
|
+
/* Add #text in case KEEP_CONTENT is set to true */
|
|
7477
|
+
if (KEEP_CONTENT) {
|
|
7478
|
+
ALLOWED_TAGS['#text'] = true;
|
|
7479
|
+
}
|
|
7480
|
+
/* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
|
|
7481
|
+
if (WHOLE_DOCUMENT) {
|
|
7482
|
+
addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
|
|
7483
|
+
}
|
|
7484
|
+
/* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
|
|
7485
|
+
if (ALLOWED_TAGS.table) {
|
|
7486
|
+
addToSet(ALLOWED_TAGS, ['tbody']);
|
|
7487
|
+
delete FORBID_TAGS.tbody;
|
|
7488
|
+
}
|
|
7489
|
+
if (cfg.TRUSTED_TYPES_POLICY) {
|
|
7490
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
|
|
7491
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
7492
|
+
}
|
|
7493
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
|
|
7494
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
7495
|
+
}
|
|
7496
|
+
// Overwrite existing TrustedTypes policy.
|
|
7497
|
+
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
|
7498
|
+
// Sign local variables required by `sanitize`.
|
|
7499
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
|
7500
|
+
} else {
|
|
7501
|
+
// Uninitialized policy, attempt to initialize the internal dompurify policy.
|
|
7502
|
+
if (trustedTypesPolicy === undefined) {
|
|
7503
|
+
trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
|
7504
|
+
}
|
|
7505
|
+
// If creating the internal policy succeeded sign internal variables.
|
|
7506
|
+
if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {
|
|
7507
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
|
7508
|
+
}
|
|
7509
|
+
}
|
|
7510
|
+
// Prevent further manipulation of configuration.
|
|
7511
|
+
// Not available in IE8, Safari 5, etc.
|
|
7512
|
+
if (freeze) {
|
|
7513
|
+
freeze(cfg);
|
|
7514
|
+
}
|
|
7515
|
+
CONFIG = cfg;
|
|
7516
|
+
};
|
|
7517
|
+
/* Keep track of all possible SVG and MathML tags
|
|
7518
|
+
* so that we can perform the namespace checks
|
|
7519
|
+
* correctly. */
|
|
7520
|
+
const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
|
|
7521
|
+
const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
|
|
7522
|
+
/**
|
|
7523
|
+
* @param element a DOM element whose namespace is being checked
|
|
7524
|
+
* @returns Return false if the element has a
|
|
7525
|
+
* namespace that a spec-compliant parser would never
|
|
7526
|
+
* return. Return true otherwise.
|
|
7527
|
+
*/
|
|
7528
|
+
const _checkValidNamespace = function _checkValidNamespace(element) {
|
|
7529
|
+
let parent = getParentNode(element);
|
|
7530
|
+
// In JSDOM, if we're inside shadow DOM, then parentNode
|
|
7531
|
+
// can be null. We just simulate parent in this case.
|
|
7532
|
+
if (!parent || !parent.tagName) {
|
|
7533
|
+
parent = {
|
|
7534
|
+
namespaceURI: NAMESPACE,
|
|
7535
|
+
tagName: 'template'
|
|
7536
|
+
};
|
|
7537
|
+
}
|
|
7538
|
+
const tagName = stringToLowerCase(element.tagName);
|
|
7539
|
+
const parentTagName = stringToLowerCase(parent.tagName);
|
|
7540
|
+
if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
7541
|
+
return false;
|
|
7542
|
+
}
|
|
7543
|
+
if (element.namespaceURI === SVG_NAMESPACE) {
|
|
7544
|
+
// The only way to switch from HTML namespace to SVG
|
|
7545
|
+
// is via <svg>. If it happens via any other tag, then
|
|
7546
|
+
// it should be killed.
|
|
7547
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
7548
|
+
return tagName === 'svg';
|
|
7549
|
+
}
|
|
7550
|
+
// The only way to switch from MathML to SVG is via`
|
|
7551
|
+
// svg if parent is either <annotation-xml> or MathML
|
|
7552
|
+
// text integration points.
|
|
7553
|
+
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
|
7554
|
+
return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
|
7555
|
+
}
|
|
7556
|
+
// We only allow elements that are defined in SVG
|
|
7557
|
+
// spec. All others are disallowed in SVG namespace.
|
|
7558
|
+
return Boolean(ALL_SVG_TAGS[tagName]);
|
|
7559
|
+
}
|
|
7560
|
+
if (element.namespaceURI === MATHML_NAMESPACE) {
|
|
7561
|
+
// The only way to switch from HTML namespace to MathML
|
|
7562
|
+
// is via <math>. If it happens via any other tag, then
|
|
7563
|
+
// it should be killed.
|
|
7564
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
7565
|
+
return tagName === 'math';
|
|
7566
|
+
}
|
|
7567
|
+
// The only way to switch from SVG to MathML is via
|
|
7568
|
+
// <math> and HTML integration points
|
|
7569
|
+
if (parent.namespaceURI === SVG_NAMESPACE) {
|
|
7570
|
+
return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
|
|
7571
|
+
}
|
|
7572
|
+
// We only allow elements that are defined in MathML
|
|
7573
|
+
// spec. All others are disallowed in MathML namespace.
|
|
7574
|
+
return Boolean(ALL_MATHML_TAGS[tagName]);
|
|
7575
|
+
}
|
|
7576
|
+
if (element.namespaceURI === HTML_NAMESPACE) {
|
|
7577
|
+
// The only way to switch from SVG to HTML is via
|
|
7578
|
+
// HTML integration points, and from MathML to HTML
|
|
7579
|
+
// is via MathML text integration points
|
|
7580
|
+
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
|
7581
|
+
return false;
|
|
7582
|
+
}
|
|
7583
|
+
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
|
7584
|
+
return false;
|
|
7585
|
+
}
|
|
7586
|
+
// We disallow tags that are specific for MathML
|
|
7587
|
+
// or SVG and should never appear in HTML namespace
|
|
7588
|
+
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
|
7589
|
+
}
|
|
7590
|
+
// For XHTML and XML documents that support custom namespaces
|
|
7591
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
7592
|
+
return true;
|
|
7593
|
+
}
|
|
7594
|
+
// The code should never reach this place (this means
|
|
7595
|
+
// that the element somehow got namespace that is not
|
|
7596
|
+
// HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
|
|
7597
|
+
// Return false just in case.
|
|
7598
|
+
return false;
|
|
7599
|
+
};
|
|
7600
|
+
/**
|
|
7601
|
+
* _forceRemove
|
|
7602
|
+
*
|
|
7603
|
+
* @param node a DOM node
|
|
7604
|
+
*/
|
|
7605
|
+
const _forceRemove = function _forceRemove(node) {
|
|
7606
|
+
arrayPush(DOMPurify.removed, {
|
|
7607
|
+
element: node
|
|
7608
|
+
});
|
|
7609
|
+
try {
|
|
7610
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-remove
|
|
7611
|
+
getParentNode(node).removeChild(node);
|
|
7612
|
+
} catch (_) {
|
|
7613
|
+
remove(node);
|
|
7614
|
+
}
|
|
7615
|
+
};
|
|
7616
|
+
/**
|
|
7617
|
+
* _removeAttribute
|
|
7618
|
+
*
|
|
7619
|
+
* @param name an Attribute name
|
|
7620
|
+
* @param element a DOM node
|
|
7621
|
+
*/
|
|
7622
|
+
const _removeAttribute = function _removeAttribute(name, element) {
|
|
7623
|
+
try {
|
|
7624
|
+
arrayPush(DOMPurify.removed, {
|
|
7625
|
+
attribute: element.getAttributeNode(name),
|
|
7626
|
+
from: element
|
|
7627
|
+
});
|
|
7628
|
+
} catch (_) {
|
|
7629
|
+
arrayPush(DOMPurify.removed, {
|
|
7630
|
+
attribute: null,
|
|
7631
|
+
from: element
|
|
7632
|
+
});
|
|
7633
|
+
}
|
|
7634
|
+
element.removeAttribute(name);
|
|
7635
|
+
// We void attribute values for unremovable "is" attributes
|
|
7636
|
+
if (name === 'is') {
|
|
7637
|
+
if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
|
|
7638
|
+
try {
|
|
7639
|
+
_forceRemove(element);
|
|
7640
|
+
} catch (_) {}
|
|
7641
|
+
} else {
|
|
7642
|
+
try {
|
|
7643
|
+
element.setAttribute(name, '');
|
|
7644
|
+
} catch (_) {}
|
|
7645
|
+
}
|
|
7646
|
+
}
|
|
7647
|
+
};
|
|
7648
|
+
/**
|
|
7649
|
+
* _initDocument
|
|
7650
|
+
*
|
|
7651
|
+
* @param dirty - a string of dirty markup
|
|
7652
|
+
* @return a DOM, filled with the dirty markup
|
|
7653
|
+
*/
|
|
7654
|
+
const _initDocument = function _initDocument(dirty) {
|
|
7655
|
+
/* Create a HTML document */
|
|
7656
|
+
let doc = null;
|
|
7657
|
+
let leadingWhitespace = null;
|
|
7658
|
+
if (FORCE_BODY) {
|
|
7659
|
+
dirty = '<remove></remove>' + dirty;
|
|
7660
|
+
} else {
|
|
7661
|
+
/* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
|
|
7662
|
+
const matches = stringMatch(dirty, /^[\r\n\t ]+/);
|
|
7663
|
+
leadingWhitespace = matches && matches[0];
|
|
7664
|
+
}
|
|
7665
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {
|
|
7666
|
+
// Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
|
|
7667
|
+
dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
|
|
7668
|
+
}
|
|
7669
|
+
const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
7670
|
+
/*
|
|
7671
|
+
* Use the DOMParser API by default, fallback later if needs be
|
|
7672
|
+
* DOMParser not work for svg when has multiple root element.
|
|
7673
|
+
*/
|
|
7674
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
7675
|
+
try {
|
|
7676
|
+
doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
|
|
7677
|
+
} catch (_) {}
|
|
7678
|
+
}
|
|
7679
|
+
/* Use createHTMLDocument in case DOMParser is not available */
|
|
7680
|
+
if (!doc || !doc.documentElement) {
|
|
7681
|
+
doc = implementation.createDocument(NAMESPACE, 'template', null);
|
|
7682
|
+
try {
|
|
7683
|
+
doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
|
|
7684
|
+
} catch (_) {
|
|
7685
|
+
// Syntax error if dirtyPayload is invalid xml
|
|
7686
|
+
}
|
|
7687
|
+
}
|
|
7688
|
+
const body = doc.body || doc.documentElement;
|
|
7689
|
+
if (dirty && leadingWhitespace) {
|
|
7690
|
+
body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
|
|
7691
|
+
}
|
|
7692
|
+
/* Work on whole document or just its body */
|
|
7693
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
7694
|
+
return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
|
|
7695
|
+
}
|
|
7696
|
+
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
|
7697
|
+
};
|
|
7698
|
+
/**
|
|
7699
|
+
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
|
7700
|
+
*
|
|
7701
|
+
* @param root The root element or node to start traversing on.
|
|
7702
|
+
* @return The created NodeIterator
|
|
7703
|
+
*/
|
|
7704
|
+
const _createNodeIterator = function _createNodeIterator(root) {
|
|
7705
|
+
return createNodeIterator.call(root.ownerDocument || root, root,
|
|
7706
|
+
// eslint-disable-next-line no-bitwise
|
|
7707
|
+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
|
7708
|
+
};
|
|
7709
|
+
/**
|
|
7710
|
+
* _isClobbered
|
|
7711
|
+
*
|
|
7712
|
+
* @param element element to check for clobbering attacks
|
|
7713
|
+
* @return true if clobbered, false if safe
|
|
7714
|
+
*/
|
|
7715
|
+
const _isClobbered = function _isClobbered(element) {
|
|
7716
|
+
return element instanceof HTMLFormElement && (typeof element.nodeName !== 'string' || typeof element.textContent !== 'string' || typeof element.removeChild !== 'function' || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== 'function' || typeof element.setAttribute !== 'function' || typeof element.namespaceURI !== 'string' || typeof element.insertBefore !== 'function' || typeof element.hasChildNodes !== 'function');
|
|
7717
|
+
};
|
|
7718
|
+
/**
|
|
7719
|
+
* Checks whether the given object is a DOM node.
|
|
7720
|
+
*
|
|
7721
|
+
* @param value object to check whether it's a DOM node
|
|
7722
|
+
* @return true is object is a DOM node
|
|
7723
|
+
*/
|
|
7724
|
+
const _isNode = function _isNode(value) {
|
|
7725
|
+
return typeof Node === 'function' && value instanceof Node;
|
|
7726
|
+
};
|
|
7727
|
+
function _executeHooks(hooks, currentNode, data) {
|
|
7728
|
+
arrayForEach(hooks, hook => {
|
|
7729
|
+
hook.call(DOMPurify, currentNode, data, CONFIG);
|
|
7730
|
+
});
|
|
7731
|
+
}
|
|
7732
|
+
/**
|
|
7733
|
+
* _sanitizeElements
|
|
7734
|
+
*
|
|
7735
|
+
* @protect nodeName
|
|
7736
|
+
* @protect textContent
|
|
7737
|
+
* @protect removeChild
|
|
7738
|
+
* @param currentNode to check for permission to exist
|
|
7739
|
+
* @return true if node was killed, false if left alive
|
|
7740
|
+
*/
|
|
7741
|
+
const _sanitizeElements = function _sanitizeElements(currentNode) {
|
|
7742
|
+
let content = null;
|
|
7743
|
+
/* Execute a hook if present */
|
|
7744
|
+
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
7745
|
+
/* Check if element is clobbered or can clobber */
|
|
7746
|
+
if (_isClobbered(currentNode)) {
|
|
7747
|
+
_forceRemove(currentNode);
|
|
7748
|
+
return true;
|
|
7749
|
+
}
|
|
7750
|
+
/* Now let's check the element's type and name */
|
|
7751
|
+
const tagName = transformCaseFunc(currentNode.nodeName);
|
|
7752
|
+
/* Execute a hook if present */
|
|
7753
|
+
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
|
7754
|
+
tagName,
|
|
7755
|
+
allowedTags: ALLOWED_TAGS
|
|
7756
|
+
});
|
|
7757
|
+
/* Detect mXSS attempts abusing namespace confusion */
|
|
7758
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
7759
|
+
_forceRemove(currentNode);
|
|
7760
|
+
return true;
|
|
7761
|
+
}
|
|
7762
|
+
/* Remove any occurrence of processing instructions */
|
|
7763
|
+
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
7764
|
+
_forceRemove(currentNode);
|
|
7765
|
+
return true;
|
|
7766
|
+
}
|
|
7767
|
+
/* Remove any kind of possibly harmful comments */
|
|
7768
|
+
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
|
|
7769
|
+
_forceRemove(currentNode);
|
|
7770
|
+
return true;
|
|
7771
|
+
}
|
|
7772
|
+
/* Remove element if anything forbids its presence */
|
|
7773
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
7774
|
+
/* Check if we have a custom element to handle */
|
|
7775
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
7776
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
7777
|
+
return false;
|
|
7778
|
+
}
|
|
7779
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
|
7780
|
+
return false;
|
|
7781
|
+
}
|
|
7782
|
+
}
|
|
7783
|
+
/* Keep content except for bad-listed elements */
|
|
7784
|
+
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
7785
|
+
const parentNode = getParentNode(currentNode) || currentNode.parentNode;
|
|
7786
|
+
const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
|
|
7787
|
+
if (childNodes && parentNode) {
|
|
7788
|
+
const childCount = childNodes.length;
|
|
7789
|
+
for (let i = childCount - 1; i >= 0; --i) {
|
|
7790
|
+
const childClone = cloneNode(childNodes[i], true);
|
|
7791
|
+
childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
|
|
7792
|
+
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
|
7793
|
+
}
|
|
7794
|
+
}
|
|
7795
|
+
}
|
|
7796
|
+
_forceRemove(currentNode);
|
|
7797
|
+
return true;
|
|
7798
|
+
}
|
|
7799
|
+
/* Check whether element has a valid namespace */
|
|
7800
|
+
if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
|
|
7801
|
+
_forceRemove(currentNode);
|
|
7802
|
+
return true;
|
|
7803
|
+
}
|
|
7804
|
+
/* Make sure that older browsers don't get fallback-tag mXSS */
|
|
7805
|
+
if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
|
|
7806
|
+
_forceRemove(currentNode);
|
|
7807
|
+
return true;
|
|
7808
|
+
}
|
|
7809
|
+
/* Sanitize element content to be template-safe */
|
|
7810
|
+
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
|
|
7811
|
+
/* Get the element's text content */
|
|
7812
|
+
content = currentNode.textContent;
|
|
7813
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
7814
|
+
content = stringReplace(content, expr, ' ');
|
|
7815
|
+
});
|
|
7816
|
+
if (currentNode.textContent !== content) {
|
|
7817
|
+
arrayPush(DOMPurify.removed, {
|
|
7818
|
+
element: currentNode.cloneNode()
|
|
7819
|
+
});
|
|
7820
|
+
currentNode.textContent = content;
|
|
7821
|
+
}
|
|
7822
|
+
}
|
|
7823
|
+
/* Execute a hook if present */
|
|
7824
|
+
_executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
|
7825
|
+
return false;
|
|
7826
|
+
};
|
|
7827
|
+
/**
|
|
7828
|
+
* _isValidAttribute
|
|
7829
|
+
*
|
|
7830
|
+
* @param lcTag Lowercase tag name of containing element.
|
|
7831
|
+
* @param lcName Lowercase attribute name.
|
|
7832
|
+
* @param value Attribute value.
|
|
7833
|
+
* @return Returns true if `value` is valid, otherwise false.
|
|
7834
|
+
*/
|
|
7835
|
+
// eslint-disable-next-line complexity
|
|
7836
|
+
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
7837
|
+
/* Make sure attribute cannot clobber */
|
|
7838
|
+
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
7839
|
+
return false;
|
|
7840
|
+
}
|
|
7841
|
+
/* Allow valid data-* attributes: At least one character after "-"
|
|
7842
|
+
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
7843
|
+
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
7844
|
+
We don't need to check the value; it's always URI safe. */
|
|
7845
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
7846
|
+
if (
|
|
7847
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
7848
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
7849
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
7850
|
+
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||
|
|
7851
|
+
// Alternative, second condition checks if it's an `is`-attribute, AND
|
|
7852
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
7853
|
+
lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {
|
|
7854
|
+
return false;
|
|
7855
|
+
}
|
|
7856
|
+
/* Check value is safe. First, is attr inert? If so, is safe */
|
|
7857
|
+
} else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (value) {
|
|
7858
|
+
return false;
|
|
7859
|
+
} else ;
|
|
7860
|
+
return true;
|
|
7861
|
+
};
|
|
7862
|
+
/**
|
|
7863
|
+
* _isBasicCustomElement
|
|
7864
|
+
* checks if at least one dash is included in tagName, and it's not the first char
|
|
7865
|
+
* for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
|
|
7866
|
+
*
|
|
7867
|
+
* @param tagName name of the tag of the node to sanitize
|
|
7868
|
+
* @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
|
7869
|
+
*/
|
|
7870
|
+
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
|
7871
|
+
return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);
|
|
7872
|
+
};
|
|
7873
|
+
/**
|
|
7874
|
+
* _sanitizeAttributes
|
|
7875
|
+
*
|
|
7876
|
+
* @protect attributes
|
|
7877
|
+
* @protect nodeName
|
|
7878
|
+
* @protect removeAttribute
|
|
7879
|
+
* @protect setAttribute
|
|
7880
|
+
*
|
|
7881
|
+
* @param currentNode to sanitize
|
|
7882
|
+
*/
|
|
7883
|
+
const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
|
|
7884
|
+
/* Execute a hook if present */
|
|
7885
|
+
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
|
7886
|
+
const {
|
|
7887
|
+
attributes
|
|
7888
|
+
} = currentNode;
|
|
7889
|
+
/* Check if we have attributes; if not we might have a text node */
|
|
7890
|
+
if (!attributes || _isClobbered(currentNode)) {
|
|
7891
|
+
return;
|
|
7892
|
+
}
|
|
7893
|
+
const hookEvent = {
|
|
7894
|
+
attrName: '',
|
|
7895
|
+
attrValue: '',
|
|
7896
|
+
keepAttr: true,
|
|
7897
|
+
allowedAttributes: ALLOWED_ATTR,
|
|
7898
|
+
forceKeepAttr: undefined
|
|
7899
|
+
};
|
|
7900
|
+
let l = attributes.length;
|
|
7901
|
+
/* Go backwards over all attributes; safely remove bad ones */
|
|
7902
|
+
while (l--) {
|
|
7903
|
+
const attr = attributes[l];
|
|
7904
|
+
const {
|
|
7905
|
+
name,
|
|
7906
|
+
namespaceURI,
|
|
7907
|
+
value: attrValue
|
|
7908
|
+
} = attr;
|
|
7909
|
+
const lcName = transformCaseFunc(name);
|
|
7910
|
+
const initValue = attrValue;
|
|
7911
|
+
let value = name === 'value' ? initValue : stringTrim(initValue);
|
|
7912
|
+
/* Execute a hook if present */
|
|
7913
|
+
hookEvent.attrName = lcName;
|
|
7914
|
+
hookEvent.attrValue = value;
|
|
7915
|
+
hookEvent.keepAttr = true;
|
|
7916
|
+
hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
|
|
7917
|
+
_executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
|
|
7918
|
+
value = hookEvent.attrValue;
|
|
7919
|
+
/* Full DOM Clobbering protection via namespace isolation,
|
|
7920
|
+
* Prefix id and name attributes with `user-content-`
|
|
7921
|
+
*/
|
|
7922
|
+
if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {
|
|
7923
|
+
// Remove the attribute with this value
|
|
7924
|
+
_removeAttribute(name, currentNode);
|
|
7925
|
+
// Prefix the value and later re-create the attribute with the sanitized value
|
|
7926
|
+
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
7927
|
+
}
|
|
7928
|
+
/* Work around a security issue with comments inside attributes */
|
|
7929
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
7930
|
+
_removeAttribute(name, currentNode);
|
|
7931
|
+
continue;
|
|
7932
|
+
}
|
|
7933
|
+
/* Did the hooks approve of the attribute? */
|
|
7934
|
+
if (hookEvent.forceKeepAttr) {
|
|
7935
|
+
continue;
|
|
7936
|
+
}
|
|
7937
|
+
/* Did the hooks approve of the attribute? */
|
|
7938
|
+
if (!hookEvent.keepAttr) {
|
|
7939
|
+
_removeAttribute(name, currentNode);
|
|
7940
|
+
continue;
|
|
7941
|
+
}
|
|
7942
|
+
/* Work around a security issue in jQuery 3.0 */
|
|
7943
|
+
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
7944
|
+
_removeAttribute(name, currentNode);
|
|
7945
|
+
continue;
|
|
7946
|
+
}
|
|
7947
|
+
/* Sanitize attribute content to be template-safe */
|
|
7948
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
7949
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
7950
|
+
value = stringReplace(value, expr, ' ');
|
|
7951
|
+
});
|
|
7952
|
+
}
|
|
7953
|
+
/* Is `value` valid for this attribute? */
|
|
7954
|
+
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
7955
|
+
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
7956
|
+
_removeAttribute(name, currentNode);
|
|
7957
|
+
continue;
|
|
7958
|
+
}
|
|
7959
|
+
/* Handle attributes that require Trusted Types */
|
|
7960
|
+
if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {
|
|
7961
|
+
if (namespaceURI) ; else {
|
|
7962
|
+
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
7963
|
+
case 'TrustedHTML':
|
|
7964
|
+
{
|
|
7965
|
+
value = trustedTypesPolicy.createHTML(value);
|
|
7966
|
+
break;
|
|
7967
|
+
}
|
|
7968
|
+
case 'TrustedScriptURL':
|
|
7969
|
+
{
|
|
7970
|
+
value = trustedTypesPolicy.createScriptURL(value);
|
|
7971
|
+
break;
|
|
7972
|
+
}
|
|
7973
|
+
}
|
|
7974
|
+
}
|
|
7975
|
+
}
|
|
7976
|
+
/* Handle invalid data-* attribute set by try-catching it */
|
|
7977
|
+
if (value !== initValue) {
|
|
7978
|
+
try {
|
|
7979
|
+
if (namespaceURI) {
|
|
7980
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
7981
|
+
} else {
|
|
7982
|
+
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
|
7983
|
+
currentNode.setAttribute(name, value);
|
|
7984
|
+
}
|
|
7985
|
+
if (_isClobbered(currentNode)) {
|
|
7986
|
+
_forceRemove(currentNode);
|
|
7987
|
+
} else {
|
|
7988
|
+
arrayPop(DOMPurify.removed);
|
|
7989
|
+
}
|
|
7990
|
+
} catch (_) {
|
|
7991
|
+
_removeAttribute(name, currentNode);
|
|
7992
|
+
}
|
|
7993
|
+
}
|
|
7994
|
+
}
|
|
7995
|
+
/* Execute a hook if present */
|
|
7996
|
+
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
7997
|
+
};
|
|
7998
|
+
/**
|
|
7999
|
+
* _sanitizeShadowDOM
|
|
8000
|
+
*
|
|
8001
|
+
* @param fragment to iterate over recursively
|
|
8002
|
+
*/
|
|
8003
|
+
const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
|
|
8004
|
+
let shadowNode = null;
|
|
8005
|
+
const shadowIterator = _createNodeIterator(fragment);
|
|
8006
|
+
/* Execute a hook if present */
|
|
8007
|
+
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
8008
|
+
while (shadowNode = shadowIterator.nextNode()) {
|
|
8009
|
+
/* Execute a hook if present */
|
|
8010
|
+
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
|
8011
|
+
/* Sanitize tags and elements */
|
|
8012
|
+
_sanitizeElements(shadowNode);
|
|
8013
|
+
/* Check attributes next */
|
|
8014
|
+
_sanitizeAttributes(shadowNode);
|
|
8015
|
+
/* Deep shadow DOM detected */
|
|
8016
|
+
if (shadowNode.content instanceof DocumentFragment) {
|
|
8017
|
+
_sanitizeShadowDOM(shadowNode.content);
|
|
8018
|
+
}
|
|
8019
|
+
}
|
|
8020
|
+
/* Execute a hook if present */
|
|
8021
|
+
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
8022
|
+
};
|
|
8023
|
+
// eslint-disable-next-line complexity
|
|
8024
|
+
DOMPurify.sanitize = function (dirty) {
|
|
8025
|
+
let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8026
|
+
let body = null;
|
|
8027
|
+
let importedNode = null;
|
|
8028
|
+
let currentNode = null;
|
|
8029
|
+
let returnNode = null;
|
|
8030
|
+
/* Make sure we have a string to sanitize.
|
|
8031
|
+
DO NOT return early, as this will return the wrong type if
|
|
8032
|
+
the user has requested a DOM object rather than a string */
|
|
8033
|
+
IS_EMPTY_INPUT = !dirty;
|
|
8034
|
+
if (IS_EMPTY_INPUT) {
|
|
8035
|
+
dirty = '<!-->';
|
|
8036
|
+
}
|
|
8037
|
+
/* Stringify, in case dirty is an object */
|
|
8038
|
+
if (typeof dirty !== 'string' && !_isNode(dirty)) {
|
|
8039
|
+
if (typeof dirty.toString === 'function') {
|
|
8040
|
+
dirty = dirty.toString();
|
|
8041
|
+
if (typeof dirty !== 'string') {
|
|
8042
|
+
throw typeErrorCreate('dirty is not a string, aborting');
|
|
8043
|
+
}
|
|
8044
|
+
} else {
|
|
8045
|
+
throw typeErrorCreate('toString is not a function');
|
|
8046
|
+
}
|
|
8047
|
+
}
|
|
8048
|
+
/* Return dirty HTML if DOMPurify cannot run */
|
|
8049
|
+
if (!DOMPurify.isSupported) {
|
|
8050
|
+
return dirty;
|
|
8051
|
+
}
|
|
8052
|
+
/* Assign config vars */
|
|
8053
|
+
if (!SET_CONFIG) {
|
|
8054
|
+
_parseConfig(cfg);
|
|
8055
|
+
}
|
|
8056
|
+
/* Clean up removed elements */
|
|
8057
|
+
DOMPurify.removed = [];
|
|
8058
|
+
/* Check if dirty is correctly typed for IN_PLACE */
|
|
8059
|
+
if (typeof dirty === 'string') {
|
|
8060
|
+
IN_PLACE = false;
|
|
8061
|
+
}
|
|
8062
|
+
if (IN_PLACE) {
|
|
8063
|
+
/* Do some early pre-sanitization to avoid unsafe root nodes */
|
|
8064
|
+
if (dirty.nodeName) {
|
|
8065
|
+
const tagName = transformCaseFunc(dirty.nodeName);
|
|
8066
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
8067
|
+
throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
|
|
8068
|
+
}
|
|
8069
|
+
}
|
|
8070
|
+
} else if (dirty instanceof Node) {
|
|
8071
|
+
/* If dirty is a DOM element, append to an empty document to avoid
|
|
8072
|
+
elements being stripped by the parser */
|
|
8073
|
+
body = _initDocument('<!---->');
|
|
8074
|
+
importedNode = body.ownerDocument.importNode(dirty, true);
|
|
8075
|
+
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {
|
|
8076
|
+
/* Node is already a body, use as is */
|
|
8077
|
+
body = importedNode;
|
|
8078
|
+
} else if (importedNode.nodeName === 'HTML') {
|
|
8079
|
+
body = importedNode;
|
|
8080
|
+
} else {
|
|
8081
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
|
8082
|
+
body.appendChild(importedNode);
|
|
8083
|
+
}
|
|
8084
|
+
} else {
|
|
8085
|
+
/* Exit directly if we have nothing to do */
|
|
8086
|
+
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
|
|
8087
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
|
8088
|
+
dirty.indexOf('<') === -1) {
|
|
8089
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
8090
|
+
}
|
|
8091
|
+
/* Initialize the document to work on */
|
|
8092
|
+
body = _initDocument(dirty);
|
|
8093
|
+
/* Check we have a DOM node from the data */
|
|
8094
|
+
if (!body) {
|
|
8095
|
+
return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
|
|
8096
|
+
}
|
|
8097
|
+
}
|
|
8098
|
+
/* Remove first element node (ours) if FORCE_BODY is set */
|
|
8099
|
+
if (body && FORCE_BODY) {
|
|
8100
|
+
_forceRemove(body.firstChild);
|
|
8101
|
+
}
|
|
8102
|
+
/* Get node iterator */
|
|
8103
|
+
const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
|
|
8104
|
+
/* Now start iterating over the created document */
|
|
8105
|
+
while (currentNode = nodeIterator.nextNode()) {
|
|
8106
|
+
/* Sanitize tags and elements */
|
|
8107
|
+
_sanitizeElements(currentNode);
|
|
8108
|
+
/* Check attributes next */
|
|
8109
|
+
_sanitizeAttributes(currentNode);
|
|
8110
|
+
/* Shadow DOM detected, sanitize it */
|
|
8111
|
+
if (currentNode.content instanceof DocumentFragment) {
|
|
8112
|
+
_sanitizeShadowDOM(currentNode.content);
|
|
8113
|
+
}
|
|
8114
|
+
}
|
|
8115
|
+
/* If we sanitized `dirty` in-place, return it. */
|
|
8116
|
+
if (IN_PLACE) {
|
|
8117
|
+
return dirty;
|
|
8118
|
+
}
|
|
8119
|
+
/* Return sanitized string or DOM */
|
|
8120
|
+
if (RETURN_DOM) {
|
|
8121
|
+
if (RETURN_DOM_FRAGMENT) {
|
|
8122
|
+
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
8123
|
+
while (body.firstChild) {
|
|
8124
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
|
8125
|
+
returnNode.appendChild(body.firstChild);
|
|
8126
|
+
}
|
|
8127
|
+
} else {
|
|
8128
|
+
returnNode = body;
|
|
8129
|
+
}
|
|
8130
|
+
if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
|
|
8131
|
+
/*
|
|
8132
|
+
AdoptNode() is not used because internal state is not reset
|
|
8133
|
+
(e.g. the past names map of a HTMLFormElement), this is safe
|
|
8134
|
+
in theory but we would rather not risk another attack vector.
|
|
8135
|
+
The state that is cloned by importNode() is explicitly defined
|
|
8136
|
+
by the specs.
|
|
8137
|
+
*/
|
|
8138
|
+
returnNode = importNode.call(originalDocument, returnNode, true);
|
|
8139
|
+
}
|
|
8140
|
+
return returnNode;
|
|
8141
|
+
}
|
|
8142
|
+
let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
|
|
8143
|
+
/* Serialize doctype if allowed */
|
|
8144
|
+
if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
|
|
8145
|
+
serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
|
|
8146
|
+
}
|
|
8147
|
+
/* Sanitize final string template-safe */
|
|
8148
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
8149
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
8150
|
+
serializedHTML = stringReplace(serializedHTML, expr, ' ');
|
|
8151
|
+
});
|
|
8152
|
+
}
|
|
8153
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
|
|
8154
|
+
};
|
|
8155
|
+
DOMPurify.setConfig = function () {
|
|
8156
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8157
|
+
_parseConfig(cfg);
|
|
8158
|
+
SET_CONFIG = true;
|
|
8159
|
+
};
|
|
8160
|
+
DOMPurify.clearConfig = function () {
|
|
8161
|
+
CONFIG = null;
|
|
8162
|
+
SET_CONFIG = false;
|
|
8163
|
+
};
|
|
8164
|
+
DOMPurify.isValidAttribute = function (tag, attr, value) {
|
|
8165
|
+
/* Initialize shared config vars if necessary. */
|
|
8166
|
+
if (!CONFIG) {
|
|
8167
|
+
_parseConfig({});
|
|
8168
|
+
}
|
|
8169
|
+
const lcTag = transformCaseFunc(tag);
|
|
8170
|
+
const lcName = transformCaseFunc(attr);
|
|
8171
|
+
return _isValidAttribute(lcTag, lcName, value);
|
|
8172
|
+
};
|
|
8173
|
+
DOMPurify.addHook = function (entryPoint, hookFunction) {
|
|
8174
|
+
if (typeof hookFunction !== 'function') {
|
|
8175
|
+
return;
|
|
8176
|
+
}
|
|
8177
|
+
arrayPush(hooks[entryPoint], hookFunction);
|
|
8178
|
+
};
|
|
8179
|
+
DOMPurify.removeHook = function (entryPoint, hookFunction) {
|
|
8180
|
+
if (hookFunction !== undefined) {
|
|
8181
|
+
const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
|
|
8182
|
+
return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0];
|
|
8183
|
+
}
|
|
8184
|
+
return arrayPop(hooks[entryPoint]);
|
|
8185
|
+
};
|
|
8186
|
+
DOMPurify.removeHooks = function (entryPoint) {
|
|
8187
|
+
hooks[entryPoint] = [];
|
|
8188
|
+
};
|
|
8189
|
+
DOMPurify.removeAllHooks = function () {
|
|
8190
|
+
hooks = _createHooksMap();
|
|
8191
|
+
};
|
|
8192
|
+
return DOMPurify;
|
|
8193
|
+
}
|
|
8194
|
+
var purify = createDOMPurify();
|
|
8195
|
+
|
|
8196
|
+
return purify;
|
|
8197
|
+
|
|
8198
|
+
}));
|
|
8199
|
+
|
|
8200
|
+
}(purify));
|
|
8201
|
+
|
|
8202
|
+
var purifier = purify.exports;
|
|
8203
|
+
|
|
8204
|
+
const IC_CUSTOM_ALLOWED_COMPONENTS = [];
|
|
8205
|
+
|
|
8206
|
+
/* istanbul ignore next */
|
|
8207
|
+
const getCustomElementHandling$1 = (allowICPrefix) => ({
|
|
8208
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
8209
|
+
tagNameCheck: (tagName) => (allowICPrefix && tagName.startsWith("ic-")) ||
|
|
8210
|
+
IC_CUSTOM_ALLOWED_COMPONENTS.includes(tagName),
|
|
8211
|
+
attributeNameCheck: /.*/,
|
|
8212
|
+
},
|
|
8213
|
+
});
|
|
8214
|
+
const sanitizeHTMLIconString$1 = (html) => {
|
|
8215
|
+
return purifier.sanitize(html, getCustomElementHandling$1(false));
|
|
8216
|
+
};
|
|
8217
|
+
|
|
6839
8218
|
const icDataTableCss = ":host{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{display:block}.cell-icon.truncation-show-hide{display:flex}.cell-container:not(.data-type-element,.truncation-show-hide){overflow-x:hidden}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-hover) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row-selected:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected-hover) 0 0\n )}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.table-density-dense .column-header-inner-container,td.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious .column-header-inner-container,td.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.column-header{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.cell-alignment-right.truncation-show-hide ic-typography{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left}.data-type-number,.data-type-date{text-align:right;justify-content:end}.cell-vertical-align-top{vertical-align:top;align-items:flex-start}.cell-vertical-align-middle{vertical-align:middle;align-items:center}.cell-vertical-align-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low ic-typography{--ic-typography-color:var(--ic-data-table-text-low-emphasis)}.cell-emphasis-high ic-typography{--ic-typography-color:var(--ic-data-table-text-high-emphasis);font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-data-table-pagination-bar-background-color);border-top:var(--ic-space-1px) solid\n var(--ic-data-table-pagination-bar-keyline)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow);z-index:calc(var(--ic-z-index-popover) - 1);background-color:var(--ic-data-table-overlay-background);border:var(--ic-space-1px) solid var(--ic-data-table-overlay-border)}.loading.show{opacity:1}.icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}.column-header .icon>svg,.column-header ::slotted(svg){fill:var(--ic-data-table-icon)}.table-cell .icon>svg,.table-cell ::slotted(svg),.cell-description-icon>svg{fill:var(--ic-data-table-icon-default-emphasis)}.cell-emphasis-high .icon>svg,.cell-emphasis-high ::slotted(svg){fill:var(--ic-data-table-icon-high-emphasis)}.cell-emphasis-low .icon>svg,.cell-emphasis-low ::slotted(svg){fill:var(--ic-data-table-icon-low-emphasis)}.column-header-alignment-right>.icon,.row-header-alignment-right>.icon,.cell-alignment-right>.icon,.column-header-alignment-right>::slotted(svg),.row-header-alignment-right>::slotted(svg),.cell-alignment-right>::slotted(svg){margin-right:auto}.column-header-alignment-center>ic-typography,.column-header-alignment-center>.cell-text-wrapper,.row-header-alignment-right>ic-typography,.row-header-alignment-right>.cell-text-wrapper,.cell-alignment-center>ic-typography,.cell-alignment-center>.cell-text-wrapper{flex:1}.checkbox-cell{--column-width:var(--ic-space-xxl);align-content:center;border-right:none}.table-density-dense.checkbox-cell{--column-width:2.5rem}.checkbox-wrapper{display:flex;justify-content:center}.icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}.truncation-tooltip ic-typography{display:-webkit-box;line-clamp:var(--ic-line-clamp, 0);-webkit-line-clamp:var(--ic-line-clamp, 0);-webkit-box-orient:vertical;overflow:hidden}.truncation-tooltip ic-typography,.truncation-show-hide ic-typography{white-space:normal}.ic-tooltip-overflow{overflow:hidden;width:100%}.action-element{display:flex;justify-content:right}.cell-grid-wrapper{display:grid;grid-template-columns:auto auto}.loading-overlay{visibility:hidden;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ic-data-table-loading-indicator-overlay-background);z-index:calc(var(--ic-z-index-popover) - 2);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading-overlay.show{visibility:visible;opacity:0.6}.sr-only{position:absolute;left:-9999px}@media (prefers-reduced-motion: reduce){.loading-overlay{transition:none}}.cell-text-wrapper{overflow:hidden}.cell-text-wrapper>ic-typography{margin-left:2px}.cell-text-no-wrap{word-wrap:initial}.cell-container-with-description{display:flex;flex-direction:row}.cell-description{display:flex;flex-direction:row;margin-top:var(--ic-space-xxs);word-break:break-all}.cell-description-text{color:var(--ic-data-table-cell-data-description)}.cell-description-icon{padding-right:var(--ic-space-xs)}.cell-description-icon>svg{height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs));display:flex}@media (min-width: 577px){.column-header-inner-container{display:flex;align-items:center}}@media (max-width: 577px){.cell-icon{flex-wrap:wrap}.cell-description-icon{padding-right:0}}@media (forced-colors: active){.icon,::slotted(svg),.cell-description-icon>svg{fill:currentcolor}.sort-button svg{color:currentcolor}.table-row-selected{background-color:Highlight !important}}";
|
|
6840
8219
|
var IcDataTableStyle0 = icDataTableCss;
|
|
6841
8220
|
|
|
@@ -7421,10 +8800,7 @@ class DataTable {
|
|
|
7421
8800
|
};
|
|
7422
8801
|
this.createCellContent = (columnProps, cell, cellSlotName, hasIcon, cellValue, rowOptions, currentRowHeight) => {
|
|
7423
8802
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
7424
|
-
return (hAsync("div", {
|
|
7425
|
-
!isSlotUsed(this.el, cellSlotName)
|
|
7426
|
-
? cell
|
|
7427
|
-
: undefined, class: Object.assign(Object.assign({ "cell-container": (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element", "cell-icon": hasIcon || !!((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _a === void 0 ? void 0 : _a.icon), [`cell-alignment-${((_b = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _b === void 0 ? void 0 : _b.horizontal) ||
|
|
8803
|
+
return (hAsync("div", { class: Object.assign(Object.assign({ "cell-container": (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element", "cell-icon": hasIcon || !!((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _a === void 0 ? void 0 : _a.icon), [`cell-alignment-${((_b = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _b === void 0 ? void 0 : _b.horizontal) ||
|
|
7428
8804
|
((_c = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _c === void 0 ? void 0 : _c.horizontal) ||
|
|
7429
8805
|
this.getCellAlignment(cell, "horizontal")}`]: !!((_d = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _d === void 0 ? void 0 : _d.horizontal) ||
|
|
7430
8806
|
!!((_e = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
|
|
@@ -7437,7 +8813,8 @@ class DataTable {
|
|
|
7437
8813
|
!!(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.emphasis) }, this.setTruncationClass()), { [this.CELL_CONTAINER_WITH_DESCRIPTION_STRING]: this.isObject(cell) && Object.keys(cell).includes("description") }), style: Object.assign(Object.assign({}, this.getCalculatedRowHeight(columnProps, cell, rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap, currentRowHeight)), this.getColumnWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnWidth)), "data-row-height": this.truncationPattern || currentRowHeight
|
|
7438
8814
|
? this.setRowHeight(currentRowHeight)
|
|
7439
8815
|
: null }, isSlotUsed(this.el, cellSlotName) ? (hAsync("slot", { name: cellSlotName })) : (hAsync(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (hAsync("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_f = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _f === void 0 ? void 0 : _f.onAllCells)) &&
|
|
7440
|
-
(cellValue("icon") || ((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _g === void 0 ? void 0 : _g.icon)) && (hAsync("span", { class: "icon", innerHTML: cellValue("icon")
|
|
8816
|
+
(cellValue("icon") || ((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _g === void 0 ? void 0 : _g.icon)) && (hAsync("span", { class: "icon", innerHTML: sanitizeHTMLIconString$1(cellValue("icon")) ||
|
|
8817
|
+
sanitizeHTMLIconString$1((_h = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _h === void 0 ? void 0 : _h.icon) }))), (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element" &&
|
|
7441
8818
|
!isSlotUsed(this.el, cellSlotName) && (hAsync("div", { class: {
|
|
7442
8819
|
"cell-text-wrapper": true,
|
|
7443
8820
|
"cell-text-no-wrap": !this.truncationPattern,
|
|
@@ -7452,7 +8829,7 @@ class DataTable {
|
|
|
7452
8829
|
Object.keys(cell).includes("description") && (hAsync("div", { class: {
|
|
7453
8830
|
["cell-description"]: true,
|
|
7454
8831
|
[`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true,
|
|
7455
|
-
} }, ((_j = cellValue("description")) === null || _j === void 0 ? void 0 : _j.icon) && (hAsync("span", { class: "cell-description-icon", innerHTML: cellValue("description").icon })), hAsync("ic-typography", { variant: "caption", class: "cell-description-text" }, (_l = (_k = cellValue("description")) === null || _k === void 0 ? void 0 : _k.data) !== null && _l !== void 0 ? _l : cellValue("description"))))))))));
|
|
8832
|
+
} }, ((_j = cellValue("description")) === null || _j === void 0 ? void 0 : _j.icon) && (hAsync("span", { class: "cell-description-icon", innerHTML: sanitizeHTMLIconString$1(cellValue("description").icon) })), hAsync("ic-typography", { variant: "caption", class: "cell-description-text" }, (_l = (_k = cellValue("description")) === null || _k === void 0 ? void 0 : _k.data) !== null && _l !== void 0 ? _l : cellValue("description"))))))))));
|
|
7456
8833
|
};
|
|
7457
8834
|
this.createCells = (row, rowIndex) => {
|
|
7458
8835
|
var _a;
|
|
@@ -7498,7 +8875,7 @@ class DataTable {
|
|
|
7498
8875
|
"truncation-tooltip": this.columnHeaderTruncation,
|
|
7499
8876
|
[`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
|
|
7500
8877
|
} }, isSlotUsed(this.el, `${key}-column-icon`) ? (hAsync("slot", { name: `${key}-column-icon` })) : (icon &&
|
|
7501
|
-
!icon.hideOnHeader && (hAsync("span", { class: "icon", innerHTML: icon.icon }))), this.columnHeaderTruncation ? (hAsync("ic-tooltip", { label: title, target: `column-header-${index}` }, hAsync("ic-typography", { id: `column-header-${index}`, variant: "body", class: {
|
|
8878
|
+
!icon.hideOnHeader && (hAsync("span", { class: "icon", innerHTML: sanitizeHTMLIconString$1(icon.icon) }))), this.columnHeaderTruncation ? (hAsync("ic-tooltip", { label: title, target: `column-header-${index}` }, hAsync("ic-typography", { id: `column-header-${index}`, variant: "body", class: {
|
|
7502
8879
|
["column-header-text"]: true,
|
|
7503
8880
|
[`text-${this.density}`]: this.notDefaultDensity(),
|
|
7504
8881
|
} }, title))) : (hAsync("ic-typography", { variant: "body", class: {
|
|
@@ -8175,22 +9552,22 @@ class DataTable {
|
|
|
8175
9552
|
? "deselect all"
|
|
8176
9553
|
: "select all remaining"
|
|
8177
9554
|
: "select all";
|
|
8178
|
-
return (hAsync(Host, { key: '
|
|
9555
|
+
return (hAsync(Host, { key: 'c5b57495acaac9787d44d93b1da833e209e627fa', style: Object.assign({}, this.setTableDimensions()), class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '8feecd07aefd2fba2700ea0a2abc728a489d4354', class: "table-container" }, isSlotUsed(this.el, "title-bar") && hAsync("slot", { key: '22d7dddca26638d24b2ee608582a59ae3d72d9be', name: "title-bar" }), hAsync("div", { key: 'e2be083520e1cdc27746fd01eabf82904d22590b', class: {
|
|
8179
9556
|
["table-row-container"]: true,
|
|
8180
9557
|
scrollable,
|
|
8181
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '
|
|
9558
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: 'eff477957c0785a651c480b4e9ddd88534563a81', style: {
|
|
8182
9559
|
"--table-layout": tableLayout,
|
|
8183
|
-
} }, hAsync("caption", { key: '
|
|
9560
|
+
} }, hAsync("caption", { key: 'e41a3f6133cb02f96e2fd537cdcb24c3467e92a6', class: "table-caption" }, caption), !hideColumnHeaders && (hAsync("thead", { key: 'b36805140e81e3e3a9fd065792c0ac514d64ae16', class: {
|
|
8184
9561
|
["column-header-sticky"]: stickyColumnHeaders,
|
|
8185
9562
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
|
8186
|
-
} }, hAsync("tr", { key: '
|
|
9563
|
+
} }, hAsync("tr", { key: '7b377adb333d251f84400dd6aa499dfa1fa3df6d' }, rowSelection && data && (hAsync("th", { key: 'ab9831b9c3f4e4b96c5223961753506ce0629cc1', class: {
|
|
8187
9564
|
"column-header": true,
|
|
8188
9565
|
"checkbox-cell": true,
|
|
8189
9566
|
"updating-state-headers": updating && !loading,
|
|
8190
9567
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
|
8191
|
-
} }, hAsync("div", { key: '
|
|
9568
|
+
} }, hAsync("div", { key: '785236605fa8c29a12fecb6eb4f936c2f65b29b5', class: "checkbox-wrapper" }, hAsync("ic-checkbox", { key: '64975b6e2e4af589ad2b535c68ecc16e2f2abea9', class: "ic-data-table-checkbox", checked: rowsSelected && allRowsSelected, disabled: updating || loading, hideLabel: true, indeterminate: rowsSelected && !allRowsSelected, label: `${caption} ${headerCheckboxLabelState} rows`, nativeIndeterminateBehaviour: true, onIcCheck: () => selectAllRows(), size: density === "dense" ? "small" : "medium", value: caption })))), createColumnHeaders()))), updating &&
|
|
8192
9569
|
!loading &&
|
|
8193
|
-
(hideColumnHeaders ? (hAsync("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), hAsync("div", { key: '
|
|
9570
|
+
(hideColumnHeaders ? (hAsync("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), hAsync("div", { key: '8d04e4eb5e786f981868b313ea1a0edad7b989b2', "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (hAsync("div", { key: 'abda6bfbad63dd765dbc8ec4e16609cb4526de2a', class: "pagination-container" }, isSlotUsed(this.el, "pagination-bar") ? (hAsync("slot", { name: "pagination-bar" })) : (hAsync("ic-pagination-bar", { alignment: paginationBarOptions.alignment, hideAllFromItemsPerPage: paginationBarOptions.hideAllFromItemsPerPage, hideRangeLabel: paginationBarOptions.hideRangeLabel, itemLabel: paginationBarOptions.itemLabel, itemsPerPageOptions: paginationBarOptions.itemsPerPageOptions, monochrome: paginationBarOptions.monochrome, pageLabel: paginationBarOptions.pageLabel, rangeLabelType: paginationBarOptions.rangeLabelType, selectedItemsPerPage: paginationBarOptions.selectedItemsPerPage, selectItemsPerPageOnEnter: paginationBarOptions.selectItemsPerPageOnEnter, setToFirstPageOnPaginationChange: paginationBarOptions.setToFirstPageOnPaginationChange, showGoToPageControl: paginationBarOptions.showGoToPageControl, showItemsPerPageControl: paginationBarOptions.showItemsPerPageControl, theme: theme, totalItems: (_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0, type: paginationBarOptions.type })))), sortable && (hAsync("div", { key: '11a1b7220450c29b08e352071b76a9389614751a', class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
|
8194
9571
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
|
8195
9572
|
sortedColumn} sorted ${sortedColumnOrder}`
|
|
8196
9573
|
: "table unsorted")))));
|
|
@@ -8422,7 +9799,7 @@ var Calendar = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" v
|
|
|
8422
9799
|
<path d="M16.6667 2.50004H15.8334V0.833374H14.1667V2.50004H5.83342V0.833374H4.16675V2.50004H3.33341C2.41675 2.50004 1.66675 3.25004 1.66675 4.16671V17.5C1.66675 18.4167 2.41675 19.1667 3.33341 19.1667H16.6667C17.5834 19.1667 18.3334 18.4167 18.3334 17.5V4.16671C18.3334 3.25004 17.5834 2.50004 16.6667 2.50004ZM16.6667 17.5H3.33341V6.66671H16.6667V17.5Z" fill="currentColor"/>
|
|
8423
9800
|
</svg>`;
|
|
8424
9801
|
|
|
8425
|
-
const icDateInputCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--ic-input-label-helpertext-padding:var(--ic-space-xs);--input-bg-color:var(--ic-date-input-bg);--ic-input-label-text-color:var(--ic-date-input-label);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle);--border-color:var(--ic-date-input-border);--border-color-disabled:var(--ic-date-input-border-disabled);--border-color-hover:var(--ic-date-input-border-default-hover);--border-color-pressed:var(--ic-date-input-border-default-pressed);--border-error-color:var(--ic-date-input-border-error);--border-error-color-hover:var(--ic-date-input-border-error-hover);--border-error-color-pressed:var(--ic-date-input-border-error-pressed);--border-success-color:var(--ic-date-input-border-success);--border-success-color-hover:var(--ic-date-input-border-success-hover);--border-success-color-pressed:var(--ic-date-input-border-success-pressed);--border-warning-color:var(--ic-date-input-border-warning);--border-warning-color-hover:var(--ic-date-input-border-warning-hover);--border-warning-color-pressed:var(--ic-date-input-border-warning-pressed)}:host(.ic-date-input-disabled){--ic-input-label-text-color:var(--ic-date-input-label-disabled);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle-disabled)}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-date-input-text-filled);caret-color:var(--ic-date-input-typing-cursor)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}input:-webkit-autofill{box-shadow:0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset;-webkit-text-fill-color:var(--ic-date-input-text-filled) !important}input::-moz-placeholder{color:var(--ic-date-input-text-placeholder)}input::placeholder{color:var(--ic-date-input-text-placeholder)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.date-inputs{color:var(--ic-date-input-text-placeholder)}.day-input{width:1.438rem}.month-input{width:1.813rem}.year-input,.year-input.fit-to-value{width:2.313rem}.fit-to-value{width:1.25rem}.sr-only{position:absolute;left:-9999px}.input-container{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}.action-buttons{display:flex;align-items:center}.show-calendar-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.calendar-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition);margin:0}.clear-button.hidden{display:none}.clear-button:focus,.calendar-button:focus,.clear-button:active,.calendar-button:active{background-color:var(--ic-color-focus-inner) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer) !important;border-radius:0.25rem}.calendar-button:focus,.calendar-button:active{--ic-button-tertiary-text-active:var(--ic-atoms-input-clear-button-focus);--ic-button-tertiary-text-hover-active:var(\n --ic-atoms-input-clear-button-focus\n );--ic-button-tertiary-text-pressed-active:var(\n --ic-atoms-input-clear-button-focus\n )}.clear-button:focus,.calendar-button:focus,.clear-button:active *,.calendar-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button svg{color:var(--ic-date-input-clear-icon)}.clear-button:focus svg{color:var(--ic-atoms-input-clear-button-focus)}.divider{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-atoms-input-divider);border-radius:var(--ic-space-1px)}.divider.small{height:var(--ic-space-md)}.divider.medium{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}.divider.large{height:var(--ic-space-lg)}ic-input-validation{--ic-input-validation-status-text-color:var(--ic-date-input-status-text);--ic-input-validation-error:var(--ic-date-input-icon-error);--ic-input-validation-warning-icon-color:var(--ic-date-input-icon-warning);--ic-input-validation-success-icon-color:var(--ic-date-input-icon-success)}";
|
|
9802
|
+
const icDateInputCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--ic-input-label-helpertext-padding:var(--ic-space-xs);--input-bg-color:var(--ic-date-input-bg);--ic-input-label-text-color:var(--ic-date-input-label);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle);--border-color:var(--ic-date-input-border);--border-color-disabled:var(--ic-date-input-border-disabled);--border-color-hover:var(--ic-date-input-border-default-hover);--border-color-pressed:var(--ic-date-input-border-default-pressed);--border-error-color:var(--ic-date-input-border-error);--border-error-color-hover:var(--ic-date-input-border-error-hover);--border-error-color-pressed:var(--ic-date-input-border-error-pressed);--border-success-color:var(--ic-date-input-border-success);--border-success-color-hover:var(--ic-date-input-border-success-hover);--border-success-color-pressed:var(--ic-date-input-border-success-pressed);--border-warning-color:var(--ic-date-input-border-warning);--border-warning-color-hover:var(--ic-date-input-border-warning-hover);--border-warning-color-pressed:var(--ic-date-input-border-warning-pressed)}:host(.ic-date-input-disabled){--ic-input-label-text-color:var(--ic-date-input-label-disabled);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle-disabled)}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-date-input-text-filled);caret-color:var(--ic-date-input-typing-cursor)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}input:-webkit-autofill{box-shadow:0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset;-webkit-text-fill-color:var(--ic-date-input-text-filled) !important}input::-moz-placeholder{color:var(--ic-date-input-text-placeholder)}input::placeholder{color:var(--ic-date-input-text-placeholder)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.date-inputs{color:var(--ic-date-input-text-placeholder)}.day-input{width:1.438rem}.month-input{width:1.813rem}.year-input,.year-input.fit-to-value{width:2.313rem}.fit-to-value{width:1.25rem}.sr-only{position:absolute;left:-9999px}.input-container{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}.action-buttons{display:flex;align-items:center}.show-calendar-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.calendar-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition);margin:0}.clear-button.hidden{display:none}.clear-button:focus,.calendar-button:focus,.clear-button:active,.calendar-button:active{background-color:var(--ic-color-focus-inner) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer) !important;border-radius:0.25rem}.calendar-button:focus,.calendar-button:active{--ic-button-tertiary-text-active:var(--ic-atoms-input-clear-button-focus);--ic-button-tertiary-text-hover-active:var(\n --ic-atoms-input-clear-button-focus\n );--ic-button-tertiary-text-pressed-active:var(\n --ic-atoms-input-clear-button-focus\n )}.clear-button:focus,.calendar-button:focus,.clear-button:active *,.calendar-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button svg{color:var(--ic-date-input-clear-icon)}.clear-button:focus svg{color:var(--ic-atoms-input-clear-button-focus)}.divider{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-atoms-input-divider);border-radius:var(--ic-space-1px)}.divider.small{height:var(--ic-space-md)}.divider.medium{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}.divider.large{height:var(--ic-space-lg)}ic-input-validation{--ic-input-validation-status-text-color:var(--ic-date-input-status-text);--ic-input-validation-error:var(--ic-date-input-icon-error);--ic-input-validation-warning-icon-color:var(--ic-date-input-icon-warning);--ic-input-validation-success-icon-color:var(--ic-date-input-icon-success)}@media (forced-colors: active){.clear-button svg{color:currentcolor}}";
|
|
8426
9803
|
var IcDateInputStyle0 = icDateInputCss;
|
|
8427
9804
|
|
|
8428
9805
|
let inputIds$5 = 0;
|
|
@@ -12270,7 +13647,7 @@ class InputLabel {
|
|
|
12270
13647
|
}; }
|
|
12271
13648
|
}
|
|
12272
13649
|
|
|
12273
|
-
const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);margin-top:var(--ic-space-xs)
|
|
13650
|
+
const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);display:flex}ic-input-validation.ic-input-validation-with-status{margin-top:var(--ic-space-xs)}ic-input-validation.ic-input-validation-full-width{width:100%}ic-input-validation span.status-icon{padding-right:var(--ic-space-xxs)}ic-input-validation span.status-icon>svg{height:1.25rem;width:1.25rem}ic-input-validation span.icon-success>svg{fill:var(--ic-input-validation-success-icon-color)}ic-input-validation span.icon-error>svg{fill:var(--ic-input-validation-error, var(--ic-atoms-status-icon-error))}ic-input-validation span.icon-warning>svg{fill:var(--ic-input-validation-warning-icon-color)}ic-input-validation .statustext{flex-grow:1;color:var(\n --ic-input-validation-status-text-color,\n var(--ic-color-text-primary)\n );--ic-typography-color:var(\n --ic-input-validation-status-text-color,\n var(--ic-color-text-primary)\n )}ic-input-validation .sr-only{position:absolute;left:-9999px}";
|
|
12274
13651
|
var IcInputValidationStyle0 = icInputValidationCss;
|
|
12275
13652
|
|
|
12276
13653
|
const ICON = {
|
|
@@ -12304,7 +13681,7 @@ class InputValidation {
|
|
|
12304
13681
|
this.messageEl.textContent = INVISIBLE_CHAR;
|
|
12305
13682
|
setTimeout(() => {
|
|
12306
13683
|
this.messageEl.textContent = newValue;
|
|
12307
|
-
},
|
|
13684
|
+
}, 200); // Delay to help ensure screen readers detect change
|
|
12308
13685
|
}
|
|
12309
13686
|
componentDidLoad() {
|
|
12310
13687
|
onComponentRequiredPropUndefined$1([{ prop: this.message, propName: "message" }], "Input Validation");
|
|
@@ -12313,13 +13690,14 @@ class InputValidation {
|
|
|
12313
13690
|
render() {
|
|
12314
13691
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
|
12315
13692
|
const displayIcon = status !== "" ? ICON[status] : "";
|
|
12316
|
-
return (hAsync(Host, { key: '
|
|
13693
|
+
return (hAsync(Host, { key: 'f1ba7e992a65cbd63d86411844668a0db4944cf2', class: {
|
|
12317
13694
|
[`ic-input-validation-${status}`]: status !== "",
|
|
12318
13695
|
"ic-input-validation-full-width": !!fullWidth,
|
|
12319
|
-
|
|
13696
|
+
"ic-input-validation-with-status": status !== "",
|
|
13697
|
+
} }, displayIcon !== "" && (hAsync("span", { key: '43bf05c319e9f4cdb7f6e5affd403d745b7dac00', class: {
|
|
12320
13698
|
"status-icon": true,
|
|
12321
13699
|
[`icon-${status}`]: true,
|
|
12322
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
|
13700
|
+
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '8d0f570e79158d1add1410653c8bbdb5e052aaa3', variant: "caption", class: "statustext" }, hAsync("span", { key: 'c363e60a30ef571a63779ed77a7e4e8358444d5f', id: this.for && getInputValidationTextID$1(this.for) }, message), hAsync("span", { key: '53959e2fb2d6b51aaa5eca1f9526f0a6e55b5bea', ref: (el) => (this.messageEl = el), class: "sr-only", "aria-live": ariaLiveMode })), hAsync("slot", { key: '861c3d827e89d6e4c917cb6d584e7d3ec6a5c27a', name: "validation-message-adornment" })));
|
|
12323
13701
|
}
|
|
12324
13702
|
get el() { return getElement(this); }
|
|
12325
13703
|
static get watchers() { return {
|
|
@@ -14735,6 +16113,21 @@ var checkIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2
|
|
|
14735
16113
|
</svg>
|
|
14736
16114
|
`;
|
|
14737
16115
|
|
|
16116
|
+
/* istanbul ignore next */
|
|
16117
|
+
const getCustomElementHandling = (allowICPrefix) => ({
|
|
16118
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
16119
|
+
tagNameCheck: (tagName) => (allowICPrefix && tagName.startsWith("ic-")) ||
|
|
16120
|
+
IC_CUSTOM_ALLOWED_COMPONENTS$1.includes(tagName),
|
|
16121
|
+
attributeNameCheck: /.*/,
|
|
16122
|
+
},
|
|
16123
|
+
});
|
|
16124
|
+
const sanitizeHTMLString = (html) => {
|
|
16125
|
+
return purifier.sanitize(html, getCustomElementHandling(true));
|
|
16126
|
+
};
|
|
16127
|
+
const sanitizeHTMLIconString = (html) => {
|
|
16128
|
+
return purifier.sanitize(html, getCustomElementHandling(false));
|
|
16129
|
+
};
|
|
16130
|
+
|
|
14738
16131
|
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));color:var(--menu-item-text-color, var(--ic-menu-list-option-text-color));--ic-typography-color:var(\n --menu-item-text-color,\n var(--ic-menu-list-option-text-color)\n );background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.ic-menu-open.sc-ic-menu-h:not(.ic-menu-no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.ic-select-select-all-focused.sc-ic-menu-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu #retry-button.sc-ic-menu::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-h{inset:auto !important}.menu.sc-ic-menu{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu:has(+.option-bar).sc-ic-menu{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu{overflow-y:auto}.menu.sc-ic-menu:focus-visible{outline:none}.ic-menu-open.sc-ic-menu-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid\n var(--menu-border-color, var(--ic-menu-border-color));transition:box-shadow var(--ic-easing-transition-fast)}.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.ic-menu-open.sc-ic-menu-h .option-bar.sc-ic-menu{visibility:visible}.ic-menu-open.sc-ic-menu-h .select-all-button.sc-ic-menu{display:block}.ic-menu-full-width.sc-ic-menu-h{width:100%}.option.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center;gap:var(--ic-space-xs)}.loading-option.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.option.sc-ic-menu:not(.loading-option){justify-content:space-between}.ic-menu-small.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.ic-menu-large.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu:last-child{border-radius:0 0 1px 1px}.sc-ic-menu:not(.menu:has(+.option-bar)).sc-ic-menu .option.sc-ic-menu:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu:not(.disabled-option):hover{background-color:var(--ic-menu-list-option-hover-background-color)}.option.sc-ic-menu:not(.disabled-option):active{background-color:var(--ic-menu-list-option-pressed-background-color)}.option.sc-ic-menu:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu:not(.disabled-option) .option-description.sc-ic-menu{--ic-typography-color:var(\n --menu-item-desc-text-color,\n var(--ic-menu-list-option-description-text-color)\n )}.option.sc-ic-menu .option-label.sc-ic-menu{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu .option-label.sc-ic-menu ic-typography.sc-ic-menu{max-width:100%;word-wrap:break-word}.option.sc-ic-menu .option-element.sc-ic-menu{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu .option-icon.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxxs)}.option-text-container.sc-ic-menu{pointer-events:none;width:100%}.option-text-container.show-check-icon.sc-ic-menu{flex-grow:1}.option.loading-option.sc-ic-menu .option-text-container.sc-ic-menu{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-menu-loading-list-option-text-color);--ic-typography-color:var(--ic-menu-loading-list-option-text-color)}.error-icon-svg.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-atoms-status-icon-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu{display:flex}.check-icon.sc-ic-menu{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);pointer-events:none}.focused-option.sc-ic-menu .check-icon.sc-ic-menu *.sc-ic-menu{fill:currentcolor}.option-group-title.sc-ic-menu{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);--ic-typography-color:var(--ic-menu-option-group-label-text-color)}.ic-menu-small.sc-ic-menu-h .option-group-title.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu{border-bottom:var(--ic-menu-last-recommended-option-border)}.disabled-option.sc-ic-menu{color:var(--ic-atoms-list-option-text-disabled-light);--ic-typography-color:var(--ic-atoms-list-option-text-disabled-light);cursor:default;pointer-events:none}.focused-option.sc-ic-menu,.focused-option.sc-ic-menu .option-description.sc-ic-menu{background-color:var(--ic-color-focus-inner) !important;color:var(--ic-atoms-list-option-text-focused-light) !important;--ic-typography-color:var(\n --ic-atoms-list-option-text-focused-light\n ) !important}.no-results.sc-ic-menu-h li.sc-ic-menu{cursor:no-drop}.no-results.sc-ic-menu-h li.sc-ic-menu:hover{background-color:transparent}.option-bar.sc-ic-menu{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-menu-option-bar-background-color);visibility:hidden;border-bottom:var(--ic-border-width) solid\n var(--ic-menu-option-bar-divider-color);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.ic-menu-large.sc-ic-menu-h .option-bar.sc-ic-menu{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu{display:none}.select-all-button.sc-ic-menu:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu:focus{outline:none;border:0.125rem solid transparent}.disabled-option.sc-ic-menu{color:GrayText;--ic-typography-color:GrayText}}";
|
|
14739
16132
|
var IcMenuStyle0 = icMenuCss;
|
|
14740
16133
|
|
|
@@ -15469,7 +16862,7 @@ class Menu {
|
|
|
15469
16862
|
return (hAsync(Fragment, null, option.loading && hAsync("ic-loading-indicator", { size: "icon" }), hAsync("div", { class: {
|
|
15470
16863
|
"option-text-container": true,
|
|
15471
16864
|
"show-check-icon": showCheckIcon,
|
|
15472
|
-
} }, hAsync("div", { class: "option-label" }, option.icon && (hAsync("div", { class: "option-icon", innerHTML: option.icon, "aria-hidden": "true" })), hAsync("ic-typography", { variant: "body", "aria-hidden": "true" }, option[this.labelField])), option.description && (hAsync("ic-typography", { id: `${this.getOptionId(option[this.valueField])}-description`, class: "option-description", variant: "caption", "aria-hidden": "true" }, hAsync("p", null, option.description))), option.element && (hAsync("div", { class: "option-element", innerHTML: option.element.component, "aria-hidden": "true" }))), showCheckIcon && hAsync("span", { class: "check-icon", innerHTML: checkIcon })));
|
|
16865
|
+
} }, hAsync("div", { class: "option-label" }, option.icon && (hAsync("div", { class: "option-icon", innerHTML: sanitizeHTMLIconString(option.icon), "aria-hidden": "true" })), hAsync("ic-typography", { variant: "body", "aria-hidden": "true" }, option[this.labelField])), option.description && (hAsync("ic-typography", { id: `${this.getOptionId(option[this.valueField])}-description`, class: "option-description", variant: "caption", "aria-hidden": "true" }, hAsync("p", null, option.description))), option.element && (hAsync("div", { class: "option-element", innerHTML: sanitizeHTMLString(option.element.component), "aria-hidden": "true" }))), showCheckIcon && hAsync("span", { class: "check-icon", innerHTML: checkIcon })));
|
|
15473
16866
|
};
|
|
15474
16867
|
this.displayOption = (option, selected, index, parentOption) => {
|
|
15475
16868
|
const { open, keyboardNav, isManualMode, initialOptionsListRender, optionHighlighted, options, } = this;
|
|
@@ -15658,7 +17051,7 @@ class Menu {
|
|
|
15658
17051
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
|
15659
17052
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
|
15660
17053
|
const hasNoResults = this.host.classList.contains("no-results");
|
|
15661
|
-
return (hAsync(Host, { key: '
|
|
17054
|
+
return (hAsync(Host, { key: 'e17a70bcf59709dd5b9d0cc7b404520ff06bcf35', class: {
|
|
15662
17055
|
"ic-menu-full-width": !!fullWidth,
|
|
15663
17056
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
|
15664
17057
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
|
@@ -15667,7 +17060,7 @@ class Menu {
|
|
|
15667
17060
|
[`ic-menu-${size}`]: true,
|
|
15668
17061
|
"ic-menu-open": open && options.length !== 0,
|
|
15669
17062
|
"ic-menu-multiple": multiSelect,
|
|
15670
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
|
17063
|
+
} }, options.length !== 0 && (hAsync("ul", { key: '438cd6126c1296a14e216edc0a5d790a4705b143', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", tabindex: open &&
|
|
15671
17064
|
!keyboardNav &&
|
|
15672
17065
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
|
15673
17066
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
|
@@ -15695,7 +17088,7 @@ class Menu {
|
|
|
15695
17088
|
multiSelect &&
|
|
15696
17089
|
!isLoading &&
|
|
15697
17090
|
!hasTimedOut &&
|
|
15698
|
-
!hasNoResults && (hAsync("div", { key: '
|
|
17091
|
+
!hasNoResults && (hAsync("div", { key: '5732c5ac4fa70ff249a7851d61aee8ccf46082d1', class: "option-bar" }, hAsync("ic-typography", { key: '48ce8543a189cad706804715a077575b3774e490' }, hAsync("p", { key: '63537752e580815f650c3d9bbf38b23267c5229c' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: '60c446e5303a3939494284b9ce7772feb1fe547c', class: "select-all-button", "aria-label": `${selectAllButtonText} options for ${inputLabel}`, ref: (el) => (this.selectAllButton = el), variant: "tertiary", onClick: this.handleSelectAllClick, onMouseDown: this.handleSelectAllMouseDown, onBlur: this.handleSelectAllBlur, onFocus: this.handleSelectAllFocus, size: size === "small" ? "small" : "medium" }, selectAllButtonText)))));
|
|
15699
17092
|
}
|
|
15700
17093
|
get host() { return getElement(this); }
|
|
15701
17094
|
static get watchers() { return {
|
|
@@ -17280,6 +18673,17 @@ class PaginationBar {
|
|
|
17280
18673
|
If `true`, the pagination bar is set to the first page when the 'items per page' changes
|
|
17281
18674
|
*/
|
|
17282
18675
|
this.setToFirstPageOnPaginationChange = false;
|
|
18676
|
+
this.setSelectedItemsPerPage = (selectedItemsPerPage, displayedItemsPerPageOptions = []) => {
|
|
18677
|
+
var _a;
|
|
18678
|
+
const isSelectedItemsPerPagePresent = displayedItemsPerPageOptions === null || displayedItemsPerPageOptions === void 0 ? void 0 : displayedItemsPerPageOptions.some(({ value }) => { var _a; return value === ((_a = this.selectedItemsPerPage) === null || _a === void 0 ? void 0 : _a.toString()); });
|
|
18679
|
+
if (isSelectedItemsPerPagePresent) {
|
|
18680
|
+
this.setItemsPerPage(selectedItemsPerPage, false);
|
|
18681
|
+
}
|
|
18682
|
+
else {
|
|
18683
|
+
console.error(`The selected items per page option "${this.selectedItemsPerPage}" does not exist`);
|
|
18684
|
+
this.setItemsPerPage(+((_a = displayedItemsPerPageOptions[0]) === null || _a === void 0 ? void 0 : _a.value), false);
|
|
18685
|
+
}
|
|
18686
|
+
};
|
|
17283
18687
|
this.changeItemsPerPage = () => {
|
|
17284
18688
|
this.setItemsPerPage(Number(this.pageDropdownEl.value));
|
|
17285
18689
|
this.userSetItemsPerPage = Number(this.pageDropdownEl.value);
|
|
@@ -17393,12 +18797,15 @@ class PaginationBar {
|
|
|
17393
18797
|
this.activePage = firstPage;
|
|
17394
18798
|
this.icPageChange.emit({ value: firstPage });
|
|
17395
18799
|
};
|
|
17396
|
-
this.setItemsPerPage = (newValue) => {
|
|
18800
|
+
this.setItemsPerPage = (newValue, isUserAction = true) => {
|
|
17397
18801
|
var _a;
|
|
17398
18802
|
if (this.itemsPerPage !== newValue) {
|
|
17399
18803
|
this.itemsPerPage = newValue;
|
|
17400
18804
|
this.itemsPerPageString = newValue.toString();
|
|
17401
|
-
this.icItemsPerPageChange.emit({
|
|
18805
|
+
this.icItemsPerPageChange.emit({
|
|
18806
|
+
value: this.itemsPerPage,
|
|
18807
|
+
isUserAction,
|
|
18808
|
+
});
|
|
17402
18809
|
if (this.setToFirstPageOnPaginationChange) {
|
|
17403
18810
|
this.setToFirstPage();
|
|
17404
18811
|
}
|
|
@@ -17445,13 +18852,19 @@ class PaginationBar {
|
|
|
17445
18852
|
this.setItemsPerPage(lastOptionValue);
|
|
17446
18853
|
}
|
|
17447
18854
|
else {
|
|
17448
|
-
|
|
17449
|
-
|
|
17450
|
-
|
|
17451
|
-
}
|
|
17452
|
-
|
|
17453
|
-
|
|
17454
|
-
|
|
18855
|
+
if (this.selectedItemsPerPage !== null &&
|
|
18856
|
+
this.selectedItemsPerPage !== undefined) {
|
|
18857
|
+
this.setSelectedItemsPerPage(this.selectedItemsPerPage, this.displayedItemsPerPageOptions);
|
|
18858
|
+
}
|
|
18859
|
+
else {
|
|
18860
|
+
const updated = this.displayedItemsPerPageOptions.some(({ value }) => {
|
|
18861
|
+
lastOptionValue = Number(value);
|
|
18862
|
+
return this.itemsPerPage <= lastOptionValue;
|
|
18863
|
+
});
|
|
18864
|
+
this.setItemsPerPage(updated || (!updated && this.itemsPerPage > lastOptionValue)
|
|
18865
|
+
? lastOptionValue
|
|
18866
|
+
: this.itemsPerPage, false);
|
|
18867
|
+
}
|
|
17455
18868
|
}
|
|
17456
18869
|
};
|
|
17457
18870
|
this.setUpperBound = () => {
|
|
@@ -17471,15 +18884,9 @@ class PaginationBar {
|
|
|
17471
18884
|
}
|
|
17472
18885
|
}
|
|
17473
18886
|
watchSelectedItemsPerPageHandler() {
|
|
17474
|
-
var _a;
|
|
17475
18887
|
if (this.selectedItemsPerPage !== null &&
|
|
17476
18888
|
this.selectedItemsPerPage !== undefined) {
|
|
17477
|
-
|
|
17478
|
-
this.setItemsPerPage(this.selectedItemsPerPage);
|
|
17479
|
-
}
|
|
17480
|
-
else {
|
|
17481
|
-
console.error(`The selected items per page option "${this.selectedItemsPerPage}" does not exist`);
|
|
17482
|
-
}
|
|
18889
|
+
this.setSelectedItemsPerPage(this.selectedItemsPerPage, this.displayedItemsPerPageOptions);
|
|
17483
18890
|
}
|
|
17484
18891
|
}
|
|
17485
18892
|
watchItemLabelHandler() {
|
|
@@ -17510,7 +18917,6 @@ class PaginationBar {
|
|
|
17510
18917
|
this.watchPageLabelHandler();
|
|
17511
18918
|
this.watchItemLabelHandler();
|
|
17512
18919
|
this.setPaginationBarContent();
|
|
17513
|
-
this.watchSelectedItemsPerPageHandler();
|
|
17514
18920
|
}
|
|
17515
18921
|
componentDidLoad() {
|
|
17516
18922
|
var _a, _b, _c;
|
|
@@ -17532,21 +18938,21 @@ class PaginationBar {
|
|
|
17532
18938
|
}
|
|
17533
18939
|
render() {
|
|
17534
18940
|
const { alignment, displayedItemsPerPageOptions, PAGE_INPUT_FIELD_ID, type, rangeLabelType, hideRangeLabel, showItemsPerPageControl, showGoToPageControl, pageLabel, capitalizedPageLabel, lowerCasePageLabel, capitalizedItemLabel, lowerCaseItemLabel, totalPages, activePage, itemsPerPageString, theme, monochrome, selectItemsPerPageOnEnter, } = this;
|
|
17535
|
-
return (hAsync(Host, { key: '
|
|
18941
|
+
return (hAsync(Host, { key: '38c00586aa21b2e5f0cd21faa1e3f9c7f47f0535', class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '9582443e86e7df6f5128a2c63aabe5c4779ef3ea', class: {
|
|
17536
18942
|
["pagination-bar"]: true,
|
|
17537
18943
|
[`pagination-bar-${alignment}`]: true,
|
|
17538
|
-
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { key: '
|
|
18944
|
+
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { key: '1c246b1b4a1ccd9f36ede57542256d0baed04a11', class: "item-controls" }, showItemsPerPageControl && (hAsync("div", { key: 'b6f75857b7786f3eb608617d2716851e65083cd9', class: "items-per-page-holder" }, hAsync("ic-typography", { key: '18d38ac0ca87b54067a9f9d75bca00d6da05a63e', class: {
|
|
17539
18945
|
["items-per-page-control-label"]: true,
|
|
17540
|
-
}, variant: "label", onClick: this.itemsPerPageLabelClickHandler }, capitalizedItemLabel, "s per ", lowerCasePageLabel), hAsync("ic-select", { key: '
|
|
18946
|
+
}, variant: "label", onClick: this.itemsPerPageLabelClickHandler }, capitalizedItemLabel, "s per ", lowerCasePageLabel), hAsync("ic-select", { key: '173b9a0218afaf68db282ac4e820b23b5b1c1763', theme: theme, size: "small", label: "items-per-page-input", class: "items-per-page-input", hideLabel: true, options: displayedItemsPerPageOptions, selectOnEnter: selectItemsPerPageOnEnter, value: itemsPerPageString, onIcChange: this.changeItemsPerPage, ref: (el) => (this.pageDropdownEl = el) }))), !hideRangeLabel &&
|
|
17541
18947
|
(rangeLabelType === "data" ? (hAsync("ic-typography", { class: {
|
|
17542
18948
|
["item-pagination-label"]: true,
|
|
17543
18949
|
}, variant: "label", "aria-live": "polite" }, this.upperBound === 0 && `0 ${lowerCaseItemLabel}s`, this.upperBound > 0 &&
|
|
17544
18950
|
`${this.lowerBound} - ${this.upperBound} of ${this.totalItems} ${lowerCaseItemLabel}${this.totalItems > 1 ? "s" : ""}`)) : (hAsync("ic-typography", { class: {
|
|
17545
18951
|
["page-pagination-label"]: true,
|
|
17546
|
-
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: '
|
|
18952
|
+
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: 'a369e23b36569d56fb21a9d906cffd1fc4506677', class: {
|
|
17547
18953
|
["pagination-controls"]: true,
|
|
17548
18954
|
["pagination-controls-wrap"]: this.paginationWrapped,
|
|
17549
|
-
} }, hAsync("div", { key: '
|
|
18955
|
+
} }, hAsync("div", { key: '42592cf99253511174cdf58c1c45aa866938cb81', class: "pagination-holder" }, hAsync("ic-pagination", { key: '1245ba4afba7145b900f3002c86b0182816095f5', type: type, pages: totalPages, label: pageLabel, ref: (el) => (this.paginationEl = el), currentPage: activePage, theme: theme, monochrome: monochrome })), showGoToPageControl && (hAsync("div", { key: 'c64b4070c8ad1edd19493afea38386d837430c61', class: "go-to-page-holder" }, hAsync("ic-typography", { key: '761515ad31928a7b4773c011c142f3e354765a1c', variant: "label", onClick: this.goToPageLabelClickHandler }, "Go to ", lowerCasePageLabel), hAsync("ic-tooltip", { key: '9617a664c7bd4f2fc81ac02a04d0b20cd005873d', label: this.inputError, target: `#${PAGE_INPUT_FIELD_ID}`, disableHover: true, disableClick: true, ref: (el) => (this.pageInputTooltipEl = el) }, hAsync("ic-text-field", { key: '4b6beea984a6fd9f7395f13acd3ba0d793bd39e7', theme: theme, type: "number", size: "small", label: PAGE_INPUT_FIELD_ID, class: PAGE_INPUT_FIELD_ID, id: PAGE_INPUT_FIELD_ID, hideLabel: true, onKeyDown: this.handleKeydown, onKeyUp: this.handleKeyUp, onInput: this.handleInputChange, max: totalPages, min: "1", validationInlineInternal: true, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: (el) => (this.pageInputEl = el) })), hAsync("ic-button", { key: 'e42c2462f64cc241cdd7e13c731bb453f09fe961', variant: "secondary", onClick: this.goToPage, size: "small", class: "go-to-page-button" }, "Go")))))));
|
|
17550
18956
|
}
|
|
17551
18957
|
get el() { return getElement(this); }
|
|
17552
18958
|
static get watchers() { return {
|
|
@@ -18007,7 +19413,7 @@ class PopoverMenu {
|
|
|
18007
19413
|
}; }
|
|
18008
19414
|
}
|
|
18009
19415
|
|
|
18010
|
-
const icRadioGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-radio-button-input-field-label);--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle\n );--ic-input-validation-status-text-color:var(--ic-radio-button-state-text);--ic-input-validation-error:var(--ic-radio-button-state-icon-error)}ic-input-label.error{--ic-input-label-text-color:var(--ic-radio-button-input-field-label-error)}ic-input-label.disabled{--ic-input-label-text-color:var(\n --ic-radio-button-input-field-label-disabled\n );--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle-disabled\n )}ic-input-validation{margin-top:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-validation{margin-top:calc(var(--ic-space-sm) / 2)}ic-input-label:not(.with-helper) .ic-typography-label,ic-input-label .helpertext{margin-bottom:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-radio-group-small) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) / 2)}ic-input-label .helpertext{display:block}:host .radio-buttons-container{display:flex;flex-direction:column;gap:var(--ic-space-xxs)}:host(.ic-radio-group-small) .radio-buttons-container{gap:var(--ic-space-xxxs)}:host .radio-buttons-container.horizontal{display:flex;flex-direction:row;gap:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-radio-group-small) .radio-buttons-container.horizontal{gap:var(--ic-space-xl)}";
|
|
19416
|
+
const icRadioGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-radio-button-input-field-label);--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle\n );--ic-input-validation-status-text-color:var(--ic-radio-button-state-text);--ic-input-validation-error:var(--ic-radio-button-state-icon-error)}ic-input-label.error{--ic-input-label-text-color:var(--ic-radio-button-input-field-label-error)}ic-input-label.disabled{--ic-input-label-text-color:var(\n --ic-radio-button-input-field-label-disabled\n );--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle-disabled\n )}ic-input-validation.show-validation{margin-top:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-validation.show-validation{margin-top:calc(var(--ic-space-sm) / 2)}ic-input-label:not(.with-helper) .ic-typography-label,ic-input-label .helpertext{margin-bottom:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-radio-group-small) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) / 2)}ic-input-label .helpertext{display:block}:host .radio-buttons-container{display:flex;flex-direction:column;gap:var(--ic-space-xxs)}:host(.ic-radio-group-small) .radio-buttons-container{gap:var(--ic-space-xxxs)}:host .radio-buttons-container.horizontal{display:flex;flex-direction:row;gap:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-radio-group-small) .radio-buttons-container.horizontal{gap:var(--ic-space-xl)}";
|
|
18011
19417
|
var IcRadioGroupStyle0 = icRadioGroupCss;
|
|
18012
19418
|
|
|
18013
19419
|
/**
|
|
@@ -18043,6 +19449,10 @@ class RadioGroup {
|
|
|
18043
19449
|
* The size of the radio group component.
|
|
18044
19450
|
*/
|
|
18045
19451
|
this.size = "medium";
|
|
19452
|
+
/**
|
|
19453
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
19454
|
+
*/
|
|
19455
|
+
this.validationAriaLive = "polite";
|
|
18046
19456
|
/**
|
|
18047
19457
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
|
18048
19458
|
*/
|
|
@@ -18236,17 +19646,20 @@ class RadioGroup {
|
|
|
18236
19646
|
}
|
|
18237
19647
|
}
|
|
18238
19648
|
render() {
|
|
18239
|
-
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationStatus, validationText, theme, } = this;
|
|
18240
|
-
|
|
19649
|
+
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationAriaLive, validationStatus, validationText, theme, } = this;
|
|
19650
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
19651
|
+
return (hAsync(Host, { key: '4ea2e0ca7614fb4ce6563ea146f86d72707a399a', onKeyDown: handleKeyDown, class: {
|
|
18241
19652
|
"ic-radio-group-small": size === "small",
|
|
18242
19653
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18243
|
-
} }, hAsync("fieldset", { key: '
|
|
19654
|
+
} }, hAsync("fieldset", { key: 'ebad7a878454455a15892bf53c43bdcb914b77c4', role: "radiogroup", id: this.name, "aria-required": `${required}` }, !hideLabel && (hAsync("legend", { key: 'aac1f37c7b1d4d5bc621bd3030dc9eef60417659' }, hAsync("ic-input-label", { key: 'fd04e3f74c89b633996eb22e60902e988a8ac8ef', class: {
|
|
18244
19655
|
[`${validationStatus}`]: true,
|
|
18245
19656
|
["disabled"]: !!disabled,
|
|
18246
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '
|
|
19657
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '66325d58018dff189c975e3e4fc01249b51b6b9f', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '6d2d332396c87b798d5d160bdb5977c0a8ad6751', class: {
|
|
18247
19658
|
"radio-buttons-container": true,
|
|
18248
19659
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
|
18249
|
-
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: '
|
|
19660
|
+
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: 'fb0a1b41503ba88ce9bda3c0bc8236ae0a7e3795' }))), hAsync("ic-input-validation", { key: 'f9f7c2bdffd83d705149f74fe2caad93e57dd85b', class: {
|
|
19661
|
+
"show-validation": showValidation,
|
|
19662
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
|
18250
19663
|
}
|
|
18251
19664
|
get el() { return getElement(this); }
|
|
18252
19665
|
static get watchers() { return {
|
|
@@ -18267,6 +19680,7 @@ class RadioGroup {
|
|
|
18267
19680
|
"orientation": [1],
|
|
18268
19681
|
"required": [4],
|
|
18269
19682
|
"size": [1],
|
|
19683
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
18270
19684
|
"validationStatus": [1, "validation-status"],
|
|
18271
19685
|
"validationText": [1, "validation-text"],
|
|
18272
19686
|
"theme": [1],
|
|
@@ -18281,7 +19695,7 @@ class RadioGroup {
|
|
|
18281
19695
|
}; }
|
|
18282
19696
|
}
|
|
18283
19697
|
|
|
18284
|
-
const icRadioOptionCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}ic-radio-option{display:flex;flex-direction:column;width:-moz-fit-content;width:fit-content}.additional-field-wrapper [slot=\"additional-field\"]{margin-top:calc(var(--ic-space-sm) / 2);margin-left:var(--ic-space-xl)}ic-radio-option.ic-radio-option-disabled,ic-radio-option.ic-radio-option-disabled .radio-label{--ic-typography-color:var(--ic-radio-button-text-option-disabled)}.container input:focus+span.checkmark,.container:hover input:focus+span.checkmark,.container:active input:focus+span.checkmark,:host(:focus) .container input:checked+span.checkmark{box-shadow:var(--ic-border-focus)}.container{display:grid;grid-template-columns:min-content auto;position:relative;cursor:pointer;align-items:center;margin:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs)}.container.disabled,.container.disabled input:disabled{cursor:default}.container input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-block;position:absolute;cursor:pointer;height:var(--ic-space-lg);width:var(--ic-space-lg);border-radius:50%;border:none}.checkmark{display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-radio-button-background-default);border:var(--ic-space-1px) solid var(--ic-radio-button-border-default);border-radius:50%;transition:var(--ic-easing-transition-fast);box-sizing:border-box}.container input:checked~.checkmark::after{display:inline-block}.container:hover input~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:var(--ic-border-width) solid var(--ic-radio-button-default-hover)}.container:hover input:checked~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:0.125rem solid var(--ic-radio-button-default-hover)}.container:hover:not(.disabled) input:checked~.checkmark::after{background-color:var(--ic-radio-button-default-hover)}.container:active input~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed);border:var(--ic-border-width) solid var(--ic-radio-button-default-pressed)}.container:active input:checked~.checkmark{border:0.125rem solid var(--ic-radio-button-default-pressed);box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed)}.container:active input:checked~.checkmark::after{background-color:var(--ic-radio-button-default-pressed)}.container input:checked~.checkmark{border:0.125rem solid var(--ic-radio-button-default-active)}.container input:checked:disabled~.checkmark{border:0.125rem solid var(--ic-radio-button-border-disabled)}.container input:disabled~.checkmark{border:var(--ic-border-width) dashed var(--ic-radio-button-border-disabled)}.container input:disabled~.checkmark::after{background:var(--ic-radio-button-disabled)}.container:hover input:disabled~.checkmark{box-shadow:none;border:0.125rem solid none}.container:active input:disabled~.checkmark::after{background-color:var(--ic-radio-button-disabled)}.container .checkmark::after{content:\"\";position:absolute;display:none;top:calc(50% - var(--ic-space-xs));left:calc(50% - var(--ic-space-xs));width:var(--ic-space-md);height:var(--ic-space-md);border-radius:50%;background:var(--ic-radio-button-default-active)}.radio-label{margin-left:var(--ic-space-md);--ic-typography-color:var(--ic-radio-button-text-option)}.additional-field-wrapper{margin-left:var(--ic-space-xs)}.branch-corner{color:var(--ic-radio-button-required-bar);height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-radio-button-required-bar);border-left:0.125rem solid var(--ic-radio-button-required-bar);margin-left:calc(-1 * var(--ic-space-1px))}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-
|
|
19698
|
+
const icRadioOptionCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}ic-radio-option{display:flex;flex-direction:column;width:-moz-fit-content;width:fit-content}.additional-field-wrapper [slot=\"additional-field\"]{margin-top:calc(var(--ic-space-sm) / 2);margin-left:var(--ic-space-xl)}ic-radio-option.ic-radio-option-disabled,ic-radio-option.ic-radio-option-disabled .radio-label{--ic-typography-color:var(--ic-radio-button-text-option-disabled)}.container input:focus+span.checkmark,.container:hover input:focus+span.checkmark,.container:active input:focus+span.checkmark,:host(:focus) .container input:checked+span.checkmark{box-shadow:var(--ic-border-focus)}.container{display:grid;grid-template-columns:min-content auto;position:relative;cursor:pointer;align-items:center;margin:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs)}.ic-radio-group-small .container{margin:0 0 0 var(--ic-space-xxs)}.container.disabled,.container.disabled input:disabled{cursor:default}.container input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-block;position:absolute;cursor:pointer;height:var(--ic-space-lg);width:var(--ic-space-lg);border-radius:50%;border:none}.ic-radio-group-small .container input{height:var(--ic-space-md);width:var(--ic-space-md)}.checkmark{display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-radio-button-background-default);border:var(--ic-space-1px) solid var(--ic-radio-button-border-default);border-radius:50%;transition:var(--ic-easing-transition-fast);box-sizing:border-box}.ic-radio-group-small .checkmark{height:var(--ic-space-md);width:var(--ic-space-md)}.container input:checked~.checkmark::after{display:inline-block}.container:hover input~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:var(--ic-border-width) solid var(--ic-radio-button-default-hover)}.container:hover input:checked~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:0.125rem solid var(--ic-radio-button-default-hover)}.container:hover:not(.disabled) input:checked~.checkmark::after{background-color:var(--ic-radio-button-default-hover)}.container:active input~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed);border:var(--ic-border-width) solid var(--ic-radio-button-default-pressed)}.container:active input:checked~.checkmark{border:0.125rem solid var(--ic-radio-button-default-pressed);box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed)}.ic-radio-group-small .container input:checked~.checkmark{border-width:var(--ic-space-1px)}.container:active input:checked~.checkmark::after{background-color:var(--ic-radio-button-default-pressed)}.container input:checked~.checkmark{border:0.125rem solid var(--ic-radio-button-default-active)}.container input:checked:disabled~.checkmark{border:0.125rem solid var(--ic-radio-button-border-disabled)}.container input:disabled~.checkmark{border:var(--ic-border-width) dashed var(--ic-radio-button-border-disabled)}.container input:disabled~.checkmark::after{background:var(--ic-radio-button-disabled)}.container:hover input:disabled~.checkmark{box-shadow:none;border:0.125rem solid none}.container:active input:disabled~.checkmark::after{background-color:var(--ic-radio-button-disabled)}.container .checkmark::after{content:\"\";position:absolute;display:none;top:calc(50% - var(--ic-space-xs));left:calc(50% - var(--ic-space-xs));width:var(--ic-space-md);height:var(--ic-space-md);border-radius:50%;background:var(--ic-radio-button-default-active)}.ic-radio-group-small .container .checkmark::after{top:50%;left:50%;width:0.625rem;height:0.625rem;border-radius:50%;background:var(--ic-radio-button-default-active);transform:translate(-50%, -50%)}.radio-label{margin-left:var(--ic-space-md);--ic-typography-color:var(--ic-radio-button-text-option)}.ic-radio-group-small .radio-label{margin-left:var(--ic-space-xs)}.additional-field-wrapper{margin-left:var(--ic-space-xs)}.branch-corner{color:var(--ic-radio-button-required-bar);height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-radio-button-required-bar);border-left:0.125rem solid var(--ic-radio-button-required-bar);margin-left:calc(-1 * var(--ic-space-1px))}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}.ic-radio-group-small .dynamic-container{margin-left:12px}.dynamic-container.hidden{display:none}.dynamic-text{color:var(--ic-radio-button-required-text);--ic-typography-color:var(--ic-radio-button-required-text);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}@media (max-width: 576px){ic-text-field{--input-width:100%}}@media (forced-colors: active){.container input:checked~.checkmark,.container:active input:checked~.checkmark{border-color:Highlight}.container input:checked~.checkmark::after,.container:active input:checked~.checkmark::after{background-color:Highlight}.container input:disabled~.checkmark,.container input:checked:disabled~.checkmark{border-color:GrayText}.container input:disabled~.checkmark::after,.container:active input:disabled~.checkmark::after{background-color:GrayText}}input[type=\"radio\"]:dir(rtl){right:0}.radio-label:dir(rtl){padding-right:var(--ic-space-sm);padding-left:0}.branch-corner:dir(rtl){border-radius:0 0 0.188rem;border-right:0.125rem solid var(--ic-action-default);border-left:none}.dynamic-container:dir(rtl){margin:var(--ic-space-xxxs) var(--ic-space-sm) var(--ic-space-xxs) 0}";
|
|
18285
19699
|
var IcRadioOptionStyle0 = icRadioOptionCss;
|
|
18286
19700
|
|
|
18287
19701
|
const ADDITIONAL_FIELD = "additional-field";
|
|
@@ -19286,6 +20700,10 @@ class Select {
|
|
|
19286
20700
|
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
|
19287
20701
|
*/
|
|
19288
20702
|
this.theme = "inherit";
|
|
20703
|
+
/**
|
|
20704
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
20705
|
+
*/
|
|
20706
|
+
this.validationAriaLive = "polite";
|
|
19289
20707
|
/**
|
|
19290
20708
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
|
19291
20709
|
*/
|
|
@@ -19940,12 +21358,13 @@ class Select {
|
|
|
19940
21358
|
}
|
|
19941
21359
|
render() {
|
|
19942
21360
|
var _a;
|
|
19943
|
-
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, theme, hiddenInputValue, open, inputId, searchableSelectInputValue, loading, value, emptyOptionListText, uniqueOptions, selectOnEnter, form, inheritedAttributes, ariaActiveDescendant, hasTimedOut, noOptions, filteredOptions, clearButtonFocused, } = this;
|
|
21361
|
+
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationAriaLive, validationStatus, validationText, currValue, theme, hiddenInputValue, open, inputId, searchableSelectInputValue, loading, value, emptyOptionListText, uniqueOptions, selectOnEnter, form, inheritedAttributes, ariaActiveDescendant, hasTimedOut, noOptions, filteredOptions, clearButtonFocused, } = this;
|
|
19944
21362
|
// HTML inputs only accept 'string' for their value
|
|
19945
21363
|
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
|
19946
21364
|
renderHiddenInput$1(this.el, searchable ? hiddenInputValue : currValue, name || inputId, disabled);
|
|
19947
21365
|
const invalid = `${validationStatus === IcInformationStatus$1.Error}`;
|
|
19948
|
-
const
|
|
21366
|
+
const showValidation = hasValidationStatus(validationStatus, !!disabled);
|
|
21367
|
+
const describedBy = getInputDescribedByText$1(this.el, inputId, helperText !== "", showValidation).trim();
|
|
19949
21368
|
const valueLabelString = multiple
|
|
19950
21369
|
? this.getMultipleOptionsString(currValue)
|
|
19951
21370
|
: this.getLabelFromValue(currValue);
|
|
@@ -19953,18 +21372,18 @@ class Select {
|
|
|
19953
21372
|
(searchable
|
|
19954
21373
|
? !!searchableSelectInputValue
|
|
19955
21374
|
: !!currValue && !loading && showClearButton);
|
|
19956
|
-
return (hAsync(Host, { key: '
|
|
21375
|
+
return (hAsync(Host, { key: 'd4771b458b86fdf5e8fd7242b0faa34c641dc1fd', class: {
|
|
19957
21376
|
"ic-select-disabled": disabled,
|
|
19958
21377
|
"ic-select-searchable": searchable,
|
|
19959
21378
|
[`ic-select-${size}`]: size !== "medium",
|
|
19960
21379
|
"ic-select-full-width": fullWidth,
|
|
19961
21380
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19962
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
|
21381
|
+
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '085e9b190479932161c56015ed340dda3e94bd20', readonly: readonly }, !hideLabel && (hAsync("ic-input-label", { key: '7ed1f56a30c8ba83b5c5f21291221d8910310fbd', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly }, hAsync("slot", { key: '1d3aac656b887c2a553f425e310d3be2fcc0a570', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: '7f6973e971e7b892717e72d8420346d8951751ca', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, isSlotUsed$1(this.el, "icon") &&
|
|
19963
21382
|
!disabled &&
|
|
19964
|
-
(!readonly || !!value) && (hAsync("span", { key: '
|
|
21383
|
+
(!readonly || !!value) && (hAsync("span", { key: '208359e9a4b4c92823fa924ce0e7b0e5419c0cef', slot: "left-icon", class: {
|
|
19965
21384
|
readonly,
|
|
19966
21385
|
"has-value": !!value,
|
|
19967
|
-
} }, hAsync("slot", { key: '
|
|
21386
|
+
} }, hAsync("slot", { key: '462c17f5f746f3d54eaff493c990e6527ed7c381', name: "icon" }))), readonly ? (hAsync("ic-typography", null, hAsync("p", null, valueLabelString))) : isMobileOrTablet() && !multiple ? (hAsync("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: form }, inheritedAttributes), hAsync("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => option.children ? (hAsync("optgroup", { label: option.label }, option.children.map((child) => this.renderNativeOption(child)))) : (this.renderNativeOption(option))))) : searchable ? (hAsync("div", { class: "searchable-select-container" }, hAsync("input", { class: {
|
|
19968
21387
|
"value-text": true,
|
|
19969
21388
|
"select-input": true,
|
|
19970
21389
|
"with-clear-button": !!searchableSelectInputValue,
|
|
@@ -19985,13 +21404,15 @@ class Select {
|
|
|
19985
21404
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
|
19986
21405
|
"expand-icon": true,
|
|
19987
21406
|
"expand-icon-open": open,
|
|
19988
|
-
}, 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: '
|
|
21407
|
+
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (hAsync("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: '4daeee28961203c0b190687229c0f9f2b4a1d66e', class: {
|
|
19989
21408
|
"no-results": loading ||
|
|
19990
21409
|
hasTimedOut ||
|
|
19991
21410
|
((_a = noOptions === null || noOptions === void 0 ? void 0 : noOptions[0]) === null || _a === void 0 ? void 0 : _a.label) === emptyOptionListText,
|
|
19992
21411
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
|
19993
21412
|
? this.searchableSelectElement
|
|
19994
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple, multiSelect: multiple ? true : false, searchableSelect: searchable ? true : false })), multiple && (hAsync("div", { key: '
|
|
21413
|
+
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple, multiSelect: multiple ? true : false, searchableSelect: searchable ? true : false })), multiple && (hAsync("div", { key: '87993e273df521157bb8101f5f96639b0cb3503b', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hAsync("ic-input-validation", { key: 'c0248fb27e0d97f885c8227ffda4534ab65561ec', class: {
|
|
21414
|
+
"menu-open": open,
|
|
21415
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
|
|
19995
21416
|
}
|
|
19996
21417
|
static get delegatesFocus() { return true; }
|
|
19997
21418
|
get el() { return getElement(this); }
|
|
@@ -20032,6 +21453,7 @@ class Select {
|
|
|
20032
21453
|
"size": [1],
|
|
20033
21454
|
"timeout": [2],
|
|
20034
21455
|
"theme": [1],
|
|
21456
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
20035
21457
|
"validationStatus": [1, "validation-status"],
|
|
20036
21458
|
"validationText": [1, "validation-text"],
|
|
20037
21459
|
"loading": [1028],
|
|
@@ -20765,6 +22187,19 @@ class Step {
|
|
|
20765
22187
|
* @internal If `true`, and a compact stepper is being used, the current step will be the only step in view.
|
|
20766
22188
|
*/
|
|
20767
22189
|
this.current = false;
|
|
22190
|
+
/**
|
|
22191
|
+
* Words within the component that can be replaced to translate the component into a different language
|
|
22192
|
+
*/
|
|
22193
|
+
this.icI18n = {
|
|
22194
|
+
next: "Next",
|
|
22195
|
+
step: "Step",
|
|
22196
|
+
of: "of",
|
|
22197
|
+
lastStep: "Last step",
|
|
22198
|
+
completed: "Completed",
|
|
22199
|
+
notRequired: "Not required",
|
|
22200
|
+
required: "Required",
|
|
22201
|
+
optional: "Optional",
|
|
22202
|
+
};
|
|
20768
22203
|
/**
|
|
20769
22204
|
* @internal Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
|
20770
22205
|
*/
|
|
@@ -20784,96 +22219,95 @@ class Step {
|
|
|
20784
22219
|
}
|
|
20785
22220
|
render() {
|
|
20786
22221
|
var _a, _b;
|
|
22222
|
+
const { compactStepStyling, current, heading, icI18n, lastStep, lastStepNum, nextStepHeading, progress, status, stepNum, subheading, theme, type, variant, } = this;
|
|
20787
22223
|
// ARIA LABEL
|
|
20788
22224
|
let ariaLabel = "";
|
|
20789
|
-
if (
|
|
20790
|
-
ariaLabel =
|
|
22225
|
+
if (type === "completed") {
|
|
22226
|
+
ariaLabel = `. ${icI18n.completed}`;
|
|
20791
22227
|
}
|
|
20792
|
-
else if (
|
|
20793
|
-
ariaLabel =
|
|
22228
|
+
else if (type === "disabled") {
|
|
22229
|
+
ariaLabel = `. ${icI18n.notRequired}`;
|
|
20794
22230
|
}
|
|
20795
|
-
else if (
|
|
20796
|
-
ariaLabel =
|
|
22231
|
+
else if (status === "required") {
|
|
22232
|
+
ariaLabel = `. ${icI18n.required}`;
|
|
20797
22233
|
}
|
|
20798
|
-
else if (
|
|
20799
|
-
ariaLabel =
|
|
22234
|
+
else if (status === "optional") {
|
|
22235
|
+
ariaLabel = `. ${icI18n.optional}`;
|
|
20800
22236
|
}
|
|
20801
22237
|
// STEP STATUS
|
|
20802
22238
|
let stepStatus;
|
|
20803
|
-
if (
|
|
20804
|
-
stepStatus =
|
|
22239
|
+
if (status && isPropDefined$1(status)) {
|
|
22240
|
+
stepStatus = status[0].toUpperCase() + status.slice(1);
|
|
20805
22241
|
}
|
|
20806
22242
|
// STEP TYPE
|
|
20807
22243
|
let stepType;
|
|
20808
|
-
if (
|
|
20809
|
-
stepType =
|
|
22244
|
+
if (type === "disabled" || compactStepStyling === "disabled") {
|
|
22245
|
+
stepType = icI18n.notRequired;
|
|
20810
22246
|
}
|
|
20811
|
-
else if (
|
|
20812
|
-
stepType =
|
|
22247
|
+
else if (compactStepStyling === "completed") {
|
|
22248
|
+
stepType = icI18n.completed;
|
|
20813
22249
|
}
|
|
20814
22250
|
// STATUS ICON FOR COMPACT STEP
|
|
20815
22251
|
let statusIcon;
|
|
20816
|
-
if (
|
|
20817
|
-
statusIcon = (hAsync("span", { key: '
|
|
22252
|
+
if (type === "completed" || compactStepStyling === "completed") {
|
|
22253
|
+
statusIcon = (hAsync("span", { key: '8c76808f7d75f2d9ae6293209ef86bae0e79716d', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
|
20818
22254
|
}
|
|
20819
|
-
else if (
|
|
20820
|
-
|
|
20821
|
-
statusIcon = (hAsync("span", { key: '6f4911859d103732d5f2133a26dc4e05cd6a3d22', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
22255
|
+
else if (type === "disabled" || compactStepStyling === "disabled") {
|
|
22256
|
+
statusIcon = (hAsync("span", { key: '16ba6a8045db3f5694f7546a5458b6f91261d814', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
20822
22257
|
}
|
|
20823
22258
|
// COMPACT STEP COMPONENT
|
|
20824
|
-
const compactStep = (hAsync("div", { key: '
|
|
22259
|
+
const compactStep = (hAsync("div", { key: '914fd4dade3b6900052b9ac08f665610f10ee467', class: {
|
|
20825
22260
|
["step"]: true,
|
|
20826
|
-
["current"]: !!
|
|
20827
|
-
[`compact-step-${
|
|
20828
|
-
["disabled"]:
|
|
20829
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
|
22261
|
+
["current"]: !!current,
|
|
22262
|
+
[`compact-step-${compactStepStyling}`]: !!compactStepStyling,
|
|
22263
|
+
["disabled"]: type === "disabled" || compactStepStyling === "disabled",
|
|
22264
|
+
} }, hAsync("ic-loading-indicator", { key: '4679914758455a299e8bab80e4640fa3fcdb6a18', class: {
|
|
20830
22265
|
"compact-step-progress-indicator": true,
|
|
20831
|
-
"not-required":
|
|
20832
|
-
|
|
20833
|
-
|
|
20834
|
-
|
|
20835
|
-
this.type === "disabled" ||
|
|
22266
|
+
"not-required": type === "disabled" || compactStepStyling === "disabled",
|
|
22267
|
+
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), hAsync("div", { key: '7666cfe7acb4966bcb1baa07f457dba6b21120b5', class: "heading-area" }, hAsync("ic-typography", { key: '247088bc17d4ed998e5d04150e4a2e0c0a0185b2', variant: "h4", class: "heading" }, heading), hAsync("div", { key: 'bf63017723f6db8ccbb27583a2f04a548c596ea9', class: "info-line" }, hAsync("ic-typography", { key: '621c958bc31df3631b808a8055d964d71ba97388', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, hAsync("span", { key: 'e08ea47dd3a11327ca6ee4b8e0d75f292c8c812f', class: "visually-hidden" }, " steps")), (this.subheading ||
|
|
22268
|
+
type === "completed" ||
|
|
22269
|
+
type === "disabled" ||
|
|
20836
22270
|
(this.variant === "compact" &&
|
|
20837
|
-
!!
|
|
20838
|
-
|
|
20839
|
-
!!
|
|
20840
|
-
?
|
|
20841
|
-
:
|
|
20842
|
-
(
|
|
20843
|
-
|
|
20844
|
-
|
|
20845
|
-
(
|
|
20846
|
-
|
|
22271
|
+
!!compactStepStyling &&
|
|
22272
|
+
compactStepStyling !== "active") ||
|
|
22273
|
+
!!status) && (hAsync("div", { key: '7614152c3bfad5b936e206e3ab9c295763f2569c', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (hAsync("ic-typography", { key: '8c1e5c2b326a40237d5e3ef5ed1bcdec7c8f8132', variant: "caption" }, subheading !== null && isPropDefined$1(subheading)
|
|
22274
|
+
? subheading
|
|
22275
|
+
: type === "disabled" ||
|
|
22276
|
+
(variant === "compact" &&
|
|
22277
|
+
compactStepStyling === "disabled") ||
|
|
22278
|
+
type === "completed" ||
|
|
22279
|
+
(variant === "compact" &&
|
|
22280
|
+
compactStepStyling === "completed")
|
|
20847
22281
|
? stepType
|
|
20848
|
-
:
|
|
22282
|
+
: status && stepStatus))))), lastStep ? (hAsync("ic-typography", { variant: "subtitle-small", class: "next-step" }, icI18n.lastStep)) : (isPropDefined$1(nextStepHeading) && (hAsync("ic-typography", { variant: "subtitle-small", class: "next-step" }, icI18n.next, hAsync("span", { class: "visually-hidden" }, " ", icI18n.step), ":", " ", this.nextStepHeading))))));
|
|
20849
22283
|
// ICON FOR DEFAULT STEP
|
|
20850
22284
|
let icon;
|
|
20851
|
-
if (
|
|
20852
|
-
icon = (hAsync("ic-typography", { key: '
|
|
22285
|
+
if (type !== "completed") {
|
|
22286
|
+
icon = (hAsync("ic-typography", { key: 'ffa20478aed6b35a92c1cc1f16ebcebb97492553', variant: "subtitle-small" }, hAsync("span", { key: 'ed4a75d2aab01948cd6417c697a0c150d9f1d262', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
|
20853
22287
|
}
|
|
20854
22288
|
else {
|
|
20855
|
-
icon = (hAsync("div", { key: '
|
|
22289
|
+
icon = (hAsync("div", { key: 'b50a1c3094e7f1328d0f86ab10892afcd8a3c41a', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: '8c277146b4a653097a7e8ec5ceff6112e667ac38', class: "check-icon", innerHTML: checkIcon })));
|
|
20856
22290
|
}
|
|
20857
22291
|
// STEP CONNECT FOR DEFAULT STEP
|
|
20858
|
-
const partialBar =
|
|
20859
|
-
const finalStep = !
|
|
22292
|
+
const partialBar = type === "current" && (hAsync("div", { key: '5bc99a6129f3dfffc9b57175a2a18fd589a07557', class: "step-connect-inner" }));
|
|
22293
|
+
const finalStep = !lastStep && (hAsync("div", { key: 'e16d56443005483e87a58164452d57fe93ccbaca', class: {
|
|
20860
22294
|
["step-connect"]: true,
|
|
20861
22295
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
|
20862
22296
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
20863
22297
|
} }, partialBar));
|
|
20864
22298
|
// DEFAULT STEP COMPONENT
|
|
20865
|
-
const defaultStep = (hAsync("div", { key: '
|
|
22299
|
+
const defaultStep = (hAsync("div", { key: 'd50917250a7ce0866f877bf7b957a45789059240', class: {
|
|
20866
22300
|
["step"]: true,
|
|
20867
|
-
[`${
|
|
20868
|
-
} }, hAsync("div", { key: '
|
|
20869
|
-
?
|
|
22301
|
+
[`${type}`]: true,
|
|
22302
|
+
} }, hAsync("div", { key: 'c90e98efccf917d2327958e5bd0a722561e3e661', class: "step-top" }, hAsync("div", { key: '2ae403e7604d97633da0f5df80665626312e6d98', class: "step-icon" }, icon), finalStep), (heading || subheading || status) && (hAsync("div", { key: '0b028ca96dd4ba62da9a77327575af1178b95e87', class: "heading-area" }, heading && (hAsync("ic-typography", { key: '19127034e751855cf6b817d4afe4e4b6e1542321', variant: "subtitle-large", class: "heading" }, heading)), heading && (subheading || status) && (hAsync("ic-typography", { key: '1faa4f2dfc841105d9989e442360c44d0b162f4d', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined$1(subheading)
|
|
22303
|
+
? subheading
|
|
20870
22304
|
: stepStatus))))));
|
|
20871
|
-
return (hAsync(Host, { key: '
|
|
22305
|
+
return (hAsync(Host, { key: '05bb1106d2259fca749c197e79caa408dc237326', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
|
|
20872
22306
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
|
20873
22307
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
20874
|
-
[`ic-step-${
|
|
20875
|
-
[`ic-theme-${
|
|
20876
|
-
} },
|
|
22308
|
+
[`ic-step-${variant}`]: true,
|
|
22309
|
+
[`ic-theme-${theme}`]: this.theme !== "inherit",
|
|
22310
|
+
} }, variant === "compact" ? compactStep : defaultStep));
|
|
20877
22311
|
}
|
|
20878
22312
|
get el() { return getElement(this); }
|
|
20879
22313
|
static get watchers() { return {
|
|
@@ -20886,6 +22320,7 @@ class Step {
|
|
|
20886
22320
|
"$members$": {
|
|
20887
22321
|
"compactStepStyling": [1, "compact-step-styling"],
|
|
20888
22322
|
"current": [1028],
|
|
22323
|
+
"icI18n": [16],
|
|
20889
22324
|
"lastStep": [4, "last-step"],
|
|
20890
22325
|
"lastStepNum": [2, "last-step-num"],
|
|
20891
22326
|
"nextStepHeading": [1, "next-step-heading"],
|
|
@@ -20933,6 +22368,19 @@ class Stepper {
|
|
|
20933
22368
|
* If `true`, the information about each step, i.e. step title, step subtitle and step status, will be hidden on all default steps. The information about each step will still be visible in the compact variant of the stepper.
|
|
20934
22369
|
*/
|
|
20935
22370
|
this.hideStepInfo = false;
|
|
22371
|
+
/**
|
|
22372
|
+
* Provide alternative values for text in all child steps. For the purpose of translating the application into other languages.
|
|
22373
|
+
*/
|
|
22374
|
+
this.icI18n = {
|
|
22375
|
+
next: "Next",
|
|
22376
|
+
step: "Step",
|
|
22377
|
+
of: "of",
|
|
22378
|
+
lastStep: "Last step",
|
|
22379
|
+
completed: "Completed",
|
|
22380
|
+
notRequired: "Not required",
|
|
22381
|
+
required: "Required",
|
|
22382
|
+
optional: "Optional",
|
|
22383
|
+
};
|
|
20936
22384
|
/**
|
|
20937
22385
|
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
|
20938
22386
|
*/
|
|
@@ -20978,6 +22426,10 @@ class Stepper {
|
|
|
20978
22426
|
this.initialiseStepStates = () => {
|
|
20979
22427
|
this.steps.forEach((step, index) => {
|
|
20980
22428
|
var _a, _b, _c;
|
|
22429
|
+
// Set language
|
|
22430
|
+
if (this.icI18n !== undefined) {
|
|
22431
|
+
step.icI18n = this.icI18n;
|
|
22432
|
+
}
|
|
20981
22433
|
// Set variant
|
|
20982
22434
|
step.variant = this.variant;
|
|
20983
22435
|
// Assign stepNum to each step
|
|
@@ -21149,11 +22601,11 @@ class Stepper {
|
|
|
21149
22601
|
checkResizeObserver$1(this.runResizeObserver);
|
|
21150
22602
|
}
|
|
21151
22603
|
render() {
|
|
21152
|
-
return (hAsync(Host, { key: '
|
|
22604
|
+
return (hAsync(Host, { key: 'a5ec9b8d778ba54adf1b3034455e64df0a51fd7c', class: {
|
|
21153
22605
|
[`ic-stepper-${this.variant}`]: true,
|
|
21154
22606
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
|
21155
22607
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
21156
|
-
} }, hAsync("ul", { key: '
|
|
22608
|
+
} }, hAsync("ul", { key: '4140f5cb20325ee4c5c98c855c4b822a448294e8', class: "step-item-list" }, hAsync("slot", { key: 'cda080de502e7760bb3f9a1519f0261b554b0b77' }))));
|
|
21157
22609
|
}
|
|
21158
22610
|
get el() { return getElement(this); }
|
|
21159
22611
|
static get watchers() { return {
|
|
@@ -21169,6 +22621,7 @@ class Stepper {
|
|
|
21169
22621
|
"aligned": [1],
|
|
21170
22622
|
"connectorWidth": [2, "connector-width"],
|
|
21171
22623
|
"hideStepInfo": [4, "hide-step-info"],
|
|
22624
|
+
"icI18n": [16],
|
|
21172
22625
|
"theme": [1],
|
|
21173
22626
|
"variant": [1025],
|
|
21174
22627
|
"alignedFullWidth": [32],
|
|
@@ -22168,7 +23621,7 @@ class TableOfContents {
|
|
|
22168
23621
|
}; }
|
|
22169
23622
|
}
|
|
22170
23623
|
|
|
22171
|
-
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}.
|
|
23624
|
+
const icTextFieldCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-helpertext-padding:var(--ic-space-xs);--border-color:var(--ic-text-field-border-neutral);--border-color-hover:var(--ic-text-field-border-neutral-hover);--border-color-pressed:var(--ic-text-field-border-neutral-pressed);--border-color-disabled:var(--ic-text-field-border-disabled);--border-color-error:var(--ic-text-field-border-error);--border-color-error-hover:var(--ic-text-field-border-error-hover);--border-color-error-pressed:var(--ic-text-field-border-error-pressed);--border-color-success:var(--ic-text-field-border-success);--border-color-success-hover:var(--ic-text-field-border-success-hover);--border-color-success-pressed:var(--ic-text-field-border-success-pressed);--border-color-warning:var(--ic-text-field-border-warning);--border-color-warning-hover:var(--ic-text-field-border-warning-hover);--border-color-warning-pressed:var(--ic-text-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-text-field-label);--ic-input-label-helper-text-color:var(--ic-text-field-subtitle);--ic-input-validation-status-text-color:var(--ic-text-field-state-text);--ic-input-validation-error:var(--ic-text-field-state-icon-error);--ic-input-validation-warning-icon-color:var(\n --ic-text-field-state-icon-warning\n );--ic-input-validation-success-icon-color:var(\n --ic-text-field-state-icon-success\n );--ic-input-component-container-success-icon-inline-color:var(\n --ic-text-field-state-icon-success\n )}:host(.ic-text-field-disabled){--ic-input-label-text-color:var(--ic-text-field-label-disabled);--ic-input-label-helper-text-color:var(--ic-text-field-subtitle-disabled);--text-field-placeholder-color:var(\n --ic-text-field-text-area-placeholder-text-disabled\n )}:host(.ic-text-field-full-width){width:100%}::-moz-placeholder{color:var(\n --text-field-placeholder-color,\n var(--ic-text-field-placeholder-text)\n );opacity:1}::placeholder{color:var(\n --text-field-placeholder-color,\n var(--ic-text-field-placeholder-text)\n );opacity:1}input,textarea{border:0;border-radius:var(--ic-border-radius);color:var(--text-field-text-color, var(--ic-text-field-text));background-color:var(--input-bg-color, var(--ic-text-field-background));line-height:1.5rem;letter-spacing:0.005rem;width:100%;padding-right:var(--ic-space-xs);padding-left:var(--ic-space-xs);caret-color:var(\n --text-field-typing-cursor,\n var(--ic-text-field-typing-cursor)\n )}textarea{min-height:var(--ic-space-lg);resize:vertical;padding-top:0.375rem}input:focus,textarea:focus{border:0;outline:0}input:disabled,textarea:disabled{color:var(\n --text-field-disabled-text-color,\n var(--ic-text-field-text-disabled)\n )}input.readonly,textarea.readonly{color:var(--ic-text-field-read-only-input-text-internal);background:transparent}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=\"number\"]{-moz-appearance:textfield}textarea.no-resize{resize:none}.char-count-text{--ic-typography-color:var(--ic-text-field-character-limit);padding-right:var(--ic-space-xxxs)}:host(.ic-text-field-disabled) .char-count-text{--ic-typography-color:var(--ic-text-field-character-limit-disabled)}.no-left-pad{padding-left:0}::slotted([slot=\"icon\"]){fill:var(--ic-text-field-text-disabled)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-text-field-input-internal-icon)}.char-count{margin-right:calc(-1 * var(--ic-space-xxxs))}.remaining-char-count-desc{position:absolute;left:-9999px}.show-validation{margin-top:var(--ic-space-xs)}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration,input[type=\"search\"]::-webkit-search-results-button,input[type=\"search\"]::-webkit-search-results-decoration{display:none}input[type=\"search\"].truncate-value{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (forced-colors: active){input.readonly,textarea.readonly{color:canvastext}.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}";
|
|
22172
23625
|
var IcTextFieldStyle0 = icTextFieldCss;
|
|
22173
23626
|
|
|
22174
23627
|
let inputIds$1 = 0;
|
|
@@ -22196,10 +23649,6 @@ class TextField {
|
|
|
22196
23649
|
this.maxValueExceeded = false;
|
|
22197
23650
|
this.minValueUnattained = false;
|
|
22198
23651
|
this.isFocussed = false;
|
|
22199
|
-
/**
|
|
22200
|
-
* 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"`.
|
|
22201
|
-
*/
|
|
22202
|
-
this.validationAriaLive = "default";
|
|
22203
23652
|
/**
|
|
22204
23653
|
* The automatic capitalisation of the text value as it is entered/edited by the user.
|
|
22205
23654
|
* Available options: "off", "none", "on", "sentences", "words", "characters".
|
|
@@ -22322,6 +23771,10 @@ class TextField {
|
|
|
22322
23771
|
* The type of control to display. The default type is text.
|
|
22323
23772
|
*/
|
|
22324
23773
|
this.type = "text";
|
|
23774
|
+
/**
|
|
23775
|
+
* The value of the `aria-live` attribute on the validation message. When set to "default", the `aria-live` value will be handled automatically, e.g. "assertive" for `validation-status="error"`.
|
|
23776
|
+
*/
|
|
23777
|
+
this.validationAriaLive = "default";
|
|
22325
23778
|
/**
|
|
22326
23779
|
* If `true`, the icon in input control will be displayed - only applies when validationStatus ='success'.
|
|
22327
23780
|
*/
|
|
@@ -22568,12 +24021,12 @@ class TextField {
|
|
|
22568
24021
|
"no-resize": resize === false || !!readonly,
|
|
22569
24022
|
"no-left-pad": !showLeftIcon && !!readonly,
|
|
22570
24023
|
readonly: !!readonly,
|
|
22571
|
-
}, 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: '
|
|
24024
|
+
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed$1(el, "clear-button") && (hAsync("slot", { key: 'e02f69a6fd4c654b7f3b5f1593f7a29c7412d10f', name: "clear-button" })), isSlotUsed$1(el, "search-submit-button") && (hAsync("slot", { key: '2e32b1afd58a382a804a356537489efa523009ce', name: "search-submit-button" }))), isSlotUsed$1(el, "menu") && hAsync("slot", { key: '1cbac8ded359309907e51f16033b03d266eb8828', name: "menu" }), hAsync("ic-input-validation", { key: '55a5e1762111cb2715679f6263719924b098acd4', class: { "show-validation": this.showValidationMargin() }, status: this.hasStatus(currentStatus) === false ||
|
|
22572
24025
|
(currentStatus === IcInformationStatus$1.Success &&
|
|
22573
24026
|
validationInline) ||
|
|
22574
24027
|
validationInlineInternal
|
|
22575
24028
|
? ""
|
|
22576
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '
|
|
24029
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: 'ce76d39f556c5cf5ab0e97abb93e243cb0153f54', slot: "validation-message-adornment" }, !hideCharCount && (hAsync("ic-typography", { key: '49a4898f4b336ca7e1ced4550a9494c5505a78a6', variant: "caption", class: "char-count-text" }, hAsync("span", { key: '2b714b46208c477500494f1f43d919f972501f9b', class: "char-count" }, numChars, "/", maxNumChars))), hAsync("span", { key: '3559afb42041b8bb3080ae5bd015bc76a9af3b2d', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), hAsync("span", { key: '9f98def180554d1dc13e05d6cefac85fd91638bb', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))));
|
|
22577
24030
|
}
|
|
22578
24031
|
get el() { return getElement(this); }
|
|
22579
24032
|
static get watchers() { return {
|
|
@@ -22590,7 +24043,6 @@ class TextField {
|
|
|
22590
24043
|
"ariaAutocomplete": [1, "aria-autocomplete"],
|
|
22591
24044
|
"ariaExpanded": [1, "aria-expanded"],
|
|
22592
24045
|
"ariaOwns": [1, "aria-owns"],
|
|
22593
|
-
"validationAriaLive": [1, "validation-aria-live"],
|
|
22594
24046
|
"autocapitalize": [1],
|
|
22595
24047
|
"autocomplete": [1],
|
|
22596
24048
|
"autocorrect": [1],
|
|
@@ -22624,6 +24076,7 @@ class TextField {
|
|
|
22624
24076
|
"theme": [1],
|
|
22625
24077
|
"truncateValue": [4, "truncate-value"],
|
|
22626
24078
|
"type": [1],
|
|
24079
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
22627
24080
|
"validationInline": [4, "validation-inline"],
|
|
22628
24081
|
"validationInlineInternal": [4, "validation-inline-internal"],
|
|
22629
24082
|
"validationStatus": [1, "validation-status"],
|
|
@@ -22734,7 +24187,7 @@ class Theme {
|
|
|
22734
24187
|
|
|
22735
24188
|
var Clock = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>clock-outline</title><path d="M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z" /></svg>`;
|
|
22736
24189
|
|
|
22737
|
-
const icTimeInputCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--ic-input-label-helpertext-padding:var(--ic-space-xs);--input-bg-color:var(--ic-time-picker-field-background);--ic-input-label-text-color:var(--ic-time-picker-label);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle);--border-color:var(--ic-time-picker-time-field-border-default);--border-color-disabled:var(--ic-time-picker-border-disabled);--border-color-hover:var(--ic-time-picker-time-field-border-hover);--border-color-pressed:var(--ic-time-picker-time-field-border-pressed);--border-error-color:var(--ic-time-picker-border-error);--border-error-color-hover:var(--ic-time-picker-border-error-hover);--border-error-color-pressed:var(--ic-time-picker-border-error-pressed);--border-success-color:var(--ic-time-picker-border-success);--border-success-color-hover:var(--ic-time-picker-border-success-hover);--border-success-color-pressed:var(--ic-time-picker-border-success-pressed);--border-warning-color:var(--ic-time-picker-border-warning);--border-warning-color-hover:var(--ic-time-picker-border-warning-hover);--border-warning-color-pressed:var(--ic-time-picker-border-warning-pressed);--input-width:calc((4 * var(--ic-space-xxl)) + var(--ic-space-xxs))}:host(.ic-time-input-disabled){--ic-input-label-text-color:var(--ic-time-picker-label-disabled);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle-disabled)}:host(.ic-time-input-disabled) input{color:var(--ic-time-picker-time-text-disabled)}:host(.ic-time-input-large){--input-width:calc(\n (4 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-lg)\n )}:host(.ic-time-input-small){--input-width:calc(\n (3 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-xl)\n )}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-time-picker-time-text-default);caret-color:var(--ic-time-picker-typing-cursor)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}input:-webkit-autofill{box-shadow:0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset;-webkit-text-fill-color:var(--ic-time-picker-time-text-default) !important}input::-moz-placeholder{color:var(--ic-time-picker-field-placeholder-text)}input::placeholder{color:var(--ic-time-picker-field-placeholder-text)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.time-inputs{color:var(--ic-time-picker-field-placeholder-text)}.hour-input{width:1.438rem}.minute-input{width:1.813rem}.second-input,.second-input.fit-to-value{width:2.313rem}.fit-to-value{width:1.25rem}.sr-only{position:absolute;left:-9999px}.input-container{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}.action-buttons{display:flex;align-items:center}.show-clock-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.clock-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition);margin:0}.clear-button.hidden{display:none}.clear-button:focus,.clock-button:focus,.clear-button:active,.clock-button:active{background-color:var(--ic-color-focus-inner) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer) !important;border-radius:0.25rem}.clock-button:focus,.clock-button:active{--ic-button-tertiary-text-active:var(--ic-atoms-input-clear-button-focus);--ic-button-tertiary-text-hover-active:var(\n --ic-atoms-input-clear-button-focus\n );--ic-button-tertiary-text-pressed-active:var(\n --ic-atoms-input-clear-button-focus\n )}.clear-button:focus,.clock-button:focus,.clear-button:active *,.clock-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button svg{color:var(--ic-time-picker-clear-icon)}.clear-button:focus svg{color:var(--ic-atoms-input-clear-button-focus)}.divider{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-atoms-input-divider);border-radius:var(--ic-space-1px)}.divider.small{height:var(--ic-space-md)}.divider.medium{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}.divider.large{height:var(--ic-space-lg)}ic-input-validation{--ic-input-validation-status-text-color:var(--ic-time-picker-status-text);--ic-input-validation-error:var(--ic-time-picker-icon-error);--ic-input-validation-warning-icon-color:var(--ic-time-picker-icon-warning);--ic-input-validation-success-icon-color:var(--ic-time-picker-icon-success)}@media (forced-colors: active){.clear-button svg{color:
|
|
24190
|
+
const icTimeInputCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--ic-input-label-helpertext-padding:var(--ic-space-xs);--input-bg-color:var(--ic-time-picker-field-background);--ic-input-label-text-color:var(--ic-time-picker-label);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle);--border-color:var(--ic-time-picker-time-field-border-default);--border-color-disabled:var(--ic-time-picker-border-disabled);--border-color-hover:var(--ic-time-picker-time-field-border-hover);--border-color-pressed:var(--ic-time-picker-time-field-border-pressed);--border-error-color:var(--ic-time-picker-border-error);--border-error-color-hover:var(--ic-time-picker-border-error-hover);--border-error-color-pressed:var(--ic-time-picker-border-error-pressed);--border-success-color:var(--ic-time-picker-border-success);--border-success-color-hover:var(--ic-time-picker-border-success-hover);--border-success-color-pressed:var(--ic-time-picker-border-success-pressed);--border-warning-color:var(--ic-time-picker-border-warning);--border-warning-color-hover:var(--ic-time-picker-border-warning-hover);--border-warning-color-pressed:var(--ic-time-picker-border-warning-pressed);--input-width:calc((4 * var(--ic-space-xxl)) + var(--ic-space-xxs))}:host(.ic-time-input-disabled){--ic-input-label-text-color:var(--ic-time-picker-label-disabled);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle-disabled)}:host(.ic-time-input-disabled) input{color:var(--ic-time-picker-time-text-disabled)}:host(.ic-time-input-large){--input-width:calc(\n (4 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-lg)\n )}:host(.ic-time-input-small){--input-width:calc(\n (3 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-xl)\n )}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-time-picker-time-text-default);caret-color:var(--ic-time-picker-typing-cursor)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}input:-webkit-autofill{box-shadow:0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset;-webkit-text-fill-color:var(--ic-time-picker-time-text-default) !important}input::-moz-placeholder{color:var(--ic-time-picker-field-placeholder-text)}input::placeholder{color:var(--ic-time-picker-field-placeholder-text)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.time-inputs{color:var(--ic-time-picker-field-placeholder-text)}.hour-input{width:1.438rem}.minute-input{width:1.813rem}.second-input,.second-input.fit-to-value{width:2.313rem}.fit-to-value{width:1.25rem}.sr-only{position:absolute;left:-9999px}.input-container{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}.action-buttons{display:flex;align-items:center}.show-clock-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.clock-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition);margin:0}.clear-button.hidden{display:none}.clear-button:focus,.clock-button:focus,.clear-button:active,.clock-button:active{background-color:var(--ic-color-focus-inner) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer) !important;border-radius:0.25rem}.clock-button:focus,.clock-button:active{--ic-button-tertiary-text-active:var(--ic-atoms-input-clear-button-focus);--ic-button-tertiary-text-hover-active:var(\n --ic-atoms-input-clear-button-focus\n );--ic-button-tertiary-text-pressed-active:var(\n --ic-atoms-input-clear-button-focus\n )}.clear-button:focus,.clock-button:focus,.clear-button:active *,.clock-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button svg{color:var(--ic-time-picker-clear-icon)}.clear-button:focus svg{color:var(--ic-atoms-input-clear-button-focus)}.divider{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-atoms-input-divider);border-radius:var(--ic-space-1px)}.divider.small{height:var(--ic-space-md)}.divider.medium{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}.divider.large{height:var(--ic-space-lg)}ic-input-validation{--ic-input-validation-status-text-color:var(--ic-time-picker-status-text);--ic-input-validation-error:var(--ic-time-picker-icon-error);--ic-input-validation-warning-icon-color:var(--ic-time-picker-icon-warning);--ic-input-validation-success-icon-color:var(--ic-time-picker-icon-success)}@media (forced-colors: active){.clear-button svg{color:currentcolor}}";
|
|
22738
24191
|
var IcTimeInputStyle0 = icTimeInputCss;
|
|
22739
24192
|
|
|
22740
24193
|
let inputIds = 0;
|
|
@@ -22880,7 +24333,7 @@ class TimeInput {
|
|
|
22880
24333
|
};
|
|
22881
24334
|
this.setTimeValidity = () => {
|
|
22882
24335
|
const minHour = 0;
|
|
22883
|
-
const maxHour = this.timePeriod === "12" ?
|
|
24336
|
+
const maxHour = this.timePeriod === "12" ? 12 : 23;
|
|
22884
24337
|
if (!isEmptyString(this.hour)) {
|
|
22885
24338
|
this.isValidHour = +this.hour >= minHour && +this.hour <= maxHour;
|
|
22886
24339
|
}
|
|
@@ -23112,8 +24565,8 @@ class TimeInput {
|
|
|
23112
24565
|
let minValue = 0;
|
|
23113
24566
|
let maxValue = 59;
|
|
23114
24567
|
if (input === this.hourInputEl) {
|
|
23115
|
-
minValue = 0;
|
|
23116
|
-
maxValue = this.timePeriod === "12" ?
|
|
24568
|
+
minValue = this.timePeriod === "12" ? 1 : 0;
|
|
24569
|
+
maxValue = this.timePeriod === "12" ? 12 : 23;
|
|
23117
24570
|
}
|
|
23118
24571
|
let val = +input.value;
|
|
23119
24572
|
if (event.key === "ArrowUp") {
|
|
@@ -23635,23 +25088,23 @@ class TimeInput {
|
|
|
23635
25088
|
!(isEmptyString(this.hour) &&
|
|
23636
25089
|
isEmptyString(this.minute) &&
|
|
23637
25090
|
isEmptyString(this.second)));
|
|
23638
|
-
return (hAsync(Host, { key: '
|
|
25091
|
+
return (hAsync(Host, { key: 'a7604eeee0b3fbc569bf9dd8dde0985ca1d959ac', class: {
|
|
23639
25092
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
23640
25093
|
[`ic-time-input-disabled`]: disabled,
|
|
23641
25094
|
[`ic-time-input-${size}`]: true,
|
|
23642
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
|
25095
|
+
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '9caf38fa248baa68cb63412469c808a5b9930b91', disabled: disabled }, !(hideLabel && hideHelperText) && (hAsync("ic-input-label", { key: '14befa869df3cbeaf837f955d8094e90e8e95e26', for: inputId, label: label, hideLabel: hideLabel, helperText: !hideHelperText ? helperText : "", disabled: disabled }, hAsync("slot", { key: 'a61c2058d17a901815692eeb2990dcba1ae9928a', name: "helper-text", slot: "helper-text" }))), hAsync("span", { key: 'e5bb9bd6404b69e81ce030df1b06628adde559a0', id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideLabel && `${label}\n`, hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), hAsync("span", { key: '047a67f53e98a368730bec49b6575d85ad8333ce', id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), hAsync("span", { key: 'bb77df1421d9dd8a3bf8389adcd31d5b8e65784c', id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("ic-input-component-container", { key: '12ae117fc0956a5896a65b96f7cfdb5b2b7cdb44', id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group", class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: 'efb28f6dda4ad90179c7fde4f568ce7f52f6ec87', class: "input-container" }, hAsync("div", { key: 'b59b030317e837115e7d9f10a2765f883c52eae7', class: "time-inputs" }, [
|
|
23643
25096
|
this.getInputsInOrder()[0],
|
|
23644
25097
|
":",
|
|
23645
25098
|
this.getInputsInOrder()[1],
|
|
23646
25099
|
!this.isHHMMFormat()
|
|
23647
25100
|
? [":", this.getInputsInOrder()[2]]
|
|
23648
25101
|
: null,
|
|
23649
|
-
]), hAsync("div", { key: '
|
|
25102
|
+
]), hAsync("div", { key: '80f2e178df91b5ae6bba0bfeda0600330d877222', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: '295fa279d38b8239e3640a719ae350cc493a40f0', id: "clear-button", "aria-label": "Clear input", class: {
|
|
23650
25103
|
["clear-button"]: true,
|
|
23651
25104
|
["hidden"]: isEmptyString(this.hour) &&
|
|
23652
25105
|
isEmptyString(this.minute) &&
|
|
23653
25106
|
isEmptyString(this.second),
|
|
23654
|
-
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showClockButton && (hAsync("div", { key: '
|
|
25107
|
+
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showClockButton && (hAsync("div", { key: 'ca4ef9f3d4246c6742e020db86dc91872b8ccc3f', class: "show-clock-button-wrapper" }, hAsync("div", { key: 'd5506d97163e73e1f972e680d6a76c886f18c798', class: { divider: showDivider, [size]: true } }), hAsync("ic-button", { key: 'eff1265aa61ef2ace0ce84e7525389f23f7cd57b', id: "clock-button", "aria-label": "Display clock", "aria-haspopup": "dialog", class: "clock-button", disabled: this.disabled, innerHTML: Clock, variant: "icon-tertiary", size: size, onFocus: this.handleClockFocus, onBlur: this.handleClockBlur, theme: this.clockFocused ? "light" : "dark" })))))), hAsync("span", { key: 'd017a4408998c19d9a7d352344125fd09457849c', id: this.selectedTimeInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: '3ac394520da65af634cd087b758441c79a46990a', ref: (el) => (this.selectedTimeInfoEl = el), role: "status" })), (hasCustomValidation || !isEmptyString(this.invalidTimeText)) && (hAsync("ic-input-validation", { key: '4cf54814f4837f9480643691e19af77b0fe24aae', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidTimeText, for: inputId })))));
|
|
23655
25108
|
}
|
|
23656
25109
|
static get delegatesFocus() { return true; }
|
|
23657
25110
|
get el() { return getElement(this); }
|
|
@@ -25622,7 +27075,7 @@ class TreeView {
|
|
|
25622
27075
|
if (icon) {
|
|
25623
27076
|
const iconSlot = document.createElement("div");
|
|
25624
27077
|
iconSlot.setAttribute("slot", "icon");
|
|
25625
|
-
iconSlot.innerHTML = icon;
|
|
27078
|
+
iconSlot.innerHTML = sanitizeHTMLIconString$1(icon);
|
|
25626
27079
|
treeItem.appendChild(iconSlot);
|
|
25627
27080
|
}
|
|
25628
27081
|
parentElement.appendChild(treeItem);
|
|
@@ -25642,14 +27095,14 @@ class TreeView {
|
|
|
25642
27095
|
}
|
|
25643
27096
|
render() {
|
|
25644
27097
|
const { heading, isLoaded, size, theme, truncateHeading } = this;
|
|
25645
|
-
return (hAsync(Host, { key: '
|
|
27098
|
+
return (hAsync(Host, { key: '414d715e703585390a75012284474a32406b4c33', "context-id": this.treeViewId, class: {
|
|
25646
27099
|
[`ic-tree-view-${size}`]: size !== "medium",
|
|
25647
27100
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
25648
27101
|
"ic-tree-view-truncate": truncateHeading,
|
|
25649
|
-
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '
|
|
27102
|
+
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '61415865200f228d82d4530f5e10b048743784c0', class: "heading-area-container" }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '6f27b38e2c407bd061d7269dc196abfa0e4a383c', class: "icon-container" }, hAsync("slot", { key: '648111ac2e052d29cbaa1574d1c21fcdd24c3fff', name: "icon" }))), hAsync("ic-typography", { key: '37a578333ada372b77e2647f4f42ecac9897d16a', variant: "subtitle-large", class: {
|
|
25650
27103
|
"tree-view-header": true,
|
|
25651
27104
|
"with-padding": this.truncateHeading && !isLoaded,
|
|
25652
|
-
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '
|
|
27105
|
+
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '3039892aa557a89cbe9caf6c141c6b6254db5077' })));
|
|
25653
27106
|
}
|
|
25654
27107
|
get el() { return getElement(this); }
|
|
25655
27108
|
static get watchers() { return {
|