@ukic/web-components 3.10.0 → 3.12.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-3a9ba64a.js +191 -0
- package/dist/cjs/constants-3a9ba64a.js.map +1 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-a0e78e2e.js → helpers-478d1107.js} +6 -187
- package/dist/cjs/helpers-478d1107.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +2 -1
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +2 -1
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-action-chip.cjs.entry.js +2 -1
- package/dist/cjs/ic-action-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +4 -3
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +2 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +2 -1
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +27 -20
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +2 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +8 -4
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +5 -4
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +7 -5
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-row.cjs.entry.js +4 -3
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +7 -4
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +2 -1
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +4 -3
- package/dist/cjs/ic-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +4 -3
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +10 -9
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +6 -5
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +7 -6
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +1388 -12
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +27 -12
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-layout-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-layout-grid.cjs.entry.js +2 -2
- package/dist/cjs/ic-link.cjs.entry.js +5 -4
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +3 -2
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +2 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -2
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +3 -2
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +2 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +6 -5
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +8 -7
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination-item.cjs.entry.js +3 -2
- package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination.cjs.entry.js +6 -5
- package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +6 -5
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +15 -7
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +7 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +11 -10
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-select.cjs.entry.js +21 -13
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +6 -5
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js +4 -3
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +67 -54
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +21 -3
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +6 -5
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +10 -2
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +4 -3
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +2 -1
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +32 -23
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +5 -4
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +7 -6
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +4 -3
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +4 -3
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +2 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +4 -3
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index.cjs.js +16 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/ai-icon.svg +1 -1
- package/dist/collection/assets/error-icon.svg +4 -4
- package/dist/collection/assets/info-icon.svg +4 -4
- package/dist/collection/assets/neutral-icon.svg +4 -4
- package/dist/collection/assets/success-icon.svg +4 -4
- package/dist/collection/assets/warning-icon.svg +4 -4
- package/dist/collection/components/ic-alert/ic-alert.js +1 -1
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.js +14 -8
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.stories.js +191 -0
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.stories.js +10 -10
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +5 -0
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +2 -2
- package/dist/collection/components/ic-checkbox/ic-checkbox.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 +5 -2
- 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 +11 -28
- 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-data-list/ic-data-list.js +2 -2
- package/dist/collection/components/ic-data-list/ic-data-list.stories.js +30 -6
- package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
- package/dist/collection/components/ic-dialog/ic-dialog.js +5 -3
- package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
- package/dist/collection/components/ic-dialog/ic-dialog.stories.js +40 -1
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-hero/ic-hero.js +4 -4
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
- package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
- package/dist/collection/components/ic-input-label/ic-input-label.js +2 -2
- package/dist/collection/components/ic-input-validation/ic-input-validation.css +9 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +27 -10
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
- package/dist/collection/components/ic-layout-grid/ic-layout-grid.js +2 -2
- package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.js +2 -2
- package/dist/collection/components/ic-link/ic-link.js +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +5 -5
- package/dist/collection/components/ic-menu/ic-menu.css +2 -2
- package/dist/collection/components/ic-menu/ic-menu.js +6 -5
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
- package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
- package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +4 -4
- 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 +178 -15
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +37 -1
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
- package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +9 -9
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.js +44 -11
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select_(multi).stories.js +22 -8
- package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +16 -3
- package/dist/collection/components/ic-select/ic-select_(single).stories.js +119 -10
- package/dist/collection/components/ic-select/test/a11y/ic-select.test.a11y.js +60 -0
- package/dist/collection/components/ic-select/test/a11y/ic-select.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
- package/dist/collection/components/ic-step/ic-step.js +89 -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 +43 -2
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper.stories.js +75 -0
- package/dist/collection/components/ic-switch/ic-switch.js +4 -4
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +27 -2
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
- package/dist/collection/components/ic-text-field/ic-text-field.css +4 -0
- package/dist/collection/components/ic-text-field/ic-text-field.js +53 -19
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.stories.js +102 -4
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +3 -3
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js.map +1 -1
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +6 -4
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.js +2 -2
- package/dist/collection/index.js +1 -1
- package/dist/collection/index.js.map +1 -1
- 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 +177 -0
- package/dist/components/constants.js.map +1 -0
- package/dist/components/helpers.js +2 -174
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-action-chip.js +1 -1
- package/dist/components/ic-alert.js +3 -2
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +1 -1
- package/dist/components/ic-badge.js +1 -1
- package/dist/components/ic-breadcrumb-group.js +1 -1
- package/dist/components/ic-breadcrumb2.js +1 -1
- package/dist/components/ic-button2.js +17 -11
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +1 -1
- package/dist/components/ic-checkbox-group.js +7 -4
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +4 -4
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +6 -5
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-data-list.js +2 -2
- package/dist/components/ic-data-row.js +3 -3
- package/dist/components/ic-dialog.js +6 -4
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-divider2.js +1 -1
- package/dist/components/ic-empty-state.js +3 -3
- package/dist/components/ic-footer-link-group.js +1 -1
- package/dist/components/ic-footer-link.js +3 -3
- package/dist/components/ic-footer.js +2 -1
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +5 -5
- package/dist/components/ic-horizontal-scroll2.js +6 -6
- package/dist/components/ic-input-component-container2.js +5 -4
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-label2.js +3 -3
- package/dist/components/ic-input-validation2.js +24 -7
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-layout-grid-item.js +2 -2
- package/dist/components/ic-layout-grid.js +2 -2
- package/dist/components/ic-link2.js +3 -2
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +5 -5
- package/dist/components/ic-menu-group.js +2 -2
- package/dist/components/ic-menu-item2.js +1 -1
- package/dist/components/ic-menu2.js +1383 -7
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +2 -1
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +2 -2
- package/dist/components/ic-navigation-item.js +1 -1
- package/dist/components/ic-navigation-menu2.js +5 -5
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +7 -7
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination.js +4 -4
- package/dist/components/ic-popover-menu.js +5 -5
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +15 -7
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +6 -6
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +10 -10
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select.js +21 -12
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +5 -5
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skip-link.js +2 -2
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-step.js +67 -54
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +20 -2
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +5 -5
- package/dist/components/ic-tab-context.js +11 -2
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-text-field.js +31 -21
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-theme.js +3 -2
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +5 -4
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +3 -3
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +6 -4
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +1 -1
- package/dist/components/ic-typography2.js +2 -2
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/core/core.css +32 -4
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/index.esm.js +1 -1
- package/dist/core/p-0123dde7.entry.js +2 -0
- package/dist/core/p-0123dde7.entry.js.map +1 -0
- package/dist/core/p-01e018cb.entry.js +2 -0
- package/dist/core/{p-f309d3af.entry.js.map → p-01e018cb.entry.js.map} +1 -1
- package/dist/core/p-02af2b59.entry.js +2 -0
- package/dist/core/{p-ef4b5469.entry.js.map → p-02af2b59.entry.js.map} +1 -1
- package/dist/core/p-05036675.entry.js +2 -0
- package/dist/core/p-05036675.entry.js.map +1 -0
- package/dist/core/p-0c36ce84.entry.js +2 -0
- package/dist/core/{p-661ae402.entry.js.map → p-0c36ce84.entry.js.map} +1 -1
- package/dist/core/p-0ec76cff.entry.js +2 -0
- package/dist/core/{p-1d37ac1c.entry.js.map → p-0ec76cff.entry.js.map} +1 -1
- package/dist/core/p-13e093d0.entry.js +2 -0
- package/dist/core/{p-9eeb5e85.entry.js.map → p-13e093d0.entry.js.map} +1 -1
- package/dist/core/p-1423bd4a.entry.js +2 -0
- package/dist/core/{p-9f36791b.entry.js.map → p-1423bd4a.entry.js.map} +1 -1
- package/dist/core/p-2126d37b.entry.js +2 -0
- package/dist/core/{p-0c0c6a9e.entry.js.map → p-2126d37b.entry.js.map} +1 -1
- package/dist/core/p-228bc12d.entry.js +2 -0
- package/dist/core/{p-41f92698.entry.js.map → p-228bc12d.entry.js.map} +1 -1
- package/dist/core/p-25bef09d.entry.js +2 -0
- package/dist/core/{p-cf631191.entry.js.map → p-25bef09d.entry.js.map} +1 -1
- package/dist/core/p-27e67d45.entry.js +2 -0
- package/dist/core/{p-313a8a2f.entry.js.map → p-27e67d45.entry.js.map} +1 -1
- package/dist/core/p-2800fc30.entry.js +2 -0
- package/dist/core/{p-6ed0ac48.entry.js.map → p-2800fc30.entry.js.map} +1 -1
- package/dist/core/p-33582352.entry.js +2 -0
- package/dist/core/{p-317e005f.entry.js.map → p-33582352.entry.js.map} +1 -1
- package/dist/core/p-33789b23.entry.js +3 -0
- package/dist/core/p-33789b23.entry.js.map +1 -0
- package/dist/core/{p-287e5c17.entry.js → p-37d217b5.entry.js} +2 -2
- package/dist/core/{p-df88ff5b.entry.js → p-37daa8fe.entry.js} +2 -2
- package/dist/core/p-3e36f281.entry.js +2 -0
- package/dist/core/{p-711bfeed.entry.js.map → p-3e36f281.entry.js.map} +1 -1
- package/dist/core/p-45097448.entry.js +2 -0
- package/dist/core/{p-cbe0d1bb.entry.js.map → p-45097448.entry.js.map} +1 -1
- package/dist/core/{p-45dd12ee.entry.js → p-4747c39f.entry.js} +2 -2
- package/dist/core/p-4747c39f.entry.js.map +1 -0
- package/dist/core/{p-ffac41d6.entry.js → p-492fcb51.entry.js} +2 -2
- package/dist/core/p-514daffe.entry.js +2 -0
- package/dist/core/p-514daffe.entry.js.map +1 -0
- package/dist/core/p-54803e3b.entry.js +2 -0
- package/dist/core/{p-2f4f392f.entry.js.map → p-54803e3b.entry.js.map} +1 -1
- package/dist/core/{p-6e8ef73c.entry.js → p-57721431.entry.js} +2 -2
- package/dist/core/{p-5fbc8e62.entry.js → p-5fcfcfb6.entry.js} +2 -2
- package/dist/core/p-6058d4c9.entry.js +2 -0
- package/dist/core/{p-ea778379.entry.js.map → p-6058d4c9.entry.js.map} +1 -1
- package/dist/core/p-675bb3e4.entry.js +2 -0
- package/dist/core/{p-52748d5c.entry.js.map → p-675bb3e4.entry.js.map} +1 -1
- package/dist/core/p-6dbe70f1.entry.js +2 -0
- package/dist/core/{p-4ca782eb.entry.js.map → p-6dbe70f1.entry.js.map} +1 -1
- package/dist/core/p-6e139e6e.entry.js +2 -0
- package/dist/core/{p-0d680d19.entry.js.map → p-6e139e6e.entry.js.map} +1 -1
- package/dist/core/p-80317cd1.entry.js +2 -0
- package/dist/core/{p-9c013333.entry.js.map → p-80317cd1.entry.js.map} +1 -1
- package/dist/core/p-80e0f66e.entry.js +2 -0
- package/dist/core/{p-493eaabb.entry.js.map → p-80e0f66e.entry.js.map} +1 -1
- package/dist/core/p-813ad03c.entry.js +2 -0
- package/dist/core/{p-6a576a8b.entry.js.map → p-813ad03c.entry.js.map} +1 -1
- package/dist/core/p-8558b9b7.entry.js +2 -0
- package/dist/core/{p-21cf2beb.entry.js.map → p-8558b9b7.entry.js.map} +1 -1
- package/dist/core/p-8684efeb.entry.js +2 -0
- package/dist/core/{p-fc3b1155.entry.js.map → p-8684efeb.entry.js.map} +1 -1
- package/dist/core/p-8b99a806.entry.js +2 -0
- package/dist/core/{p-8a4b12e4.entry.js.map → p-8b99a806.entry.js.map} +1 -1
- package/dist/core/p-93479c36.entry.js +2 -0
- package/dist/core/{p-19cf2327.entry.js.map → p-93479c36.entry.js.map} +1 -1
- package/dist/core/p-95d3d1a7.entry.js +2 -0
- package/dist/core/{p-6014ab64.entry.js.map → p-95d3d1a7.entry.js.map} +1 -1
- package/dist/core/p-99793b64.entry.js +2 -0
- package/dist/core/p-99793b64.entry.js.map +1 -0
- package/dist/core/{p-ea061ccf.entry.js → p-9a8bcb78.entry.js} +2 -2
- package/dist/core/{p-8b5022bc.entry.js → p-9cf6ccfd.entry.js} +2 -2
- package/dist/core/p-a06c1e4e.entry.js +2 -0
- package/dist/core/{p-f6a02202.entry.js.map → p-a06c1e4e.entry.js.map} +1 -1
- package/dist/core/p-a1857d24.entry.js +2 -0
- package/dist/core/p-a1857d24.entry.js.map +1 -0
- package/dist/core/p-a1e2e029.entry.js +2 -0
- package/dist/core/{p-a77364f5.entry.js.map → p-a1e2e029.entry.js.map} +1 -1
- package/dist/core/p-abd88929.entry.js +2 -0
- package/dist/core/{p-af9c391d.entry.js.map → p-abd88929.entry.js.map} +1 -1
- package/dist/core/p-b0376079.entry.js +2 -0
- package/dist/core/{p-41ef74a7.entry.js.map → p-b0376079.entry.js.map} +1 -1
- package/dist/core/p-b1838ad8.entry.js +2 -0
- package/dist/core/p-b1838ad8.entry.js.map +1 -0
- package/dist/core/{p-999f0a5d.entry.js → p-b4a2f6fa.entry.js} +2 -2
- package/dist/core/p-b57e59b7.js +2 -0
- 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-bddf799a.js +2 -0
- package/dist/core/p-bddf799a.js.map +1 -0
- package/dist/core/p-c04e1fab.entry.js +2 -0
- package/dist/core/{p-1e2f40b0.entry.js.map → p-c04e1fab.entry.js.map} +1 -1
- package/dist/core/p-c2d5e301.entry.js +2 -0
- package/dist/core/p-c2d5e301.entry.js.map +1 -0
- package/dist/core/p-c975cced.entry.js +2 -0
- package/dist/core/{p-15dbccc2.entry.js.map → p-c975cced.entry.js.map} +1 -1
- package/dist/core/p-cc00cbce.entry.js +2 -0
- package/dist/core/p-cc00cbce.entry.js.map +1 -0
- package/dist/core/p-cf868a24.entry.js +2 -0
- package/dist/core/p-cf868a24.entry.js.map +1 -0
- package/dist/core/p-d58ad080.entry.js +2 -0
- package/dist/core/{p-b52000d9.entry.js.map → p-d58ad080.entry.js.map} +1 -1
- package/dist/core/p-de32a223.entry.js +2 -0
- package/dist/core/{p-43324339.entry.js.map → p-de32a223.entry.js.map} +1 -1
- package/dist/core/p-e6dacbe2.entry.js +2 -0
- package/dist/core/{p-b0d488d0.entry.js.map → p-e6dacbe2.entry.js.map} +1 -1
- package/dist/core/p-e9d28e02.entry.js +2 -0
- package/dist/core/p-e9d28e02.entry.js.map +1 -0
- package/dist/core/p-ea06792a.entry.js +2 -0
- package/dist/core/{p-72a9909c.entry.js.map → p-ea06792a.entry.js.map} +1 -1
- package/dist/core/p-eb0e7153.entry.js +2 -0
- package/dist/core/{p-3dc54847.entry.js.map → p-eb0e7153.entry.js.map} +1 -1
- package/dist/core/p-f609ca37.entry.js +2 -0
- package/dist/core/{p-9323c234.entry.js.map → p-f609ca37.entry.js.map} +1 -1
- package/dist/core/p-fb69fbc0.entry.js +2 -0
- package/dist/core/{p-7cd4f6a6.entry.js.map → p-fb69fbc0.entry.js.map} +1 -1
- package/dist/core/p-fb734a59.entry.js +2 -0
- package/dist/core/p-fb734a59.entry.js.map +1 -0
- package/dist/esm/constants-7960cba4.js +177 -0
- package/dist/esm/constants-7960cba4.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-56631aa0.js → helpers-4ddac6ed.js} +3 -175
- package/dist/esm/helpers-4ddac6ed.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +2 -1
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +2 -1
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-action-chip.entry.js +2 -1
- package/dist/esm/ic-action-chip.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +3 -2
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +2 -1
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +2 -1
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +2 -1
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +2 -1
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +25 -18
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +2 -1
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +8 -4
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +5 -4
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +7 -5
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-row.entry.js +4 -3
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +7 -4
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +2 -1
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-empty-state.entry.js +4 -3
- package/dist/esm/ic-empty-state.entry.js.map +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +2 -1
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +4 -3
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +2 -1
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +6 -5
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +7 -6
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +1388 -12
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +24 -9
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-layout-grid-item.entry.js +2 -2
- package/dist/esm/ic-layout-grid.entry.js +2 -2
- package/dist/esm/ic-link.entry.js +3 -2
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +3 -2
- package/dist/esm/ic-menu-group.entry.js.map +1 -1
- package/dist/esm/ic-menu-item.entry.js +2 -1
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +2 -1
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +3 -2
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +2 -1
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +6 -5
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +8 -7
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination-item.entry.js +3 -2
- package/dist/esm/ic-pagination-item.entry.js.map +1 -1
- package/dist/esm/ic-pagination.entry.js +6 -5
- package/dist/esm/ic-pagination.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +6 -5
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +15 -7
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +7 -6
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +11 -10
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-select.entry.js +20 -12
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +6 -5
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js +2 -2
- package/dist/esm/ic-status-tag.entry.js +4 -3
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +67 -54
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +21 -3
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +6 -5
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +10 -2
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +4 -3
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab.entry.js +2 -1
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-text-field.entry.js +30 -21
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +3 -2
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +5 -4
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +4 -3
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +4 -3
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +2 -1
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +4 -3
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-button/ic-button.d.ts +1 -0
- package/dist/types/components/ic-dialog/ic-dialog.d.ts +1 -0
- package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +4 -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-select/test/a11y/ic-select.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-step/ic-step.d.ts +5 -1
- package/dist/types/components/ic-step/ic-step.types.d.ts +10 -0
- package/dist/types/components/ic-stepper/ic-stepper.d.ts +5 -1
- package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +4 -0
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +6 -1
- package/dist/types/components.d.ts +51 -9
- package/dist/types/index.d.ts +1 -0
- 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 +2 -0
- package/hydrate/index.js +1721 -254
- package/hydrate/index.mjs +1721 -254
- package/package.json +5 -4
- package/vscode-data.json +51 -0
- package/dist/cjs/helpers-a0e78e2e.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-0c0c6a9e.entry.js +0 -2
- package/dist/core/p-0d680d19.entry.js +0 -2
- package/dist/core/p-15dbccc2.entry.js +0 -2
- package/dist/core/p-19cf2327.entry.js +0 -2
- package/dist/core/p-1d37ac1c.entry.js +0 -2
- package/dist/core/p-1e2f40b0.entry.js +0 -2
- package/dist/core/p-21cf2beb.entry.js +0 -2
- package/dist/core/p-25007ec9.js +0 -2
- package/dist/core/p-25007ec9.js.map +0 -1
- package/dist/core/p-28efe829.entry.js +0 -2
- package/dist/core/p-28efe829.entry.js.map +0 -1
- package/dist/core/p-2f4f392f.entry.js +0 -2
- package/dist/core/p-313a8a2f.entry.js +0 -2
- package/dist/core/p-317e005f.entry.js +0 -2
- package/dist/core/p-3dc54847.entry.js +0 -2
- package/dist/core/p-3e5d7a3d.entry.js +0 -2
- package/dist/core/p-3e5d7a3d.entry.js.map +0 -1
- package/dist/core/p-41ef74a7.entry.js +0 -2
- package/dist/core/p-41f92698.entry.js +0 -2
- package/dist/core/p-43324339.entry.js +0 -2
- package/dist/core/p-45dd12ee.entry.js.map +0 -1
- package/dist/core/p-47f6dac2.entry.js +0 -2
- package/dist/core/p-47f6dac2.entry.js.map +0 -1
- package/dist/core/p-493eaabb.entry.js +0 -2
- package/dist/core/p-4ca782eb.entry.js +0 -2
- package/dist/core/p-4d1a3036.entry.js +0 -2
- package/dist/core/p-4d1a3036.entry.js.map +0 -1
- package/dist/core/p-52748d5c.entry.js +0 -2
- package/dist/core/p-595a4d06.entry.js +0 -2
- package/dist/core/p-595a4d06.entry.js.map +0 -1
- package/dist/core/p-5f68f62b.entry.js +0 -2
- package/dist/core/p-5f68f62b.entry.js.map +0 -1
- package/dist/core/p-6014ab64.entry.js +0 -2
- package/dist/core/p-661ae402.entry.js +0 -2
- package/dist/core/p-6a576a8b.entry.js +0 -2
- package/dist/core/p-6ed0ac48.entry.js +0 -2
- package/dist/core/p-711bfeed.entry.js +0 -2
- package/dist/core/p-72a9909c.entry.js +0 -2
- package/dist/core/p-742a9181.entry.js +0 -2
- package/dist/core/p-742a9181.entry.js.map +0 -1
- package/dist/core/p-7cd4f6a6.entry.js +0 -2
- package/dist/core/p-8a4b12e4.entry.js +0 -2
- package/dist/core/p-9323c234.entry.js +0 -2
- package/dist/core/p-97b93ddf.entry.js +0 -2
- package/dist/core/p-97b93ddf.entry.js.map +0 -1
- package/dist/core/p-9c013333.entry.js +0 -2
- package/dist/core/p-9eeb5e85.entry.js +0 -2
- package/dist/core/p-9f36791b.entry.js +0 -2
- package/dist/core/p-a602a8e1.entry.js +0 -2
- package/dist/core/p-a602a8e1.entry.js.map +0 -1
- package/dist/core/p-a77364f5.entry.js +0 -2
- package/dist/core/p-af9c391d.entry.js +0 -2
- package/dist/core/p-b0d488d0.entry.js +0 -2
- package/dist/core/p-b52000d9.entry.js +0 -2
- package/dist/core/p-bb4ce810.entry.js +0 -2
- package/dist/core/p-bb4ce810.entry.js.map +0 -1
- package/dist/core/p-cbe0d1bb.entry.js +0 -2
- package/dist/core/p-ceea1712.entry.js +0 -2
- package/dist/core/p-ceea1712.entry.js.map +0 -1
- package/dist/core/p-cf631191.entry.js +0 -2
- package/dist/core/p-e652ab09.entry.js +0 -2
- package/dist/core/p-e652ab09.entry.js.map +0 -1
- package/dist/core/p-e876e47c.entry.js +0 -2
- package/dist/core/p-e876e47c.entry.js.map +0 -1
- package/dist/core/p-ea778379.entry.js +0 -2
- package/dist/core/p-ef4b5469.entry.js +0 -2
- package/dist/core/p-f309d3af.entry.js +0 -2
- package/dist/core/p-f6a02202.entry.js +0 -2
- package/dist/core/p-fc3b1155.entry.js +0 -2
- package/dist/esm/helpers-56631aa0.js.map +0 -1
- package/dist/types/components/ic-input-validation/ic-input-validation.types.d.ts +0 -1
- /package/dist/core/{p-287e5c17.entry.js.map → p-37d217b5.entry.js.map} +0 -0
- /package/dist/core/{p-df88ff5b.entry.js.map → p-37daa8fe.entry.js.map} +0 -0
- /package/dist/core/{p-ffac41d6.entry.js.map → p-492fcb51.entry.js.map} +0 -0
- /package/dist/core/{p-6e8ef73c.entry.js.map → p-57721431.entry.js.map} +0 -0
- /package/dist/core/{p-5fbc8e62.entry.js.map → p-5fcfcfb6.entry.js.map} +0 -0
- /package/dist/core/{p-ea061ccf.entry.js.map → p-9a8bcb78.entry.js.map} +0 -0
- /package/dist/core/{p-8b5022bc.entry.js.map → p-9cf6ccfd.entry.js.map} +0 -0
- /package/dist/core/{p-999f0a5d.entry.js.map → p-b4a2f6fa.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
@@ -3105,48 +3105,48 @@ var IcBrandForegroundEnum;
|
|
3105
3105
|
IcBrandForegroundEnum["Light"] = "light";
|
3106
3106
|
})(IcBrandForegroundEnum || (IcBrandForegroundEnum = {}));
|
3107
3107
|
|
3108
|
-
var errorIcon = `<svg
|
3109
|
-
<title
|
3110
|
-
<g
|
3111
|
-
<path
|
3108
|
+
var errorIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
3109
|
+
<title>Error</title>
|
3110
|
+
<g>
|
3111
|
+
<path d="M8.77 3L3.5 8.27V15.73L8.77 21H16.23L21.5 15.73V8.27L16.23 3M8.91 7L12.5 10.59L16.09 7L17.5 8.41L13.91 12L17.5 15.59L16.09 17L12.5 13.41L8.91 17L7.5 15.59L11.09 12L7.5 8.41" />
|
3112
3112
|
</g>
|
3113
3113
|
</svg>
|
3114
3114
|
`;
|
3115
3115
|
|
3116
|
-
var infoIcon = `<svg
|
3117
|
-
<title
|
3118
|
-
<g
|
3119
|
-
<path
|
3116
|
+
var infoIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
3117
|
+
<title>For your information</title>
|
3118
|
+
<g>
|
3119
|
+
<path d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 17C11.45 17 11 16.55 11 16V12C11 11.45 11.45 11 12 11C12.55 11 13 11.45 13 12V16C13 16.55 12.55 17 12 17ZM13 9H11V7H13V9Z" />
|
3120
3120
|
</g>
|
3121
3121
|
</svg>
|
3122
3122
|
`;
|
3123
3123
|
|
3124
|
-
var neutralIcon = `<svg
|
3125
|
-
<title
|
3126
|
-
<g
|
3127
|
-
<path
|
3124
|
+
var neutralIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
3125
|
+
<title>Neutral</title>
|
3126
|
+
<g>
|
3127
|
+
<path d="M19.5 3H5.5C4.4 3 3.5 3.9 3.5 5V19C3.5 20.1 4.4 21 5.5 21H19.5C20.6 21 21.5 20.1 21.5 19V5C21.5 3.9 20.6 3 19.5 3ZM12.51 18C11.81 18 11.25 17.44 11.25 16.74C11.25 16.03 11.81 15.49 12.51 15.49C13.22 15.49 13.76 16.03 13.76 16.74C13.75 17.43 13.22 18 12.51 18ZM15.52 10.6C14.76 11.71 14.04 12.06 13.65 12.77C13.55 12.95 13.49 13.09 13.46 13.4C13.41 13.85 13.01 14.18 12.56 14.18H12.5C11.98 14.18 11.57 13.74 11.62 13.22C11.65 12.88 11.73 12.53 11.92 12.19C12.41 11.32 13.34 10.8 13.88 10.03C14.45 9.22 14.13 7.7 12.51 7.7C11.8 7.7 11.33 8.06 11.04 8.49C10.79 8.85 10.35 9.02 9.94 8.85C9.41 8.64 9.22 8 9.54 7.54C10.15 6.65 11.17 6 12.49 6C13.97 6 14.98 6.67 15.5 7.52C15.94 8.24 16.2 9.59 15.52 10.6Z" />
|
3128
3128
|
</g>
|
3129
3129
|
</svg>
|
3130
3130
|
`;
|
3131
3131
|
|
3132
|
-
var successIcon = `<svg
|
3133
|
-
<title
|
3134
|
-
<g
|
3135
|
-
<path
|
3132
|
+
var successIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
3133
|
+
<title>Success</title>
|
3134
|
+
<g>
|
3135
|
+
<path d="M12.5 2C6.98 2 2.5 6.48 2.5 12C2.5 17.52 6.98 22 12.5 22C18.02 22 22.5 17.52 22.5 12C22.5 6.48 18.02 2 12.5 2ZM9.79 16.29L6.2 12.7C5.81 12.31 5.81 11.68 6.2 11.29C6.59 10.9 7.22 10.9 7.61 11.29L10.5 14.17L17.38 7.29C17.77 6.9 18.4 6.9 18.79 7.29C19.18 7.68 19.18 8.31 18.79 8.7L11.2 16.29C10.82 16.68 10.18 16.68 9.79 16.29Z" />
|
3136
3136
|
</g>
|
3137
3137
|
</svg>
|
3138
3138
|
`;
|
3139
3139
|
|
3140
|
-
var warningIcon$1 = `<svg
|
3141
|
-
<title
|
3142
|
-
<g
|
3143
|
-
<path
|
3140
|
+
var warningIcon$1 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000">
|
3141
|
+
<title>Warning</title>
|
3142
|
+
<g>
|
3143
|
+
<path d="M4.47 20.5037H19.53C21.07 20.5037 22.03 18.8337 21.26 17.5037L13.73 4.49375C12.96 3.16375 11.04 3.16375 10.27 4.49375L2.74 17.5037C1.97 18.8337 2.93 20.5037 4.47 20.5037ZM12 13.5037C11.45 13.5037 11 13.0537 11 12.5037V10.5037C11 9.95375 11.45 9.50375 12 9.50375C12.55 9.50375 13 9.95375 13 10.5037V12.5037C13 13.0537 12.55 13.5037 12 13.5037ZM13 17.5037H11V15.5037H13V17.5037Z" />
|
3144
3144
|
</g>
|
3145
3145
|
</svg>
|
3146
3146
|
`;
|
3147
3147
|
|
3148
3148
|
var aiIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
3149
|
-
<title
|
3149
|
+
<title>Artificial Intelligence (AI)</title>
|
3150
3150
|
<g clip-path="url(#clip0_43876_12457)">
|
3151
3151
|
<path d="M19.801 3C20.4637 3 21.001 3.53726 21.001 4.2V19.8C21.001 20.4628 20.4637 21 19.801 21H4.20098C3.53824 21 3.00098 20.4628 3.00098 19.8V4.2C3.00098 3.53726 3.53824 3 4.20098 3H19.801ZM8.94555 8.87988C8.88361 8.87988 8.82803 8.91796 8.80567 8.97573L6.32024 15.3958C6.28219 15.4941 6.35472 15.6 6.46013 15.6H7.19363C7.2559 15.6 7.3117 15.5615 7.33384 15.5033L7.89546 14.0262C7.9176 13.968 7.97339 13.9295 8.03567 13.9295H10.64C10.7023 13.9295 10.7582 13.968 10.7803 14.0263L11.3403 15.5032C11.3624 15.5615 11.4182 15.6 11.4805 15.6H12.2625C12.3678 15.6 12.4403 15.4944 12.4025 15.3962L9.9356 8.97608C9.91333 8.91813 9.85767 8.87988 9.79558 8.87988H8.94555ZM13.6123 8.87988C13.5294 8.87988 13.4623 8.94704 13.4623 9.02988V9.69024C13.4623 9.77308 13.5294 9.84024 13.6123 9.84024H14.3969C14.4797 9.84024 14.5469 9.9074 14.5469 9.99024V14.4902C14.5469 14.5731 14.4797 14.6402 14.3969 14.6402H13.6123C13.5294 14.6402 13.4623 14.7074 13.4623 14.7902V15.45C13.4623 15.5328 13.5294 15.6 13.6123 15.6H16.5186C16.6014 15.6 16.6686 15.5328 16.6686 15.45V14.7902C16.6686 14.7074 16.6014 14.6402 16.5186 14.6402H15.7334C15.6506 14.6402 15.5834 14.5731 15.5834 14.4902V9.99024C15.5834 9.9074 15.6506 9.84024 15.7334 9.84024H16.5186C16.6014 9.84024 16.6686 9.77308 16.6686 9.69024V9.02988C16.6686 8.94704 16.6014 8.87988 16.5186 8.87988H13.6123ZM9.35138 10.0705C9.40898 10.2433 9.47318 10.4353 9.54356 10.6465C9.61394 10.8577 9.6746 11.0497 9.72578 11.2225C9.78338 11.3952 9.82202 11.504 9.84122 11.5488L10.288 12.7279C10.3252 12.8261 10.2527 12.9311 10.1478 12.9311H8.52949C8.42445 12.9311 8.35194 12.8259 8.3893 12.7277L8.82344 11.5869C8.86182 11.4782 8.91003 11.3437 8.96758 11.1838C9.02516 11.0174 9.08288 10.8413 9.14042 10.6559C9.20438 10.4704 9.2615 10.2943 9.31268 10.1279C9.31947 10.1084 9.32604 10.0892 9.3325 10.0705C9.33554 10.0616 9.34853 10.0616 9.35138 10.0705Z" />
|
3152
3152
|
</g>
|
@@ -3277,6 +3277,7 @@ const IGNORED_KEYBOARD_CHARACTERS = [
|
|
3277
3277
|
"Shift",
|
3278
3278
|
"Tab",
|
3279
3279
|
];
|
3280
|
+
const IC_CUSTOM_ALLOWED_COMPONENTS = [];
|
3280
3281
|
|
3281
3282
|
const DARK_MODE_THRESHOLD = 133.3505;
|
3282
3283
|
const ANYWHERE_SEARCH_POSITION = "anywhere";
|
@@ -4296,7 +4297,7 @@ class Alert {
|
|
4296
4297
|
}, ref: (el) => (this.messageEl = el) }, heading && (hAsync("ic-typography", { class: {
|
4297
4298
|
"alert-title": true,
|
4298
4299
|
"alert-title-above": titleAbove || alertTitleWrap,
|
4299
|
-
}, variant: "subtitle-large", ref: (el) => (this.titleEl = el) }, hAsync("p", null, heading))), hAsync("slot", { name: "message" }, hAsync("ic-typography", { variant: "body" }, message))), isSlotUsed(this.el, "action") && (hAsync("div", { class: "alert-action-container" }, hAsync("slot", { name: "action" })))), hAsync("div", { class: "dismiss-icon-container" }, dismissible && (hAsync("ic-button", { class: { "svg-container": true, "dismiss-icon": true }, innerHTML: closeIcon, onClick: dismissAction, variant: "icon", theme: "dark", title: "Dismiss" })))))));
|
4300
|
+
}, variant: "subtitle-large", ref: (el) => (this.titleEl = el) }, hAsync("p", null, heading))), hAsync("slot", { name: "message" }, hAsync("ic-typography", { variant: "body" }, message))), isSlotUsed(this.el, "action") && (hAsync("div", { class: "alert-action-container" }, hAsync("slot", { name: "action" })))), hAsync("div", { class: "dismiss-icon-container" }, dismissible && (hAsync("ic-button", { class: { "svg-container": true, "dismiss-icon": true }, innerHTML: closeIcon, onClick: dismissAction, variant: "icon-tertiary", theme: "dark", title: "Dismiss" })))))));
|
4300
4301
|
}
|
4301
4302
|
get el() { return getElement(this); }
|
4302
4303
|
static get watchers() { return {
|
@@ -5298,6 +5299,10 @@ class Button {
|
|
5298
5299
|
watchDisabledHandler() {
|
5299
5300
|
removeDisabledFalse(this.disabled, this.el);
|
5300
5301
|
}
|
5302
|
+
watchVariantHandler(newVariant) {
|
5303
|
+
if (newVariant === "icon")
|
5304
|
+
this.variant = "icon-tertiary";
|
5305
|
+
}
|
5301
5306
|
disconnectedCallback() {
|
5302
5307
|
var _a, _b;
|
5303
5308
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
@@ -5330,6 +5335,9 @@ class Button {
|
|
5330
5335
|
}
|
5331
5336
|
}
|
5332
5337
|
}
|
5338
|
+
if (this.variant === "icon") {
|
5339
|
+
this.variant = "icon-tertiary";
|
5340
|
+
}
|
5333
5341
|
}
|
5334
5342
|
componentDidLoad() {
|
5335
5343
|
this.updateTheme();
|
@@ -5428,11 +5436,7 @@ class Button {
|
|
5428
5436
|
const buttonId = hasTooltip
|
5429
5437
|
? `ic-button-with-tooltip-${id || buttonIdNum}`
|
5430
5438
|
: undefined;
|
5431
|
-
const describedby = !hasTooltip
|
5432
|
-
? describedById
|
5433
|
-
: variant !== "icon" || !ariaLabel
|
5434
|
-
? `ic-tooltip-${buttonId}`
|
5435
|
-
: undefined;
|
5439
|
+
const describedby = !hasTooltip ? describedById : `ic-tooltip-${buttonId}`;
|
5436
5440
|
const hasLeftIcon = !!this.getSlottedIcon("left");
|
5437
5441
|
const hasRightIcon = !!this.getSlottedIcon("right");
|
5438
5442
|
const ButtonContent = () => this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(TagType, Object.assign({ class: "button", tabindex: 0, "aria-disabled": loading || disabled ? "true" : null, "aria-label": loading ? "Loading" : ariaLabel, "aria-expanded": dropdown && `${dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: onFocus, onBlur: onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), loading ? (hAsync("div", { class: "loading-container" }, hAsync("ic-loading-indicator", { type: "linear", monochrome: monochrome, theme: theme }))) : (hAsync(Fragment, null, (hasLeftIcon ||
|
@@ -5442,7 +5446,7 @@ class Button {
|
|
5442
5446
|
variant !== "destructive" && (hAsync("span", { class: dropdownExpanded
|
5443
5447
|
? "dropdown-expanded"
|
5444
5448
|
: "arrow-dropdown", innerHTML: arrowDropdown }))))));
|
5445
|
-
return (hAsync(Host, { key: '
|
5449
|
+
return (hAsync(Host, { key: '1f58739b62e290b1b86fa82c9153e04711196367', class: {
|
5446
5450
|
"ic-button-disabled": disabled && !loading,
|
5447
5451
|
"ic-button-full-width": fullWidth,
|
5448
5452
|
"ic-button-loading": loading,
|
@@ -5458,12 +5462,13 @@ class Button {
|
|
5458
5462
|
monochrome,
|
5459
5463
|
"top-icon": isSlotUsed(this.el, "top-icon"),
|
5460
5464
|
"with-badge": isSlotUsed(this.el, "badge"),
|
5461
|
-
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: '
|
5465
|
+
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: 'fa067eeedb2f960436c693a0d8978a46eea9cc68', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, fixedPositioning: tooltipFixedPositioning, silent: isIconVariant() && !!ariaLabel }, hAsync(ButtonContent, { key: 'a3565789687668d376a8c6e6044a0c3b1e864532' }))), isSlotUsed(this.el, "badge") && hAsync("slot", { key: '1bacc47dfc65cce6880600906512a9262b6773cc', name: "badge" }), !hasTooltip && hAsync(ButtonContent, { key: 'd00dc87862ffc939fc5c8341c686dddbc642eb02' }), describedByContent && (hAsync("span", { key: '1d25a9c513d23e6a23e2e1d81ad036d1df47363c', id: describedby, class: "ic-button-describedby" }, describedByContent))));
|
5462
5466
|
}
|
5463
5467
|
static get delegatesFocus() { return true; }
|
5464
5468
|
get el() { return getElement(this); }
|
5465
5469
|
static get watchers() { return {
|
5466
|
-
"disabled": ["watchDisabledHandler"]
|
5470
|
+
"disabled": ["watchDisabledHandler"],
|
5471
|
+
"variant": ["watchVariantHandler"]
|
5467
5472
|
}; }
|
5468
5473
|
static get style() { return IcButtonStyle0; }
|
5469
5474
|
static get cmpMeta() { return {
|
@@ -5502,7 +5507,7 @@ class Button {
|
|
5502
5507
|
"tooltipPlacement": [1, "tooltip-placement"],
|
5503
5508
|
"transparentBackground": [4, "transparent-background"],
|
5504
5509
|
"type": [1],
|
5505
|
-
"variant": [
|
5510
|
+
"variant": [1025],
|
5506
5511
|
"ariaLabel": [32],
|
5507
5512
|
"describedByContent": [32],
|
5508
5513
|
"title": [32],
|
@@ -5715,7 +5720,7 @@ class CardVertical {
|
|
5715
5720
|
}; }
|
5716
5721
|
}
|
5717
5722
|
|
5718
|
-
const icCheckboxCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host(.ic-checkbox-disabled){pointer-events:none}.container{display:flex;width:-moz-fit-content;width:fit-content;padding:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs);margin-bottom:var(--ic-space-xxs);align-items:center}:host(.ic-data-table-checkbox) .container{padding:0;margin-bottom:0}:host(.ic-checkbox-small) .container{margin-bottom:var(--ic-space-xxxs)}.checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-checkbox-background-unselected);border:var(--ic-border-width) solid var(--ic-checkbox-border-unselected);border-radius:var(--ic-border-radius);outline:none;cursor:pointer;transition:var(--ic-easing-transition-fast);flex-shrink:0}:host .container svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-checkbox-small) .checkbox,:host(.ic-checkbox-small) .container svg{width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-checkbox-large) .checkbox,:host(.ic-checkbox-large) .container svg{width:var(--ic-space-xl);height:var(--ic-space-xl)}.checkbox:checked{background-color:var(--ic-checkbox-background-selected);border:var(--ic-border-width) solid var(--ic-checkbox-background-selected);transition:var(--ic-easing-transition-slow)}.checkbox:checked:disabled{background-color:var(--ic-checkbox-background-selected-disabled);border:var(--ic-border-width) solid\n var(--ic-checkbox-background-selected-disabled)}.checkbox:indeterminate,.checkbox.indeterminate:checked{background-color:var(--ic-checkbox-background-indeterminate);border:0.125rem solid var(--ic-checkbox-background-indeterminate)}.checkbox:indeterminate:disabled,.checkbox.indeterminate:checked:disabled{background-color:var(--ic-checkbox-background-indeterminate-disabled);border:0.125rem solid var(--ic-checkbox-background-indeterminate-disabled)}.checkbox:checked:hover{background-color:var(--ic-checkbox-background-selected-hover)}.checkbox:indeterminate:hover,.checkbox.indeterminate:checked:hover{background-color:var(--ic-checkbox-background-indeterminate-hover);border:0.125rem solid var(--ic-checkbox-background-indeterminate-hover)}.checkbox:checked:active{background-color:var(--ic-checkbox-background-selected-pressed)}.checkbox:indeterminate:active,.checkbox.indeterminate:checked:active{background-color:var(--ic-checkbox-background-indeterminate-pressed);border:0.125rem solid var(--ic-checkbox-background-indeterminate-pressed)}.checkbox:hover{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-hover);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-hover)}.checkbox:active{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-pressed);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-pressed)}.checkbox:focus{box-shadow:var(--ic-border-focus)}.checkbox:disabled{border:var(--ic-border-width) dashed\n var(--ic-checkbox-border-unselected-disabled)}.checkbox-label{color:var(--ic-checkbox-text);--ic-typography-color:var(--ic-checkbox-text)}.checkbox-label>label{padding-left:var(--ic-space-sm);display:inline-block}:host(.ic-checkbox-disabled) .checkbox-label{color:var(--ic-checkbox-text-disabled);--ic-typography-color:var(--ic-checkbox-text-disabled)}.checkbox-label:hover{cursor:pointer}.checkmark{position:relative;right:calc(-1 * var(--ic-space-lg));margin-left:calc(-1 * var(--ic-space-lg));fill:var(--ic-checkbox-icon-pressed);z-index:1;background-color:transparent;pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .checkmark{margin-left:calc(-1 * var(--ic-space-md));right:calc(-1 * var(--ic-space-md))}:host(.ic-checkbox-large) .checkmark{margin-left:calc(-1 * var(--ic-space-xl));right:calc(-1 * var(--ic-space-xl))}.indeterminate-symbol{position:relative;width:0.875rem;height:var(--ic-space-xxxs);right:-1.188rem;margin-left:-0.875rem;z-index:1;background-color:var(--ic-checkbox-icon-indeterminate);pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .indeterminate-symbol{width:0.6rem;right:-0.8rem;margin-left:-0.6rem}:host(.ic-checkbox-large) .indeterminate-symbol{width:1.25rem;right:-1.625rem;margin-left:-1.25rem}.additional-field-wrapper{margin-left:calc(var(--ic-space-md) + var(--ic-space-lg));margin-top:calc(var(--ic-space-sm) / 2)}.branch-corner{height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-checkbox-required-bar);border-left:0.125rem solid var(--ic-checkbox-required-bar)}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-xxxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}.dynamic-text{color:var(--ic-checkbox-required-text);--ic-typography-color:var(--ic-checkbox-required-text);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}.dynamic-field-container{flex:100%}@media (max-width: 576px){::slotted(*){--input-width:100%}.dynamic-field-container{flex:initial}}@media (forced-colors: active){.checkbox{-webkit-appearance:revert;-moz-appearance:revert;appearance:revert;transition:none}.checkbox:checked{transition:none}.checkbox:focus-visible{outline:0.125rem solid highlight}.checkbox:disabled:not(:checked){-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.checkmark{fill:none}.indeterminate-symbol{display:none}}.checkmark:dir(rtl){right:0}.checkbox-label:dir(rtl){padding-right:var(--ic-space-sm);padding-left:0}.indeterminate-symbol:dir(rtl){right:0.288rem}.branch-corner:dir(rtl){border-radius:0 0 0.188rem;border-right:0.125rem solid var(--ic-action-default);border-left:none}.dynamic-container:dir(rtl){margin:var(--ic-space-xxxs) var(--ic-space-sm) var(--ic-space-xxs) 0}";
|
5723
|
+
const icCheckboxCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host(.ic-checkbox-disabled){pointer-events:none}.container{display:flex;width:-moz-fit-content;width:fit-content;padding:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs);margin-bottom:var(--ic-space-xxs);align-items:center}:host(.ic-data-table-checkbox) .container{padding:0;margin-bottom:0}:host(.ic-checkbox-small) .container{margin-bottom:var(--ic-space-xxxs)}.checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-checkbox-background-unselected);border:var(--ic-border-width) solid var(--ic-checkbox-border-unselected);border-radius:var(--ic-border-radius);outline:none;cursor:pointer;transition:var(--ic-easing-transition-fast);flex-shrink:0}:host .container svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-checkbox-small) .checkbox,:host(.ic-checkbox-small) .container svg{width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-checkbox-large) .checkbox,:host(.ic-checkbox-large) .container svg{width:var(--ic-space-xl);height:var(--ic-space-xl)}.checkbox:checked{background-color:var(--ic-checkbox-background-selected);border:var(--ic-border-width) solid var(--ic-checkbox-background-selected);transition:var(--ic-easing-transition-slow)}.checkbox:checked:disabled{background-color:var(--ic-checkbox-background-selected-disabled);border:var(--ic-border-width) solid\n var(--ic-checkbox-background-selected-disabled)}.checkbox:indeterminate,.checkbox.indeterminate:checked{background-color:var(--ic-checkbox-background-indeterminate);border:0.125rem solid var(--ic-checkbox-background-indeterminate)}.checkbox:indeterminate:disabled,.checkbox.indeterminate:checked:disabled{background-color:var(--ic-checkbox-background-indeterminate-disabled);border:0.125rem solid var(--ic-checkbox-background-indeterminate-disabled)}.checkbox:checked:hover{background-color:var(--ic-checkbox-background-selected-hover)}.checkbox:indeterminate:hover,.checkbox.indeterminate:checked:hover{background-color:var(--ic-checkbox-background-indeterminate-hover);border:0.125rem solid var(--ic-checkbox-background-indeterminate-hover)}.checkbox:checked:active{background-color:var(--ic-checkbox-background-selected-pressed)}.checkbox:indeterminate:active,.checkbox.indeterminate:checked:active{background-color:var(--ic-checkbox-background-indeterminate-pressed);border:0.125rem solid var(--ic-checkbox-background-indeterminate-pressed)}.checkbox:hover{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-hover);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-hover)}.checkbox:active{box-shadow:0 0 0 0.25rem var(--ic-checkbox-action-background-pressed);border:var(--ic-border-width) solid\n var(--ic-checkbox-border-unselected-pressed)}.checkbox:focus{box-shadow:var(--ic-border-focus)}.checkbox:disabled{border:var(--ic-border-width) dashed\n var(--ic-checkbox-border-unselected-disabled)}.checkbox-label{color:var(--ic-checkbox-text);--ic-typography-color:var(--ic-checkbox-text)}.checkbox-label>label{padding-left:var(--ic-space-sm);display:inline-block}:host(.ic-checkbox-disabled) .checkbox-label{color:var(--ic-checkbox-text-disabled);--ic-typography-color:var(--ic-checkbox-text-disabled)}.checkbox-label:hover{cursor:pointer}.checkmark{position:relative;right:calc(-1 * var(--ic-space-lg));margin-left:calc(-1 * var(--ic-space-lg));fill:var(--ic-checkbox-icon-pressed);z-index:1;background-color:transparent;pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .checkmark{margin-left:calc(-1 * var(--ic-space-md));right:calc(-1 * var(--ic-space-md))}:host(.ic-checkbox-large) .checkmark{margin-left:calc(-1 * var(--ic-space-xl));right:calc(-1 * var(--ic-space-xl))}.indeterminate-symbol{position:relative;width:0.875rem;height:var(--ic-space-xxxs);right:-1.188rem;margin-left:-0.875rem;z-index:1;background-color:var(--ic-checkbox-icon-indeterminate);pointer-events:none;flex-shrink:0}:host(.ic-checkbox-small) .indeterminate-symbol{width:0.6rem;right:-0.8rem;margin-left:-0.6rem}:host(.ic-checkbox-large) .indeterminate-symbol{width:1.25rem;right:-1.625rem;margin-left:-1.25rem}.additional-field-wrapper{margin-left:calc(var(--ic-space-md) + var(--ic-space-lg));margin-top:calc(var(--ic-space-sm) / 2)}.branch-corner{height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-checkbox-required-bar);border-left:0.125rem solid var(--ic-checkbox-required-bar)}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-xxxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}.dynamic-text{color:var(--ic-checkbox-required-text);--ic-typography-color:var(--ic-checkbox-required-text);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}.dynamic-field-container{flex:100%}.sr-only{position:absolute;left:-9999px}@media (max-width: 576px){::slotted(*){--input-width:100%}.dynamic-field-container{flex:initial}}@media (forced-colors: active){.checkbox{-webkit-appearance:revert;-moz-appearance:revert;appearance:revert;transition:none}.checkbox:checked{transition:none}.checkbox:focus-visible{outline:0.125rem solid highlight}.checkbox:disabled:not(:checked){-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.checkmark{fill:none}.indeterminate-symbol{display:none}}.checkmark:dir(rtl){right:0}.checkbox-label:dir(rtl){padding-right:var(--ic-space-sm);padding-left:0}.indeterminate-symbol:dir(rtl){right:0.288rem}.branch-corner:dir(rtl){border-radius:0 0 0.188rem;border-right:0.125rem solid var(--ic-action-default);border-left:none}.dynamic-container:dir(rtl){margin:var(--ic-space-xxxs) var(--ic-space-sm) var(--ic-space-xxs) 0}";
|
5719
5724
|
var IcCheckboxStyle0 = icCheckboxCss;
|
5720
5725
|
|
5721
5726
|
/**
|
@@ -5834,9 +5839,9 @@ class Checkbox {
|
|
5834
5839
|
checkbox: true,
|
5835
5840
|
checked,
|
5836
5841
|
indeterminate: displayIndeterminate,
|
5837
|
-
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: id, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel ? label : undefined }), !hideLabel && (hAsync("ic-typography", { key: '2ba4862a349e6b3f34c050c434ce247687f0dfd8', class: "checkbox-label", variant: "body" }, hAsync("label", { key: 'a3f3c733b5dc0a0acdf89d3b7db603e965102618', htmlFor: id }, label)))), isSlotUsed(el, "additional-field") && (hAsync("div", { key: '
|
5842
|
+
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: id, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel ? label : undefined }), !hideLabel && (hAsync("ic-typography", { key: '2ba4862a349e6b3f34c050c434ce247687f0dfd8', class: "checkbox-label", variant: "body" }, hAsync("label", { key: 'a3f3c733b5dc0a0acdf89d3b7db603e965102618', htmlFor: id }, label)))), hAsync("span", { key: 'e671e1532bdfea4a1c5d85cbb8cde2cc41044757', id: `${id}-additional-field-description`, role: "alert", class: "sr-only" }, isDynamicAdditionalField && checked ? dynamicText : ""), isSlotUsed(el, "additional-field") && (hAsync("div", { key: 'b562e4d2bf3cb6651c6a95aedb8a8e4991d1d1e7', class: "dynamic-container", ref: (el) => (this.additionalFieldContainer = el) }, isDynamicAdditionalField && hAsync("div", { key: '9c6d8a88882fe32f1f272c3df42eeca896459284', class: "branch-corner" }), hAsync("div", { key: '7a88d8ae6fc193a3b2e08e82eb47a6b0228ce40b', class: "dynamic-field-container" }, isDynamicAdditionalField && (hAsync("ic-typography", { key: '64fdfe413653b6583789de3ee56c91c18522764e', variant: "caption" }, hAsync("p", { key: '0075205b0805a37b362658d70152bb180c290f0c', class: "dynamic-text" }, isDynamicAdditionalField && checked ? dynamicText : ""))), hAsync("div", { key: 'd6494d984bd1de5b08265fe1f8b2deb0a45e7d3a', class: {
|
5838
5843
|
"additional-field-wrapper": !isDynamicAdditionalField,
|
5839
|
-
} }, hAsync("slot", { key: '
|
5844
|
+
} }, hAsync("slot", { key: '905f210aaf41f4ba5d7c24e92bd19dbb17b81355', name: "additional-field" })))))));
|
5840
5845
|
}
|
5841
5846
|
static get delegatesFocus() { return true; }
|
5842
5847
|
get el() { return getElement(this); }
|
@@ -5873,7 +5878,7 @@ class Checkbox {
|
|
5873
5878
|
}; }
|
5874
5879
|
}
|
5875
5880
|
|
5876
|
-
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}";
|
5881
|
+
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}";
|
5877
5882
|
var IcCheckboxGroupStyle0 = icCheckboxGroupCss;
|
5878
5883
|
|
5879
5884
|
const CHECKBOX_SELECTOR = "ic-checkbox";
|
@@ -5971,11 +5976,14 @@ class CheckboxGroup {
|
|
5971
5976
|
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationStatus, validationText, } = this;
|
5972
5977
|
const describedBy = getInputDescribedByText(this.el, name, helperText !== "", validationStatus !== "");
|
5973
5978
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
5974
|
-
|
5979
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
5980
|
+
return (hAsync(Host, { key: '6d5ed4db589400cd64aeed3bccd46087858d2902', class: {
|
5975
5981
|
"ic-checkbox-group-disabled": !!disabled,
|
5976
5982
|
[`ic-checkbox-group-${size}`]: true,
|
5977
5983
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
5978
|
-
} }, renderSRText && (hAsync("span", { key: '
|
5984
|
+
} }, renderSRText && (hAsync("span", { key: '2fc368a571755ad3125067498b17b52ce8933e8f', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { key: '6b7d3155fa0479fbd51c5e5100945ee4995dfadf', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: '469a466275aa307d6ca876ec18a79bb5d29167b8' }, hAsync("ic-input-label", { key: '4cd2e89ab463ea9c7438fb1759faddf6df8750d1', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }, hAsync("slot", { key: '0b0b0a5028039ef6d487d441ebd28f47f32200b7', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '747fea859cd5a3bbd474454b408f648169b5fe45', class: "checkboxes-container" }, hAsync("slot", { key: '200a6c033ff1243e8778aec3c91a22213f5082f5' }))), showValidation && (hAsync("ic-input-validation", { key: 'df907eeb4348050b37357f27405b3ef548990163', class: {
|
5985
|
+
"show-validation": showValidation,
|
5986
|
+
}, for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
5979
5987
|
}
|
5980
5988
|
get el() { return getElement(this); }
|
5981
5989
|
static get watchers() { return {
|
@@ -6011,7 +6019,7 @@ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org
|
|
6011
6019
|
</svg>
|
6012
6020
|
`;
|
6013
6021
|
|
6014
|
-
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}}";
|
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}: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}}";
|
6015
6023
|
var IcChipStyle0 = icChipCss;
|
6016
6024
|
|
6017
6025
|
/**
|
@@ -6105,10 +6113,11 @@ class Chip {
|
|
6105
6113
|
render() {
|
6106
6114
|
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
6107
6115
|
const ariaLabel = `${label} chip`;
|
6108
|
-
return (hAsync(Host, { key: '
|
6116
|
+
return (hAsync(Host, { key: 'c7b88d4999b6de5004edc4bd27e185b9232fdaf9', class: {
|
6117
|
+
"ic-chip-dismissed": !visible,
|
6109
6118
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6110
6119
|
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
6111
|
-
} }, visible && (hAsync("div", { key: '
|
6120
|
+
} }, visible && (hAsync("div", { key: 'dbbb2bd77adea5e65d61e11b6c4b2b06fadbb9b1', class: {
|
6112
6121
|
chip: true,
|
6113
6122
|
[`${variant}`]: true,
|
6114
6123
|
[`${size}`]: true,
|
@@ -6116,7 +6125,7 @@ class Chip {
|
|
6116
6125
|
dismissible,
|
6117
6126
|
hovered,
|
6118
6127
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
6119
|
-
} }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '
|
6128
|
+
} }, 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}` : ""))));
|
6120
6129
|
}
|
6121
6130
|
static get delegatesFocus() { return true; }
|
6122
6131
|
get el() { return getElement(this); }
|
@@ -6244,10 +6253,10 @@ class DataList {
|
|
6244
6253
|
if (size === "small") {
|
6245
6254
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
6246
6255
|
}
|
6247
|
-
return (hAsync(Host, { key: '
|
6256
|
+
return (hAsync(Host, { key: 'a050ac5764ea9496f33d53abdd27f1a193185cbb', class: {
|
6248
6257
|
"ic-data-list-small": size === "small",
|
6249
6258
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6250
|
-
} }, hAsync("div", { key: '
|
6259
|
+
} }, hAsync("div", { key: '41836f9dce80428fe7f266601c779255195f2a1a', class: "heading", id: "data-list-heading" }, hAsync("slot", { key: '0bd2c17f6dc9767364dc021695ac5839acb3040f', name: "heading" }, hAsync("ic-typography", { key: '65c4dd118e264af61e6494a81b60e573361ea9d3', variant: "h3" }, heading))), hAsync("div", { key: '5be1cea50a4d8beef81c14da5e13a74a75347244', class: "divider" }), hAsync("ul", { key: '9b71c57f882aec9aecb018e4a1fb98ff66c6aaf1', "aria-labelledby": "data-list-heading", class: "rows" }, hAsync("slot", { key: '729e8422e911d6dc7a64e568af78f9e7e1ba32c7' }))));
|
6251
6260
|
}
|
6252
6261
|
get el() { return getElement(this); }
|
6253
6262
|
static get style() { return IcDataListStyle0; }
|
@@ -6337,12 +6346,12 @@ class DataRow {
|
|
6337
6346
|
}
|
6338
6347
|
render() {
|
6339
6348
|
const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
|
6340
|
-
return (hAsync(Host, { key: '
|
6349
|
+
return (hAsync(Host, { key: '8a70c9ceda7aebc616eb335f08e626952c87ddf3', class: {
|
6341
6350
|
["ic-data-row-small"]: size === "small",
|
6342
6351
|
["breakpoint-medium"]: listSize === "m",
|
6343
6352
|
["breakpoint-xs"]: listSize === "xs",
|
6344
6353
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6345
|
-
}, role: "listitem" }, hAsync("div", { key: '
|
6354
|
+
}, role: "listitem" }, hAsync("div", { key: 'b2f75779fb6392023c42d9c1f8bf58a98b431797', class: "data" }, hAsync("div", { key: '059aa84f8a91c9a7cdaea4e118287ea460f1bcdd', class: "text-cells" }, (isSlotUsed(el, "label") || label) && renderCellContent("label"), (isSlotUsed(el, "value") || value) && renderCellContent("value")), hasEndComponent && (hAsync("div", { key: '3bcb9b239d836434ceae03ecd35c1bdc42d73699', class: "end-component" }, hAsync("slot", { key: '453e0c7e4d6b875ddfc319a12dc173913057b8bd', name: "end-component" })))), hAsync("div", { key: 'f16fd733c8ffd0e8ed8e7461099a3b9b81809cb3', class: "divider" })));
|
6346
6355
|
}
|
6347
6356
|
get el() { return getElement(this); }
|
6348
6357
|
static get style() { return IcDataRowStyle0; }
|
@@ -6389,6 +6398,7 @@ class Dialog {
|
|
6389
6398
|
this.IC_ACCORDION_GROUP = "IC-ACCORDION-GROUP";
|
6390
6399
|
this.IC_CHECKBOX = "IC-CHECKBOX";
|
6391
6400
|
this.IC_SEARCH_BAR = "IC-SEARCH-BAR";
|
6401
|
+
this.IC_TAB_CONTEXT = "IC-TAB-CONTEXT";
|
6392
6402
|
this.resizeObserver = null;
|
6393
6403
|
this.dialogRendered = false;
|
6394
6404
|
this.fadeIn = false;
|
@@ -6529,7 +6539,7 @@ class Dialog {
|
|
6529
6539
|
var _a;
|
6530
6540
|
this.interactiveElementList = Array.from(((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll("ic-button")) || []);
|
6531
6541
|
const slottedInteractiveElements = Array.from(this.el.querySelectorAll(`a[href], button, input:not(.ic-input), textarea, select, details, [tabindex]:not([tabindex="-1"]),
|
6532
|
-
ic-button, ic-checkbox, ic-select, ic-search-bar, ic-tab-
|
6542
|
+
ic-button, ic-checkbox, ic-select, ic-search-bar, ic-tab-context,
|
6533
6543
|
ic-back-to-top, ic-breadcrumb, ic-chip[dismissible="true"], ic-footer-link, ic-link, ic-navigation-button,
|
6534
6544
|
ic-navigation-item, ic-switch, ic-text-field, ic-accordion-group, ic-accordion, ic-date-input, ic-date-picker`));
|
6535
6545
|
if (slottedInteractiveElements.length > 0) {
|
@@ -6583,6 +6593,7 @@ class Dialog {
|
|
6583
6593
|
case this.IC_SEARCH_BAR:
|
6584
6594
|
case this.IC_TEXT_FIELD:
|
6585
6595
|
case this.IC_CHECKBOX:
|
6596
|
+
case this.IC_TAB_CONTEXT:
|
6586
6597
|
element.setFocus();
|
6587
6598
|
break;
|
6588
6599
|
default:
|
@@ -6598,7 +6609,7 @@ class Dialog {
|
|
6598
6609
|
[`${size}`]: true,
|
6599
6610
|
"disable-height-constraint": !!disableHeightConstraint,
|
6600
6611
|
"disable-width-constraint": !!disableWidthConstraint,
|
6601
|
-
}, "aria-labelledby": "dialog-label dialog-heading", "aria-describedby": "dialog-alert dialog-content", ref: (el) => (this.dialogEl = el) }, hAsync("div", { class: "heading-area" }, hAsync("div", { class: "heading-content" }, hAsync("div", { class: "label" }, hAsync("slot", { name: "label" }, hAsync("ic-typography", { variant: "label", id: "dialog-label" }, label))), hAsync("div", { class: "heading" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h4", id: "dialog-heading" }, heading)))), !hideCloseButton && (hAsync("ic-button", { class: "close-icon", variant: "icon", innerHTML: closeIcon, "aria-label": dismissLabel, onClick: closeIconClick, "data-gets-focus": destructive || (hideDefaultControls && !controlsSlotUsed)
|
6612
|
+
}, "aria-labelledby": "dialog-label dialog-heading", "aria-describedby": "dialog-alert dialog-content", ref: (el) => (this.dialogEl = el) }, hAsync("div", { class: "heading-area" }, hAsync("div", { class: "heading-content" }, hAsync("div", { class: "label" }, hAsync("slot", { name: "label" }, hAsync("ic-typography", { variant: "label", id: "dialog-label" }, label))), hAsync("div", { class: "heading" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h4", id: "dialog-heading" }, heading)))), !hideCloseButton && (hAsync("ic-button", { class: "close-icon", variant: "icon-tertiary", innerHTML: closeIcon, "aria-label": dismissLabel, onClick: closeIconClick, "data-gets-focus": destructive || (hideDefaultControls && !controlsSlotUsed)
|
6602
6613
|
? ""
|
6603
6614
|
: null }))), hAsync("div", { class: "content-area" }, isSlotUsed(this.el, "alert") && hAsync("slot", { name: "alert" }), hAsync("div", { id: "dialog-content" }, hAsync("slot", null))), (controlsSlotUsed || !hideDefaultControls) && (hAsync("div", { class: {
|
6604
6615
|
[DIALOG_CONTROLS]: true,
|
@@ -6704,7 +6715,7 @@ class Dialog {
|
|
6704
6715
|
}
|
6705
6716
|
render() {
|
6706
6717
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme } = this;
|
6707
|
-
return (hAsync(Host, { key: '
|
6718
|
+
return (hAsync(Host, { key: '6de63d3d94afa349dc9bb5b30296837bbf89f810', class: {
|
6708
6719
|
"ic-dialog-hidden": !dialogRendered,
|
6709
6720
|
"ic-dialog-fade-in": fadeIn,
|
6710
6721
|
"disable-height-constraint": !!disableHeightConstraint,
|
@@ -6904,11 +6915,11 @@ class EmptyState {
|
|
6904
6915
|
}
|
6905
6916
|
render() {
|
6906
6917
|
const { aligned, body, maxLines, heading, imageSize, subheading, theme } = this;
|
6907
|
-
return (hAsync(Host, { key: '
|
6918
|
+
return (hAsync(Host, { key: 'd1f0ef089d59f00d57b70a44c22f248ce12314fa', class: {
|
6908
6919
|
[`ic-empty-state-${aligned}`]: true,
|
6909
6920
|
[`image-${imageSize}`]: isSlotUsed(this.el, "image"),
|
6910
6921
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6911
|
-
} }, isSlotUsed(this.el, "image") && hAsync("slot", { key: '
|
6922
|
+
} }, isSlotUsed(this.el, "image") && hAsync("slot", { key: '07406cfb8a629a854fe3e0b500f5a21db373e9a7', name: "image" }), hAsync("div", { key: 'cce8db2f16fd451a69c713792f42d4ca4a1d9e5e' }, hAsync("slot", { key: '6bb39d26bb009d445bce71434e5db8cf71829b2a', name: "heading" }, hAsync("ic-typography", { key: '46ffaf055facc3884b3b53041e89c5309db36869', variant: "h4", class: "empty-state-heading" }, heading)), hAsync("slot", { key: '2d45d9838c8a13d2e4e916519a388c1a234eecb8', name: "subheading" }, hAsync("ic-typography", { key: 'c3f0bac962303ac98f451821eb76d9ee731f9e19', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), hAsync("slot", { key: 'a155c2825af5c81b8a19da1aa3b0878dc7abb478', name: "body" }, hAsync("ic-typography", { key: '2336a276e810acfa4bde850e78f9332acf4551ce', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed(this.el, "actions") && (hAsync("div", { key: '75a4a0fce3f0a4206c35647de547e5caa76a015e', class: "action-area" }, hAsync("slot", { key: '2a0b08b6c6ade82137a5ea9337549092953a1a46', name: "actions" })))));
|
6912
6923
|
}
|
6913
6924
|
get el() { return getElement(this); }
|
6914
6925
|
static get style() { return IcEmptyStateStyle0; }
|
@@ -7101,12 +7112,12 @@ class FooterLink {
|
|
7101
7112
|
const { footerConfig, href, hreflang, referrerpolicy, rel, target, download, } = this;
|
7102
7113
|
const { small, grouped } = footerConfig;
|
7103
7114
|
const isLogoLink = !!this.el.closest("div[slot='logo']");
|
7104
|
-
return (hAsync(Host, { key: '
|
7115
|
+
return (hAsync(Host, { key: 'da89e5595b7e1b6308d72243462bd0a2f989b501', class: {
|
7105
7116
|
"footer-link": true,
|
7106
7117
|
[`footer-link-${grouped ? "grouped" : "ungrouped"}-${small ? "small" : "sparse"}`]: true,
|
7107
7118
|
[`footer-link-${this.foregroundColor}`]: true,
|
7108
7119
|
"footer-logo-link": isLogoLink,
|
7109
|
-
}, role: "listitem" }, hAsync("ic-link", { key: '
|
7120
|
+
}, role: "listitem" }, hAsync("ic-link", { key: '70cc7b6f5a7710921915f0697a2cf5b55e872d3d', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, hAsync("slot", { key: 'd21bfcaf85a37aebd6138770d80c54e779df714c' }))));
|
7110
7121
|
}
|
7111
7122
|
static get delegatesFocus() { return true; }
|
7112
7123
|
get el() { return getElement(this); }
|
@@ -7281,18 +7292,18 @@ class Hero {
|
|
7281
7292
|
"background-position": scrollFactor,
|
7282
7293
|
};
|
7283
7294
|
}
|
7284
|
-
return (hAsync(Host, { key: '
|
7295
|
+
return (hAsync(Host, { key: 'aee3d892e9e8aeda5b348da837eee5c8c1e8735a', class: {
|
7285
7296
|
[`ic-hero-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
7286
7297
|
["has-background-image"]: backgroundImage !== undefined,
|
7287
7298
|
["has-right-content"]: this.rightContent,
|
7288
7299
|
["ic-hero-small"]: size === "small",
|
7289
7300
|
["secondary-heading"]: !!secondaryHeading,
|
7290
|
-
}, style: style }, hAsync("ic-section-container", { key: '
|
7301
|
+
}, style: style }, hAsync("ic-section-container", { key: '6f588f23372a118fbf316d0c5202d17af21f4e43', aligned: aligned, fullHeight: true, class: "section-container" }, hAsync("div", { key: '1c34b2d8b07a045c1c801d99b4e1d707e1a99e88', class: {
|
7291
7302
|
["left-container"]: true,
|
7292
7303
|
["left-container-full-width"]: this.leftContentFullWidth,
|
7293
|
-
} }, hAsync("div", { key: '
|
7304
|
+
} }, hAsync("div", { key: '72acdd6b683c699d5e799aa83546bde5b52962db', class: "heading" }, hAsync("slot", { key: '5915be3f3cd2a5329ba8beb46bc0b704693a7fec', name: "heading" }, hAsync("ic-typography", { key: 'f9b16a498674c7a29e669be2b63ae3d730cbacba', variant: size === "small" ? "h2" : "h1", class: {
|
7294
7305
|
["heading-bottom-spacing"]: size !== "small",
|
7295
|
-
} }, hAsync("h2", { key: '
|
7306
|
+
} }, hAsync("h2", { key: '3ed6060a057a88fd332f8ef6b1d914702e6d3f40' }, heading)))), hAsync("div", { key: 'a2ed35fcf9ff99f56cf80264a6374c2dc3cbfcbe', class: "subheading" }, hAsync("slot", { key: '58027e2b2eeb3c49bd5322019435cb9de18cb77c', name: "subheading" }, hAsync("ic-typography", { key: 'b04e16640e640e623142b2f5555e9a644c1a3929', variant: "body" }, subheading))), hAsync("div", { key: '6d87fcd8ffd64077e483471c7d28ab41c7004b98', class: "interaction-container" }, hAsync("slot", { key: 'e2421373570e5cf84e093971d70a75c542a0a0ba', name: "interaction" }))), (isPropDefined(secondaryHeading) || this.rightContent) && (hAsync("div", { key: 'ef2bdb160da3c3558f4764b85cebb01ebdfc086f', class: "right-container" }, hAsync("slot", { key: 'dc5991ad4cbc856390335cece65e15400d3752ce', name: "secondary" }, secondaryHeading && (hAsync("div", { key: '059273f8fc66599aa67a11d0bfeaab113a7fd21d', class: "secondary-container" }, hAsync("div", { key: '966adc1a6f9c930c52766dbc2f884691a60f58ac', class: "secondary-heading" }, hAsync("ic-typography", { key: '80fd633680cc4888363567e532db41806be62c2e', variant: "h4" }, hAsync("h3", { key: 'a72f5272444bbfc0941fc552a47d2e8863b8e256' }, secondaryHeading))), hAsync("div", { key: '60fac396776b1eaf7950675f880a1338409f0dbd', class: "secondary-subheading" }, hAsync("ic-typography", { key: '7178ff3785d3d7d5dd9b737e618a720ce64de9c8', variant: "subtitle-small" }, secondarySubheading))))))))));
|
7296
7307
|
}
|
7297
7308
|
get el() { return getElement(this); }
|
7298
7309
|
static get style() { return IcHeroStyle0; }
|
@@ -7483,22 +7494,22 @@ class HorizontalScroll {
|
|
7483
7494
|
}
|
7484
7495
|
render() {
|
7485
7496
|
const { firstItemVisible, lastItemVisible, itemOverflow } = this;
|
7486
|
-
return (hAsync(Host, { key: '
|
7497
|
+
return (hAsync(Host, { key: '70a4e7c8a5e6e69d64d78375798498b7807ae16a', class: {
|
7487
7498
|
["ic-horizontal-scroll-visible"]: itemOverflow,
|
7488
7499
|
["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum.Dark,
|
7489
7500
|
["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum.Light,
|
7490
7501
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
7491
|
-
} }, hAsync("div", { key: '
|
7502
|
+
} }, hAsync("div", { key: '586bf3284c05ffad1ebd3c61e44e992aa9d71c25', "aria-hidden": "true", class: {
|
7492
7503
|
["scroll-container-left"]: true,
|
7493
7504
|
["hidden"]: !itemOverflow,
|
7494
7505
|
["disabled"]: firstItemVisible,
|
7495
|
-
}, role: "tab" }, hAsync("ic-button", { key: '
|
7506
|
+
}, role: "tab" }, hAsync("ic-button", { key: '0125b0d48b7ae82fb580bc890450d1fb14f71a5f', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
|
7496
7507
|
? "dark"
|
7497
|
-
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: '
|
7508
|
+
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: '363c0c48d85e455684573a12554afcf765c4ae95', class: "scroll-splitter-left" })), hAsync("slot", { key: 'b12cc6de29b6345e3ef5ece250f4998252d9a54b' }), hAsync("div", { key: '47d5456630571ac7e877f791401129ec6524d52b', "aria-hidden": "true", class: {
|
7498
7509
|
["scroll-container-right"]: true,
|
7499
7510
|
["hidden"]: !itemOverflow,
|
7500
7511
|
["disabled"]: lastItemVisible,
|
7501
|
-
}, role: "tab" }, hAsync("span", { key: '
|
7512
|
+
}, role: "tab" }, hAsync("span", { key: '13b35c95c35dc6a44464996880c7f3a3fc671b42', class: "scroll-splitter-right" }), hAsync("ic-button", { key: '95434e1cf988eaa4049bcb6926d515182a7f7072', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll right", theme: this.theme === "light" || this.theme === "inherit"
|
7502
7513
|
? "dark"
|
7503
7514
|
: "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
|
7504
7515
|
}
|
@@ -7573,15 +7584,15 @@ class InputComponentContainer {
|
|
7573
7584
|
}
|
7574
7585
|
render() {
|
7575
7586
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
7576
|
-
return (hAsync(Host, { key: '
|
7587
|
+
return (hAsync(Host, { key: '82e6604ab956d7648209ae1214797d48ce4a169c', class: {
|
7577
7588
|
[`ic-input-component-container-${size}`]: true,
|
7578
7589
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
7579
7590
|
"ic-input-component-container-disabled": !!disabled,
|
7580
7591
|
"ic-input-component-container-readonly": !!readonly,
|
7581
7592
|
"ic-input-component-container-multiline": !!multiLine,
|
7582
7593
|
"ic-input-component-container-full-width": !!fullWidth,
|
7583
|
-
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '
|
7584
|
-
validationStatus === IcInformationStatus.Success && (hAsync("span", { key: '
|
7594
|
+
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '0fd329a8f1397ab2b6f7b4f3fd62d180003ef7e4', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (hAsync("div", { key: '3af5861c01b3e6338e20288c0577d4554d9357e6', class: "icon-container" }, hAsync("slot", { key: '25bd5414058904fb5ed05f0e4e7fda6fc4966fbb', name: "left-icon" }))), hAsync("slot", { key: '2a63ea395d97ca2f3121f30fae1a3ac8bdfd7599' }), validationInline &&
|
7595
|
+
validationStatus === IcInformationStatus.Success && (hAsync("span", { key: 'ac962172c01b7cc0abf776b7a5ff0e58cd996ad7', class: "inline-success", innerHTML: successIcon })))));
|
7585
7596
|
}
|
7586
7597
|
get el() { return getElement(this); }
|
7587
7598
|
static get watchers() { return {
|
@@ -7622,11 +7633,11 @@ class InputContainer {
|
|
7622
7633
|
this.readonly = false;
|
7623
7634
|
}
|
7624
7635
|
render() {
|
7625
|
-
return (hAsync(Host, { key: '
|
7636
|
+
return (hAsync(Host, { key: 'd7a6f03073013efef8534f6305e64f66d2b58b91' }, hAsync("div", { key: 'f93b5ad4fc27eed8fabf3fd83de73906b4592ca4', class: {
|
7626
7637
|
["component-container"]: true,
|
7627
7638
|
["disabled"]: !!this.disabled,
|
7628
7639
|
["readonly"]: !!this.readonly,
|
7629
|
-
} }, hAsync("slot", { key: '
|
7640
|
+
} }, hAsync("slot", { key: '59074f71d915aebc3205308c0406b4f6ab2a73ae' }))));
|
7630
7641
|
}
|
7631
7642
|
static get style() { return IcInputContainerStyle0; }
|
7632
7643
|
static get cmpMeta() { return {
|
@@ -7709,11 +7720,11 @@ class InputLabel {
|
|
7709
7720
|
"helpertext-readonly": readonly,
|
7710
7721
|
};
|
7711
7722
|
const helperTextSlot = this.el.querySelector("slot[name='helper-text']");
|
7712
|
-
return (hAsync(Host, { key: '
|
7723
|
+
return (hAsync(Host, { key: 'b4ae951684bc9fbacd077fd7586a60a680cb1114', class: {
|
7713
7724
|
"ic-input-label-disabled": !!disabled,
|
7714
7725
|
"ic-input-label-readonly": readonly,
|
7715
7726
|
"with-helper": this.isHelperTextSlotUsed(helperTextSlot) || helperText !== "",
|
7716
|
-
} }, !hideLabel && (hAsync("ic-typography", { key: '
|
7727
|
+
} }, !hideLabel && (hAsync("ic-typography", { key: 'dd5d6d73707aadd9cc59225224fffadefecda9c7', variant: "label", class: {
|
7717
7728
|
"readonly-label": readonly,
|
7718
7729
|
"error-label": status === "error" && !(readonly || disabled),
|
7719
7730
|
} }, readonly || !useLabelTag ? (`${labelText}`) : (hAsync("label", { htmlFor: this.for }, labelText)))), this.isHelperTextSlotUsed(helperTextSlot) ? (hAsync("span", { id: helperTextId, class: helperTextClass }, hAsync("slot", { name: "helper-text" }))) : (helperText !== "" && (hAsync("ic-typography", { variant: "caption", class: helperTextClass }, hAsync("span", { id: helperTextId }, helperText))))));
|
@@ -7740,14 +7751,15 @@ class InputLabel {
|
|
7740
7751
|
}; }
|
7741
7752
|
}
|
7742
7753
|
|
7743
|
-
const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);margin-top:var(--ic-space-xs)
|
7754
|
+
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}";
|
7744
7755
|
var IcInputValidationStyle0 = icInputValidationCss;
|
7745
7756
|
|
7746
|
-
const
|
7757
|
+
const ICON = {
|
7747
7758
|
[IcInformationStatus.Warning]: warningIcon$1,
|
7748
7759
|
[IcInformationStatus.Error]: errorIcon,
|
7749
7760
|
[IcInformationStatus.Success]: successIcon,
|
7750
7761
|
};
|
7762
|
+
const INVISIBLE_CHAR = "\u200B";
|
7751
7763
|
/**
|
7752
7764
|
* @slot validation-message-adornment - Content will be placed to the right of the validation message.
|
7753
7765
|
*/
|
@@ -7767,21 +7779,34 @@ class InputValidation {
|
|
7767
7779
|
*/
|
7768
7780
|
this.status = "";
|
7769
7781
|
}
|
7782
|
+
watchMessageHandler(newValue) {
|
7783
|
+
// Force detectable DOM changes
|
7784
|
+
// Invisible character used as screen readers can ignore whitespace changes e.g. "" and " "
|
7785
|
+
this.messageEl.textContent = INVISIBLE_CHAR;
|
7786
|
+
setTimeout(() => {
|
7787
|
+
this.messageEl.textContent = newValue;
|
7788
|
+
}, 200); // Delay to help ensure screen readers detect change
|
7789
|
+
}
|
7770
7790
|
componentDidLoad() {
|
7771
7791
|
onComponentRequiredPropUndefined([{ prop: this.message, propName: "message" }], "Input Validation");
|
7792
|
+
this.messageEl.textContent = INVISIBLE_CHAR;
|
7772
7793
|
}
|
7773
7794
|
render() {
|
7774
7795
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
7775
|
-
const displayIcon = status !== "" ?
|
7776
|
-
return (hAsync(Host, { key: '
|
7796
|
+
const displayIcon = status !== "" ? ICON[status] : "";
|
7797
|
+
return (hAsync(Host, { key: 'f1ba7e992a65cbd63d86411844668a0db4944cf2', class: {
|
7777
7798
|
[`ic-input-validation-${status}`]: status !== "",
|
7778
7799
|
"ic-input-validation-full-width": !!fullWidth,
|
7779
|
-
|
7800
|
+
"ic-input-validation-with-status": status !== "",
|
7801
|
+
} }, displayIcon !== "" && (hAsync("span", { key: '43bf05c319e9f4cdb7f6e5affd403d745b7dac00', class: {
|
7780
7802
|
"status-icon": true,
|
7781
7803
|
[`icon-${status}`]: true,
|
7782
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
7804
|
+
}, 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" })));
|
7783
7805
|
}
|
7784
7806
|
get el() { return getElement(this); }
|
7807
|
+
static get watchers() { return {
|
7808
|
+
"message": ["watchMessageHandler"]
|
7809
|
+
}; }
|
7785
7810
|
static get style() { return IcInputValidationStyle0; }
|
7786
7811
|
static get cmpMeta() { return {
|
7787
7812
|
"$flags$": 4,
|
@@ -7928,10 +7953,10 @@ class LayoutGrid {
|
|
7928
7953
|
}
|
7929
7954
|
render() {
|
7930
7955
|
const { aligned, fullHeight } = this;
|
7931
|
-
return (hAsync(Host, { key: '
|
7956
|
+
return (hAsync(Host, { key: 'c7903c71e7a267ce14d624e371128b66b990319e', class: {
|
7932
7957
|
[`ic-layout-grid-aligned-${aligned}`]: true,
|
7933
7958
|
["ic-layout-grid-no-vertical-padding"]: !!fullHeight,
|
7934
|
-
} }, hAsync("slot", { key: '
|
7959
|
+
} }, hAsync("slot", { key: '7d501b244c1e6631ac1f712707b816be89014298' })));
|
7935
7960
|
}
|
7936
7961
|
get el() { return getElement(this); }
|
7937
7962
|
static get watchers() { return {
|
@@ -8011,9 +8036,9 @@ class LayoutGridItem {
|
|
8011
8036
|
}
|
8012
8037
|
render() {
|
8013
8038
|
const { hideInMobileMode } = this;
|
8014
|
-
return (hAsync(Host, { key: '
|
8039
|
+
return (hAsync(Host, { key: 'a6e63c7a2e569fefef8bd1f801719ec0cfc999f2', class: {
|
8015
8040
|
"ic-layout-grid-hide-in-mobile": !!hideInMobileMode,
|
8016
|
-
} }, hAsync("slot", { key: '
|
8041
|
+
} }, hAsync("slot", { key: '976299cc75e2a275ce07dc9bb4ccde082c559175' })));
|
8017
8042
|
}
|
8018
8043
|
get el() { return getElement(this); }
|
8019
8044
|
static get watchers() { return {
|
@@ -8126,7 +8151,7 @@ class Link {
|
|
8126
8151
|
}
|
8127
8152
|
render() {
|
8128
8153
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
8129
|
-
return (hAsync(Host, { key: '
|
8154
|
+
return (hAsync(Host, { key: '17cbca6abdc9b48879a9d307c5bb73fada03aa2d', class: {
|
8130
8155
|
["ic-link"]: true,
|
8131
8156
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
8132
8157
|
["ic-link-monochrome"]: !!monochrome,
|
@@ -8341,23 +8366,23 @@ class LoadingIndicator {
|
|
8341
8366
|
}
|
8342
8367
|
render() {
|
8343
8368
|
const { circularDiameter, circularDimensions: { x, y, r, dashArray, dashOffset }, description, fullWidth, indicatorLabel, innerLabel, label, max, min, monochrome, progress, size, theme, type, } = this;
|
8344
|
-
return (hAsync(Host, { key: '
|
8369
|
+
return (hAsync(Host, { key: '8e5015de29e0c003ae813d95e215031276669fed', class: {
|
8345
8370
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
8346
8371
|
"ic-loading-indicator-full-width": fullWidth,
|
8347
8372
|
"ic-loading-indicator-label": !!label,
|
8348
8373
|
"ic-loading-indicator-monochrome": monochrome,
|
8349
|
-
} }, hAsync("div", { key: '
|
8374
|
+
} }, hAsync("div", { key: 'fdd7384e07827cfc6f32cd7f7fde71807a441e7d', class: "ic-loading-container", part: "ic-loading-container" }, hAsync("div", { key: 'dd4b7dae54199c8313a6bd9c5a2133b11de29b57', ref: (el) => (this.outerElement = el), class: {
|
8350
8375
|
[`ic-loading-${type}-outer`]: true,
|
8351
8376
|
[progress === undefined ? "indeterminate" : "determinate"]: true,
|
8352
|
-
}, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, hAsync("div", { key: '
|
8377
|
+
}, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, hAsync("div", { key: 'ba4e9f7ec6e1cdafdd844bb2e357822cf316128c', ref: (el) => (this.innerElement = el), class: {
|
8353
8378
|
[`ic-loading-${type}-inner`]: true,
|
8354
8379
|
"inner-label": !!innerLabel,
|
8355
|
-
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: '
|
8380
|
+
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: '096a8f75dcbdaec7c0d2f71dcd447e08e279a41d', variant: "subtitle-small", class: "inner-text" }, innerLabel)), type === "circular" && (hAsync("svg", { key: 'c048f6de73691df17ec79f75860d177e9c83bcc5', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, hAsync("circle", { key: '5c52a4f617319167ab495785c736601f9d12bf08', cx: x, cy: y, r: r }), hAsync("circle", { key: '7839b8b36e4306e224639f8a347ccde726aaa09c', style: {
|
8356
8381
|
"--circular-steps-max": progress ? `${max}` : undefined,
|
8357
8382
|
"--progress-value": progress !== undefined ? `${progress}` : undefined,
|
8358
8383
|
"--stroke-dasharray": dashArray,
|
8359
8384
|
"--stroke-dashoffset": dashOffset,
|
8360
|
-
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: '
|
8385
|
+
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: '868967e2a21589616e31a9b761849a69b458a2c1', id: "ic-loading-label", class: "ic-loading-label", role: "alert", variant: this.getLabelVariant() }, hAsync("p", { key: '439329efda39e3ae81e56f494c8cbe5000265aa9' }, indicatorLabel))))));
|
8361
8386
|
}
|
8362
8387
|
get el() { return getElement(this); }
|
8363
8388
|
static get watchers() { return {
|
@@ -10192,7 +10217,1382 @@ var checkIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2
|
|
10192
10217
|
</svg>
|
10193
10218
|
`;
|
10194
10219
|
|
10195
|
-
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));color:var(--menu-item-text-color, var(--ic-menu-list-option-text-color));--ic-typography-color:var(\n --menu-item-text-color,\n var(--ic-menu-list-option-text-color)\n );background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.ic-menu-open.sc-ic-menu-h:not(.ic-menu-no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.ic-select-select-all-focused.sc-ic-menu-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu #retry-button.sc-ic-menu::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-h{inset:auto !important}.menu.sc-ic-menu{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu:has(+.option-bar).sc-ic-menu{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu{overflow-y:auto}.menu.sc-ic-menu:focus-visible{outline:none}.ic-menu-open.sc-ic-menu-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid\n var(--menu-border-color, var(--ic-menu-border-color));transition:box-shadow var(--ic-easing-transition-fast)}.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.ic-menu-open.sc-ic-menu-h .option-bar.sc-ic-menu{visibility:visible}.ic-menu-open.sc-ic-menu-h .select-all-button.sc-ic-menu{display:block}.ic-menu-full-width.sc-ic-menu-h{width:100%}.option.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center}.loading-option.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.option.sc-ic-menu:not(.loading-option){justify-content:space-between}.ic-menu-small.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.ic-menu-large.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu:last-child{border-radius:0 0 1px 1px}.sc-ic-menu:not(.menu:has(+.option-bar)).sc-ic-menu .option.sc-ic-menu:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu:not(.disabled-option):hover{background-color:var(--ic-menu-list-option-hover-background-color)}.option.sc-ic-menu:not(.disabled-option):active{background-color:var(--ic-menu-list-option-pressed-background-color)}.option.sc-ic-menu:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu:not(.disabled-option) .option-description.sc-ic-menu{--ic-typography-color:var(\n --menu-item-desc-text-color,\n var(--ic-menu-list-option-description-text-color)\n )}.option.sc-ic-menu .option-label.sc-ic-menu{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu .option-label.sc-ic-menu ic-typography.sc-ic-menu{max-width:100%;word-wrap:break-word}.option.sc-ic-menu .option-element.sc-ic-menu{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu .option-icon.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxxs)}.option-text-container.sc-ic-menu{pointer-events:none;width:100%}.option-text-container.show-check-icon.sc-ic-menu{width:calc(var(--ic-space-lg) * 10 + var(--ic-space-xl))}.option.loading-option.sc-ic-menu .option-text-container.sc-ic-menu{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-menu-loading-list-option-text-color);--ic-typography-color:var(--ic-menu-loading-list-option-text-color)}.error-icon-svg.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-atoms-status-icon-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu{display:flex}.check-icon.sc-ic-menu{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-xs);pointer-events:none}.focused-option.sc-ic-menu .check-icon.sc-ic-menu *.sc-ic-menu{fill:currentcolor}.option-group-title.sc-ic-menu{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);--ic-typography-color:var(--ic-menu-option-group-label-text-color)}.ic-menu-small.sc-ic-menu-h .option-group-title.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu{border-bottom:var(--ic-menu-last-recommended-option-border)}.disabled-option.sc-ic-menu{color:var(--ic-atoms-list-option-text-disabled-light);--ic-typography-color:var(--ic-atoms-list-option-text-disabled-light);cursor:default;pointer-events:none}.focused-option.sc-ic-menu,.focused-option.sc-ic-menu .option-description.sc-ic-menu{background-color:var(--ic-color-focus-inner) !important;color:var(--ic-atoms-list-option-text-focused-light) !important;--ic-typography-color:var(\n --ic-atoms-list-option-text-focused-light\n ) !important}.no-results.sc-ic-menu-h li.sc-ic-menu{cursor:no-drop}.no-results.sc-ic-menu-h li.sc-ic-menu:hover{background-color:transparent}.option-bar.sc-ic-menu{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-menu-option-bar-background-color);visibility:hidden;border-bottom:var(--ic-border-width) solid\n var(--ic-menu-option-bar-divider-color);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.ic-menu-large.sc-ic-menu-h .option-bar.sc-ic-menu{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu{display:none}.select-all-button.sc-ic-menu:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu:focus{outline:none;border:0.125rem solid transparent}.disabled-option.sc-ic-menu{color:GrayText;--ic-typography-color:GrayText}}";
|
10220
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
10221
|
+
|
10222
|
+
var purify = {exports: {}};
|
10223
|
+
|
10224
|
+
/*! @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 */
|
10225
|
+
|
10226
|
+
(function (module, exports) {
|
10227
|
+
(function (global, factory) {
|
10228
|
+
module.exports = factory() ;
|
10229
|
+
})(commonjsGlobal, (function () {
|
10230
|
+
const {
|
10231
|
+
entries,
|
10232
|
+
setPrototypeOf,
|
10233
|
+
isFrozen,
|
10234
|
+
getPrototypeOf,
|
10235
|
+
getOwnPropertyDescriptor
|
10236
|
+
} = Object;
|
10237
|
+
let {
|
10238
|
+
freeze,
|
10239
|
+
seal,
|
10240
|
+
create
|
10241
|
+
} = Object; // eslint-disable-line import/no-mutable-exports
|
10242
|
+
let {
|
10243
|
+
apply,
|
10244
|
+
construct
|
10245
|
+
} = typeof Reflect !== 'undefined' && Reflect;
|
10246
|
+
if (!freeze) {
|
10247
|
+
freeze = function freeze(x) {
|
10248
|
+
return x;
|
10249
|
+
};
|
10250
|
+
}
|
10251
|
+
if (!seal) {
|
10252
|
+
seal = function seal(x) {
|
10253
|
+
return x;
|
10254
|
+
};
|
10255
|
+
}
|
10256
|
+
if (!apply) {
|
10257
|
+
apply = function apply(fun, thisValue, args) {
|
10258
|
+
return fun.apply(thisValue, args);
|
10259
|
+
};
|
10260
|
+
}
|
10261
|
+
if (!construct) {
|
10262
|
+
construct = function construct(Func, args) {
|
10263
|
+
return new Func(...args);
|
10264
|
+
};
|
10265
|
+
}
|
10266
|
+
const arrayForEach = unapply(Array.prototype.forEach);
|
10267
|
+
const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
10268
|
+
const arrayPop = unapply(Array.prototype.pop);
|
10269
|
+
const arrayPush = unapply(Array.prototype.push);
|
10270
|
+
const arraySplice = unapply(Array.prototype.splice);
|
10271
|
+
const stringToLowerCase = unapply(String.prototype.toLowerCase);
|
10272
|
+
const stringToString = unapply(String.prototype.toString);
|
10273
|
+
const stringMatch = unapply(String.prototype.match);
|
10274
|
+
const stringReplace = unapply(String.prototype.replace);
|
10275
|
+
const stringIndexOf = unapply(String.prototype.indexOf);
|
10276
|
+
const stringTrim = unapply(String.prototype.trim);
|
10277
|
+
const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
|
10278
|
+
const regExpTest = unapply(RegExp.prototype.test);
|
10279
|
+
const typeErrorCreate = unconstruct(TypeError);
|
10280
|
+
/**
|
10281
|
+
* Creates a new function that calls the given function with a specified thisArg and arguments.
|
10282
|
+
*
|
10283
|
+
* @param func - The function to be wrapped and called.
|
10284
|
+
* @returns A new function that calls the given function with a specified thisArg and arguments.
|
10285
|
+
*/
|
10286
|
+
function unapply(func) {
|
10287
|
+
return function (thisArg) {
|
10288
|
+
if (thisArg instanceof RegExp) {
|
10289
|
+
thisArg.lastIndex = 0;
|
10290
|
+
}
|
10291
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
10292
|
+
args[_key - 1] = arguments[_key];
|
10293
|
+
}
|
10294
|
+
return apply(func, thisArg, args);
|
10295
|
+
};
|
10296
|
+
}
|
10297
|
+
/**
|
10298
|
+
* Creates a new function that constructs an instance of the given constructor function with the provided arguments.
|
10299
|
+
*
|
10300
|
+
* @param func - The constructor function to be wrapped and called.
|
10301
|
+
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
10302
|
+
*/
|
10303
|
+
function unconstruct(func) {
|
10304
|
+
return function () {
|
10305
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
10306
|
+
args[_key2] = arguments[_key2];
|
10307
|
+
}
|
10308
|
+
return construct(func, args);
|
10309
|
+
};
|
10310
|
+
}
|
10311
|
+
/**
|
10312
|
+
* Add properties to a lookup table
|
10313
|
+
*
|
10314
|
+
* @param set - The set to which elements will be added.
|
10315
|
+
* @param array - The array containing elements to be added to the set.
|
10316
|
+
* @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
|
10317
|
+
* @returns The modified set with added elements.
|
10318
|
+
*/
|
10319
|
+
function addToSet(set, array) {
|
10320
|
+
let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
|
10321
|
+
if (setPrototypeOf) {
|
10322
|
+
// Make 'in' and truthy checks like Boolean(set.constructor)
|
10323
|
+
// independent of any properties defined on Object.prototype.
|
10324
|
+
// Prevent prototype setters from intercepting set as a this value.
|
10325
|
+
setPrototypeOf(set, null);
|
10326
|
+
}
|
10327
|
+
let l = array.length;
|
10328
|
+
while (l--) {
|
10329
|
+
let element = array[l];
|
10330
|
+
if (typeof element === 'string') {
|
10331
|
+
const lcElement = transformCaseFunc(element);
|
10332
|
+
if (lcElement !== element) {
|
10333
|
+
// Config presets (e.g. tags.js, attrs.js) are immutable.
|
10334
|
+
if (!isFrozen(array)) {
|
10335
|
+
array[l] = lcElement;
|
10336
|
+
}
|
10337
|
+
element = lcElement;
|
10338
|
+
}
|
10339
|
+
}
|
10340
|
+
set[element] = true;
|
10341
|
+
}
|
10342
|
+
return set;
|
10343
|
+
}
|
10344
|
+
/**
|
10345
|
+
* Clean up an array to harden against CSPP
|
10346
|
+
*
|
10347
|
+
* @param array - The array to be cleaned.
|
10348
|
+
* @returns The cleaned version of the array
|
10349
|
+
*/
|
10350
|
+
function cleanArray(array) {
|
10351
|
+
for (let index = 0; index < array.length; index++) {
|
10352
|
+
const isPropertyExist = objectHasOwnProperty(array, index);
|
10353
|
+
if (!isPropertyExist) {
|
10354
|
+
array[index] = null;
|
10355
|
+
}
|
10356
|
+
}
|
10357
|
+
return array;
|
10358
|
+
}
|
10359
|
+
/**
|
10360
|
+
* Shallow clone an object
|
10361
|
+
*
|
10362
|
+
* @param object - The object to be cloned.
|
10363
|
+
* @returns A new object that copies the original.
|
10364
|
+
*/
|
10365
|
+
function clone(object) {
|
10366
|
+
const newObject = create(null);
|
10367
|
+
for (const [property, value] of entries(object)) {
|
10368
|
+
const isPropertyExist = objectHasOwnProperty(object, property);
|
10369
|
+
if (isPropertyExist) {
|
10370
|
+
if (Array.isArray(value)) {
|
10371
|
+
newObject[property] = cleanArray(value);
|
10372
|
+
} else if (value && typeof value === 'object' && value.constructor === Object) {
|
10373
|
+
newObject[property] = clone(value);
|
10374
|
+
} else {
|
10375
|
+
newObject[property] = value;
|
10376
|
+
}
|
10377
|
+
}
|
10378
|
+
}
|
10379
|
+
return newObject;
|
10380
|
+
}
|
10381
|
+
/**
|
10382
|
+
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
10383
|
+
*
|
10384
|
+
* @param object - The object to look up the getter function in its prototype chain.
|
10385
|
+
* @param prop - The property name for which to find the getter function.
|
10386
|
+
* @returns The getter function found in the prototype chain or a fallback function.
|
10387
|
+
*/
|
10388
|
+
function lookupGetter(object, prop) {
|
10389
|
+
while (object !== null) {
|
10390
|
+
const desc = getOwnPropertyDescriptor(object, prop);
|
10391
|
+
if (desc) {
|
10392
|
+
if (desc.get) {
|
10393
|
+
return unapply(desc.get);
|
10394
|
+
}
|
10395
|
+
if (typeof desc.value === 'function') {
|
10396
|
+
return unapply(desc.value);
|
10397
|
+
}
|
10398
|
+
}
|
10399
|
+
object = getPrototypeOf(object);
|
10400
|
+
}
|
10401
|
+
function fallbackValue() {
|
10402
|
+
return null;
|
10403
|
+
}
|
10404
|
+
return fallbackValue;
|
10405
|
+
}
|
10406
|
+
|
10407
|
+
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']);
|
10408
|
+
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']);
|
10409
|
+
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']);
|
10410
|
+
// List of SVG elements that are disallowed by default.
|
10411
|
+
// We still need to know them so that we can do namespace
|
10412
|
+
// checks properly in case one wants to add them to
|
10413
|
+
// allow-list.
|
10414
|
+
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']);
|
10415
|
+
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']);
|
10416
|
+
// Similarly to SVG, we want to know all MathML elements,
|
10417
|
+
// even those that we disallow by default.
|
10418
|
+
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
10419
|
+
const text = freeze(['#text']);
|
10420
|
+
|
10421
|
+
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']);
|
10422
|
+
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']);
|
10423
|
+
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']);
|
10424
|
+
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
10425
|
+
|
10426
|
+
// eslint-disable-next-line unicorn/better-regex
|
10427
|
+
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode
|
10428
|
+
const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
|
10429
|
+
const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm); // eslint-disable-line unicorn/better-regex
|
10430
|
+
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
|
10431
|
+
const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
|
10432
|
+
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
|
10433
|
+
);
|
10434
|
+
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
10435
|
+
const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
|
10436
|
+
);
|
10437
|
+
const DOCTYPE_NAME = seal(/^html$/i);
|
10438
|
+
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
10439
|
+
|
10440
|
+
var EXPRESSIONS = /*#__PURE__*/Object.freeze({
|
10441
|
+
__proto__: null,
|
10442
|
+
ARIA_ATTR: ARIA_ATTR,
|
10443
|
+
ATTR_WHITESPACE: ATTR_WHITESPACE,
|
10444
|
+
CUSTOM_ELEMENT: CUSTOM_ELEMENT,
|
10445
|
+
DATA_ATTR: DATA_ATTR,
|
10446
|
+
DOCTYPE_NAME: DOCTYPE_NAME,
|
10447
|
+
ERB_EXPR: ERB_EXPR,
|
10448
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI,
|
10449
|
+
IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
|
10450
|
+
MUSTACHE_EXPR: MUSTACHE_EXPR,
|
10451
|
+
TMPLIT_EXPR: TMPLIT_EXPR
|
10452
|
+
});
|
10453
|
+
|
10454
|
+
/* eslint-disable @typescript-eslint/indent */
|
10455
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
10456
|
+
const NODE_TYPE = {
|
10457
|
+
element: 1,
|
10458
|
+
attribute: 2,
|
10459
|
+
text: 3,
|
10460
|
+
cdataSection: 4,
|
10461
|
+
entityReference: 5,
|
10462
|
+
// Deprecated
|
10463
|
+
entityNode: 6,
|
10464
|
+
// Deprecated
|
10465
|
+
progressingInstruction: 7,
|
10466
|
+
comment: 8,
|
10467
|
+
document: 9,
|
10468
|
+
documentType: 10,
|
10469
|
+
documentFragment: 11,
|
10470
|
+
notation: 12 // Deprecated
|
10471
|
+
};
|
10472
|
+
const getGlobal = function getGlobal() {
|
10473
|
+
return typeof window === 'undefined' ? null : window;
|
10474
|
+
};
|
10475
|
+
/**
|
10476
|
+
* Creates a no-op policy for internal use only.
|
10477
|
+
* Don't export this function outside this module!
|
10478
|
+
* @param trustedTypes The policy factory.
|
10479
|
+
* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
|
10480
|
+
* @return The policy created (or null, if Trusted Types
|
10481
|
+
* are not supported or creating the policy failed).
|
10482
|
+
*/
|
10483
|
+
const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
|
10484
|
+
if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
|
10485
|
+
return null;
|
10486
|
+
}
|
10487
|
+
// Allow the callers to control the unique policy name
|
10488
|
+
// by adding a data-tt-policy-suffix to the script element with the DOMPurify.
|
10489
|
+
// Policy creation with duplicate names throws in Trusted Types.
|
10490
|
+
let suffix = null;
|
10491
|
+
const ATTR_NAME = 'data-tt-policy-suffix';
|
10492
|
+
if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
|
10493
|
+
suffix = purifyHostElement.getAttribute(ATTR_NAME);
|
10494
|
+
}
|
10495
|
+
const policyName = 'dompurify' + (suffix ? '#' + suffix : '');
|
10496
|
+
try {
|
10497
|
+
return trustedTypes.createPolicy(policyName, {
|
10498
|
+
createHTML(html) {
|
10499
|
+
return html;
|
10500
|
+
},
|
10501
|
+
createScriptURL(scriptUrl) {
|
10502
|
+
return scriptUrl;
|
10503
|
+
}
|
10504
|
+
});
|
10505
|
+
} catch (_) {
|
10506
|
+
// Policy creation failed (most likely another DOMPurify script has
|
10507
|
+
// already run). Skip creating the policy, as this will only cause errors
|
10508
|
+
// if TT are enforced.
|
10509
|
+
console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
|
10510
|
+
return null;
|
10511
|
+
}
|
10512
|
+
};
|
10513
|
+
const _createHooksMap = function _createHooksMap() {
|
10514
|
+
return {
|
10515
|
+
afterSanitizeAttributes: [],
|
10516
|
+
afterSanitizeElements: [],
|
10517
|
+
afterSanitizeShadowDOM: [],
|
10518
|
+
beforeSanitizeAttributes: [],
|
10519
|
+
beforeSanitizeElements: [],
|
10520
|
+
beforeSanitizeShadowDOM: [],
|
10521
|
+
uponSanitizeAttribute: [],
|
10522
|
+
uponSanitizeElement: [],
|
10523
|
+
uponSanitizeShadowNode: []
|
10524
|
+
};
|
10525
|
+
};
|
10526
|
+
function createDOMPurify() {
|
10527
|
+
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
10528
|
+
const DOMPurify = root => createDOMPurify(root);
|
10529
|
+
DOMPurify.version = '3.2.6';
|
10530
|
+
DOMPurify.removed = [];
|
10531
|
+
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
10532
|
+
// Not running in a browser, provide a factory function
|
10533
|
+
// so that you can pass your own Window
|
10534
|
+
DOMPurify.isSupported = false;
|
10535
|
+
return DOMPurify;
|
10536
|
+
}
|
10537
|
+
let {
|
10538
|
+
document
|
10539
|
+
} = window;
|
10540
|
+
const originalDocument = document;
|
10541
|
+
const currentScript = originalDocument.currentScript;
|
10542
|
+
const {
|
10543
|
+
DocumentFragment,
|
10544
|
+
HTMLTemplateElement,
|
10545
|
+
Node,
|
10546
|
+
Element,
|
10547
|
+
NodeFilter,
|
10548
|
+
NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,
|
10549
|
+
HTMLFormElement,
|
10550
|
+
DOMParser,
|
10551
|
+
trustedTypes
|
10552
|
+
} = window;
|
10553
|
+
const ElementPrototype = Element.prototype;
|
10554
|
+
const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
|
10555
|
+
const remove = lookupGetter(ElementPrototype, 'remove');
|
10556
|
+
const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
|
10557
|
+
const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
|
10558
|
+
const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
|
10559
|
+
// As per issue #47, the web-components registry is inherited by a
|
10560
|
+
// new document created via createHTMLDocument. As per the spec
|
10561
|
+
// (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
|
10562
|
+
// a new empty registry is used when creating a template contents owner
|
10563
|
+
// document, so we use that as our parent document to ensure nothing
|
10564
|
+
// is inherited.
|
10565
|
+
if (typeof HTMLTemplateElement === 'function') {
|
10566
|
+
const template = document.createElement('template');
|
10567
|
+
if (template.content && template.content.ownerDocument) {
|
10568
|
+
document = template.content.ownerDocument;
|
10569
|
+
}
|
10570
|
+
}
|
10571
|
+
let trustedTypesPolicy;
|
10572
|
+
let emptyHTML = '';
|
10573
|
+
const {
|
10574
|
+
implementation,
|
10575
|
+
createNodeIterator,
|
10576
|
+
createDocumentFragment,
|
10577
|
+
getElementsByTagName
|
10578
|
+
} = document;
|
10579
|
+
const {
|
10580
|
+
importNode
|
10581
|
+
} = originalDocument;
|
10582
|
+
let hooks = _createHooksMap();
|
10583
|
+
/**
|
10584
|
+
* Expose whether this browser supports running the full DOMPurify.
|
10585
|
+
*/
|
10586
|
+
DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;
|
10587
|
+
const {
|
10588
|
+
MUSTACHE_EXPR,
|
10589
|
+
ERB_EXPR,
|
10590
|
+
TMPLIT_EXPR,
|
10591
|
+
DATA_ATTR,
|
10592
|
+
ARIA_ATTR,
|
10593
|
+
IS_SCRIPT_OR_DATA,
|
10594
|
+
ATTR_WHITESPACE,
|
10595
|
+
CUSTOM_ELEMENT
|
10596
|
+
} = EXPRESSIONS;
|
10597
|
+
let {
|
10598
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI$1
|
10599
|
+
} = EXPRESSIONS;
|
10600
|
+
/**
|
10601
|
+
* We consider the elements and attributes below to be safe. Ideally
|
10602
|
+
* don't add any new ones but feel free to remove unwanted ones.
|
10603
|
+
*/
|
10604
|
+
/* allowed element names */
|
10605
|
+
let ALLOWED_TAGS = null;
|
10606
|
+
const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
|
10607
|
+
/* Allowed attribute names */
|
10608
|
+
let ALLOWED_ATTR = null;
|
10609
|
+
const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
|
10610
|
+
/*
|
10611
|
+
* Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
|
10612
|
+
* @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
|
10613
|
+
* @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
|
10614
|
+
* @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
|
10615
|
+
*/
|
10616
|
+
let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
|
10617
|
+
tagNameCheck: {
|
10618
|
+
writable: true,
|
10619
|
+
configurable: false,
|
10620
|
+
enumerable: true,
|
10621
|
+
value: null
|
10622
|
+
},
|
10623
|
+
attributeNameCheck: {
|
10624
|
+
writable: true,
|
10625
|
+
configurable: false,
|
10626
|
+
enumerable: true,
|
10627
|
+
value: null
|
10628
|
+
},
|
10629
|
+
allowCustomizedBuiltInElements: {
|
10630
|
+
writable: true,
|
10631
|
+
configurable: false,
|
10632
|
+
enumerable: true,
|
10633
|
+
value: false
|
10634
|
+
}
|
10635
|
+
}));
|
10636
|
+
/* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
|
10637
|
+
let FORBID_TAGS = null;
|
10638
|
+
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
10639
|
+
let FORBID_ATTR = null;
|
10640
|
+
/* Decide if ARIA attributes are okay */
|
10641
|
+
let ALLOW_ARIA_ATTR = true;
|
10642
|
+
/* Decide if custom data attributes are okay */
|
10643
|
+
let ALLOW_DATA_ATTR = true;
|
10644
|
+
/* Decide if unknown protocols are okay */
|
10645
|
+
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
10646
|
+
/* Decide if self-closing tags in attributes are allowed.
|
10647
|
+
* Usually removed due to a mXSS issue in jQuery 3.0 */
|
10648
|
+
let ALLOW_SELF_CLOSE_IN_ATTR = true;
|
10649
|
+
/* Output should be safe for common template engines.
|
10650
|
+
* This means, DOMPurify removes data attributes, mustaches and ERB
|
10651
|
+
*/
|
10652
|
+
let SAFE_FOR_TEMPLATES = false;
|
10653
|
+
/* Output should be safe even for XML used within HTML and alike.
|
10654
|
+
* This means, DOMPurify removes comments when containing risky content.
|
10655
|
+
*/
|
10656
|
+
let SAFE_FOR_XML = true;
|
10657
|
+
/* Decide if document with <html>... should be returned */
|
10658
|
+
let WHOLE_DOCUMENT = false;
|
10659
|
+
/* Track whether config is already set on this instance of DOMPurify. */
|
10660
|
+
let SET_CONFIG = false;
|
10661
|
+
/* Decide if all elements (e.g. style, script) must be children of
|
10662
|
+
* document.body. By default, browsers might move them to document.head */
|
10663
|
+
let FORCE_BODY = false;
|
10664
|
+
/* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
|
10665
|
+
* string (or a TrustedHTML object if Trusted Types are supported).
|
10666
|
+
* If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
|
10667
|
+
*/
|
10668
|
+
let RETURN_DOM = false;
|
10669
|
+
/* Decide if a DOM `DocumentFragment` should be returned, instead of a html
|
10670
|
+
* string (or a TrustedHTML object if Trusted Types are supported) */
|
10671
|
+
let RETURN_DOM_FRAGMENT = false;
|
10672
|
+
/* Try to return a Trusted Type object instead of a string, return a string in
|
10673
|
+
* case Trusted Types are not supported */
|
10674
|
+
let RETURN_TRUSTED_TYPE = false;
|
10675
|
+
/* Output should be free from DOM clobbering attacks?
|
10676
|
+
* This sanitizes markups named with colliding, clobberable built-in DOM APIs.
|
10677
|
+
*/
|
10678
|
+
let SANITIZE_DOM = true;
|
10679
|
+
/* Achieve full DOM Clobbering protection by isolating the namespace of named
|
10680
|
+
* properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
|
10681
|
+
*
|
10682
|
+
* HTML/DOM spec rules that enable DOM Clobbering:
|
10683
|
+
* - Named Access on Window (§7.3.3)
|
10684
|
+
* - DOM Tree Accessors (§3.1.5)
|
10685
|
+
* - Form Element Parent-Child Relations (§4.10.3)
|
10686
|
+
* - Iframe srcdoc / Nested WindowProxies (§4.8.5)
|
10687
|
+
* - HTMLCollection (§4.2.10.2)
|
10688
|
+
*
|
10689
|
+
* Namespace isolation is implemented by prefixing `id` and `name` attributes
|
10690
|
+
* with a constant string, i.e., `user-content-`
|
10691
|
+
*/
|
10692
|
+
let SANITIZE_NAMED_PROPS = false;
|
10693
|
+
const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';
|
10694
|
+
/* Keep element content when removing element? */
|
10695
|
+
let KEEP_CONTENT = true;
|
10696
|
+
/* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
|
10697
|
+
* of importing it into a new Document and returning a sanitized copy */
|
10698
|
+
let IN_PLACE = false;
|
10699
|
+
/* Allow usage of profiles like html, svg and mathMl */
|
10700
|
+
let USE_PROFILES = {};
|
10701
|
+
/* Tags to ignore content of when KEEP_CONTENT is true */
|
10702
|
+
let FORBID_CONTENTS = null;
|
10703
|
+
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']);
|
10704
|
+
/* Tags that are safe for data: URIs */
|
10705
|
+
let DATA_URI_TAGS = null;
|
10706
|
+
const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
|
10707
|
+
/* Attributes safe for values like "javascript:" */
|
10708
|
+
let URI_SAFE_ATTRIBUTES = null;
|
10709
|
+
const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);
|
10710
|
+
const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
10711
|
+
const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
10712
|
+
const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
10713
|
+
/* Document namespace */
|
10714
|
+
let NAMESPACE = HTML_NAMESPACE;
|
10715
|
+
let IS_EMPTY_INPUT = false;
|
10716
|
+
/* Allowed XHTML+XML namespaces */
|
10717
|
+
let ALLOWED_NAMESPACES = null;
|
10718
|
+
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
10719
|
+
let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
|
10720
|
+
let HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);
|
10721
|
+
// Certain elements are allowed in both SVG and HTML
|
10722
|
+
// namespace. We need to specify them explicitly
|
10723
|
+
// so that they don't get erroneously deleted from
|
10724
|
+
// HTML namespace.
|
10725
|
+
const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
|
10726
|
+
/* Parsing of strict XHTML documents */
|
10727
|
+
let PARSER_MEDIA_TYPE = null;
|
10728
|
+
const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
|
10729
|
+
const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
|
10730
|
+
let transformCaseFunc = null;
|
10731
|
+
/* Keep a reference to config to pass to hooks */
|
10732
|
+
let CONFIG = null;
|
10733
|
+
/* Ideally, do not touch anything below this line */
|
10734
|
+
/* ______________________________________________ */
|
10735
|
+
const formElement = document.createElement('form');
|
10736
|
+
const isRegexOrFunction = function isRegexOrFunction(testValue) {
|
10737
|
+
return testValue instanceof RegExp || testValue instanceof Function;
|
10738
|
+
};
|
10739
|
+
/**
|
10740
|
+
* _parseConfig
|
10741
|
+
*
|
10742
|
+
* @param cfg optional config literal
|
10743
|
+
*/
|
10744
|
+
// eslint-disable-next-line complexity
|
10745
|
+
const _parseConfig = function _parseConfig() {
|
10746
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
10747
|
+
if (CONFIG && CONFIG === cfg) {
|
10748
|
+
return;
|
10749
|
+
}
|
10750
|
+
/* Shield configuration object from tampering */
|
10751
|
+
if (!cfg || typeof cfg !== 'object') {
|
10752
|
+
cfg = {};
|
10753
|
+
}
|
10754
|
+
/* Shield configuration object from prototype pollution */
|
10755
|
+
cfg = clone(cfg);
|
10756
|
+
PARSER_MEDIA_TYPE =
|
10757
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
10758
|
+
SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
|
10759
|
+
// HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
|
10760
|
+
transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
|
10761
|
+
/* Set configuration parameters */
|
10762
|
+
ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
10763
|
+
ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
10764
|
+
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
10765
|
+
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;
|
10766
|
+
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;
|
10767
|
+
FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
10768
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
10769
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
10770
|
+
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
|
10771
|
+
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
10772
|
+
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
10773
|
+
ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
|
10774
|
+
ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true
|
10775
|
+
SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
|
10776
|
+
SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true
|
10777
|
+
WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
|
10778
|
+
RETURN_DOM = cfg.RETURN_DOM || false; // Default false
|
10779
|
+
RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
|
10780
|
+
RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
|
10781
|
+
FORCE_BODY = cfg.FORCE_BODY || false; // Default false
|
10782
|
+
SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
|
10783
|
+
SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
|
10784
|
+
KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
|
10785
|
+
IN_PLACE = cfg.IN_PLACE || false; // Default false
|
10786
|
+
IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
|
10787
|
+
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
10788
|
+
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
|
10789
|
+
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
|
10790
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
|
10791
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
10792
|
+
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|
10793
|
+
}
|
10794
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
|
10795
|
+
CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
|
10796
|
+
}
|
10797
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {
|
10798
|
+
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
|
10799
|
+
}
|
10800
|
+
if (SAFE_FOR_TEMPLATES) {
|
10801
|
+
ALLOW_DATA_ATTR = false;
|
10802
|
+
}
|
10803
|
+
if (RETURN_DOM_FRAGMENT) {
|
10804
|
+
RETURN_DOM = true;
|
10805
|
+
}
|
10806
|
+
/* Parse profile info */
|
10807
|
+
if (USE_PROFILES) {
|
10808
|
+
ALLOWED_TAGS = addToSet({}, text);
|
10809
|
+
ALLOWED_ATTR = [];
|
10810
|
+
if (USE_PROFILES.html === true) {
|
10811
|
+
addToSet(ALLOWED_TAGS, html$1);
|
10812
|
+
addToSet(ALLOWED_ATTR, html);
|
10813
|
+
}
|
10814
|
+
if (USE_PROFILES.svg === true) {
|
10815
|
+
addToSet(ALLOWED_TAGS, svg$1);
|
10816
|
+
addToSet(ALLOWED_ATTR, svg);
|
10817
|
+
addToSet(ALLOWED_ATTR, xml);
|
10818
|
+
}
|
10819
|
+
if (USE_PROFILES.svgFilters === true) {
|
10820
|
+
addToSet(ALLOWED_TAGS, svgFilters);
|
10821
|
+
addToSet(ALLOWED_ATTR, svg);
|
10822
|
+
addToSet(ALLOWED_ATTR, xml);
|
10823
|
+
}
|
10824
|
+
if (USE_PROFILES.mathMl === true) {
|
10825
|
+
addToSet(ALLOWED_TAGS, mathMl$1);
|
10826
|
+
addToSet(ALLOWED_ATTR, mathMl);
|
10827
|
+
addToSet(ALLOWED_ATTR, xml);
|
10828
|
+
}
|
10829
|
+
}
|
10830
|
+
/* Merge configuration parameters */
|
10831
|
+
if (cfg.ADD_TAGS) {
|
10832
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
10833
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
10834
|
+
}
|
10835
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
10836
|
+
}
|
10837
|
+
if (cfg.ADD_ATTR) {
|
10838
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
10839
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
10840
|
+
}
|
10841
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
10842
|
+
}
|
10843
|
+
if (cfg.ADD_URI_SAFE_ATTR) {
|
10844
|
+
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
10845
|
+
}
|
10846
|
+
if (cfg.FORBID_CONTENTS) {
|
10847
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
10848
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
10849
|
+
}
|
10850
|
+
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
10851
|
+
}
|
10852
|
+
/* Add #text in case KEEP_CONTENT is set to true */
|
10853
|
+
if (KEEP_CONTENT) {
|
10854
|
+
ALLOWED_TAGS['#text'] = true;
|
10855
|
+
}
|
10856
|
+
/* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
|
10857
|
+
if (WHOLE_DOCUMENT) {
|
10858
|
+
addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
|
10859
|
+
}
|
10860
|
+
/* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
|
10861
|
+
if (ALLOWED_TAGS.table) {
|
10862
|
+
addToSet(ALLOWED_TAGS, ['tbody']);
|
10863
|
+
delete FORBID_TAGS.tbody;
|
10864
|
+
}
|
10865
|
+
if (cfg.TRUSTED_TYPES_POLICY) {
|
10866
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
|
10867
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
10868
|
+
}
|
10869
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
|
10870
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
10871
|
+
}
|
10872
|
+
// Overwrite existing TrustedTypes policy.
|
10873
|
+
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
10874
|
+
// Sign local variables required by `sanitize`.
|
10875
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
10876
|
+
} else {
|
10877
|
+
// Uninitialized policy, attempt to initialize the internal dompurify policy.
|
10878
|
+
if (trustedTypesPolicy === undefined) {
|
10879
|
+
trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
10880
|
+
}
|
10881
|
+
// If creating the internal policy succeeded sign internal variables.
|
10882
|
+
if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {
|
10883
|
+
emptyHTML = trustedTypesPolicy.createHTML('');
|
10884
|
+
}
|
10885
|
+
}
|
10886
|
+
// Prevent further manipulation of configuration.
|
10887
|
+
// Not available in IE8, Safari 5, etc.
|
10888
|
+
if (freeze) {
|
10889
|
+
freeze(cfg);
|
10890
|
+
}
|
10891
|
+
CONFIG = cfg;
|
10892
|
+
};
|
10893
|
+
/* Keep track of all possible SVG and MathML tags
|
10894
|
+
* so that we can perform the namespace checks
|
10895
|
+
* correctly. */
|
10896
|
+
const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
|
10897
|
+
const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
|
10898
|
+
/**
|
10899
|
+
* @param element a DOM element whose namespace is being checked
|
10900
|
+
* @returns Return false if the element has a
|
10901
|
+
* namespace that a spec-compliant parser would never
|
10902
|
+
* return. Return true otherwise.
|
10903
|
+
*/
|
10904
|
+
const _checkValidNamespace = function _checkValidNamespace(element) {
|
10905
|
+
let parent = getParentNode(element);
|
10906
|
+
// In JSDOM, if we're inside shadow DOM, then parentNode
|
10907
|
+
// can be null. We just simulate parent in this case.
|
10908
|
+
if (!parent || !parent.tagName) {
|
10909
|
+
parent = {
|
10910
|
+
namespaceURI: NAMESPACE,
|
10911
|
+
tagName: 'template'
|
10912
|
+
};
|
10913
|
+
}
|
10914
|
+
const tagName = stringToLowerCase(element.tagName);
|
10915
|
+
const parentTagName = stringToLowerCase(parent.tagName);
|
10916
|
+
if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
|
10917
|
+
return false;
|
10918
|
+
}
|
10919
|
+
if (element.namespaceURI === SVG_NAMESPACE) {
|
10920
|
+
// The only way to switch from HTML namespace to SVG
|
10921
|
+
// is via <svg>. If it happens via any other tag, then
|
10922
|
+
// it should be killed.
|
10923
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
10924
|
+
return tagName === 'svg';
|
10925
|
+
}
|
10926
|
+
// The only way to switch from MathML to SVG is via`
|
10927
|
+
// svg if parent is either <annotation-xml> or MathML
|
10928
|
+
// text integration points.
|
10929
|
+
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
10930
|
+
return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
10931
|
+
}
|
10932
|
+
// We only allow elements that are defined in SVG
|
10933
|
+
// spec. All others are disallowed in SVG namespace.
|
10934
|
+
return Boolean(ALL_SVG_TAGS[tagName]);
|
10935
|
+
}
|
10936
|
+
if (element.namespaceURI === MATHML_NAMESPACE) {
|
10937
|
+
// The only way to switch from HTML namespace to MathML
|
10938
|
+
// is via <math>. If it happens via any other tag, then
|
10939
|
+
// it should be killed.
|
10940
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
10941
|
+
return tagName === 'math';
|
10942
|
+
}
|
10943
|
+
// The only way to switch from SVG to MathML is via
|
10944
|
+
// <math> and HTML integration points
|
10945
|
+
if (parent.namespaceURI === SVG_NAMESPACE) {
|
10946
|
+
return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
|
10947
|
+
}
|
10948
|
+
// We only allow elements that are defined in MathML
|
10949
|
+
// spec. All others are disallowed in MathML namespace.
|
10950
|
+
return Boolean(ALL_MATHML_TAGS[tagName]);
|
10951
|
+
}
|
10952
|
+
if (element.namespaceURI === HTML_NAMESPACE) {
|
10953
|
+
// The only way to switch from SVG to HTML is via
|
10954
|
+
// HTML integration points, and from MathML to HTML
|
10955
|
+
// is via MathML text integration points
|
10956
|
+
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
10957
|
+
return false;
|
10958
|
+
}
|
10959
|
+
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
10960
|
+
return false;
|
10961
|
+
}
|
10962
|
+
// We disallow tags that are specific for MathML
|
10963
|
+
// or SVG and should never appear in HTML namespace
|
10964
|
+
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
10965
|
+
}
|
10966
|
+
// For XHTML and XML documents that support custom namespaces
|
10967
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
|
10968
|
+
return true;
|
10969
|
+
}
|
10970
|
+
// The code should never reach this place (this means
|
10971
|
+
// that the element somehow got namespace that is not
|
10972
|
+
// HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
|
10973
|
+
// Return false just in case.
|
10974
|
+
return false;
|
10975
|
+
};
|
10976
|
+
/**
|
10977
|
+
* _forceRemove
|
10978
|
+
*
|
10979
|
+
* @param node a DOM node
|
10980
|
+
*/
|
10981
|
+
const _forceRemove = function _forceRemove(node) {
|
10982
|
+
arrayPush(DOMPurify.removed, {
|
10983
|
+
element: node
|
10984
|
+
});
|
10985
|
+
try {
|
10986
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-remove
|
10987
|
+
getParentNode(node).removeChild(node);
|
10988
|
+
} catch (_) {
|
10989
|
+
remove(node);
|
10990
|
+
}
|
10991
|
+
};
|
10992
|
+
/**
|
10993
|
+
* _removeAttribute
|
10994
|
+
*
|
10995
|
+
* @param name an Attribute name
|
10996
|
+
* @param element a DOM node
|
10997
|
+
*/
|
10998
|
+
const _removeAttribute = function _removeAttribute(name, element) {
|
10999
|
+
try {
|
11000
|
+
arrayPush(DOMPurify.removed, {
|
11001
|
+
attribute: element.getAttributeNode(name),
|
11002
|
+
from: element
|
11003
|
+
});
|
11004
|
+
} catch (_) {
|
11005
|
+
arrayPush(DOMPurify.removed, {
|
11006
|
+
attribute: null,
|
11007
|
+
from: element
|
11008
|
+
});
|
11009
|
+
}
|
11010
|
+
element.removeAttribute(name);
|
11011
|
+
// We void attribute values for unremovable "is" attributes
|
11012
|
+
if (name === 'is') {
|
11013
|
+
if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
|
11014
|
+
try {
|
11015
|
+
_forceRemove(element);
|
11016
|
+
} catch (_) {}
|
11017
|
+
} else {
|
11018
|
+
try {
|
11019
|
+
element.setAttribute(name, '');
|
11020
|
+
} catch (_) {}
|
11021
|
+
}
|
11022
|
+
}
|
11023
|
+
};
|
11024
|
+
/**
|
11025
|
+
* _initDocument
|
11026
|
+
*
|
11027
|
+
* @param dirty - a string of dirty markup
|
11028
|
+
* @return a DOM, filled with the dirty markup
|
11029
|
+
*/
|
11030
|
+
const _initDocument = function _initDocument(dirty) {
|
11031
|
+
/* Create a HTML document */
|
11032
|
+
let doc = null;
|
11033
|
+
let leadingWhitespace = null;
|
11034
|
+
if (FORCE_BODY) {
|
11035
|
+
dirty = '<remove></remove>' + dirty;
|
11036
|
+
} else {
|
11037
|
+
/* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
|
11038
|
+
const matches = stringMatch(dirty, /^[\r\n\t ]+/);
|
11039
|
+
leadingWhitespace = matches && matches[0];
|
11040
|
+
}
|
11041
|
+
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {
|
11042
|
+
// Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
|
11043
|
+
dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
|
11044
|
+
}
|
11045
|
+
const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
11046
|
+
/*
|
11047
|
+
* Use the DOMParser API by default, fallback later if needs be
|
11048
|
+
* DOMParser not work for svg when has multiple root element.
|
11049
|
+
*/
|
11050
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
11051
|
+
try {
|
11052
|
+
doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
|
11053
|
+
} catch (_) {}
|
11054
|
+
}
|
11055
|
+
/* Use createHTMLDocument in case DOMParser is not available */
|
11056
|
+
if (!doc || !doc.documentElement) {
|
11057
|
+
doc = implementation.createDocument(NAMESPACE, 'template', null);
|
11058
|
+
try {
|
11059
|
+
doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
|
11060
|
+
} catch (_) {
|
11061
|
+
// Syntax error if dirtyPayload is invalid xml
|
11062
|
+
}
|
11063
|
+
}
|
11064
|
+
const body = doc.body || doc.documentElement;
|
11065
|
+
if (dirty && leadingWhitespace) {
|
11066
|
+
body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
|
11067
|
+
}
|
11068
|
+
/* Work on whole document or just its body */
|
11069
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
11070
|
+
return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
|
11071
|
+
}
|
11072
|
+
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
11073
|
+
};
|
11074
|
+
/**
|
11075
|
+
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
11076
|
+
*
|
11077
|
+
* @param root The root element or node to start traversing on.
|
11078
|
+
* @return The created NodeIterator
|
11079
|
+
*/
|
11080
|
+
const _createNodeIterator = function _createNodeIterator(root) {
|
11081
|
+
return createNodeIterator.call(root.ownerDocument || root, root,
|
11082
|
+
// eslint-disable-next-line no-bitwise
|
11083
|
+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
11084
|
+
};
|
11085
|
+
/**
|
11086
|
+
* _isClobbered
|
11087
|
+
*
|
11088
|
+
* @param element element to check for clobbering attacks
|
11089
|
+
* @return true if clobbered, false if safe
|
11090
|
+
*/
|
11091
|
+
const _isClobbered = function _isClobbered(element) {
|
11092
|
+
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');
|
11093
|
+
};
|
11094
|
+
/**
|
11095
|
+
* Checks whether the given object is a DOM node.
|
11096
|
+
*
|
11097
|
+
* @param value object to check whether it's a DOM node
|
11098
|
+
* @return true is object is a DOM node
|
11099
|
+
*/
|
11100
|
+
const _isNode = function _isNode(value) {
|
11101
|
+
return typeof Node === 'function' && value instanceof Node;
|
11102
|
+
};
|
11103
|
+
function _executeHooks(hooks, currentNode, data) {
|
11104
|
+
arrayForEach(hooks, hook => {
|
11105
|
+
hook.call(DOMPurify, currentNode, data, CONFIG);
|
11106
|
+
});
|
11107
|
+
}
|
11108
|
+
/**
|
11109
|
+
* _sanitizeElements
|
11110
|
+
*
|
11111
|
+
* @protect nodeName
|
11112
|
+
* @protect textContent
|
11113
|
+
* @protect removeChild
|
11114
|
+
* @param currentNode to check for permission to exist
|
11115
|
+
* @return true if node was killed, false if left alive
|
11116
|
+
*/
|
11117
|
+
const _sanitizeElements = function _sanitizeElements(currentNode) {
|
11118
|
+
let content = null;
|
11119
|
+
/* Execute a hook if present */
|
11120
|
+
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
11121
|
+
/* Check if element is clobbered or can clobber */
|
11122
|
+
if (_isClobbered(currentNode)) {
|
11123
|
+
_forceRemove(currentNode);
|
11124
|
+
return true;
|
11125
|
+
}
|
11126
|
+
/* Now let's check the element's type and name */
|
11127
|
+
const tagName = transformCaseFunc(currentNode.nodeName);
|
11128
|
+
/* Execute a hook if present */
|
11129
|
+
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
11130
|
+
tagName,
|
11131
|
+
allowedTags: ALLOWED_TAGS
|
11132
|
+
});
|
11133
|
+
/* Detect mXSS attempts abusing namespace confusion */
|
11134
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
11135
|
+
_forceRemove(currentNode);
|
11136
|
+
return true;
|
11137
|
+
}
|
11138
|
+
/* Remove any occurrence of processing instructions */
|
11139
|
+
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
11140
|
+
_forceRemove(currentNode);
|
11141
|
+
return true;
|
11142
|
+
}
|
11143
|
+
/* Remove any kind of possibly harmful comments */
|
11144
|
+
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
|
11145
|
+
_forceRemove(currentNode);
|
11146
|
+
return true;
|
11147
|
+
}
|
11148
|
+
/* Remove element if anything forbids its presence */
|
11149
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
11150
|
+
/* Check if we have a custom element to handle */
|
11151
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
11152
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
11153
|
+
return false;
|
11154
|
+
}
|
11155
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
11156
|
+
return false;
|
11157
|
+
}
|
11158
|
+
}
|
11159
|
+
/* Keep content except for bad-listed elements */
|
11160
|
+
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
11161
|
+
const parentNode = getParentNode(currentNode) || currentNode.parentNode;
|
11162
|
+
const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
|
11163
|
+
if (childNodes && parentNode) {
|
11164
|
+
const childCount = childNodes.length;
|
11165
|
+
for (let i = childCount - 1; i >= 0; --i) {
|
11166
|
+
const childClone = cloneNode(childNodes[i], true);
|
11167
|
+
childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
|
11168
|
+
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
11169
|
+
}
|
11170
|
+
}
|
11171
|
+
}
|
11172
|
+
_forceRemove(currentNode);
|
11173
|
+
return true;
|
11174
|
+
}
|
11175
|
+
/* Check whether element has a valid namespace */
|
11176
|
+
if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
|
11177
|
+
_forceRemove(currentNode);
|
11178
|
+
return true;
|
11179
|
+
}
|
11180
|
+
/* Make sure that older browsers don't get fallback-tag mXSS */
|
11181
|
+
if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
|
11182
|
+
_forceRemove(currentNode);
|
11183
|
+
return true;
|
11184
|
+
}
|
11185
|
+
/* Sanitize element content to be template-safe */
|
11186
|
+
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
|
11187
|
+
/* Get the element's text content */
|
11188
|
+
content = currentNode.textContent;
|
11189
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
11190
|
+
content = stringReplace(content, expr, ' ');
|
11191
|
+
});
|
11192
|
+
if (currentNode.textContent !== content) {
|
11193
|
+
arrayPush(DOMPurify.removed, {
|
11194
|
+
element: currentNode.cloneNode()
|
11195
|
+
});
|
11196
|
+
currentNode.textContent = content;
|
11197
|
+
}
|
11198
|
+
}
|
11199
|
+
/* Execute a hook if present */
|
11200
|
+
_executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
11201
|
+
return false;
|
11202
|
+
};
|
11203
|
+
/**
|
11204
|
+
* _isValidAttribute
|
11205
|
+
*
|
11206
|
+
* @param lcTag Lowercase tag name of containing element.
|
11207
|
+
* @param lcName Lowercase attribute name.
|
11208
|
+
* @param value Attribute value.
|
11209
|
+
* @return Returns true if `value` is valid, otherwise false.
|
11210
|
+
*/
|
11211
|
+
// eslint-disable-next-line complexity
|
11212
|
+
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
11213
|
+
/* Make sure attribute cannot clobber */
|
11214
|
+
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
11215
|
+
return false;
|
11216
|
+
}
|
11217
|
+
/* Allow valid data-* attributes: At least one character after "-"
|
11218
|
+
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
11219
|
+
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
11220
|
+
We don't need to check the value; it's always URI safe. */
|
11221
|
+
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]) {
|
11222
|
+
if (
|
11223
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
11224
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
11225
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
11226
|
+
_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)) ||
|
11227
|
+
// Alternative, second condition checks if it's an `is`-attribute, AND
|
11228
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
11229
|
+
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 {
|
11230
|
+
return false;
|
11231
|
+
}
|
11232
|
+
/* Check value is safe. First, is attr inert? If so, is safe */
|
11233
|
+
} 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) {
|
11234
|
+
return false;
|
11235
|
+
} else ;
|
11236
|
+
return true;
|
11237
|
+
};
|
11238
|
+
/**
|
11239
|
+
* _isBasicCustomElement
|
11240
|
+
* checks if at least one dash is included in tagName, and it's not the first char
|
11241
|
+
* for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
|
11242
|
+
*
|
11243
|
+
* @param tagName name of the tag of the node to sanitize
|
11244
|
+
* @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
11245
|
+
*/
|
11246
|
+
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
11247
|
+
return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);
|
11248
|
+
};
|
11249
|
+
/**
|
11250
|
+
* _sanitizeAttributes
|
11251
|
+
*
|
11252
|
+
* @protect attributes
|
11253
|
+
* @protect nodeName
|
11254
|
+
* @protect removeAttribute
|
11255
|
+
* @protect setAttribute
|
11256
|
+
*
|
11257
|
+
* @param currentNode to sanitize
|
11258
|
+
*/
|
11259
|
+
const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
|
11260
|
+
/* Execute a hook if present */
|
11261
|
+
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
11262
|
+
const {
|
11263
|
+
attributes
|
11264
|
+
} = currentNode;
|
11265
|
+
/* Check if we have attributes; if not we might have a text node */
|
11266
|
+
if (!attributes || _isClobbered(currentNode)) {
|
11267
|
+
return;
|
11268
|
+
}
|
11269
|
+
const hookEvent = {
|
11270
|
+
attrName: '',
|
11271
|
+
attrValue: '',
|
11272
|
+
keepAttr: true,
|
11273
|
+
allowedAttributes: ALLOWED_ATTR,
|
11274
|
+
forceKeepAttr: undefined
|
11275
|
+
};
|
11276
|
+
let l = attributes.length;
|
11277
|
+
/* Go backwards over all attributes; safely remove bad ones */
|
11278
|
+
while (l--) {
|
11279
|
+
const attr = attributes[l];
|
11280
|
+
const {
|
11281
|
+
name,
|
11282
|
+
namespaceURI,
|
11283
|
+
value: attrValue
|
11284
|
+
} = attr;
|
11285
|
+
const lcName = transformCaseFunc(name);
|
11286
|
+
const initValue = attrValue;
|
11287
|
+
let value = name === 'value' ? initValue : stringTrim(initValue);
|
11288
|
+
/* Execute a hook if present */
|
11289
|
+
hookEvent.attrName = lcName;
|
11290
|
+
hookEvent.attrValue = value;
|
11291
|
+
hookEvent.keepAttr = true;
|
11292
|
+
hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
|
11293
|
+
_executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
|
11294
|
+
value = hookEvent.attrValue;
|
11295
|
+
/* Full DOM Clobbering protection via namespace isolation,
|
11296
|
+
* Prefix id and name attributes with `user-content-`
|
11297
|
+
*/
|
11298
|
+
if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {
|
11299
|
+
// Remove the attribute with this value
|
11300
|
+
_removeAttribute(name, currentNode);
|
11301
|
+
// Prefix the value and later re-create the attribute with the sanitized value
|
11302
|
+
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
11303
|
+
}
|
11304
|
+
/* Work around a security issue with comments inside attributes */
|
11305
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
11306
|
+
_removeAttribute(name, currentNode);
|
11307
|
+
continue;
|
11308
|
+
}
|
11309
|
+
/* Did the hooks approve of the attribute? */
|
11310
|
+
if (hookEvent.forceKeepAttr) {
|
11311
|
+
continue;
|
11312
|
+
}
|
11313
|
+
/* Did the hooks approve of the attribute? */
|
11314
|
+
if (!hookEvent.keepAttr) {
|
11315
|
+
_removeAttribute(name, currentNode);
|
11316
|
+
continue;
|
11317
|
+
}
|
11318
|
+
/* Work around a security issue in jQuery 3.0 */
|
11319
|
+
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
11320
|
+
_removeAttribute(name, currentNode);
|
11321
|
+
continue;
|
11322
|
+
}
|
11323
|
+
/* Sanitize attribute content to be template-safe */
|
11324
|
+
if (SAFE_FOR_TEMPLATES) {
|
11325
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
11326
|
+
value = stringReplace(value, expr, ' ');
|
11327
|
+
});
|
11328
|
+
}
|
11329
|
+
/* Is `value` valid for this attribute? */
|
11330
|
+
const lcTag = transformCaseFunc(currentNode.nodeName);
|
11331
|
+
if (!_isValidAttribute(lcTag, lcName, value)) {
|
11332
|
+
_removeAttribute(name, currentNode);
|
11333
|
+
continue;
|
11334
|
+
}
|
11335
|
+
/* Handle attributes that require Trusted Types */
|
11336
|
+
if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {
|
11337
|
+
if (namespaceURI) ; else {
|
11338
|
+
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
11339
|
+
case 'TrustedHTML':
|
11340
|
+
{
|
11341
|
+
value = trustedTypesPolicy.createHTML(value);
|
11342
|
+
break;
|
11343
|
+
}
|
11344
|
+
case 'TrustedScriptURL':
|
11345
|
+
{
|
11346
|
+
value = trustedTypesPolicy.createScriptURL(value);
|
11347
|
+
break;
|
11348
|
+
}
|
11349
|
+
}
|
11350
|
+
}
|
11351
|
+
}
|
11352
|
+
/* Handle invalid data-* attribute set by try-catching it */
|
11353
|
+
if (value !== initValue) {
|
11354
|
+
try {
|
11355
|
+
if (namespaceURI) {
|
11356
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
11357
|
+
} else {
|
11358
|
+
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
11359
|
+
currentNode.setAttribute(name, value);
|
11360
|
+
}
|
11361
|
+
if (_isClobbered(currentNode)) {
|
11362
|
+
_forceRemove(currentNode);
|
11363
|
+
} else {
|
11364
|
+
arrayPop(DOMPurify.removed);
|
11365
|
+
}
|
11366
|
+
} catch (_) {
|
11367
|
+
_removeAttribute(name, currentNode);
|
11368
|
+
}
|
11369
|
+
}
|
11370
|
+
}
|
11371
|
+
/* Execute a hook if present */
|
11372
|
+
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
11373
|
+
};
|
11374
|
+
/**
|
11375
|
+
* _sanitizeShadowDOM
|
11376
|
+
*
|
11377
|
+
* @param fragment to iterate over recursively
|
11378
|
+
*/
|
11379
|
+
const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
|
11380
|
+
let shadowNode = null;
|
11381
|
+
const shadowIterator = _createNodeIterator(fragment);
|
11382
|
+
/* Execute a hook if present */
|
11383
|
+
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
11384
|
+
while (shadowNode = shadowIterator.nextNode()) {
|
11385
|
+
/* Execute a hook if present */
|
11386
|
+
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
11387
|
+
/* Sanitize tags and elements */
|
11388
|
+
_sanitizeElements(shadowNode);
|
11389
|
+
/* Check attributes next */
|
11390
|
+
_sanitizeAttributes(shadowNode);
|
11391
|
+
/* Deep shadow DOM detected */
|
11392
|
+
if (shadowNode.content instanceof DocumentFragment) {
|
11393
|
+
_sanitizeShadowDOM(shadowNode.content);
|
11394
|
+
}
|
11395
|
+
}
|
11396
|
+
/* Execute a hook if present */
|
11397
|
+
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
11398
|
+
};
|
11399
|
+
// eslint-disable-next-line complexity
|
11400
|
+
DOMPurify.sanitize = function (dirty) {
|
11401
|
+
let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
11402
|
+
let body = null;
|
11403
|
+
let importedNode = null;
|
11404
|
+
let currentNode = null;
|
11405
|
+
let returnNode = null;
|
11406
|
+
/* Make sure we have a string to sanitize.
|
11407
|
+
DO NOT return early, as this will return the wrong type if
|
11408
|
+
the user has requested a DOM object rather than a string */
|
11409
|
+
IS_EMPTY_INPUT = !dirty;
|
11410
|
+
if (IS_EMPTY_INPUT) {
|
11411
|
+
dirty = '<!-->';
|
11412
|
+
}
|
11413
|
+
/* Stringify, in case dirty is an object */
|
11414
|
+
if (typeof dirty !== 'string' && !_isNode(dirty)) {
|
11415
|
+
if (typeof dirty.toString === 'function') {
|
11416
|
+
dirty = dirty.toString();
|
11417
|
+
if (typeof dirty !== 'string') {
|
11418
|
+
throw typeErrorCreate('dirty is not a string, aborting');
|
11419
|
+
}
|
11420
|
+
} else {
|
11421
|
+
throw typeErrorCreate('toString is not a function');
|
11422
|
+
}
|
11423
|
+
}
|
11424
|
+
/* Return dirty HTML if DOMPurify cannot run */
|
11425
|
+
if (!DOMPurify.isSupported) {
|
11426
|
+
return dirty;
|
11427
|
+
}
|
11428
|
+
/* Assign config vars */
|
11429
|
+
if (!SET_CONFIG) {
|
11430
|
+
_parseConfig(cfg);
|
11431
|
+
}
|
11432
|
+
/* Clean up removed elements */
|
11433
|
+
DOMPurify.removed = [];
|
11434
|
+
/* Check if dirty is correctly typed for IN_PLACE */
|
11435
|
+
if (typeof dirty === 'string') {
|
11436
|
+
IN_PLACE = false;
|
11437
|
+
}
|
11438
|
+
if (IN_PLACE) {
|
11439
|
+
/* Do some early pre-sanitization to avoid unsafe root nodes */
|
11440
|
+
if (dirty.nodeName) {
|
11441
|
+
const tagName = transformCaseFunc(dirty.nodeName);
|
11442
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
11443
|
+
throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
|
11444
|
+
}
|
11445
|
+
}
|
11446
|
+
} else if (dirty instanceof Node) {
|
11447
|
+
/* If dirty is a DOM element, append to an empty document to avoid
|
11448
|
+
elements being stripped by the parser */
|
11449
|
+
body = _initDocument('<!---->');
|
11450
|
+
importedNode = body.ownerDocument.importNode(dirty, true);
|
11451
|
+
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {
|
11452
|
+
/* Node is already a body, use as is */
|
11453
|
+
body = importedNode;
|
11454
|
+
} else if (importedNode.nodeName === 'HTML') {
|
11455
|
+
body = importedNode;
|
11456
|
+
} else {
|
11457
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
11458
|
+
body.appendChild(importedNode);
|
11459
|
+
}
|
11460
|
+
} else {
|
11461
|
+
/* Exit directly if we have nothing to do */
|
11462
|
+
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
|
11463
|
+
// eslint-disable-next-line unicorn/prefer-includes
|
11464
|
+
dirty.indexOf('<') === -1) {
|
11465
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
11466
|
+
}
|
11467
|
+
/* Initialize the document to work on */
|
11468
|
+
body = _initDocument(dirty);
|
11469
|
+
/* Check we have a DOM node from the data */
|
11470
|
+
if (!body) {
|
11471
|
+
return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
|
11472
|
+
}
|
11473
|
+
}
|
11474
|
+
/* Remove first element node (ours) if FORCE_BODY is set */
|
11475
|
+
if (body && FORCE_BODY) {
|
11476
|
+
_forceRemove(body.firstChild);
|
11477
|
+
}
|
11478
|
+
/* Get node iterator */
|
11479
|
+
const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
|
11480
|
+
/* Now start iterating over the created document */
|
11481
|
+
while (currentNode = nodeIterator.nextNode()) {
|
11482
|
+
/* Sanitize tags and elements */
|
11483
|
+
_sanitizeElements(currentNode);
|
11484
|
+
/* Check attributes next */
|
11485
|
+
_sanitizeAttributes(currentNode);
|
11486
|
+
/* Shadow DOM detected, sanitize it */
|
11487
|
+
if (currentNode.content instanceof DocumentFragment) {
|
11488
|
+
_sanitizeShadowDOM(currentNode.content);
|
11489
|
+
}
|
11490
|
+
}
|
11491
|
+
/* If we sanitized `dirty` in-place, return it. */
|
11492
|
+
if (IN_PLACE) {
|
11493
|
+
return dirty;
|
11494
|
+
}
|
11495
|
+
/* Return sanitized string or DOM */
|
11496
|
+
if (RETURN_DOM) {
|
11497
|
+
if (RETURN_DOM_FRAGMENT) {
|
11498
|
+
returnNode = createDocumentFragment.call(body.ownerDocument);
|
11499
|
+
while (body.firstChild) {
|
11500
|
+
// eslint-disable-next-line unicorn/prefer-dom-node-append
|
11501
|
+
returnNode.appendChild(body.firstChild);
|
11502
|
+
}
|
11503
|
+
} else {
|
11504
|
+
returnNode = body;
|
11505
|
+
}
|
11506
|
+
if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
|
11507
|
+
/*
|
11508
|
+
AdoptNode() is not used because internal state is not reset
|
11509
|
+
(e.g. the past names map of a HTMLFormElement), this is safe
|
11510
|
+
in theory but we would rather not risk another attack vector.
|
11511
|
+
The state that is cloned by importNode() is explicitly defined
|
11512
|
+
by the specs.
|
11513
|
+
*/
|
11514
|
+
returnNode = importNode.call(originalDocument, returnNode, true);
|
11515
|
+
}
|
11516
|
+
return returnNode;
|
11517
|
+
}
|
11518
|
+
let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
|
11519
|
+
/* Serialize doctype if allowed */
|
11520
|
+
if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
|
11521
|
+
serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
|
11522
|
+
}
|
11523
|
+
/* Sanitize final string template-safe */
|
11524
|
+
if (SAFE_FOR_TEMPLATES) {
|
11525
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
11526
|
+
serializedHTML = stringReplace(serializedHTML, expr, ' ');
|
11527
|
+
});
|
11528
|
+
}
|
11529
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
|
11530
|
+
};
|
11531
|
+
DOMPurify.setConfig = function () {
|
11532
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
11533
|
+
_parseConfig(cfg);
|
11534
|
+
SET_CONFIG = true;
|
11535
|
+
};
|
11536
|
+
DOMPurify.clearConfig = function () {
|
11537
|
+
CONFIG = null;
|
11538
|
+
SET_CONFIG = false;
|
11539
|
+
};
|
11540
|
+
DOMPurify.isValidAttribute = function (tag, attr, value) {
|
11541
|
+
/* Initialize shared config vars if necessary. */
|
11542
|
+
if (!CONFIG) {
|
11543
|
+
_parseConfig({});
|
11544
|
+
}
|
11545
|
+
const lcTag = transformCaseFunc(tag);
|
11546
|
+
const lcName = transformCaseFunc(attr);
|
11547
|
+
return _isValidAttribute(lcTag, lcName, value);
|
11548
|
+
};
|
11549
|
+
DOMPurify.addHook = function (entryPoint, hookFunction) {
|
11550
|
+
if (typeof hookFunction !== 'function') {
|
11551
|
+
return;
|
11552
|
+
}
|
11553
|
+
arrayPush(hooks[entryPoint], hookFunction);
|
11554
|
+
};
|
11555
|
+
DOMPurify.removeHook = function (entryPoint, hookFunction) {
|
11556
|
+
if (hookFunction !== undefined) {
|
11557
|
+
const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
|
11558
|
+
return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0];
|
11559
|
+
}
|
11560
|
+
return arrayPop(hooks[entryPoint]);
|
11561
|
+
};
|
11562
|
+
DOMPurify.removeHooks = function (entryPoint) {
|
11563
|
+
hooks[entryPoint] = [];
|
11564
|
+
};
|
11565
|
+
DOMPurify.removeAllHooks = function () {
|
11566
|
+
hooks = _createHooksMap();
|
11567
|
+
};
|
11568
|
+
return DOMPurify;
|
11569
|
+
}
|
11570
|
+
var purify = createDOMPurify();
|
11571
|
+
|
11572
|
+
return purify;
|
11573
|
+
|
11574
|
+
}));
|
11575
|
+
|
11576
|
+
}(purify));
|
11577
|
+
|
11578
|
+
var purifier = purify.exports;
|
11579
|
+
|
11580
|
+
/* istanbul ignore next */
|
11581
|
+
const getCustomElementHandling = (allowICPrefix) => ({
|
11582
|
+
CUSTOM_ELEMENT_HANDLING: {
|
11583
|
+
tagNameCheck: (tagName) => (allowICPrefix && tagName.startsWith("ic-")) ||
|
11584
|
+
IC_CUSTOM_ALLOWED_COMPONENTS.includes(tagName),
|
11585
|
+
attributeNameCheck: /.*/,
|
11586
|
+
},
|
11587
|
+
});
|
11588
|
+
const sanitizeHTMLString = (html) => {
|
11589
|
+
return purifier.sanitize(html, getCustomElementHandling(true));
|
11590
|
+
};
|
11591
|
+
const sanitizeHTMLIconString = (html) => {
|
11592
|
+
return purifier.sanitize(html, getCustomElementHandling(false));
|
11593
|
+
};
|
11594
|
+
|
11595
|
+
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}}";
|
10196
11596
|
var IcMenuStyle0 = icMenuCss;
|
10197
11597
|
|
10198
11598
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
@@ -10926,7 +12326,7 @@ class Menu {
|
|
10926
12326
|
return (hAsync(Fragment, null, option.loading && hAsync("ic-loading-indicator", { size: "icon" }), hAsync("div", { class: {
|
10927
12327
|
"option-text-container": true,
|
10928
12328
|
"show-check-icon": showCheckIcon,
|
10929
|
-
} }, hAsync("div", { class: "option-label" }, option.icon && (hAsync("div", { class: "option-icon", innerHTML: option.icon, "aria-hidden": "true" })), hAsync("ic-typography", { variant: "body", "aria-hidden": "true" }, option[this.labelField])), option.description && (hAsync("ic-typography", { id: `${this.getOptionId(option[this.valueField])}-description`, class: "option-description", variant: "caption", "aria-hidden": "true" }, hAsync("p", null, option.description))), option.element && (hAsync("div", { class: "option-element", innerHTML: option.element.component, "aria-hidden": "true" }))), showCheckIcon && hAsync("span", { class: "check-icon", innerHTML: checkIcon })));
|
12329
|
+
} }, hAsync("div", { class: "option-label" }, option.icon && (hAsync("div", { class: "option-icon", innerHTML: sanitizeHTMLIconString(option.icon), "aria-hidden": "true" })), hAsync("ic-typography", { variant: "body", "aria-hidden": "true" }, option[this.labelField])), option.description && (hAsync("ic-typography", { id: `${this.getOptionId(option[this.valueField])}-description`, class: "option-description", variant: "caption", "aria-hidden": "true" }, hAsync("p", null, option.description))), option.element && (hAsync("div", { class: "option-element", innerHTML: sanitizeHTMLString(option.element.component), "aria-hidden": "true" }))), showCheckIcon && hAsync("span", { class: "check-icon", innerHTML: checkIcon })));
|
10930
12330
|
};
|
10931
12331
|
this.displayOption = (option, selected, index, parentOption) => {
|
10932
12332
|
const { open, keyboardNav, isManualMode, initialOptionsListRender, optionHighlighted, options, } = this;
|
@@ -10948,7 +12348,7 @@ class Menu {
|
|
10948
12348
|
? "0"
|
10949
12349
|
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": selected ? "true" : "false", "aria-disabled": option.disabled ? "true" : "false", onClick: !option.timedOut && !option.loading
|
10950
12350
|
? this.handleOptionClick
|
10951
|
-
: 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",
|
12351
|
+
: 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))));
|
10952
12352
|
};
|
10953
12353
|
}
|
10954
12354
|
watchOpenHandler() {
|
@@ -11115,7 +12515,7 @@ class Menu {
|
|
11115
12515
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
11116
12516
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
11117
12517
|
const hasNoResults = this.host.classList.contains("no-results");
|
11118
|
-
return (hAsync(Host, { key: '
|
12518
|
+
return (hAsync(Host, { key: 'e17a70bcf59709dd5b9d0cc7b404520ff06bcf35', class: {
|
11119
12519
|
"ic-menu-full-width": !!fullWidth,
|
11120
12520
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
11121
12521
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
@@ -11124,7 +12524,7 @@ class Menu {
|
|
11124
12524
|
[`ic-menu-${size}`]: true,
|
11125
12525
|
"ic-menu-open": open && options.length !== 0,
|
11126
12526
|
"ic-menu-multiple": multiSelect,
|
11127
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
12527
|
+
} }, options.length !== 0 && (hAsync("ul", { key: '438cd6126c1296a14e216edc0a5d790a4705b143', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", tabindex: open &&
|
11128
12528
|
!keyboardNav &&
|
11129
12529
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
11130
12530
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
@@ -11152,7 +12552,7 @@ class Menu {
|
|
11152
12552
|
multiSelect &&
|
11153
12553
|
!isLoading &&
|
11154
12554
|
!hasTimedOut &&
|
11155
|
-
!hasNoResults && (hAsync("div", { key: '
|
12555
|
+
!hasNoResults && (hAsync("div", { key: '5732c5ac4fa70ff249a7851d61aee8ccf46082d1', class: "option-bar" }, hAsync("ic-typography", { key: '48ce8543a189cad706804715a077575b3774e490' }, hAsync("p", { key: '63537752e580815f650c3d9bbf38b23267c5229c' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: '60c446e5303a3939494284b9ce7772feb1fe547c', class: "select-all-button", "aria-label": `${selectAllButtonText} options for ${inputLabel}`, ref: (el) => (this.selectAllButton = el), variant: "tertiary", onClick: this.handleSelectAllClick, onMouseDown: this.handleSelectAllMouseDown, onBlur: this.handleSelectAllBlur, onFocus: this.handleSelectAllFocus, size: size === "small" ? "small" : "medium" }, selectAllButtonText)))));
|
11156
12556
|
}
|
11157
12557
|
get host() { return getElement(this); }
|
11158
12558
|
static get watchers() { return {
|
@@ -11212,7 +12612,7 @@ class MenuGroup {
|
|
11212
12612
|
}
|
11213
12613
|
render() {
|
11214
12614
|
const parentMenu = this.el.closest("ic-popover-menu");
|
11215
|
-
return (hAsync(Host, { key: '
|
12615
|
+
return (hAsync(Host, { key: '0671b22234980b7b332889e7d643b8f5e42841c1', role: "group", "aria-label": this.label !== null ? this.label : "" }, isPropDefined(this.label) && (hAsync("ic-typography", { key: '444d817f6505c858593b136e7c2040cf40502f56', variant: "subtitle-small" }, this.label)), hAsync("span", { key: '4b79a7b6f40da4a1eab4121f9aff972776fb52f9', class: "menu-items-wrapper" }, hAsync("slot", { key: '99160dcb17e825ac4a44ca8348dc0a1452b5f0e3' })), this.el !== (parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.querySelector("ic-menu-group:last-child")) && (hAsync("hr", { key: '3591bc3153bcefa6ba7917332e0a106144b3ea74' }))));
|
11216
12616
|
}
|
11217
12617
|
get el() { return getElement(this); }
|
11218
12618
|
static get style() { return IcMenuGroupStyle0; }
|
@@ -11759,7 +13159,7 @@ class NavigationGroup {
|
|
11759
13159
|
const isTopNav = this.navigationType === "top";
|
11760
13160
|
const isTopNavDesktop = !inTopNavSideMenu && isTopNav;
|
11761
13161
|
const ariaExpanded = (isSideNav && expanded) || (isTopNav && dropdownOpen);
|
11762
|
-
return (hAsync(Host, { key: '
|
13162
|
+
return (hAsync(Host, { key: '393cd6fdb52feac00792c6045472ffb466c45663', class: {
|
11763
13163
|
"in-side-menu": inTopNavSideMenu,
|
11764
13164
|
"ic-navigation-group-expandable": expandable,
|
11765
13165
|
"ic-navigation-group-side-nav": isSideNav,
|
@@ -12184,16 +13584,16 @@ class NavigationMenu {
|
|
12184
13584
|
}
|
12185
13585
|
}
|
12186
13586
|
render() {
|
12187
|
-
return (hAsync(Host, { key: '
|
13587
|
+
return (hAsync(Host, { key: '10788f4141f818f0f6d162ab14ef31f387a0a088', class: { [`ic-theme-${this.theme}`]: this.theme !== "inherit" } }, hAsync("div", { key: '073fc0b5677787aea69610218e31c98af2d0bcf6', class: "popout-modal", onClick: this.closeMenu }), hAsync("div", { key: 'b1c089216c1b0d048ed5f7ab22b493f18e6c1925', class: "popout-menu", role: "dialog", "aria-modal": "true", "aria-label": `${this.hasNavigation ? "Navigation" : "App"} menu` }, hAsync("span", { key: '7cd1e985e623de53c4b54d145e3c5778e5b42d9d', "aria-hidden": "true", id: "navigation-landmark-text", class: "navigation-landmark-text" }, "Main navigation"), hAsync("nav", { key: '96b72f2b119115ff4c7ae045def9f77e075a3da8', "aria-labelledby": "navigation-landmark-text", "aria-hidden": this.hasNavigation ? "false" : "true" }, hAsync("div", { key: '7f6f200c07a572b08bc40feb3bc4626fd236b82a', class: {
|
12188
13588
|
["menu-close-button-container"]: true,
|
12189
13589
|
["nav-group-first"]: this.navGroupFirst,
|
12190
|
-
} }, hAsync("ic-button", { key: '
|
13590
|
+
} }, hAsync("ic-button", { key: '4f2f8c7694c1a38b21da8c526fdb987aecdf5a80', ref: (el) => (this.closeButton = el), id: "menu-close-button", class: "menu-close-button", variant: "icon-tertiary", size: "large", "aria-label": `Close ${this.hasNavigation ? "navigation" : "app"} menu`, onClick: this.closeMenu }, hAsync("svg", { key: '9dc1c3ec5b42c3ce30a8a5d08f0478dc288029ff', width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '8afa8a42d3a4d90884d80d2997f26f62343c7c28', d: "M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" })))), this.hasNavigation && hAsync("slot", { key: '6f4b56a9ac5d20aeac2e95e7153644d47eb149ea', name: "navigation" })), this.hasButtons && (hAsync("div", { key: 'e93f88be7521de76edae1845a6dfb472435ff552', class: {
|
12191
13591
|
["menu-buttons-container"]: true,
|
12192
13592
|
["menu-buttons-container-nav-item-above"]: this.navItemAboveButtons,
|
12193
|
-
} }, hAsync("slot", { key: '
|
13593
|
+
} }, hAsync("slot", { key: 'c5c8f1021794b892fbb72511bb01336a75ce0127', name: "buttons" }))), (this.status !== "" || this.version !== "") && (hAsync("div", { key: '2fd5a79a68bec985b82699c8ec6df946ac4a84e4', class: {
|
12194
13594
|
["menu-status-version-container"]: true,
|
12195
13595
|
["status-version-no-buttons"]: !this.hasButtons,
|
12196
|
-
} }, this.status !== "" && (hAsync("div", { key: '
|
13596
|
+
} }, this.status !== "" && (hAsync("div", { key: 'c99d654ffe4ed2bd091b626af0afd9d93952e19b', class: "menu-status" }, hAsync("ic-typography", { key: 'aa8aa2cba8d295a9cd1bee92920db503fee41249', variant: "label-uppercase", "aria-label": "app tag", class: "menu-status-text" }, this.status))), this.version !== "" && (hAsync("div", { key: 'e20bad59ea61b6670905a158be44aa0af25b4560', class: "menu-version" }, hAsync("ic-typography", { key: '561be48d1ceacba55142d69237586ac93032af8c', variant: "label", class: "menu-version-text", "aria-label": "app version" }, this.version))))))));
|
12197
13597
|
}
|
12198
13598
|
get el() { return getElement(this); }
|
12199
13599
|
static get style() { return IcNavigationMenuStyle0; }
|
@@ -12326,19 +13726,19 @@ class PageHeader {
|
|
12326
13726
|
const navAriaLabel = `${isSlotUsed(this.el, "heading")
|
12327
13727
|
? (_b = (_a = this.el.querySelector('[slot="heading"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : ""
|
12328
13728
|
: heading !== null && heading !== void 0 ? heading : ""} page sections`;
|
12329
|
-
return (hAsync(Host, { key: '
|
13729
|
+
return (hAsync(Host, { key: 'ef9b1c5acf30851bedddd8f840fae60b545dfd3f', class: {
|
12330
13730
|
["ic-page-header-sticky"]: !!sticky,
|
12331
13731
|
["ic-page-header-sticky-desktop"]: !sticky && !!stickyDesktopOnly,
|
12332
13732
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
12333
|
-
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: '
|
13733
|
+
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: 'e3f5ec39b13afbd9be424125fa43ea4634a90418', class: {
|
12334
13734
|
["border-bottom"]: !!border,
|
12335
13735
|
["tabs"]: isSlotUsed(this.el, "tabs"),
|
12336
|
-
}, role: "presentation" }, hAsync("ic-section-container", { key: '
|
13736
|
+
}, role: "presentation" }, hAsync("ic-section-container", { key: '7b58d10dbc3e72c05db7fdc67342eedfde9ed139', aligned: aligned, fullHeight: isSlotUsed(this.el, "tabs") }, isSlotUsed(this.el, "breadcrumbs") && (hAsync("div", { key: '386e595418e6234228b2518c430d59248b68641f', class: "breadcrumb-area" }, hAsync("slot", { key: 'c11be2d0fdccd46ff3ac512a2816b7d6ceceac72', name: "breadcrumbs" }))), hAsync("div", { key: 'd9d1bd5b030a28dbdccbdbb80a5ef609bcc927df', class: "main-content" }, hAsync("div", { key: '4743493c932b474fad24fc708ca05648d516f3fe', class: "title-area" }, hAsync("div", { key: '34fb35fd36f2ef0d8edf3efa0b7e62323be512bb', class: "header-content" }, hAsync("slot", { key: '1830379330d7f2a2742dd5ed75c5ea1755d7f8aa', name: "heading" }, hAsync("ic-typography", { key: '44e86892aa90b0af8eb1def5733852a4e8225dbb', variant: size === "small" ? "h4" : "h2", class: "heading" }, hAsync("h2", { key: 'be25fb99e3e8e5c81c209d1bcd57680718bdc5b8' }, heading))), hAsync("slot", { key: 'c907d0d661b042a77232979fd99a375dcfcc96fe', name: "heading-adornment" })), hAsync("div", { key: 'a7561b492f4d5135b4d8957694e498a50ca42645', class: {
|
12337
13737
|
["subheading-content"]: !!subheading || isSlotUsed(this.el, "subheading"),
|
12338
13738
|
["small"]: size === "small",
|
12339
|
-
} }, hAsync("slot", { key: '
|
12340
|
-
isSlotUsed(this.el, "tabs")) && (hAsync("div", { key: '
|
12341
|
-
!isSlotUsed(this.el, "tabs") && hAsync("slot", { key: '
|
13739
|
+
} }, hAsync("slot", { key: '6dc20fc584493c88e1a3baaf5badf583ad4bf694', name: "subheading" }, hAsync("ic-typography", { key: 'a1baec7c38856a1d982e7be6cdba10f59ca01351', variant: "body" }, subheading)))), isSlotUsed(this.el, "actions") && (hAsync("div", { key: '1b5c8bc9cdcb8398379665c2ca60a470a8e5a486', class: "action-area" }, hAsync("slot", { key: 'dcc940cea6c4a0b5871aa1501752fed22cc5f932', name: "actions" }))), isSlotUsed(this.el, "input") && (hAsync("div", { key: '8d0ff957c398f1ac9d8cbc7c78ec18c9b2710a43', class: "input-area" }, hAsync("slot", { key: '3dc09d1512ad8ce911ddee0a2dddafb8ae52450c', name: "input" })))), (isSlotUsed(this.el, "stepper") ||
|
13740
|
+
isSlotUsed(this.el, "tabs")) && (hAsync("div", { key: '9f527e5a1c67ec718a55fa4756249bb0f4c6a6fe', class: "navigation-area" }, isSlotUsed(this.el, "stepper") &&
|
13741
|
+
!isSlotUsed(this.el, "tabs") && hAsync("slot", { key: 'c8f71660620ec8d74dcefb02f2663a625e539a4d', name: "stepper" }), isSlotUsed(this.el, "tabs") && (hAsync("nav", { key: 'b2aef6529f53572613bf7a0996e6f1644c98463b', "aria-label": navAriaLabel }, hAsync("ic-horizontal-scroll", { key: 'fcb0cd4af39f445f6dd6e84d46e9289a2623ce8f' }, hAsync("ul", { key: '20c1b075f4f784856f4b067d25d4b1aff1720327', class: "tabs-slot" }, hAsync("slot", { key: '3f35ee8f7b07edbe36f979aee6638e0e430d9ea0', name: "tabs" })))))))))));
|
12342
13742
|
}
|
12343
13743
|
get el() { return getElement(this); }
|
12344
13744
|
static get style() { return IcPageHeaderStyle0; }
|
@@ -12616,14 +14016,14 @@ class Pagination {
|
|
12616
14016
|
}
|
12617
14017
|
render() {
|
12618
14018
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
12619
|
-
return (hAsync(Host, { key: '
|
14019
|
+
return (hAsync(Host, { key: 'fb99bef90dd70acdcc38a49c5ead06d6d8351ed4', class: {
|
12620
14020
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
12621
14021
|
["ic-pagination-monochrome"]: !!monochrome,
|
12622
|
-
} }, type === "simple" && (hAsync("nav", { key: '
|
14022
|
+
} }, type === "simple" && (hAsync("nav", { key: '5134a43228fbd8a137fd3e34607a1139bc09c9cc', class: {
|
12623
14023
|
["disabled"]: !!disabled,
|
12624
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '
|
14024
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '911c4ad52e99e400db64354740ebcc8f8fbed41b', theme: this.theme, monochrome: this.monochrome, type: "simple-current", page: currentPage, label: label, class: { ["hide-current-page"]: !!hideCurrentPage }, disabled: disabled }), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("nav", { key: '9e803dc371d2ae0a6de0bb82fca25a8d4ad2cdb1', class: {
|
12625
14025
|
["disabled"]: !!disabled,
|
12626
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("span", { key: '
|
14026
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("span", { key: '61a05ee70fe739149339df6527a8aca0613ce56f', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
|
12627
14027
|
}
|
12628
14028
|
get el() { return getElement(this); }
|
12629
14029
|
static get watchers() { return {
|
@@ -12707,7 +14107,7 @@ class PaginationItem {
|
|
12707
14107
|
}
|
12708
14108
|
render() {
|
12709
14109
|
const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
|
12710
|
-
return (hAsync("a", { key: '
|
14110
|
+
return (hAsync("a", { key: 'ed0d1ec644f4332880be47cf2240ce08e8ba8f5c', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (hAsync("div", { class: {
|
12711
14111
|
["item-container"]: true,
|
12712
14112
|
["ellipsis"]: true,
|
12713
14113
|
["disabled"]: !!disabled,
|
@@ -13026,17 +14426,17 @@ class PopoverMenu {
|
|
13026
14426
|
this.popperProps = props;
|
13027
14427
|
}
|
13028
14428
|
render() {
|
13029
|
-
return (hAsync(Host, { key: '
|
14429
|
+
return (hAsync(Host, { key: 'b3b80be668dab0b1bf8e9c86a92871a2ccf7fa05', class: {
|
13030
14430
|
["ic-popover-menu-open"]: !!this.open,
|
13031
14431
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
13032
|
-
} }, hAsync("div", { key: '
|
14432
|
+
} }, hAsync("div", { key: '2354b0125ce713af1824928f0f63bfc4e1a51539', id: this.parentPopover === undefined
|
13033
14433
|
? `ic-popover-submenu-${this.submenuId}`
|
13034
14434
|
: "", class: {
|
13035
14435
|
menu: true,
|
13036
|
-
} }, hAsync("span", { key: '
|
14436
|
+
} }, hAsync("span", { key: 'a0fe248c348b955225eb3cbd9d4713dd4d2260f5', class: {
|
13037
14437
|
"opening-from-parent": this.openingFromParent,
|
13038
14438
|
"opening-from-child": this.openingFromChild,
|
13039
|
-
} }, isPropDefined(this.submenuId) && (hAsync("span", { key: '
|
14439
|
+
} }, isPropDefined(this.submenuId) && (hAsync("span", { key: 'b0f4cd227ca7e89a65a05ff7e168c902d90fbd27' }, hAsync("span", { key: '2cae5777f8e07730803524dca57d2489755af132', role: "menu" }, hAsync("ic-menu-item", { key: '65be6ed2c83365bfc8888f9d1232fe34b61b9547', class: "ic-popover-submenu-back-button", ref: (el) => (this.backButton = el), label: "Back", onClick: this.handleBackButtonClick, id: `ic-popover-submenu-back-button-${this.submenuLevel}` }, hAsync("svg", { key: '51312621130f75922f672a78e96c5f143844fd23', slot: "icon", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "submenu-back-icon" }, hAsync("path", { key: 'db43490c2526d8aef7b985109b0592d6e47d97fb', d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z", fill: "currentColor" })))), hAsync("ic-typography", { key: 'd1f5dea7708ece652f7033fc879ebd2ecf9485e4', variant: "subtitle-small", class: "parent-label" }, this.parentLabel))), hAsync("div", { key: '57da0710affbfada09d7bb4f040b235bbd86bee4', class: "menu-body", "aria-label": this.getMenuAriaLabel(), role: "menu" }, hAsync("slot", { key: '745f05595c859f9c6259716dc4c4635d66cd95fc' }))))));
|
13040
14440
|
}
|
13041
14441
|
static get delegatesFocus() { return true; }
|
13042
14442
|
get el() { return getElement(this); }
|
@@ -13070,7 +14470,7 @@ class PopoverMenu {
|
|
13070
14470
|
}; }
|
13071
14471
|
}
|
13072
14472
|
|
13073
|
-
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)}";
|
14473
|
+
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)}";
|
13074
14474
|
var IcRadioGroupStyle0 = icRadioGroupCss;
|
13075
14475
|
|
13076
14476
|
/**
|
@@ -13106,6 +14506,10 @@ class RadioGroup {
|
|
13106
14506
|
* The size of the radio group component.
|
13107
14507
|
*/
|
13108
14508
|
this.size = "medium";
|
14509
|
+
/**
|
14510
|
+
* The value of the `aria-live` attribute on the validation message.
|
14511
|
+
*/
|
14512
|
+
this.validationAriaLive = "polite";
|
13109
14513
|
/**
|
13110
14514
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
13111
14515
|
*/
|
@@ -13299,17 +14703,20 @@ class RadioGroup {
|
|
13299
14703
|
}
|
13300
14704
|
}
|
13301
14705
|
render() {
|
13302
|
-
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationStatus, validationText, theme, } = this;
|
13303
|
-
|
14706
|
+
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationAriaLive, validationStatus, validationText, theme, } = this;
|
14707
|
+
const showValidation = hasValidationStatus(validationStatus, disabled);
|
14708
|
+
return (hAsync(Host, { key: '4ea2e0ca7614fb4ce6563ea146f86d72707a399a', onKeyDown: handleKeyDown, class: {
|
13304
14709
|
"ic-radio-group-small": size === "small",
|
13305
14710
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
13306
|
-
} }, hAsync("
|
14711
|
+
} }, hAsync("fieldset", { key: 'ebad7a878454455a15892bf53c43bdcb914b77c4', role: "radiogroup", id: this.name, "aria-required": `${required}` }, !hideLabel && (hAsync("legend", { key: 'aac1f37c7b1d4d5bc621bd3030dc9eef60417659' }, hAsync("ic-input-label", { key: 'fd04e3f74c89b633996eb22e60902e988a8ac8ef', class: {
|
13307
14712
|
[`${validationStatus}`]: true,
|
13308
14713
|
["disabled"]: !!disabled,
|
13309
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '
|
14714
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '66325d58018dff189c975e3e4fc01249b51b6b9f', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '6d2d332396c87b798d5d160bdb5977c0a8ad6751', class: {
|
13310
14715
|
"radio-buttons-container": true,
|
13311
14716
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
13312
|
-
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: '
|
14717
|
+
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: 'fb0a1b41503ba88ce9bda3c0bc8236ae0a7e3795' }))), hAsync("ic-input-validation", { key: 'f9f7c2bdffd83d705149f74fe2caad93e57dd85b', class: {
|
14718
|
+
"show-validation": showValidation,
|
14719
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
13313
14720
|
}
|
13314
14721
|
get el() { return getElement(this); }
|
13315
14722
|
static get watchers() { return {
|
@@ -13330,6 +14737,7 @@ class RadioGroup {
|
|
13330
14737
|
"orientation": [1],
|
13331
14738
|
"required": [4],
|
13332
14739
|
"size": [1],
|
14740
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
13333
14741
|
"validationStatus": [1, "validation-status"],
|
13334
14742
|
"validationText": [1, "validation-text"],
|
13335
14743
|
"theme": [1],
|
@@ -13344,7 +14752,7 @@ class RadioGroup {
|
|
13344
14752
|
}; }
|
13345
14753
|
}
|
13346
14754
|
|
13347
|
-
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-
|
14755
|
+
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}";
|
13348
14756
|
var IcRadioOptionStyle0 = icRadioOptionCss;
|
13349
14757
|
|
13350
14758
|
const ADDITIONAL_FIELD = "additional-field";
|
@@ -13489,15 +14897,15 @@ class RadioOption {
|
|
13489
14897
|
render() {
|
13490
14898
|
const { additionalFieldDisplay, disabled, dynamicText, form, groupLabel, handleClick, handleKeyDown, hasAdditionalField, label, name, selected, value, theme, } = this;
|
13491
14899
|
const id = `ic-radio-option-${isPropDefined(label) || value}-${groupLabel}`;
|
13492
|
-
return (hAsync(Host, { key: '
|
14900
|
+
return (hAsync(Host, { key: '3d233946c372788a34128912099c47d6858d7ea9', onClick: handleClick, onKeyDown: handleKeyDown, class: {
|
13493
14901
|
["ic-radio-option-disabled"]: !!disabled,
|
13494
14902
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
13495
|
-
} }, hAsync("div", { key: '
|
14903
|
+
} }, hAsync("div", { key: 'e932a0827c6b0620522f9f3df3f5a06316098949', class: { container: true, disabled: !!disabled } }, hAsync("div", { key: '64eeea95469af9831655f56701e2332255bf6669' }, hAsync("input", { key: '32f7a8840d8a14a89f1a79b9c61890e0e2fe23a0', tabindex: selected ? "0" : "-1", type: "radio", name: name, id: id, value: value, disabled: disabled, checked: selected, ref: (el) => (this.radioElement = el), form: form }), hAsync("span", { key: '6cbea9714c51eb75b7be07a509049f0c330ffca5', class: "checkmark" })), hAsync("ic-typography", { key: '55164cf8d231d449267b74389f9d7cd8193ab6db', class: "radio-label", variant: "body" }, hAsync("label", { key: '54014827aa5c16641bc3fa864974382bf0715335', htmlFor: id }, label))), hasAdditionalField && (hAsync("div", { key: '5f3e1054494365c3fafdfd421bed64523307406b', class: {
|
13496
14904
|
"dynamic-container": true,
|
13497
14905
|
hidden: additionalFieldDisplay === "dynamic" && !selected,
|
13498
|
-
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '
|
14906
|
+
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: 'd9c292dd502569650dcf327a3e48716cde723593', class: "branch-corner" })), hAsync("div", { key: '3994230df8af7e9c5215646a1c5c3d5687961637' }, additionalFieldDisplay === "dynamic" && (hAsync("ic-typography", { key: '0b92403d743c4517ca099586a2845e71d528c329', variant: "caption", role: "alert" }, hAsync("p", { key: '0b689ea686ff2cb08b27858920a2f0548c197aa7', class: "dynamic-text" }, dynamicText))), hAsync("div", { key: '7e023eb75b14dd0a75acbe5321ecd676de0a67d4', class: {
|
13499
14907
|
"additional-field-wrapper": additionalFieldDisplay === "static",
|
13500
|
-
} }, hAsync("slot", { key: '
|
14908
|
+
} }, hAsync("slot", { key: 'b3f82b1650ef67a732b35a32c5088745f31d1f31', name: ADDITIONAL_FIELD })))))));
|
13501
14909
|
}
|
13502
14910
|
get el() { return getElement(this); }
|
13503
14911
|
static get watchers() { return {
|
@@ -14080,39 +15488,39 @@ class SearchBar {
|
|
14080
15488
|
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
14081
15489
|
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
14082
15490
|
renderHiddenInput(this.el, value, name, disabledMode);
|
14083
|
-
return (hAsync(Host, { key: '
|
15491
|
+
return (hAsync(Host, { key: '71d9a6e7a555373e98a3ee7ea114fc1f69f06570', class: {
|
14084
15492
|
"ic-search-bar-search": true,
|
14085
15493
|
"ic-search-bar-full-width": fullWidth,
|
14086
15494
|
"ic-search-bar-disabled": disabled,
|
14087
15495
|
"ic-search-bar-small": size === "small",
|
14088
15496
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
14089
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '
|
15497
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '23dfe2a04d5c039174366f85fa42df074fd30c98', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '1c222b2269cbab7436dc225b75e09568d323a1f0', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly }, hAsync("slot", { key: 'e38a00e300ddc76daaf3c52332adab4ac16038c4', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: '17dff32cab5a5b34673c1255f0a1d696b9df84b4', ref: (el) => (this.anchorEl = el), size: size, disabled: disabledMode, readonly: readonly, fullWidth: fullWidth }, hAsync("input", { key: 'e5d666c8a1609a1683b735940afd707e67b7eaa6', id: inputId, name: name, ref: (el) => (this.inputEl = el), value: options && !!labelValue ? labelValue : value, class: {
|
14090
15498
|
"no-left-pad": readonly,
|
14091
15499
|
readonly,
|
14092
15500
|
"truncate-value": truncateValue,
|
14093
|
-
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : undefined, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), hAsync("div", { key: '
|
15501
|
+
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : undefined, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), hAsync("div", { key: '98887c2626a05e3ddc15c7ddad3a756262c197e8', class: {
|
14094
15502
|
"clear-button-container": true,
|
14095
15503
|
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
14096
|
-
} }, hAsync("ic-button", { key: '
|
15504
|
+
} }, hAsync("ic-button", { key: '119b7ae17e8c7cbd8a56e6bd8136340c269958e3', id: "clear-button", class: {
|
14097
15505
|
"clear-button": true,
|
14098
15506
|
"clear-button-unfocused": !clearButtonFocused,
|
14099
|
-
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "button", variant: "icon", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { key: '
|
15507
|
+
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "button", variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { key: 'bf3e848c1e275217c686f3aab3b10a09396d6b4e', class: "divider" })), hAsync("div", { key: '4075cd96e0274043b8da4e25d32a5cee5d4bb0e5', class: {
|
14100
15508
|
"search-submit-button-container": true,
|
14101
15509
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
14102
|
-
} }, hAsync("ic-button", { key: '
|
15510
|
+
} }, hAsync("ic-button", { key: '77e1e8bfef4ce5304dbf877b5ecfc440d37d864c', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
14103
15511
|
"search-submit-button": true,
|
14104
15512
|
"search-submit-button-small": size === "small",
|
14105
15513
|
"search-submit-button-unfocused": !searchSubmitFocused,
|
14106
15514
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
14107
|
-
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: searchButtonType, variant: "icon", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: '
|
15515
|
+
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: searchButtonType, variant: "icon-tertiary", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: '20e98815de9ec0c35fa247026de3d9e273161ea6', class: {
|
14108
15516
|
"menu-container": true,
|
14109
15517
|
fullwidth: fullWidth,
|
14110
|
-
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '
|
15518
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: 'b2f7d74335c27d93e9f5dc5b63bab80daeb3eeae', class: {
|
14111
15519
|
"no-results": this.hadNoOptions() ||
|
14112
15520
|
(filteredOptions.length === 1 &&
|
14113
15521
|
(filteredOptions[0][labelField] === loadingLabel ||
|
14114
15522
|
filteredOptions[0][labelField] === loadingErrorLabel)),
|
14115
|
-
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: true, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: labelField, valueField: valueField, searchBar: true })))), hAsync("div", { key: '
|
15523
|
+
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: true, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: labelField, valueField: valueField, searchBar: true })))), hAsync("div", { key: 'f76306ff99a2c103fdea197759f6036d479dc51f', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
14116
15524
|
}
|
14117
15525
|
static get delegatesFocus() { return true; }
|
14118
15526
|
get el() { return getElement(this); }
|
@@ -14196,12 +15604,12 @@ class SectionContainer {
|
|
14196
15604
|
}
|
14197
15605
|
render() {
|
14198
15606
|
const { aligned, fullHeight } = this;
|
14199
|
-
return (hAsync(Host, { key: '
|
15607
|
+
return (hAsync(Host, { key: '1d47dd5e8fe26fbf69b3cea13a0a04304f2bd1e8', class: {
|
14200
15608
|
["aligned-left"]: aligned === "left" || aligned === null,
|
14201
15609
|
["aligned-center"]: aligned === "center",
|
14202
15610
|
["aligned-full-width"]: aligned === "full-width",
|
14203
15611
|
["no-vertical-padding"]: !!fullHeight,
|
14204
|
-
} }, hAsync("slot", { key: '
|
15612
|
+
} }, hAsync("slot", { key: '2aed7afff105eeb51ddff32f9759e1d62737107b' })));
|
14205
15613
|
}
|
14206
15614
|
static get style() { return IcSectionContainerStyle0; }
|
14207
15615
|
static get cmpMeta() { return {
|
@@ -14349,6 +15757,10 @@ class Select {
|
|
14349
15757
|
* 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.
|
14350
15758
|
*/
|
14351
15759
|
this.theme = "inherit";
|
15760
|
+
/**
|
15761
|
+
* The value of the `aria-live` attribute on the validation message.
|
15762
|
+
*/
|
15763
|
+
this.validationAriaLive = "polite";
|
14352
15764
|
/**
|
14353
15765
|
* The validation status - e.g. 'error' | 'warning' | 'success'.
|
14354
15766
|
*/
|
@@ -15003,12 +16415,13 @@ class Select {
|
|
15003
16415
|
}
|
15004
16416
|
render() {
|
15005
16417
|
var _a;
|
15006
|
-
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;
|
16418
|
+
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;
|
15007
16419
|
// HTML inputs only accept 'string' for their value
|
15008
16420
|
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
15009
16421
|
renderHiddenInput(this.el, searchable ? hiddenInputValue : currValue, name || inputId, disabled);
|
15010
16422
|
const invalid = `${validationStatus === IcInformationStatus.Error}`;
|
15011
|
-
const
|
16423
|
+
const showValidation = hasValidationStatus(validationStatus, !!disabled);
|
16424
|
+
const describedBy = getInputDescribedByText(this.el, inputId, helperText !== "", showValidation).trim();
|
15012
16425
|
const valueLabelString = multiple
|
15013
16426
|
? this.getMultipleOptionsString(currValue)
|
15014
16427
|
: this.getLabelFromValue(currValue);
|
@@ -15016,30 +16429,30 @@ class Select {
|
|
15016
16429
|
(searchable
|
15017
16430
|
? !!searchableSelectInputValue
|
15018
16431
|
: !!currValue && !loading && showClearButton);
|
15019
|
-
return (hAsync(Host, { key: '
|
16432
|
+
return (hAsync(Host, { key: 'd4771b458b86fdf5e8fd7242b0faa34c641dc1fd', class: {
|
15020
16433
|
"ic-select-disabled": disabled,
|
15021
16434
|
"ic-select-searchable": searchable,
|
15022
16435
|
[`ic-select-${size}`]: size !== "medium",
|
15023
16436
|
"ic-select-full-width": fullWidth,
|
15024
16437
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
15025
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
16438
|
+
}, 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") &&
|
15026
16439
|
!disabled &&
|
15027
|
-
(!readonly || !!value) && (hAsync("span", { key: '
|
16440
|
+
(!readonly || !!value) && (hAsync("span", { key: '208359e9a4b4c92823fa924ce0e7b0e5419c0cef', slot: "left-icon", class: {
|
15028
16441
|
readonly,
|
15029
16442
|
"has-value": !!value,
|
15030
|
-
} }, hAsync("slot", { key: '
|
16443
|
+
} }, 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: {
|
15031
16444
|
"value-text": true,
|
15032
16445
|
"select-input": true,
|
15033
16446
|
"with-clear-button": !!searchableSelectInputValue,
|
15034
16447
|
}, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: inputId, value: searchableSelectInputValue || undefined, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: form }), isClearable && (hAsync("div", { class: "clear-button-container" }, hAsync("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": searchableSelectInputValue &&
|
15035
16448
|
(currValue === null || loading)
|
15036
16449
|
? "Clear input"
|
15037
|
-
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { class: "divider" }))), hAsync("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
16450
|
+
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { class: "divider" }))), hAsync("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
15038
16451
|
"expand-icon": true,
|
15039
16452
|
"expand-icon-open": open,
|
15040
|
-
}, innerHTML: Expand, "aria-hidden": "true" }), hAsync("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (hAsync("div", { class: "select-container" }, hAsync("button", { class: "select-input", ref: (el) => (this.customSelectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && currValue
|
16453
|
+
}, innerHTML: Expand, "aria-hidden": "true" }), hAsync("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (hAsync("div", { class: "select-container" }, hAsync("button", { role: "combobox", class: "select-input", ref: (el) => (this.customSelectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && currValue
|
15041
16454
|
? `${currValue.length} of ${getOptionsWithoutGroupTitlesCount(options)} selected, ${valueLabelString}`
|
15042
|
-
: valueLabelString) || placeholder}
|
16455
|
+
: valueLabelString) || placeholder}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": `${open}`, "aria-owns": menuId, "aria-controls": menuId, "aria-required": `${required}`, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, hAsync("ic-typography", { variant: "body", class: {
|
15043
16456
|
"value-text": true,
|
15044
16457
|
"with-clear-button": isClearable,
|
15045
16458
|
placeholder: !loading && multiple
|
@@ -15048,13 +16461,15 @@ class Select {
|
|
15048
16461
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
15049
16462
|
"expand-icon": true,
|
15050
16463
|
"expand-icon-open": open,
|
15051
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (hAsync("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: '
|
16464
|
+
}, 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: {
|
15052
16465
|
"no-results": loading ||
|
15053
16466
|
hasTimedOut ||
|
15054
16467
|
((_a = noOptions === null || noOptions === void 0 ? void 0 : noOptions[0]) === null || _a === void 0 ? void 0 : _a.label) === emptyOptionListText,
|
15055
16468
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
15056
16469
|
? this.searchableSelectElement
|
15057
|
-
: 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: '
|
16470
|
+
: 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: {
|
16471
|
+
"menu-open": open,
|
16472
|
+
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
|
15058
16473
|
}
|
15059
16474
|
static get delegatesFocus() { return true; }
|
15060
16475
|
get el() { return getElement(this); }
|
@@ -15095,6 +16510,7 @@ class Select {
|
|
15095
16510
|
"size": [1],
|
15096
16511
|
"timeout": [2],
|
15097
16512
|
"theme": [1],
|
16513
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
15098
16514
|
"validationStatus": [1, "validation-status"],
|
15099
16515
|
"validationText": [1, "validation-text"],
|
15100
16516
|
"loading": [1028],
|
@@ -15582,7 +16998,7 @@ class SideNavigation {
|
|
15582
16998
|
isAppNameSubtitleVariant,
|
15583
16999
|
appTitle: appTitle || "",
|
15584
17000
|
};
|
15585
|
-
return (hAsync(Host, { key: '
|
17001
|
+
return (hAsync(Host, { key: '1871b4817a2429ce72b39c00fc3d46bab905c6fc', class: {
|
15586
17002
|
"xs-menu-open": menuOpen && isSDevice,
|
15587
17003
|
"xs-menu-close": !menuOpen && isSDevice,
|
15588
17004
|
"sm-collapsed": !isSDevice && !menuExpanded,
|
@@ -15591,12 +17007,12 @@ class SideNavigation {
|
|
15591
17007
|
[`ic-side-navigation-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
15592
17008
|
["collapsed-labels"]: !isSDevice && !menuExpanded && !!collapsedIconLabels,
|
15593
17009
|
["ic-side-navigation-inline"]: !!inline,
|
15594
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '
|
17010
|
+
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'aebfc5addba3dd16ecce70793aca0bb2ab17063c', class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'a72db8a874a3e55441f1bb863820f46c0514797e', class: "side-navigation-inner" }, isSlotUsed(this.el, "primary-navigation") && (hAsync("nav", { key: 'f3f9d819f3d6b28a754fae1d49f7ce11a701bfe8', class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { key: 'd955badde7737aef71f05e06628d9d15de29c64b', "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { key: 'b4f076849b8d539dfa3fe2d585cb3f20ce6182be', class: "navigation-list" }, hAsync("slot", { key: 'aefe3f024c8d568d18f3258fd544ba2455689e4c', name: "primary-navigation" }))))), hAsync("div", { key: '06d0d7c5fdba21f969b7aa003367f0d6bf55c5ad', class: {
|
15595
17011
|
["bottom-wrapper"]: true,
|
15596
17012
|
["classification-spacing"]: hasClassificationBanner(),
|
15597
|
-
} }, isSlotUsed(this.el, "secondary-navigation") && (hAsync("nav", { key: '
|
17013
|
+
} }, isSlotUsed(this.el, "secondary-navigation") && (hAsync("nav", { key: '98ec2710e3a7efb48f1e10e61883bf907809fd42', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { key: '5e5deaff8dcebd21aff6a3d12b8b74a63a1d30af', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { key: 'fe90d8b0dd6f9eca02cbeff03282d6ceb9c6504c', class: "navigation-list" }, hAsync("slot", { key: 'e8898037866399513e4d30079dfa22103728822f', name: "secondary-navigation" })))), hAsync("div", { key: '6a6ff5aa39c7043b1086341bb1a6f6282d87e05f', class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", { key: '436be776f4e8b35c22ce667f954496b70ecd9560' }), displayExpandBtn && (hAsync("button", { key: 'ca535ebc2e5215117ab336d6e121303410ec5c2c', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { key: '8421c8faeb1b0befe65bd8688ba0d1900d412fc2', class: "app-status-wrapper" }, status && (hAsync("div", { key: '5c05a7847f5f3bc96c2ffd257dced7e641d44ca5', class: {
|
15598
17014
|
["app-status"]: true,
|
15599
|
-
} }, hAsync("ic-typography", { key: '
|
17015
|
+
} }, hAsync("ic-typography", { key: '573a3ebe74fb8b2ed301781aa92415168a7360a7', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version && (hAsync("ic-typography", { key: 'f7da37453fb39e3ca44f79f5780fe42ce7869bb8', variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
15600
17016
|
}
|
15601
17017
|
get el() { return getElement(this); }
|
15602
17018
|
static get watchers() { return {
|
@@ -15660,11 +17076,11 @@ class Skeleton {
|
|
15660
17076
|
width: el.style.width || (variant === "circle" ? "25px" : "260px"),
|
15661
17077
|
}
|
15662
17078
|
: undefined;
|
15663
|
-
return (hAsync(Host, { key: '
|
17079
|
+
return (hAsync(Host, { key: '9652d6ecbb5bd3bca6c490a6e80a80e40fa245af', class: {
|
15664
17080
|
skeleton: true,
|
15665
17081
|
"ic-skeleton-circle": variant === "circle",
|
15666
17082
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
15667
|
-
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: '
|
17083
|
+
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: 'f476ba878aa6acba4bbe00f1aa30502657331721' })));
|
15668
17084
|
}
|
15669
17085
|
get el() { return getElement(this); }
|
15670
17086
|
static get style() { return IcSkeletonStyle0; }
|
@@ -15721,9 +17137,9 @@ class SkipLink {
|
|
15721
17137
|
}
|
15722
17138
|
render() {
|
15723
17139
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
15724
|
-
return (hAsync(Host, { key: '
|
17140
|
+
return (hAsync(Host, { key: 'd5ded3b300f0b8dbe65235d6be9dec8ec8d88b5b', class: {
|
15725
17141
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
15726
|
-
} }, hAsync("ic-link", { key: '
|
17142
|
+
} }, hAsync("ic-link", { key: '8f81758c7ebf977b264890c2df38de381bf1b4f7', class: {
|
15727
17143
|
"display-top": !inline,
|
15728
17144
|
"full-width": !!fullWidth,
|
15729
17145
|
"show-background": !transparentBackground,
|
@@ -15788,12 +17204,12 @@ class StatusTag {
|
|
15788
17204
|
}
|
15789
17205
|
render() {
|
15790
17206
|
const { label, status, variant, size, announced, theme, uppercase } = this;
|
15791
|
-
return (hAsync(Host, { key: '
|
17207
|
+
return (hAsync(Host, { key: '294225d51b55c99b24e3eaf077fe5c62008004db', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, hAsync("strong", { key: 'c35594ae01f0e7769381c18a43aa58e21997f0da', class: {
|
15792
17208
|
["tag"]: true,
|
15793
17209
|
[`${variant}-${status}`]: true,
|
15794
17210
|
["outlined"]: variant === "outlined",
|
15795
17211
|
[`${size}`]: true,
|
15796
|
-
} }, hAsync("ic-typography", { key: '
|
17212
|
+
} }, hAsync("ic-typography", { key: '0ccc4949134d73f83cee64ec456d1a3f42054b9e', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, hAsync("span", { key: '4fbe4a1f344e5ced1878ae7e3ac6debfb6a91389' }, label)))));
|
15797
17213
|
}
|
15798
17214
|
static get style() { return IcStatusTagStyle0; }
|
15799
17215
|
static get cmpMeta() { return {
|
@@ -15828,6 +17244,19 @@ class Step {
|
|
15828
17244
|
* @internal If `true`, and a compact stepper is being used, the current step will be the only step in view.
|
15829
17245
|
*/
|
15830
17246
|
this.current = false;
|
17247
|
+
/**
|
17248
|
+
* Words within the component that can be replaced to translate the component into a different language
|
17249
|
+
*/
|
17250
|
+
this.icI18n = {
|
17251
|
+
next: "Next",
|
17252
|
+
step: "Step",
|
17253
|
+
of: "of",
|
17254
|
+
lastStep: "Last step",
|
17255
|
+
completed: "Completed",
|
17256
|
+
notRequired: "Not required",
|
17257
|
+
required: "Required",
|
17258
|
+
optional: "Optional",
|
17259
|
+
};
|
15831
17260
|
/**
|
15832
17261
|
* @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.
|
15833
17262
|
*/
|
@@ -15847,96 +17276,95 @@ class Step {
|
|
15847
17276
|
}
|
15848
17277
|
render() {
|
15849
17278
|
var _a, _b;
|
17279
|
+
const { compactStepStyling, current, heading, icI18n, lastStep, lastStepNum, nextStepHeading, progress, status, stepNum, subheading, theme, type, variant, } = this;
|
15850
17280
|
// ARIA LABEL
|
15851
17281
|
let ariaLabel = "";
|
15852
|
-
if (
|
15853
|
-
ariaLabel =
|
17282
|
+
if (type === "completed") {
|
17283
|
+
ariaLabel = `. ${icI18n.completed}`;
|
15854
17284
|
}
|
15855
|
-
else if (
|
15856
|
-
ariaLabel =
|
17285
|
+
else if (type === "disabled") {
|
17286
|
+
ariaLabel = `. ${icI18n.notRequired}`;
|
15857
17287
|
}
|
15858
|
-
else if (
|
15859
|
-
ariaLabel =
|
17288
|
+
else if (status === "required") {
|
17289
|
+
ariaLabel = `. ${icI18n.required}`;
|
15860
17290
|
}
|
15861
|
-
else if (
|
15862
|
-
ariaLabel =
|
17291
|
+
else if (status === "optional") {
|
17292
|
+
ariaLabel = `. ${icI18n.optional}`;
|
15863
17293
|
}
|
15864
17294
|
// STEP STATUS
|
15865
17295
|
let stepStatus;
|
15866
|
-
if (
|
15867
|
-
stepStatus =
|
17296
|
+
if (status && isPropDefined(status)) {
|
17297
|
+
stepStatus = status[0].toUpperCase() + status.slice(1);
|
15868
17298
|
}
|
15869
17299
|
// STEP TYPE
|
15870
17300
|
let stepType;
|
15871
|
-
if (
|
15872
|
-
stepType =
|
17301
|
+
if (type === "disabled" || compactStepStyling === "disabled") {
|
17302
|
+
stepType = icI18n.notRequired;
|
15873
17303
|
}
|
15874
|
-
else if (
|
15875
|
-
stepType =
|
17304
|
+
else if (compactStepStyling === "completed") {
|
17305
|
+
stepType = icI18n.completed;
|
15876
17306
|
}
|
15877
17307
|
// STATUS ICON FOR COMPACT STEP
|
15878
17308
|
let statusIcon;
|
15879
|
-
if (
|
15880
|
-
statusIcon = (hAsync("span", { key: '
|
17309
|
+
if (type === "completed" || compactStepStyling === "completed") {
|
17310
|
+
statusIcon = (hAsync("span", { key: '8c76808f7d75f2d9ae6293209ef86bae0e79716d', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
15881
17311
|
}
|
15882
|
-
else if (
|
15883
|
-
|
15884
|
-
statusIcon = (hAsync("span", { key: 'aedd81eacbe9ca6a4e331142d09053926b00dcd4', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
17312
|
+
else if (type === "disabled" || compactStepStyling === "disabled") {
|
17313
|
+
statusIcon = (hAsync("span", { key: '16ba6a8045db3f5694f7546a5458b6f91261d814', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
15885
17314
|
}
|
15886
17315
|
// COMPACT STEP COMPONENT
|
15887
|
-
const compactStep = (hAsync("div", { key: '
|
17316
|
+
const compactStep = (hAsync("div", { key: '914fd4dade3b6900052b9ac08f665610f10ee467', class: {
|
15888
17317
|
["step"]: true,
|
15889
|
-
["current"]: !!
|
15890
|
-
[`compact-step-${
|
15891
|
-
["disabled"]:
|
15892
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
17318
|
+
["current"]: !!current,
|
17319
|
+
[`compact-step-${compactStepStyling}`]: !!compactStepStyling,
|
17320
|
+
["disabled"]: type === "disabled" || compactStepStyling === "disabled",
|
17321
|
+
} }, hAsync("ic-loading-indicator", { key: '4679914758455a299e8bab80e4640fa3fcdb6a18', class: {
|
15893
17322
|
"compact-step-progress-indicator": true,
|
15894
|
-
"not-required":
|
15895
|
-
|
15896
|
-
|
15897
|
-
|
15898
|
-
this.type === "disabled" ||
|
17323
|
+
"not-required": type === "disabled" || compactStepStyling === "disabled",
|
17324
|
+
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), hAsync("div", { key: '7666cfe7acb4966bcb1baa07f457dba6b21120b5', class: "heading-area" }, hAsync("ic-typography", { key: '247088bc17d4ed998e5d04150e4a2e0c0a0185b2', variant: "h4", class: "heading" }, heading), hAsync("div", { key: 'bf63017723f6db8ccbb27583a2f04a548c596ea9', class: "info-line" }, hAsync("ic-typography", { key: '621c958bc31df3631b808a8055d964d71ba97388', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, hAsync("span", { key: 'e08ea47dd3a11327ca6ee4b8e0d75f292c8c812f', class: "visually-hidden" }, " steps")), (this.subheading ||
|
17325
|
+
type === "completed" ||
|
17326
|
+
type === "disabled" ||
|
15899
17327
|
(this.variant === "compact" &&
|
15900
|
-
!!
|
15901
|
-
|
15902
|
-
!!
|
15903
|
-
?
|
15904
|
-
:
|
15905
|
-
(
|
15906
|
-
|
15907
|
-
|
15908
|
-
(
|
15909
|
-
|
17328
|
+
!!compactStepStyling &&
|
17329
|
+
compactStepStyling !== "active") ||
|
17330
|
+
!!status) && (hAsync("div", { key: '7614152c3bfad5b936e206e3ab9c295763f2569c', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (hAsync("ic-typography", { key: '8c1e5c2b326a40237d5e3ef5ed1bcdec7c8f8132', variant: "caption" }, subheading !== null && isPropDefined(subheading)
|
17331
|
+
? subheading
|
17332
|
+
: type === "disabled" ||
|
17333
|
+
(variant === "compact" &&
|
17334
|
+
compactStepStyling === "disabled") ||
|
17335
|
+
type === "completed" ||
|
17336
|
+
(variant === "compact" &&
|
17337
|
+
compactStepStyling === "completed")
|
15910
17338
|
? stepType
|
15911
|
-
:
|
17339
|
+
: 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))))));
|
15912
17340
|
// ICON FOR DEFAULT STEP
|
15913
17341
|
let icon;
|
15914
|
-
if (
|
15915
|
-
icon = (hAsync("ic-typography", { key: '
|
17342
|
+
if (type !== "completed") {
|
17343
|
+
icon = (hAsync("ic-typography", { key: 'ffa20478aed6b35a92c1cc1f16ebcebb97492553', variant: "subtitle-small" }, hAsync("span", { key: 'ed4a75d2aab01948cd6417c697a0c150d9f1d262', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
15916
17344
|
}
|
15917
17345
|
else {
|
15918
|
-
icon = (hAsync("div", { key: '
|
17346
|
+
icon = (hAsync("div", { key: 'b50a1c3094e7f1328d0f86ab10892afcd8a3c41a', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: '8c277146b4a653097a7e8ec5ceff6112e667ac38', class: "check-icon", innerHTML: checkIcon })));
|
15919
17347
|
}
|
15920
17348
|
// STEP CONNECT FOR DEFAULT STEP
|
15921
|
-
const partialBar =
|
15922
|
-
const finalStep = !
|
17349
|
+
const partialBar = type === "current" && (hAsync("div", { key: '5bc99a6129f3dfffc9b57175a2a18fd589a07557', class: "step-connect-inner" }));
|
17350
|
+
const finalStep = !lastStep && (hAsync("div", { key: 'e16d56443005483e87a58164452d57fe93ccbaca', class: {
|
15923
17351
|
["step-connect"]: true,
|
15924
17352
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
15925
17353
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
15926
17354
|
} }, partialBar));
|
15927
17355
|
// DEFAULT STEP COMPONENT
|
15928
|
-
const defaultStep = (hAsync("div", { key: '
|
17356
|
+
const defaultStep = (hAsync("div", { key: 'd50917250a7ce0866f877bf7b957a45789059240', class: {
|
15929
17357
|
["step"]: true,
|
15930
|
-
[`${
|
15931
|
-
} }, hAsync("div", { key: '
|
15932
|
-
?
|
17358
|
+
[`${type}`]: true,
|
17359
|
+
} }, hAsync("div", { key: 'c90e98efccf917d2327958e5bd0a722561e3e661', class: "step-top" }, hAsync("div", { key: '2ae403e7604d97633da0f5df80665626312e6d98', class: "step-icon" }, icon), finalStep), (heading || subheading || status) && (hAsync("div", { key: '0b028ca96dd4ba62da9a77327575af1178b95e87', class: "heading-area" }, heading && (hAsync("ic-typography", { key: '19127034e751855cf6b817d4afe4e4b6e1542321', variant: "subtitle-large", class: "heading" }, heading)), heading && (subheading || status) && (hAsync("ic-typography", { key: '1faa4f2dfc841105d9989e442360c44d0b162f4d', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined(subheading)
|
17360
|
+
? subheading
|
15933
17361
|
: stepStatus))))));
|
15934
|
-
return (hAsync(Host, { key: '
|
17362
|
+
return (hAsync(Host, { key: '05bb1106d2259fca749c197e79caa408dc237326', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
|
15935
17363
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
15936
17364
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
15937
|
-
[`ic-step-${
|
15938
|
-
[`ic-theme-${
|
15939
|
-
} },
|
17365
|
+
[`ic-step-${variant}`]: true,
|
17366
|
+
[`ic-theme-${theme}`]: this.theme !== "inherit",
|
17367
|
+
} }, variant === "compact" ? compactStep : defaultStep));
|
15940
17368
|
}
|
15941
17369
|
get el() { return getElement(this); }
|
15942
17370
|
static get watchers() { return {
|
@@ -15949,6 +17377,7 @@ class Step {
|
|
15949
17377
|
"$members$": {
|
15950
17378
|
"compactStepStyling": [1, "compact-step-styling"],
|
15951
17379
|
"current": [1028],
|
17380
|
+
"icI18n": [16],
|
15952
17381
|
"lastStep": [4, "last-step"],
|
15953
17382
|
"lastStepNum": [2, "last-step-num"],
|
15954
17383
|
"nextStepHeading": [1, "next-step-heading"],
|
@@ -15996,6 +17425,19 @@ class Stepper {
|
|
15996
17425
|
* 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.
|
15997
17426
|
*/
|
15998
17427
|
this.hideStepInfo = false;
|
17428
|
+
/**
|
17429
|
+
* Provide alternative values for text in all child steps. For the purpose of translating the application into other languages.
|
17430
|
+
*/
|
17431
|
+
this.icI18n = {
|
17432
|
+
next: "Next",
|
17433
|
+
step: "Step",
|
17434
|
+
of: "of",
|
17435
|
+
lastStep: "Last step",
|
17436
|
+
completed: "Completed",
|
17437
|
+
notRequired: "Not required",
|
17438
|
+
required: "Required",
|
17439
|
+
optional: "Optional",
|
17440
|
+
};
|
15999
17441
|
/**
|
16000
17442
|
* 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.
|
16001
17443
|
*/
|
@@ -16041,6 +17483,10 @@ class Stepper {
|
|
16041
17483
|
this.initialiseStepStates = () => {
|
16042
17484
|
this.steps.forEach((step, index) => {
|
16043
17485
|
var _a, _b, _c;
|
17486
|
+
// Set language
|
17487
|
+
if (this.icI18n !== undefined) {
|
17488
|
+
step.icI18n = this.icI18n;
|
17489
|
+
}
|
16044
17490
|
// Set variant
|
16045
17491
|
step.variant = this.variant;
|
16046
17492
|
// Assign stepNum to each step
|
@@ -16212,11 +17658,11 @@ class Stepper {
|
|
16212
17658
|
checkResizeObserver(this.runResizeObserver);
|
16213
17659
|
}
|
16214
17660
|
render() {
|
16215
|
-
return (hAsync(Host, { key: '
|
17661
|
+
return (hAsync(Host, { key: 'a5ec9b8d778ba54adf1b3034455e64df0a51fd7c', class: {
|
16216
17662
|
[`ic-stepper-${this.variant}`]: true,
|
16217
17663
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
16218
17664
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
16219
|
-
} }, hAsync("ul", { key: '
|
17665
|
+
} }, hAsync("ul", { key: '4140f5cb20325ee4c5c98c855c4b822a448294e8', class: "step-item-list" }, hAsync("slot", { key: 'cda080de502e7760bb3f9a1519f0261b554b0b77' }))));
|
16220
17666
|
}
|
16221
17667
|
get el() { return getElement(this); }
|
16222
17668
|
static get watchers() { return {
|
@@ -16232,6 +17678,7 @@ class Stepper {
|
|
16232
17678
|
"aligned": [1],
|
16233
17679
|
"connectorWidth": [2, "connector-width"],
|
16234
17680
|
"hideStepInfo": [4, "hide-step-info"],
|
17681
|
+
"icI18n": [16],
|
16235
17682
|
"theme": [1],
|
16236
17683
|
"variant": [1025],
|
16237
17684
|
"alignedFullWidth": [32],
|
@@ -16346,16 +17793,16 @@ class Switch {
|
|
16346
17793
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
16347
17794
|
const isSmall = size === "small";
|
16348
17795
|
renderHiddenInput(this.el, checkedState ? value : "", name, disabled);
|
16349
|
-
return (hAsync(Host, { key: '
|
17796
|
+
return (hAsync(Host, { key: '1f3cc9bbab1f273d76380e351f4fc3dfbcb85a55', class: {
|
16350
17797
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16351
|
-
} }, hAsync("label", { key: '
|
17798
|
+
} }, hAsync("label", { key: '49569c926514f3832f137bc36638fc8318407abe', class: {
|
16352
17799
|
"ic-switch-container": true,
|
16353
17800
|
"ic-switch-disabled": !!disabled,
|
16354
17801
|
"ic-switch-small": isSmall,
|
16355
|
-
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '
|
17802
|
+
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '1e7934fa8eb3514931b16e3723374792da3fc77b', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
|
16356
17803
|
"ic-switch-label": true,
|
16357
17804
|
"ic-switch-label-small": isSmall,
|
16358
|
-
} }, hAsync("slot", { key: '
|
17805
|
+
} }, hAsync("slot", { key: '909af29daf9c94113ee16fbba1eeba563acb6a91', name: "helper-text", slot: "helper-text" }))), !hideLabel && hAsync("span", { key: 'e25526f252995da3cfe450eb806a3eb1ef5a2089', class: "ic-switch-line-break" }), hAsync("input", { key: 'e6e78d8ddb9af85c055adcad3ef21fbac2fd5d01', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText(this.el, inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), hAsync("span", { key: 'a0be597711d9b13b2e0224b9518f364a55d7f3bd', class: "ic-switch-toggle" }, hAsync("svg", { key: '2f7dab194ad8a6d0795c9067b1a6f4e162b79aa3', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("line", { key: 'f763ce863fe848d012cacc38886a6c39c6857f06', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), hAsync("svg", { key: '49fa1c767bad7c491a6c52c4efa9c5fb1d2d9646', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: '5165a18b8d1e9d5e9d0067d00559d76f50522753', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), hAsync("slot", { key: 'ddee1e8995f799a83c5e00f44c041130bc7d7978', name: "right-adornment" }))));
|
16359
17806
|
}
|
16360
17807
|
static get delegatesFocus() { return true; }
|
16361
17808
|
get el() { return getElement(this); }
|
@@ -16714,6 +18161,14 @@ class TabContext {
|
|
16714
18161
|
tabEnabledHandler() {
|
16715
18162
|
this.enabledTabs = this.getEnabledTabs();
|
16716
18163
|
}
|
18164
|
+
/**
|
18165
|
+
* Sets focus on the tab context.
|
18166
|
+
*/
|
18167
|
+
async setFocus() {
|
18168
|
+
if (this.selectedTab != null) {
|
18169
|
+
this.tabs[this.selectedTab].setFocus();
|
18170
|
+
}
|
18171
|
+
}
|
16717
18172
|
/**
|
16718
18173
|
* @internal Used to set tab/tab panel IDs when a tab/tab panel has been removed
|
16719
18174
|
*/
|
@@ -16728,12 +18183,12 @@ class TabContext {
|
|
16728
18183
|
else {
|
16729
18184
|
this.setInitialTab();
|
16730
18185
|
}
|
16731
|
-
if (hadFocus && this.selectedTab) {
|
18186
|
+
if (hadFocus && this.selectedTab != null) {
|
16732
18187
|
this.tabs[this.selectedTab].setFocus();
|
16733
18188
|
}
|
16734
18189
|
}
|
16735
18190
|
render() {
|
16736
|
-
return hAsync("slot", { key: '
|
18191
|
+
return hAsync("slot", { key: 'a5806f753757f1367b776c388a57f5760656906d' });
|
16737
18192
|
}
|
16738
18193
|
get el() { return getElement(this); }
|
16739
18194
|
static get watchers() { return {
|
@@ -16751,6 +18206,7 @@ class TabContext {
|
|
16751
18206
|
"monochrome": [4],
|
16752
18207
|
"theme": [1],
|
16753
18208
|
"selectedTab": [32],
|
18209
|
+
"setFocus": [64],
|
16754
18210
|
"tabRemovedHandler": [64]
|
16755
18211
|
},
|
16756
18212
|
"$listeners$": [[0, "tabClick", "tabClickHandler"], [0, "tabCreated", "tabCreatedHandler"], [0, "tabPanelCreated", "tabCreatedHandler"], [0, "tabEnabled", "tabEnabledHandler"]],
|
@@ -16779,11 +18235,11 @@ class TabGroup {
|
|
16779
18235
|
}
|
16780
18236
|
render() {
|
16781
18237
|
const { inline, theme, label, monochrome } = this;
|
16782
|
-
return (hAsync(Host, { key: '
|
18238
|
+
return (hAsync(Host, { key: '89f78b3bc3025f9bc250fb045612f11230448011', role: "tablist", "aria-label": label, class: {
|
16783
18239
|
["ic-tab-group-inline"]: !!inline,
|
16784
18240
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16785
18241
|
["ic-tab-group-monochrome"]: !!monochrome,
|
16786
|
-
} }, hAsync("ic-horizontal-scroll", { key: '
|
18242
|
+
} }, hAsync("ic-horizontal-scroll", { key: '8924e03f1928a7c726576570ca817638169be532', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, hAsync("div", { key: 'c9534b3cb05161ee14a494925bd31ce3dc6f98f2', class: "tabs-container" }, hAsync("slot", { key: '63515a30dd40c06faf2a79f5cbb0cdf15fb726f5' })))));
|
16787
18243
|
}
|
16788
18244
|
static get delegatesFocus() { return true; }
|
16789
18245
|
static get style() { return IcTabGroupStyle0; }
|
@@ -16826,10 +18282,10 @@ class TabPanel {
|
|
16826
18282
|
}
|
16827
18283
|
render() {
|
16828
18284
|
const { active, theme } = this;
|
16829
|
-
return (hAsync(Host, { key: '
|
18285
|
+
return (hAsync(Host, { key: '96cf1fa97b36ba44f3e17601512962335437029a', class: {
|
16830
18286
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16831
18287
|
"ic-tab-panel-hidden": !active,
|
16832
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '
|
18288
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '5fe1129fa2147621848ecb047b50002021a71d6b' }, hAsync("slot", { key: '4d479874c672f99d382b08f5c772cb787a1bdf8a' }))));
|
16833
18289
|
}
|
16834
18290
|
get el() { return getElement(this); }
|
16835
18291
|
static get style() { return IcTabPanelStyle0; }
|
@@ -16850,7 +18306,7 @@ class TabPanel {
|
|
16850
18306
|
}; }
|
16851
18307
|
}
|
16852
18308
|
|
16853
|
-
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}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}}";
|
18309
|
+
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}}";
|
16854
18310
|
var IcTextFieldStyle0 = icTextFieldCss;
|
16855
18311
|
|
16856
18312
|
let inputIds = 0;
|
@@ -17000,6 +18456,10 @@ class TextField {
|
|
17000
18456
|
* The type of control to display. The default type is text.
|
17001
18457
|
*/
|
17002
18458
|
this.type = "text";
|
18459
|
+
/**
|
18460
|
+
* 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"`.
|
18461
|
+
*/
|
18462
|
+
this.validationAriaLive = "default";
|
17003
18463
|
/**
|
17004
18464
|
* If `true`, the icon in input control will be displayed - only applies when validationStatus ='success'.
|
17005
18465
|
*/
|
@@ -17085,6 +18545,15 @@ class TextField {
|
|
17085
18545
|
this.handleFormReset = () => {
|
17086
18546
|
this.value = this.initialValue;
|
17087
18547
|
};
|
18548
|
+
this.showValidationMargin = () => {
|
18549
|
+
const maxNumChars = this.readonly ? 0 : this.maxCharacters;
|
18550
|
+
const emptyString = isEmptyString(this.validationStatus) ||
|
18551
|
+
isEmptyString(this.validationText);
|
18552
|
+
const valueOutsideRange = this.minValueUnattained || this.maxValueExceeded;
|
18553
|
+
const charsOutsideRange = maxNumChars > 0 || this.minCharactersUnattained;
|
18554
|
+
return ((!emptyString || valueOutsideRange || charsOutsideRange) &&
|
18555
|
+
!this.validationInlineInternal);
|
18556
|
+
};
|
17088
18557
|
// triggered when attributes of host element change
|
17089
18558
|
this.hostMutationCallback = (mutationList) => {
|
17090
18559
|
mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
|
@@ -17178,7 +18647,7 @@ class TextField {
|
|
17178
18647
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
17179
18648
|
}
|
17180
18649
|
render() {
|
17181
|
-
const { inputId, name, label, required, size, placeholder, helperText, hideCharCount, rows, resize, disabled, value, min, max, numChars, readonly, maxCharacters, maxCharactersMessage, maxCharactersWarning, maxCharactersReached, maxMessage, minCharacters, minCharactersMessage, minCharactersUnattained, minMessage, minValueUnattained, maxValueExceeded, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, theme, hideLabel, type, autocapitalize, ariaActiveDescendant, inheritedAttributes, ariaExpanded, ariaOwns, autocomplete, role, isFocussed, } = this;
|
18650
|
+
const { inputId, name, label, required, size, placeholder, helperText, hideCharCount, rows, resize, disabled, value, min, max, numChars, readonly, maxCharacters, maxCharactersMessage, maxCharactersWarning, maxCharactersReached, maxMessage, minCharacters, minCharactersMessage, minCharactersUnattained, minMessage, minValueUnattained, maxValueExceeded, validationAriaLive, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, theme, hideLabel, type, autocapitalize, ariaActiveDescendant, inheritedAttributes, ariaExpanded, ariaOwns, autocomplete, role, isFocussed, } = this;
|
17182
18651
|
const el = this.el;
|
17183
18652
|
const disabledMode = readonly || disabled;
|
17184
18653
|
const currentStatus = maxValueExceeded ||
|
@@ -17199,12 +18668,14 @@ class TextField {
|
|
17199
18668
|
? minCharactersMessage
|
17200
18669
|
: validationText;
|
17201
18670
|
const maxNumChars = readonly ? 0 : maxCharacters;
|
17202
|
-
const messageAriaLive =
|
17203
|
-
|
17204
|
-
|
17205
|
-
|
17206
|
-
|
17207
|
-
|
18671
|
+
const messageAriaLive = validationAriaLive === "default"
|
18672
|
+
? maxCharactersWarning ||
|
18673
|
+
maxValueExceeded ||
|
18674
|
+
minValueUnattained ||
|
18675
|
+
currentStatus === IcInformationStatus.Error
|
18676
|
+
? "assertive"
|
18677
|
+
: "polite"
|
18678
|
+
: validationAriaLive;
|
17208
18679
|
const showStatusText = this.hasStatus(currentStatus) &&
|
17209
18680
|
!(currentStatus == IcInformationStatus.Success && validationInline) &&
|
17210
18681
|
!validationInlineInternal;
|
@@ -17220,14 +18691,14 @@ class TextField {
|
|
17220
18691
|
hiddenInput
|
17221
18692
|
? renderHiddenInput(this.el, value, name, disabledMode)
|
17222
18693
|
: removeHiddenInput(this.el);
|
17223
|
-
return (hAsync(Host, { key: '
|
18694
|
+
return (hAsync(Host, { key: '985b46adc3cee088de75766a4230042e4af8c9c3', class: {
|
17224
18695
|
"ic-text-field-full-width": fullWidth,
|
17225
18696
|
"ic-text-field-disabled": disabledMode,
|
17226
18697
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
17227
|
-
} }, hAsync("ic-input-container", { key: '
|
18698
|
+
} }, hAsync("ic-input-container", { key: '4b9794b880ab440c1c2e6cf2072c13d9d88cc1fa', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '6ccf8091d697ddce0dade9a81d38e7bc17315da9', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly }, hAsync("slot", { key: '0ecf6a100c43efdca46f3b7c03ac6a5a8f7cc972', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: 'a1d649e733cab8590b92db3c0ecda49ea021103f', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (hAsync("span", { key: 'd3228d1ab97951891316b60608ce8a9fbe6295bb', class: {
|
17228
18699
|
readonly,
|
17229
18700
|
"has-value": this.getNumberOfCharacters(value) > 0,
|
17230
|
-
}, slot: "left-icon" }, hAsync("slot", { key: '
|
18701
|
+
}, slot: "left-icon" }, hAsync("slot", { key: 'ea62e21d7abc5048da1a8e9a15f5a5a535c963b3', name: "icon" }))), !multiline ? (hAsync("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: type, min: min, max: max, value: value, class: {
|
17231
18702
|
"no-left-pad": !showLeftIcon && readonly,
|
17232
18703
|
readonly,
|
17233
18704
|
"truncate-value": truncateValue,
|
@@ -17235,19 +18706,12 @@ class TextField {
|
|
17235
18706
|
"no-resize": resize === false || !!readonly,
|
17236
18707
|
"no-left-pad": !showLeftIcon && !!readonly,
|
17237
18708
|
readonly: !!readonly,
|
17238
|
-
}, 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: '
|
17239
|
-
!isEmptyString(validationText) ||
|
17240
|
-
maxNumChars > 0 ||
|
17241
|
-
maxValueExceeded ||
|
17242
|
-
maxCharactersWarning ||
|
17243
|
-
minCharactersUnattained ||
|
17244
|
-
minValueUnattained) &&
|
17245
|
-
!validationInlineInternal && (hAsync("ic-input-validation", { key: '44d09f213ee6779ce6921e427c8ea660a1e47094', status: this.hasStatus(currentStatus) === false ||
|
18709
|
+
}, 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 ||
|
17246
18710
|
(currentStatus === IcInformationStatus.Success &&
|
17247
18711
|
validationInline) ||
|
17248
18712
|
validationInlineInternal
|
17249
18713
|
? ""
|
17250
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '
|
18714
|
+
: 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.")))))));
|
17251
18715
|
}
|
17252
18716
|
get el() { return getElement(this); }
|
17253
18717
|
static get watchers() { return {
|
@@ -17297,6 +18761,7 @@ class TextField {
|
|
17297
18761
|
"theme": [1],
|
17298
18762
|
"truncateValue": [4, "truncate-value"],
|
17299
18763
|
"type": [1],
|
18764
|
+
"validationAriaLive": [1, "validation-aria-live"],
|
17300
18765
|
"validationInline": [4, "validation-inline"],
|
17301
18766
|
"validationInlineInternal": [4, "validation-inline-internal"],
|
17302
18767
|
"validationStatus": [1, "validation-status"],
|
@@ -17385,7 +18850,7 @@ class Theme {
|
|
17385
18850
|
}
|
17386
18851
|
render() {
|
17387
18852
|
const { themeClass } = this;
|
17388
|
-
return (hAsync(Host, { key: '
|
18853
|
+
return (hAsync(Host, { key: '5acfd70fc7d5cec478027487b121829ad9258623', class: themeClass }, hAsync("slot", { key: '962d9fdd42ceb26a48c49a06aa3df3cb13bb9157' })));
|
17389
18854
|
}
|
17390
18855
|
static get watchers() { return {
|
17391
18856
|
"brandColor": ["watchBrandColorPropHandler"],
|
@@ -17610,13 +19075,13 @@ class Toast {
|
|
17610
19075
|
}
|
17611
19076
|
render() {
|
17612
19077
|
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
|
17613
|
-
return (hAsync(Host, { key: '
|
19078
|
+
return (hAsync(Host, { key: '4e5a088492c0c9fb37f0ca2211d6f458be9e1318', class: { ["ic-toast-hidden"]: !visible }, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: '5692e63d07ebc6ca0beaf89952f6dea339f46b28', class: "container" }, variant && visible && (hAsync("div", { key: 'a1a33233e9436d44ed398a72519d25d37256d355', class: "toast-icon-container" }, hAsync("div", { key: 'eea9ec3d6b4d330d07f0d9aff54b040b14406d41', class: {
|
17614
19079
|
["divider"]: true,
|
17615
19080
|
[`divider-${variant}`]: true,
|
17616
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
19081
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '92552b4b1b4d5de15284d8f5382a56ed81a99d89', class: {
|
17617
19082
|
["toast-content"]: true,
|
17618
19083
|
["no-icon"]: variant === "neutral" && !isSlotUsed(this.el, "neutral-icon"),
|
17619
|
-
} }, hAsync("div", { key: '
|
19084
|
+
} }, hAsync("div", { key: '96b38beec1024b8c1eff1b86e823f1f95c1e574d', class: "toast-text" }, hAsync("ic-typography", { key: 'aacffb589fd0e8180b0b72ad7d1315f4720e67ed', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? hAsync("h5", null, heading) : hAsync("p", null, heading))), message && (hAsync("ic-typography", { key: '6cbbb428be1211f1d730838a45cb17757d8af28a', variant: "body", class: "toast-message" }, visible && hAsync("p", { key: '45191e3180d2b133071d727f515c3b16391ca681' }, message)))), isSlotUsed(this.el, "action") && (hAsync("div", { key: '4d3555d3dc5bb374ac8aa3c112e91da2da37c66d', class: "toast-action-container" }, hAsync("slot", { key: '0fcefdc03a5ff6f20e589f74433e51ea25b2e929', name: "action" })))), !isManual ? (hAsync("ic-loading-indicator", { class: "toast-dismiss-timer", theme: "dark", monochrome: true, size: "icon", progress: this.timerProgress, description: "Dismiss timer" })) : (hAsync("ic-button", { id: "dismiss-button", innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon-tertiary", "aria-label": dismissButtonAriaLabel })))));
|
17620
19085
|
}
|
17621
19086
|
get el() { return getElement(this); }
|
17622
19087
|
static get watchers() { return {
|
@@ -17688,7 +19153,7 @@ class ToastRegion {
|
|
17688
19153
|
}
|
17689
19154
|
}
|
17690
19155
|
render() {
|
17691
|
-
return hAsync("slot", { key: '
|
19156
|
+
return hAsync("slot", { key: 'fd1b79dd960a3c3caef1d90e1e1184e4e9fa0432' });
|
17692
19157
|
}
|
17693
19158
|
get el() { return getElement(this); }
|
17694
19159
|
static get watchers() { return {
|
@@ -17848,7 +19313,7 @@ class ToggleButton {
|
|
17848
19313
|
render() {
|
17849
19314
|
const { accessibleLabel, checked, disabled, fullWidth, iconPlacement, monochrome, label, loading, outline, size, theme, tooltipPlacement, variant, } = this;
|
17850
19315
|
const iconVariant = variant === "icon";
|
17851
|
-
return (hAsync(Host, { key: '
|
19316
|
+
return (hAsync(Host, { key: '996e234f8829d4506354673ec53eb5a88b243caf', class: {
|
17852
19317
|
"ic-toggle-button-checked": checked,
|
17853
19318
|
"ic-toggle-button-disabled": disabled,
|
17854
19319
|
"ic-toggle-button-icon": iconVariant,
|
@@ -17858,7 +19323,7 @@ class ToggleButton {
|
|
17858
19323
|
"ic-toggle-button-hide-outline": !outline,
|
17859
19324
|
[`ic-toggle-button-${size}`]: true,
|
17860
19325
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
17861
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '
|
19326
|
+
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '6f1304c7a67b25ab45fcc83e485589db447e8ae8', "aria-pressed": `${checked}`, variant: iconVariant ? "icon-tertiary" : "secondary", onClick: this.handleClick, title: accessibleLabel, "aria-label": `${accessibleLabel ? accessibleLabel : label}, ${checked ? "ticked" : "unticked"}`, disabled: disabled, size: size, fullWidth: fullWidth, loading: loading, tooltipPlacement: tooltipPlacement }, !iconVariant && label, hAsync("slot", { key: 'dde5e4570100dd127b39742e14ef6f68b8295b63' }), isSlotUsed(this.el, "icon") && (hAsync("slot", { key: '672197af20d7fa1d2f871f6175d2e01e97855a43', name: "icon", slot: `${iconPlacement}-icon` })), isSlotUsed(this.el, "badge") && (hAsync("slot", { key: '52e533530bb554faa55b950b992c4459d8f553e7', name: "badge", slot: "badge" })))));
|
17862
19327
|
}
|
17863
19328
|
static get delegatesFocus() { return true; }
|
17864
19329
|
get el() { return getElement(this); }
|
@@ -18119,14 +19584,14 @@ class ToggleButtonGroup {
|
|
18119
19584
|
}
|
18120
19585
|
render() {
|
18121
19586
|
const { accessibleLabel, disabled, fullWidth, loading, monochrome, outline, theme, } = this;
|
18122
|
-
return (hAsync(Host, { key: '
|
19587
|
+
return (hAsync(Host, { key: '0411fab0ff536df861d5d69e987a1bbdc25bd722', role: "group", "aria-label": accessibleLabel, tabindex: 0, class: {
|
18123
19588
|
"ic-toggle-button-group-disabled": disabled,
|
18124
19589
|
"ic-toggle-button-group-full-width": fullWidth,
|
18125
19590
|
"ic-toggle-button-group-loading": loading,
|
18126
19591
|
"ic-toggle-button-group-monochrome": monochrome,
|
18127
19592
|
"ic-toggle-button-group-hide-outline": !outline,
|
18128
19593
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
18129
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
19594
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: 'a031963635f3c0513b7b3786b02c86b75ce1d9c1' })));
|
18130
19595
|
}
|
18131
19596
|
get el() { return getElement(this); }
|
18132
19597
|
static get watchers() { return {
|
@@ -18253,8 +19718,10 @@ class Tooltip {
|
|
18253
19718
|
}
|
18254
19719
|
};
|
18255
19720
|
this.hide = () => {
|
18256
|
-
this.toolTip
|
18257
|
-
|
19721
|
+
if (this.toolTip !== undefined) {
|
19722
|
+
this.toolTip.removeAttribute("data-show");
|
19723
|
+
this.persistTooltip = false;
|
19724
|
+
}
|
18258
19725
|
if (this.popperInstance !== undefined) {
|
18259
19726
|
this.popperInstance.destroy();
|
18260
19727
|
}
|
@@ -18380,10 +19847,10 @@ class Tooltip {
|
|
18380
19847
|
}
|
18381
19848
|
render() {
|
18382
19849
|
const { label, maxLines, silent, theme } = this;
|
18383
|
-
return (hAsync(Host, { key: '
|
19850
|
+
return (hAsync(Host, { key: '9e66710981ac51e4fae8ff9e6b8d30eb44870c3b', class: {
|
18384
19851
|
"ic-tooltip": true,
|
18385
19852
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
18386
|
-
} }, hAsync("div", { key: '
|
19853
|
+
} }, hAsync("div", { key: 'f0b962933c6c88872a4cd8661348de663a40ecc4', ref: (el) => (this.toolTip = el), role: "tooltip", class: "ic-tooltip-container", "aria-hidden": `${silent}` }, hAsync("ic-typography", { key: '8935a9eaa6be2f05cf71a95b53d9b06e1cf2b080', maxLines: maxLines, variant: "caption" }, label), hAsync("div", { key: 'b433ac73eab9462e32a14710d7f29ee78d515f15', ref: (el) => (this.arrow = el), class: "ic-tooltip-arrow" })), hAsync("slot", { key: 'e9d8e149871c83c45c87d6418b86e7a901e10ae1' })));
|
18387
19854
|
}
|
18388
19855
|
get el() { return getElement(this); }
|
18389
19856
|
static get watchers() { return {
|
@@ -18845,7 +20312,7 @@ class Typography {
|
|
18845
20312
|
render() {
|
18846
20313
|
var _a, _b;
|
18847
20314
|
const { variant, applyVerticalMargins, maxLines, truncated, expanded, strikethrough, underline, italic, bold, theme, } = this;
|
18848
|
-
return (hAsync(Host, { key: '
|
20315
|
+
return (hAsync(Host, { key: '305bed1ac7754985aacba1a23e9deff81691a69c', class: {
|
18849
20316
|
[`ic-typography-${variant}`]: true,
|
18850
20317
|
[`ic-typography-vertical-margins-${variant}`]: !!applyVerticalMargins,
|
18851
20318
|
["ic-typography-bold"]: !!bold,
|
@@ -18858,7 +20325,7 @@ class Typography {
|
|
18858
20325
|
((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===
|
18859
20326
|
"IC-TOOLTIP") &&
|
18860
20327
|
maxLines &&
|
18861
|
-
maxLines > 0 ? (hAsync("div", { class: "trunc-wrapper", ref: (el) => (this.truncWrapperEl = el) }, hAsync("slot", null))) : (hAsync("slot", null)), variant === "body" && maxLines && maxLines > 0 && truncated && (hAsync("button", { key: '
|
20328
|
+
maxLines > 0 ? (hAsync("div", { class: "trunc-wrapper", ref: (el) => (this.truncWrapperEl = el) }, hAsync("slot", null))) : (hAsync("slot", null)), variant === "body" && maxLines && maxLines > 0 && truncated && (hAsync("button", { key: 'd517a2391d01ee3f2847a19148001d33fdc68ad0', class: { "trunc-btn": true, focus: this.truncButtonFocussed }, onFocus: this.truncButtonFocus, onBlur: this.truncButtonBlur, onMouseDown: this.truncButtonFocusFromMouse, onClick: this.toggleExpanded }, expanded ? "See less" : "See more"))));
|
18862
20329
|
}
|
18863
20330
|
get el() { return getElement(this); }
|
18864
20331
|
static get watchers() { return {
|