@ukic/web-components 3.11.0 → 3.13.0
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/{constants-8354f6e6.js → constants-3a9ba64a.js} +3 -1
- package/dist/cjs/constants-3a9ba64a.js.map +1 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-ffe1c2d9.js → helpers-478d1107.js} +2 -2
- package/dist/cjs/helpers-478d1107.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-accordion.cjs.entry.js +2 -2
- package/dist/cjs/ic-action-chip.cjs.entry.js +2 -2
- package/dist/cjs/ic-alert.cjs.entry.js +5 -5
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +2 -2
- package/dist/cjs/ic-badge.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/ic-button_3.cjs.entry.js +2 -2
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +2 -2
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +13 -6
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ic-chip.cjs.entry.js +7 -6
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +2 -2
- package/dist/cjs/ic-dialog.cjs.entry.js +37 -12
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +2 -2
- package/dist/cjs/ic-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer.cjs.entry.js +2 -2
- package/dist/cjs/ic-hero.cjs.entry.js +2 -2
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +2 -2
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +1389 -11
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -7
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-button.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +2 -2
- package/dist/cjs/ic-page-header.cjs.entry.js +3 -3
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-pagination.cjs.entry.js +2 -2
- package/dist/cjs/ic-popover-menu.cjs.entry.js +2 -2
- package/dist/cjs/ic-radio-group.cjs.entry.js +15 -8
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +3 -3
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +2 -2
- package/dist/cjs/ic-select.cjs.entry.js +17 -10
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +68 -55
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +22 -4
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +2 -2
- package/dist/cjs/ic-text-field.cjs.entry.js +9 -9
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +2 -2
- package/dist/cjs/ic-toast.cjs.entry.js +2 -2
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/ic-top-navigation.cjs.entry.js +3 -3
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +2 -2
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-alert/ic-alert.css +13 -23
- package/dist/collection/components/ic-alert/ic-alert.js +2 -2
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +3 -3
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +36 -3
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +163 -0
- package/dist/collection/components/ic-chip/ic-chip.css +4 -0
- package/dist/collection/components/ic-chip/ic-chip.js +4 -3
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-dialog/ic-dialog.js +36 -11
- package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.css +4 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +9 -8
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
- package/dist/collection/components/ic-menu/ic-menu.js +13 -9
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +9 -0
- package/dist/collection/components/ic-page-header/ic-page-header.css +4 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +2 -2
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +40 -7
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +164 -0
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +37 -1
- package/dist/collection/components/ic-select/ic-select.js +41 -8
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select_(multi).stories.js +14 -2
- package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +10 -0
- package/dist/collection/components/ic-select/ic-select_(single).stories.js +184 -4
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +1 -4
- package/dist/collection/components/ic-step/ic-step.js +90 -53
- package/dist/collection/components/ic-step/ic-step.js.map +1 -1
- package/dist/collection/components/ic-step/ic-step.types.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper.js +44 -2
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper.stories.js +76 -0
- package/dist/collection/components/ic-text-field/ic-text-field.css +2 -2
- package/dist/collection/components/ic-text-field/ic-text-field.js +32 -32
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +13 -10
- package/dist/collection/utils/common-helpers.js +17 -0
- package/dist/collection/utils/common-helpers.js.map +1 -0
- package/dist/collection/utils/constants.js +1 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/constants.js +2 -1
- package/dist/components/constants.js.map +1 -1
- package/dist/components/helpers.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-dialog.js +35 -10
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-input-validation2.js +7 -6
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-menu2.js +1388 -9
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-item.js +1 -1
- package/dist/components/ic-navigation-item.js.map +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-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +14 -6
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +1 -1
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-select.js +17 -9
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js.map +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-field.js +8 -8
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-top-navigation.js +1 -1
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/index.js +1 -1
- 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/index.esm.js +1 -1
- package/dist/core/{p-52a2f800.entry.js → p-0123dde7.entry.js} +2 -2
- package/dist/core/{p-52a2f800.entry.js.map → p-0123dde7.entry.js.map} +1 -1
- package/dist/core/{p-23b223bf.entry.js → p-01e018cb.entry.js} +2 -2
- package/dist/core/{p-1ab63899.entry.js → p-02af2b59.entry.js} +2 -2
- package/dist/core/p-05036675.entry.js +2 -0
- package/dist/core/p-05036675.entry.js.map +1 -0
- package/dist/core/{p-1d4dfef1.entry.js → p-0c36ce84.entry.js} +2 -2
- package/dist/core/{p-f78f34ce.entry.js → p-0ec76cff.entry.js} +2 -2
- package/dist/core/{p-35ee7c53.entry.js → p-13e093d0.entry.js} +2 -2
- package/dist/core/{p-a48b581a.entry.js → p-1423bd4a.entry.js} +2 -2
- package/dist/core/p-19f9d292.entry.js +2 -0
- package/dist/core/p-19f9d292.entry.js.map +1 -0
- package/dist/core/{p-3f55bb5b.entry.js → p-2126d37b.entry.js} +2 -2
- package/dist/core/{p-515ded3f.entry.js → p-228bc12d.entry.js} +2 -2
- package/dist/core/{p-d27e46ac.entry.js → p-25bef09d.entry.js} +2 -2
- package/dist/core/{p-eddc5517.entry.js → p-27e67d45.entry.js} +2 -2
- package/dist/core/{p-4dd8add9.entry.js → p-2800fc30.entry.js} +2 -2
- package/dist/core/{p-f045f59d.entry.js → p-33582352.entry.js} +2 -2
- package/dist/core/{p-58b8d154.entry.js → p-45097448.entry.js} +2 -2
- package/dist/core/p-45f743e4.entry.js +2 -0
- package/dist/core/p-45f743e4.entry.js.map +1 -0
- package/dist/core/{p-a4e67ab8.entry.js → p-511aa329.entry.js} +2 -2
- package/dist/core/p-511aa329.entry.js.map +1 -0
- package/dist/core/p-514daffe.entry.js +2 -0
- package/dist/core/p-514daffe.entry.js.map +1 -0
- package/dist/core/{p-3a78bf6e.entry.js → p-54803e3b.entry.js} +2 -2
- package/dist/core/{p-0201abbf.entry.js → p-6058d4c9.entry.js} +2 -2
- package/dist/core/p-621b0770.entry.js +2 -0
- package/dist/core/p-621b0770.entry.js.map +1 -0
- package/dist/core/{p-8d29c0fa.entry.js → p-675bb3e4.entry.js} +2 -2
- package/dist/core/{p-75e0278a.entry.js → p-6dbe70f1.entry.js} +2 -2
- package/dist/core/{p-b9018261.entry.js → p-6e139e6e.entry.js} +2 -2
- package/dist/core/p-6f50d2e0.entry.js +2 -0
- package/dist/core/p-6f50d2e0.entry.js.map +1 -0
- package/dist/core/p-71c86e71.entry.js +2 -0
- package/dist/core/p-71c86e71.entry.js.map +1 -0
- package/dist/core/{p-aab838e5.entry.js → p-80317cd1.entry.js} +2 -2
- package/dist/core/{p-02c2c31f.entry.js → p-813ad03c.entry.js} +2 -2
- package/dist/core/{p-69412f61.entry.js → p-8558b9b7.entry.js} +2 -2
- package/dist/core/{p-a468df37.entry.js → p-8684efeb.entry.js} +2 -2
- package/dist/core/{p-ffc608a1.entry.js → p-8b99a806.entry.js} +2 -2
- package/dist/core/{p-19366be6.entry.js → p-93479c36.entry.js} +2 -2
- package/dist/core/{p-69cc0f7d.entry.js → p-95d3d1a7.entry.js} +2 -2
- package/dist/core/{p-01aeffca.entry.js → p-96a6cff2.entry.js} +2 -2
- package/dist/core/p-96a6cff2.entry.js.map +1 -0
- package/dist/core/p-99793b64.entry.js +2 -0
- package/dist/core/p-99793b64.entry.js.map +1 -0
- package/dist/core/{p-fd488ed7.entry.js → p-9f12b20c.entry.js} +2 -2
- package/dist/core/p-9f12b20c.entry.js.map +1 -0
- package/dist/core/{p-57803949.entry.js → p-a06c1e4e.entry.js} +2 -2
- package/dist/core/p-a08c360b.entry.js +2 -0
- package/dist/core/p-a08c360b.entry.js.map +1 -0
- package/dist/core/p-a1857d24.entry.js +2 -0
- package/dist/core/p-a1857d24.entry.js.map +1 -0
- package/dist/core/p-a97b8082.entry.js +3 -0
- package/dist/core/p-a97b8082.entry.js.map +1 -0
- package/dist/core/{p-abb9dccb.entry.js → p-abd88929.entry.js} +2 -2
- package/dist/core/{p-cdd04ec2.entry.js → p-b0376079.entry.js} +2 -2
- package/dist/core/{p-6ceedfa8.js → p-b57e59b7.js} +2 -2
- package/dist/core/p-b57e59b7.js.map +1 -0
- package/dist/core/p-b9bdd9a9.entry.js +2 -0
- package/dist/core/p-b9bdd9a9.entry.js.map +1 -0
- package/dist/core/{p-641c26c4.js → p-bddf799a.js} +2 -2
- package/dist/core/p-bddf799a.js.map +1 -0
- package/dist/core/{p-0809aff4.entry.js → p-c04e1fab.entry.js} +2 -2
- package/dist/core/{p-65a3c216.entry.js → p-c975cced.entry.js} +2 -2
- package/dist/core/p-cc00cbce.entry.js +2 -0
- package/dist/core/p-cc00cbce.entry.js.map +1 -0
- package/dist/core/{p-f086d6df.entry.js → p-de32a223.entry.js} +2 -2
- package/dist/core/{p-46423f42.entry.js → p-e6dacbe2.entry.js} +2 -2
- package/dist/core/{p-1dab47b1.entry.js → p-ea06792a.entry.js} +2 -2
- package/dist/core/{p-5c6efed3.entry.js → p-eb0e7153.entry.js} +2 -2
- package/dist/core/{p-402813c9.entry.js → p-f609ca37.entry.js} +2 -2
- package/dist/core/{p-cd63bcf2.entry.js → p-fb734a59.entry.js} +2 -2
- package/dist/esm/{constants-48759bda.js → constants-7960cba4.js} +3 -2
- package/dist/esm/constants-7960cba4.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-d8189e9d.js → helpers-4ddac6ed.js} +2 -2
- package/dist/esm/helpers-4ddac6ed.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +2 -2
- package/dist/esm/ic-accordion.entry.js +2 -2
- package/dist/esm/ic-action-chip.entry.js +2 -2
- package/dist/esm/ic-alert.entry.js +5 -5
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +2 -2
- package/dist/esm/ic-badge.entry.js +2 -2
- package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
- package/dist/esm/ic-breadcrumb.entry.js +2 -2
- package/dist/esm/ic-button_3.entry.js +2 -2
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +2 -2
- package/dist/esm/ic-checkbox-group.entry.js +13 -6
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +2 -2
- package/dist/esm/ic-chip.entry.js +7 -6
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +2 -2
- package/dist/esm/ic-dialog.entry.js +37 -12
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +2 -2
- package/dist/esm/ic-empty-state.entry.js +2 -2
- package/dist/esm/ic-footer-link-group.entry.js +2 -2
- package/dist/esm/ic-footer-link.entry.js +2 -2
- package/dist/esm/ic-footer.entry.js +2 -2
- package/dist/esm/ic-hero.entry.js +2 -2
- package/dist/esm/ic-horizontal-scroll.entry.js +2 -2
- package/dist/esm/ic-input-component-container_3.entry.js +1389 -11
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +8 -7
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +2 -2
- package/dist/esm/ic-menu-group.entry.js +2 -2
- package/dist/esm/ic-menu-item.entry.js +2 -2
- package/dist/esm/ic-navigation-button.entry.js +2 -2
- package/dist/esm/ic-navigation-group.entry.js +2 -2
- package/dist/esm/ic-navigation-item.entry.js +3 -3
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +2 -2
- package/dist/esm/ic-page-header.entry.js +3 -3
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination-item.entry.js +2 -2
- package/dist/esm/ic-pagination.entry.js +2 -2
- package/dist/esm/ic-popover-menu.entry.js +2 -2
- package/dist/esm/ic-radio-group.entry.js +15 -8
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +3 -3
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +2 -2
- package/dist/esm/ic-select.entry.js +17 -10
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +2 -2
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +68 -55
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +22 -4
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +2 -2
- package/dist/esm/ic-tab-group.entry.js +2 -2
- package/dist/esm/ic-tab.entry.js +2 -2
- package/dist/esm/ic-text-field.entry.js +9 -9
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-toast.entry.js +2 -2
- package/dist/esm/ic-toggle-button-group.entry.js +2 -2
- package/dist/esm/ic-toggle-button.entry.js +2 -2
- package/dist/esm/ic-top-navigation.entry.js +3 -3
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +5 -1
- package/dist/types/components/ic-dialog/ic-dialog.d.ts +2 -1
- package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +2 -3
- package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +6 -2
- package/dist/types/components/ic-select/ic-select.d.ts +5 -1
- package/dist/types/components/ic-step/ic-step.d.ts +5 -1
- package/dist/types/components/ic-step/ic-step.types.d.ts +11 -0
- package/dist/types/components/ic-stepper/ic-stepper.d.ts +5 -1
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +4 -4
- package/dist/types/components.d.ts +48 -10
- package/dist/types/interface.d.ts +0 -1
- package/dist/types/utils/common-helpers.d.ts +2 -0
- package/dist/types/utils/constants.d.ts +1 -0
- package/dist/types/utils/types.d.ts +7 -2
- package/hydrate/index.js +1580 -117
- package/hydrate/index.mjs +1580 -117
- package/package.json +4 -3
- package/vscode-data.json +45 -0
- package/dist/cjs/constants-8354f6e6.js.map +0 -1
- package/dist/cjs/helpers-ffe1c2d9.js.map +0 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.types.js +0 -2
- package/dist/collection/components/ic-input-validation/ic-input-validation.types.js.map +0 -1
- package/dist/core/p-01aeffca.entry.js.map +0 -1
- package/dist/core/p-402c2455.entry.js +0 -2
- package/dist/core/p-402c2455.entry.js.map +0 -1
- package/dist/core/p-4a2c02b2.entry.js +0 -2
- package/dist/core/p-4a2c02b2.entry.js.map +0 -1
- package/dist/core/p-641c26c4.js.map +0 -1
- package/dist/core/p-6ceedfa8.js.map +0 -1
- package/dist/core/p-75a9b2e4.entry.js +0 -2
- package/dist/core/p-75a9b2e4.entry.js.map +0 -1
- package/dist/core/p-8326db29.entry.js +0 -2
- package/dist/core/p-8326db29.entry.js.map +0 -1
- package/dist/core/p-8af9413c.entry.js +0 -2
- package/dist/core/p-8af9413c.entry.js.map +0 -1
- package/dist/core/p-8d1fbbeb.entry.js +0 -2
- package/dist/core/p-8d1fbbeb.entry.js.map +0 -1
- package/dist/core/p-a4e67ab8.entry.js.map +0 -1
- package/dist/core/p-b80d408f.entry.js +0 -2
- package/dist/core/p-b80d408f.entry.js.map +0 -1
- package/dist/core/p-c81ffadd.entry.js +0 -2
- package/dist/core/p-c81ffadd.entry.js.map +0 -1
- package/dist/core/p-d35f8bd4.entry.js +0 -2
- package/dist/core/p-d35f8bd4.entry.js.map +0 -1
- package/dist/core/p-d6b3e02f.entry.js +0 -2
- package/dist/core/p-d6b3e02f.entry.js.map +0 -1
- package/dist/core/p-d7bd5aa0.entry.js +0 -2
- package/dist/core/p-d7bd5aa0.entry.js.map +0 -1
- package/dist/core/p-ed69f110.entry.js +0 -2
- package/dist/core/p-ed69f110.entry.js.map +0 -1
- package/dist/core/p-f17e1525.entry.js +0 -2
- package/dist/core/p-f17e1525.entry.js.map +0 -1
- package/dist/core/p-fd488ed7.entry.js.map +0 -1
- package/dist/esm/constants-48759bda.js.map +0 -1
- package/dist/esm/helpers-d8189e9d.js.map +0 -1
- package/dist/types/components/ic-input-validation/ic-input-validation.types.d.ts +0 -1
- /package/dist/core/{p-23b223bf.entry.js.map → p-01e018cb.entry.js.map} +0 -0
- /package/dist/core/{p-1ab63899.entry.js.map → p-02af2b59.entry.js.map} +0 -0
- /package/dist/core/{p-1d4dfef1.entry.js.map → p-0c36ce84.entry.js.map} +0 -0
- /package/dist/core/{p-f78f34ce.entry.js.map → p-0ec76cff.entry.js.map} +0 -0
- /package/dist/core/{p-35ee7c53.entry.js.map → p-13e093d0.entry.js.map} +0 -0
- /package/dist/core/{p-a48b581a.entry.js.map → p-1423bd4a.entry.js.map} +0 -0
- /package/dist/core/{p-3f55bb5b.entry.js.map → p-2126d37b.entry.js.map} +0 -0
- /package/dist/core/{p-515ded3f.entry.js.map → p-228bc12d.entry.js.map} +0 -0
- /package/dist/core/{p-d27e46ac.entry.js.map → p-25bef09d.entry.js.map} +0 -0
- /package/dist/core/{p-eddc5517.entry.js.map → p-27e67d45.entry.js.map} +0 -0
- /package/dist/core/{p-4dd8add9.entry.js.map → p-2800fc30.entry.js.map} +0 -0
- /package/dist/core/{p-f045f59d.entry.js.map → p-33582352.entry.js.map} +0 -0
- /package/dist/core/{p-58b8d154.entry.js.map → p-45097448.entry.js.map} +0 -0
- /package/dist/core/{p-3a78bf6e.entry.js.map → p-54803e3b.entry.js.map} +0 -0
- /package/dist/core/{p-0201abbf.entry.js.map → p-6058d4c9.entry.js.map} +0 -0
- /package/dist/core/{p-8d29c0fa.entry.js.map → p-675bb3e4.entry.js.map} +0 -0
- /package/dist/core/{p-75e0278a.entry.js.map → p-6dbe70f1.entry.js.map} +0 -0
- /package/dist/core/{p-b9018261.entry.js.map → p-6e139e6e.entry.js.map} +0 -0
- /package/dist/core/{p-aab838e5.entry.js.map → p-80317cd1.entry.js.map} +0 -0
- /package/dist/core/{p-02c2c31f.entry.js.map → p-813ad03c.entry.js.map} +0 -0
- /package/dist/core/{p-69412f61.entry.js.map → p-8558b9b7.entry.js.map} +0 -0
- /package/dist/core/{p-a468df37.entry.js.map → p-8684efeb.entry.js.map} +0 -0
- /package/dist/core/{p-ffc608a1.entry.js.map → p-8b99a806.entry.js.map} +0 -0
- /package/dist/core/{p-19366be6.entry.js.map → p-93479c36.entry.js.map} +0 -0
- /package/dist/core/{p-69cc0f7d.entry.js.map → p-95d3d1a7.entry.js.map} +0 -0
- /package/dist/core/{p-57803949.entry.js.map → p-a06c1e4e.entry.js.map} +0 -0
- /package/dist/core/{p-abb9dccb.entry.js.map → p-abd88929.entry.js.map} +0 -0
- /package/dist/core/{p-cdd04ec2.entry.js.map → p-b0376079.entry.js.map} +0 -0
- /package/dist/core/{p-0809aff4.entry.js.map → p-c04e1fab.entry.js.map} +0 -0
- /package/dist/core/{p-65a3c216.entry.js.map → p-c975cced.entry.js.map} +0 -0
- /package/dist/core/{p-f086d6df.entry.js.map → p-de32a223.entry.js.map} +0 -0
- /package/dist/core/{p-46423f42.entry.js.map → p-e6dacbe2.entry.js.map} +0 -0
- /package/dist/core/{p-1dab47b1.entry.js.map → p-ea06792a.entry.js.map} +0 -0
- /package/dist/core/{p-5c6efed3.entry.js.map → p-eb0e7153.entry.js.map} +0 -0
- /package/dist/core/{p-402813c9.entry.js.map → p-f609ca37.entry.js.map} +0 -0
- /package/dist/core/{p-cd63bcf2.entry.js.map → p-fb734a59.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
@@ -3281,6 +3281,7 @@ const IGNORED_KEYBOARD_CHARACTERS = [
|
|
3281
3281
|
"Shift",
|
3282
3282
|
"Tab",
|
3283
3283
|
];
|
3284
|
+
const IC_CUSTOM_ALLOWED_COMPONENTS = [];
|
3284
3285
|
|
3285
3286
|
const DARK_MODE_THRESHOLD = 133.3505;
|
3286
3287
|
const ANYWHERE_SEARCH_POSITION = "anywhere";
|
@@ -4181,7 +4182,7 @@ var closeIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fil
|
|
4181
4182
|
</svg>
|
4182
4183
|
`;
|
4183
4184
|
|
4184
|
-
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)}.
|
4185
|
+
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)}}";
|
4185
4186
|
var IcAlertStyle0 = icAlertCss;
|
4186
4187
|
|
4187
4188
|
/**
|
@@ -4287,14 +4288,14 @@ class Alert {
|
|
4287
4288
|
return (hAsync("div", { class: iconClass }, hAsync("slot", { name: "neutral-icon" })));
|
4288
4289
|
}
|
4289
4290
|
else if (!showDefaultIcon) {
|
4290
|
-
return hAsync("div",
|
4291
|
+
return hAsync("div", null);
|
4291
4292
|
}
|
4292
4293
|
}
|
4293
4294
|
return (hAsync("span", { class: iconClass, innerHTML: VARIANT_ICONS[variant].icon }));
|
4294
4295
|
};
|
4295
4296
|
return (visible && (hAsync(Host, { role: announced ? "alert" : null, class: {
|
4296
4297
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
4297
|
-
} }, hAsync("div", { class: { container: true, [`container-${variant}`]: true } }, hAsync("div", { class:
|
4298
|
+
} }, 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: {
|
4298
4299
|
"alert-message": true,
|
4299
4300
|
"alert-message-title-above": titleAbove || alertTitleWrap,
|
4300
4301
|
}, ref: (el) => (this.messageEl = el) }, heading && (hAsync("ic-typography", { class: {
|
@@ -5881,7 +5882,7 @@ class Checkbox {
|
|
5881
5882
|
}; }
|
5882
5883
|
}
|
5883
5884
|
|
5884
|
-
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}";
|
5885
|
+
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}";
|
5885
5886
|
var IcCheckboxGroupStyle0 = icCheckboxGroupCss;
|
5886
5887
|
|
5887
5888
|
const CHECKBOX_SELECTOR = "ic-checkbox";
|
@@ -5917,6 +5918,10 @@ class CheckboxGroup {
|
|
5917
5918
|
* 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.
|
5918
5919
|
*/
|
5919
5920
|
this.theme = "inherit";
|
5921
|
+
/**
|
5922
|
+
* The value of the `aria-live` attribute on the validation message.
|
5923
|
+
*/
|
5924
|
+
this.validationAriaLive = "polite";
|
5920
5925
|
/**
|
5921
5926
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
5922
5927
|
*/
|
@@ -5976,14 +5981,17 @@ class CheckboxGroup {
|
|
5976
5981
|
});
|
5977
5982
|
}
|
5978
5983
|
render() {
|
5979
|
-
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationStatus, validationText, } = this;
|
5984
|
+
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationAriaLive, validationStatus, validationText, } = this;
|
5980
5985
|
const describedBy = getInputDescribedByText(this.el, name, helperText !== "", validationStatus !== "");
|
5981
5986
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
5982
|
-
|
5987
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
5988
|
+
return (hAsync(Host, { key: 'ee4fc914d346b2f35dd8d44ff73a44b479caee95', class: {
|
5983
5989
|
"ic-checkbox-group-disabled": !!disabled,
|
5984
5990
|
[`ic-checkbox-group-${size}`]: true,
|
5985
5991
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
5986
|
-
} }, renderSRText && (hAsync("span", { key: '
|
5992
|
+
} }, 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: {
|
5993
|
+
"show-validation": showValidation,
|
5994
|
+
}, for: name, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
5987
5995
|
}
|
5988
5996
|
get el() { return getElement(this); }
|
5989
5997
|
static get watchers() { return {
|
@@ -6005,6 +6013,7 @@ class CheckboxGroup {
|
|
6005
6013
|
"required": [4],
|
6006
6014
|
"size": [1],
|
6007
6015
|
"theme": [1],
|
6016
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
6008
6017
|
"validationStatus": [1, "validation-status"],
|
6009
6018
|
"validationText": [1, "validation-text"]
|
6010
6019
|
},
|
@@ -6019,7 +6028,7 @@ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org
|
|
6019
6028
|
</svg>
|
6020
6029
|
`;
|
6021
6030
|
|
6022
|
-
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}}";
|
6031
|
+
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}}";
|
6023
6032
|
var IcChipStyle0 = icChipCss;
|
6024
6033
|
|
6025
6034
|
/**
|
@@ -6113,10 +6122,11 @@ class Chip {
|
|
6113
6122
|
render() {
|
6114
6123
|
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
6115
6124
|
const ariaLabel = `${label} chip`;
|
6116
|
-
return (hAsync(Host, { key: '
|
6125
|
+
return (hAsync(Host, { key: 'c7b88d4999b6de5004edc4bd27e185b9232fdaf9', class: {
|
6126
|
+
"ic-chip-dismissed": !visible,
|
6117
6127
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6118
6128
|
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
6119
|
-
} }, visible && (hAsync("div", { key: '
|
6129
|
+
} }, visible && (hAsync("div", { key: 'dbbb2bd77adea5e65d61e11b6c4b2b06fadbb9b1', class: {
|
6120
6130
|
chip: true,
|
6121
6131
|
[`${variant}`]: true,
|
6122
6132
|
[`${size}`]: true,
|
@@ -6124,7 +6134,7 @@ class Chip {
|
|
6124
6134
|
dismissible,
|
6125
6135
|
hovered,
|
6126
6136
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
6127
|
-
} }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '
|
6137
|
+
} }, isSlotUsed(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(this.el, "badge") && hAsync("slot", { key: '9b3fec37d1d44def4248cf53ae2916d9f62e1a08', name: "badge" }))), dismissible && (hAsync("div", { key: 'bc8d8601488092dde7dae7db5f0f36b802f6df9f', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
|
6128
6138
|
}
|
6129
6139
|
static get delegatesFocus() { return true; }
|
6130
6140
|
get el() { return getElement(this); }
|
@@ -6398,7 +6408,9 @@ class Dialog {
|
|
6398
6408
|
this.IC_CHECKBOX = "IC-CHECKBOX";
|
6399
6409
|
this.IC_SEARCH_BAR = "IC-SEARCH-BAR";
|
6400
6410
|
this.IC_TAB_CONTEXT = "IC-TAB-CONTEXT";
|
6411
|
+
this.interactiveElementList = [];
|
6401
6412
|
this.resizeObserver = null;
|
6413
|
+
this.focusAttemptCount = 0;
|
6402
6414
|
this.dialogRendered = false;
|
6403
6415
|
this.fadeIn = false;
|
6404
6416
|
/**
|
@@ -6467,6 +6479,7 @@ class Dialog {
|
|
6467
6479
|
}
|
6468
6480
|
}, 10);
|
6469
6481
|
setTimeout(() => {
|
6482
|
+
this.getInteractiveElements();
|
6470
6483
|
this.setInitialFocus();
|
6471
6484
|
checkResizeObserver(this.runResizeObserver);
|
6472
6485
|
}, 75);
|
@@ -6517,10 +6530,24 @@ class Dialog {
|
|
6517
6530
|
};
|
6518
6531
|
this.setInitialFocus = () => {
|
6519
6532
|
this.sourceElement = document.activeElement;
|
6520
|
-
|
6521
|
-
|
6522
|
-
|
6523
|
-
|
6533
|
+
if (!this.interactiveElementList.length) {
|
6534
|
+
// No interactive elements yet, retry shortly
|
6535
|
+
setTimeout(() => {
|
6536
|
+
this.getInteractiveElements();
|
6537
|
+
if (this.interactiveElementList.length) {
|
6538
|
+
this.setInitialFocus();
|
6539
|
+
}
|
6540
|
+
}, 10);
|
6541
|
+
return;
|
6542
|
+
}
|
6543
|
+
this.focusedElementIndex = this.interactiveElementList.findIndex((element) => element.hasAttribute(this.DATA_GETS_FOCUS));
|
6544
|
+
if (this.focusedElementIndex === -1) {
|
6545
|
+
this.focusedElementIndex = 0;
|
6546
|
+
}
|
6547
|
+
const elToFocus = this.interactiveElementList[this.focusedElementIndex];
|
6548
|
+
if (elToFocus) {
|
6549
|
+
this.focusElement(elToFocus);
|
6550
|
+
}
|
6524
6551
|
};
|
6525
6552
|
this.getFocusedElementIndex = () => {
|
6526
6553
|
var _a;
|
@@ -6555,17 +6582,22 @@ class Dialog {
|
|
6555
6582
|
};
|
6556
6583
|
this.getNextFocusEl = (focusedElementIndex) => this.interactiveElementList[focusedElementIndex];
|
6557
6584
|
this.onTabKeyPress = (shiftKey) => {
|
6585
|
+
var _a;
|
6558
6586
|
this.getFocusedElementIndex();
|
6559
|
-
if (this.interactiveElementList[this.focusedElementIndex].tagName ===
|
6587
|
+
if (((_a = this.interactiveElementList[this.focusedElementIndex]) === null || _a === void 0 ? void 0 : _a.tagName) ===
|
6560
6588
|
this.IC_SEARCH_BAR) {
|
6561
6589
|
return false;
|
6562
6590
|
}
|
6563
6591
|
this.setFocusIndexBasedOnShiftKey(shiftKey);
|
6564
6592
|
this.loopNextFocusIndexIfLastElement();
|
6593
|
+
this.focusAttemptCount = 0;
|
6565
6594
|
this.focusElement(this.getNextFocusEl(this.focusedElementIndex), shiftKey);
|
6566
6595
|
return true;
|
6567
6596
|
};
|
6568
6597
|
this.shouldSkipElement = (element) => {
|
6598
|
+
if (!element) {
|
6599
|
+
return true;
|
6600
|
+
}
|
6569
6601
|
const isHidden = getComputedStyle(element).visibility === "hidden" ||
|
6570
6602
|
element.offsetHeight === 0 ||
|
6571
6603
|
element.hasAttribute("disabled") ||
|
@@ -6578,12 +6610,16 @@ class Dialog {
|
|
6578
6610
|
!(radioEl.hasAttribute("selected") || element.tabIndex === 0)));
|
6579
6611
|
};
|
6580
6612
|
this.focusElement = (element, shiftKey = false) => {
|
6581
|
-
|
6613
|
+
if (!element) {
|
6614
|
+
return;
|
6615
|
+
}
|
6616
|
+
if (this.focusAttemptCount++ > this.interactiveElementList.length) {
|
6617
|
+
return;
|
6618
|
+
}
|
6582
6619
|
if (this.shouldSkipElement(element)) {
|
6583
6620
|
this.setFocusIndexBasedOnShiftKey(shiftKey);
|
6584
6621
|
this.loopNextFocusIndexIfLastElement();
|
6585
|
-
|
6586
|
-
this.focusElement(nextFocusEl, shiftKey);
|
6622
|
+
this.focusElement(this.getNextFocusEl(this.focusedElementIndex), shiftKey);
|
6587
6623
|
}
|
6588
6624
|
else {
|
6589
6625
|
switch (element.tagName) {
|
@@ -6638,7 +6674,6 @@ class Dialog {
|
|
6638
6674
|
this.removeSlotChangeListener();
|
6639
6675
|
}
|
6640
6676
|
componentDidLoad() {
|
6641
|
-
this.getInteractiveElements();
|
6642
6677
|
this.refreshInteractiveElementsOnSlotChange();
|
6643
6678
|
if (this.open) {
|
6644
6679
|
this.dialogOpened();
|
@@ -6714,7 +6749,7 @@ class Dialog {
|
|
6714
6749
|
}
|
6715
6750
|
render() {
|
6716
6751
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme } = this;
|
6717
|
-
return (hAsync(Host, { key: '
|
6752
|
+
return (hAsync(Host, { key: '90bdbe0ef1a88e61db6395c4f63bea39573a757b', class: {
|
6718
6753
|
"ic-dialog-hidden": !dialogRendered,
|
6719
6754
|
"ic-dialog-fade-in": fadeIn,
|
6720
6755
|
"disable-height-constraint": !!disableHeightConstraint,
|
@@ -7750,7 +7785,7 @@ class InputLabel {
|
|
7750
7785
|
}; }
|
7751
7786
|
}
|
7752
7787
|
|
7753
|
-
const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);margin-top:var(--ic-space-xs)
|
7788
|
+
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}";
|
7754
7789
|
var IcInputValidationStyle0 = icInputValidationCss;
|
7755
7790
|
|
7756
7791
|
const ICON = {
|
@@ -7784,7 +7819,7 @@ class InputValidation {
|
|
7784
7819
|
this.messageEl.textContent = INVISIBLE_CHAR;
|
7785
7820
|
setTimeout(() => {
|
7786
7821
|
this.messageEl.textContent = newValue;
|
7787
|
-
},
|
7822
|
+
}, 200); // Delay to help ensure screen readers detect change
|
7788
7823
|
}
|
7789
7824
|
componentDidLoad() {
|
7790
7825
|
onComponentRequiredPropUndefined([{ prop: this.message, propName: "message" }], "Input Validation");
|
@@ -7793,13 +7828,14 @@ class InputValidation {
|
|
7793
7828
|
render() {
|
7794
7829
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
7795
7830
|
const displayIcon = status !== "" ? ICON[status] : "";
|
7796
|
-
return (hAsync(Host, { key: '
|
7831
|
+
return (hAsync(Host, { key: 'f1ba7e992a65cbd63d86411844668a0db4944cf2', class: {
|
7797
7832
|
[`ic-input-validation-${status}`]: status !== "",
|
7798
7833
|
"ic-input-validation-full-width": !!fullWidth,
|
7799
|
-
|
7834
|
+
"ic-input-validation-with-status": status !== "",
|
7835
|
+
} }, displayIcon !== "" && (hAsync("span", { key: '43bf05c319e9f4cdb7f6e5affd403d745b7dac00', class: {
|
7800
7836
|
"status-icon": true,
|
7801
7837
|
[`icon-${status}`]: true,
|
7802
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
7838
|
+
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '8d0f570e79158d1add1410653c8bbdb5e052aaa3', variant: "caption", class: "statustext" }, hAsync("span", { key: 'c363e60a30ef571a63779ed77a7e4e8358444d5f', id: this.for && getInputValidationTextID(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" })));
|
7803
7839
|
}
|
7804
7840
|
get el() { return getElement(this); }
|
7805
7841
|
static get watchers() { return {
|
@@ -10215,6 +10251,1381 @@ var checkIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2
|
|
10215
10251
|
</svg>
|
10216
10252
|
`;
|
10217
10253
|
|
10254
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
10255
|
+
|
10256
|
+
var purify = {exports: {}};
|
10257
|
+
|
10258
|
+
/*! @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 */
|
10259
|
+
|
10260
|
+
(function (module, exports) {
|
10261
|
+
(function (global, factory) {
|
10262
|
+
module.exports = factory() ;
|
10263
|
+
})(commonjsGlobal, (function () {
|
10264
|
+
const {
|
10265
|
+
entries,
|
10266
|
+
setPrototypeOf,
|
10267
|
+
isFrozen,
|
10268
|
+
getPrototypeOf,
|
10269
|
+
getOwnPropertyDescriptor
|
10270
|
+
} = Object;
|
10271
|
+
let {
|
10272
|
+
freeze,
|
10273
|
+
seal,
|
10274
|
+
create
|
10275
|
+
} = Object; // eslint-disable-line import/no-mutable-exports
|
10276
|
+
let {
|
10277
|
+
apply,
|
10278
|
+
construct
|
10279
|
+
} = typeof Reflect !== 'undefined' && Reflect;
|
10280
|
+
if (!freeze) {
|
10281
|
+
freeze = function freeze(x) {
|
10282
|
+
return x;
|
10283
|
+
};
|
10284
|
+
}
|
10285
|
+
if (!seal) {
|
10286
|
+
seal = function seal(x) {
|
10287
|
+
return x;
|
10288
|
+
};
|
10289
|
+
}
|
10290
|
+
if (!apply) {
|
10291
|
+
apply = function apply(fun, thisValue, args) {
|
10292
|
+
return fun.apply(thisValue, args);
|
10293
|
+
};
|
10294
|
+
}
|
10295
|
+
if (!construct) {
|
10296
|
+
construct = function construct(Func, args) {
|
10297
|
+
return new Func(...args);
|
10298
|
+
};
|
10299
|
+
}
|
10300
|
+
const arrayForEach = unapply(Array.prototype.forEach);
|
10301
|
+
const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
10302
|
+
const arrayPop = unapply(Array.prototype.pop);
|
10303
|
+
const arrayPush = unapply(Array.prototype.push);
|
10304
|
+
const arraySplice = unapply(Array.prototype.splice);
|
10305
|
+
const stringToLowerCase = unapply(String.prototype.toLowerCase);
|
10306
|
+
const stringToString = unapply(String.prototype.toString);
|
10307
|
+
const stringMatch = unapply(String.prototype.match);
|
10308
|
+
const stringReplace = unapply(String.prototype.replace);
|
10309
|
+
const stringIndexOf = unapply(String.prototype.indexOf);
|
10310
|
+
const stringTrim = unapply(String.prototype.trim);
|
10311
|
+
const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
|
10312
|
+
const regExpTest = unapply(RegExp.prototype.test);
|
10313
|
+
const typeErrorCreate = unconstruct(TypeError);
|
10314
|
+
/**
|
10315
|
+
* Creates a new function that calls the given function with a specified thisArg and arguments.
|
10316
|
+
*
|
10317
|
+
* @param func - The function to be wrapped and called.
|
10318
|
+
* @returns A new function that calls the given function with a specified thisArg and arguments.
|
10319
|
+
*/
|
10320
|
+
function unapply(func) {
|
10321
|
+
return function (thisArg) {
|
10322
|
+
if (thisArg instanceof RegExp) {
|
10323
|
+
thisArg.lastIndex = 0;
|
10324
|
+
}
|
10325
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
10326
|
+
args[_key - 1] = arguments[_key];
|
10327
|
+
}
|
10328
|
+
return apply(func, thisArg, args);
|
10329
|
+
};
|
10330
|
+
}
|
10331
|
+
/**
|
10332
|
+
* Creates a new function that constructs an instance of the given constructor function with the provided arguments.
|
10333
|
+
*
|
10334
|
+
* @param func - The constructor function to be wrapped and called.
|
10335
|
+
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
10336
|
+
*/
|
10337
|
+
function unconstruct(func) {
|
10338
|
+
return function () {
|
10339
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
10340
|
+
args[_key2] = arguments[_key2];
|
10341
|
+
}
|
10342
|
+
return construct(func, args);
|
10343
|
+
};
|
10344
|
+
}
|
10345
|
+
/**
|
10346
|
+
* Add properties to a lookup table
|
10347
|
+
*
|
10348
|
+
* @param set - The set to which elements will be added.
|
10349
|
+
* @param array - The array containing elements to be added to the set.
|
10350
|
+
* @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
|
10351
|
+
* @returns The modified set with added elements.
|
10352
|
+
*/
|
10353
|
+
function addToSet(set, array) {
|
10354
|
+
let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
|
10355
|
+
if (setPrototypeOf) {
|
10356
|
+
// Make 'in' and truthy checks like Boolean(set.constructor)
|
10357
|
+
// independent of any properties defined on Object.prototype.
|
10358
|
+
// Prevent prototype setters from intercepting set as a this value.
|
10359
|
+
setPrototypeOf(set, null);
|
10360
|
+
}
|
10361
|
+
let l = array.length;
|
10362
|
+
while (l--) {
|
10363
|
+
let element = array[l];
|
10364
|
+
if (typeof element === 'string') {
|
10365
|
+
const lcElement = transformCaseFunc(element);
|
10366
|
+
if (lcElement !== element) {
|
10367
|
+
// Config presets (e.g. tags.js, attrs.js) are immutable.
|
10368
|
+
if (!isFrozen(array)) {
|
10369
|
+
array[l] = lcElement;
|
10370
|
+
}
|
10371
|
+
element = lcElement;
|
10372
|
+
}
|
10373
|
+
}
|
10374
|
+
set[element] = true;
|
10375
|
+
}
|
10376
|
+
return set;
|
10377
|
+
}
|
10378
|
+
/**
|
10379
|
+
* Clean up an array to harden against CSPP
|
10380
|
+
*
|
10381
|
+
* @param array - The array to be cleaned.
|
10382
|
+
* @returns The cleaned version of the array
|
10383
|
+
*/
|
10384
|
+
function cleanArray(array) {
|
10385
|
+
for (let index = 0; index < array.length; index++) {
|
10386
|
+
const isPropertyExist = objectHasOwnProperty(array, index);
|
10387
|
+
if (!isPropertyExist) {
|
10388
|
+
array[index] = null;
|
10389
|
+
}
|
10390
|
+
}
|
10391
|
+
return array;
|
10392
|
+
}
|
10393
|
+
/**
|
10394
|
+
* Shallow clone an object
|
10395
|
+
*
|
10396
|
+
* @param object - The object to be cloned.
|
10397
|
+
* @returns A new object that copies the original.
|
10398
|
+
*/
|
10399
|
+
function clone(object) {
|
10400
|
+
const newObject = create(null);
|
10401
|
+
for (const [property, value] of entries(object)) {
|
10402
|
+
const isPropertyExist = objectHasOwnProperty(object, property);
|
10403
|
+
if (isPropertyExist) {
|
10404
|
+
if (Array.isArray(value)) {
|
10405
|
+
newObject[property] = cleanArray(value);
|
10406
|
+
} else if (value && typeof value === 'object' && value.constructor === Object) {
|
10407
|
+
newObject[property] = clone(value);
|
10408
|
+
} else {
|
10409
|
+
newObject[property] = value;
|
10410
|
+
}
|
10411
|
+
}
|
10412
|
+
}
|
10413
|
+
return newObject;
|
10414
|
+
}
|
10415
|
+
/**
|
10416
|
+
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
10417
|
+
*
|
10418
|
+
* @param object - The object to look up the getter function in its prototype chain.
|
10419
|
+
* @param prop - The property name for which to find the getter function.
|
10420
|
+
* @returns The getter function found in the prototype chain or a fallback function.
|
10421
|
+
*/
|
10422
|
+
function lookupGetter(object, prop) {
|
10423
|
+
while (object !== null) {
|
10424
|
+
const desc = getOwnPropertyDescriptor(object, prop);
|
10425
|
+
if (desc) {
|
10426
|
+
if (desc.get) {
|
10427
|
+
return unapply(desc.get);
|
10428
|
+
}
|
10429
|
+
if (typeof desc.value === 'function') {
|
10430
|
+
return unapply(desc.value);
|
10431
|
+
}
|
10432
|
+
}
|
10433
|
+
object = getPrototypeOf(object);
|
10434
|
+
}
|
10435
|
+
function fallbackValue() {
|
10436
|
+
return null;
|
10437
|
+
}
|
10438
|
+
return fallbackValue;
|
10439
|
+
}
|
10440
|
+
|
10441
|
+
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']);
|
10442
|
+
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']);
|
10443
|
+
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']);
|
10444
|
+
// List of SVG elements that are disallowed by default.
|
10445
|
+
// We still need to know them so that we can do namespace
|
10446
|
+
// checks properly in case one wants to add them to
|
10447
|
+
// allow-list.
|
10448
|
+
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']);
|
10449
|
+
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']);
|
10450
|
+
// Similarly to SVG, we want to know all MathML elements,
|
10451
|
+
// even those that we disallow by default.
|
10452
|
+
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
10453
|
+
const text = freeze(['#text']);
|
10454
|
+
|
10455
|
+
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']);
|
10456
|
+
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']);
|
10457
|
+
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']);
|
10458
|
+
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
10459
|
+
|
10460
|
+
// eslint-disable-next-line unicorn/better-regex
|
10461
|
+
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode
|
10462
|
+
const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
|
10463
|
+
const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm); // eslint-disable-line unicorn/better-regex
|
10464
|
+
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
|
10465
|
+
const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
|
10466
|
+
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
|
10467
|
+
);
|
10468
|
+
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
10469
|
+
const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
|
10470
|
+
);
|
10471
|
+
const DOCTYPE_NAME = seal(/^html$/i);
|
10472
|
+
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
10473
|
+
|
10474
|
+
var EXPRESSIONS = /*#__PURE__*/Object.freeze({
|
10475
|
+
__proto__: null,
|
10476
|
+
ARIA_ATTR: ARIA_ATTR,
|
10477
|
+
ATTR_WHITESPACE: ATTR_WHITESPACE,
|
10478
|
+
CUSTOM_ELEMENT: CUSTOM_ELEMENT,
|
10479
|
+
DATA_ATTR: DATA_ATTR,
|
10480
|
+
DOCTYPE_NAME: DOCTYPE_NAME,
|
10481
|
+
ERB_EXPR: ERB_EXPR,
|
10482
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI,
|
10483
|
+
IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
|
10484
|
+
MUSTACHE_EXPR: MUSTACHE_EXPR,
|
10485
|
+
TMPLIT_EXPR: TMPLIT_EXPR
|
10486
|
+
});
|
10487
|
+
|
10488
|
+
/* eslint-disable @typescript-eslint/indent */
|
10489
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
10490
|
+
const NODE_TYPE = {
|
10491
|
+
element: 1,
|
10492
|
+
attribute: 2,
|
10493
|
+
text: 3,
|
10494
|
+
cdataSection: 4,
|
10495
|
+
entityReference: 5,
|
10496
|
+
// Deprecated
|
10497
|
+
entityNode: 6,
|
10498
|
+
// Deprecated
|
10499
|
+
progressingInstruction: 7,
|
10500
|
+
comment: 8,
|
10501
|
+
document: 9,
|
10502
|
+
documentType: 10,
|
10503
|
+
documentFragment: 11,
|
10504
|
+
notation: 12 // Deprecated
|
10505
|
+
};
|
10506
|
+
const getGlobal = function getGlobal() {
|
10507
|
+
return typeof window === 'undefined' ? null : window;
|
10508
|
+
};
|
10509
|
+
/**
|
10510
|
+
* Creates a no-op policy for internal use only.
|
10511
|
+
* Don't export this function outside this module!
|
10512
|
+
* @param trustedTypes The policy factory.
|
10513
|
+
* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
|
10514
|
+
* @return The policy created (or null, if Trusted Types
|
10515
|
+
* are not supported or creating the policy failed).
|
10516
|
+
*/
|
10517
|
+
const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
|
10518
|
+
if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
|
10519
|
+
return null;
|
10520
|
+
}
|
10521
|
+
// Allow the callers to control the unique policy name
|
10522
|
+
// by adding a data-tt-policy-suffix to the script element with the DOMPurify.
|
10523
|
+
// Policy creation with duplicate names throws in Trusted Types.
|
10524
|
+
let suffix = null;
|
10525
|
+
const ATTR_NAME = 'data-tt-policy-suffix';
|
10526
|
+
if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
|
10527
|
+
suffix = purifyHostElement.getAttribute(ATTR_NAME);
|
10528
|
+
}
|
10529
|
+
const policyName = 'dompurify' + (suffix ? '#' + suffix : '');
|
10530
|
+
try {
|
10531
|
+
return trustedTypes.createPolicy(policyName, {
|
10532
|
+
createHTML(html) {
|
10533
|
+
return html;
|
10534
|
+
},
|
10535
|
+
createScriptURL(scriptUrl) {
|
10536
|
+
return scriptUrl;
|
10537
|
+
}
|
10538
|
+
});
|
10539
|
+
} catch (_) {
|
10540
|
+
// Policy creation failed (most likely another DOMPurify script has
|
10541
|
+
// already run). Skip creating the policy, as this will only cause errors
|
10542
|
+
// if TT are enforced.
|
10543
|
+
console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
|
10544
|
+
return null;
|
10545
|
+
}
|
10546
|
+
};
|
10547
|
+
const _createHooksMap = function _createHooksMap() {
|
10548
|
+
return {
|
10549
|
+
afterSanitizeAttributes: [],
|
10550
|
+
afterSanitizeElements: [],
|
10551
|
+
afterSanitizeShadowDOM: [],
|
10552
|
+
beforeSanitizeAttributes: [],
|
10553
|
+
beforeSanitizeElements: [],
|
10554
|
+
beforeSanitizeShadowDOM: [],
|
10555
|
+
uponSanitizeAttribute: [],
|
10556
|
+
uponSanitizeElement: [],
|
10557
|
+
uponSanitizeShadowNode: []
|
10558
|
+
};
|
10559
|
+
};
|
10560
|
+
function createDOMPurify() {
|
10561
|
+
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
10562
|
+
const DOMPurify = root => createDOMPurify(root);
|
10563
|
+
DOMPurify.version = '3.2.6';
|
10564
|
+
DOMPurify.removed = [];
|
10565
|
+
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
10566
|
+
// Not running in a browser, provide a factory function
|
10567
|
+
// so that you can pass your own Window
|
10568
|
+
DOMPurify.isSupported = false;
|
10569
|
+
return DOMPurify;
|
10570
|
+
}
|
10571
|
+
let {
|
10572
|
+
document
|
10573
|
+
} = window;
|
10574
|
+
const originalDocument = document;
|
10575
|
+
const currentScript = originalDocument.currentScript;
|
10576
|
+
const {
|
10577
|
+
DocumentFragment,
|
10578
|
+
HTMLTemplateElement,
|
10579
|
+
Node,
|
10580
|
+
Element,
|
10581
|
+
NodeFilter,
|
10582
|
+
NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,
|
10583
|
+
HTMLFormElement,
|
10584
|
+
DOMParser,
|
10585
|
+
trustedTypes
|
10586
|
+
} = window;
|
10587
|
+
const ElementPrototype = Element.prototype;
|
10588
|
+
const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
|
10589
|
+
const remove = lookupGetter(ElementPrototype, 'remove');
|
10590
|
+
const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
|
10591
|
+
const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
|
10592
|
+
const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
|
10593
|
+
// As per issue #47, the web-components registry is inherited by a
|
10594
|
+
// new document created via createHTMLDocument. As per the spec
|
10595
|
+
// (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
|
10596
|
+
// a new empty registry is used when creating a template contents owner
|
10597
|
+
// document, so we use that as our parent document to ensure nothing
|
10598
|
+
// is inherited.
|
10599
|
+
if (typeof HTMLTemplateElement === 'function') {
|
10600
|
+
const template = document.createElement('template');
|
10601
|
+
if (template.content && template.content.ownerDocument) {
|
10602
|
+
document = template.content.ownerDocument;
|
10603
|
+
}
|
10604
|
+
}
|
10605
|
+
let trustedTypesPolicy;
|
10606
|
+
let emptyHTML = '';
|
10607
|
+
const {
|
10608
|
+
implementation,
|
10609
|
+
createNodeIterator,
|
10610
|
+
createDocumentFragment,
|
10611
|
+
getElementsByTagName
|
10612
|
+
} = document;
|
10613
|
+
const {
|
10614
|
+
importNode
|
10615
|
+
} = originalDocument;
|
10616
|
+
let hooks = _createHooksMap();
|
10617
|
+
/**
|
10618
|
+
* Expose whether this browser supports running the full DOMPurify.
|
10619
|
+
*/
|
10620
|
+
DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;
|
10621
|
+
const {
|
10622
|
+
MUSTACHE_EXPR,
|
10623
|
+
ERB_EXPR,
|
10624
|
+
TMPLIT_EXPR,
|
10625
|
+
DATA_ATTR,
|
10626
|
+
ARIA_ATTR,
|
10627
|
+
IS_SCRIPT_OR_DATA,
|
10628
|
+
ATTR_WHITESPACE,
|
10629
|
+
CUSTOM_ELEMENT
|
10630
|
+
} = EXPRESSIONS;
|
10631
|
+
let {
|
10632
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI$1
|
10633
|
+
} = EXPRESSIONS;
|
10634
|
+
/**
|
10635
|
+
* We consider the elements and attributes below to be safe. Ideally
|
10636
|
+
* don't add any new ones but feel free to remove unwanted ones.
|
10637
|
+
*/
|
10638
|
+
/* allowed element names */
|
10639
|
+
let ALLOWED_TAGS = null;
|
10640
|
+
const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
|
10641
|
+
/* Allowed attribute names */
|
10642
|
+
let ALLOWED_ATTR = null;
|
10643
|
+
const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
|
10644
|
+
/*
|
10645
|
+
* Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
|
10646
|
+
* @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
|
10647
|
+
* @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
|
10648
|
+
* @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
|
10649
|
+
*/
|
10650
|
+
let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
|
10651
|
+
tagNameCheck: {
|
10652
|
+
writable: true,
|
10653
|
+
configurable: false,
|
10654
|
+
enumerable: true,
|
10655
|
+
value: null
|
10656
|
+
},
|
10657
|
+
attributeNameCheck: {
|
10658
|
+
writable: true,
|
10659
|
+
configurable: false,
|
10660
|
+
enumerable: true,
|
10661
|
+
value: null
|
10662
|
+
},
|
10663
|
+
allowCustomizedBuiltInElements: {
|
10664
|
+
writable: true,
|
10665
|
+
configurable: false,
|
10666
|
+
enumerable: true,
|
10667
|
+
value: false
|
10668
|
+
}
|
10669
|
+
}));
|
10670
|
+
/* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
|
10671
|
+
let FORBID_TAGS = null;
|
10672
|
+
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
10673
|
+
let FORBID_ATTR = null;
|
10674
|
+
/* Decide if ARIA attributes are okay */
|
10675
|
+
let ALLOW_ARIA_ATTR = true;
|
10676
|
+
/* Decide if custom data attributes are okay */
|
10677
|
+
let ALLOW_DATA_ATTR = true;
|
10678
|
+
/* Decide if unknown protocols are okay */
|
10679
|
+
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
10680
|
+
/* Decide if self-closing tags in attributes are allowed.
|
10681
|
+
* Usually removed due to a mXSS issue in jQuery 3.0 */
|
10682
|
+
let ALLOW_SELF_CLOSE_IN_ATTR = true;
|
10683
|
+
/* Output should be safe for common template engines.
|
10684
|
+
* This means, DOMPurify removes data attributes, mustaches and ERB
|
10685
|
+
*/
|
10686
|
+
let SAFE_FOR_TEMPLATES = false;
|
10687
|
+
/* Output should be safe even for XML used within HTML and alike.
|
10688
|
+
* This means, DOMPurify removes comments when containing risky content.
|
10689
|
+
*/
|
10690
|
+
let SAFE_FOR_XML = true;
|
10691
|
+
/* Decide if document with <html>... should be returned */
|
10692
|
+
let WHOLE_DOCUMENT = false;
|
10693
|
+
/* Track whether config is already set on this instance of DOMPurify. */
|
10694
|
+
let SET_CONFIG = false;
|
10695
|
+
/* Decide if all elements (e.g. style, script) must be children of
|
10696
|
+
* document.body. By default, browsers might move them to document.head */
|
10697
|
+
let FORCE_BODY = false;
|
10698
|
+
/* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
|
10699
|
+
* string (or a TrustedHTML object if Trusted Types are supported).
|
10700
|
+
* If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
|
10701
|
+
*/
|
10702
|
+
let RETURN_DOM = false;
|
10703
|
+
/* Decide if a DOM `DocumentFragment` should be returned, instead of a html
|
10704
|
+
* string (or a TrustedHTML object if Trusted Types are supported) */
|
10705
|
+
let RETURN_DOM_FRAGMENT = false;
|
10706
|
+
/* Try to return a Trusted Type object instead of a string, return a string in
|
10707
|
+
* case Trusted Types are not supported */
|
10708
|
+
let RETURN_TRUSTED_TYPE = false;
|
10709
|
+
/* Output should be free from DOM clobbering attacks?
|
10710
|
+
* This sanitizes markups named with colliding, clobberable built-in DOM APIs.
|
10711
|
+
*/
|
10712
|
+
let SANITIZE_DOM = true;
|
10713
|
+
/* Achieve full DOM Clobbering protection by isolating the namespace of named
|
10714
|
+
* properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
|
10715
|
+
*
|
10716
|
+
* HTML/DOM spec rules that enable DOM Clobbering:
|
10717
|
+
* - Named Access on Window (§7.3.3)
|
10718
|
+
* - DOM Tree Accessors (§3.1.5)
|
10719
|
+
* - Form Element Parent-Child Relations (§4.10.3)
|
10720
|
+
* - Iframe srcdoc / Nested WindowProxies (§4.8.5)
|
10721
|
+
* - HTMLCollection (§4.2.10.2)
|
10722
|
+
*
|
10723
|
+
* Namespace isolation is implemented by prefixing `id` and `name` attributes
|
10724
|
+
* with a constant string, i.e., `user-content-`
|
10725
|
+
*/
|
10726
|
+
let SANITIZE_NAMED_PROPS = false;
|
10727
|
+
const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';
|
10728
|
+
/* Keep element content when removing element? */
|
10729
|
+
let KEEP_CONTENT = true;
|
10730
|
+
/* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
|
10731
|
+
* of importing it into a new Document and returning a sanitized copy */
|
10732
|
+
let IN_PLACE = false;
|
10733
|
+
/* Allow usage of profiles like html, svg and mathMl */
|
10734
|
+
let USE_PROFILES = {};
|
10735
|
+
/* Tags to ignore content of when KEEP_CONTENT is true */
|
10736
|
+
let FORBID_CONTENTS = null;
|
10737
|
+
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']);
|
10738
|
+
/* Tags that are safe for data: URIs */
|
10739
|
+
let DATA_URI_TAGS = null;
|
10740
|
+
const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
|
10741
|
+
/* Attributes safe for values like "javascript:" */
|
10742
|
+
let URI_SAFE_ATTRIBUTES = null;
|
10743
|
+
const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);
|
10744
|
+
const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
10745
|
+
const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
10746
|
+
const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
10747
|
+
/* Document namespace */
|
10748
|
+
let NAMESPACE = HTML_NAMESPACE;
|
10749
|
+
let IS_EMPTY_INPUT = false;
|
10750
|
+
/* Allowed XHTML+XML namespaces */
|
10751
|
+
let ALLOWED_NAMESPACES = null;
|
10752
|
+
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
10753
|
+
let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
|
10754
|
+
let HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);
|
10755
|
+
// Certain elements are allowed in both SVG and HTML
|
10756
|
+
// namespace. We need to specify them explicitly
|
10757
|
+
// so that they don't get erroneously deleted from
|
10758
|
+
// HTML namespace.
|
10759
|
+
const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
|
10760
|
+
/* Parsing of strict XHTML documents */
|
10761
|
+
let PARSER_MEDIA_TYPE = null;
|
10762
|
+
const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
|
10763
|
+
const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
|
10764
|
+
let transformCaseFunc = null;
|
10765
|
+
/* Keep a reference to config to pass to hooks */
|
10766
|
+
let CONFIG = null;
|
10767
|
+
/* Ideally, do not touch anything below this line */
|
10768
|
+
/* ______________________________________________ */
|
10769
|
+
const formElement = document.createElement('form');
|
10770
|
+
const isRegexOrFunction = function isRegexOrFunction(testValue) {
|
10771
|
+
return testValue instanceof RegExp || testValue instanceof Function;
|
10772
|
+
};
|
10773
|
+
/**
|
10774
|
+
* _parseConfig
|
10775
|
+
*
|
10776
|
+
* @param cfg optional config literal
|
10777
|
+
*/
|
10778
|
+
// eslint-disable-next-line complexity
|
10779
|
+
const _parseConfig = function _parseConfig() {
|
10780
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
10781
|
+
if (CONFIG && CONFIG === cfg) {
|
10782
|
+
return;
|
10783
|
+
}
|
10784
|
+
/* Shield configuration object from tampering */
|
10785
|
+
if (!cfg || typeof cfg !== 'object') {
|
10786
|
+
cfg = {};
|
10787
|
+
}
|
10788
|
+
/* Shield configuration object from prototype pollution */
|
10789
|
+
cfg = clone(cfg);
|
10790
|
+
PARSER_MEDIA_TYPE =
|
10791
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
10792
|
+
SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
|
10793
|
+
// HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
|
10794
|
+
transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
|
10795
|
+
/* Set configuration parameters */
|
10796
|
+
ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
10797
|
+
ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
10798
|
+
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
10799
|
+
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;
|
10800
|
+
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;
|
10801
|
+
FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
10802
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
10803
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
10804
|
+
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
|
10805
|
+
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
10806
|
+
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
10807
|
+
ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
|
10808
|
+
ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true
|
10809
|
+
SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
|
10810
|
+
SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true
|
10811
|
+
WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
|
10812
|
+
RETURN_DOM = cfg.RETURN_DOM || false; // Default false
|
10813
|
+
RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
|
10814
|
+
RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
|
10815
|
+
FORCE_BODY = cfg.FORCE_BODY || false; // Default false
|
10816
|
+
SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
|
10817
|
+
SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
|
10818
|
+
KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
|
10819
|
+
IN_PLACE = cfg.IN_PLACE || false; // Default false
|
10820
|
+
IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
|
10821
|
+
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
10822
|
+
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
|
10823
|
+
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
|
10824
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
|
10825
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
10826
|
+
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|
10827
|
+
}
|
10828
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
|
10829
|
+
CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
|
10830
|
+
}
|
10831
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {
|
10832
|
+
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
|
10833
|
+
}
|
10834
|
+
if (SAFE_FOR_TEMPLATES) {
|
10835
|
+
ALLOW_DATA_ATTR = false;
|
10836
|
+
}
|
10837
|
+
if (RETURN_DOM_FRAGMENT) {
|
10838
|
+
RETURN_DOM = true;
|
10839
|
+
}
|
10840
|
+
/* Parse profile info */
|
10841
|
+
if (USE_PROFILES) {
|
10842
|
+
ALLOWED_TAGS = addToSet({}, text);
|
10843
|
+
ALLOWED_ATTR = [];
|
10844
|
+
if (USE_PROFILES.html === true) {
|
10845
|
+
addToSet(ALLOWED_TAGS, html$1);
|
10846
|
+
addToSet(ALLOWED_ATTR, html);
|
10847
|
+
}
|
10848
|
+
if (USE_PROFILES.svg === true) {
|
10849
|
+
addToSet(ALLOWED_TAGS, svg$1);
|
10850
|
+
addToSet(ALLOWED_ATTR, svg);
|
10851
|
+
addToSet(ALLOWED_ATTR, xml);
|
10852
|
+
}
|
10853
|
+
if (USE_PROFILES.svgFilters === true) {
|
10854
|
+
addToSet(ALLOWED_TAGS, svgFilters);
|
10855
|
+
addToSet(ALLOWED_ATTR, svg);
|
10856
|
+
addToSet(ALLOWED_ATTR, xml);
|
10857
|
+
}
|
10858
|
+
if (USE_PROFILES.mathMl === true) {
|
10859
|
+
addToSet(ALLOWED_TAGS, mathMl$1);
|
10860
|
+
addToSet(ALLOWED_ATTR, mathMl);
|
10861
|
+
addToSet(ALLOWED_ATTR, xml);
|
10862
|
+
}
|
10863
|
+
}
|
10864
|
+
/* Merge configuration parameters */
|
10865
|
+
if (cfg.ADD_TAGS) {
|
10866
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
10867
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
10868
|
+
}
|
10869
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
10870
|
+
}
|
10871
|
+
if (cfg.ADD_ATTR) {
|
10872
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
10873
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
10874
|
+
}
|
10875
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
10876
|
+
}
|
10877
|
+
if (cfg.ADD_URI_SAFE_ATTR) {
|
10878
|
+
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
10879
|
+
}
|
10880
|
+
if (cfg.FORBID_CONTENTS) {
|
10881
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
10882
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
10883
|
+
}
|
10884
|
+
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
10885
|
+
}
|
10886
|
+
/* Add #text in case KEEP_CONTENT is set to true */
|
10887
|
+
if (KEEP_CONTENT) {
|
10888
|
+
ALLOWED_TAGS['#text'] = true;
|
10889
|
+
}
|
10890
|
+
/* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
|
10891
|
+
if (WHOLE_DOCUMENT) {
|
10892
|
+
addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
|
10893
|
+
}
|
10894
|
+
/* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
|
10895
|
+
if (ALLOWED_TAGS.table) {
|
10896
|
+
addToSet(ALLOWED_TAGS, ['tbody']);
|
10897
|
+
delete FORBID_TAGS.tbody;
|
10898
|
+
}
|
10899
|
+
if (cfg.TRUSTED_TYPES_POLICY) {
|
10900
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
|
10901
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
10902
|
+
}
|
10903
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
|
10904
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
10905
|
+
}
|
10906
|
+
// Overwrite existing TrustedTypes policy.
|
10907
|
+
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
10908
|
+
// Sign local variables required by `sanitize`.
|
10909
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
10910
|
+
} else {
|
10911
|
+
// Uninitialized policy, attempt to initialize the internal dompurify policy.
|
10912
|
+
if (trustedTypesPolicy === undefined) {
|
10913
|
+
trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
10914
|
+
}
|
10915
|
+
// If creating the internal policy succeeded sign internal variables.
|
10916
|
+
if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {
|
10917
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
10918
|
+
}
|
10919
|
+
}
|
10920
|
+
// Prevent further manipulation of configuration.
|
10921
|
+
// Not available in IE8, Safari 5, etc.
|
10922
|
+
if (freeze) {
|
10923
|
+
freeze(cfg);
|
10924
|
+
}
|
10925
|
+
CONFIG = cfg;
|
10926
|
+
};
|
10927
|
+
/* Keep track of all possible SVG and MathML tags
|
10928
|
+
* so that we can perform the namespace checks
|
10929
|
+
* correctly. */
|
10930
|
+
const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
|
10931
|
+
const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
|
10932
|
+
/**
|
10933
|
+
* @param element a DOM element whose namespace is being checked
|
10934
|
+
* @returns Return false if the element has a
|
10935
|
+
* namespace that a spec-compliant parser would never
|
10936
|
+
* return. Return true otherwise.
|
10937
|
+
*/
|
10938
|
+
const _checkValidNamespace = function _checkValidNamespace(element) {
|
10939
|
+
let parent = getParentNode(element);
|
10940
|
+
// In JSDOM, if we're inside shadow DOM, then parentNode
|
10941
|
+
// can be null. We just simulate parent in this case.
|
10942
|
+
if (!parent || !parent.tagName) {
|
10943
|
+
parent = {
|
10944
|
+
namespaceURI: NAMESPACE,
|
10945
|
+
tagName: 'template'
|
10946
|
+
};
|
10947
|
+
}
|
10948
|
+
const tagName = stringToLowerCase(element.tagName);
|
10949
|
+
const parentTagName = stringToLowerCase(parent.tagName);
|
10950
|
+
if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
|
10951
|
+
return false;
|
10952
|
+
}
|
10953
|
+
if (element.namespaceURI === SVG_NAMESPACE) {
|
10954
|
+
// The only way to switch from HTML namespace to SVG
|
10955
|
+
// is via <svg>. If it happens via any other tag, then
|
10956
|
+
// it should be killed.
|
10957
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
10958
|
+
return tagName === 'svg';
|
10959
|
+
}
|
10960
|
+
// The only way to switch from MathML to SVG is via`
|
10961
|
+
// svg if parent is either <annotation-xml> or MathML
|
10962
|
+
// text integration points.
|
10963
|
+
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
10964
|
+
return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
10965
|
+
}
|
10966
|
+
// We only allow elements that are defined in SVG
|
10967
|
+
// spec. All others are disallowed in SVG namespace.
|
10968
|
+
return Boolean(ALL_SVG_TAGS[tagName]);
|
10969
|
+
}
|
10970
|
+
if (element.namespaceURI === MATHML_NAMESPACE) {
|
10971
|
+
// The only way to switch from HTML namespace to MathML
|
10972
|
+
// is via <math>. If it happens via any other tag, then
|
10973
|
+
// it should be killed.
|
10974
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
10975
|
+
return tagName === 'math';
|
10976
|
+
}
|
10977
|
+
// The only way to switch from SVG to MathML is via
|
10978
|
+
// <math> and HTML integration points
|
10979
|
+
if (parent.namespaceURI === SVG_NAMESPACE) {
|
10980
|
+
return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
|
10981
|
+
}
|
10982
|
+
// We only allow elements that are defined in MathML
|
10983
|
+
// spec. All others are disallowed in MathML namespace.
|
10984
|
+
return Boolean(ALL_MATHML_TAGS[tagName]);
|
10985
|
+
}
|
10986
|
+
if (element.namespaceURI === HTML_NAMESPACE) {
|
10987
|
+
// The only way to switch from SVG to HTML is via
|
10988
|
+
// HTML integration points, and from MathML to HTML
|
10989
|
+
// is via MathML text integration points
|
10990
|
+
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
10991
|
+
return false;
|
10992
|
+
}
|
10993
|
+
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
10994
|
+
return false;
|
10995
|
+
}
|
10996
|
+
// We disallow tags that are specific for MathML
|
10997
|
+
// or SVG and should never appear in HTML namespace
|
10998
|
+
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
10999
|
+
}
|
11000
|
+
// For XHTML and XML documents that support custom namespaces
|
11001
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
|
11002
|
+
return true;
|
11003
|
+
}
|
11004
|
+
// The code should never reach this place (this means
|
11005
|
+
// that the element somehow got namespace that is not
|
11006
|
+
// HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
|
11007
|
+
// Return false just in case.
|
11008
|
+
return false;
|
11009
|
+
};
|
11010
|
+
/**
|
11011
|
+
* _forceRemove
|
11012
|
+
*
|
11013
|
+
* @param node a DOM node
|
11014
|
+
*/
|
11015
|
+
const _forceRemove = function _forceRemove(node) {
|
11016
|
+
arrayPush(DOMPurify.removed, {
|
11017
|
+
element: node
|
11018
|
+
});
|
11019
|
+
try {
|
11020
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-remove
|
11021
|
+
getParentNode(node).removeChild(node);
|
11022
|
+
} catch (_) {
|
11023
|
+
remove(node);
|
11024
|
+
}
|
11025
|
+
};
|
11026
|
+
/**
|
11027
|
+
* _removeAttribute
|
11028
|
+
*
|
11029
|
+
* @param name an Attribute name
|
11030
|
+
* @param element a DOM node
|
11031
|
+
*/
|
11032
|
+
const _removeAttribute = function _removeAttribute(name, element) {
|
11033
|
+
try {
|
11034
|
+
arrayPush(DOMPurify.removed, {
|
11035
|
+
attribute: element.getAttributeNode(name),
|
11036
|
+
from: element
|
11037
|
+
});
|
11038
|
+
} catch (_) {
|
11039
|
+
arrayPush(DOMPurify.removed, {
|
11040
|
+
attribute: null,
|
11041
|
+
from: element
|
11042
|
+
});
|
11043
|
+
}
|
11044
|
+
element.removeAttribute(name);
|
11045
|
+
// We void attribute values for unremovable "is" attributes
|
11046
|
+
if (name === 'is') {
|
11047
|
+
if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
|
11048
|
+
try {
|
11049
|
+
_forceRemove(element);
|
11050
|
+
} catch (_) {}
|
11051
|
+
} else {
|
11052
|
+
try {
|
11053
|
+
element.setAttribute(name, '');
|
11054
|
+
} catch (_) {}
|
11055
|
+
}
|
11056
|
+
}
|
11057
|
+
};
|
11058
|
+
/**
|
11059
|
+
* _initDocument
|
11060
|
+
*
|
11061
|
+
* @param dirty - a string of dirty markup
|
11062
|
+
* @return a DOM, filled with the dirty markup
|
11063
|
+
*/
|
11064
|
+
const _initDocument = function _initDocument(dirty) {
|
11065
|
+
/* Create a HTML document */
|
11066
|
+
let doc = null;
|
11067
|
+
let leadingWhitespace = null;
|
11068
|
+
if (FORCE_BODY) {
|
11069
|
+
dirty = '<remove></remove>' + dirty;
|
11070
|
+
} else {
|
11071
|
+
/* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
|
11072
|
+
const matches = stringMatch(dirty, /^[\r\n\t ]+/);
|
11073
|
+
leadingWhitespace = matches && matches[0];
|
11074
|
+
}
|
11075
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {
|
11076
|
+
// Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
|
11077
|
+
dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
|
11078
|
+
}
|
11079
|
+
const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
11080
|
+
/*
|
11081
|
+
* Use the DOMParser API by default, fallback later if needs be
|
11082
|
+
* DOMParser not work for svg when has multiple root element.
|
11083
|
+
*/
|
11084
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
11085
|
+
try {
|
11086
|
+
doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
|
11087
|
+
} catch (_) {}
|
11088
|
+
}
|
11089
|
+
/* Use createHTMLDocument in case DOMParser is not available */
|
11090
|
+
if (!doc || !doc.documentElement) {
|
11091
|
+
doc = implementation.createDocument(NAMESPACE, 'template', null);
|
11092
|
+
try {
|
11093
|
+
doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
|
11094
|
+
} catch (_) {
|
11095
|
+
// Syntax error if dirtyPayload is invalid xml
|
11096
|
+
}
|
11097
|
+
}
|
11098
|
+
const body = doc.body || doc.documentElement;
|
11099
|
+
if (dirty && leadingWhitespace) {
|
11100
|
+
body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
|
11101
|
+
}
|
11102
|
+
/* Work on whole document or just its body */
|
11103
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
11104
|
+
return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
|
11105
|
+
}
|
11106
|
+
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
11107
|
+
};
|
11108
|
+
/**
|
11109
|
+
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
11110
|
+
*
|
11111
|
+
* @param root The root element or node to start traversing on.
|
11112
|
+
* @return The created NodeIterator
|
11113
|
+
*/
|
11114
|
+
const _createNodeIterator = function _createNodeIterator(root) {
|
11115
|
+
return createNodeIterator.call(root.ownerDocument || root, root,
|
11116
|
+
// eslint-disable-next-line no-bitwise
|
11117
|
+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
11118
|
+
};
|
11119
|
+
/**
|
11120
|
+
* _isClobbered
|
11121
|
+
*
|
11122
|
+
* @param element element to check for clobbering attacks
|
11123
|
+
* @return true if clobbered, false if safe
|
11124
|
+
*/
|
11125
|
+
const _isClobbered = function _isClobbered(element) {
|
11126
|
+
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');
|
11127
|
+
};
|
11128
|
+
/**
|
11129
|
+
* Checks whether the given object is a DOM node.
|
11130
|
+
*
|
11131
|
+
* @param value object to check whether it's a DOM node
|
11132
|
+
* @return true is object is a DOM node
|
11133
|
+
*/
|
11134
|
+
const _isNode = function _isNode(value) {
|
11135
|
+
return typeof Node === 'function' && value instanceof Node;
|
11136
|
+
};
|
11137
|
+
function _executeHooks(hooks, currentNode, data) {
|
11138
|
+
arrayForEach(hooks, hook => {
|
11139
|
+
hook.call(DOMPurify, currentNode, data, CONFIG);
|
11140
|
+
});
|
11141
|
+
}
|
11142
|
+
/**
|
11143
|
+
* _sanitizeElements
|
11144
|
+
*
|
11145
|
+
* @protect nodeName
|
11146
|
+
* @protect textContent
|
11147
|
+
* @protect removeChild
|
11148
|
+
* @param currentNode to check for permission to exist
|
11149
|
+
* @return true if node was killed, false if left alive
|
11150
|
+
*/
|
11151
|
+
const _sanitizeElements = function _sanitizeElements(currentNode) {
|
11152
|
+
let content = null;
|
11153
|
+
/* Execute a hook if present */
|
11154
|
+
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
11155
|
+
/* Check if element is clobbered or can clobber */
|
11156
|
+
if (_isClobbered(currentNode)) {
|
11157
|
+
_forceRemove(currentNode);
|
11158
|
+
return true;
|
11159
|
+
}
|
11160
|
+
/* Now let's check the element's type and name */
|
11161
|
+
const tagName = transformCaseFunc(currentNode.nodeName);
|
11162
|
+
/* Execute a hook if present */
|
11163
|
+
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
11164
|
+
tagName,
|
11165
|
+
allowedTags: ALLOWED_TAGS
|
11166
|
+
});
|
11167
|
+
/* Detect mXSS attempts abusing namespace confusion */
|
11168
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
11169
|
+
_forceRemove(currentNode);
|
11170
|
+
return true;
|
11171
|
+
}
|
11172
|
+
/* Remove any occurrence of processing instructions */
|
11173
|
+
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
11174
|
+
_forceRemove(currentNode);
|
11175
|
+
return true;
|
11176
|
+
}
|
11177
|
+
/* Remove any kind of possibly harmful comments */
|
11178
|
+
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
|
11179
|
+
_forceRemove(currentNode);
|
11180
|
+
return true;
|
11181
|
+
}
|
11182
|
+
/* Remove element if anything forbids its presence */
|
11183
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
11184
|
+
/* Check if we have a custom element to handle */
|
11185
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
11186
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
11187
|
+
return false;
|
11188
|
+
}
|
11189
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
11190
|
+
return false;
|
11191
|
+
}
|
11192
|
+
}
|
11193
|
+
/* Keep content except for bad-listed elements */
|
11194
|
+
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
11195
|
+
const parentNode = getParentNode(currentNode) || currentNode.parentNode;
|
11196
|
+
const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
|
11197
|
+
if (childNodes && parentNode) {
|
11198
|
+
const childCount = childNodes.length;
|
11199
|
+
for (let i = childCount - 1; i >= 0; --i) {
|
11200
|
+
const childClone = cloneNode(childNodes[i], true);
|
11201
|
+
childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
|
11202
|
+
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
11203
|
+
}
|
11204
|
+
}
|
11205
|
+
}
|
11206
|
+
_forceRemove(currentNode);
|
11207
|
+
return true;
|
11208
|
+
}
|
11209
|
+
/* Check whether element has a valid namespace */
|
11210
|
+
if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
|
11211
|
+
_forceRemove(currentNode);
|
11212
|
+
return true;
|
11213
|
+
}
|
11214
|
+
/* Make sure that older browsers don't get fallback-tag mXSS */
|
11215
|
+
if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
|
11216
|
+
_forceRemove(currentNode);
|
11217
|
+
return true;
|
11218
|
+
}
|
11219
|
+
/* Sanitize element content to be template-safe */
|
11220
|
+
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
|
11221
|
+
/* Get the element's text content */
|
11222
|
+
content = currentNode.textContent;
|
11223
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
11224
|
+
content = stringReplace(content, expr, ' ');
|
11225
|
+
});
|
11226
|
+
if (currentNode.textContent !== content) {
|
11227
|
+
arrayPush(DOMPurify.removed, {
|
11228
|
+
element: currentNode.cloneNode()
|
11229
|
+
});
|
11230
|
+
currentNode.textContent = content;
|
11231
|
+
}
|
11232
|
+
}
|
11233
|
+
/* Execute a hook if present */
|
11234
|
+
_executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
11235
|
+
return false;
|
11236
|
+
};
|
11237
|
+
/**
|
11238
|
+
* _isValidAttribute
|
11239
|
+
*
|
11240
|
+
* @param lcTag Lowercase tag name of containing element.
|
11241
|
+
* @param lcName Lowercase attribute name.
|
11242
|
+
* @param value Attribute value.
|
11243
|
+
* @return Returns true if `value` is valid, otherwise false.
|
11244
|
+
*/
|
11245
|
+
// eslint-disable-next-line complexity
|
11246
|
+
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
11247
|
+
/* Make sure attribute cannot clobber */
|
11248
|
+
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
11249
|
+
return false;
|
11250
|
+
}
|
11251
|
+
/* Allow valid data-* attributes: At least one character after "-"
|
11252
|
+
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
11253
|
+
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
11254
|
+
We don't need to check the value; it's always URI safe. */
|
11255
|
+
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]) {
|
11256
|
+
if (
|
11257
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
11258
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
11259
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
11260
|
+
_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)) ||
|
11261
|
+
// Alternative, second condition checks if it's an `is`-attribute, AND
|
11262
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
11263
|
+
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 {
|
11264
|
+
return false;
|
11265
|
+
}
|
11266
|
+
/* Check value is safe. First, is attr inert? If so, is safe */
|
11267
|
+
} 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) {
|
11268
|
+
return false;
|
11269
|
+
} else ;
|
11270
|
+
return true;
|
11271
|
+
};
|
11272
|
+
/**
|
11273
|
+
* _isBasicCustomElement
|
11274
|
+
* checks if at least one dash is included in tagName, and it's not the first char
|
11275
|
+
* for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
|
11276
|
+
*
|
11277
|
+
* @param tagName name of the tag of the node to sanitize
|
11278
|
+
* @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
11279
|
+
*/
|
11280
|
+
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
11281
|
+
return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);
|
11282
|
+
};
|
11283
|
+
/**
|
11284
|
+
* _sanitizeAttributes
|
11285
|
+
*
|
11286
|
+
* @protect attributes
|
11287
|
+
* @protect nodeName
|
11288
|
+
* @protect removeAttribute
|
11289
|
+
* @protect setAttribute
|
11290
|
+
*
|
11291
|
+
* @param currentNode to sanitize
|
11292
|
+
*/
|
11293
|
+
const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
|
11294
|
+
/* Execute a hook if present */
|
11295
|
+
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
11296
|
+
const {
|
11297
|
+
attributes
|
11298
|
+
} = currentNode;
|
11299
|
+
/* Check if we have attributes; if not we might have a text node */
|
11300
|
+
if (!attributes || _isClobbered(currentNode)) {
|
11301
|
+
return;
|
11302
|
+
}
|
11303
|
+
const hookEvent = {
|
11304
|
+
attrName: '',
|
11305
|
+
attrValue: '',
|
11306
|
+
keepAttr: true,
|
11307
|
+
allowedAttributes: ALLOWED_ATTR,
|
11308
|
+
forceKeepAttr: undefined
|
11309
|
+
};
|
11310
|
+
let l = attributes.length;
|
11311
|
+
/* Go backwards over all attributes; safely remove bad ones */
|
11312
|
+
while (l--) {
|
11313
|
+
const attr = attributes[l];
|
11314
|
+
const {
|
11315
|
+
name,
|
11316
|
+
namespaceURI,
|
11317
|
+
value: attrValue
|
11318
|
+
} = attr;
|
11319
|
+
const lcName = transformCaseFunc(name);
|
11320
|
+
const initValue = attrValue;
|
11321
|
+
let value = name === 'value' ? initValue : stringTrim(initValue);
|
11322
|
+
/* Execute a hook if present */
|
11323
|
+
hookEvent.attrName = lcName;
|
11324
|
+
hookEvent.attrValue = value;
|
11325
|
+
hookEvent.keepAttr = true;
|
11326
|
+
hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
|
11327
|
+
_executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
|
11328
|
+
value = hookEvent.attrValue;
|
11329
|
+
/* Full DOM Clobbering protection via namespace isolation,
|
11330
|
+
* Prefix id and name attributes with `user-content-`
|
11331
|
+
*/
|
11332
|
+
if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {
|
11333
|
+
// Remove the attribute with this value
|
11334
|
+
_removeAttribute(name, currentNode);
|
11335
|
+
// Prefix the value and later re-create the attribute with the sanitized value
|
11336
|
+
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
11337
|
+
}
|
11338
|
+
/* Work around a security issue with comments inside attributes */
|
11339
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
11340
|
+
_removeAttribute(name, currentNode);
|
11341
|
+
continue;
|
11342
|
+
}
|
11343
|
+
/* Did the hooks approve of the attribute? */
|
11344
|
+
if (hookEvent.forceKeepAttr) {
|
11345
|
+
continue;
|
11346
|
+
}
|
11347
|
+
/* Did the hooks approve of the attribute? */
|
11348
|
+
if (!hookEvent.keepAttr) {
|
11349
|
+
_removeAttribute(name, currentNode);
|
11350
|
+
continue;
|
11351
|
+
}
|
11352
|
+
/* Work around a security issue in jQuery 3.0 */
|
11353
|
+
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
11354
|
+
_removeAttribute(name, currentNode);
|
11355
|
+
continue;
|
11356
|
+
}
|
11357
|
+
/* Sanitize attribute content to be template-safe */
|
11358
|
+
if (SAFE_FOR_TEMPLATES) {
|
11359
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
11360
|
+
value = stringReplace(value, expr, ' ');
|
11361
|
+
});
|
11362
|
+
}
|
11363
|
+
/* Is `value` valid for this attribute? */
|
11364
|
+
const lcTag = transformCaseFunc(currentNode.nodeName);
|
11365
|
+
if (!_isValidAttribute(lcTag, lcName, value)) {
|
11366
|
+
_removeAttribute(name, currentNode);
|
11367
|
+
continue;
|
11368
|
+
}
|
11369
|
+
/* Handle attributes that require Trusted Types */
|
11370
|
+
if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {
|
11371
|
+
if (namespaceURI) ; else {
|
11372
|
+
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
11373
|
+
case 'TrustedHTML':
|
11374
|
+
{
|
11375
|
+
value = trustedTypesPolicy.createHTML(value);
|
11376
|
+
break;
|
11377
|
+
}
|
11378
|
+
case 'TrustedScriptURL':
|
11379
|
+
{
|
11380
|
+
value = trustedTypesPolicy.createScriptURL(value);
|
11381
|
+
break;
|
11382
|
+
}
|
11383
|
+
}
|
11384
|
+
}
|
11385
|
+
}
|
11386
|
+
/* Handle invalid data-* attribute set by try-catching it */
|
11387
|
+
if (value !== initValue) {
|
11388
|
+
try {
|
11389
|
+
if (namespaceURI) {
|
11390
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
11391
|
+
} else {
|
11392
|
+
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
11393
|
+
currentNode.setAttribute(name, value);
|
11394
|
+
}
|
11395
|
+
if (_isClobbered(currentNode)) {
|
11396
|
+
_forceRemove(currentNode);
|
11397
|
+
} else {
|
11398
|
+
arrayPop(DOMPurify.removed);
|
11399
|
+
}
|
11400
|
+
} catch (_) {
|
11401
|
+
_removeAttribute(name, currentNode);
|
11402
|
+
}
|
11403
|
+
}
|
11404
|
+
}
|
11405
|
+
/* Execute a hook if present */
|
11406
|
+
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
11407
|
+
};
|
11408
|
+
/**
|
11409
|
+
* _sanitizeShadowDOM
|
11410
|
+
*
|
11411
|
+
* @param fragment to iterate over recursively
|
11412
|
+
*/
|
11413
|
+
const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
|
11414
|
+
let shadowNode = null;
|
11415
|
+
const shadowIterator = _createNodeIterator(fragment);
|
11416
|
+
/* Execute a hook if present */
|
11417
|
+
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
11418
|
+
while (shadowNode = shadowIterator.nextNode()) {
|
11419
|
+
/* Execute a hook if present */
|
11420
|
+
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
11421
|
+
/* Sanitize tags and elements */
|
11422
|
+
_sanitizeElements(shadowNode);
|
11423
|
+
/* Check attributes next */
|
11424
|
+
_sanitizeAttributes(shadowNode);
|
11425
|
+
/* Deep shadow DOM detected */
|
11426
|
+
if (shadowNode.content instanceof DocumentFragment) {
|
11427
|
+
_sanitizeShadowDOM(shadowNode.content);
|
11428
|
+
}
|
11429
|
+
}
|
11430
|
+
/* Execute a hook if present */
|
11431
|
+
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
11432
|
+
};
|
11433
|
+
// eslint-disable-next-line complexity
|
11434
|
+
DOMPurify.sanitize = function (dirty) {
|
11435
|
+
let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
11436
|
+
let body = null;
|
11437
|
+
let importedNode = null;
|
11438
|
+
let currentNode = null;
|
11439
|
+
let returnNode = null;
|
11440
|
+
/* Make sure we have a string to sanitize.
|
11441
|
+
DO NOT return early, as this will return the wrong type if
|
11442
|
+
the user has requested a DOM object rather than a string */
|
11443
|
+
IS_EMPTY_INPUT = !dirty;
|
11444
|
+
if (IS_EMPTY_INPUT) {
|
11445
|
+
dirty = '<!-->';
|
11446
|
+
}
|
11447
|
+
/* Stringify, in case dirty is an object */
|
11448
|
+
if (typeof dirty !== 'string' && !_isNode(dirty)) {
|
11449
|
+
if (typeof dirty.toString === 'function') {
|
11450
|
+
dirty = dirty.toString();
|
11451
|
+
if (typeof dirty !== 'string') {
|
11452
|
+
throw typeErrorCreate('dirty is not a string, aborting');
|
11453
|
+
}
|
11454
|
+
} else {
|
11455
|
+
throw typeErrorCreate('toString is not a function');
|
11456
|
+
}
|
11457
|
+
}
|
11458
|
+
/* Return dirty HTML if DOMPurify cannot run */
|
11459
|
+
if (!DOMPurify.isSupported) {
|
11460
|
+
return dirty;
|
11461
|
+
}
|
11462
|
+
/* Assign config vars */
|
11463
|
+
if (!SET_CONFIG) {
|
11464
|
+
_parseConfig(cfg);
|
11465
|
+
}
|
11466
|
+
/* Clean up removed elements */
|
11467
|
+
DOMPurify.removed = [];
|
11468
|
+
/* Check if dirty is correctly typed for IN_PLACE */
|
11469
|
+
if (typeof dirty === 'string') {
|
11470
|
+
IN_PLACE = false;
|
11471
|
+
}
|
11472
|
+
if (IN_PLACE) {
|
11473
|
+
/* Do some early pre-sanitization to avoid unsafe root nodes */
|
11474
|
+
if (dirty.nodeName) {
|
11475
|
+
const tagName = transformCaseFunc(dirty.nodeName);
|
11476
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
11477
|
+
throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
|
11478
|
+
}
|
11479
|
+
}
|
11480
|
+
} else if (dirty instanceof Node) {
|
11481
|
+
/* If dirty is a DOM element, append to an empty document to avoid
|
11482
|
+
elements being stripped by the parser */
|
11483
|
+
body = _initDocument('<!---->');
|
11484
|
+
importedNode = body.ownerDocument.importNode(dirty, true);
|
11485
|
+
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {
|
11486
|
+
/* Node is already a body, use as is */
|
11487
|
+
body = importedNode;
|
11488
|
+
} else if (importedNode.nodeName === 'HTML') {
|
11489
|
+
body = importedNode;
|
11490
|
+
} else {
|
11491
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
11492
|
+
body.appendChild(importedNode);
|
11493
|
+
}
|
11494
|
+
} else {
|
11495
|
+
/* Exit directly if we have nothing to do */
|
11496
|
+
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
|
11497
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
11498
|
+
dirty.indexOf('<') === -1) {
|
11499
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
11500
|
+
}
|
11501
|
+
/* Initialize the document to work on */
|
11502
|
+
body = _initDocument(dirty);
|
11503
|
+
/* Check we have a DOM node from the data */
|
11504
|
+
if (!body) {
|
11505
|
+
return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
|
11506
|
+
}
|
11507
|
+
}
|
11508
|
+
/* Remove first element node (ours) if FORCE_BODY is set */
|
11509
|
+
if (body && FORCE_BODY) {
|
11510
|
+
_forceRemove(body.firstChild);
|
11511
|
+
}
|
11512
|
+
/* Get node iterator */
|
11513
|
+
const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
|
11514
|
+
/* Now start iterating over the created document */
|
11515
|
+
while (currentNode = nodeIterator.nextNode()) {
|
11516
|
+
/* Sanitize tags and elements */
|
11517
|
+
_sanitizeElements(currentNode);
|
11518
|
+
/* Check attributes next */
|
11519
|
+
_sanitizeAttributes(currentNode);
|
11520
|
+
/* Shadow DOM detected, sanitize it */
|
11521
|
+
if (currentNode.content instanceof DocumentFragment) {
|
11522
|
+
_sanitizeShadowDOM(currentNode.content);
|
11523
|
+
}
|
11524
|
+
}
|
11525
|
+
/* If we sanitized `dirty` in-place, return it. */
|
11526
|
+
if (IN_PLACE) {
|
11527
|
+
return dirty;
|
11528
|
+
}
|
11529
|
+
/* Return sanitized string or DOM */
|
11530
|
+
if (RETURN_DOM) {
|
11531
|
+
if (RETURN_DOM_FRAGMENT) {
|
11532
|
+
returnNode = createDocumentFragment.call(body.ownerDocument);
|
11533
|
+
while (body.firstChild) {
|
11534
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
11535
|
+
returnNode.appendChild(body.firstChild);
|
11536
|
+
}
|
11537
|
+
} else {
|
11538
|
+
returnNode = body;
|
11539
|
+
}
|
11540
|
+
if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
|
11541
|
+
/*
|
11542
|
+
AdoptNode() is not used because internal state is not reset
|
11543
|
+
(e.g. the past names map of a HTMLFormElement), this is safe
|
11544
|
+
in theory but we would rather not risk another attack vector.
|
11545
|
+
The state that is cloned by importNode() is explicitly defined
|
11546
|
+
by the specs.
|
11547
|
+
*/
|
11548
|
+
returnNode = importNode.call(originalDocument, returnNode, true);
|
11549
|
+
}
|
11550
|
+
return returnNode;
|
11551
|
+
}
|
11552
|
+
let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
|
11553
|
+
/* Serialize doctype if allowed */
|
11554
|
+
if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
|
11555
|
+
serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
|
11556
|
+
}
|
11557
|
+
/* Sanitize final string template-safe */
|
11558
|
+
if (SAFE_FOR_TEMPLATES) {
|
11559
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
11560
|
+
serializedHTML = stringReplace(serializedHTML, expr, ' ');
|
11561
|
+
});
|
11562
|
+
}
|
11563
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
|
11564
|
+
};
|
11565
|
+
DOMPurify.setConfig = function () {
|
11566
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
11567
|
+
_parseConfig(cfg);
|
11568
|
+
SET_CONFIG = true;
|
11569
|
+
};
|
11570
|
+
DOMPurify.clearConfig = function () {
|
11571
|
+
CONFIG = null;
|
11572
|
+
SET_CONFIG = false;
|
11573
|
+
};
|
11574
|
+
DOMPurify.isValidAttribute = function (tag, attr, value) {
|
11575
|
+
/* Initialize shared config vars if necessary. */
|
11576
|
+
if (!CONFIG) {
|
11577
|
+
_parseConfig({});
|
11578
|
+
}
|
11579
|
+
const lcTag = transformCaseFunc(tag);
|
11580
|
+
const lcName = transformCaseFunc(attr);
|
11581
|
+
return _isValidAttribute(lcTag, lcName, value);
|
11582
|
+
};
|
11583
|
+
DOMPurify.addHook = function (entryPoint, hookFunction) {
|
11584
|
+
if (typeof hookFunction !== 'function') {
|
11585
|
+
return;
|
11586
|
+
}
|
11587
|
+
arrayPush(hooks[entryPoint], hookFunction);
|
11588
|
+
};
|
11589
|
+
DOMPurify.removeHook = function (entryPoint, hookFunction) {
|
11590
|
+
if (hookFunction !== undefined) {
|
11591
|
+
const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
|
11592
|
+
return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0];
|
11593
|
+
}
|
11594
|
+
return arrayPop(hooks[entryPoint]);
|
11595
|
+
};
|
11596
|
+
DOMPurify.removeHooks = function (entryPoint) {
|
11597
|
+
hooks[entryPoint] = [];
|
11598
|
+
};
|
11599
|
+
DOMPurify.removeAllHooks = function () {
|
11600
|
+
hooks = _createHooksMap();
|
11601
|
+
};
|
11602
|
+
return DOMPurify;
|
11603
|
+
}
|
11604
|
+
var purify = createDOMPurify();
|
11605
|
+
|
11606
|
+
return purify;
|
11607
|
+
|
11608
|
+
}));
|
11609
|
+
|
11610
|
+
}(purify));
|
11611
|
+
|
11612
|
+
var purifier = purify.exports;
|
11613
|
+
|
11614
|
+
/* istanbul ignore next */
|
11615
|
+
const getCustomElementHandling = (allowICPrefix) => ({
|
11616
|
+
CUSTOM_ELEMENT_HANDLING: {
|
11617
|
+
tagNameCheck: (tagName) => (allowICPrefix && tagName.startsWith("ic-")) ||
|
11618
|
+
IC_CUSTOM_ALLOWED_COMPONENTS.includes(tagName),
|
11619
|
+
attributeNameCheck: /.*/,
|
11620
|
+
},
|
11621
|
+
});
|
11622
|
+
const sanitizeHTMLString = (html) => {
|
11623
|
+
return purifier.sanitize(html, getCustomElementHandling(true));
|
11624
|
+
};
|
11625
|
+
const sanitizeHTMLIconString = (html) => {
|
11626
|
+
return purifier.sanitize(html, getCustomElementHandling(false));
|
11627
|
+
};
|
11628
|
+
|
10218
11629
|
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}}";
|
10219
11630
|
var IcMenuStyle0 = icMenuCss;
|
10220
11631
|
|
@@ -10644,7 +12055,7 @@ class Menu {
|
|
10644
12055
|
const { value, label } = event.target.dataset;
|
10645
12056
|
if (this.multiSelect) {
|
10646
12057
|
const menuOptions = this.getMenuOptions();
|
10647
|
-
const selectedOptionIndex = menuOptions.findIndex((option) => option.
|
12058
|
+
const selectedOptionIndex = menuOptions.findIndex((option) => option[this.valueField] === value);
|
10648
12059
|
this.handleOptionSelect(event, selectedOptionIndex, true);
|
10649
12060
|
this.multiOptionClicked = value || null;
|
10650
12061
|
}
|
@@ -10949,11 +12360,14 @@ class Menu {
|
|
10949
12360
|
return (hAsync(Fragment, null, option.loading && hAsync("ic-loading-indicator", { size: "icon" }), hAsync("div", { class: {
|
10950
12361
|
"option-text-container": true,
|
10951
12362
|
"show-check-icon": showCheckIcon,
|
10952
|
-
} }, 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:
|
12363
|
+
} }, (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: {
|
12364
|
+
"option-element": option.icon || !option.hideLabel || option.description,
|
12365
|
+
}, innerHTML: sanitizeHTMLString(option.element.component), "aria-hidden": "true" }))), showCheckIcon && hAsync("span", { class: "check-icon", innerHTML: checkIcon })));
|
10953
12366
|
};
|
10954
12367
|
this.displayOption = (option, selected, index, parentOption) => {
|
12368
|
+
var _a;
|
10955
12369
|
const { open, keyboardNav, isManualMode, initialOptionsListRender, optionHighlighted, options, } = this;
|
10956
|
-
return (hAsync("li", { id: this.getOptionId(option[this.valueField]), class: {
|
12370
|
+
return (hAsync("li", Object.assign({ id: this.getOptionId(option[this.valueField]), class: {
|
10957
12371
|
option: true,
|
10958
12372
|
"focused-option": isManualMode
|
10959
12373
|
? (keyboardNav || initialOptionsListRender) &&
|
@@ -10971,7 +12385,7 @@ class Menu {
|
|
10971
12385
|
? "0"
|
10972
12386
|
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": selected ? "true" : "false", "aria-disabled": option.disabled ? "true" : "false", onClick: !option.timedOut && !option.loading
|
10973
12387
|
? this.handleOptionClick
|
10974
|
-
: 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))));
|
12388
|
+
: 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))));
|
10975
12389
|
};
|
10976
12390
|
}
|
10977
12391
|
watchOpenHandler() {
|
@@ -11138,7 +12552,7 @@ class Menu {
|
|
11138
12552
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
11139
12553
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
11140
12554
|
const hasNoResults = this.host.classList.contains("no-results");
|
11141
|
-
return (hAsync(Host, { key: '
|
12555
|
+
return (hAsync(Host, { key: '3e49d54ba714dfa55e9695bd24fa5d2b87077232', class: {
|
11142
12556
|
"ic-menu-full-width": !!fullWidth,
|
11143
12557
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
11144
12558
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
@@ -11147,7 +12561,7 @@ class Menu {
|
|
11147
12561
|
[`ic-menu-${size}`]: true,
|
11148
12562
|
"ic-menu-open": open && options.length !== 0,
|
11149
12563
|
"ic-menu-multiple": multiSelect,
|
11150
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
12564
|
+
} }, 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 &&
|
11151
12565
|
!keyboardNav &&
|
11152
12566
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
11153
12567
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
@@ -11155,7 +12569,7 @@ class Menu {
|
|
11155
12569
|
: "-1", ref: (el) => (this.menu = el), onKeyDown: this.handleMenuKeyDown, onKeyUp: this.handleMenuKeyUp, onBlur: this.handleBlur }, this.getSortedOptions(options).map((option, index) => {
|
11156
12570
|
if (option.children) {
|
11157
12571
|
if (option.children.length > 0) {
|
11158
|
-
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.
|
12572
|
+
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] &&
|
11159
12573
|
this.displayOption(childOption, multiSelect
|
11160
12574
|
? value === null || value === void 0 ? void 0 : value.includes(childOption[this.valueField])
|
11161
12575
|
: childOption[this.valueField] === value, index, option))));
|
@@ -11166,7 +12580,7 @@ class Menu {
|
|
11166
12580
|
}
|
11167
12581
|
else {
|
11168
12582
|
// Display option only if it has a label (rather than displaying an empty space)
|
11169
|
-
return (option.
|
12583
|
+
return (option[this.labelField] &&
|
11170
12584
|
this.displayOption(option, multiSelect
|
11171
12585
|
? value === null || value === void 0 ? void 0 : value.includes(option[this.valueField])
|
11172
12586
|
: option[this.valueField] === value, index));
|
@@ -11175,7 +12589,7 @@ class Menu {
|
|
11175
12589
|
multiSelect &&
|
11176
12590
|
!isLoading &&
|
11177
12591
|
!hasTimedOut &&
|
11178
|
-
!hasNoResults && (hAsync("div", { key: '
|
12592
|
+
!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)))));
|
11179
12593
|
}
|
11180
12594
|
get host() { return getElement(this); }
|
11181
12595
|
static get watchers() { return {
|
@@ -11819,7 +13233,7 @@ class NavigationGroup {
|
|
11819
13233
|
}; }
|
11820
13234
|
}
|
11821
13235
|
|
11822
|
-
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}}";
|
13236
|
+
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}}";
|
11823
13237
|
var IcNavigationItemStyle0 = icNavigationItemCss;
|
11824
13238
|
|
11825
13239
|
/**
|
@@ -12234,7 +13648,7 @@ class NavigationMenu {
|
|
12234
13648
|
}; }
|
12235
13649
|
}
|
12236
13650
|
|
12237
|
-
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)}}";
|
13651
|
+
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)}}";
|
12238
13652
|
var IcPageHeaderStyle0 = icPageHeaderCss;
|
12239
13653
|
|
12240
13654
|
/**
|
@@ -13093,7 +14507,7 @@ class PopoverMenu {
|
|
13093
14507
|
}; }
|
13094
14508
|
}
|
13095
14509
|
|
13096
|
-
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)}";
|
14510
|
+
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)}";
|
13097
14511
|
var IcRadioGroupStyle0 = icRadioGroupCss;
|
13098
14512
|
|
13099
14513
|
/**
|
@@ -13129,6 +14543,10 @@ class RadioGroup {
|
|
13129
14543
|
* The size of the radio group component.
|
13130
14544
|
*/
|
13131
14545
|
this.size = "medium";
|
14546
|
+
/**
|
14547
|
+
* The value of the `aria-live` attribute on the validation message.
|
14548
|
+
*/
|
14549
|
+
this.validationAriaLive = "polite";
|
13132
14550
|
/**
|
13133
14551
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
13134
14552
|
*/
|
@@ -13322,17 +14740,20 @@ class RadioGroup {
|
|
13322
14740
|
}
|
13323
14741
|
}
|
13324
14742
|
render() {
|
13325
|
-
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationStatus, validationText, theme, } = this;
|
13326
|
-
|
14743
|
+
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationAriaLive, validationStatus, validationText, theme, } = this;
|
14744
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
14745
|
+
return (hAsync(Host, { key: '4ea2e0ca7614fb4ce6563ea146f86d72707a399a', onKeyDown: handleKeyDown, class: {
|
13327
14746
|
"ic-radio-group-small": size === "small",
|
13328
14747
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
13329
|
-
} }, hAsync("fieldset", { key: '
|
14748
|
+
} }, hAsync("fieldset", { key: 'ebad7a878454455a15892bf53c43bdcb914b77c4', role: "radiogroup", id: this.name, "aria-required": `${required}` }, !hideLabel && (hAsync("legend", { key: 'aac1f37c7b1d4d5bc621bd3030dc9eef60417659' }, hAsync("ic-input-label", { key: 'fd04e3f74c89b633996eb22e60902e988a8ac8ef', class: {
|
13330
14749
|
[`${validationStatus}`]: true,
|
13331
14750
|
["disabled"]: !!disabled,
|
13332
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '
|
14751
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '66325d58018dff189c975e3e4fc01249b51b6b9f', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '6d2d332396c87b798d5d160bdb5977c0a8ad6751', class: {
|
13333
14752
|
"radio-buttons-container": true,
|
13334
14753
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
13335
|
-
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: '
|
14754
|
+
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: 'fb0a1b41503ba88ce9bda3c0bc8236ae0a7e3795' }))), hAsync("ic-input-validation", { key: 'f9f7c2bdffd83d705149f74fe2caad93e57dd85b', class: {
|
14755
|
+
"show-validation": showValidation,
|
14756
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
13336
14757
|
}
|
13337
14758
|
get el() { return getElement(this); }
|
13338
14759
|
static get watchers() { return {
|
@@ -13353,6 +14774,7 @@ class RadioGroup {
|
|
13353
14774
|
"orientation": [1],
|
13354
14775
|
"required": [4],
|
13355
14776
|
"size": [1],
|
14777
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
13356
14778
|
"validationStatus": [1, "validation-status"],
|
13357
14779
|
"validationText": [1, "validation-text"],
|
13358
14780
|
"theme": [1],
|
@@ -13367,7 +14789,7 @@ class RadioGroup {
|
|
13367
14789
|
}; }
|
13368
14790
|
}
|
13369
14791
|
|
13370
|
-
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-
|
14792
|
+
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}";
|
13371
14793
|
var IcRadioOptionStyle0 = icRadioOptionCss;
|
13372
14794
|
|
13373
14795
|
const ADDITIONAL_FIELD = "additional-field";
|
@@ -14372,6 +15794,10 @@ class Select {
|
|
14372
15794
|
* 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.
|
14373
15795
|
*/
|
14374
15796
|
this.theme = "inherit";
|
15797
|
+
/**
|
15798
|
+
* The value of the `aria-live` attribute on the validation message.
|
15799
|
+
*/
|
15800
|
+
this.validationAriaLive = "polite";
|
14375
15801
|
/**
|
14376
15802
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
14377
15803
|
*/
|
@@ -15026,12 +16452,13 @@ class Select {
|
|
15026
16452
|
}
|
15027
16453
|
render() {
|
15028
16454
|
var _a;
|
15029
|
-
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;
|
16455
|
+
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;
|
15030
16456
|
// HTML inputs only accept 'string' for their value
|
15031
16457
|
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
15032
16458
|
renderHiddenInput(this.el, searchable ? hiddenInputValue : currValue, name || inputId, disabled);
|
15033
16459
|
const invalid = `${validationStatus === IcInformationStatus.Error}`;
|
15034
|
-
const
|
16460
|
+
const showValidation = hasValidationStatus(validationStatus, !!disabled);
|
16461
|
+
const describedBy = getInputDescribedByText(this.el, inputId, helperText !== "", showValidation).trim();
|
15035
16462
|
const valueLabelString = multiple
|
15036
16463
|
? this.getMultipleOptionsString(currValue)
|
15037
16464
|
: this.getLabelFromValue(currValue);
|
@@ -15039,18 +16466,18 @@ class Select {
|
|
15039
16466
|
(searchable
|
15040
16467
|
? !!searchableSelectInputValue
|
15041
16468
|
: !!currValue && !loading && showClearButton);
|
15042
|
-
return (hAsync(Host, { key: '
|
16469
|
+
return (hAsync(Host, { key: 'd4771b458b86fdf5e8fd7242b0faa34c641dc1fd', class: {
|
15043
16470
|
"ic-select-disabled": disabled,
|
15044
16471
|
"ic-select-searchable": searchable,
|
15045
16472
|
[`ic-select-${size}`]: size !== "medium",
|
15046
16473
|
"ic-select-full-width": fullWidth,
|
15047
16474
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
15048
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
16475
|
+
}, 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(this.el, "icon") &&
|
15049
16476
|
!disabled &&
|
15050
|
-
(!readonly || !!value) && (hAsync("span", { key: '
|
16477
|
+
(!readonly || !!value) && (hAsync("span", { key: '208359e9a4b4c92823fa924ce0e7b0e5419c0cef', slot: "left-icon", class: {
|
15051
16478
|
readonly,
|
15052
16479
|
"has-value": !!value,
|
15053
|
-
} }, hAsync("slot", { key: '
|
16480
|
+
} }, 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: {
|
15054
16481
|
"value-text": true,
|
15055
16482
|
"select-input": true,
|
15056
16483
|
"with-clear-button": !!searchableSelectInputValue,
|
@@ -15071,13 +16498,15 @@ class Select {
|
|
15071
16498
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
15072
16499
|
"expand-icon": true,
|
15073
16500
|
"expand-icon-open": open,
|
15074
|
-
}, 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: '
|
16501
|
+
}, 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: {
|
15075
16502
|
"no-results": loading ||
|
15076
16503
|
hasTimedOut ||
|
15077
16504
|
((_a = noOptions === null || noOptions === void 0 ? void 0 : noOptions[0]) === null || _a === void 0 ? void 0 : _a.label) === emptyOptionListText,
|
15078
16505
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
15079
16506
|
? this.searchableSelectElement
|
15080
|
-
: 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: '
|
16507
|
+
: 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: {
|
16508
|
+
"menu-open": open,
|
16509
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
|
15081
16510
|
}
|
15082
16511
|
static get delegatesFocus() { return true; }
|
15083
16512
|
get el() { return getElement(this); }
|
@@ -15118,6 +16547,7 @@ class Select {
|
|
15118
16547
|
"size": [1],
|
15119
16548
|
"timeout": [2],
|
15120
16549
|
"theme": [1],
|
16550
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
15121
16551
|
"validationStatus": [1, "validation-status"],
|
15122
16552
|
"validationText": [1, "validation-text"],
|
15123
16553
|
"loading": [1028],
|
@@ -15774,7 +17204,7 @@ class SkipLink {
|
|
15774
17204
|
}; }
|
15775
17205
|
}
|
15776
17206
|
|
15777
|
-
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){
|
17207
|
+
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}}";
|
15778
17208
|
var IcStatusTagStyle0 = icStatusTagCss;
|
15779
17209
|
|
15780
17210
|
class StatusTag {
|
@@ -15851,6 +17281,20 @@ class Step {
|
|
15851
17281
|
* @internal If `true`, and a compact stepper is being used, the current step will be the only step in view.
|
15852
17282
|
*/
|
15853
17283
|
this.current = false;
|
17284
|
+
/**
|
17285
|
+
* Words within the component that can be replaced to translate the component into a different language
|
17286
|
+
*/
|
17287
|
+
this.icI18n = {
|
17288
|
+
next: "Next",
|
17289
|
+
step: "Step",
|
17290
|
+
steps: "Steps",
|
17291
|
+
of: "of",
|
17292
|
+
lastStep: "Last step",
|
17293
|
+
completed: "Completed",
|
17294
|
+
notRequired: "Not required",
|
17295
|
+
required: "Required",
|
17296
|
+
optional: "Optional",
|
17297
|
+
};
|
15854
17298
|
/**
|
15855
17299
|
* @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.
|
15856
17300
|
*/
|
@@ -15870,96 +17314,95 @@ class Step {
|
|
15870
17314
|
}
|
15871
17315
|
render() {
|
15872
17316
|
var _a, _b;
|
17317
|
+
const { compactStepStyling, current, heading, icI18n, lastStep, lastStepNum, nextStepHeading, progress, status, stepNum, subheading, theme, type, variant, } = this;
|
15873
17318
|
// ARIA LABEL
|
15874
17319
|
let ariaLabel = "";
|
15875
|
-
if (
|
15876
|
-
ariaLabel =
|
17320
|
+
if (type === "completed") {
|
17321
|
+
ariaLabel = `. ${icI18n.completed}`;
|
15877
17322
|
}
|
15878
|
-
else if (
|
15879
|
-
ariaLabel =
|
17323
|
+
else if (type === "disabled") {
|
17324
|
+
ariaLabel = `. ${icI18n.notRequired}`;
|
15880
17325
|
}
|
15881
|
-
else if (
|
15882
|
-
ariaLabel =
|
17326
|
+
else if (status === "required") {
|
17327
|
+
ariaLabel = `. ${icI18n.required}`;
|
15883
17328
|
}
|
15884
|
-
else if (
|
15885
|
-
ariaLabel =
|
17329
|
+
else if (status === "optional") {
|
17330
|
+
ariaLabel = `. ${icI18n.optional}`;
|
15886
17331
|
}
|
15887
17332
|
// STEP STATUS
|
15888
17333
|
let stepStatus;
|
15889
|
-
if (
|
15890
|
-
stepStatus =
|
17334
|
+
if (status && isPropDefined(status)) {
|
17335
|
+
stepStatus = status[0].toUpperCase() + status.slice(1);
|
15891
17336
|
}
|
15892
17337
|
// STEP TYPE
|
15893
17338
|
let stepType;
|
15894
|
-
if (
|
15895
|
-
stepType =
|
17339
|
+
if (type === "disabled" || compactStepStyling === "disabled") {
|
17340
|
+
stepType = icI18n.notRequired;
|
15896
17341
|
}
|
15897
|
-
else if (
|
15898
|
-
stepType =
|
17342
|
+
else if (compactStepStyling === "completed") {
|
17343
|
+
stepType = icI18n.completed;
|
15899
17344
|
}
|
15900
17345
|
// STATUS ICON FOR COMPACT STEP
|
15901
17346
|
let statusIcon;
|
15902
|
-
if (
|
15903
|
-
statusIcon = (hAsync("span", { key: '
|
17347
|
+
if (type === "completed" || compactStepStyling === "completed") {
|
17348
|
+
statusIcon = (hAsync("span", { key: 'c1e124ab66fda2ad2fe60769de15e35e34519951', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
15904
17349
|
}
|
15905
|
-
else if (
|
15906
|
-
|
15907
|
-
statusIcon = (hAsync("span", { key: '6f4911859d103732d5f2133a26dc4e05cd6a3d22', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
17350
|
+
else if (type === "disabled" || compactStepStyling === "disabled") {
|
17351
|
+
statusIcon = (hAsync("span", { key: 'e4a11bda9361099c4a082a17ea365c5f87c72ee9', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
15908
17352
|
}
|
15909
17353
|
// COMPACT STEP COMPONENT
|
15910
|
-
const compactStep = (hAsync("div", { key: '
|
17354
|
+
const compactStep = (hAsync("div", { key: 'f4ce620bf342de1d168cd8988e110b399d16e8a5', class: {
|
15911
17355
|
["step"]: true,
|
15912
|
-
["current"]: !!
|
15913
|
-
[`compact-step-${
|
15914
|
-
["disabled"]:
|
15915
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
17356
|
+
["current"]: !!current,
|
17357
|
+
[`compact-step-${compactStepStyling}`]: !!compactStepStyling,
|
17358
|
+
["disabled"]: type === "disabled" || compactStepStyling === "disabled",
|
17359
|
+
} }, hAsync("ic-loading-indicator", { key: '69fe4783331f0d2c8537e46bb4065ee946e15922', class: {
|
15916
17360
|
"compact-step-progress-indicator": true,
|
15917
|
-
"not-required":
|
15918
|
-
|
15919
|
-
|
15920
|
-
|
15921
|
-
this.type === "disabled" ||
|
17361
|
+
"not-required": type === "disabled" || compactStepStyling === "disabled",
|
17362
|
+
}, "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 ||
|
17363
|
+
type === "completed" ||
|
17364
|
+
type === "disabled" ||
|
15922
17365
|
(this.variant === "compact" &&
|
15923
|
-
!!
|
15924
|
-
|
15925
|
-
!!
|
15926
|
-
?
|
15927
|
-
:
|
15928
|
-
(
|
15929
|
-
|
15930
|
-
|
15931
|
-
(
|
15932
|
-
|
17366
|
+
!!compactStepStyling &&
|
17367
|
+
compactStepStyling !== "active") ||
|
17368
|
+
!!status) && (hAsync("div", { key: 'ee4276dfd163853a6b82563e89e123b75c224613', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (hAsync("ic-typography", { key: '3a165f76bb8cf653705a0e86e931616fc75030b1', variant: "caption" }, subheading !== null && isPropDefined(subheading)
|
17369
|
+
? subheading
|
17370
|
+
: type === "disabled" ||
|
17371
|
+
(variant === "compact" &&
|
17372
|
+
compactStepStyling === "disabled") ||
|
17373
|
+
type === "completed" ||
|
17374
|
+
(variant === "compact" &&
|
17375
|
+
compactStepStyling === "completed")
|
15933
17376
|
? stepType
|
15934
|
-
:
|
17377
|
+
: status && stepStatus))))), lastStep ? (hAsync("ic-typography", { variant: "subtitle-small", class: "next-step" }, icI18n.lastStep)) : (isPropDefined(nextStepHeading) && (hAsync("ic-typography", { variant: "subtitle-small", class: "next-step" }, icI18n.next, hAsync("span", { class: "visually-hidden" }, " ", icI18n.step), ":", " ", this.nextStepHeading))))));
|
15935
17378
|
// ICON FOR DEFAULT STEP
|
15936
17379
|
let icon;
|
15937
|
-
if (
|
15938
|
-
icon = (hAsync("ic-typography", { key: '
|
17380
|
+
if (type !== "completed") {
|
17381
|
+
icon = (hAsync("ic-typography", { key: '4ada11af3f862b66af7ca387ca5e2ed0c7bd1456', variant: "subtitle-small" }, hAsync("span", { key: 'f7acc54618d69f93bdfc8d9c9322e23d58749a51', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
15939
17382
|
}
|
15940
17383
|
else {
|
15941
|
-
icon = (hAsync("div", { key: '
|
17384
|
+
icon = (hAsync("div", { key: '5efba193e768116f7bf92a0369d61fdd7e8b04ff', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: '390a1f3f6daffa5e2e82293b81680a3eb9f1bb35', class: "check-icon", innerHTML: checkIcon })));
|
15942
17385
|
}
|
15943
17386
|
// STEP CONNECT FOR DEFAULT STEP
|
15944
|
-
const partialBar =
|
15945
|
-
const finalStep = !
|
17387
|
+
const partialBar = type === "current" && (hAsync("div", { key: 'd4255228e9626afbce26b5b65bb3b1329795cc84', class: "step-connect-inner" }));
|
17388
|
+
const finalStep = !lastStep && (hAsync("div", { key: '72093cf835767969a9f56a45e7952e42d2b21d46', class: {
|
15946
17389
|
["step-connect"]: true,
|
15947
17390
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
15948
17391
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
15949
17392
|
} }, partialBar));
|
15950
17393
|
// DEFAULT STEP COMPONENT
|
15951
|
-
const defaultStep = (hAsync("div", { key: '
|
17394
|
+
const defaultStep = (hAsync("div", { key: '7ee74bb84e4678e20ee4eb5daa26f9252d795f83', class: {
|
15952
17395
|
["step"]: true,
|
15953
|
-
[`${
|
15954
|
-
} }, hAsync("div", { key: '
|
15955
|
-
?
|
17396
|
+
[`${type}`]: true,
|
17397
|
+
} }, 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(subheading)
|
17398
|
+
? subheading
|
15956
17399
|
: stepStatus))))));
|
15957
|
-
return (hAsync(Host, { key: '
|
17400
|
+
return (hAsync(Host, { key: 'e1d36358b31ec0f91ca0c9874a661ce10bd38d2c', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
|
15958
17401
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
15959
17402
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
15960
|
-
[`ic-step-${
|
15961
|
-
[`ic-theme-${
|
15962
|
-
} },
|
17403
|
+
[`ic-step-${variant}`]: true,
|
17404
|
+
[`ic-theme-${theme}`]: this.theme !== "inherit",
|
17405
|
+
} }, variant === "compact" ? compactStep : defaultStep));
|
15963
17406
|
}
|
15964
17407
|
get el() { return getElement(this); }
|
15965
17408
|
static get watchers() { return {
|
@@ -15972,6 +17415,7 @@ class Step {
|
|
15972
17415
|
"$members$": {
|
15973
17416
|
"compactStepStyling": [1, "compact-step-styling"],
|
15974
17417
|
"current": [1028],
|
17418
|
+
"icI18n": [16],
|
15975
17419
|
"lastStep": [4, "last-step"],
|
15976
17420
|
"lastStepNum": [2, "last-step-num"],
|
15977
17421
|
"nextStepHeading": [1, "next-step-heading"],
|
@@ -16019,6 +17463,20 @@ class Stepper {
|
|
16019
17463
|
* 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.
|
16020
17464
|
*/
|
16021
17465
|
this.hideStepInfo = false;
|
17466
|
+
/**
|
17467
|
+
* Provide alternative values for text in all child steps. For the purpose of translating the application into other languages.
|
17468
|
+
*/
|
17469
|
+
this.icI18n = {
|
17470
|
+
next: "Next",
|
17471
|
+
step: "Step",
|
17472
|
+
steps: "Steps",
|
17473
|
+
of: "of",
|
17474
|
+
lastStep: "Last step",
|
17475
|
+
completed: "Completed",
|
17476
|
+
notRequired: "Not required",
|
17477
|
+
required: "Required",
|
17478
|
+
optional: "Optional",
|
17479
|
+
};
|
16022
17480
|
/**
|
16023
17481
|
* 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.
|
16024
17482
|
*/
|
@@ -16064,6 +17522,10 @@ class Stepper {
|
|
16064
17522
|
this.initialiseStepStates = () => {
|
16065
17523
|
this.steps.forEach((step, index) => {
|
16066
17524
|
var _a, _b, _c;
|
17525
|
+
// Set language
|
17526
|
+
if (this.icI18n !== undefined) {
|
17527
|
+
step.icI18n = this.icI18n;
|
17528
|
+
}
|
16067
17529
|
// Set variant
|
16068
17530
|
step.variant = this.variant;
|
16069
17531
|
// Assign stepNum to each step
|
@@ -16235,11 +17697,11 @@ class Stepper {
|
|
16235
17697
|
checkResizeObserver(this.runResizeObserver);
|
16236
17698
|
}
|
16237
17699
|
render() {
|
16238
|
-
return (hAsync(Host, { key: '
|
17700
|
+
return (hAsync(Host, { key: '9d9ca9d145f10826c095669a86a99b532bee274d', class: {
|
16239
17701
|
[`ic-stepper-${this.variant}`]: true,
|
16240
17702
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
16241
17703
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
16242
|
-
} }, hAsync("ul", { key: '
|
17704
|
+
} }, hAsync("ul", { key: '7cc19512929ba09b0e13b50f400c5b84967678d3', class: "step-item-list" }, hAsync("slot", { key: '35312de95aa58d5555e19911db1d030d31b74cb4' }))));
|
16243
17705
|
}
|
16244
17706
|
get el() { return getElement(this); }
|
16245
17707
|
static get watchers() { return {
|
@@ -16255,6 +17717,7 @@ class Stepper {
|
|
16255
17717
|
"aligned": [1],
|
16256
17718
|
"connectorWidth": [2, "connector-width"],
|
16257
17719
|
"hideStepInfo": [4, "hide-step-info"],
|
17720
|
+
"icI18n": [16],
|
16258
17721
|
"theme": [1],
|
16259
17722
|
"variant": [1025],
|
16260
17723
|
"alignedFullWidth": [32],
|
@@ -16882,7 +18345,7 @@ class TabPanel {
|
|
16882
18345
|
}; }
|
16883
18346
|
}
|
16884
18347
|
|
16885
|
-
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}.
|
18348
|
+
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}}";
|
16886
18349
|
var IcTextFieldStyle0 = icTextFieldCss;
|
16887
18350
|
|
16888
18351
|
let inputIds = 0;
|
@@ -16910,10 +18373,6 @@ class TextField {
|
|
16910
18373
|
this.maxValueExceeded = false;
|
16911
18374
|
this.minValueUnattained = false;
|
16912
18375
|
this.isFocussed = false;
|
16913
|
-
/**
|
16914
|
-
* 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"`.
|
16915
|
-
*/
|
16916
|
-
this.validationAriaLive = "default";
|
16917
18376
|
/**
|
16918
18377
|
* The automatic capitalisation of the text value as it is entered/edited by the user.
|
16919
18378
|
* Available options: "off", "none", "on", "sentences", "words", "characters".
|
@@ -17036,6 +18495,10 @@ class TextField {
|
|
17036
18495
|
* The type of control to display. The default type is text.
|
17037
18496
|
*/
|
17038
18497
|
this.type = "text";
|
18498
|
+
/**
|
18499
|
+
* 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"`.
|
18500
|
+
*/
|
18501
|
+
this.validationAriaLive = "default";
|
17039
18502
|
/**
|
17040
18503
|
* If `true`, the icon in input control will be displayed - only applies when validationStatus ='success'.
|
17041
18504
|
*/
|
@@ -17282,12 +18745,12 @@ class TextField {
|
|
17282
18745
|
"no-resize": resize === false || !!readonly,
|
17283
18746
|
"no-left-pad": !showLeftIcon && !!readonly,
|
17284
18747
|
readonly: !!readonly,
|
17285
|
-
}, 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(el, "clear-button") && (hAsync("slot", { key: 'e02f69a6fd4c654b7f3b5f1593f7a29c7412d10f', name: "clear-button" })), isSlotUsed(el, "search-submit-button") && (hAsync("slot", { key: '2e32b1afd58a382a804a356537489efa523009ce', name: "search-submit-button" }))), isSlotUsed(el, "menu") && hAsync("slot", { key: '1cbac8ded359309907e51f16033b03d266eb8828', name: "menu" }), hAsync("ic-input-validation", { key: '
|
18748
|
+
}, 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(el, "clear-button") && (hAsync("slot", { key: 'e02f69a6fd4c654b7f3b5f1593f7a29c7412d10f', name: "clear-button" })), isSlotUsed(el, "search-submit-button") && (hAsync("slot", { key: '2e32b1afd58a382a804a356537489efa523009ce', name: "search-submit-button" }))), isSlotUsed(el, "menu") && hAsync("slot", { key: '1cbac8ded359309907e51f16033b03d266eb8828', name: "menu" }), hAsync("ic-input-validation", { key: '55a5e1762111cb2715679f6263719924b098acd4', class: { "show-validation": this.showValidationMargin() }, status: this.hasStatus(currentStatus) === false ||
|
17286
18749
|
(currentStatus === IcInformationStatus.Success &&
|
17287
18750
|
validationInline) ||
|
17288
18751
|
validationInlineInternal
|
17289
18752
|
? ""
|
17290
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '
|
18753
|
+
: 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.")))))));
|
17291
18754
|
}
|
17292
18755
|
get el() { return getElement(this); }
|
17293
18756
|
static get watchers() { return {
|
@@ -17304,7 +18767,6 @@ class TextField {
|
|
17304
18767
|
"ariaAutocomplete": [1, "aria-autocomplete"],
|
17305
18768
|
"ariaExpanded": [1, "aria-expanded"],
|
17306
18769
|
"ariaOwns": [1, "aria-owns"],
|
17307
|
-
"validationAriaLive": [1, "validation-aria-live"],
|
17308
18770
|
"autocapitalize": [1],
|
17309
18771
|
"autocomplete": [1],
|
17310
18772
|
"autocorrect": [1],
|
@@ -17338,6 +18800,7 @@ class TextField {
|
|
17338
18800
|
"theme": [1],
|
17339
18801
|
"truncateValue": [4, "truncate-value"],
|
17340
18802
|
"type": [1],
|
18803
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
17341
18804
|
"validationInline": [4, "validation-inline"],
|
17342
18805
|
"validationInlineInternal": [4, "validation-inline-internal"],
|
17343
18806
|
"validationStatus": [1, "validation-status"],
|
@@ -18459,7 +19922,7 @@ class Tooltip {
|
|
18459
19922
|
}; }
|
18460
19923
|
}
|
18461
19924
|
|
18462
|
-
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)
|
19925
|
+
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}}";
|
18463
19926
|
var IcTopNavigationStyle0 = icTopNavigationCss;
|
18464
19927
|
|
18465
19928
|
/**
|