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