@ukic/canary-web-components 3.0.0-canary.26 → 3.0.0-canary.28
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/helpers-da852478.js.map +1 -1
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-action-chip.cjs.entry.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +4 -4
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +12 -5
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox_3.cjs.entry.js +35 -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 +9 -5
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +15 -10
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +36 -11
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +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 +29 -10
- 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 +2 -2
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +2 -2
- package/dist/cjs/ic-page-header.cjs.entry.js.map +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 +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +67 -54
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +21 -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 +13 -9
- 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 +2 -2
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +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 +34 -4
- 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 +81 -0
- 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 +41 -10
- 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 +43 -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 +38 -8
- 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 +82 -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/helpers2.js.map +1 -1
- package/dist/components/ic-alert.js +3 -3
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +12 -4
- 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 +10 -5
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-date-picker.js +16 -10
- package/dist/components/ic-date-picker.js.map +1 -1
- package/dist/components/ic-dialog.js +35 -10
- package/dist/components/ic-dialog.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 +29 -10
- 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 +2 -2
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +1 -1
- package/dist/components/ic-page-header.js +1 -1
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +34 -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-status-tag.js +1 -1
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +67 -53
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +21 -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 +14 -9
- 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 +2 -2
- package/dist/components/ic-top-navigation.js.map +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.css +6 -6
- 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-0f22f41e.js.map +1 -1
- package/dist/core/p-1131db25.entry.js +2 -0
- package/dist/core/p-1131db25.entry.js.map +1 -0
- package/dist/core/{p-9f5a1473.entry.js → p-154bb0fb.entry.js} +2 -2
- package/dist/core/p-154bb0fb.entry.js.map +1 -0
- 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-479e5fa2.entry.js +2 -0
- package/dist/core/p-479e5fa2.entry.js.map +1 -0
- package/dist/core/p-4c5af5f7.entry.js +2 -0
- package/dist/core/p-4c5af5f7.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-5bc54721.entry.js +2 -0
- package/dist/core/p-5bc54721.entry.js.map +1 -0
- package/dist/core/p-62ad6ce5.entry.js +2 -0
- package/dist/core/p-62ad6ce5.entry.js.map +1 -0
- package/dist/core/{p-8bb49790.entry.js → p-656b92d7.entry.js} +2 -2
- package/dist/core/{p-b12c4643.entry.js → p-66f45822.entry.js} +2 -2
- package/dist/core/p-66f45822.entry.js.map +1 -0
- 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-74439163.entry.js +2 -0
- package/dist/core/p-74439163.entry.js.map +1 -0
- package/dist/core/p-760a57e7.entry.js +2 -0
- package/dist/core/p-760a57e7.entry.js.map +1 -0
- package/dist/core/p-76ab72ef.entry.js +2 -0
- package/dist/core/p-76ab72ef.entry.js.map +1 -0
- 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-8b0abe0f.entry.js +2 -0
- package/dist/core/p-8b0abe0f.entry.js.map +1 -0
- package/dist/core/{p-f4b08cdb.entry.js → p-8b4a7a78.entry.js} +2 -2
- package/dist/core/p-8b8df1da.entry.js +2 -0
- package/dist/core/p-8b8df1da.entry.js.map +1 -0
- 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-98286c35.entry.js → p-a4184f39.entry.js} +2 -2
- package/dist/core/p-a4184f39.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-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-bc58e37e.entry.js +2 -0
- package/dist/core/p-bc58e37e.entry.js.map +1 -0
- 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-a8d934fe.entry.js → p-c5d03c65.entry.js} +2 -2
- package/dist/core/{p-a8d934fe.entry.js.map → p-c5d03c65.entry.js.map} +1 -1
- 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-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-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/helpers-89cb996d.js.map +1 -1
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-action-chip.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js +4 -4
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +1 -1
- package/dist/esm/ic-card-vertical.entry.js +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +12 -5
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox_3.entry.js +35 -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 +9 -5
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +15 -10
- package/dist/esm/ic-date-picker.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +36 -11
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +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 +29 -10
- 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 +2 -2
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +1 -1
- package/dist/esm/ic-page-header.entry.js +2 -2
- package/dist/esm/ic-page-header.entry.js.map +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 +2 -2
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +67 -54
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +21 -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 +13 -9
- 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 +2 -2
- package/dist/esm/ic-top-navigation.entry.js.map +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-date-input/ic-date-input.d.ts +5 -1
- package/dist/types/components/ic-date-input/ic-date-input.stories.d.ts +15 -9
- package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +5 -1
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +3 -4
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +4 -0
- package/dist/types/components/ic-time-input/ic-time-input.d.ts +5 -1
- package/dist/types/components/ic-time-input/ic-time-input.stories.d.ts +14 -8
- package/dist/types/components.d.ts +30 -6
- package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/utils/common-helpers.d.ts +2 -0
- package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/utils/constants.d.ts +44 -0
- package/dist/types/utils/types.d.ts +6 -2
- package/hydrate/index.js +1683 -180
- package/hydrate/index.mjs +1683 -180
- 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-318c6a4c.entry.js +0 -2
- package/dist/core/p-318c6a4c.entry.js.map +0 -1
- package/dist/core/p-3bee8f39.entry.js +0 -2
- package/dist/core/p-3bee8f39.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-816aae93.entry.js +0 -2
- package/dist/core/p-816aae93.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-9c8070a1.entry.js +0 -2
- package/dist/core/p-9c8070a1.entry.js.map +0 -1
- package/dist/core/p-9f5a1473.entry.js.map +0 -1
- package/dist/core/p-aaa6d8e1.entry.js +0 -2
- package/dist/core/p-aaa6d8e1.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-cd3f12ad.entry.js +0 -2
- package/dist/core/p-cd3f12ad.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-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-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-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";
|
|
@@ -4177,7 +4178,7 @@ var closeIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fil
|
|
|
4177
4178
|
</svg>
|
|
4178
4179
|
`;
|
|
4179
4180
|
|
|
4180
|
-
const icAlertCss = "/*! 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}:host ::slotted(ic-typography){--ic-typography-color:var(--ic-alert-description)}.container{min-height:var(--ic-alert-min-height);border-radius:var(--ic-space-xxs) var(--ic-space-xxxs) var(--ic-space-xxxs)\n var(--ic-space-xxs);position:relative;display:flex;align-items:center}.container-neutral{background-color:var(--ic-alert-background-neutral);border:var(--ic-space-xxxs) solid var(--ic-alert-border-neutral)}.container-info{background-color:var(--ic-alert-background-info);border:var(--ic-space-xxxs) solid var(--ic-alert-border-info)}.container-warning{background-color:var(--ic-alert-background-warning);border:var(--ic-space-xxxs) solid var(--ic-alert-border-warning)}.container-error{background-color:var(--ic-alert-background-error);border:var(--ic-space-xxxs) solid var(--ic-alert-border-error)}.container-success{background-color:var(--ic-alert-background-success);border:var(--ic-space-xxxs) solid var(--ic-alert-border-success)}.container-ai{background-color:var(--ic-alert-background-ai);border:var(--ic-space-xxxs) solid var(--ic-alert-border-ai)}.
|
|
4181
|
+
const icAlertCss = "/*! 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}:host ::slotted(ic-typography){--ic-typography-color:var(--ic-alert-description)}.container{min-height:var(--ic-alert-min-height);border-radius:var(--ic-space-xxs) var(--ic-space-xxxs) var(--ic-space-xxxs)\n var(--ic-space-xxs);position:relative;display:flex;align-items:center}.container-neutral{background-color:var(--ic-alert-background-neutral);border:var(--ic-space-xxxs) solid var(--ic-alert-border-neutral)}.container-info{background-color:var(--ic-alert-background-info);border:var(--ic-space-xxxs) solid var(--ic-alert-border-info)}.container-warning{background-color:var(--ic-alert-background-warning);border:var(--ic-space-xxxs) solid var(--ic-alert-border-warning)}.container-error{background-color:var(--ic-alert-background-error);border:var(--ic-space-xxxs) solid var(--ic-alert-border-error)}.container-success{background-color:var(--ic-alert-background-success);border:var(--ic-space-xxxs) solid var(--ic-alert-border-success)}.container-ai{background-color:var(--ic-alert-background-ai);border:var(--ic-space-xxxs) solid var(--ic-alert-border-ai)}.divider{height:100%;width:var(--ic-space-xs);border-radius:var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);position:absolute}.divider-neutral{background-color:var(--ic-alert-status-type-neutral)}.divider-info{background-color:var(--ic-alert-status-type-info)}.divider-warning{background-color:var(--ic-alert-status-type-warning)}.divider-error{background-color:var(--ic-alert-status-type-error)}.divider-success{background-color:var(--ic-alert-status-type-success)}.divider-ai{background-color:var(--ic-alert-status-type-ai)}.alert-icon{align-self:flex-start;margin-top:var(--ic-space-xs);margin-right:var(--ic-space-xs)}.alert-icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}:host([showdefaulticon=\"false\"]) .icon-neutral{visibility:hidden;width:0;margin-left:0.625rem}.icon-neutral>svg,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block;fill:var(--ic-alert-icon-neutral)}:host([variant=\"info\"]) .alert-icon svg{fill:var(--ic-alert-icon-info)}:host([variant=\"warning\"]) .alert-icon svg{fill:var(--ic-alert-icon-warning)}:host([variant=\"error\"]) .alert-icon svg{fill:var(--ic-alert-icon-error)}:host([variant=\"success\"]) .alert-icon svg{fill:var(--ic-alert-icon-success)}:host([variant=\"ai\"]) .alert-icon svg{fill:var(--ic-alert-icon-ai)}.alert-content{display:flex;align-items:center;margin-left:1.125rem;width:100%;flex-wrap:wrap}.alert-message{display:flex;align-items:center;padding:var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;flex:1;--ic-typography-color:var(--ic-alert-description)}.alert-message-title-above{display:inline}.alert-title{margin-right:var(--ic-space-xs);margin-top:0;margin-bottom:auto;--ic-typography-color:var(--ic-alert-title)}.alert-title-above{white-space:normal}.alert-action-container{margin-right:var(--ic-space-xs);display:flex;align-items:center}.dismiss-icon{margin-right:var(--ic-space-xxxs);margin-left:-0.375rem;padding:0.375rem;border:none;border-radius:50%;background-color:inherit;display:flex;align-items:center;justify-content:center}.dismiss-icon>svg{color:var(--ic-alert-icon-dismissible)}.dismiss-icon:hover{cursor:pointer}@media (max-width: 628px){.alert-message{display:inline}.alert-title{white-space:normal}.alert-action-container{margin-bottom:var(--ic-space-xs);flex-basis:100%}.alert-icon~.alert-action-container{margin-left:2rem}}@media (forced-colors: active){.container{border:var(--ic-border-hc)}.dismiss-icon>svg{color:var(--ic-architectural-white)}}";
|
|
4181
4182
|
var IcAlertStyle0 = icAlertCss;
|
|
4182
4183
|
|
|
4183
4184
|
/**
|
|
@@ -4283,14 +4284,14 @@ class Alert {
|
|
|
4283
4284
|
return (hAsync("div", { class: iconClass }, hAsync("slot", { name: "neutral-icon" })));
|
|
4284
4285
|
}
|
|
4285
4286
|
else if (!showDefaultIcon) {
|
|
4286
|
-
return hAsync("div",
|
|
4287
|
+
return hAsync("div", null);
|
|
4287
4288
|
}
|
|
4288
4289
|
}
|
|
4289
4290
|
return (hAsync("span", { class: iconClass, innerHTML: VARIANT_ICONS[variant].icon }));
|
|
4290
4291
|
};
|
|
4291
4292
|
return (visible && (hAsync(Host, { role: announced ? "alert" : null, class: {
|
|
4292
4293
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
4293
|
-
} }, hAsync("div", { class: { container: true, [`container-${variant}`]: true } }, hAsync("div", { class:
|
|
4294
|
+
} }, hAsync("div", { class: { container: true, [`container-${variant}`]: true } }, hAsync("div", { class: { divider: true, [`divider-${variant}`]: true } }), hAsync("div", { class: "alert-content" }, hAsync(Icon, null), hAsync("div", { class: {
|
|
4294
4295
|
"alert-message": true,
|
|
4295
4296
|
"alert-message-title-above": titleAbove || alertTitleWrap,
|
|
4296
4297
|
}, ref: (el) => (this.messageEl = el) }, heading && (hAsync("ic-typography", { class: {
|
|
@@ -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";
|
|
@@ -6366,6 +6367,10 @@ class CheckboxGroup {
|
|
|
6366
6367
|
* 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.
|
|
6367
6368
|
*/
|
|
6368
6369
|
this.theme = "inherit";
|
|
6370
|
+
/**
|
|
6371
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
6372
|
+
*/
|
|
6373
|
+
this.validationAriaLive = "polite";
|
|
6369
6374
|
/**
|
|
6370
6375
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
|
6371
6376
|
*/
|
|
@@ -6425,14 +6430,17 @@ class CheckboxGroup {
|
|
|
6425
6430
|
});
|
|
6426
6431
|
}
|
|
6427
6432
|
render() {
|
|
6428
|
-
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationStatus, validationText, } = this;
|
|
6433
|
+
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationAriaLive, validationStatus, validationText, } = this;
|
|
6429
6434
|
const describedBy = getInputDescribedByText$1(this.el, name, helperText !== "", validationStatus !== "");
|
|
6430
6435
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
|
6431
|
-
|
|
6436
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
6437
|
+
return (hAsync(Host, { key: 'ee4fc914d346b2f35dd8d44ff73a44b479caee95', class: {
|
|
6432
6438
|
"ic-checkbox-group-disabled": !!disabled,
|
|
6433
6439
|
[`ic-checkbox-group-${size}`]: true,
|
|
6434
6440
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6435
|
-
} }, renderSRText && (hAsync("span", { key: '
|
|
6441
|
+
} }, renderSRText && (hAsync("span", { key: '3718d5e6fce1597c836d01050ed17bcd01c97e6e', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { key: '318e6c61787f136916d39acdd2823fa644c8d865', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: '6348eb25d5a2de666033441d694b407f72ae834b' }, hAsync("ic-input-label", { key: '96ef66ab6b4e3a02a2385eb9b8f5936c1fc57ad0', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }, hAsync("slot", { key: 'f9f0532834d50a57dbc2f075a9f94788071cceb6', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '9b72caba2adb5951814689ef5c8b1fa5d7ea11ed', class: "checkboxes-container" }, hAsync("slot", { key: '5cf045069c87416b7889e7b29b44e6f137ca0b4f' }))), hAsync("ic-input-validation", { key: '4b9680fcb5468fbf6e9c2e1eb6d45f929b2b09dc', class: {
|
|
6442
|
+
"show-validation": showValidation,
|
|
6443
|
+
}, for: name, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
|
6436
6444
|
}
|
|
6437
6445
|
get el() { return getElement(this); }
|
|
6438
6446
|
static get watchers() { return {
|
|
@@ -6454,6 +6462,7 @@ class CheckboxGroup {
|
|
|
6454
6462
|
"required": [4],
|
|
6455
6463
|
"size": [1],
|
|
6456
6464
|
"theme": [1],
|
|
6465
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
6457
6466
|
"validationStatus": [1, "validation-status"],
|
|
6458
6467
|
"validationText": [1, "validation-text"]
|
|
6459
6468
|
},
|
|
@@ -6468,7 +6477,7 @@ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org
|
|
|
6468
6477
|
</svg>
|
|
6469
6478
|
`;
|
|
6470
6479
|
|
|
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}}";
|
|
6480
|
+
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
6481
|
var IcChipStyle0 = icChipCss;
|
|
6473
6482
|
|
|
6474
6483
|
/**
|
|
@@ -6562,10 +6571,11 @@ class Chip {
|
|
|
6562
6571
|
render() {
|
|
6563
6572
|
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
|
6564
6573
|
const ariaLabel = `${label} chip`;
|
|
6565
|
-
return (hAsync(Host, { key: '
|
|
6574
|
+
return (hAsync(Host, { key: 'c7b88d4999b6de5004edc4bd27e185b9232fdaf9', class: {
|
|
6575
|
+
"ic-chip-dismissed": !visible,
|
|
6566
6576
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
6567
6577
|
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
|
6568
|
-
} }, visible && (hAsync("div", { key: '
|
|
6578
|
+
} }, visible && (hAsync("div", { key: 'dbbb2bd77adea5e65d61e11b6c4b2b06fadbb9b1', class: {
|
|
6569
6579
|
chip: true,
|
|
6570
6580
|
[`${variant}`]: true,
|
|
6571
6581
|
[`${size}`]: true,
|
|
@@ -6573,7 +6583,7 @@ class Chip {
|
|
|
6573
6583
|
dismissible,
|
|
6574
6584
|
hovered,
|
|
6575
6585
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
|
6576
|
-
} }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: '
|
|
6586
|
+
} }, 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
6587
|
}
|
|
6578
6588
|
static get delegatesFocus() { return true; }
|
|
6579
6589
|
get el() { return getElement(this); }
|
|
@@ -6832,6 +6842,1380 @@ var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24
|
|
|
6832
6842
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
|
6833
6843
|
</svg>`;
|
|
6834
6844
|
|
|
6845
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6846
|
+
|
|
6847
|
+
var purify = {exports: {}};
|
|
6848
|
+
|
|
6849
|
+
/*! @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 */
|
|
6850
|
+
|
|
6851
|
+
(function (module, exports) {
|
|
6852
|
+
(function (global, factory) {
|
|
6853
|
+
module.exports = factory() ;
|
|
6854
|
+
})(commonjsGlobal, (function () {
|
|
6855
|
+
const {
|
|
6856
|
+
entries,
|
|
6857
|
+
setPrototypeOf,
|
|
6858
|
+
isFrozen,
|
|
6859
|
+
getPrototypeOf,
|
|
6860
|
+
getOwnPropertyDescriptor
|
|
6861
|
+
} = Object;
|
|
6862
|
+
let {
|
|
6863
|
+
freeze,
|
|
6864
|
+
seal,
|
|
6865
|
+
create
|
|
6866
|
+
} = Object; // eslint-disable-line import/no-mutable-exports
|
|
6867
|
+
let {
|
|
6868
|
+
apply,
|
|
6869
|
+
construct
|
|
6870
|
+
} = typeof Reflect !== 'undefined' && Reflect;
|
|
6871
|
+
if (!freeze) {
|
|
6872
|
+
freeze = function freeze(x) {
|
|
6873
|
+
return x;
|
|
6874
|
+
};
|
|
6875
|
+
}
|
|
6876
|
+
if (!seal) {
|
|
6877
|
+
seal = function seal(x) {
|
|
6878
|
+
return x;
|
|
6879
|
+
};
|
|
6880
|
+
}
|
|
6881
|
+
if (!apply) {
|
|
6882
|
+
apply = function apply(fun, thisValue, args) {
|
|
6883
|
+
return fun.apply(thisValue, args);
|
|
6884
|
+
};
|
|
6885
|
+
}
|
|
6886
|
+
if (!construct) {
|
|
6887
|
+
construct = function construct(Func, args) {
|
|
6888
|
+
return new Func(...args);
|
|
6889
|
+
};
|
|
6890
|
+
}
|
|
6891
|
+
const arrayForEach = unapply(Array.prototype.forEach);
|
|
6892
|
+
const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
|
6893
|
+
const arrayPop = unapply(Array.prototype.pop);
|
|
6894
|
+
const arrayPush = unapply(Array.prototype.push);
|
|
6895
|
+
const arraySplice = unapply(Array.prototype.splice);
|
|
6896
|
+
const stringToLowerCase = unapply(String.prototype.toLowerCase);
|
|
6897
|
+
const stringToString = unapply(String.prototype.toString);
|
|
6898
|
+
const stringMatch = unapply(String.prototype.match);
|
|
6899
|
+
const stringReplace = unapply(String.prototype.replace);
|
|
6900
|
+
const stringIndexOf = unapply(String.prototype.indexOf);
|
|
6901
|
+
const stringTrim = unapply(String.prototype.trim);
|
|
6902
|
+
const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
|
|
6903
|
+
const regExpTest = unapply(RegExp.prototype.test);
|
|
6904
|
+
const typeErrorCreate = unconstruct(TypeError);
|
|
6905
|
+
/**
|
|
6906
|
+
* Creates a new function that calls the given function with a specified thisArg and arguments.
|
|
6907
|
+
*
|
|
6908
|
+
* @param func - The function to be wrapped and called.
|
|
6909
|
+
* @returns A new function that calls the given function with a specified thisArg and arguments.
|
|
6910
|
+
*/
|
|
6911
|
+
function unapply(func) {
|
|
6912
|
+
return function (thisArg) {
|
|
6913
|
+
if (thisArg instanceof RegExp) {
|
|
6914
|
+
thisArg.lastIndex = 0;
|
|
6915
|
+
}
|
|
6916
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
6917
|
+
args[_key - 1] = arguments[_key];
|
|
6918
|
+
}
|
|
6919
|
+
return apply(func, thisArg, args);
|
|
6920
|
+
};
|
|
6921
|
+
}
|
|
6922
|
+
/**
|
|
6923
|
+
* Creates a new function that constructs an instance of the given constructor function with the provided arguments.
|
|
6924
|
+
*
|
|
6925
|
+
* @param func - The constructor function to be wrapped and called.
|
|
6926
|
+
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
|
6927
|
+
*/
|
|
6928
|
+
function unconstruct(func) {
|
|
6929
|
+
return function () {
|
|
6930
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
6931
|
+
args[_key2] = arguments[_key2];
|
|
6932
|
+
}
|
|
6933
|
+
return construct(func, args);
|
|
6934
|
+
};
|
|
6935
|
+
}
|
|
6936
|
+
/**
|
|
6937
|
+
* Add properties to a lookup table
|
|
6938
|
+
*
|
|
6939
|
+
* @param set - The set to which elements will be added.
|
|
6940
|
+
* @param array - The array containing elements to be added to the set.
|
|
6941
|
+
* @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
|
|
6942
|
+
* @returns The modified set with added elements.
|
|
6943
|
+
*/
|
|
6944
|
+
function addToSet(set, array) {
|
|
6945
|
+
let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
|
|
6946
|
+
if (setPrototypeOf) {
|
|
6947
|
+
// Make 'in' and truthy checks like Boolean(set.constructor)
|
|
6948
|
+
// independent of any properties defined on Object.prototype.
|
|
6949
|
+
// Prevent prototype setters from intercepting set as a this value.
|
|
6950
|
+
setPrototypeOf(set, null);
|
|
6951
|
+
}
|
|
6952
|
+
let l = array.length;
|
|
6953
|
+
while (l--) {
|
|
6954
|
+
let element = array[l];
|
|
6955
|
+
if (typeof element === 'string') {
|
|
6956
|
+
const lcElement = transformCaseFunc(element);
|
|
6957
|
+
if (lcElement !== element) {
|
|
6958
|
+
// Config presets (e.g. tags.js, attrs.js) are immutable.
|
|
6959
|
+
if (!isFrozen(array)) {
|
|
6960
|
+
array[l] = lcElement;
|
|
6961
|
+
}
|
|
6962
|
+
element = lcElement;
|
|
6963
|
+
}
|
|
6964
|
+
}
|
|
6965
|
+
set[element] = true;
|
|
6966
|
+
}
|
|
6967
|
+
return set;
|
|
6968
|
+
}
|
|
6969
|
+
/**
|
|
6970
|
+
* Clean up an array to harden against CSPP
|
|
6971
|
+
*
|
|
6972
|
+
* @param array - The array to be cleaned.
|
|
6973
|
+
* @returns The cleaned version of the array
|
|
6974
|
+
*/
|
|
6975
|
+
function cleanArray(array) {
|
|
6976
|
+
for (let index = 0; index < array.length; index++) {
|
|
6977
|
+
const isPropertyExist = objectHasOwnProperty(array, index);
|
|
6978
|
+
if (!isPropertyExist) {
|
|
6979
|
+
array[index] = null;
|
|
6980
|
+
}
|
|
6981
|
+
}
|
|
6982
|
+
return array;
|
|
6983
|
+
}
|
|
6984
|
+
/**
|
|
6985
|
+
* Shallow clone an object
|
|
6986
|
+
*
|
|
6987
|
+
* @param object - The object to be cloned.
|
|
6988
|
+
* @returns A new object that copies the original.
|
|
6989
|
+
*/
|
|
6990
|
+
function clone(object) {
|
|
6991
|
+
const newObject = create(null);
|
|
6992
|
+
for (const [property, value] of entries(object)) {
|
|
6993
|
+
const isPropertyExist = objectHasOwnProperty(object, property);
|
|
6994
|
+
if (isPropertyExist) {
|
|
6995
|
+
if (Array.isArray(value)) {
|
|
6996
|
+
newObject[property] = cleanArray(value);
|
|
6997
|
+
} else if (value && typeof value === 'object' && value.constructor === Object) {
|
|
6998
|
+
newObject[property] = clone(value);
|
|
6999
|
+
} else {
|
|
7000
|
+
newObject[property] = value;
|
|
7001
|
+
}
|
|
7002
|
+
}
|
|
7003
|
+
}
|
|
7004
|
+
return newObject;
|
|
7005
|
+
}
|
|
7006
|
+
/**
|
|
7007
|
+
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
|
7008
|
+
*
|
|
7009
|
+
* @param object - The object to look up the getter function in its prototype chain.
|
|
7010
|
+
* @param prop - The property name for which to find the getter function.
|
|
7011
|
+
* @returns The getter function found in the prototype chain or a fallback function.
|
|
7012
|
+
*/
|
|
7013
|
+
function lookupGetter(object, prop) {
|
|
7014
|
+
while (object !== null) {
|
|
7015
|
+
const desc = getOwnPropertyDescriptor(object, prop);
|
|
7016
|
+
if (desc) {
|
|
7017
|
+
if (desc.get) {
|
|
7018
|
+
return unapply(desc.get);
|
|
7019
|
+
}
|
|
7020
|
+
if (typeof desc.value === 'function') {
|
|
7021
|
+
return unapply(desc.value);
|
|
7022
|
+
}
|
|
7023
|
+
}
|
|
7024
|
+
object = getPrototypeOf(object);
|
|
7025
|
+
}
|
|
7026
|
+
function fallbackValue() {
|
|
7027
|
+
return null;
|
|
7028
|
+
}
|
|
7029
|
+
return fallbackValue;
|
|
7030
|
+
}
|
|
7031
|
+
|
|
7032
|
+
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']);
|
|
7033
|
+
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']);
|
|
7034
|
+
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']);
|
|
7035
|
+
// List of SVG elements that are disallowed by default.
|
|
7036
|
+
// We still need to know them so that we can do namespace
|
|
7037
|
+
// checks properly in case one wants to add them to
|
|
7038
|
+
// allow-list.
|
|
7039
|
+
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']);
|
|
7040
|
+
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']);
|
|
7041
|
+
// Similarly to SVG, we want to know all MathML elements,
|
|
7042
|
+
// even those that we disallow by default.
|
|
7043
|
+
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
|
7044
|
+
const text = freeze(['#text']);
|
|
7045
|
+
|
|
7046
|
+
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']);
|
|
7047
|
+
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']);
|
|
7048
|
+
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']);
|
|
7049
|
+
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
7050
|
+
|
|
7051
|
+
// eslint-disable-next-line unicorn/better-regex
|
|
7052
|
+
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode
|
|
7053
|
+
const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
|
|
7054
|
+
const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm); // eslint-disable-line unicorn/better-regex
|
|
7055
|
+
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
|
|
7056
|
+
const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
|
|
7057
|
+
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
|
|
7058
|
+
);
|
|
7059
|
+
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
7060
|
+
const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
|
|
7061
|
+
);
|
|
7062
|
+
const DOCTYPE_NAME = seal(/^html$/i);
|
|
7063
|
+
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
7064
|
+
|
|
7065
|
+
var EXPRESSIONS = /*#__PURE__*/Object.freeze({
|
|
7066
|
+
__proto__: null,
|
|
7067
|
+
ARIA_ATTR: ARIA_ATTR,
|
|
7068
|
+
ATTR_WHITESPACE: ATTR_WHITESPACE,
|
|
7069
|
+
CUSTOM_ELEMENT: CUSTOM_ELEMENT,
|
|
7070
|
+
DATA_ATTR: DATA_ATTR,
|
|
7071
|
+
DOCTYPE_NAME: DOCTYPE_NAME,
|
|
7072
|
+
ERB_EXPR: ERB_EXPR,
|
|
7073
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI,
|
|
7074
|
+
IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
|
|
7075
|
+
MUSTACHE_EXPR: MUSTACHE_EXPR,
|
|
7076
|
+
TMPLIT_EXPR: TMPLIT_EXPR
|
|
7077
|
+
});
|
|
7078
|
+
|
|
7079
|
+
/* eslint-disable @typescript-eslint/indent */
|
|
7080
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
|
7081
|
+
const NODE_TYPE = {
|
|
7082
|
+
element: 1,
|
|
7083
|
+
attribute: 2,
|
|
7084
|
+
text: 3,
|
|
7085
|
+
cdataSection: 4,
|
|
7086
|
+
entityReference: 5,
|
|
7087
|
+
// Deprecated
|
|
7088
|
+
entityNode: 6,
|
|
7089
|
+
// Deprecated
|
|
7090
|
+
progressingInstruction: 7,
|
|
7091
|
+
comment: 8,
|
|
7092
|
+
document: 9,
|
|
7093
|
+
documentType: 10,
|
|
7094
|
+
documentFragment: 11,
|
|
7095
|
+
notation: 12 // Deprecated
|
|
7096
|
+
};
|
|
7097
|
+
const getGlobal = function getGlobal() {
|
|
7098
|
+
return typeof window === 'undefined' ? null : window;
|
|
7099
|
+
};
|
|
7100
|
+
/**
|
|
7101
|
+
* Creates a no-op policy for internal use only.
|
|
7102
|
+
* Don't export this function outside this module!
|
|
7103
|
+
* @param trustedTypes The policy factory.
|
|
7104
|
+
* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
|
|
7105
|
+
* @return The policy created (or null, if Trusted Types
|
|
7106
|
+
* are not supported or creating the policy failed).
|
|
7107
|
+
*/
|
|
7108
|
+
const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
|
|
7109
|
+
if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
|
|
7110
|
+
return null;
|
|
7111
|
+
}
|
|
7112
|
+
// Allow the callers to control the unique policy name
|
|
7113
|
+
// by adding a data-tt-policy-suffix to the script element with the DOMPurify.
|
|
7114
|
+
// Policy creation with duplicate names throws in Trusted Types.
|
|
7115
|
+
let suffix = null;
|
|
7116
|
+
const ATTR_NAME = 'data-tt-policy-suffix';
|
|
7117
|
+
if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
|
|
7118
|
+
suffix = purifyHostElement.getAttribute(ATTR_NAME);
|
|
7119
|
+
}
|
|
7120
|
+
const policyName = 'dompurify' + (suffix ? '#' + suffix : '');
|
|
7121
|
+
try {
|
|
7122
|
+
return trustedTypes.createPolicy(policyName, {
|
|
7123
|
+
createHTML(html) {
|
|
7124
|
+
return html;
|
|
7125
|
+
},
|
|
7126
|
+
createScriptURL(scriptUrl) {
|
|
7127
|
+
return scriptUrl;
|
|
7128
|
+
}
|
|
7129
|
+
});
|
|
7130
|
+
} catch (_) {
|
|
7131
|
+
// Policy creation failed (most likely another DOMPurify script has
|
|
7132
|
+
// already run). Skip creating the policy, as this will only cause errors
|
|
7133
|
+
// if TT are enforced.
|
|
7134
|
+
console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
|
|
7135
|
+
return null;
|
|
7136
|
+
}
|
|
7137
|
+
};
|
|
7138
|
+
const _createHooksMap = function _createHooksMap() {
|
|
7139
|
+
return {
|
|
7140
|
+
afterSanitizeAttributes: [],
|
|
7141
|
+
afterSanitizeElements: [],
|
|
7142
|
+
afterSanitizeShadowDOM: [],
|
|
7143
|
+
beforeSanitizeAttributes: [],
|
|
7144
|
+
beforeSanitizeElements: [],
|
|
7145
|
+
beforeSanitizeShadowDOM: [],
|
|
7146
|
+
uponSanitizeAttribute: [],
|
|
7147
|
+
uponSanitizeElement: [],
|
|
7148
|
+
uponSanitizeShadowNode: []
|
|
7149
|
+
};
|
|
7150
|
+
};
|
|
7151
|
+
function createDOMPurify() {
|
|
7152
|
+
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
7153
|
+
const DOMPurify = root => createDOMPurify(root);
|
|
7154
|
+
DOMPurify.version = '3.2.6';
|
|
7155
|
+
DOMPurify.removed = [];
|
|
7156
|
+
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
7157
|
+
// Not running in a browser, provide a factory function
|
|
7158
|
+
// so that you can pass your own Window
|
|
7159
|
+
DOMPurify.isSupported = false;
|
|
7160
|
+
return DOMPurify;
|
|
7161
|
+
}
|
|
7162
|
+
let {
|
|
7163
|
+
document
|
|
7164
|
+
} = window;
|
|
7165
|
+
const originalDocument = document;
|
|
7166
|
+
const currentScript = originalDocument.currentScript;
|
|
7167
|
+
const {
|
|
7168
|
+
DocumentFragment,
|
|
7169
|
+
HTMLTemplateElement,
|
|
7170
|
+
Node,
|
|
7171
|
+
Element,
|
|
7172
|
+
NodeFilter,
|
|
7173
|
+
NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,
|
|
7174
|
+
HTMLFormElement,
|
|
7175
|
+
DOMParser,
|
|
7176
|
+
trustedTypes
|
|
7177
|
+
} = window;
|
|
7178
|
+
const ElementPrototype = Element.prototype;
|
|
7179
|
+
const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
|
|
7180
|
+
const remove = lookupGetter(ElementPrototype, 'remove');
|
|
7181
|
+
const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
|
|
7182
|
+
const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
|
|
7183
|
+
const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
|
|
7184
|
+
// As per issue #47, the web-components registry is inherited by a
|
|
7185
|
+
// new document created via createHTMLDocument. As per the spec
|
|
7186
|
+
// (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
|
|
7187
|
+
// a new empty registry is used when creating a template contents owner
|
|
7188
|
+
// document, so we use that as our parent document to ensure nothing
|
|
7189
|
+
// is inherited.
|
|
7190
|
+
if (typeof HTMLTemplateElement === 'function') {
|
|
7191
|
+
const template = document.createElement('template');
|
|
7192
|
+
if (template.content && template.content.ownerDocument) {
|
|
7193
|
+
document = template.content.ownerDocument;
|
|
7194
|
+
}
|
|
7195
|
+
}
|
|
7196
|
+
let trustedTypesPolicy;
|
|
7197
|
+
let emptyHTML = '';
|
|
7198
|
+
const {
|
|
7199
|
+
implementation,
|
|
7200
|
+
createNodeIterator,
|
|
7201
|
+
createDocumentFragment,
|
|
7202
|
+
getElementsByTagName
|
|
7203
|
+
} = document;
|
|
7204
|
+
const {
|
|
7205
|
+
importNode
|
|
7206
|
+
} = originalDocument;
|
|
7207
|
+
let hooks = _createHooksMap();
|
|
7208
|
+
/**
|
|
7209
|
+
* Expose whether this browser supports running the full DOMPurify.
|
|
7210
|
+
*/
|
|
7211
|
+
DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;
|
|
7212
|
+
const {
|
|
7213
|
+
MUSTACHE_EXPR,
|
|
7214
|
+
ERB_EXPR,
|
|
7215
|
+
TMPLIT_EXPR,
|
|
7216
|
+
DATA_ATTR,
|
|
7217
|
+
ARIA_ATTR,
|
|
7218
|
+
IS_SCRIPT_OR_DATA,
|
|
7219
|
+
ATTR_WHITESPACE,
|
|
7220
|
+
CUSTOM_ELEMENT
|
|
7221
|
+
} = EXPRESSIONS;
|
|
7222
|
+
let {
|
|
7223
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI$1
|
|
7224
|
+
} = EXPRESSIONS;
|
|
7225
|
+
/**
|
|
7226
|
+
* We consider the elements and attributes below to be safe. Ideally
|
|
7227
|
+
* don't add any new ones but feel free to remove unwanted ones.
|
|
7228
|
+
*/
|
|
7229
|
+
/* allowed element names */
|
|
7230
|
+
let ALLOWED_TAGS = null;
|
|
7231
|
+
const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
|
|
7232
|
+
/* Allowed attribute names */
|
|
7233
|
+
let ALLOWED_ATTR = null;
|
|
7234
|
+
const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
|
|
7235
|
+
/*
|
|
7236
|
+
* Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
|
|
7237
|
+
* @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
|
|
7238
|
+
* @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
|
|
7239
|
+
* @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
|
|
7240
|
+
*/
|
|
7241
|
+
let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
7242
|
+
tagNameCheck: {
|
|
7243
|
+
writable: true,
|
|
7244
|
+
configurable: false,
|
|
7245
|
+
enumerable: true,
|
|
7246
|
+
value: null
|
|
7247
|
+
},
|
|
7248
|
+
attributeNameCheck: {
|
|
7249
|
+
writable: true,
|
|
7250
|
+
configurable: false,
|
|
7251
|
+
enumerable: true,
|
|
7252
|
+
value: null
|
|
7253
|
+
},
|
|
7254
|
+
allowCustomizedBuiltInElements: {
|
|
7255
|
+
writable: true,
|
|
7256
|
+
configurable: false,
|
|
7257
|
+
enumerable: true,
|
|
7258
|
+
value: false
|
|
7259
|
+
}
|
|
7260
|
+
}));
|
|
7261
|
+
/* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
|
|
7262
|
+
let FORBID_TAGS = null;
|
|
7263
|
+
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
|
7264
|
+
let FORBID_ATTR = null;
|
|
7265
|
+
/* Decide if ARIA attributes are okay */
|
|
7266
|
+
let ALLOW_ARIA_ATTR = true;
|
|
7267
|
+
/* Decide if custom data attributes are okay */
|
|
7268
|
+
let ALLOW_DATA_ATTR = true;
|
|
7269
|
+
/* Decide if unknown protocols are okay */
|
|
7270
|
+
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
|
7271
|
+
/* Decide if self-closing tags in attributes are allowed.
|
|
7272
|
+
* Usually removed due to a mXSS issue in jQuery 3.0 */
|
|
7273
|
+
let ALLOW_SELF_CLOSE_IN_ATTR = true;
|
|
7274
|
+
/* Output should be safe for common template engines.
|
|
7275
|
+
* This means, DOMPurify removes data attributes, mustaches and ERB
|
|
7276
|
+
*/
|
|
7277
|
+
let SAFE_FOR_TEMPLATES = false;
|
|
7278
|
+
/* Output should be safe even for XML used within HTML and alike.
|
|
7279
|
+
* This means, DOMPurify removes comments when containing risky content.
|
|
7280
|
+
*/
|
|
7281
|
+
let SAFE_FOR_XML = true;
|
|
7282
|
+
/* Decide if document with <html>... should be returned */
|
|
7283
|
+
let WHOLE_DOCUMENT = false;
|
|
7284
|
+
/* Track whether config is already set on this instance of DOMPurify. */
|
|
7285
|
+
let SET_CONFIG = false;
|
|
7286
|
+
/* Decide if all elements (e.g. style, script) must be children of
|
|
7287
|
+
* document.body. By default, browsers might move them to document.head */
|
|
7288
|
+
let FORCE_BODY = false;
|
|
7289
|
+
/* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
|
|
7290
|
+
* string (or a TrustedHTML object if Trusted Types are supported).
|
|
7291
|
+
* If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
|
|
7292
|
+
*/
|
|
7293
|
+
let RETURN_DOM = false;
|
|
7294
|
+
/* Decide if a DOM `DocumentFragment` should be returned, instead of a html
|
|
7295
|
+
* string (or a TrustedHTML object if Trusted Types are supported) */
|
|
7296
|
+
let RETURN_DOM_FRAGMENT = false;
|
|
7297
|
+
/* Try to return a Trusted Type object instead of a string, return a string in
|
|
7298
|
+
* case Trusted Types are not supported */
|
|
7299
|
+
let RETURN_TRUSTED_TYPE = false;
|
|
7300
|
+
/* Output should be free from DOM clobbering attacks?
|
|
7301
|
+
* This sanitizes markups named with colliding, clobberable built-in DOM APIs.
|
|
7302
|
+
*/
|
|
7303
|
+
let SANITIZE_DOM = true;
|
|
7304
|
+
/* Achieve full DOM Clobbering protection by isolating the namespace of named
|
|
7305
|
+
* properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
|
|
7306
|
+
*
|
|
7307
|
+
* HTML/DOM spec rules that enable DOM Clobbering:
|
|
7308
|
+
* - Named Access on Window (§7.3.3)
|
|
7309
|
+
* - DOM Tree Accessors (§3.1.5)
|
|
7310
|
+
* - Form Element Parent-Child Relations (§4.10.3)
|
|
7311
|
+
* - Iframe srcdoc / Nested WindowProxies (§4.8.5)
|
|
7312
|
+
* - HTMLCollection (§4.2.10.2)
|
|
7313
|
+
*
|
|
7314
|
+
* Namespace isolation is implemented by prefixing `id` and `name` attributes
|
|
7315
|
+
* with a constant string, i.e., `user-content-`
|
|
7316
|
+
*/
|
|
7317
|
+
let SANITIZE_NAMED_PROPS = false;
|
|
7318
|
+
const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';
|
|
7319
|
+
/* Keep element content when removing element? */
|
|
7320
|
+
let KEEP_CONTENT = true;
|
|
7321
|
+
/* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
|
|
7322
|
+
* of importing it into a new Document and returning a sanitized copy */
|
|
7323
|
+
let IN_PLACE = false;
|
|
7324
|
+
/* Allow usage of profiles like html, svg and mathMl */
|
|
7325
|
+
let USE_PROFILES = {};
|
|
7326
|
+
/* Tags to ignore content of when KEEP_CONTENT is true */
|
|
7327
|
+
let FORBID_CONTENTS = null;
|
|
7328
|
+
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']);
|
|
7329
|
+
/* Tags that are safe for data: URIs */
|
|
7330
|
+
let DATA_URI_TAGS = null;
|
|
7331
|
+
const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
|
|
7332
|
+
/* Attributes safe for values like "javascript:" */
|
|
7333
|
+
let URI_SAFE_ATTRIBUTES = null;
|
|
7334
|
+
const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);
|
|
7335
|
+
const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
7336
|
+
const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
7337
|
+
const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
|
7338
|
+
/* Document namespace */
|
|
7339
|
+
let NAMESPACE = HTML_NAMESPACE;
|
|
7340
|
+
let IS_EMPTY_INPUT = false;
|
|
7341
|
+
/* Allowed XHTML+XML namespaces */
|
|
7342
|
+
let ALLOWED_NAMESPACES = null;
|
|
7343
|
+
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
|
7344
|
+
let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
|
|
7345
|
+
let HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);
|
|
7346
|
+
// Certain elements are allowed in both SVG and HTML
|
|
7347
|
+
// namespace. We need to specify them explicitly
|
|
7348
|
+
// so that they don't get erroneously deleted from
|
|
7349
|
+
// HTML namespace.
|
|
7350
|
+
const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
|
|
7351
|
+
/* Parsing of strict XHTML documents */
|
|
7352
|
+
let PARSER_MEDIA_TYPE = null;
|
|
7353
|
+
const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
|
|
7354
|
+
const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
|
|
7355
|
+
let transformCaseFunc = null;
|
|
7356
|
+
/* Keep a reference to config to pass to hooks */
|
|
7357
|
+
let CONFIG = null;
|
|
7358
|
+
/* Ideally, do not touch anything below this line */
|
|
7359
|
+
/* ______________________________________________ */
|
|
7360
|
+
const formElement = document.createElement('form');
|
|
7361
|
+
const isRegexOrFunction = function isRegexOrFunction(testValue) {
|
|
7362
|
+
return testValue instanceof RegExp || testValue instanceof Function;
|
|
7363
|
+
};
|
|
7364
|
+
/**
|
|
7365
|
+
* _parseConfig
|
|
7366
|
+
*
|
|
7367
|
+
* @param cfg optional config literal
|
|
7368
|
+
*/
|
|
7369
|
+
// eslint-disable-next-line complexity
|
|
7370
|
+
const _parseConfig = function _parseConfig() {
|
|
7371
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7372
|
+
if (CONFIG && CONFIG === cfg) {
|
|
7373
|
+
return;
|
|
7374
|
+
}
|
|
7375
|
+
/* Shield configuration object from tampering */
|
|
7376
|
+
if (!cfg || typeof cfg !== 'object') {
|
|
7377
|
+
cfg = {};
|
|
7378
|
+
}
|
|
7379
|
+
/* Shield configuration object from prototype pollution */
|
|
7380
|
+
cfg = clone(cfg);
|
|
7381
|
+
PARSER_MEDIA_TYPE =
|
|
7382
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
|
7383
|
+
SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
|
|
7384
|
+
// HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
|
|
7385
|
+
transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
|
|
7386
|
+
/* Set configuration parameters */
|
|
7387
|
+
ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
|
7388
|
+
ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
|
7389
|
+
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
|
7390
|
+
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;
|
|
7391
|
+
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;
|
|
7392
|
+
FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
7393
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
7394
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
7395
|
+
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
|
|
7396
|
+
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
|
7397
|
+
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
|
7398
|
+
ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
|
|
7399
|
+
ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true
|
|
7400
|
+
SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
|
|
7401
|
+
SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true
|
|
7402
|
+
WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
|
|
7403
|
+
RETURN_DOM = cfg.RETURN_DOM || false; // Default false
|
|
7404
|
+
RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
|
|
7405
|
+
RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
|
|
7406
|
+
FORCE_BODY = cfg.FORCE_BODY || false; // Default false
|
|
7407
|
+
SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
|
|
7408
|
+
SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
|
|
7409
|
+
KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
|
|
7410
|
+
IN_PLACE = cfg.IN_PLACE || false; // Default false
|
|
7411
|
+
IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
|
|
7412
|
+
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
|
7413
|
+
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
|
|
7414
|
+
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
|
|
7415
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
|
|
7416
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
|
7417
|
+
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|
|
7418
|
+
}
|
|
7419
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
|
|
7420
|
+
CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
|
|
7421
|
+
}
|
|
7422
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {
|
|
7423
|
+
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
|
|
7424
|
+
}
|
|
7425
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
7426
|
+
ALLOW_DATA_ATTR = false;
|
|
7427
|
+
}
|
|
7428
|
+
if (RETURN_DOM_FRAGMENT) {
|
|
7429
|
+
RETURN_DOM = true;
|
|
7430
|
+
}
|
|
7431
|
+
/* Parse profile info */
|
|
7432
|
+
if (USE_PROFILES) {
|
|
7433
|
+
ALLOWED_TAGS = addToSet({}, text);
|
|
7434
|
+
ALLOWED_ATTR = [];
|
|
7435
|
+
if (USE_PROFILES.html === true) {
|
|
7436
|
+
addToSet(ALLOWED_TAGS, html$1);
|
|
7437
|
+
addToSet(ALLOWED_ATTR, html);
|
|
7438
|
+
}
|
|
7439
|
+
if (USE_PROFILES.svg === true) {
|
|
7440
|
+
addToSet(ALLOWED_TAGS, svg$1);
|
|
7441
|
+
addToSet(ALLOWED_ATTR, svg);
|
|
7442
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7443
|
+
}
|
|
7444
|
+
if (USE_PROFILES.svgFilters === true) {
|
|
7445
|
+
addToSet(ALLOWED_TAGS, svgFilters);
|
|
7446
|
+
addToSet(ALLOWED_ATTR, svg);
|
|
7447
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7448
|
+
}
|
|
7449
|
+
if (USE_PROFILES.mathMl === true) {
|
|
7450
|
+
addToSet(ALLOWED_TAGS, mathMl$1);
|
|
7451
|
+
addToSet(ALLOWED_ATTR, mathMl);
|
|
7452
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
7453
|
+
}
|
|
7454
|
+
}
|
|
7455
|
+
/* Merge configuration parameters */
|
|
7456
|
+
if (cfg.ADD_TAGS) {
|
|
7457
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
7458
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
7459
|
+
}
|
|
7460
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
7461
|
+
}
|
|
7462
|
+
if (cfg.ADD_ATTR) {
|
|
7463
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
7464
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
7465
|
+
}
|
|
7466
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
7467
|
+
}
|
|
7468
|
+
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
7469
|
+
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
7470
|
+
}
|
|
7471
|
+
if (cfg.FORBID_CONTENTS) {
|
|
7472
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
7473
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
7474
|
+
}
|
|
7475
|
+
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
7476
|
+
}
|
|
7477
|
+
/* Add #text in case KEEP_CONTENT is set to true */
|
|
7478
|
+
if (KEEP_CONTENT) {
|
|
7479
|
+
ALLOWED_TAGS['#text'] = true;
|
|
7480
|
+
}
|
|
7481
|
+
/* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
|
|
7482
|
+
if (WHOLE_DOCUMENT) {
|
|
7483
|
+
addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
|
|
7484
|
+
}
|
|
7485
|
+
/* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
|
|
7486
|
+
if (ALLOWED_TAGS.table) {
|
|
7487
|
+
addToSet(ALLOWED_TAGS, ['tbody']);
|
|
7488
|
+
delete FORBID_TAGS.tbody;
|
|
7489
|
+
}
|
|
7490
|
+
if (cfg.TRUSTED_TYPES_POLICY) {
|
|
7491
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
|
|
7492
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
7493
|
+
}
|
|
7494
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
|
|
7495
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
7496
|
+
}
|
|
7497
|
+
// Overwrite existing TrustedTypes policy.
|
|
7498
|
+
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
|
7499
|
+
// Sign local variables required by `sanitize`.
|
|
7500
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
|
7501
|
+
} else {
|
|
7502
|
+
// Uninitialized policy, attempt to initialize the internal dompurify policy.
|
|
7503
|
+
if (trustedTypesPolicy === undefined) {
|
|
7504
|
+
trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
|
7505
|
+
}
|
|
7506
|
+
// If creating the internal policy succeeded sign internal variables.
|
|
7507
|
+
if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {
|
|
7508
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
|
7509
|
+
}
|
|
7510
|
+
}
|
|
7511
|
+
// Prevent further manipulation of configuration.
|
|
7512
|
+
// Not available in IE8, Safari 5, etc.
|
|
7513
|
+
if (freeze) {
|
|
7514
|
+
freeze(cfg);
|
|
7515
|
+
}
|
|
7516
|
+
CONFIG = cfg;
|
|
7517
|
+
};
|
|
7518
|
+
/* Keep track of all possible SVG and MathML tags
|
|
7519
|
+
* so that we can perform the namespace checks
|
|
7520
|
+
* correctly. */
|
|
7521
|
+
const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
|
|
7522
|
+
const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
|
|
7523
|
+
/**
|
|
7524
|
+
* @param element a DOM element whose namespace is being checked
|
|
7525
|
+
* @returns Return false if the element has a
|
|
7526
|
+
* namespace that a spec-compliant parser would never
|
|
7527
|
+
* return. Return true otherwise.
|
|
7528
|
+
*/
|
|
7529
|
+
const _checkValidNamespace = function _checkValidNamespace(element) {
|
|
7530
|
+
let parent = getParentNode(element);
|
|
7531
|
+
// In JSDOM, if we're inside shadow DOM, then parentNode
|
|
7532
|
+
// can be null. We just simulate parent in this case.
|
|
7533
|
+
if (!parent || !parent.tagName) {
|
|
7534
|
+
parent = {
|
|
7535
|
+
namespaceURI: NAMESPACE,
|
|
7536
|
+
tagName: 'template'
|
|
7537
|
+
};
|
|
7538
|
+
}
|
|
7539
|
+
const tagName = stringToLowerCase(element.tagName);
|
|
7540
|
+
const parentTagName = stringToLowerCase(parent.tagName);
|
|
7541
|
+
if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
7542
|
+
return false;
|
|
7543
|
+
}
|
|
7544
|
+
if (element.namespaceURI === SVG_NAMESPACE) {
|
|
7545
|
+
// The only way to switch from HTML namespace to SVG
|
|
7546
|
+
// is via <svg>. If it happens via any other tag, then
|
|
7547
|
+
// it should be killed.
|
|
7548
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
7549
|
+
return tagName === 'svg';
|
|
7550
|
+
}
|
|
7551
|
+
// The only way to switch from MathML to SVG is via`
|
|
7552
|
+
// svg if parent is either <annotation-xml> or MathML
|
|
7553
|
+
// text integration points.
|
|
7554
|
+
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
|
7555
|
+
return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
|
7556
|
+
}
|
|
7557
|
+
// We only allow elements that are defined in SVG
|
|
7558
|
+
// spec. All others are disallowed in SVG namespace.
|
|
7559
|
+
return Boolean(ALL_SVG_TAGS[tagName]);
|
|
7560
|
+
}
|
|
7561
|
+
if (element.namespaceURI === MATHML_NAMESPACE) {
|
|
7562
|
+
// The only way to switch from HTML namespace to MathML
|
|
7563
|
+
// is via <math>. If it happens via any other tag, then
|
|
7564
|
+
// it should be killed.
|
|
7565
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
7566
|
+
return tagName === 'math';
|
|
7567
|
+
}
|
|
7568
|
+
// The only way to switch from SVG to MathML is via
|
|
7569
|
+
// <math> and HTML integration points
|
|
7570
|
+
if (parent.namespaceURI === SVG_NAMESPACE) {
|
|
7571
|
+
return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
|
|
7572
|
+
}
|
|
7573
|
+
// We only allow elements that are defined in MathML
|
|
7574
|
+
// spec. All others are disallowed in MathML namespace.
|
|
7575
|
+
return Boolean(ALL_MATHML_TAGS[tagName]);
|
|
7576
|
+
}
|
|
7577
|
+
if (element.namespaceURI === HTML_NAMESPACE) {
|
|
7578
|
+
// The only way to switch from SVG to HTML is via
|
|
7579
|
+
// HTML integration points, and from MathML to HTML
|
|
7580
|
+
// is via MathML text integration points
|
|
7581
|
+
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
|
7582
|
+
return false;
|
|
7583
|
+
}
|
|
7584
|
+
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
|
7585
|
+
return false;
|
|
7586
|
+
}
|
|
7587
|
+
// We disallow tags that are specific for MathML
|
|
7588
|
+
// or SVG and should never appear in HTML namespace
|
|
7589
|
+
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
|
7590
|
+
}
|
|
7591
|
+
// For XHTML and XML documents that support custom namespaces
|
|
7592
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
7593
|
+
return true;
|
|
7594
|
+
}
|
|
7595
|
+
// The code should never reach this place (this means
|
|
7596
|
+
// that the element somehow got namespace that is not
|
|
7597
|
+
// HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
|
|
7598
|
+
// Return false just in case.
|
|
7599
|
+
return false;
|
|
7600
|
+
};
|
|
7601
|
+
/**
|
|
7602
|
+
* _forceRemove
|
|
7603
|
+
*
|
|
7604
|
+
* @param node a DOM node
|
|
7605
|
+
*/
|
|
7606
|
+
const _forceRemove = function _forceRemove(node) {
|
|
7607
|
+
arrayPush(DOMPurify.removed, {
|
|
7608
|
+
element: node
|
|
7609
|
+
});
|
|
7610
|
+
try {
|
|
7611
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-remove
|
|
7612
|
+
getParentNode(node).removeChild(node);
|
|
7613
|
+
} catch (_) {
|
|
7614
|
+
remove(node);
|
|
7615
|
+
}
|
|
7616
|
+
};
|
|
7617
|
+
/**
|
|
7618
|
+
* _removeAttribute
|
|
7619
|
+
*
|
|
7620
|
+
* @param name an Attribute name
|
|
7621
|
+
* @param element a DOM node
|
|
7622
|
+
*/
|
|
7623
|
+
const _removeAttribute = function _removeAttribute(name, element) {
|
|
7624
|
+
try {
|
|
7625
|
+
arrayPush(DOMPurify.removed, {
|
|
7626
|
+
attribute: element.getAttributeNode(name),
|
|
7627
|
+
from: element
|
|
7628
|
+
});
|
|
7629
|
+
} catch (_) {
|
|
7630
|
+
arrayPush(DOMPurify.removed, {
|
|
7631
|
+
attribute: null,
|
|
7632
|
+
from: element
|
|
7633
|
+
});
|
|
7634
|
+
}
|
|
7635
|
+
element.removeAttribute(name);
|
|
7636
|
+
// We void attribute values for unremovable "is" attributes
|
|
7637
|
+
if (name === 'is') {
|
|
7638
|
+
if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
|
|
7639
|
+
try {
|
|
7640
|
+
_forceRemove(element);
|
|
7641
|
+
} catch (_) {}
|
|
7642
|
+
} else {
|
|
7643
|
+
try {
|
|
7644
|
+
element.setAttribute(name, '');
|
|
7645
|
+
} catch (_) {}
|
|
7646
|
+
}
|
|
7647
|
+
}
|
|
7648
|
+
};
|
|
7649
|
+
/**
|
|
7650
|
+
* _initDocument
|
|
7651
|
+
*
|
|
7652
|
+
* @param dirty - a string of dirty markup
|
|
7653
|
+
* @return a DOM, filled with the dirty markup
|
|
7654
|
+
*/
|
|
7655
|
+
const _initDocument = function _initDocument(dirty) {
|
|
7656
|
+
/* Create a HTML document */
|
|
7657
|
+
let doc = null;
|
|
7658
|
+
let leadingWhitespace = null;
|
|
7659
|
+
if (FORCE_BODY) {
|
|
7660
|
+
dirty = '<remove></remove>' + dirty;
|
|
7661
|
+
} else {
|
|
7662
|
+
/* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
|
|
7663
|
+
const matches = stringMatch(dirty, /^[\r\n\t ]+/);
|
|
7664
|
+
leadingWhitespace = matches && matches[0];
|
|
7665
|
+
}
|
|
7666
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {
|
|
7667
|
+
// Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
|
|
7668
|
+
dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
|
|
7669
|
+
}
|
|
7670
|
+
const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
7671
|
+
/*
|
|
7672
|
+
* Use the DOMParser API by default, fallback later if needs be
|
|
7673
|
+
* DOMParser not work for svg when has multiple root element.
|
|
7674
|
+
*/
|
|
7675
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
7676
|
+
try {
|
|
7677
|
+
doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
|
|
7678
|
+
} catch (_) {}
|
|
7679
|
+
}
|
|
7680
|
+
/* Use createHTMLDocument in case DOMParser is not available */
|
|
7681
|
+
if (!doc || !doc.documentElement) {
|
|
7682
|
+
doc = implementation.createDocument(NAMESPACE, 'template', null);
|
|
7683
|
+
try {
|
|
7684
|
+
doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
|
|
7685
|
+
} catch (_) {
|
|
7686
|
+
// Syntax error if dirtyPayload is invalid xml
|
|
7687
|
+
}
|
|
7688
|
+
}
|
|
7689
|
+
const body = doc.body || doc.documentElement;
|
|
7690
|
+
if (dirty && leadingWhitespace) {
|
|
7691
|
+
body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
|
|
7692
|
+
}
|
|
7693
|
+
/* Work on whole document or just its body */
|
|
7694
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
7695
|
+
return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
|
|
7696
|
+
}
|
|
7697
|
+
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
|
7698
|
+
};
|
|
7699
|
+
/**
|
|
7700
|
+
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
|
7701
|
+
*
|
|
7702
|
+
* @param root The root element or node to start traversing on.
|
|
7703
|
+
* @return The created NodeIterator
|
|
7704
|
+
*/
|
|
7705
|
+
const _createNodeIterator = function _createNodeIterator(root) {
|
|
7706
|
+
return createNodeIterator.call(root.ownerDocument || root, root,
|
|
7707
|
+
// eslint-disable-next-line no-bitwise
|
|
7708
|
+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
|
7709
|
+
};
|
|
7710
|
+
/**
|
|
7711
|
+
* _isClobbered
|
|
7712
|
+
*
|
|
7713
|
+
* @param element element to check for clobbering attacks
|
|
7714
|
+
* @return true if clobbered, false if safe
|
|
7715
|
+
*/
|
|
7716
|
+
const _isClobbered = function _isClobbered(element) {
|
|
7717
|
+
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');
|
|
7718
|
+
};
|
|
7719
|
+
/**
|
|
7720
|
+
* Checks whether the given object is a DOM node.
|
|
7721
|
+
*
|
|
7722
|
+
* @param value object to check whether it's a DOM node
|
|
7723
|
+
* @return true is object is a DOM node
|
|
7724
|
+
*/
|
|
7725
|
+
const _isNode = function _isNode(value) {
|
|
7726
|
+
return typeof Node === 'function' && value instanceof Node;
|
|
7727
|
+
};
|
|
7728
|
+
function _executeHooks(hooks, currentNode, data) {
|
|
7729
|
+
arrayForEach(hooks, hook => {
|
|
7730
|
+
hook.call(DOMPurify, currentNode, data, CONFIG);
|
|
7731
|
+
});
|
|
7732
|
+
}
|
|
7733
|
+
/**
|
|
7734
|
+
* _sanitizeElements
|
|
7735
|
+
*
|
|
7736
|
+
* @protect nodeName
|
|
7737
|
+
* @protect textContent
|
|
7738
|
+
* @protect removeChild
|
|
7739
|
+
* @param currentNode to check for permission to exist
|
|
7740
|
+
* @return true if node was killed, false if left alive
|
|
7741
|
+
*/
|
|
7742
|
+
const _sanitizeElements = function _sanitizeElements(currentNode) {
|
|
7743
|
+
let content = null;
|
|
7744
|
+
/* Execute a hook if present */
|
|
7745
|
+
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
7746
|
+
/* Check if element is clobbered or can clobber */
|
|
7747
|
+
if (_isClobbered(currentNode)) {
|
|
7748
|
+
_forceRemove(currentNode);
|
|
7749
|
+
return true;
|
|
7750
|
+
}
|
|
7751
|
+
/* Now let's check the element's type and name */
|
|
7752
|
+
const tagName = transformCaseFunc(currentNode.nodeName);
|
|
7753
|
+
/* Execute a hook if present */
|
|
7754
|
+
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
|
7755
|
+
tagName,
|
|
7756
|
+
allowedTags: ALLOWED_TAGS
|
|
7757
|
+
});
|
|
7758
|
+
/* Detect mXSS attempts abusing namespace confusion */
|
|
7759
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
7760
|
+
_forceRemove(currentNode);
|
|
7761
|
+
return true;
|
|
7762
|
+
}
|
|
7763
|
+
/* Remove any occurrence of processing instructions */
|
|
7764
|
+
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
7765
|
+
_forceRemove(currentNode);
|
|
7766
|
+
return true;
|
|
7767
|
+
}
|
|
7768
|
+
/* Remove any kind of possibly harmful comments */
|
|
7769
|
+
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
|
|
7770
|
+
_forceRemove(currentNode);
|
|
7771
|
+
return true;
|
|
7772
|
+
}
|
|
7773
|
+
/* Remove element if anything forbids its presence */
|
|
7774
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
7775
|
+
/* Check if we have a custom element to handle */
|
|
7776
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
7777
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
7778
|
+
return false;
|
|
7779
|
+
}
|
|
7780
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
|
7781
|
+
return false;
|
|
7782
|
+
}
|
|
7783
|
+
}
|
|
7784
|
+
/* Keep content except for bad-listed elements */
|
|
7785
|
+
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
7786
|
+
const parentNode = getParentNode(currentNode) || currentNode.parentNode;
|
|
7787
|
+
const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
|
|
7788
|
+
if (childNodes && parentNode) {
|
|
7789
|
+
const childCount = childNodes.length;
|
|
7790
|
+
for (let i = childCount - 1; i >= 0; --i) {
|
|
7791
|
+
const childClone = cloneNode(childNodes[i], true);
|
|
7792
|
+
childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
|
|
7793
|
+
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
|
7794
|
+
}
|
|
7795
|
+
}
|
|
7796
|
+
}
|
|
7797
|
+
_forceRemove(currentNode);
|
|
7798
|
+
return true;
|
|
7799
|
+
}
|
|
7800
|
+
/* Check whether element has a valid namespace */
|
|
7801
|
+
if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
|
|
7802
|
+
_forceRemove(currentNode);
|
|
7803
|
+
return true;
|
|
7804
|
+
}
|
|
7805
|
+
/* Make sure that older browsers don't get fallback-tag mXSS */
|
|
7806
|
+
if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
|
|
7807
|
+
_forceRemove(currentNode);
|
|
7808
|
+
return true;
|
|
7809
|
+
}
|
|
7810
|
+
/* Sanitize element content to be template-safe */
|
|
7811
|
+
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
|
|
7812
|
+
/* Get the element's text content */
|
|
7813
|
+
content = currentNode.textContent;
|
|
7814
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
7815
|
+
content = stringReplace(content, expr, ' ');
|
|
7816
|
+
});
|
|
7817
|
+
if (currentNode.textContent !== content) {
|
|
7818
|
+
arrayPush(DOMPurify.removed, {
|
|
7819
|
+
element: currentNode.cloneNode()
|
|
7820
|
+
});
|
|
7821
|
+
currentNode.textContent = content;
|
|
7822
|
+
}
|
|
7823
|
+
}
|
|
7824
|
+
/* Execute a hook if present */
|
|
7825
|
+
_executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
|
7826
|
+
return false;
|
|
7827
|
+
};
|
|
7828
|
+
/**
|
|
7829
|
+
* _isValidAttribute
|
|
7830
|
+
*
|
|
7831
|
+
* @param lcTag Lowercase tag name of containing element.
|
|
7832
|
+
* @param lcName Lowercase attribute name.
|
|
7833
|
+
* @param value Attribute value.
|
|
7834
|
+
* @return Returns true if `value` is valid, otherwise false.
|
|
7835
|
+
*/
|
|
7836
|
+
// eslint-disable-next-line complexity
|
|
7837
|
+
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
7838
|
+
/* Make sure attribute cannot clobber */
|
|
7839
|
+
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
7840
|
+
return false;
|
|
7841
|
+
}
|
|
7842
|
+
/* Allow valid data-* attributes: At least one character after "-"
|
|
7843
|
+
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
7844
|
+
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
7845
|
+
We don't need to check the value; it's always URI safe. */
|
|
7846
|
+
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]) {
|
|
7847
|
+
if (
|
|
7848
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
7849
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
7850
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
7851
|
+
_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)) ||
|
|
7852
|
+
// Alternative, second condition checks if it's an `is`-attribute, AND
|
|
7853
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
7854
|
+
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 {
|
|
7855
|
+
return false;
|
|
7856
|
+
}
|
|
7857
|
+
/* Check value is safe. First, is attr inert? If so, is safe */
|
|
7858
|
+
} 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) {
|
|
7859
|
+
return false;
|
|
7860
|
+
} else ;
|
|
7861
|
+
return true;
|
|
7862
|
+
};
|
|
7863
|
+
/**
|
|
7864
|
+
* _isBasicCustomElement
|
|
7865
|
+
* checks if at least one dash is included in tagName, and it's not the first char
|
|
7866
|
+
* for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
|
|
7867
|
+
*
|
|
7868
|
+
* @param tagName name of the tag of the node to sanitize
|
|
7869
|
+
* @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
|
7870
|
+
*/
|
|
7871
|
+
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
|
7872
|
+
return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);
|
|
7873
|
+
};
|
|
7874
|
+
/**
|
|
7875
|
+
* _sanitizeAttributes
|
|
7876
|
+
*
|
|
7877
|
+
* @protect attributes
|
|
7878
|
+
* @protect nodeName
|
|
7879
|
+
* @protect removeAttribute
|
|
7880
|
+
* @protect setAttribute
|
|
7881
|
+
*
|
|
7882
|
+
* @param currentNode to sanitize
|
|
7883
|
+
*/
|
|
7884
|
+
const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
|
|
7885
|
+
/* Execute a hook if present */
|
|
7886
|
+
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
|
7887
|
+
const {
|
|
7888
|
+
attributes
|
|
7889
|
+
} = currentNode;
|
|
7890
|
+
/* Check if we have attributes; if not we might have a text node */
|
|
7891
|
+
if (!attributes || _isClobbered(currentNode)) {
|
|
7892
|
+
return;
|
|
7893
|
+
}
|
|
7894
|
+
const hookEvent = {
|
|
7895
|
+
attrName: '',
|
|
7896
|
+
attrValue: '',
|
|
7897
|
+
keepAttr: true,
|
|
7898
|
+
allowedAttributes: ALLOWED_ATTR,
|
|
7899
|
+
forceKeepAttr: undefined
|
|
7900
|
+
};
|
|
7901
|
+
let l = attributes.length;
|
|
7902
|
+
/* Go backwards over all attributes; safely remove bad ones */
|
|
7903
|
+
while (l--) {
|
|
7904
|
+
const attr = attributes[l];
|
|
7905
|
+
const {
|
|
7906
|
+
name,
|
|
7907
|
+
namespaceURI,
|
|
7908
|
+
value: attrValue
|
|
7909
|
+
} = attr;
|
|
7910
|
+
const lcName = transformCaseFunc(name);
|
|
7911
|
+
const initValue = attrValue;
|
|
7912
|
+
let value = name === 'value' ? initValue : stringTrim(initValue);
|
|
7913
|
+
/* Execute a hook if present */
|
|
7914
|
+
hookEvent.attrName = lcName;
|
|
7915
|
+
hookEvent.attrValue = value;
|
|
7916
|
+
hookEvent.keepAttr = true;
|
|
7917
|
+
hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
|
|
7918
|
+
_executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
|
|
7919
|
+
value = hookEvent.attrValue;
|
|
7920
|
+
/* Full DOM Clobbering protection via namespace isolation,
|
|
7921
|
+
* Prefix id and name attributes with `user-content-`
|
|
7922
|
+
*/
|
|
7923
|
+
if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {
|
|
7924
|
+
// Remove the attribute with this value
|
|
7925
|
+
_removeAttribute(name, currentNode);
|
|
7926
|
+
// Prefix the value and later re-create the attribute with the sanitized value
|
|
7927
|
+
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
7928
|
+
}
|
|
7929
|
+
/* Work around a security issue with comments inside attributes */
|
|
7930
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
7931
|
+
_removeAttribute(name, currentNode);
|
|
7932
|
+
continue;
|
|
7933
|
+
}
|
|
7934
|
+
/* Did the hooks approve of the attribute? */
|
|
7935
|
+
if (hookEvent.forceKeepAttr) {
|
|
7936
|
+
continue;
|
|
7937
|
+
}
|
|
7938
|
+
/* Did the hooks approve of the attribute? */
|
|
7939
|
+
if (!hookEvent.keepAttr) {
|
|
7940
|
+
_removeAttribute(name, currentNode);
|
|
7941
|
+
continue;
|
|
7942
|
+
}
|
|
7943
|
+
/* Work around a security issue in jQuery 3.0 */
|
|
7944
|
+
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
7945
|
+
_removeAttribute(name, currentNode);
|
|
7946
|
+
continue;
|
|
7947
|
+
}
|
|
7948
|
+
/* Sanitize attribute content to be template-safe */
|
|
7949
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
7950
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
7951
|
+
value = stringReplace(value, expr, ' ');
|
|
7952
|
+
});
|
|
7953
|
+
}
|
|
7954
|
+
/* Is `value` valid for this attribute? */
|
|
7955
|
+
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
7956
|
+
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
7957
|
+
_removeAttribute(name, currentNode);
|
|
7958
|
+
continue;
|
|
7959
|
+
}
|
|
7960
|
+
/* Handle attributes that require Trusted Types */
|
|
7961
|
+
if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {
|
|
7962
|
+
if (namespaceURI) ; else {
|
|
7963
|
+
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
7964
|
+
case 'TrustedHTML':
|
|
7965
|
+
{
|
|
7966
|
+
value = trustedTypesPolicy.createHTML(value);
|
|
7967
|
+
break;
|
|
7968
|
+
}
|
|
7969
|
+
case 'TrustedScriptURL':
|
|
7970
|
+
{
|
|
7971
|
+
value = trustedTypesPolicy.createScriptURL(value);
|
|
7972
|
+
break;
|
|
7973
|
+
}
|
|
7974
|
+
}
|
|
7975
|
+
}
|
|
7976
|
+
}
|
|
7977
|
+
/* Handle invalid data-* attribute set by try-catching it */
|
|
7978
|
+
if (value !== initValue) {
|
|
7979
|
+
try {
|
|
7980
|
+
if (namespaceURI) {
|
|
7981
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
7982
|
+
} else {
|
|
7983
|
+
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
|
7984
|
+
currentNode.setAttribute(name, value);
|
|
7985
|
+
}
|
|
7986
|
+
if (_isClobbered(currentNode)) {
|
|
7987
|
+
_forceRemove(currentNode);
|
|
7988
|
+
} else {
|
|
7989
|
+
arrayPop(DOMPurify.removed);
|
|
7990
|
+
}
|
|
7991
|
+
} catch (_) {
|
|
7992
|
+
_removeAttribute(name, currentNode);
|
|
7993
|
+
}
|
|
7994
|
+
}
|
|
7995
|
+
}
|
|
7996
|
+
/* Execute a hook if present */
|
|
7997
|
+
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
7998
|
+
};
|
|
7999
|
+
/**
|
|
8000
|
+
* _sanitizeShadowDOM
|
|
8001
|
+
*
|
|
8002
|
+
* @param fragment to iterate over recursively
|
|
8003
|
+
*/
|
|
8004
|
+
const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
|
|
8005
|
+
let shadowNode = null;
|
|
8006
|
+
const shadowIterator = _createNodeIterator(fragment);
|
|
8007
|
+
/* Execute a hook if present */
|
|
8008
|
+
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
8009
|
+
while (shadowNode = shadowIterator.nextNode()) {
|
|
8010
|
+
/* Execute a hook if present */
|
|
8011
|
+
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
|
8012
|
+
/* Sanitize tags and elements */
|
|
8013
|
+
_sanitizeElements(shadowNode);
|
|
8014
|
+
/* Check attributes next */
|
|
8015
|
+
_sanitizeAttributes(shadowNode);
|
|
8016
|
+
/* Deep shadow DOM detected */
|
|
8017
|
+
if (shadowNode.content instanceof DocumentFragment) {
|
|
8018
|
+
_sanitizeShadowDOM(shadowNode.content);
|
|
8019
|
+
}
|
|
8020
|
+
}
|
|
8021
|
+
/* Execute a hook if present */
|
|
8022
|
+
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
8023
|
+
};
|
|
8024
|
+
// eslint-disable-next-line complexity
|
|
8025
|
+
DOMPurify.sanitize = function (dirty) {
|
|
8026
|
+
let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8027
|
+
let body = null;
|
|
8028
|
+
let importedNode = null;
|
|
8029
|
+
let currentNode = null;
|
|
8030
|
+
let returnNode = null;
|
|
8031
|
+
/* Make sure we have a string to sanitize.
|
|
8032
|
+
DO NOT return early, as this will return the wrong type if
|
|
8033
|
+
the user has requested a DOM object rather than a string */
|
|
8034
|
+
IS_EMPTY_INPUT = !dirty;
|
|
8035
|
+
if (IS_EMPTY_INPUT) {
|
|
8036
|
+
dirty = '<!-->';
|
|
8037
|
+
}
|
|
8038
|
+
/* Stringify, in case dirty is an object */
|
|
8039
|
+
if (typeof dirty !== 'string' && !_isNode(dirty)) {
|
|
8040
|
+
if (typeof dirty.toString === 'function') {
|
|
8041
|
+
dirty = dirty.toString();
|
|
8042
|
+
if (typeof dirty !== 'string') {
|
|
8043
|
+
throw typeErrorCreate('dirty is not a string, aborting');
|
|
8044
|
+
}
|
|
8045
|
+
} else {
|
|
8046
|
+
throw typeErrorCreate('toString is not a function');
|
|
8047
|
+
}
|
|
8048
|
+
}
|
|
8049
|
+
/* Return dirty HTML if DOMPurify cannot run */
|
|
8050
|
+
if (!DOMPurify.isSupported) {
|
|
8051
|
+
return dirty;
|
|
8052
|
+
}
|
|
8053
|
+
/* Assign config vars */
|
|
8054
|
+
if (!SET_CONFIG) {
|
|
8055
|
+
_parseConfig(cfg);
|
|
8056
|
+
}
|
|
8057
|
+
/* Clean up removed elements */
|
|
8058
|
+
DOMPurify.removed = [];
|
|
8059
|
+
/* Check if dirty is correctly typed for IN_PLACE */
|
|
8060
|
+
if (typeof dirty === 'string') {
|
|
8061
|
+
IN_PLACE = false;
|
|
8062
|
+
}
|
|
8063
|
+
if (IN_PLACE) {
|
|
8064
|
+
/* Do some early pre-sanitization to avoid unsafe root nodes */
|
|
8065
|
+
if (dirty.nodeName) {
|
|
8066
|
+
const tagName = transformCaseFunc(dirty.nodeName);
|
|
8067
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
8068
|
+
throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
|
|
8069
|
+
}
|
|
8070
|
+
}
|
|
8071
|
+
} else if (dirty instanceof Node) {
|
|
8072
|
+
/* If dirty is a DOM element, append to an empty document to avoid
|
|
8073
|
+
elements being stripped by the parser */
|
|
8074
|
+
body = _initDocument('<!---->');
|
|
8075
|
+
importedNode = body.ownerDocument.importNode(dirty, true);
|
|
8076
|
+
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {
|
|
8077
|
+
/* Node is already a body, use as is */
|
|
8078
|
+
body = importedNode;
|
|
8079
|
+
} else if (importedNode.nodeName === 'HTML') {
|
|
8080
|
+
body = importedNode;
|
|
8081
|
+
} else {
|
|
8082
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
|
8083
|
+
body.appendChild(importedNode);
|
|
8084
|
+
}
|
|
8085
|
+
} else {
|
|
8086
|
+
/* Exit directly if we have nothing to do */
|
|
8087
|
+
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
|
|
8088
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
|
8089
|
+
dirty.indexOf('<') === -1) {
|
|
8090
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
8091
|
+
}
|
|
8092
|
+
/* Initialize the document to work on */
|
|
8093
|
+
body = _initDocument(dirty);
|
|
8094
|
+
/* Check we have a DOM node from the data */
|
|
8095
|
+
if (!body) {
|
|
8096
|
+
return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
|
|
8097
|
+
}
|
|
8098
|
+
}
|
|
8099
|
+
/* Remove first element node (ours) if FORCE_BODY is set */
|
|
8100
|
+
if (body && FORCE_BODY) {
|
|
8101
|
+
_forceRemove(body.firstChild);
|
|
8102
|
+
}
|
|
8103
|
+
/* Get node iterator */
|
|
8104
|
+
const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
|
|
8105
|
+
/* Now start iterating over the created document */
|
|
8106
|
+
while (currentNode = nodeIterator.nextNode()) {
|
|
8107
|
+
/* Sanitize tags and elements */
|
|
8108
|
+
_sanitizeElements(currentNode);
|
|
8109
|
+
/* Check attributes next */
|
|
8110
|
+
_sanitizeAttributes(currentNode);
|
|
8111
|
+
/* Shadow DOM detected, sanitize it */
|
|
8112
|
+
if (currentNode.content instanceof DocumentFragment) {
|
|
8113
|
+
_sanitizeShadowDOM(currentNode.content);
|
|
8114
|
+
}
|
|
8115
|
+
}
|
|
8116
|
+
/* If we sanitized `dirty` in-place, return it. */
|
|
8117
|
+
if (IN_PLACE) {
|
|
8118
|
+
return dirty;
|
|
8119
|
+
}
|
|
8120
|
+
/* Return sanitized string or DOM */
|
|
8121
|
+
if (RETURN_DOM) {
|
|
8122
|
+
if (RETURN_DOM_FRAGMENT) {
|
|
8123
|
+
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
8124
|
+
while (body.firstChild) {
|
|
8125
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
|
8126
|
+
returnNode.appendChild(body.firstChild);
|
|
8127
|
+
}
|
|
8128
|
+
} else {
|
|
8129
|
+
returnNode = body;
|
|
8130
|
+
}
|
|
8131
|
+
if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
|
|
8132
|
+
/*
|
|
8133
|
+
AdoptNode() is not used because internal state is not reset
|
|
8134
|
+
(e.g. the past names map of a HTMLFormElement), this is safe
|
|
8135
|
+
in theory but we would rather not risk another attack vector.
|
|
8136
|
+
The state that is cloned by importNode() is explicitly defined
|
|
8137
|
+
by the specs.
|
|
8138
|
+
*/
|
|
8139
|
+
returnNode = importNode.call(originalDocument, returnNode, true);
|
|
8140
|
+
}
|
|
8141
|
+
return returnNode;
|
|
8142
|
+
}
|
|
8143
|
+
let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
|
|
8144
|
+
/* Serialize doctype if allowed */
|
|
8145
|
+
if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
|
|
8146
|
+
serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
|
|
8147
|
+
}
|
|
8148
|
+
/* Sanitize final string template-safe */
|
|
8149
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
8150
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
8151
|
+
serializedHTML = stringReplace(serializedHTML, expr, ' ');
|
|
8152
|
+
});
|
|
8153
|
+
}
|
|
8154
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
|
|
8155
|
+
};
|
|
8156
|
+
DOMPurify.setConfig = function () {
|
|
8157
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8158
|
+
_parseConfig(cfg);
|
|
8159
|
+
SET_CONFIG = true;
|
|
8160
|
+
};
|
|
8161
|
+
DOMPurify.clearConfig = function () {
|
|
8162
|
+
CONFIG = null;
|
|
8163
|
+
SET_CONFIG = false;
|
|
8164
|
+
};
|
|
8165
|
+
DOMPurify.isValidAttribute = function (tag, attr, value) {
|
|
8166
|
+
/* Initialize shared config vars if necessary. */
|
|
8167
|
+
if (!CONFIG) {
|
|
8168
|
+
_parseConfig({});
|
|
8169
|
+
}
|
|
8170
|
+
const lcTag = transformCaseFunc(tag);
|
|
8171
|
+
const lcName = transformCaseFunc(attr);
|
|
8172
|
+
return _isValidAttribute(lcTag, lcName, value);
|
|
8173
|
+
};
|
|
8174
|
+
DOMPurify.addHook = function (entryPoint, hookFunction) {
|
|
8175
|
+
if (typeof hookFunction !== 'function') {
|
|
8176
|
+
return;
|
|
8177
|
+
}
|
|
8178
|
+
arrayPush(hooks[entryPoint], hookFunction);
|
|
8179
|
+
};
|
|
8180
|
+
DOMPurify.removeHook = function (entryPoint, hookFunction) {
|
|
8181
|
+
if (hookFunction !== undefined) {
|
|
8182
|
+
const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
|
|
8183
|
+
return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0];
|
|
8184
|
+
}
|
|
8185
|
+
return arrayPop(hooks[entryPoint]);
|
|
8186
|
+
};
|
|
8187
|
+
DOMPurify.removeHooks = function (entryPoint) {
|
|
8188
|
+
hooks[entryPoint] = [];
|
|
8189
|
+
};
|
|
8190
|
+
DOMPurify.removeAllHooks = function () {
|
|
8191
|
+
hooks = _createHooksMap();
|
|
8192
|
+
};
|
|
8193
|
+
return DOMPurify;
|
|
8194
|
+
}
|
|
8195
|
+
var purify = createDOMPurify();
|
|
8196
|
+
|
|
8197
|
+
return purify;
|
|
8198
|
+
|
|
8199
|
+
}));
|
|
8200
|
+
|
|
8201
|
+
}(purify));
|
|
8202
|
+
|
|
8203
|
+
var purifier = purify.exports;
|
|
8204
|
+
|
|
8205
|
+
const IC_CUSTOM_ALLOWED_COMPONENTS = [];
|
|
8206
|
+
|
|
8207
|
+
/* istanbul ignore next */
|
|
8208
|
+
const getCustomElementHandling$1 = (allowICPrefix) => ({
|
|
8209
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
8210
|
+
tagNameCheck: (tagName) => (allowICPrefix && tagName.startsWith("ic-")) ||
|
|
8211
|
+
IC_CUSTOM_ALLOWED_COMPONENTS.includes(tagName),
|
|
8212
|
+
attributeNameCheck: /.*/,
|
|
8213
|
+
},
|
|
8214
|
+
});
|
|
8215
|
+
const sanitizeHTMLIconString$1 = (html) => {
|
|
8216
|
+
return purifier.sanitize(html, getCustomElementHandling$1(false));
|
|
8217
|
+
};
|
|
8218
|
+
|
|
6835
8219
|
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
8220
|
var IcDataTableStyle0 = icDataTableCss;
|
|
6837
8221
|
|
|
@@ -7417,10 +8801,7 @@ class DataTable {
|
|
|
7417
8801
|
};
|
|
7418
8802
|
this.createCellContent = (columnProps, cell, cellSlotName, hasIcon, cellValue, rowOptions, currentRowHeight) => {
|
|
7419
8803
|
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) ||
|
|
8804
|
+
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
8805
|
((_c = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _c === void 0 ? void 0 : _c.horizontal) ||
|
|
7425
8806
|
this.getCellAlignment(cell, "horizontal")}`]: !!((_d = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _d === void 0 ? void 0 : _d.horizontal) ||
|
|
7426
8807
|
!!((_e = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
|
|
@@ -7433,7 +8814,8 @@ class DataTable {
|
|
|
7433
8814
|
!!(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
8815
|
? this.setRowHeight(currentRowHeight)
|
|
7435
8816
|
: 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")
|
|
8817
|
+
(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")) ||
|
|
8818
|
+
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
8819
|
!isSlotUsed(this.el, cellSlotName) && (hAsync("div", { class: {
|
|
7438
8820
|
"cell-text-wrapper": true,
|
|
7439
8821
|
"cell-text-no-wrap": !this.truncationPattern,
|
|
@@ -7448,7 +8830,7 @@ class DataTable {
|
|
|
7448
8830
|
Object.keys(cell).includes("description") && (hAsync("div", { class: {
|
|
7449
8831
|
["cell-description"]: true,
|
|
7450
8832
|
[`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"))))))))));
|
|
8833
|
+
} }, ((_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
8834
|
};
|
|
7453
8835
|
this.createCells = (row, rowIndex) => {
|
|
7454
8836
|
var _a;
|
|
@@ -7494,7 +8876,7 @@ class DataTable {
|
|
|
7494
8876
|
"truncation-tooltip": this.columnHeaderTruncation,
|
|
7495
8877
|
[`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
|
|
7496
8878
|
} }, 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: {
|
|
8879
|
+
!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
8880
|
["column-header-text"]: true,
|
|
7499
8881
|
[`text-${this.density}`]: this.notDefaultDensity(),
|
|
7500
8882
|
} }, title))) : (hAsync("ic-typography", { variant: "body", class: {
|
|
@@ -8171,22 +9553,22 @@ class DataTable {
|
|
|
8171
9553
|
? "deselect all"
|
|
8172
9554
|
: "select all remaining"
|
|
8173
9555
|
: "select all";
|
|
8174
|
-
return (hAsync(Host, { key: '
|
|
9556
|
+
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
9557
|
["table-row-container"]: true,
|
|
8176
9558
|
scrollable,
|
|
8177
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '
|
|
9559
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: 'eff477957c0785a651c480b4e9ddd88534563a81', style: {
|
|
8178
9560
|
"--table-layout": tableLayout,
|
|
8179
|
-
} }, hAsync("caption", { key: '
|
|
9561
|
+
} }, hAsync("caption", { key: 'e41a3f6133cb02f96e2fd537cdcb24c3467e92a6', class: "table-caption" }, caption), !hideColumnHeaders && (hAsync("thead", { key: 'b36805140e81e3e3a9fd065792c0ac514d64ae16', class: {
|
|
8180
9562
|
["column-header-sticky"]: stickyColumnHeaders,
|
|
8181
9563
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
|
8182
|
-
} }, hAsync("tr", { key: '
|
|
9564
|
+
} }, hAsync("tr", { key: '7b377adb333d251f84400dd6aa499dfa1fa3df6d' }, rowSelection && data && (hAsync("th", { key: 'ab9831b9c3f4e4b96c5223961753506ce0629cc1', class: {
|
|
8183
9565
|
"column-header": true,
|
|
8184
9566
|
"checkbox-cell": true,
|
|
8185
9567
|
"updating-state-headers": updating && !loading,
|
|
8186
9568
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
|
8187
|
-
} }, hAsync("div", { key: '
|
|
9569
|
+
} }, 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
9570
|
!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: '
|
|
9571
|
+
(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
9572
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
|
8191
9573
|
sortedColumn} sorted ${sortedColumnOrder}`
|
|
8192
9574
|
: "table unsorted")))));
|
|
@@ -8418,7 +9800,7 @@ var Calendar = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" v
|
|
|
8418
9800
|
<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
9801
|
</svg>`;
|
|
8420
9802
|
|
|
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)}";
|
|
9803
|
+
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
9804
|
var IcDateInputStyle0 = icDateInputCss;
|
|
8423
9805
|
|
|
8424
9806
|
let inputIds$5 = 0;
|
|
@@ -8553,6 +9935,10 @@ class DateInput {
|
|
|
8553
9935
|
* The value of the date input. The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object.
|
|
8554
9936
|
*/
|
|
8555
9937
|
this.value = "";
|
|
9938
|
+
/**
|
|
9939
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
9940
|
+
*/
|
|
9941
|
+
this.validationAriaLive = "polite";
|
|
8556
9942
|
/**
|
|
8557
9943
|
* The validation status - e.g. 'error' | 'warning' | 'success'. This will override the built-in date validation.
|
|
8558
9944
|
*/
|
|
@@ -9580,7 +10966,7 @@ class DateInput {
|
|
|
9580
10966
|
}
|
|
9581
10967
|
}
|
|
9582
10968
|
render() {
|
|
9583
|
-
const { inputId, label, disabled, helperText, hideHelperText, hideLabel, showClearButton, showCalendarButton, size, theme, } = this;
|
|
10969
|
+
const { inputId, label, disabled, helperText, hideHelperText, hideLabel, showClearButton, showCalendarButton, size, theme, validationAriaLive, } = this;
|
|
9584
10970
|
const hasCustomValidation = !isEmptyString(this.validationStatus);
|
|
9585
10971
|
const validationStatus = hasCustomValidation
|
|
9586
10972
|
? this.validationStatus
|
|
@@ -9589,15 +10975,15 @@ class DateInput {
|
|
|
9589
10975
|
: "";
|
|
9590
10976
|
const assistiveHint = `Type or use the up and down arrow keys to change the values for the ${this.getDescOfInputsOrder()}.`;
|
|
9591
10977
|
renderHiddenInput(true, this.el, this.name, this.convertToDate(this.year, this.month, this.day), this.disabled);
|
|
9592
|
-
return (hAsync(Host, { key: '
|
|
10978
|
+
return (hAsync(Host, { key: '33c9f19456f403afe9f42486834ca419c772a9c2', class: {
|
|
9593
10979
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
9594
10980
|
[`ic-date-input-disabled`]: disabled,
|
|
9595
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
|
10981
|
+
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: 'b8cefe6a3f220b7791afaa60754920d4a0713942', disabled: disabled }, !(hideLabel && hideHelperText) && (hAsync("ic-input-label", { key: '74a72207a491822b85c43bca96dbda3ebc715adc', for: inputId, label: label, hideLabel: hideLabel, helperText: !hideHelperText ? helperText : "", disabled: disabled }, hAsync("slot", { key: '40a291cbc22b16618428188c45824b542bb77dee', name: "helper-text", slot: "helper-text" }))), hAsync("span", { key: 'fb33ae9d8ca00d83bdd69caaf37235be48350eb0', id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideLabel && `${label}\n`, hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), hAsync("span", { key: 'f4f6087a29494f42bdb520c5ecc1c109c078c13a', id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), hAsync("span", { key: 'cbcd7d6aa456c902ffe2abaaded4d5022f709c1b', id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("ic-input-component-container", { key: '53ed8c7f11571ed09e1aa588800bf305bfada26d', id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group", class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: 'edfe3218fc2cf6e49d730850daf9db47270dc632', class: "input-container" }, hAsync("div", { key: '50ab717e0ac08582999d0a0c39385b4154752901', class: "date-inputs" }, this.getInputsInOrder()[0], "/", this.getInputsInOrder()[1], "/", this.getInputsInOrder()[2]), hAsync("div", { key: '2c4e51bf8f8486f11404d985cdab19843b8ef242', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: '736b0d00a2bf3e70b5fce2a1e24a449ba5b91c11', id: "clear-button", "aria-label": "Clear input", class: {
|
|
9596
10982
|
["clear-button"]: true,
|
|
9597
10983
|
["hidden"]: isEmptyString(this.day) &&
|
|
9598
10984
|
isEmptyString(this.month) &&
|
|
9599
10985
|
isEmptyString(this.year),
|
|
9600
|
-
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showCalendarButton && (hAsync("div", { key: '
|
|
10986
|
+
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showCalendarButton && (hAsync("div", { key: '5808251b065005460c4a72ef9520d6da04d67584', class: "show-calendar-button-wrapper" }, hAsync("div", { key: 'b47a20ef8a94cfd5f555388c2790cf0b335a2dd6', class: { divider: true, [size]: true } }), hAsync("ic-button", { key: '3ed6760eb4af553a0553f8de5ef32865a27deb8e', id: "calendar-button", ref: (el) => (this.calendarButtonEl = el), "aria-label": "Display calendar", "aria-haspopup": "dialog", class: "calendar-button", disabled: this.disabled, innerHTML: Calendar, onClick: this.handleCalendarOpen, variant: "icon-tertiary", size: size, onFocus: this.handleCalendarFocus, onBlur: this.handleCalendarBlur, theme: this.calendarFocused ? "light" : "dark" })))))), hAsync("span", { key: 'e14cc27f33864c9f1f1aa6920b3425f6242d3e00', id: this.selectedDateInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: '1d567499ffb7220e92e21064c870731fa89495c4', ref: (el) => (this.selectedDateInfoEl = el), role: "status" })), hAsync("ic-input-validation", { key: 'a5783f4f8a6bebf4e4051816f871d7063871cf8d', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidDateText, for: inputId, ariaLiveMode: validationAriaLive }))));
|
|
9601
10987
|
}
|
|
9602
10988
|
static get delegatesFocus() { return true; }
|
|
9603
10989
|
get el() { return getElement(this); }
|
|
@@ -9641,6 +11027,7 @@ class DateInput {
|
|
|
9641
11027
|
"size": [1],
|
|
9642
11028
|
"theme": [1],
|
|
9643
11029
|
"value": [1025],
|
|
11030
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
9644
11031
|
"validationStatus": [1025, "validation-status"],
|
|
9645
11032
|
"validationText": [1, "validation-text"],
|
|
9646
11033
|
"invalidDateText": [32],
|
|
@@ -9914,6 +11301,10 @@ class DatePicker {
|
|
|
9914
11301
|
* Sets the date picker to the dark or light theme colors. "inherit" will set the color based on the system settings or ic-theme component.
|
|
9915
11302
|
*/
|
|
9916
11303
|
this.theme = "inherit";
|
|
11304
|
+
/**
|
|
11305
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
11306
|
+
*/
|
|
11307
|
+
this.validationAriaLive = "polite";
|
|
9917
11308
|
/**
|
|
9918
11309
|
* The validation status - e.g. 'error' | 'warning' | 'success'. This will override the built-in date validation.
|
|
9919
11310
|
*/
|
|
@@ -10555,6 +11946,7 @@ class DatePicker {
|
|
|
10555
11946
|
showCalendarButton: true,
|
|
10556
11947
|
value: this.value,
|
|
10557
11948
|
emitDatePartChange: this.emitDatePartChange,
|
|
11949
|
+
validationAriaLive: this.validationAriaLive,
|
|
10558
11950
|
};
|
|
10559
11951
|
if (this.dateFormat !== DEFAULT_DATE_FORMAT) {
|
|
10560
11952
|
inputProps.dateFormat = this.dateFormat;
|
|
@@ -10780,33 +12172,33 @@ class DatePicker {
|
|
|
10780
12172
|
yesterday.setDate(minDate.getDate() - 1);
|
|
10781
12173
|
minDay = yesterday;
|
|
10782
12174
|
}
|
|
10783
|
-
return (hAsync(Host, { key: '
|
|
12175
|
+
return (hAsync(Host, { key: 'b2137a0ddce74eafda6be2472afb1793cbf68eef', onKeyDown: this.keyDownHandler, class: {
|
|
10784
12176
|
[`ic-date-picker-${size}`]: true,
|
|
10785
12177
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
10786
|
-
} }, hAsync("div", { key: '
|
|
12178
|
+
} }, hAsync("div", { key: '642c68aca8dac1c2c65d6fc30da6fbf7cae083e9', class: "date-input-container" }, hAsync("ic-date-input", Object.assign({ key: '7c360a109491013c58b40d0dde1cea2fa8bdf49d', ref: (el) => (this.inputEl = el) }, dateInputProps), hAsync("slot", { key: 'e26b8ae6d4bd987ed81bb193a3de998372479ba5', name: "helper-text", slot: "helper-text" }))), calendarOpen && (hAsync("div", { key: '4e97c468fb44045378e5a936f3f40a49e4eba65d' }, hAsync("span", { key: 'd619d8b0db95cc30b36b4499872b29cbf25cfec2', id: "dialog-description", class: "sr-only" }, dialogDescription), hAsync("div", { key: 'd84f35cdcff05860927ffc0f2541ebe10971937d', role: "dialog", "aria-modal": "true", "aria-label": dialogLabel, "aria-describedBy": "dialog-description", class: {
|
|
10787
12179
|
"calendar-container": true,
|
|
10788
12180
|
above: this.showPickerAbove,
|
|
10789
|
-
}, onMouseDown: this.handleCalendarMouseDown, onClick: this.handleCalendarClick }, hAsync("span", { key: '
|
|
12181
|
+
}, onMouseDown: this.handleCalendarMouseDown, onClick: this.handleCalendarClick }, hAsync("span", { key: 'e17eb60cf60cae2ddfdc620c8170f3fd20c8948f', ref: (el) => (this.liveRegionEl = el), id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("div", { key: 'e5553e29abf290e5e38f7a111946bd4bb9cf0f34', class: {
|
|
10790
12182
|
"month-year-nav-container": true,
|
|
10791
|
-
} }, hAsync("div", { key: '
|
|
12183
|
+
} }, hAsync("div", { key: '92ac58ac5dd9df901278bd025cf914f80e480d85', class: "month-year-nav" }, this.previousMonthButton(), hAsync("span", { key: '27da769612a75c1e902a3167d7e9cb348fdfe343', id: "select-month-hint", "aria-hidden": "true" }, monthButtonText), hAsync("ic-button", { key: 'a7e05080ddf126e9446bcf977ef4bec599ab953a', ref: (el) => (this.monthButtonEl = el), size: size, class: "month-picker-button", "aria-haspopup": "menu", "aria-expanded": monthPickerVisible ? "true" : "false", "full-width": "true", variant: "tertiary", "aria-label": monthLabel, "aria-describedby": "select-month-hint", onKeyDown: this.monthButtonKeyDownHandler, onClick: this.monthButtonClickHandler }, monthNames[monthInView]), this.nextMonthButton()), hAsync("div", { key: '9287686fe19a31a1cea431402ec91eb33463a859', class: "month-year-nav" }, this.previousYearButton(), hAsync("span", { key: '49bff3660edba939bb848a052b2904d81ce2ee54', id: "select-year-hint", "aria-hidden": "true" }, yearButtonText), hAsync("ic-button", { key: '9f05b2770f7c14c976f6c3f09a1661856f1a57f8', ref: (el) => (this.yearButtonEl = el), size: size, class: "year-picker-button", "aria-haspopup": "menu", "aria-expanded": yearPickerVisible ? "true" : "false", "full-width": "true", variant: "tertiary", "aria-label": yearLabel, "aria-describedby": "select-year-hint", onKeyDown: this.yearButtonKeyDownHandler, onClick: this.yearButtonClickHandler }, this.yearInView), this.nextYearButton())), !(monthPickerVisible || yearPickerVisible) && (hAsync("div", { key: '1a7880de3748d7d033a43599aabd2798af90f32b', class: {
|
|
10792
12184
|
calendar: true,
|
|
10793
12185
|
hidden: monthPickerVisible || yearPickerVisible,
|
|
10794
|
-
}, onKeyDown: this.handleCalendarKeyDown }, hAsync("div", { key: '
|
|
12186
|
+
}, onKeyDown: this.handleCalendarKeyDown }, hAsync("div", { key: '0a3e3df8eab3fb77e1ce9c2550c20cf160f4f650', class: "weekdays", "aria-hidden": "true" }, orderedDaysOfWeek.map((dayName) => {
|
|
10795
12187
|
const header = size === "small" ? dayName.charAt(0) : dayName;
|
|
10796
12188
|
return (hAsync("div", { class: "calendar-day-header" }, hAsync("ic-typography", { variant: "caption" }, header)));
|
|
10797
|
-
})), hAsync("div", { key: '
|
|
12189
|
+
})), hAsync("div", { key: 'f2415a435dea0633bd42657f9f19bd3bd49e6936', class: "calendar-days-container" }, this.currMonthView.map((day) => {
|
|
10798
12190
|
var _a;
|
|
10799
12191
|
return (hAsync(DayButton, { day: day, disableDay: (_a = this.disableDays) === null || _a === void 0 ? void 0 : _a.includes(Number(day.getDay())), today: dateMatches(day, this.today), selected: dateMatches(day, this.selectedDate), focussed: dateMatches(day, this.focussedDate), inRange: dateInRange(day, minDay, maxDate), monthInView: monthInView, onSelectDay: this.handleSelectDay, focussedDayRef: this.setFocussedDayEl, onFocusDay: this.onDayButtonFocusHandler, onBlurDay: this.onDayButtonBlurHandler, showDaysOutsideMonth: this.showDaysOutsideMonth }));
|
|
10800
|
-
})))), hAsync("div", { key: '
|
|
12192
|
+
})))), hAsync("div", { key: '1ed1a8c793883412ded234f949a7e7b65e66c414', class: {
|
|
10801
12193
|
"month-picker-container": true,
|
|
10802
12194
|
hidden: !monthPickerVisible,
|
|
10803
|
-
} }, monthPickerVisible && (hAsync(MonthPicker, { key: '
|
|
12195
|
+
} }, monthPickerVisible && (hAsync(MonthPicker, { key: 'd847bce743c2c7289184bb6cb881d81639986934', size: size, onSelectMonth: this.handleSelectMonth, monthInView: monthInView, focussedMonth: focussedMonth, onKeyDown: this.monthPickerKeyDownHandler, focussedMonthRef: this.setFocussedMonthEl, minDate: minDate, maxDate: maxDate, yearInView: yearInView }))), hAsync("div", { key: 'e56d5c9d5a31b6b3f530ac96b81182720ef264c8', class: {
|
|
10804
12196
|
"year-picker-container": true,
|
|
10805
12197
|
hidden: !yearPickerVisible,
|
|
10806
|
-
} }, yearPickerVisible && (hAsync(YearPicker, { key: '
|
|
12198
|
+
} }, yearPickerVisible && (hAsync(YearPicker, { key: 'd40cc0d0384bb04d63628a4e21f9e7cec0fe1c5f', decadeView: decadeView, size: size, focussedYear: focussedYear, onSelectYear: this.handleSelectYear, onKeyDown: this.yearPickerKeyDownHandler, onFocusYear: this.onYearButtonFocusHandler, onBlurYear: this.onYearButtonBlurHandler, yearInView: yearInView, minDate: minDate, maxDate: maxDate, focussedYearRef: this.setFocussedYearEl }))), hAsync("div", { key: 'f59442e70666f9a8216e1657d2e1099b2436e376', class: {
|
|
10807
12199
|
"bottom-buttons": true,
|
|
10808
12200
|
"no-today": !showPickerTodayButton,
|
|
10809
|
-
} }, showPickerTodayButton && (hAsync("ic-button", { key: '
|
|
12201
|
+
} }, showPickerTodayButton && (hAsync("ic-button", { key: '506f36d5bec283f11df7cbdc3431f4f5bd5a80f6', id: "today-button", variant: "tertiary", ref: (el) => (this.todayButtonEl = el), size: size, "aria-label": "Navigate to current date", onClick: this.todayButtonClickHandler, onKeyDown: this.todayButtonKeyDownHandler, disabled: this.isCurrentMonth() }, "Go to today")), showPickerClearButton && (hAsync("ic-button", { key: 'ad295135a146065f627b66081ad96a1820b144ce', id: "clear-button", "aria-label": "clear selected date", ref: (el) => (this.clearButtonEl = el), variant: "tertiary", size: size, onClick: this.clearButtonClickHandler, onKeyDown: this.clearButtonKeyDownHandler, disabled: this.value === "" ||
|
|
10810
12202
|
this.value === null ||
|
|
10811
12203
|
this.value === undefined }, "Clear"))))))));
|
|
10812
12204
|
}
|
|
@@ -10859,6 +12251,7 @@ class DatePicker {
|
|
|
10859
12251
|
"size": [1],
|
|
10860
12252
|
"startOfWeek": [2, "start-of-week"],
|
|
10861
12253
|
"theme": [1],
|
|
12254
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
10862
12255
|
"validationStatus": [1, "validation-status"],
|
|
10863
12256
|
"validationText": [1, "validation-text"],
|
|
10864
12257
|
"value": [1025],
|
|
@@ -10914,7 +12307,9 @@ class Dialog {
|
|
|
10914
12307
|
this.IC_CHECKBOX = "IC-CHECKBOX";
|
|
10915
12308
|
this.IC_SEARCH_BAR = "IC-SEARCH-BAR";
|
|
10916
12309
|
this.IC_TAB_CONTEXT = "IC-TAB-CONTEXT";
|
|
12310
|
+
this.interactiveElementList = [];
|
|
10917
12311
|
this.resizeObserver = null;
|
|
12312
|
+
this.focusAttemptCount = 0;
|
|
10918
12313
|
this.dialogRendered = false;
|
|
10919
12314
|
this.fadeIn = false;
|
|
10920
12315
|
/**
|
|
@@ -10983,6 +12378,7 @@ class Dialog {
|
|
|
10983
12378
|
}
|
|
10984
12379
|
}, 10);
|
|
10985
12380
|
setTimeout(() => {
|
|
12381
|
+
this.getInteractiveElements();
|
|
10986
12382
|
this.setInitialFocus();
|
|
10987
12383
|
checkResizeObserver$1(this.runResizeObserver);
|
|
10988
12384
|
}, 75);
|
|
@@ -11033,10 +12429,24 @@ class Dialog {
|
|
|
11033
12429
|
};
|
|
11034
12430
|
this.setInitialFocus = () => {
|
|
11035
12431
|
this.sourceElement = document.activeElement;
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
12432
|
+
if (!this.interactiveElementList.length) {
|
|
12433
|
+
// No interactive elements yet, retry shortly
|
|
12434
|
+
setTimeout(() => {
|
|
12435
|
+
this.getInteractiveElements();
|
|
12436
|
+
if (this.interactiveElementList.length) {
|
|
12437
|
+
this.setInitialFocus();
|
|
12438
|
+
}
|
|
12439
|
+
}, 10);
|
|
12440
|
+
return;
|
|
12441
|
+
}
|
|
12442
|
+
this.focusedElementIndex = this.interactiveElementList.findIndex((element) => element.hasAttribute(this.DATA_GETS_FOCUS));
|
|
12443
|
+
if (this.focusedElementIndex === -1) {
|
|
12444
|
+
this.focusedElementIndex = 0;
|
|
12445
|
+
}
|
|
12446
|
+
const elToFocus = this.interactiveElementList[this.focusedElementIndex];
|
|
12447
|
+
if (elToFocus) {
|
|
12448
|
+
this.focusElement(elToFocus);
|
|
12449
|
+
}
|
|
11040
12450
|
};
|
|
11041
12451
|
this.getFocusedElementIndex = () => {
|
|
11042
12452
|
var _a;
|
|
@@ -11071,17 +12481,22 @@ class Dialog {
|
|
|
11071
12481
|
};
|
|
11072
12482
|
this.getNextFocusEl = (focusedElementIndex) => this.interactiveElementList[focusedElementIndex];
|
|
11073
12483
|
this.onTabKeyPress = (shiftKey) => {
|
|
12484
|
+
var _a;
|
|
11074
12485
|
this.getFocusedElementIndex();
|
|
11075
|
-
if (this.interactiveElementList[this.focusedElementIndex].tagName ===
|
|
12486
|
+
if (((_a = this.interactiveElementList[this.focusedElementIndex]) === null || _a === void 0 ? void 0 : _a.tagName) ===
|
|
11076
12487
|
this.IC_SEARCH_BAR) {
|
|
11077
12488
|
return false;
|
|
11078
12489
|
}
|
|
11079
12490
|
this.setFocusIndexBasedOnShiftKey(shiftKey);
|
|
11080
12491
|
this.loopNextFocusIndexIfLastElement();
|
|
12492
|
+
this.focusAttemptCount = 0;
|
|
11081
12493
|
this.focusElement(this.getNextFocusEl(this.focusedElementIndex), shiftKey);
|
|
11082
12494
|
return true;
|
|
11083
12495
|
};
|
|
11084
12496
|
this.shouldSkipElement = (element) => {
|
|
12497
|
+
if (!element) {
|
|
12498
|
+
return true;
|
|
12499
|
+
}
|
|
11085
12500
|
const isHidden = getComputedStyle(element).visibility === "hidden" ||
|
|
11086
12501
|
element.offsetHeight === 0 ||
|
|
11087
12502
|
element.hasAttribute("disabled") ||
|
|
@@ -11094,12 +12509,16 @@ class Dialog {
|
|
|
11094
12509
|
!(radioEl.hasAttribute("selected") || element.tabIndex === 0)));
|
|
11095
12510
|
};
|
|
11096
12511
|
this.focusElement = (element, shiftKey = false) => {
|
|
11097
|
-
|
|
12512
|
+
if (!element) {
|
|
12513
|
+
return;
|
|
12514
|
+
}
|
|
12515
|
+
if (this.focusAttemptCount++ > this.interactiveElementList.length) {
|
|
12516
|
+
return;
|
|
12517
|
+
}
|
|
11098
12518
|
if (this.shouldSkipElement(element)) {
|
|
11099
12519
|
this.setFocusIndexBasedOnShiftKey(shiftKey);
|
|
11100
12520
|
this.loopNextFocusIndexIfLastElement();
|
|
11101
|
-
|
|
11102
|
-
this.focusElement(nextFocusEl, shiftKey);
|
|
12521
|
+
this.focusElement(this.getNextFocusEl(this.focusedElementIndex), shiftKey);
|
|
11103
12522
|
}
|
|
11104
12523
|
else {
|
|
11105
12524
|
switch (element.tagName) {
|
|
@@ -11154,7 +12573,6 @@ class Dialog {
|
|
|
11154
12573
|
this.removeSlotChangeListener();
|
|
11155
12574
|
}
|
|
11156
12575
|
componentDidLoad() {
|
|
11157
|
-
this.getInteractiveElements();
|
|
11158
12576
|
this.refreshInteractiveElementsOnSlotChange();
|
|
11159
12577
|
if (this.open) {
|
|
11160
12578
|
this.dialogOpened();
|
|
@@ -11230,7 +12648,7 @@ class Dialog {
|
|
|
11230
12648
|
}
|
|
11231
12649
|
render() {
|
|
11232
12650
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme } = this;
|
|
11233
|
-
return (hAsync(Host, { key: '
|
|
12651
|
+
return (hAsync(Host, { key: '90bdbe0ef1a88e61db6395c4f63bea39573a757b', class: {
|
|
11234
12652
|
"ic-dialog-hidden": !dialogRendered,
|
|
11235
12653
|
"ic-dialog-fade-in": fadeIn,
|
|
11236
12654
|
"disable-height-constraint": !!disableHeightConstraint,
|
|
@@ -12266,7 +13684,7 @@ class InputLabel {
|
|
|
12266
13684
|
}; }
|
|
12267
13685
|
}
|
|
12268
13686
|
|
|
12269
|
-
const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);margin-top:var(--ic-space-xs)
|
|
13687
|
+
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
13688
|
var IcInputValidationStyle0 = icInputValidationCss;
|
|
12271
13689
|
|
|
12272
13690
|
const ICON = {
|
|
@@ -12300,7 +13718,7 @@ class InputValidation {
|
|
|
12300
13718
|
this.messageEl.textContent = INVISIBLE_CHAR;
|
|
12301
13719
|
setTimeout(() => {
|
|
12302
13720
|
this.messageEl.textContent = newValue;
|
|
12303
|
-
},
|
|
13721
|
+
}, 200); // Delay to help ensure screen readers detect change
|
|
12304
13722
|
}
|
|
12305
13723
|
componentDidLoad() {
|
|
12306
13724
|
onComponentRequiredPropUndefined$1([{ prop: this.message, propName: "message" }], "Input Validation");
|
|
@@ -12309,13 +13727,14 @@ class InputValidation {
|
|
|
12309
13727
|
render() {
|
|
12310
13728
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
|
12311
13729
|
const displayIcon = status !== "" ? ICON[status] : "";
|
|
12312
|
-
return (hAsync(Host, { key: '
|
|
13730
|
+
return (hAsync(Host, { key: 'f1ba7e992a65cbd63d86411844668a0db4944cf2', class: {
|
|
12313
13731
|
[`ic-input-validation-${status}`]: status !== "",
|
|
12314
13732
|
"ic-input-validation-full-width": !!fullWidth,
|
|
12315
|
-
|
|
13733
|
+
"ic-input-validation-with-status": status !== "",
|
|
13734
|
+
} }, displayIcon !== "" && (hAsync("span", { key: '43bf05c319e9f4cdb7f6e5affd403d745b7dac00', class: {
|
|
12316
13735
|
"status-icon": true,
|
|
12317
13736
|
[`icon-${status}`]: true,
|
|
12318
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
|
13737
|
+
}, 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
13738
|
}
|
|
12320
13739
|
get el() { return getElement(this); }
|
|
12321
13740
|
static get watchers() { return {
|
|
@@ -14731,6 +16150,21 @@ var checkIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2
|
|
|
14731
16150
|
</svg>
|
|
14732
16151
|
`;
|
|
14733
16152
|
|
|
16153
|
+
/* istanbul ignore next */
|
|
16154
|
+
const getCustomElementHandling = (allowICPrefix) => ({
|
|
16155
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
16156
|
+
tagNameCheck: (tagName) => (allowICPrefix && tagName.startsWith("ic-")) ||
|
|
16157
|
+
IC_CUSTOM_ALLOWED_COMPONENTS$1.includes(tagName),
|
|
16158
|
+
attributeNameCheck: /.*/,
|
|
16159
|
+
},
|
|
16160
|
+
});
|
|
16161
|
+
const sanitizeHTMLString = (html) => {
|
|
16162
|
+
return purifier.sanitize(html, getCustomElementHandling(true));
|
|
16163
|
+
};
|
|
16164
|
+
const sanitizeHTMLIconString = (html) => {
|
|
16165
|
+
return purifier.sanitize(html, getCustomElementHandling(false));
|
|
16166
|
+
};
|
|
16167
|
+
|
|
14734
16168
|
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
16169
|
var IcMenuStyle0 = icMenuCss;
|
|
14736
16170
|
|
|
@@ -15160,7 +16594,7 @@ class Menu {
|
|
|
15160
16594
|
const { value, label } = event.target.dataset;
|
|
15161
16595
|
if (this.multiSelect) {
|
|
15162
16596
|
const menuOptions = this.getMenuOptions();
|
|
15163
|
-
const selectedOptionIndex = menuOptions.findIndex((option) => option.
|
|
16597
|
+
const selectedOptionIndex = menuOptions.findIndex((option) => option[this.valueField] === value);
|
|
15164
16598
|
this.handleOptionSelect(event, selectedOptionIndex, true);
|
|
15165
16599
|
this.multiOptionClicked = value || null;
|
|
15166
16600
|
}
|
|
@@ -15465,11 +16899,14 @@ class Menu {
|
|
|
15465
16899
|
return (hAsync(Fragment, null, option.loading && hAsync("ic-loading-indicator", { size: "icon" }), hAsync("div", { class: {
|
|
15466
16900
|
"option-text-container": true,
|
|
15467
16901
|
"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:
|
|
16902
|
+
} }, (option.icon || !option.hideLabel) && (hAsync("div", { class: "option-label" }, option.icon && (hAsync("div", { class: "option-icon", innerHTML: sanitizeHTMLIconString(option.icon), "aria-hidden": "true" })), !option.hideLabel && (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: {
|
|
16903
|
+
"option-element": option.icon || !option.hideLabel || option.description,
|
|
16904
|
+
}, innerHTML: sanitizeHTMLString(option.element.component), "aria-hidden": "true" }))), showCheckIcon && hAsync("span", { class: "check-icon", innerHTML: checkIcon })));
|
|
15469
16905
|
};
|
|
15470
16906
|
this.displayOption = (option, selected, index, parentOption) => {
|
|
16907
|
+
var _a;
|
|
15471
16908
|
const { open, keyboardNav, isManualMode, initialOptionsListRender, optionHighlighted, options, } = this;
|
|
15472
|
-
return (hAsync("li", { id: this.getOptionId(option[this.valueField]), class: {
|
|
16909
|
+
return (hAsync("li", Object.assign({ id: this.getOptionId(option[this.valueField]), class: {
|
|
15473
16910
|
option: true,
|
|
15474
16911
|
"focused-option": isManualMode
|
|
15475
16912
|
? (keyboardNav || initialOptionsListRender) &&
|
|
@@ -15487,7 +16924,7 @@ class Menu {
|
|
|
15487
16924
|
? "0"
|
|
15488
16925
|
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": selected ? "true" : "false", "aria-disabled": option.disabled ? "true" : "false", onClick: !option.timedOut && !option.loading
|
|
15489
16926
|
? this.handleOptionClick
|
|
15490
|
-
: undefined, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, "data-value": option[this.valueField], "data-label": option[this.labelField] }, option.timedOut ? (hAsync(Fragment, null, hAsync("div", { class: "loading-error-info" }, hAsync("svg", { class: "error-icon-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#000000" }, hAsync("title", null, "Error"), hAsync("g", null, hAsync("path", { d: "M8.77 3L3.5 8.27V15.73L8.77 21H16.23L21.5 15.73V8.27L16.23 3M8.91 7L12.5 10.59L16.09 7L17.5 8.41L13.91 12L17.5 15.59L16.09 17L12.5 13.41L8.91 17L7.5 15.59L11.09 12L7.5 8.41" }))), hAsync("ic-typography", { variant: "label" }, option[this.labelField])), hAsync("ic-button", { size: "small", variant: "tertiary", onClick: this.handleRetry, onKeyDown: this.handleRetryKeyDown, onBlur: this.handleTimeoutBlur, id: "retry-button" }, "Retry"))) : (this.optionContent(option, selected))));
|
|
16927
|
+
: undefined, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, "data-value": option[this.valueField], "data-label": option[this.labelField] }, ((_a = option.htmlProps) !== null && _a !== void 0 ? _a : {})), option.timedOut ? (hAsync(Fragment, null, hAsync("div", { class: "loading-error-info" }, hAsync("svg", { class: "error-icon-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#000000" }, hAsync("title", null, "Error"), hAsync("g", null, hAsync("path", { d: "M8.77 3L3.5 8.27V15.73L8.77 21H16.23L21.5 15.73V8.27L16.23 3M8.91 7L12.5 10.59L16.09 7L17.5 8.41L13.91 12L17.5 15.59L16.09 17L12.5 13.41L8.91 17L7.5 15.59L11.09 12L7.5 8.41" }))), hAsync("ic-typography", { variant: "label" }, option[this.labelField])), hAsync("ic-button", { size: "small", variant: "tertiary", onClick: this.handleRetry, onKeyDown: this.handleRetryKeyDown, onBlur: this.handleTimeoutBlur, id: "retry-button" }, "Retry"))) : (this.optionContent(option, selected))));
|
|
15491
16928
|
};
|
|
15492
16929
|
}
|
|
15493
16930
|
watchOpenHandler() {
|
|
@@ -15654,7 +17091,7 @@ class Menu {
|
|
|
15654
17091
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
|
15655
17092
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
|
15656
17093
|
const hasNoResults = this.host.classList.contains("no-results");
|
|
15657
|
-
return (hAsync(Host, { key: '
|
|
17094
|
+
return (hAsync(Host, { key: '3e49d54ba714dfa55e9695bd24fa5d2b87077232', class: {
|
|
15658
17095
|
"ic-menu-full-width": !!fullWidth,
|
|
15659
17096
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
|
15660
17097
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
|
@@ -15663,7 +17100,7 @@ class Menu {
|
|
|
15663
17100
|
[`ic-menu-${size}`]: true,
|
|
15664
17101
|
"ic-menu-open": open && options.length !== 0,
|
|
15665
17102
|
"ic-menu-multiple": multiSelect,
|
|
15666
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
|
17103
|
+
} }, options.length !== 0 && (hAsync("ul", { key: '23fc717879b9c8bac93158984ccd81f0b0227ab9', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", tabindex: open &&
|
|
15667
17104
|
!keyboardNav &&
|
|
15668
17105
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
|
15669
17106
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
|
@@ -15671,7 +17108,7 @@ class Menu {
|
|
|
15671
17108
|
: "-1", ref: (el) => (this.menu = el), onKeyDown: this.handleMenuKeyDown, onKeyUp: this.handleMenuKeyUp, onBlur: this.handleBlur }, this.getSortedOptions(options).map((option, index) => {
|
|
15672
17109
|
if (option.children) {
|
|
15673
17110
|
if (option.children.length > 0) {
|
|
15674
|
-
return (hAsync("div", null, hAsync("ic-typography", { class: "option-group-title", role: "presentation", variant: "subtitle-small" }, hAsync("p", null, option[this.labelField])), option.children.map((childOption) => childOption.
|
|
17111
|
+
return (hAsync("div", null, hAsync("ic-typography", { class: "option-group-title", role: "presentation", variant: "subtitle-small" }, hAsync("p", null, option[this.labelField])), option.children.map((childOption) => childOption[this.labelField] &&
|
|
15675
17112
|
this.displayOption(childOption, multiSelect
|
|
15676
17113
|
? value === null || value === void 0 ? void 0 : value.includes(childOption[this.valueField])
|
|
15677
17114
|
: childOption[this.valueField] === value, index, option))));
|
|
@@ -15682,7 +17119,7 @@ class Menu {
|
|
|
15682
17119
|
}
|
|
15683
17120
|
else {
|
|
15684
17121
|
// Display option only if it has a label (rather than displaying an empty space)
|
|
15685
|
-
return (option.
|
|
17122
|
+
return (option[this.labelField] &&
|
|
15686
17123
|
this.displayOption(option, multiSelect
|
|
15687
17124
|
? value === null || value === void 0 ? void 0 : value.includes(option[this.valueField])
|
|
15688
17125
|
: option[this.valueField] === value, index));
|
|
@@ -15691,7 +17128,7 @@ class Menu {
|
|
|
15691
17128
|
multiSelect &&
|
|
15692
17129
|
!isLoading &&
|
|
15693
17130
|
!hasTimedOut &&
|
|
15694
|
-
!hasNoResults && (hAsync("div", { key: '
|
|
17131
|
+
!hasNoResults && (hAsync("div", { key: '997b84a875c8ab4cc763b6047ece029a51e03165', class: "option-bar" }, hAsync("ic-typography", { key: 'ff3ef41753cebd248a6d59169ef68ae12f0563ca' }, hAsync("p", { key: '3fe3ae4ca8f766216e5258eea8dbb71d1efd2169' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: 'f269fc5554327fd11a8093857f0f9208a3b1ca62', 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
17132
|
}
|
|
15696
17133
|
get host() { return getElement(this); }
|
|
15697
17134
|
static get watchers() { return {
|
|
@@ -16335,7 +17772,7 @@ class NavigationGroup {
|
|
|
16335
17772
|
}; }
|
|
16336
17773
|
}
|
|
16337
17774
|
|
|
16338
|
-
const icNavigationItemCss = "/*! 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;--navigation-link-colour:var(--ic-brand-text-color)}:host(:focus-within){z-index:var(--ic-z-index-navigation-item)}svg{width:var(--ic-space-xl);fill:var(--ic-brand-text-color)}.svg{margin-left:auto}.chevron-container svg,.chevron-container .svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.chevron-container{flex-grow:1}:host(.expandable.navigation-item) .link,:host(.expandable.navigation-item) ::slotted(a){padding-right:0}:host(.navigation-item) .link,:host(.navigation-item) ::slotted(a){height:calc(100% - var(--ic-space-xxs));width:-moz-fit-content;width:fit-content;color:var(--navigation-link-colour);display:flex;align-items:center;justify-content:center;padding:0 var(--ic-space-md) var(--ic-space-xxs);text-decoration:none;transition:var(--ic-easing-transition-fast);position:relative;white-space:nowrap}:host(.navigation-item) ::slotted(a){height:100%;font:var(--ic-font-label) !important;letter-spacing:var(--ic-font-letter-spacing-0pt025) !important;padding:0 var(--ic-space-md) !important}:host(.navigation-item-selected) .link::after,:host(.navigation-item-selected) ::slotted(a.active)::after,:host(.navigation-item-top-nav) ::slotted(a.active)::after{content:\"\";height:0.25rem;width:100%;position:absolute;bottom:0;background-color:var(--ic-top-navigation-theme)}:host(.navigation-item-selected.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-selected.navigation-item-page-header) .link::after,:host(.navigation-item.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-top-nav-child) ::slotted(a.active)::after{content:none}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){box-shadow:none}:host(.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover);cursor:pointer}:host(.navigation-item:not(.navigation-item-page-header,.navigation-item-side-menu,.navigation-item-top-nav-child)) ::slotted(a:hover:not(:focus)),:host(.navigation-item-side-nav.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover) !important}:host(.navigation-item:not(.navigation-item-top-nav-child,.navigation-item-side-menu,.navigation-item-top-nav-child-selected .navigation-item-side-menu-selected)) .focus-indicator:focus-within{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius)}:host(.navigation-item) .link:focus,:host(.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item-selected) .link:focus,:host(.navigation-item) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item) .link:active:not(:focus),:host(.navigation-item) ::slotted(a:active:not(:focus)){background-color:var(--ic-brand-active)}:host(.navigation-item-side-menu) .link,:host(.navigation-item-side-menu) ::slotted(a){min-height:2.5rem;height:auto;width:100%;box-sizing:border-box;color:var(--ic-top-navigation-nav-item);--ic-typography-color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;text-decoration:none;text-wrap:wrap;white-space:normal;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(svg),:host(.navigation-item-side-menu) ::slotted(svg),:host(.navigation-item-page-header) ::slotted(svg){fill:var(--ic-color-text-primary)}:host(.navigation-item-side-menu) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important;transition:box-shadow var(--ic-easing-transition-fast),\n background-color var(--ic-easing-transition-fast)}:host(.navigation-item-side-menu) .link:hover:not(:focus){background-color:var(--ic-top-navigation-nav-item-hover)}:host(.navigation-item-side-menu) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-side-menu) .focus-indicator:focus-within{box-shadow:none}:host(.navigation-item-side-menu) .link:focus,:host(.navigation-item-side-menu) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset) !important;width:auto;border-radius:var(--ic-border-radius-inset) !important}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu-selected) ::slotted(a){transition:box-shadow var(--ic-easing-transition-slow),\n background-color var(--ic-easing-transition-slow)}:host(.navigation-item-side-menu-selected) .link:focus,:host(.navigation-item-side-menu) ::slotted(a.active:focus),:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){margin-left:var(--ic-space-xs) !important;padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child) .link,:host(.navigation-item-top-nav-child) ::slotted(a){height:2.5rem;width:calc(100% - var(--ic-space-xl));min-width:9.063rem;color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;padding:0 var(--ic-space-md) !important;text-decoration:none;position:relative;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-slow)}:host(.navigation-item-top-nav-child) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important}:host(.navigation-item-top-nav-child) .link:hover:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-top-nav-child) ::slotted(a:focus){z-index:1;outline:var(--ic-hc-focus-outline);border-radius:var(--ic-border-radius-inset);box-shadow:var(--ic-border-focus-inset);transition:border-radius 0s, box-shadow var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}:host(.navigation-item-side-menu) .link:active:not(:focus){background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) .link:active:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)){outline:var(--ic-hc-focus-outline);background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)),:host(.navigation-item-side-menu) ::slotted(a:active:not(:focus)){background-color:var(--ic-top-navigation-nav-item-pressed) !important}:host(.navigation-item-side-menu-selected) *,:host(.navigation-item-top-nav-child-selected) *,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){font-weight:700 !important}:host(.navigation-item-top-nav-child) ::slotted(a.active)::before,:host(.navigation-item-top-nav-child-selected) .link::before,:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{content:\"\";position:absolute;left:0;width:var(--ic-space-xs);height:inherit;min-height:2.5rem;background-color:var(--ic-top-navigation-nav-item-banner);transition:left 0s}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu-selected) .link:focus::before{margin-top:var(--ic-space-xxs)}:host(.navigation-item-top-nav-child-selected) .link:focus{margin-left:var(--ic-space-xs);margin-right:calc(-1 * var(--ic-space-xs));padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child-selected) .link:focus::before{left:calc(-1 * var(--ic-space-xs));z-index:1}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{z-index:1}:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before,:host(.navigation-item-top-nav-child) ::slotted(a.active:focus)::before{left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-side-menu-selected) .link::after{display:none}:host(.navigation-item-side-nav-collapsed) .link{height:100%}:host(.navigation-item-side-nav-collapsed) ::slotted(svg),:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(svg){margin:auto;pointer-events:none}:host(.navigation-item-side-nav-collapsed) .icon,:host(.navigation-item-side-nav-collapsed-with-label) .icon,:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{align-items:center;padding:0;margin:auto 0;width:-moz-fit-content;width:fit-content;pointer-events:none}:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:center}:host(.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:flex;flex-direction:column;height:-moz-fit-content;height:fit-content;padding:var(--ic-space-xs) !important;gap:var(--ic-space-xxs)}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){height:auto !important;gap:0;width:auto;padding:var(--ic-space-xs) !important}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block;text-align:center}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link ic-typography{opacity:1;min-width:-moz-min-content;min-width:min-content}:host(.navigation-item-side-nav-collapsed) svg,:host(.navigation-item-side-nav-collapsed-with-label) svg{display:none}::slotted(svg){fill:var(--ic-brand-text-color);height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-md)}.icon{height:1.5rem;width:var(--ic-space-xxl);margin-left:calc(-1 * var(--ic-space-md));flex:0 1 0%;position:relative}.icon>::slotted(*){margin-left:var(--ic-space-md) !important;margin-right:var(--ic-space-xs)}.inline-badge{margin-left:var(--ic-space-xs)}.badge{margin-left:0}:host(.navigation-item-side-nav-collapsed) .icon>::slotted(*){margin:auto !important}:host(.navigation-item-side-nav) .icon>::slotted(*){margin-right:0}:host(.navigation-item-side-nav) .link,:host(.navigation-item-side-nav) ::slotted(a){height:var(--navigation-item-height, 4rem);min-height:var(--navigation-item-min-height);width:var(--navigation-item-width, auto);justify-content:var(--navigation-item-justify-content);display:flex;gap:var(--ic-space-xs);box-sizing:border-box;color:var(--navigation-item-child-color) !important;text-decoration:none !important;white-space:nowrap;padding:0 var(--ic-space-md);text-wrap:wrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a){height:var(--navigation-item-child-height);width:var(--navigation-group-width);color:var(--navigation-item-child-color) !important;display:flex;gap:0.625rem;box-sizing:border-box;min-width:0;transition:box-shadow var(--ic-easing-transition-fast);text-decoration:none !important;white-space:nowrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:focus){box-shadow:var(--ic-border-focus-dark)}:host(.navigation-item-side-nav.navigation-item-side-menu) .link:active{background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:active,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:active){background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav) a.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) a.link ic-typography,:host(.navigation-item-side-nav) div.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) div.link ic-typography,.navigation-item-side-nav-slotted-text{opacity:var(--navigation-item-label-opacity);transition:opacity var(--ic-easing-transition-slow);white-space:wrap;text-overflow:ellipsis;overflow:hidden}:host(.navigation-item-side-nav.navigation-item-selected) .link,:host(.navigation-item-side-nav.navigation-item) ::slotted(a.active){box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color)}:host(.navigation-item-side-nav.navigation-item-selected) .link::before,:host(.navigation-item-side-nav) ::slotted(a.active)::before{content:\"\";display:block;position:absolute;inset:0 0 0 0.313rem;border-radius:0.688rem !important;transition:var(--ic-easing-transition-slow)}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus::before,:host(.navigation-item-side-nav) ::slotted(a.active:focus)::before{box-shadow:var(--ic-border-focus-inset)}:host(:not(.navigation-item-side-nav-collapsed).navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link{opacity:var(--navigation-item-label-opacity);height:auto}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){min-width:var(--navigation-group-item-min-width);padding:var(--ic-space-xs) !important;height:auto;gap:0}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block}:host(.navigation-item-side-nav.navigation-item-selected) .link::after,:host(.navigation-item-side-nav) ::slotted(a.active)::after{display:none}:host(.navigation-item-side-nav.navigation-item) .link:focus,:host(.navigation-item-side-nav.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background-color:transparent}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus,:host(.navigation-item-side-nav) ::slotted(a.active:focus){margin:0 auto;box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color);border-radius:0}:host(.navigation-item-page-header).link,:host(.navigation-item-page-header) a,:host(.navigation-item-page-header) ::slotted(a){height:2.5rem !important;color:var(--ic-color-text-primary) !important;transition:all var(--ic-easing-transition-fast) !important;box-shadow:rgba(23 89 188 / 0%) !important}:host(.navigation-item-page-header.navigation-item-selected) .link::after,:host(.navigation-item-page-header) ::slotted(a.active)::after{content:\" \" !important;position:absolute;bottom:0;left:0;right:0;height:var(--ic-space-xxs);background-color:var(--ic-action-default) !important}:host(.navigation-item-page-header) .link:hover,:host(.navigation-item-page-header) ::slotted(.link:hover),:host(.navigation-item-page-header) ::slotted(a:hover),:host(.navigation-item-page-header) .link:hover:not(:focus){background-color:var(--ic-action-default-bg-hover) !important;cursor:pointer}:host(.navigation-item-page-header) .link:focus,:host(.navigation-item-page-header) ::slotted(a:focus){box-shadow:var(--ic-border-focus)}:host(.navigation-item-page-header) .link:active,:host(.navigation-item-page-header) ::slotted(a:active){background-color:var(--ic-action-default-bg-pressed) !important}:host(.navigation-item-page-header.navigation-item-selected) .link:focus::after,:host(.navigation-item-page-header) ::slotted(a.active:focus)::after{border-bottom-left-radius:var(--ic-border-radius);border-bottom-right-radius:var(--ic-border-radius)}:host(.navigation-item-page-header.navigation-item-selected.with-transition) .link,:host(.navigation-item-page-header.navigation-item-selected.with-transition) ::slotted(a.active){transition:all var(--ic-easing-transition-fast),\n border-color var(--ic-transition-duration-fast)}:host(.navigation-item-page-header) ::slotted(a.active)::before,:host(.navigation-item-page-header) ::slotted(a.active:focus)::before,:host(.navigation-item-page-header.navigation-item-selected) .link:focus::before{display:none}.open-in-new-icon{flex:1}.open-in-new-icon svg{margin-top:var(--ic-space-xxs);padding-left:var(--ic-space-xs)}:host(.navigation-item-side-nav) .open-in-new-icon{margin-left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-top-nav) .open-in-new-icon svg,:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-side-nav) .open-in-new-icon svg{height:0.875rem;width:0.875rem}:host(.navigation-item-side-menu) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg{height:var(--ic-space-md);width:var(--ic-space-md)}:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg,:host(.navigation-item-side-menu) .open-in-new-icon svg{fill:var(--ic-color-text-primary)}@media (forced-colors: active){.open-in-new-icon svg{fill:currentcolor}}";
|
|
17775
|
+
const icNavigationItemCss = "/*! 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;--navigation-link-colour:var(--ic-brand-text-color)}:host(:focus-within){z-index:var(--ic-z-index-navigation-item)}svg{width:var(--ic-space-xl);fill:var(--ic-brand-text-color)}.svg{margin-left:auto}.chevron-container svg,.chevron-container .svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.chevron-container{flex-grow:1}:host(.expandable.navigation-item) .link,:host(.expandable.navigation-item) ::slotted(a){padding-right:0}:host(.navigation-item) .link,:host(.navigation-item) ::slotted(a){height:calc(100% - var(--ic-space-xxs));width:-moz-fit-content;width:fit-content;color:var(--navigation-link-colour);display:flex;align-items:center;justify-content:center;padding:0 var(--ic-space-md) var(--ic-space-xxs);text-decoration:none;transition:var(--ic-easing-transition-fast);position:relative;white-space:nowrap;--ic-typography-color:var(--navigation-link-colour)}:host(.navigation-item) ::slotted(a){height:100%;font:var(--ic-font-label) !important;letter-spacing:var(--ic-font-letter-spacing-0pt025) !important;padding:0 var(--ic-space-md) !important}:host(.navigation-item-selected) .link::after,:host(.navigation-item-selected) ::slotted(a.active)::after,:host(.navigation-item-top-nav) ::slotted(a.active)::after{content:\"\";height:0.25rem;width:100%;position:absolute;bottom:0;background-color:var(--ic-top-navigation-theme)}:host(.navigation-item-selected.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-selected.navigation-item-page-header) .link::after,:host(.navigation-item.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-top-nav-child) ::slotted(a.active)::after{content:none}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){box-shadow:none}:host(.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover);cursor:pointer}:host(.navigation-item:not(.navigation-item-page-header,.navigation-item-side-menu,.navigation-item-top-nav-child)) ::slotted(a:hover:not(:focus)),:host(.navigation-item-side-nav.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover) !important}:host(.navigation-item:not(.navigation-item-top-nav-child,.navigation-item-side-menu,.navigation-item-top-nav-child-selected .navigation-item-side-menu-selected)) .focus-indicator:focus-within{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius)}:host(.navigation-item) .link:focus,:host(.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item-selected) .link:focus,:host(.navigation-item) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item) .link:active:not(:focus),:host(.navigation-item) ::slotted(a:active:not(:focus)){background-color:var(--ic-brand-active)}:host(.navigation-item-side-menu) .link,:host(.navigation-item-side-menu) ::slotted(a){min-height:2.5rem;height:auto;width:100%;box-sizing:border-box;color:var(--ic-top-navigation-nav-item);--ic-typography-color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;text-decoration:none;text-wrap:wrap;white-space:normal;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(svg),:host(.navigation-item-side-menu) ::slotted(svg),:host(.navigation-item-page-header) ::slotted(svg){fill:var(--ic-color-text-primary)}:host(.navigation-item-top-nav-child) .link,:host(.navigation-item-top-nav-child) ::slotted(a){color:var(--ic-color-text-primary);--ic-typography-color:var(--ic-color-text-primary)}:host(.navigation-item-side-menu) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important;transition:box-shadow var(--ic-easing-transition-fast),\n background-color var(--ic-easing-transition-fast)}:host(.navigation-item-side-menu) .link:hover:not(:focus){background-color:var(--ic-top-navigation-nav-item-hover)}:host(.navigation-item-side-menu) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-side-menu) .focus-indicator:focus-within{box-shadow:none}:host(.navigation-item-side-menu) .link:focus,:host(.navigation-item-side-menu) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset) !important;width:auto;border-radius:var(--ic-border-radius-inset) !important}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu-selected) ::slotted(a){transition:box-shadow var(--ic-easing-transition-slow),\n background-color var(--ic-easing-transition-slow)}:host(.navigation-item-side-menu-selected) .link:focus,:host(.navigation-item-side-menu) ::slotted(a.active:focus),:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){margin-left:var(--ic-space-xs) !important;padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child) .link,:host(.navigation-item-top-nav-child) ::slotted(a){height:2.5rem;width:calc(100% - var(--ic-space-xl));min-width:9.063rem;color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;padding:0 var(--ic-space-md) !important;text-decoration:none;position:relative;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-slow)}:host(.navigation-item-top-nav-child) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important}:host(.navigation-item-top-nav-child) .link:hover:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-top-nav-child) ::slotted(a:focus){z-index:1;outline:var(--ic-hc-focus-outline);border-radius:var(--ic-border-radius-inset);box-shadow:var(--ic-border-focus-inset);transition:border-radius 0s, box-shadow var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}:host(.navigation-item-side-menu) .link:active:not(:focus){background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) .link:active:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)){outline:var(--ic-hc-focus-outline);background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)),:host(.navigation-item-side-menu) ::slotted(a:active:not(:focus)){background-color:var(--ic-top-navigation-nav-item-pressed) !important}:host(.navigation-item-side-menu-selected) *,:host(.navigation-item-top-nav-child-selected) *,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){font-weight:700 !important}:host(.navigation-item-top-nav-child) ::slotted(a.active)::before,:host(.navigation-item-top-nav-child-selected) .link::before,:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{content:\"\";position:absolute;left:0;width:var(--ic-space-xs);height:inherit;min-height:2.5rem;background-color:var(--ic-top-navigation-nav-item-banner);transition:left 0s}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu-selected) .link:focus::before{margin-top:var(--ic-space-xxs)}:host(.navigation-item-top-nav-child-selected) .link:focus{margin-left:var(--ic-space-xs);margin-right:calc(-1 * var(--ic-space-xs));padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child-selected) .link:focus::before{left:calc(-1 * var(--ic-space-xs));z-index:1}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{z-index:1}:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before,:host(.navigation-item-top-nav-child) ::slotted(a.active:focus)::before{left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-side-menu-selected) .link::after{display:none}:host(.navigation-item-side-nav-collapsed) .link{height:100%}:host(.navigation-item-side-nav-collapsed) ::slotted(svg),:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(svg){margin:auto;pointer-events:none}:host(.navigation-item-side-nav-collapsed) .icon,:host(.navigation-item-side-nav-collapsed-with-label) .icon,:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{align-items:center;padding:0;margin:auto 0;width:-moz-fit-content;width:fit-content;pointer-events:none}:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:center}:host(.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:flex;flex-direction:column;height:-moz-fit-content;height:fit-content;padding:var(--ic-space-xs) !important;gap:var(--ic-space-xxs)}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){height:auto !important;gap:0;width:auto;padding:var(--ic-space-xs) !important}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block;text-align:center}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link ic-typography{opacity:1;min-width:-moz-min-content;min-width:min-content}:host(.navigation-item-side-nav-collapsed) svg,:host(.navigation-item-side-nav-collapsed-with-label) svg{display:none}::slotted(svg){fill:var(--ic-brand-text-color);height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-md)}.icon{height:1.5rem;width:var(--ic-space-xxl);margin-left:calc(-1 * var(--ic-space-md));flex:0 1 0%;position:relative}.icon>::slotted(*){margin-left:var(--ic-space-md) !important;margin-right:var(--ic-space-xs)}.inline-badge{margin-left:var(--ic-space-xs)}.badge{margin-left:0}:host(.navigation-item-side-nav-collapsed) .icon>::slotted(*){margin:auto !important}:host(.navigation-item-side-nav) .icon>::slotted(*){margin-right:0}:host(.navigation-item-side-nav) .link,:host(.navigation-item-side-nav) ::slotted(a){height:var(--navigation-item-height, 4rem);min-height:var(--navigation-item-min-height);width:var(--navigation-item-width, auto);justify-content:var(--navigation-item-justify-content);display:flex;gap:var(--ic-space-xs);box-sizing:border-box;color:var(--navigation-item-child-color) !important;text-decoration:none !important;white-space:nowrap;padding:0 var(--ic-space-md);text-wrap:wrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a){height:var(--navigation-item-child-height);width:var(--navigation-group-width);color:var(--navigation-item-child-color) !important;display:flex;gap:0.625rem;box-sizing:border-box;min-width:0;transition:box-shadow var(--ic-easing-transition-fast);text-decoration:none !important;white-space:nowrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:focus){box-shadow:var(--ic-border-focus-dark)}:host(.navigation-item-side-nav.navigation-item-side-menu) .link:active{background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:active,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:active){background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav) a.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) a.link ic-typography,:host(.navigation-item-side-nav) div.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) div.link ic-typography,.navigation-item-side-nav-slotted-text{opacity:var(--navigation-item-label-opacity);transition:opacity var(--ic-easing-transition-slow);white-space:wrap;text-overflow:ellipsis;overflow:hidden}:host(.navigation-item-side-nav.navigation-item-selected) .link,:host(.navigation-item-side-nav.navigation-item) ::slotted(a.active){box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color)}:host(.navigation-item-side-nav.navigation-item-selected) .link::before,:host(.navigation-item-side-nav) ::slotted(a.active)::before{content:\"\";display:block;position:absolute;inset:0 0 0 0.313rem;border-radius:0.688rem !important;transition:var(--ic-easing-transition-slow)}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus::before,:host(.navigation-item-side-nav) ::slotted(a.active:focus)::before{box-shadow:var(--ic-border-focus-inset)}:host(:not(.navigation-item-side-nav-collapsed).navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link{opacity:var(--navigation-item-label-opacity);height:auto}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){min-width:var(--navigation-group-item-min-width);padding:var(--ic-space-xs) !important;height:auto;gap:0}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block}:host(.navigation-item-side-nav.navigation-item-selected) .link::after,:host(.navigation-item-side-nav) ::slotted(a.active)::after{display:none}:host(.navigation-item-side-nav.navigation-item) .link:focus,:host(.navigation-item-side-nav.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background-color:transparent}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus,:host(.navigation-item-side-nav) ::slotted(a.active:focus){margin:0 auto;box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color);border-radius:0}:host(.navigation-item-page-header).link,:host(.navigation-item-page-header) a,:host(.navigation-item-page-header) ::slotted(a){height:2.5rem !important;color:var(--ic-color-text-primary) !important;transition:all var(--ic-easing-transition-fast) !important;box-shadow:rgba(23 89 188 / 0%) !important}:host(.navigation-item-page-header.navigation-item-selected) .link::after,:host(.navigation-item-page-header) ::slotted(a.active)::after{content:\" \" !important;position:absolute;bottom:0;left:0;right:0;height:var(--ic-space-xxs);background-color:var(--ic-action-default) !important}:host(.navigation-item-page-header) .link:hover,:host(.navigation-item-page-header) ::slotted(.link:hover),:host(.navigation-item-page-header) ::slotted(a:hover),:host(.navigation-item-page-header) .link:hover:not(:focus){background-color:var(--ic-action-default-bg-hover) !important;cursor:pointer}:host(.navigation-item-page-header) .link:focus,:host(.navigation-item-page-header) ::slotted(a:focus){box-shadow:var(--ic-border-focus)}:host(.navigation-item-page-header) .link:active,:host(.navigation-item-page-header) ::slotted(a:active){background-color:var(--ic-action-default-bg-pressed) !important}:host(.navigation-item-page-header.navigation-item-selected) .link:focus::after,:host(.navigation-item-page-header) ::slotted(a.active:focus)::after{border-bottom-left-radius:var(--ic-border-radius);border-bottom-right-radius:var(--ic-border-radius)}:host(.navigation-item-page-header.navigation-item-selected.with-transition) .link,:host(.navigation-item-page-header.navigation-item-selected.with-transition) ::slotted(a.active){transition:all var(--ic-easing-transition-fast),\n border-color var(--ic-transition-duration-fast)}:host(.navigation-item-page-header) ::slotted(a.active)::before,:host(.navigation-item-page-header) ::slotted(a.active:focus)::before,:host(.navigation-item-page-header.navigation-item-selected) .link:focus::before{display:none}.open-in-new-icon{flex:1}.open-in-new-icon svg{margin-top:var(--ic-space-xxs);padding-left:var(--ic-space-xs)}:host(.navigation-item-side-nav) .open-in-new-icon{margin-left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-top-nav) .open-in-new-icon svg,:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-side-nav) .open-in-new-icon svg{height:0.875rem;width:0.875rem}:host(.navigation-item-side-menu) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg{height:var(--ic-space-md);width:var(--ic-space-md)}:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg,:host(.navigation-item-side-menu) .open-in-new-icon svg{fill:var(--ic-color-text-primary)}@media (forced-colors: active){.open-in-new-icon svg{fill:currentcolor}}";
|
|
16339
17776
|
var IcNavigationItemStyle0 = icNavigationItemCss;
|
|
16340
17777
|
|
|
16341
17778
|
/**
|
|
@@ -16750,7 +18187,7 @@ class NavigationMenu {
|
|
|
16750
18187
|
}; }
|
|
16751
18188
|
}
|
|
16752
18189
|
|
|
16753
|
-
const icPageHeaderCss = "/*! 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;z-index:var(--ic-z-index-page-header)}:host(.ic-page-header-sticky){position:sticky;top:0;box-shadow:var(--ic-elevation-overlay);z-index:var(--ic-z-index-sticky-page-header)}header{background-color:var(--ic-page-header-background)}header.border-bottom{border-bottom:var(--ic-border-default);border-bottom:var(--ic-space-1px) solid var(--ic-page-header-border)}header.tabs{padding-top:var(--ic-space-md)}.breadcrumb-area{margin-bottom:var(--ic-space-md)}.main-content{display:grid;grid-template-columns:auto 1fr;grid-template-areas:\"title-area action-area\"\n \"input-area action-area\";-moz-column-gap:var(--ic-space-md);column-gap:var(--ic-space-md);justify-content:space-between;width:100%}.title-area{display:flex;flex-direction:column;flex:1;min-width:19rem;grid-area:title-area}.header-content{display:flex;align-items:center;width:100%;flex-wrap:wrap;-moz-column-gap:var(--ic-space-md);column-gap:var(--ic-space-md)}.heading{display:inline-block;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.subheading-content{margin-top:var(--ic-space-xs)}.subheading-content.small{margin-top:var(--ic-space-md)}.action-area{display:flex;gap:var(--ic-space-md);flex-flow:row wrap;justify-self:end;justify-content:flex-end;height:-moz-fit-content;height:fit-content;grid-area:action-area}.input-area,.navigation-area{margin-top:var(--ic-space-md);width:100%}.tabs-slot{display:flex;overflow-x:auto;padding:0.5rem;margin:-0.5rem}.tabs-slot::-webkit-scrollbar{display:none}.input-area{grid-area:input-area}@media screen and (max-width: 576px){::slotted(ic-text-field){--input-width:100%;max-width:20rem}.main-content{grid-template-areas:\"title-area\"\n \"action-area\"\n \"input-area\";justify-content:flex-start}.title-area{min-width:0}.action-area{min-width:100%;margin-top:var(--ic-space-md);justify-content:start}}@media screen and (min-width: 992px){:host(.ic-page-header-sticky-desktop){position:sticky;top:0;box-shadow:var(--ic-elevation-overlay);z-index:var(--ic-z-index-sticky-page-header)}}";
|
|
18190
|
+
const icPageHeaderCss = "/*! 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;z-index:var(--ic-z-index-page-header)}:host(.ic-page-header-sticky){position:sticky;top:0;box-shadow:var(--ic-elevation-overlay);z-index:var(--ic-z-index-sticky-page-header)}header{background-color:var(--ic-page-header-background)}header.border-bottom{border-bottom:var(--ic-border-default);border-bottom:var(--ic-space-1px) solid var(--ic-page-header-border)}header.tabs{padding-top:var(--ic-space-md)}.breadcrumb-area{margin-bottom:var(--ic-space-md)}::slotted(ic-navigation-item){--navigation-link-colour:var(--ic-color-text-primary)}.main-content{display:grid;grid-template-columns:auto 1fr;grid-template-areas:\"title-area action-area\"\n \"input-area action-area\";-moz-column-gap:var(--ic-space-md);column-gap:var(--ic-space-md);justify-content:space-between;width:100%}.title-area{display:flex;flex-direction:column;flex:1;min-width:19rem;grid-area:title-area}.header-content{display:flex;align-items:center;width:100%;flex-wrap:wrap;-moz-column-gap:var(--ic-space-md);column-gap:var(--ic-space-md)}.heading{display:inline-block;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.subheading-content{margin-top:var(--ic-space-xs)}.subheading-content.small{margin-top:var(--ic-space-md)}.action-area{display:flex;gap:var(--ic-space-md);flex-flow:row wrap;justify-self:end;justify-content:flex-end;height:-moz-fit-content;height:fit-content;grid-area:action-area}.input-area,.navigation-area{margin-top:var(--ic-space-md);width:100%}.tabs-slot{display:flex;overflow-x:auto;padding:0.5rem;margin:-0.5rem}.tabs-slot::-webkit-scrollbar{display:none}.input-area{grid-area:input-area}@media screen and (max-width: 576px){::slotted(ic-text-field){--input-width:100%;max-width:20rem}.main-content{grid-template-areas:\"title-area\"\n \"action-area\"\n \"input-area\";justify-content:flex-start}.title-area{min-width:0}.action-area{min-width:100%;margin-top:var(--ic-space-md);justify-content:start}}@media screen and (min-width: 992px){:host(.ic-page-header-sticky-desktop){position:sticky;top:0;box-shadow:var(--ic-elevation-overlay);z-index:var(--ic-z-index-sticky-page-header)}}";
|
|
16754
18191
|
var IcPageHeaderStyle0 = icPageHeaderCss;
|
|
16755
18192
|
|
|
16756
18193
|
/**
|
|
@@ -17276,6 +18713,16 @@ class PaginationBar {
|
|
|
17276
18713
|
If `true`, the pagination bar is set to the first page when the 'items per page' changes
|
|
17277
18714
|
*/
|
|
17278
18715
|
this.setToFirstPageOnPaginationChange = false;
|
|
18716
|
+
this.setSelectedItemsPerPage = (selectedItemsPerPage, displayedItemsPerPageOptions = []) => {
|
|
18717
|
+
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()); });
|
|
18718
|
+
if (isSelectedItemsPerPagePresent) {
|
|
18719
|
+
this.setItemsPerPage(selectedItemsPerPage, false);
|
|
18720
|
+
}
|
|
18721
|
+
else {
|
|
18722
|
+
console.error(`The selected items per page option "${this.selectedItemsPerPage}" does not exist`);
|
|
18723
|
+
this.setItemsPerPage(+this.totalItems, false);
|
|
18724
|
+
}
|
|
18725
|
+
};
|
|
17279
18726
|
this.changeItemsPerPage = () => {
|
|
17280
18727
|
this.setItemsPerPage(Number(this.pageDropdownEl.value));
|
|
17281
18728
|
this.userSetItemsPerPage = Number(this.pageDropdownEl.value);
|
|
@@ -17389,12 +18836,15 @@ class PaginationBar {
|
|
|
17389
18836
|
this.activePage = firstPage;
|
|
17390
18837
|
this.icPageChange.emit({ value: firstPage });
|
|
17391
18838
|
};
|
|
17392
|
-
this.setItemsPerPage = (newValue) => {
|
|
18839
|
+
this.setItemsPerPage = (newValue, isUserAction = true) => {
|
|
17393
18840
|
var _a;
|
|
17394
18841
|
if (this.itemsPerPage !== newValue) {
|
|
17395
18842
|
this.itemsPerPage = newValue;
|
|
17396
18843
|
this.itemsPerPageString = newValue.toString();
|
|
17397
|
-
this.icItemsPerPageChange.emit({
|
|
18844
|
+
this.icItemsPerPageChange.emit({
|
|
18845
|
+
value: this.itemsPerPage,
|
|
18846
|
+
isUserAction,
|
|
18847
|
+
});
|
|
17398
18848
|
if (this.setToFirstPageOnPaginationChange) {
|
|
17399
18849
|
this.setToFirstPage();
|
|
17400
18850
|
}
|
|
@@ -17441,13 +18891,19 @@ class PaginationBar {
|
|
|
17441
18891
|
this.setItemsPerPage(lastOptionValue);
|
|
17442
18892
|
}
|
|
17443
18893
|
else {
|
|
17444
|
-
|
|
17445
|
-
|
|
17446
|
-
|
|
17447
|
-
}
|
|
17448
|
-
|
|
17449
|
-
|
|
17450
|
-
|
|
18894
|
+
if (this.selectedItemsPerPage !== null &&
|
|
18895
|
+
this.selectedItemsPerPage !== undefined) {
|
|
18896
|
+
this.setSelectedItemsPerPage(this.selectedItemsPerPage, this.displayedItemsPerPageOptions);
|
|
18897
|
+
}
|
|
18898
|
+
else {
|
|
18899
|
+
const updated = this.displayedItemsPerPageOptions.some(({ value }) => {
|
|
18900
|
+
lastOptionValue = Number(value);
|
|
18901
|
+
return this.itemsPerPage <= lastOptionValue;
|
|
18902
|
+
});
|
|
18903
|
+
this.setItemsPerPage(updated || (!updated && this.itemsPerPage > lastOptionValue)
|
|
18904
|
+
? lastOptionValue
|
|
18905
|
+
: this.itemsPerPage, false);
|
|
18906
|
+
}
|
|
17451
18907
|
}
|
|
17452
18908
|
};
|
|
17453
18909
|
this.setUpperBound = () => {
|
|
@@ -17467,15 +18923,9 @@ class PaginationBar {
|
|
|
17467
18923
|
}
|
|
17468
18924
|
}
|
|
17469
18925
|
watchSelectedItemsPerPageHandler() {
|
|
17470
|
-
var _a;
|
|
17471
18926
|
if (this.selectedItemsPerPage !== null &&
|
|
17472
18927
|
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
|
-
}
|
|
18928
|
+
this.setSelectedItemsPerPage(this.selectedItemsPerPage, this.displayedItemsPerPageOptions);
|
|
17479
18929
|
}
|
|
17480
18930
|
}
|
|
17481
18931
|
watchItemLabelHandler() {
|
|
@@ -17506,7 +18956,6 @@ class PaginationBar {
|
|
|
17506
18956
|
this.watchPageLabelHandler();
|
|
17507
18957
|
this.watchItemLabelHandler();
|
|
17508
18958
|
this.setPaginationBarContent();
|
|
17509
|
-
this.watchSelectedItemsPerPageHandler();
|
|
17510
18959
|
}
|
|
17511
18960
|
componentDidLoad() {
|
|
17512
18961
|
var _a, _b, _c;
|
|
@@ -17528,21 +18977,21 @@ class PaginationBar {
|
|
|
17528
18977
|
}
|
|
17529
18978
|
render() {
|
|
17530
18979
|
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: '
|
|
18980
|
+
return (hAsync(Host, { key: 'c69d7b2032367620b35d339163cc56ec6383016a', class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '0ffcb94ee6e3a04410d158d6716520e2969cecfe', class: {
|
|
17532
18981
|
["pagination-bar"]: true,
|
|
17533
18982
|
[`pagination-bar-${alignment}`]: true,
|
|
17534
|
-
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { key: '
|
|
18983
|
+
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { key: '513180ace8fc3f82c26ee5c745e0d5b852a10fda', class: "item-controls" }, showItemsPerPageControl && (hAsync("div", { key: '042383e4d976e5d70386bd228d74036e5923d135', class: "items-per-page-holder" }, hAsync("ic-typography", { key: '5a803102cd7793f267b6de476f402a354c9daaee', class: {
|
|
17535
18984
|
["items-per-page-control-label"]: true,
|
|
17536
|
-
}, variant: "label", onClick: this.itemsPerPageLabelClickHandler }, capitalizedItemLabel, "s per ", lowerCasePageLabel), hAsync("ic-select", { key: '
|
|
18985
|
+
}, variant: "label", onClick: this.itemsPerPageLabelClickHandler }, capitalizedItemLabel, "s per ", lowerCasePageLabel), hAsync("ic-select", { key: '0165e03c68c40791ef35a0064a4cb94e0490763e', 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
18986
|
(rangeLabelType === "data" ? (hAsync("ic-typography", { class: {
|
|
17538
18987
|
["item-pagination-label"]: true,
|
|
17539
18988
|
}, variant: "label", "aria-live": "polite" }, this.upperBound === 0 && `0 ${lowerCaseItemLabel}s`, this.upperBound > 0 &&
|
|
17540
18989
|
`${this.lowerBound} - ${this.upperBound} of ${this.totalItems} ${lowerCaseItemLabel}${this.totalItems > 1 ? "s" : ""}`)) : (hAsync("ic-typography", { class: {
|
|
17541
18990
|
["page-pagination-label"]: true,
|
|
17542
|
-
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: '
|
|
18991
|
+
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: '6fdec8e5aa7edac5b6857fe5dd71995539c1093a', class: {
|
|
17543
18992
|
["pagination-controls"]: true,
|
|
17544
18993
|
["pagination-controls-wrap"]: this.paginationWrapped,
|
|
17545
|
-
} }, hAsync("div", { key: '
|
|
18994
|
+
} }, hAsync("div", { key: 'aa128b6414fdc3a62f0c0e0bbc70676279a80388', class: "pagination-holder" }, hAsync("ic-pagination", { key: '3fc38294f98b07e4b27a731d81eb72536bbf8907', type: type, pages: totalPages, label: pageLabel, ref: (el) => (this.paginationEl = el), currentPage: activePage, theme: theme, monochrome: monochrome })), showGoToPageControl && (hAsync("div", { key: '02d6832988b1e442682e63eb11c168d50a7f8aaa', class: "go-to-page-holder" }, hAsync("ic-typography", { key: 'cf0236ecc6cda9047ae4ce84bde95fd60130c1ae', variant: "label", onClick: this.goToPageLabelClickHandler }, "Go to ", lowerCasePageLabel), hAsync("ic-tooltip", { key: '5c1bb281471249243a00bb2ca336e1f01b63ea40', label: this.inputError, target: `#${PAGE_INPUT_FIELD_ID}`, disableHover: true, disableClick: true, ref: (el) => (this.pageInputTooltipEl = el) }, hAsync("ic-text-field", { key: '728e6563db060cdc166e9a18d1de5f3afd1e42f3', 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: '418d9b8d49c185a6630ce0d742901bcf9a646947', variant: "secondary", onClick: this.goToPage, size: "small", class: "go-to-page-button" }, "Go")))))));
|
|
17546
18995
|
}
|
|
17547
18996
|
get el() { return getElement(this); }
|
|
17548
18997
|
static get watchers() { return {
|
|
@@ -18003,7 +19452,7 @@ class PopoverMenu {
|
|
|
18003
19452
|
}; }
|
|
18004
19453
|
}
|
|
18005
19454
|
|
|
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)}";
|
|
19455
|
+
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
19456
|
var IcRadioGroupStyle0 = icRadioGroupCss;
|
|
18008
19457
|
|
|
18009
19458
|
/**
|
|
@@ -18039,6 +19488,10 @@ class RadioGroup {
|
|
|
18039
19488
|
* The size of the radio group component.
|
|
18040
19489
|
*/
|
|
18041
19490
|
this.size = "medium";
|
|
19491
|
+
/**
|
|
19492
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
19493
|
+
*/
|
|
19494
|
+
this.validationAriaLive = "polite";
|
|
18042
19495
|
/**
|
|
18043
19496
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
|
18044
19497
|
*/
|
|
@@ -18232,17 +19685,20 @@ class RadioGroup {
|
|
|
18232
19685
|
}
|
|
18233
19686
|
}
|
|
18234
19687
|
render() {
|
|
18235
|
-
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationStatus, validationText, theme, } = this;
|
|
18236
|
-
|
|
19688
|
+
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationAriaLive, validationStatus, validationText, theme, } = this;
|
|
19689
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
19690
|
+
return (hAsync(Host, { key: '4ea2e0ca7614fb4ce6563ea146f86d72707a399a', onKeyDown: handleKeyDown, class: {
|
|
18237
19691
|
"ic-radio-group-small": size === "small",
|
|
18238
19692
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
18239
|
-
} }, hAsync("fieldset", { key: '
|
|
19693
|
+
} }, 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
19694
|
[`${validationStatus}`]: true,
|
|
18241
19695
|
["disabled"]: !!disabled,
|
|
18242
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '
|
|
19696
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '66325d58018dff189c975e3e4fc01249b51b6b9f', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '6d2d332396c87b798d5d160bdb5977c0a8ad6751', class: {
|
|
18243
19697
|
"radio-buttons-container": true,
|
|
18244
19698
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
|
18245
|
-
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: '
|
|
19699
|
+
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: 'fb0a1b41503ba88ce9bda3c0bc8236ae0a7e3795' }))), hAsync("ic-input-validation", { key: 'f9f7c2bdffd83d705149f74fe2caad93e57dd85b', class: {
|
|
19700
|
+
"show-validation": showValidation,
|
|
19701
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
|
18246
19702
|
}
|
|
18247
19703
|
get el() { return getElement(this); }
|
|
18248
19704
|
static get watchers() { return {
|
|
@@ -18263,6 +19719,7 @@ class RadioGroup {
|
|
|
18263
19719
|
"orientation": [1],
|
|
18264
19720
|
"required": [4],
|
|
18265
19721
|
"size": [1],
|
|
19722
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
18266
19723
|
"validationStatus": [1, "validation-status"],
|
|
18267
19724
|
"validationText": [1, "validation-text"],
|
|
18268
19725
|
"theme": [1],
|
|
@@ -18277,7 +19734,7 @@ class RadioGroup {
|
|
|
18277
19734
|
}; }
|
|
18278
19735
|
}
|
|
18279
19736
|
|
|
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-
|
|
19737
|
+
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
19738
|
var IcRadioOptionStyle0 = icRadioOptionCss;
|
|
18282
19739
|
|
|
18283
19740
|
const ADDITIONAL_FIELD = "additional-field";
|
|
@@ -19282,6 +20739,10 @@ class Select {
|
|
|
19282
20739
|
* 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
20740
|
*/
|
|
19284
20741
|
this.theme = "inherit";
|
|
20742
|
+
/**
|
|
20743
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
20744
|
+
*/
|
|
20745
|
+
this.validationAriaLive = "polite";
|
|
19285
20746
|
/**
|
|
19286
20747
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
|
19287
20748
|
*/
|
|
@@ -19936,12 +21397,13 @@ class Select {
|
|
|
19936
21397
|
}
|
|
19937
21398
|
render() {
|
|
19938
21399
|
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;
|
|
21400
|
+
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
21401
|
// HTML inputs only accept 'string' for their value
|
|
19941
21402
|
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
|
19942
21403
|
renderHiddenInput$1(this.el, searchable ? hiddenInputValue : currValue, name || inputId, disabled);
|
|
19943
21404
|
const invalid = `${validationStatus === IcInformationStatus$1.Error}`;
|
|
19944
|
-
const
|
|
21405
|
+
const showValidation = hasValidationStatus(validationStatus, !!disabled);
|
|
21406
|
+
const describedBy = getInputDescribedByText$1(this.el, inputId, helperText !== "", showValidation).trim();
|
|
19945
21407
|
const valueLabelString = multiple
|
|
19946
21408
|
? this.getMultipleOptionsString(currValue)
|
|
19947
21409
|
: this.getLabelFromValue(currValue);
|
|
@@ -19949,18 +21411,18 @@ class Select {
|
|
|
19949
21411
|
(searchable
|
|
19950
21412
|
? !!searchableSelectInputValue
|
|
19951
21413
|
: !!currValue && !loading && showClearButton);
|
|
19952
|
-
return (hAsync(Host, { key: '
|
|
21414
|
+
return (hAsync(Host, { key: 'd4771b458b86fdf5e8fd7242b0faa34c641dc1fd', class: {
|
|
19953
21415
|
"ic-select-disabled": disabled,
|
|
19954
21416
|
"ic-select-searchable": searchable,
|
|
19955
21417
|
[`ic-select-${size}`]: size !== "medium",
|
|
19956
21418
|
"ic-select-full-width": fullWidth,
|
|
19957
21419
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19958
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
|
21420
|
+
}, 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
21421
|
!disabled &&
|
|
19960
|
-
(!readonly || !!value) && (hAsync("span", { key: '
|
|
21422
|
+
(!readonly || !!value) && (hAsync("span", { key: '208359e9a4b4c92823fa924ce0e7b0e5419c0cef', slot: "left-icon", class: {
|
|
19961
21423
|
readonly,
|
|
19962
21424
|
"has-value": !!value,
|
|
19963
|
-
} }, hAsync("slot", { key: '
|
|
21425
|
+
} }, 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
21426
|
"value-text": true,
|
|
19965
21427
|
"select-input": true,
|
|
19966
21428
|
"with-clear-button": !!searchableSelectInputValue,
|
|
@@ -19981,13 +21443,15 @@ class Select {
|
|
|
19981
21443
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
|
19982
21444
|
"expand-icon": true,
|
|
19983
21445
|
"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: '
|
|
21446
|
+
}, 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
21447
|
"no-results": loading ||
|
|
19986
21448
|
hasTimedOut ||
|
|
19987
21449
|
((_a = noOptions === null || noOptions === void 0 ? void 0 : noOptions[0]) === null || _a === void 0 ? void 0 : _a.label) === emptyOptionListText,
|
|
19988
21450
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
|
19989
21451
|
? 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: '
|
|
21452
|
+
: 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: {
|
|
21453
|
+
"menu-open": open,
|
|
21454
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
|
|
19991
21455
|
}
|
|
19992
21456
|
static get delegatesFocus() { return true; }
|
|
19993
21457
|
get el() { return getElement(this); }
|
|
@@ -20028,6 +21492,7 @@ class Select {
|
|
|
20028
21492
|
"size": [1],
|
|
20029
21493
|
"timeout": [2],
|
|
20030
21494
|
"theme": [1],
|
|
21495
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
20031
21496
|
"validationStatus": [1, "validation-status"],
|
|
20032
21497
|
"validationText": [1, "validation-text"],
|
|
20033
21498
|
"loading": [1028],
|
|
@@ -20684,7 +22149,7 @@ class SkipLink {
|
|
|
20684
22149
|
}; }
|
|
20685
22150
|
}
|
|
20686
22151
|
|
|
20687
|
-
const icStatusTagCss = "/*! 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}.tag{padding:var(--ic-space-xxs) var(--ic-space-sm);font-size:0.875rem;border-radius:var(--ic-space-md);display:inline-block;min-width:2.5rem;text-align:center;--ic-typography-color:var(--ic-status-tag-text)}.small{padding:var(--ic-space-xxxs) var(--ic-space-sm);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.large{padding:var(--ic-space-xs) var(--ic-space-sm);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.filled-neutral{background-color:var(--ic-status-tag-neutral)}.filled-success{background-color:var(--ic-status-tag-success)}.filled-warning{background-color:var(--ic-status-tag-warning);--ic-typography-color:var(--ic-status-tag-filled-warning-text)}.filled-danger{background-color:var(--ic-status-tag-error)}.outlined{padding:calc(var(--ic-space-xxxs) + var(--ic-space-1px))\n calc(var(--ic-space-sm) - var(--ic-space-1px))}.outlined.small{padding:var(--ic-space-1px) calc(var(--ic-space-sm) - var(--ic-space-1px))}.outlined.large{padding:calc(var(--ic-space-xs) - var(--ic-space-1px))\n calc(var(--ic-space-sm) - var(--ic-space-1px))}.outlined-neutral{background-color:var(--ic-status-tag-outlined-background-neutral);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-neutral);--ic-typography-color:var(--ic-status-tag-text-inverted)}.outlined-success{background-color:var(--ic-status-tag-outlined-background-success);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-success);--ic-typography-color:var(--ic-status-tag-text-inverted)}.outlined-warning{background-color:var(--ic-status-tag-outlined-background-warning);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-warning);--ic-typography-color:var(--ic-status-tag-text-inverted)}.outlined-danger{background-color:var(--ic-status-tag-outlined-background-error);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-error);--ic-typography-color:var(--ic-status-tag-text-inverted)}@media (forced-colors: active){
|
|
22152
|
+
const icStatusTagCss = "/*! 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}.tag{padding:var(--ic-space-xxs) var(--ic-space-sm);font-size:0.875rem;border-radius:var(--ic-space-md);display:inline-block;min-width:2.5rem;text-align:center;--ic-typography-color:var(--ic-status-tag-text)}.small{padding:var(--ic-space-xxxs) var(--ic-space-sm);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.large{padding:var(--ic-space-xs) var(--ic-space-sm);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.filled-neutral{background-color:var(--ic-status-tag-neutral)}.filled-success{background-color:var(--ic-status-tag-success)}.filled-warning{background-color:var(--ic-status-tag-warning);--ic-typography-color:var(--ic-status-tag-filled-warning-text)}.filled-danger{background-color:var(--ic-status-tag-error)}.outlined{padding:calc(var(--ic-space-xxxs) + var(--ic-space-1px))\n calc(var(--ic-space-sm) - var(--ic-space-1px))}.outlined.small{padding:var(--ic-space-1px) calc(var(--ic-space-sm) - var(--ic-space-1px))}.outlined.large{padding:calc(var(--ic-space-xs) - var(--ic-space-1px))\n calc(var(--ic-space-sm) - var(--ic-space-1px))}.outlined-neutral{background-color:var(--ic-status-tag-outlined-background-neutral);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-neutral);--ic-typography-color:var(--ic-status-tag-text-inverted)}.outlined-success{background-color:var(--ic-status-tag-outlined-background-success);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-success);--ic-typography-color:var(--ic-status-tag-text-inverted)}.outlined-warning{background-color:var(--ic-status-tag-outlined-background-warning);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-warning);--ic-typography-color:var(--ic-status-tag-text-inverted)}.outlined-danger{background-color:var(--ic-status-tag-outlined-background-error);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-error);--ic-typography-color:var(--ic-status-tag-text-inverted)}@media (forced-colors: active){:host{-ms-high-contrast-adjust:none;forced-color-adjust:none}}";
|
|
20688
22153
|
var IcStatusTagStyle0 = icStatusTagCss;
|
|
20689
22154
|
|
|
20690
22155
|
class StatusTag {
|
|
@@ -20761,6 +22226,20 @@ class Step {
|
|
|
20761
22226
|
* @internal If `true`, and a compact stepper is being used, the current step will be the only step in view.
|
|
20762
22227
|
*/
|
|
20763
22228
|
this.current = false;
|
|
22229
|
+
/**
|
|
22230
|
+
* Words within the component that can be replaced to translate the component into a different language
|
|
22231
|
+
*/
|
|
22232
|
+
this.icI18n = {
|
|
22233
|
+
next: "Next",
|
|
22234
|
+
step: "Step",
|
|
22235
|
+
steps: "Steps",
|
|
22236
|
+
of: "of",
|
|
22237
|
+
lastStep: "Last step",
|
|
22238
|
+
completed: "Completed",
|
|
22239
|
+
notRequired: "Not required",
|
|
22240
|
+
required: "Required",
|
|
22241
|
+
optional: "Optional",
|
|
22242
|
+
};
|
|
20764
22243
|
/**
|
|
20765
22244
|
* @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
22245
|
*/
|
|
@@ -20780,96 +22259,95 @@ class Step {
|
|
|
20780
22259
|
}
|
|
20781
22260
|
render() {
|
|
20782
22261
|
var _a, _b;
|
|
22262
|
+
const { compactStepStyling, current, heading, icI18n, lastStep, lastStepNum, nextStepHeading, progress, status, stepNum, subheading, theme, type, variant, } = this;
|
|
20783
22263
|
// ARIA LABEL
|
|
20784
22264
|
let ariaLabel = "";
|
|
20785
|
-
if (
|
|
20786
|
-
ariaLabel =
|
|
22265
|
+
if (type === "completed") {
|
|
22266
|
+
ariaLabel = `. ${icI18n.completed}`;
|
|
20787
22267
|
}
|
|
20788
|
-
else if (
|
|
20789
|
-
ariaLabel =
|
|
22268
|
+
else if (type === "disabled") {
|
|
22269
|
+
ariaLabel = `. ${icI18n.notRequired}`;
|
|
20790
22270
|
}
|
|
20791
|
-
else if (
|
|
20792
|
-
ariaLabel =
|
|
22271
|
+
else if (status === "required") {
|
|
22272
|
+
ariaLabel = `. ${icI18n.required}`;
|
|
20793
22273
|
}
|
|
20794
|
-
else if (
|
|
20795
|
-
ariaLabel =
|
|
22274
|
+
else if (status === "optional") {
|
|
22275
|
+
ariaLabel = `. ${icI18n.optional}`;
|
|
20796
22276
|
}
|
|
20797
22277
|
// STEP STATUS
|
|
20798
22278
|
let stepStatus;
|
|
20799
|
-
if (
|
|
20800
|
-
stepStatus =
|
|
22279
|
+
if (status && isPropDefined$1(status)) {
|
|
22280
|
+
stepStatus = status[0].toUpperCase() + status.slice(1);
|
|
20801
22281
|
}
|
|
20802
22282
|
// STEP TYPE
|
|
20803
22283
|
let stepType;
|
|
20804
|
-
if (
|
|
20805
|
-
stepType =
|
|
22284
|
+
if (type === "disabled" || compactStepStyling === "disabled") {
|
|
22285
|
+
stepType = icI18n.notRequired;
|
|
20806
22286
|
}
|
|
20807
|
-
else if (
|
|
20808
|
-
stepType =
|
|
22287
|
+
else if (compactStepStyling === "completed") {
|
|
22288
|
+
stepType = icI18n.completed;
|
|
20809
22289
|
}
|
|
20810
22290
|
// STATUS ICON FOR COMPACT STEP
|
|
20811
22291
|
let statusIcon;
|
|
20812
|
-
if (
|
|
20813
|
-
statusIcon = (hAsync("span", { key: '
|
|
22292
|
+
if (type === "completed" || compactStepStyling === "completed") {
|
|
22293
|
+
statusIcon = (hAsync("span", { key: 'c1e124ab66fda2ad2fe60769de15e35e34519951', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
|
20814
22294
|
}
|
|
20815
|
-
else if (
|
|
20816
|
-
|
|
20817
|
-
statusIcon = (hAsync("span", { key: '6f4911859d103732d5f2133a26dc4e05cd6a3d22', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
22295
|
+
else if (type === "disabled" || compactStepStyling === "disabled") {
|
|
22296
|
+
statusIcon = (hAsync("span", { key: 'e4a11bda9361099c4a082a17ea365c5f87c72ee9', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
20818
22297
|
}
|
|
20819
22298
|
// COMPACT STEP COMPONENT
|
|
20820
|
-
const compactStep = (hAsync("div", { key: '
|
|
22299
|
+
const compactStep = (hAsync("div", { key: 'f4ce620bf342de1d168cd8988e110b399d16e8a5', class: {
|
|
20821
22300
|
["step"]: true,
|
|
20822
|
-
["current"]: !!
|
|
20823
|
-
[`compact-step-${
|
|
20824
|
-
["disabled"]:
|
|
20825
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
|
22301
|
+
["current"]: !!current,
|
|
22302
|
+
[`compact-step-${compactStepStyling}`]: !!compactStepStyling,
|
|
22303
|
+
["disabled"]: type === "disabled" || compactStepStyling === "disabled",
|
|
22304
|
+
} }, hAsync("ic-loading-indicator", { key: '69fe4783331f0d2c8537e46bb4065ee946e15922', class: {
|
|
20826
22305
|
"compact-step-progress-indicator": true,
|
|
20827
|
-
"not-required":
|
|
20828
|
-
|
|
20829
|
-
|
|
20830
|
-
|
|
20831
|
-
this.type === "disabled" ||
|
|
22306
|
+
"not-required": type === "disabled" || compactStepStyling === "disabled",
|
|
22307
|
+
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), hAsync("div", { key: '5e44dab23d530705ce04d6f5e898224031be9eae', class: "heading-area" }, hAsync("ic-typography", { key: '09feb668ddc70f11313c4639b1b2dd3efa86903e', variant: "h4", class: "heading" }, heading), hAsync("div", { key: '5d2e680eec783d9da46298084f379b780a2dfbb5', class: "info-line" }, hAsync("ic-typography", { key: '8578d9363f9b29301cdfe46a360bdbf525ec16e8', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, hAsync("span", { key: 'f9bcfd8e7ff1179ed7c48714741fddc401b9de00', class: "visually-hidden" }, ` ${icI18n.steps}`)), (this.subheading ||
|
|
22308
|
+
type === "completed" ||
|
|
22309
|
+
type === "disabled" ||
|
|
20832
22310
|
(this.variant === "compact" &&
|
|
20833
|
-
!!
|
|
20834
|
-
|
|
20835
|
-
!!
|
|
20836
|
-
?
|
|
20837
|
-
:
|
|
20838
|
-
(
|
|
20839
|
-
|
|
20840
|
-
|
|
20841
|
-
(
|
|
20842
|
-
|
|
22311
|
+
!!compactStepStyling &&
|
|
22312
|
+
compactStepStyling !== "active") ||
|
|
22313
|
+
!!status) && (hAsync("div", { key: 'ee4276dfd163853a6b82563e89e123b75c224613', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (hAsync("ic-typography", { key: '3a165f76bb8cf653705a0e86e931616fc75030b1', variant: "caption" }, subheading !== null && isPropDefined$1(subheading)
|
|
22314
|
+
? subheading
|
|
22315
|
+
: type === "disabled" ||
|
|
22316
|
+
(variant === "compact" &&
|
|
22317
|
+
compactStepStyling === "disabled") ||
|
|
22318
|
+
type === "completed" ||
|
|
22319
|
+
(variant === "compact" &&
|
|
22320
|
+
compactStepStyling === "completed")
|
|
20843
22321
|
? stepType
|
|
20844
|
-
:
|
|
22322
|
+
: 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
22323
|
// ICON FOR DEFAULT STEP
|
|
20846
22324
|
let icon;
|
|
20847
|
-
if (
|
|
20848
|
-
icon = (hAsync("ic-typography", { key: '
|
|
22325
|
+
if (type !== "completed") {
|
|
22326
|
+
icon = (hAsync("ic-typography", { key: '4ada11af3f862b66af7ca387ca5e2ed0c7bd1456', variant: "subtitle-small" }, hAsync("span", { key: 'f7acc54618d69f93bdfc8d9c9322e23d58749a51', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
|
20849
22327
|
}
|
|
20850
22328
|
else {
|
|
20851
|
-
icon = (hAsync("div", { key: '
|
|
22329
|
+
icon = (hAsync("div", { key: '5efba193e768116f7bf92a0369d61fdd7e8b04ff', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: '390a1f3f6daffa5e2e82293b81680a3eb9f1bb35', class: "check-icon", innerHTML: checkIcon })));
|
|
20852
22330
|
}
|
|
20853
22331
|
// STEP CONNECT FOR DEFAULT STEP
|
|
20854
|
-
const partialBar =
|
|
20855
|
-
const finalStep = !
|
|
22332
|
+
const partialBar = type === "current" && (hAsync("div", { key: 'd4255228e9626afbce26b5b65bb3b1329795cc84', class: "step-connect-inner" }));
|
|
22333
|
+
const finalStep = !lastStep && (hAsync("div", { key: '72093cf835767969a9f56a45e7952e42d2b21d46', class: {
|
|
20856
22334
|
["step-connect"]: true,
|
|
20857
22335
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
|
20858
22336
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
20859
22337
|
} }, partialBar));
|
|
20860
22338
|
// DEFAULT STEP COMPONENT
|
|
20861
|
-
const defaultStep = (hAsync("div", { key: '
|
|
22339
|
+
const defaultStep = (hAsync("div", { key: '7ee74bb84e4678e20ee4eb5daa26f9252d795f83', class: {
|
|
20862
22340
|
["step"]: true,
|
|
20863
|
-
[`${
|
|
20864
|
-
} }, hAsync("div", { key: '
|
|
20865
|
-
?
|
|
22341
|
+
[`${type}`]: true,
|
|
22342
|
+
} }, hAsync("div", { key: 'c3e678c9eab7688174b87c55bad404407ffedd72', class: "step-top" }, hAsync("div", { key: 'bad28cb205e9450b226073b8803e779d62616207', class: "step-icon" }, icon), finalStep), (heading || subheading || status) && (hAsync("div", { key: '946ab99559fdaa3106244e6758b7573ea454d5b8', class: "heading-area" }, heading && (hAsync("ic-typography", { key: 'c2a9e10b0e30b0de194b321f1683c6d36783020d', variant: "subtitle-large", class: "heading" }, heading)), heading && (subheading || status) && (hAsync("ic-typography", { key: 'bfa452d159a531bb0706540af3c91407f0c9f03f', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined$1(subheading)
|
|
22343
|
+
? subheading
|
|
20866
22344
|
: stepStatus))))));
|
|
20867
|
-
return (hAsync(Host, { key: '
|
|
22345
|
+
return (hAsync(Host, { key: 'e1d36358b31ec0f91ca0c9874a661ce10bd38d2c', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
|
|
20868
22346
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
|
20869
22347
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
20870
|
-
[`ic-step-${
|
|
20871
|
-
[`ic-theme-${
|
|
20872
|
-
} },
|
|
22348
|
+
[`ic-step-${variant}`]: true,
|
|
22349
|
+
[`ic-theme-${theme}`]: this.theme !== "inherit",
|
|
22350
|
+
} }, variant === "compact" ? compactStep : defaultStep));
|
|
20873
22351
|
}
|
|
20874
22352
|
get el() { return getElement(this); }
|
|
20875
22353
|
static get watchers() { return {
|
|
@@ -20882,6 +22360,7 @@ class Step {
|
|
|
20882
22360
|
"$members$": {
|
|
20883
22361
|
"compactStepStyling": [1, "compact-step-styling"],
|
|
20884
22362
|
"current": [1028],
|
|
22363
|
+
"icI18n": [16],
|
|
20885
22364
|
"lastStep": [4, "last-step"],
|
|
20886
22365
|
"lastStepNum": [2, "last-step-num"],
|
|
20887
22366
|
"nextStepHeading": [1, "next-step-heading"],
|
|
@@ -20929,6 +22408,20 @@ class Stepper {
|
|
|
20929
22408
|
* 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
22409
|
*/
|
|
20931
22410
|
this.hideStepInfo = false;
|
|
22411
|
+
/**
|
|
22412
|
+
* Provide alternative values for text in all child steps. For the purpose of translating the application into other languages.
|
|
22413
|
+
*/
|
|
22414
|
+
this.icI18n = {
|
|
22415
|
+
next: "Next",
|
|
22416
|
+
step: "Step",
|
|
22417
|
+
steps: "Steps",
|
|
22418
|
+
of: "of",
|
|
22419
|
+
lastStep: "Last step",
|
|
22420
|
+
completed: "Completed",
|
|
22421
|
+
notRequired: "Not required",
|
|
22422
|
+
required: "Required",
|
|
22423
|
+
optional: "Optional",
|
|
22424
|
+
};
|
|
20932
22425
|
/**
|
|
20933
22426
|
* 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
22427
|
*/
|
|
@@ -20974,6 +22467,10 @@ class Stepper {
|
|
|
20974
22467
|
this.initialiseStepStates = () => {
|
|
20975
22468
|
this.steps.forEach((step, index) => {
|
|
20976
22469
|
var _a, _b, _c;
|
|
22470
|
+
// Set language
|
|
22471
|
+
if (this.icI18n !== undefined) {
|
|
22472
|
+
step.icI18n = this.icI18n;
|
|
22473
|
+
}
|
|
20977
22474
|
// Set variant
|
|
20978
22475
|
step.variant = this.variant;
|
|
20979
22476
|
// Assign stepNum to each step
|
|
@@ -21145,11 +22642,11 @@ class Stepper {
|
|
|
21145
22642
|
checkResizeObserver$1(this.runResizeObserver);
|
|
21146
22643
|
}
|
|
21147
22644
|
render() {
|
|
21148
|
-
return (hAsync(Host, { key: '
|
|
22645
|
+
return (hAsync(Host, { key: '9d9ca9d145f10826c095669a86a99b532bee274d', class: {
|
|
21149
22646
|
[`ic-stepper-${this.variant}`]: true,
|
|
21150
22647
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
|
21151
22648
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
21152
|
-
} }, hAsync("ul", { key: '
|
|
22649
|
+
} }, hAsync("ul", { key: '7cc19512929ba09b0e13b50f400c5b84967678d3', class: "step-item-list" }, hAsync("slot", { key: '35312de95aa58d5555e19911db1d030d31b74cb4' }))));
|
|
21153
22650
|
}
|
|
21154
22651
|
get el() { return getElement(this); }
|
|
21155
22652
|
static get watchers() { return {
|
|
@@ -21165,6 +22662,7 @@ class Stepper {
|
|
|
21165
22662
|
"aligned": [1],
|
|
21166
22663
|
"connectorWidth": [2, "connector-width"],
|
|
21167
22664
|
"hideStepInfo": [4, "hide-step-info"],
|
|
22665
|
+
"icI18n": [16],
|
|
21168
22666
|
"theme": [1],
|
|
21169
22667
|
"variant": [1025],
|
|
21170
22668
|
"alignedFullWidth": [32],
|
|
@@ -22164,7 +23662,7 @@ class TableOfContents {
|
|
|
22164
23662
|
}; }
|
|
22165
23663
|
}
|
|
22166
23664
|
|
|
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}.
|
|
23665
|
+
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
23666
|
var IcTextFieldStyle0 = icTextFieldCss;
|
|
22169
23667
|
|
|
22170
23668
|
let inputIds$1 = 0;
|
|
@@ -22192,10 +23690,6 @@ class TextField {
|
|
|
22192
23690
|
this.maxValueExceeded = false;
|
|
22193
23691
|
this.minValueUnattained = false;
|
|
22194
23692
|
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
23693
|
/**
|
|
22200
23694
|
* The automatic capitalisation of the text value as it is entered/edited by the user.
|
|
22201
23695
|
* Available options: "off", "none", "on", "sentences", "words", "characters".
|
|
@@ -22318,6 +23812,10 @@ class TextField {
|
|
|
22318
23812
|
* The type of control to display. The default type is text.
|
|
22319
23813
|
*/
|
|
22320
23814
|
this.type = "text";
|
|
23815
|
+
/**
|
|
23816
|
+
* 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"`.
|
|
23817
|
+
*/
|
|
23818
|
+
this.validationAriaLive = "default";
|
|
22321
23819
|
/**
|
|
22322
23820
|
* If `true`, the icon in input control will be displayed - only applies when validationStatus ='success'.
|
|
22323
23821
|
*/
|
|
@@ -22564,12 +24062,12 @@ class TextField {
|
|
|
22564
24062
|
"no-resize": resize === false || !!readonly,
|
|
22565
24063
|
"no-left-pad": !showLeftIcon && !!readonly,
|
|
22566
24064
|
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: '
|
|
24065
|
+
}, 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
24066
|
(currentStatus === IcInformationStatus$1.Success &&
|
|
22569
24067
|
validationInline) ||
|
|
22570
24068
|
validationInlineInternal
|
|
22571
24069
|
? ""
|
|
22572
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '
|
|
24070
|
+
: 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
24071
|
}
|
|
22574
24072
|
get el() { return getElement(this); }
|
|
22575
24073
|
static get watchers() { return {
|
|
@@ -22586,7 +24084,6 @@ class TextField {
|
|
|
22586
24084
|
"ariaAutocomplete": [1, "aria-autocomplete"],
|
|
22587
24085
|
"ariaExpanded": [1, "aria-expanded"],
|
|
22588
24086
|
"ariaOwns": [1, "aria-owns"],
|
|
22589
|
-
"validationAriaLive": [1, "validation-aria-live"],
|
|
22590
24087
|
"autocapitalize": [1],
|
|
22591
24088
|
"autocomplete": [1],
|
|
22592
24089
|
"autocorrect": [1],
|
|
@@ -22620,6 +24117,7 @@ class TextField {
|
|
|
22620
24117
|
"theme": [1],
|
|
22621
24118
|
"truncateValue": [4, "truncate-value"],
|
|
22622
24119
|
"type": [1],
|
|
24120
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
22623
24121
|
"validationInline": [4, "validation-inline"],
|
|
22624
24122
|
"validationInlineInternal": [4, "validation-inline-internal"],
|
|
22625
24123
|
"validationStatus": [1, "validation-status"],
|
|
@@ -22730,7 +24228,7 @@ class Theme {
|
|
|
22730
24228
|
|
|
22731
24229
|
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
24230
|
|
|
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:
|
|
24231
|
+
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
24232
|
var IcTimeInputStyle0 = icTimeInputCss;
|
|
22735
24233
|
|
|
22736
24234
|
let inputIds = 0;
|
|
@@ -22841,6 +24339,10 @@ class TimeInput {
|
|
|
22841
24339
|
* The value of the time input. The value can be in any format supported as `timeFormat`, in ISO 8601 time string format (`HH:MM:SS`) or as a JavaScript `Date` object.
|
|
22842
24340
|
*/
|
|
22843
24341
|
this.value = "";
|
|
24342
|
+
/**
|
|
24343
|
+
* The value of the `aria-live` attribute on the validation message.
|
|
24344
|
+
*/
|
|
24345
|
+
this.validationAriaLive = "polite";
|
|
22844
24346
|
/**
|
|
22845
24347
|
* The validation status - e.g. 'error' | 'warning' | 'success'. This will override the built-in time validation.
|
|
22846
24348
|
*/
|
|
@@ -22876,7 +24378,7 @@ class TimeInput {
|
|
|
22876
24378
|
};
|
|
22877
24379
|
this.setTimeValidity = () => {
|
|
22878
24380
|
const minHour = 0;
|
|
22879
|
-
const maxHour = this.timePeriod === "12" ?
|
|
24381
|
+
const maxHour = this.timePeriod === "12" ? 12 : 23;
|
|
22880
24382
|
if (!isEmptyString(this.hour)) {
|
|
22881
24383
|
this.isValidHour = +this.hour >= minHour && +this.hour <= maxHour;
|
|
22882
24384
|
}
|
|
@@ -23108,8 +24610,8 @@ class TimeInput {
|
|
|
23108
24610
|
let minValue = 0;
|
|
23109
24611
|
let maxValue = 59;
|
|
23110
24612
|
if (input === this.hourInputEl) {
|
|
23111
|
-
minValue = 0;
|
|
23112
|
-
maxValue = this.timePeriod === "12" ?
|
|
24613
|
+
minValue = this.timePeriod === "12" ? 1 : 0;
|
|
24614
|
+
maxValue = this.timePeriod === "12" ? 12 : 23;
|
|
23113
24615
|
}
|
|
23114
24616
|
let val = +input.value;
|
|
23115
24617
|
if (event.key === "ArrowUp") {
|
|
@@ -23618,7 +25120,7 @@ class TimeInput {
|
|
|
23618
25120
|
this.externalSetTime = false;
|
|
23619
25121
|
}
|
|
23620
25122
|
render() {
|
|
23621
|
-
const { inputId, label, disabled, helperText, hideHelperText, hideLabel, showClearButton, showClockButton, size, theme, } = this;
|
|
25123
|
+
const { inputId, label, disabled, helperText, hideHelperText, hideLabel, showClearButton, showClockButton, size, theme, validationAriaLive, } = this;
|
|
23622
25124
|
const hasCustomValidation = !isEmptyString(this.validationStatus);
|
|
23623
25125
|
const validationStatus = hasCustomValidation
|
|
23624
25126
|
? this.validationStatus
|
|
@@ -23631,23 +25133,23 @@ class TimeInput {
|
|
|
23631
25133
|
!(isEmptyString(this.hour) &&
|
|
23632
25134
|
isEmptyString(this.minute) &&
|
|
23633
25135
|
isEmptyString(this.second)));
|
|
23634
|
-
return (hAsync(Host, { key: '
|
|
25136
|
+
return (hAsync(Host, { key: 'ce72bf165b860dc73b3de7523ea59d7ae5091785', class: {
|
|
23635
25137
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
23636
25138
|
[`ic-time-input-disabled`]: disabled,
|
|
23637
25139
|
[`ic-time-input-${size}`]: true,
|
|
23638
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
|
25140
|
+
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '81289a19c2013efd8e0b7894964584163c2d9ca4', disabled: disabled }, !(hideLabel && hideHelperText) && (hAsync("ic-input-label", { key: '858282ddbc0d69d6a1c19c6c3660e96d26a578d4', for: inputId, label: label, hideLabel: hideLabel, helperText: !hideHelperText ? helperText : "", disabled: disabled }, hAsync("slot", { key: 'ea5647530d721574b23ec3a6470b6f791347de16', name: "helper-text", slot: "helper-text" }))), hAsync("span", { key: '78506ccf9f196f2439a54450000ff360f6b860da', id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideLabel && `${label}\n`, hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), hAsync("span", { key: '07594031d5f4078fc73493dea18e50477a2f7cc1', id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), hAsync("span", { key: '368dda131a6b87269d0789d5c9c8eb7739c79ddd', id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("ic-input-component-container", { key: 'fdae26254c31f9d00eb43ad951df77f8c22498e7', id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group", class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '3969cc96892663be7e7a4ece8eda8a8960edc156', class: "input-container" }, hAsync("div", { key: '983e2d740c97837800591f11dae903525586b50d', class: "time-inputs" }, [
|
|
23639
25141
|
this.getInputsInOrder()[0],
|
|
23640
25142
|
":",
|
|
23641
25143
|
this.getInputsInOrder()[1],
|
|
23642
25144
|
!this.isHHMMFormat()
|
|
23643
25145
|
? [":", this.getInputsInOrder()[2]]
|
|
23644
25146
|
: null,
|
|
23645
|
-
]), hAsync("div", { key: '
|
|
25147
|
+
]), hAsync("div", { key: '16b324e251f1e6441f44a4acb79f5fb6afe8da7b', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: '62d73f8dcc167328cf0bc07aa70c3a4c2dfb5342', id: "clear-button", "aria-label": "Clear input", class: {
|
|
23646
25148
|
["clear-button"]: true,
|
|
23647
25149
|
["hidden"]: isEmptyString(this.hour) &&
|
|
23648
25150
|
isEmptyString(this.minute) &&
|
|
23649
25151
|
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: '
|
|
25152
|
+
}, 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: 'db0a978012dd1cdf299d8faf2d7cfb9784bdc793', class: "show-clock-button-wrapper" }, hAsync("div", { key: '3bb6324433b0e3c64e29851bb2aca866a9d30012', class: { divider: showDivider, [size]: true } }), hAsync("ic-button", { key: 'd73bc11220a5471b313e863e079cf91a7eeabca9', 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: '03dd9556cf15a1645112922bc5c5a22190deb14f', id: this.selectedTimeInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: '0df9e0c4bb1ee1058643e927556246907041b5e2', ref: (el) => (this.selectedTimeInfoEl = el), role: "status" })), hAsync("ic-input-validation", { key: 'bd18e257fa39d093878dc64fc2466cdbd27c93a3', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidTimeText, for: inputId, ariaLiveMode: validationAriaLive }))));
|
|
23651
25153
|
}
|
|
23652
25154
|
static get delegatesFocus() { return true; }
|
|
23653
25155
|
get el() { return getElement(this); }
|
|
@@ -23685,6 +25187,7 @@ class TimeInput {
|
|
|
23685
25187
|
"timeFormat": [1, "time-format"],
|
|
23686
25188
|
"timePeriod": [1, "time-period"],
|
|
23687
25189
|
"value": [1025],
|
|
25190
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
|
23688
25191
|
"validationStatus": [1025, "validation-status"],
|
|
23689
25192
|
"validationText": [1, "validation-text"],
|
|
23690
25193
|
"invalidTimeText": [32],
|
|
@@ -24716,7 +26219,7 @@ class Tooltip {
|
|
|
24716
26219
|
}; }
|
|
24717
26220
|
}
|
|
24718
26221
|
|
|
24719
|
-
const icTopNavigationCss = "/*! 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;color:var(--ic-top-navigation-text);width:100%;position:relative;--ic-typography-color:var(--ic-top-navigation-text);--ic-button-secondary-text-monochrome:var(--ic-brand-text-color);--ic-button-secondary-border-monochrome:var(--ic-brand-text-color);--navigation-link-colour:var(--ic-top-navigation-text)
|
|
26222
|
+
const icTopNavigationCss = "/*! 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;color:var(--ic-top-navigation-text);width:100%;position:relative;--ic-typography-color:var(--ic-top-navigation-text);--ic-button-secondary-text-monochrome:var(--ic-brand-text-color);--ic-button-secondary-border-monochrome:var(--ic-brand-text-color);--navigation-link-colour:var(--ic-top-navigation-text);--ic-top-navigation-status-tag-text:var(--ic-color-text-primary-light);--ic-top-navigation-status-tag-secondary:var(--ic-state-layer-lighten-20)}:host(.dark){--ic-top-navigation-status-tag-text:var(--ic-color-text-primary-dark);--ic-top-navigation-status-tag-secondary:var(--ic-state-layer-darken-10);--ic-top-navigation-title-hover:var(--ic-action-dark-bg-hover);--ic-top-navigation-title-pressed:var(--ic-action-dark-bg-pressed)}:host(.dark) ::slotted(ic-navigation-button){--ic-button-icon-monochrome:var(--ic-color-text-primary-light)}::slotted(ic-navigation-button){--ic-button-icon-monochrome:white}:host .top-navigation{background-color:var(--ic-top-navigation-background);height:-moz-max-content;height:max-content}:host(.fullwidth-searchbar) slot[name=\"search\"]::slotted(form){width:100%}:host .title-link{display:inline-flex;align-items:center;text-decoration:none;padding:var(--ic-space-xxs);transition:var(--ic-easing-transition-fast)}:host .title-link,:host .title-link:visited,:host .title-link:active,:host .title-link ::slotted(a),:host .title-link:visited ::slotted(a),:host .title-link:active ::slotted(a){color:var(--ic-top-navigation-icon-and-label);text-decoration:none;outline:none;--ic-typography-color:var(--ic-top-navigation-icon-and-label)}:host .title-link:hover:not(:focus){background-color:var(--ic-top-navigation-title-hover)}:host .title-link:active:not(:focus){background-color:var(--ic-top-navigation-title-pressed)}:host .title-link:hover{border-radius:var(--ic-border-radius)}:host .menu-button-container{--ic-button-secondary-text-monochrome:var(--ic-brand-text-color);--ic-button-secondary-border-monochrome:var(--ic-brand-text-color)}:host .title-link:focus,:host .title-link:focus-within{border-radius:var(--ic-border-radius);box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}:host .title-link ic-typography{font-weight:600}:host .nav-panel-container{border-top:var(--ic-space-1px) solid var(--ic-top-navigation-keyline);padding:0 var(--ic-space-lg);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin));display:flex}:host(.dark) .nav-panel-container{border-top:var(--ic-border-keyline-darken)}.top-panel-container{display:flex;padding-top:0.5rem;padding-bottom:0.5rem}.navigation-tabs{margin-top:calc(-1 * var(--ic-space-1px))}.app-details-container{display:flex;align-items:center;flex:1 1 auto;margin-right:var(--ic-space-md)}.app-icon-container{display:flex;padding-right:var(--ic-space-xs)}.icon-buttons-container{display:flex;margin-left:var(--ic-space-md)}.icon-buttons-container ::slotted(nav){display:flex}.title-wrap{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}:host .app-status{border-radius:var(--ic-space-md);background-color:var(--ic-top-navigation-status-tag);color:var(--ic-top-navigation-status-tag-text);--ic-typography-color:var(--ic-top-navigation-status-tag-text);padding:var(--ic-space-xxs) var(--ic-space-lg);margin-left:var(--ic-space-md);flex:1 1 0;max-width:-moz-fit-content;max-width:fit-content}:host .app-version{border-radius:var(--ic-space-md);background-color:var(--ic-top-navigation-status-tag-secondary);color:var(--ic-top-navigation-status-tag);padding:var(--ic-space-xxs) var(--ic-space-sm);margin-left:var(--ic-space-xs);flex:1 1 0;max-width:-moz-fit-content;max-width:fit-content;--ic-typography-color:var(--ic-top-navigation-status-tag)}slot[name=\"app-icon\"]::slotted(*){fill:var(--ic-top-navigation-logo);width:2em;height:2em;cursor:pointer}slot[name=\"toggle-icon\"] svg{fill:var(--ic-top-navigation-icon)}.search-menu-container{justify-content:right;display:flex;align-items:center}.menu-button-container{margin-left:var(--ic-space-md)}.menu-button-container .navigation-landmark-button-text{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;color:var(--ic-brand-text-color)}.menu-button-container .navigation-landmark-button-text:dir(rtl){right:-9999px}.search-actions-container{display:flex}.menu-buttons-slot{display:flex;flex-direction:column}.navigation-landmark-text{position:absolute;width:var(--ic-space-1px);height:var(--ic-space-1px);padding:0;margin:calc(-1 * var(--ic-space-1px));overflow:hidden}.navigation-item-list{display:flex;list-style:none;height:2.75rem}.navigation-item-list::-webkit-scrollbar{display:none}:host ic-section-container{padding-bottom:0 !important;padding-top:0 !important}@media screen and (min-width: 993px){.app-details-container{margin-right:var(--ic-space-lg)}}@media screen and (max-width: 1200px){:host .nav-panel-container{padding:0 var(--ic-space-md)}}:host(.mobile-mode) .app-status,:host(.mobile-mode) .app-version{display:none}:host(.mobile-mode) .title-link{margin-right:var(--ic-space-xs)}:host(.mobile-mode) .search-menu-container{max-width:10rem}:host(.mobile-mode) .search-bar-container{display:flex;justify-content:center;align-items:center;border-top:var(--ic-border-keyline-darken);height:4rem;padding-left:var(--ic-space-md);padding-right:var(--ic-space-md);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin))}@media screen and (max-width: 576px){:host .title-link{margin-right:var(--ic-space-xxxs);word-break:break-word;-webkit-hyphens:none;hyphens:none}.top-panel-container{min-height:2.5rem}.search-bar-container{margin-top:0;height:3.5rem;padding-left:var(--ic-space-xs);padding-right:var(--ic-space-xs)}.menu-button-container{margin-left:var(--ic-space-sm)}slot[name=\"app-icon\"]::slotted(*){width:1.5em;height:1.5em}slot[name=\"toggle-icon\"] svg{width:1.5em;height:1.5em}}@media (forced-colors: active){:host .top-navigation{border-bottom:var(--ic-border-hc)}.app-status,.app-version{border:var(--ic-border-hc)}slot[name=\"app-icon\"]::slotted(*){fill:currentcolor}slot[name=\"toggle-icon\"] svg{fill:currentcolor}}";
|
|
24720
26223
|
var IcTopNavigationStyle0 = icTopNavigationCss;
|
|
24721
26224
|
|
|
24722
26225
|
/**
|
|
@@ -25618,7 +27121,7 @@ class TreeView {
|
|
|
25618
27121
|
if (icon) {
|
|
25619
27122
|
const iconSlot = document.createElement("div");
|
|
25620
27123
|
iconSlot.setAttribute("slot", "icon");
|
|
25621
|
-
iconSlot.innerHTML = icon;
|
|
27124
|
+
iconSlot.innerHTML = sanitizeHTMLIconString$1(icon);
|
|
25622
27125
|
treeItem.appendChild(iconSlot);
|
|
25623
27126
|
}
|
|
25624
27127
|
parentElement.appendChild(treeItem);
|
|
@@ -25638,14 +27141,14 @@ class TreeView {
|
|
|
25638
27141
|
}
|
|
25639
27142
|
render() {
|
|
25640
27143
|
const { heading, isLoaded, size, theme, truncateHeading } = this;
|
|
25641
|
-
return (hAsync(Host, { key: '
|
|
27144
|
+
return (hAsync(Host, { key: '414d715e703585390a75012284474a32406b4c33', "context-id": this.treeViewId, class: {
|
|
25642
27145
|
[`ic-tree-view-${size}`]: size !== "medium",
|
|
25643
27146
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
25644
27147
|
"ic-tree-view-truncate": truncateHeading,
|
|
25645
|
-
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '
|
|
27148
|
+
}, 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
27149
|
"tree-view-header": true,
|
|
25647
27150
|
"with-padding": this.truncateHeading && !isLoaded,
|
|
25648
|
-
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '
|
|
27151
|
+
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '3039892aa557a89cbe9caf6c141c6b6254db5077' })));
|
|
25649
27152
|
}
|
|
25650
27153
|
get el() { return getElement(this); }
|
|
25651
27154
|
static get watchers() { return {
|