@ids-group-ltd/ids-design-system 0.15.2 → 0.15.3
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/CHANGELOG.md +163 -20
- package/{docs/agent → agent}/charts/ds-bar-chart.md +1 -1
- package/agent/charts/ds-chart.md +10 -0
- package/{docs/agent → agent}/charts/ds-column-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-funnel-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-heatmap-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-line-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-pie-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-scatter-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-waterfall-chart.md +1 -1
- package/{docs/agent → agent}/feedback/ds-empty-state.md +1 -1
- package/{docs/agent → agent}/forms/ds-button.md +1 -1
- package/{docs/agent → agent}/forms/ds-time-picker.md +1 -1
- package/{docs/agent → agent}/overlays/ds-definition-term.md +1 -1
- package/agent/overlays/ds-tooltip.md +12 -0
- package/{docs/agent → agent}/platform/ds-config.md +2 -1
- package/{docs/agent → agent}/tables/ds-table.md +1 -1
- package/components.md +19 -18
- package/design-system.md +2 -2
- package/eslint/deprecated-api.json +7 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +9 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +12 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +12 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +3 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +7 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +6 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +7 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +6 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +17 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +9 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +9 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +7 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +71 -25
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +80 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +67 -29
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +21 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +27 -2
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +21 -23
- package/migrations/0.10.2.json +3 -5
- package/migrations/0.10.3.json +1 -3
- package/migrations/0.11.0.json +4 -6
- package/migrations/0.11.1.json +1 -3
- package/migrations/0.13.0.json +4 -4
- package/migrations/0.13.4.json +20 -4
- package/migrations/0.14.0.json +1 -2
- package/migrations/0.15.1.json +5 -5
- package/migrations/0.15.3.json +175 -0
- package/migrations/0.6.2.json +5 -3
- package/migrations/0.7.1.json +1 -2
- package/migrations/0.8.0.json +2 -2
- package/migrations/0.9.0.json +14 -19
- package/migrations/README.md +11 -11
- package/package.json +1 -1
- package/schematics/check-overrides/surface.json +12 -1
- package/styles/_component-base.scss +29 -39
- package/styles/_dropdown-overlay.scss +7 -3
- package/styles/_focus.scss +4 -4
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +30 -9
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +26 -3
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +44 -12
- package/types/ids-group-ltd-ids-design-system-components.d.ts +14 -2
- package/types/ids-group-ltd-ids-design-system-core.d.ts +32 -7
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
- package/docs/agent/charts/ds-chart.md +0 -10
- package/docs/agent/overlays/ds-tooltip.md +0 -12
- /package/{docs/agent → agent}/INDEX.md +0 -0
- /package/{docs/agent → agent}/charts/chart-colour-which-palette-a-chart-takes.md +0 -0
- /package/{docs/agent → agent}/charts/chart-frame-the-box-a-chart-draws-around-itself.md +0 -0
- /package/{docs/agent → agent}/charts/column-series-component.md +0 -0
- /package/{docs/agent → agent}/charts/ds-chart-data-table.md +0 -0
- /package/{docs/agent → agent}/charts/ds-config.md +0 -0
- /package/{docs/agent → agent}/charts/line-series-component.md +0 -0
- /package/{docs/agent → agent}/charts/reference-label-component.md +0 -0
- /package/{docs/agent → agent}/charts/reference-line-component.md +0 -0
- /package/{docs/agent → agent}/charts/series-annotation-component.md +0 -0
- /package/{docs/agent → agent}/domain/ds-w3w.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-alert.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-avatar-group.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-avatar.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-badge.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-banner.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-bar.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-description-item.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-description-list.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-list-item.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-list.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-loading-overlay.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-skeleton.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-spinner.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-stat.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-status-dot.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-tag.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-timeline-item.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-toast-region.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-toast.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-tree.md +0 -0
- /package/{docs/agent → agent}/forms/ds-autocomplete.md +0 -0
- /package/{docs/agent → agent}/forms/ds-button-group.md +0 -0
- /package/{docs/agent → agent}/forms/ds-checkbox.md +0 -0
- /package/{docs/agent → agent}/forms/ds-color-picker.md +0 -0
- /package/{docs/agent → agent}/forms/ds-date-picker.md +0 -0
- /package/{docs/agent → agent}/forms/ds-dropzone.md +0 -0
- /package/{docs/agent → agent}/forms/ds-field-group.md +0 -0
- /package/{docs/agent → agent}/forms/ds-filter-bar.md +0 -0
- /package/{docs/agent → agent}/forms/ds-icon-button.md +0 -0
- /package/{docs/agent → agent}/forms/ds-input.md +0 -0
- /package/{docs/agent → agent}/forms/ds-multi-select.md +0 -0
- /package/{docs/agent → agent}/forms/ds-number-stepper.md +0 -0
- /package/{docs/agent → agent}/forms/ds-otp-input.md +0 -0
- /package/{docs/agent → agent}/forms/ds-password-rules.md +0 -0
- /package/{docs/agent → agent}/forms/ds-radio-group.md +0 -0
- /package/{docs/agent → agent}/forms/ds-radio.md +0 -0
- /package/{docs/agent → agent}/forms/ds-search.md +0 -0
- /package/{docs/agent → agent}/forms/ds-segmented.md +0 -0
- /package/{docs/agent → agent}/forms/ds-select.md +0 -0
- /package/{docs/agent → agent}/forms/ds-slider.md +0 -0
- /package/{docs/agent → agent}/forms/ds-split-button.md +0 -0
- /package/{docs/agent → agent}/forms/ds-switch.md +0 -0
- /package/{docs/agent → agent}/forms/ds-textarea.md +0 -0
- /package/{docs/agent → agent}/forms/ds-toggle-button.md +0 -0
- /package/{docs/agent → agent}/forms/filter-item-directive.md +0 -0
- /package/{docs/agent → agent}/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +0 -0
- /package/{docs/agent → agent}/foundations/global-helper-classes.md +0 -0
- /package/{docs/agent → agent}/foundations/grid.md +0 -0
- /package/{docs/agent → agent}/foundations/tokens.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-app-layout.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-auth-layout.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-breadcrumbs.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-container.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-divider.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-inline.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-page-footer.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-page-header.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-pagination.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav-footer.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav-group.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav-item.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-stack.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-stepper.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-tab.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-tabs.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-topbar.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-bottom-sheet.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-drawer.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-info-hint.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-menu.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-modal-card.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-modal.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-popover.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-tooltip-panel.md +0 -0
- /package/{docs/agent → agent}/platform/body-scroll-lock-service.md +0 -0
- /package/{docs/agent → agent}/platform/breadcrumbs-service.md +0 -0
- /package/{docs/agent → agent}/platform/ds-icon-registry.md +0 -0
- /package/{docs/agent → agent}/platform/ds-intl.md +0 -0
- /package/{docs/agent → agent}/platform/toast-service.md +0 -0
- /package/{docs/agent → agent}/surfaces/ds-accordion-item.md +0 -0
- /package/{docs/agent → agent}/surfaces/ds-accordion.md +0 -0
- /package/{docs/agent → agent}/surfaces/ds-card.md +0 -0
- /package/{docs/agent → agent}/tables/ds-cell-template.md +0 -0
- /package/{docs/agent → agent}/tables/ds-table-columns.md +0 -0
- /package/{docs/agent → agent}/tables/ds-table-export.md +0 -0
- /package/{docs/agent → agent}/tables/header-filter-directive.md +0 -0
|
@@ -3,7 +3,7 @@ import { inject, computed, input, booleanAttribute, output, viewChild, afterRend
|
|
|
3
3
|
import * as i2 from '@angular/cdk/a11y';
|
|
4
4
|
import { A11yModule, CdkTrapFocus } from '@angular/cdk/a11y';
|
|
5
5
|
import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
|
|
6
|
-
import { DS_CONFIG, DS_INTL, backdropDismiss } from '@ids-group-ltd/ids-design-system/core';
|
|
6
|
+
import { DS_CONFIG, DS_INTL, retainStyles, backdropDismiss } from '@ids-group-ltd/ids-design-system/core';
|
|
7
7
|
import * as i1 from '@ids-group-ltd/ids-design-system/components';
|
|
8
8
|
import { DsStaticPreview, disposeWithLeave } from '@ids-group-ltd/ids-design-system/components';
|
|
9
9
|
import { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';
|
|
@@ -60,6 +60,7 @@ class ModalCardComponent {
|
|
|
60
60
|
header = viewChild.required('header');
|
|
61
61
|
actionsRow = viewChild.required('actions');
|
|
62
62
|
constructor() {
|
|
63
|
+
retainStyles(ModalCardComponent);
|
|
63
64
|
afterRenderEffect((onCleanup) => {
|
|
64
65
|
this.stackOverflowingActions();
|
|
65
66
|
let frame = 0;
|
|
@@ -143,11 +144,11 @@ class ModalCardComponent {
|
|
|
143
144
|
this.closed.emit();
|
|
144
145
|
}
|
|
145
146
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
146
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalCardComponent, isStandalone: true, selector: "ds-modal-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dialogRole: { classPropertyName: "dialogRole", publicName: "dialogRole", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null" } }, viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "actionsRow", first: true, predicate: ["actions"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.closeDialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
|
|
147
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalCardComponent, isStandalone: true, selector: "ds-modal-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dialogRole: { classPropertyName: "dialogRole", publicName: "dialogRole", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null" } }, viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "actionsRow", first: true, predicate: ["actions"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.closeDialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
|
|
147
148
|
}
|
|
148
149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalCardComponent, decorators: [{
|
|
149
150
|
type: Component,
|
|
150
|
-
args: [{ selector: 'ds-modal-card', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.closeDialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"] }]
|
|
151
|
+
args: [{ selector: 'ds-modal-card', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.closeDialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"] }]
|
|
151
152
|
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], dialogRole: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogRole", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], header: [{ type: i0.ViewChild, args: ['header', { isSignal: true }] }], actionsRow: [{ type: i0.ViewChild, args: ['actions', { isSignal: true }] }] } });
|
|
152
153
|
|
|
153
154
|
class ModalComponent {
|
|
@@ -256,11 +257,11 @@ class ModalComponent {
|
|
|
256
257
|
this.onClose();
|
|
257
258
|
}
|
|
258
259
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
259
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalComponent, isStandalone: true, selector: "ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, persistent: { classPropertyName: "persistent", publicName: "persistent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed", confirmed: "confirmed" }, host: { properties: { "attr.title": "null" } }, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"], dependencies: [{ kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
|
|
260
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalComponent, isStandalone: true, selector: "ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, persistent: { classPropertyName: "persistent", publicName: "persistent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed", confirmed: "confirmed" }, host: { properties: { "attr.title": "null" } }, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"], dependencies: [{ kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
|
|
260
261
|
}
|
|
261
262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalComponent, decorators: [{
|
|
262
263
|
type: Component,
|
|
263
|
-
args: [{ selector: 'ds-modal', standalone: true, imports: [ModalCardComponent, A11yModule], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: ["@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"] }]
|
|
264
|
+
args: [{ selector: 'ds-modal', standalone: true, imports: [ModalCardComponent, A11yModule], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"] }]
|
|
264
265
|
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], confirmed: [{ type: i0.Output, args: ["confirmed"] }], dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], persistent: [{ type: i0.Input, args: [{ isSignal: true, alias: "persistent", required: false }] }] } });
|
|
265
266
|
|
|
266
267
|
/**
|
|
@@ -316,6 +317,14 @@ class ModalConfirmComponent {
|
|
|
316
317
|
const phrase = this.options.typeToConfirm;
|
|
317
318
|
return !!phrase && this.typed() !== phrase;
|
|
318
319
|
}, ...(ngDevMode ? [{ debugName: "confirmDisabled" }] : /* istanbul ignore next */ []));
|
|
320
|
+
constructor() {
|
|
321
|
+
retainStyles(ModalConfirmComponent, [
|
|
322
|
+
{
|
|
323
|
+
provide: MODAL_CONFIRM_DATA,
|
|
324
|
+
useValue: { options: {}, resolve: () => undefined },
|
|
325
|
+
},
|
|
326
|
+
]);
|
|
327
|
+
}
|
|
319
328
|
onType(event) {
|
|
320
329
|
this.typed.set(event.target.value);
|
|
321
330
|
}
|
|
@@ -329,12 +338,12 @@ class ModalConfirmComponent {
|
|
|
329
338
|
this.context.resolve(false);
|
|
330
339
|
}
|
|
331
340
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
332
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalConfirmComponent, isStandalone: true, selector: "ds-modal-confirm", ngImport: i0, template: "<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.confirm }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: ["
|
|
341
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalConfirmComponent, isStandalone: true, selector: "ds-modal-confirm", ngImport: i0, template: "<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.confirm }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:contents}.message{margin:0;color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-field{display:flex;flex-direction:column;gap:var(--space-1-5);margin-top:var(--space-3)}.confirm-hint{color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-hint b{color:var(--text-primary);font-weight:var(--font-weight-semibold)}.confirm-input{--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);padding:0 var(--field-pad-x);background-color:var(--surface-default);border:var(--border-width-default) solid var(--border-default);border-radius:var(--radius-md);color:var(--text-primary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}@media not (forced-colors:active){.confirm-input:focus{outline:none}}.confirm-input:focus{border-color:var(--accent);box-shadow:var(--accent-focus-field)}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: ButtonComponent, selector: "ds-button", inputs: ["color", "variant", "align", "size", "routerLink", "href", "fragment", "queryParams", "queryParamsHandling", "target", "rel", "routerLinkActiveOptions", "ariaCurrent", "type", "disabled", "loading", "fullWidth", "ariaLabel", "icon", "trailingIcon", "ariaHasPopup", "ariaExpanded", "ariaControls", "disabledReason", "ariaDescribedBy"], outputs: ["pressed"] }, { kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }] });
|
|
333
342
|
}
|
|
334
343
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalConfirmComponent, decorators: [{
|
|
335
344
|
type: Component,
|
|
336
|
-
args: [{ selector: 'ds-modal-confirm', standalone: true, imports: [CdkTrapFocus, ButtonComponent, ModalCardComponent], encapsulation: ViewEncapsulation.Emulated, template: "<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.confirm }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: ["
|
|
337
|
-
}] });
|
|
345
|
+
args: [{ selector: 'ds-modal-confirm', standalone: true, imports: [CdkTrapFocus, ButtonComponent, ModalCardComponent], encapsulation: ViewEncapsulation.Emulated, template: "<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.confirm }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:contents}.message{margin:0;color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-field{display:flex;flex-direction:column;gap:var(--space-1-5);margin-top:var(--space-3)}.confirm-hint{color:var(--text-secondary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.confirm-hint b{color:var(--text-primary);font-weight:var(--font-weight-semibold)}.confirm-input{--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);padding:0 var(--field-pad-x);background-color:var(--surface-default);border:var(--border-width-default) solid var(--border-default);border-radius:var(--radius-md);color:var(--text-primary);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans)}@media not (forced-colors:active){.confirm-input:focus{outline:none}}.confirm-input:focus{border-color:var(--accent);box-shadow:var(--accent-focus-field)}\n"] }]
|
|
346
|
+
}], ctorParameters: () => [] });
|
|
338
347
|
|
|
339
348
|
class ModalService {
|
|
340
349
|
overlay = inject(Overlay);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-modal.mjs","sources":["../../../src/lib/components/modal/modal-defaults.ts","../../../src/lib/components/modal/modal-card.component.ts","../../../src/lib/components/modal/modal-card.component.html","../../../src/lib/components/modal/modal.component.ts","../../../src/lib/components/modal/modal.component.html","../../../src/lib/components/modal/modal-confirm-action.directive.ts","../../../src/lib/components/modal/modal-confirm.types.ts","../../../src/lib/components/modal/modal-confirm.component.ts","../../../src/lib/components/modal/modal-confirm.component.html","../../../src/lib/components/modal/modal.service.ts","../../../src/lib/components/modal/ids-group-ltd-ids-design-system-components-modal.ts"],"sourcesContent":["import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\n\n/**\n * Resolves `dividers` against the app-level default; `null` means unset.\n * Both `ds-modal` and `ds-modal-card` call this: a `ModalService` confirm renders a\n * card with no `ds-modal` ancestor.\n */\nexport function resolveDividers(\n dividers: Signal<boolean | null>,\n): Signal<boolean> {\n const config = inject(DS_CONFIG);\n\n return computed(() => dividers() ?? config.modal?.dividers ?? true);\n}\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n afterRenderEffect,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveDividers } from './modal-defaults';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\n\nlet nextId = 0;\n\nfunction* flexItems(parent: Element): Generator<Element> {\n for (const child of parent.children) {\n if (getComputedStyle(child).display === 'contents') {\n yield* flexItems(child);\n } else {\n yield child;\n }\n }\n}\n\n@Component({\n selector: 'ds-modal-card',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './modal-card.component.html',\n styleUrl: './modal.component.scss',\n // Keeps a static `title` attribute from becoming a native tooltip on the host.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalCardComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Card width. */\n readonly size = input<ModalSize>('md');\n /** Severity: drives the icon-badge tint, title colour, DEFAULT icon and ARIA role.\n * Null (default) is a neutral dialog; `icon` overrides the picked icon.\n * `false` and `undefined` land on null too, so `[status]=\"isDangerous && 'error'\"` binds. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Card title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Shows the header close button. */\n readonly showClose = input(true, { transform: booleanAttribute });\n /** Draws the rules under the header and over the actions; off also tightens the vertical padding.\n * Unset falls back to `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n readonly dividersResolved = resolveDividers(this.dividers);\n /** Icon badge shown next to the title. Overrides the icon `status` would pick. */\n readonly icon = input<IconName | null>(null);\n /** ARIA role. Unset, an error or warning becomes `alertdialog`; anything else stays `dialog`. */\n readonly dialogRole = input<'dialog' | 'alertdialog' | null>(null);\n /** Fires when the header close button is clicked. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-modal-title-${++nextId}`;\n\n private readonly header =\n viewChild.required<ElementRef<HTMLElement>>('header');\n private readonly actionsRow =\n viewChild.required<ElementRef<HTMLElement>>('actions');\n\n constructor() {\n afterRenderEffect((onCleanup) => {\n this.stackOverflowingActions();\n let frame = 0;\n // Deferred a frame: a layout change inside a ResizeObserver callback is reported as an observer loop.\n const remeasure = () => {\n cancelAnimationFrame(frame);\n frame = requestAnimationFrame(() => this.stackOverflowingActions());\n };\n const observer = new ResizeObserver(remeasure);\n // The header, not the actions row: its box does not move when the row stacks.\n observer.observe(this.header().nativeElement);\n // A label change leaves every observed box unchanged; attributes stay unobserved so toggling `stacked` never loops.\n const contentObserver = new MutationObserver(remeasure);\n contentObserver.observe(this.actionsRow().nativeElement, {\n childList: true,\n subtree: true,\n characterData: true,\n });\n onCleanup(() => {\n cancelAnimationFrame(frame);\n observer.disconnect();\n contentObserver.disconnect();\n });\n });\n }\n\n // Measured unstacked: stacked, every child is full-width and its natural width is gone.\n private stackOverflowingActions(): void {\n const row = this.actionsRow().nativeElement;\n row.classList.remove('stacked');\n const styles = getComputedStyle(row);\n const available =\n row.clientWidth -\n parseFloat(styles.paddingLeft) -\n parseFloat(styles.paddingRight);\n const gap = parseFloat(styles.columnGap) || 0;\n let needed = -gap;\n for (const item of flexItems(row)) {\n needed += item.getBoundingClientRect().width + gap;\n }\n row.classList.toggle('stacked', needed > available);\n }\n\n protected readonly resolvedIcon = computed<IconName | null>(() => {\n const explicit = this.icon();\n if (explicit) {\n return explicit;\n }\n switch (this.status()) {\n case 'error':\n return 'error';\n case 'warning':\n return 'warn';\n case 'success':\n return 'success';\n case 'info':\n return 'info';\n default:\n return null;\n }\n });\n\n protected readonly resolvedRole = computed<'dialog' | 'alertdialog'>(() => {\n const explicit = this.dialogRole();\n if (explicit) {\n return explicit;\n }\n const status = this.status();\n\n return status === 'error' || status === 'warning'\n ? 'alertdialog'\n : 'dialog';\n });\n\n protected readonly classes = computed(() => {\n const parts = ['modal', this.size()];\n const status = this.status();\n if (status) {\n parts.push(status);\n }\n if (!this.dividersResolved()) {\n parts.push('no-dividers');\n }\n\n return parts.join(' ');\n });\n\n protected onClose(): void {\n this.closed.emit();\n }\n}\n","<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.closeDialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n","import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ModalCardComponent } from './modal-card.component';\nimport { resolveDividers } from './modal-defaults';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\nimport { backdropDismiss } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-modal',\n standalone: true,\n imports: [ModalCardComponent, A11yModule],\n templateUrl: './modal.component.html',\n styleUrl: './modal.component.scss',\n // Keeps a static `title` attribute from becoming a native tooltip on the host.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n})\nexport class ModalComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Dialog width. */\n readonly size = input<ModalSize>('md');\n /** Severity, forwarded to the card. Null (default) is a neutral dialog. `false` and\n * `undefined` land on null too, so `[status]=\"isDangerous && 'error'\"` binds. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Dialog title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Fires once the close (leave) animation finishes. */\n readonly closed = output<void>();\n /** Fires when the projected `dsModalConfirm` action is pressed. The modal stays open. */\n readonly confirmed = output<void>();\n /** Draws the rules under the header and over the actions; off also tightens the vertical padding.\n * Unset falls back to `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n /** Resolved here and passed down, so the card cannot disagree if a provider sits between them. */\n readonly dividersResolved = resolveDividers(this.dividers);\n /** When false, clicking the scrim does not close the modal. */\n readonly closeOnBackdrop = input(true, { transform: booleanAttribute });\n /** When true, neither backdrop click nor Escape closes the modal. */\n readonly persistent = input(false, { transform: booleanAttribute });\n\n protected readonly rendered = signal(false);\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n // Skipped in preview, which is always shown.\n effect(() => {\n if (this.preview.staticPreview()) {\n return;\n }\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // animationend is never delivered on a backgrounded tab (Chrome freezes CSS\n // animations) or for a 0s reduced-motion leave; this timer is the teardown.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted, so stacked overlays don't unlock each other.\n effect((onCleanup) => {\n if (this.preview.staticPreview() || !this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n if (this.preview.staticPreview()) {\n return;\n }\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // Host's OWN animationend only; matching the keyframes name would make the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected readonly backdropPress = backdropDismiss();\n\n protected onBackdropRelease(event: PointerEvent): void {\n if (!this.backdropPress.shouldDismiss(event)) {\n return;\n }\n if (this.persistent() || !this.closeOnBackdrop()) {\n return;\n }\n this.onClose();\n }\n\n protected onEscape(): void {\n if (this.persistent()) {\n return;\n }\n this.onClose();\n }\n}\n","@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n","import { Directive, inject } from '@angular/core';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport { ModalComponent } from './modal.component';\n\n/**\n * Marks the confirm action inside a `ds-modal`; pressing it fires the modal's `confirmed`.\n * On a `ds-button` it follows `pressed`, so a disabled or loading button never confirms; on any\n * other element it follows `click` and skips `aria-disabled=\"true\"`. The modal stays open:\n * close it from the `confirmed` handler once the work is done.\n */\n@Directive({\n selector: '[dsModalConfirm]',\n standalone: true,\n host: { '(click)': 'onClick($event)' },\n})\nexport class ModalConfirmActionDirective {\n private readonly modal = inject(ModalComponent);\n private readonly button = inject(ButtonComponent, {\n self: true,\n optional: true,\n });\n\n constructor() {\n this.button?.pressed.subscribe(() => this.modal.confirmed.emit());\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.button) {\n return;\n }\n const target = event.currentTarget as HTMLElement;\n if (target.getAttribute('aria-disabled') === 'true') {\n return;\n }\n this.modal.confirmed.emit();\n }\n}\n","import { InjectionToken } from '@angular/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\n\nexport type ModalConfirmTone = 'default' | 'error';\n\nexport interface ModalConfirmOptions {\n title: string;\n message?: string;\n confirmLabel?: string;\n cancelLabel?: string;\n tone?: ModalConfirmTone;\n icon?: IconName;\n /** When set, the confirm button stays disabled until the user types this\n * exact phrase, guarding high-stakes destructive actions. */\n typeToConfirm?: string;\n}\n\nexport interface ModalConfirmContext {\n options: ModalConfirmOptions;\n resolve: (result: boolean) => void;\n}\n\nexport const MODAL_CONFIRM_DATA = new InjectionToken<ModalConfirmContext>(\n 'MODAL_CONFIRM_DATA',\n);\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n signal,\n} from '@angular/core';\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport type { ButtonColor } from '@ids-group-ltd/ids-design-system/components/button';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { ModalCardComponent } from './modal-card.component';\nimport { MODAL_CONFIRM_DATA } from './modal-confirm.types';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-confirm',\n standalone: true,\n imports: [CdkTrapFocus, ButtonComponent, ModalCardComponent],\n templateUrl: './modal-confirm.component.html',\n styleUrl: './modal-confirm.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalConfirmComponent {\n private readonly context = inject(MODAL_CONFIRM_DATA);\n protected readonly intl = inject(DS_INTL);\n\n protected readonly options = this.context.options;\n protected readonly tone = this.options.tone ?? 'default';\n protected readonly confirmColor: ButtonColor =\n this.tone === 'error' ? 'error' : 'primary';\n\n protected readonly uid = `ds-modal-confirm-${++nextId}`;\n protected readonly messageId = `${this.uid}-message`;\n\n protected readonly typed = signal('');\n protected readonly confirmDisabled = computed(() => {\n const phrase = this.options.typeToConfirm;\n\n return !!phrase && this.typed() !== phrase;\n });\n\n protected onType(event: Event): void {\n this.typed.set((event.target as HTMLInputElement).value);\n }\n\n protected confirm(): void {\n if (this.confirmDisabled()) {\n return;\n }\n this.context.resolve(true);\n }\n\n protected cancel(): void {\n this.context.resolve(false);\n }\n}\n","<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.confirm }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n","import { Injectable, Injector, inject } from '@angular/core';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ModalConfirmComponent } from './modal-confirm.component';\nimport { disposeWithLeave } from '@ids-group-ltd/ids-design-system/components';\nimport {\n MODAL_CONFIRM_DATA,\n type ModalConfirmContext,\n type ModalConfirmOptions,\n} from './modal-confirm.types';\n\n@Injectable({ providedIn: 'root' })\nexport class ModalService {\n private readonly overlay = inject(Overlay);\n private readonly injector = inject(Injector);\n\n /** Open a confirmation dialog. Resolves true on confirm, false on cancel,\n * backdrop click or Escape. */\n confirm(options: ModalConfirmOptions): Promise<boolean> {\n return new Promise<boolean>((resolve) => {\n const overlayRef = this.overlay.create({\n positionStrategy: this.overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically(),\n hasBackdrop: true,\n backdropClass: 'cdk-overlay-dark-backdrop',\n scrollStrategy: this.overlay.scrollStrategies.block(),\n });\n\n let settled = false;\n const finish = (result: boolean): void => {\n if (settled) {\n return;\n }\n settled = true;\n disposeWithLeave(overlayRef);\n resolve(result);\n };\n\n const context: ModalConfirmContext = { options, resolve: finish };\n const injector = Injector.create({\n parent: this.injector,\n providers: [{ provide: MODAL_CONFIRM_DATA, useValue: context }],\n });\n\n overlayRef.backdropClick().subscribe(() => finish(false));\n overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n finish(false);\n }\n });\n overlayRef.attach(\n new ComponentPortal(ModalConfirmComponent, null, injector),\n );\n\n // No CDK backdrop CSS ships; paint the scrim from the DS token.\n if (overlayRef.backdropElement) {\n overlayRef.backdropElement.style.backgroundColor =\n 'var(--surface-scrim)';\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["nextId"],"mappings":";;;;;;;;;;;;;AAGA;;;;AAIG;AACG,SAAU,eAAe,CAC7B,QAAgC,EAAA;AAEhC,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC;AAEhC,IAAA,OAAO,QAAQ,CAAC,MAAM,QAAQ,EAAE,IAAI,MAAM,CAAC,KAAK,EAAE,QAAQ,IAAI,IAAI,CAAC;AACrE;;ACKA,IAAIA,QAAM,GAAG,CAAC;AAEd,UAAU,SAAS,CAAC,MAAe,EAAA;AACjC,IAAA,KAAK,MAAM,KAAK,IAAI,MAAM,CA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ACXlC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-modal.mjs","sources":["../../../src/lib/components/modal/modal-defaults.ts","../../../src/lib/components/modal/modal-card.component.ts","../../../src/lib/components/modal/modal-card.component.html","../../../src/lib/components/modal/modal.component.ts","../../../src/lib/components/modal/modal.component.html","../../../src/lib/components/modal/modal-confirm-action.directive.ts","../../../src/lib/components/modal/modal-confirm.types.ts","../../../src/lib/components/modal/modal-confirm.component.ts","../../../src/lib/components/modal/modal-confirm.component.html","../../../src/lib/components/modal/modal.service.ts","../../../src/lib/components/modal/ids-group-ltd-ids-design-system-components-modal.ts"],"sourcesContent":["import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\n\n/**\n * Resolves `dividers` against the app-level default; `null` means unset.\n * Both `ds-modal` and `ds-modal-card` call this: a `ModalService` confirm renders a\n * card with no `ds-modal` ancestor.\n */\nexport function resolveDividers(\n dividers: Signal<boolean | null>,\n): Signal<boolean> {\n const config = inject(DS_CONFIG);\n\n return computed(() => dividers() ?? config.modal?.dividers ?? true);\n}\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n afterRenderEffect,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DS_INTL, retainStyles } from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveDividers } from './modal-defaults';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\n\nlet nextId = 0;\n\nfunction* flexItems(parent: Element): Generator<Element> {\n for (const child of parent.children) {\n if (getComputedStyle(child).display === 'contents') {\n yield* flexItems(child);\n } else {\n yield child;\n }\n }\n}\n\n@Component({\n selector: 'ds-modal-card',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './modal-card.component.html',\n styleUrl: './modal.component.scss',\n // Keeps a static `title` attribute from becoming a native tooltip on the host.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalCardComponent {\n protected readonly intl = inject(DS_INTL);\n\n /** Card width. */\n readonly size = input<ModalSize>('md');\n /** Severity: drives the icon-badge tint, title colour, DEFAULT icon and ARIA role.\n * Null (default) is a neutral dialog; `icon` overrides the picked icon.\n * `false` and `undefined` land on null too, so `[status]=\"isDangerous && 'error'\"` binds. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Card title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Shows the header close button. */\n readonly showClose = input(true, { transform: booleanAttribute });\n /** Draws the rules under the header and over the actions; off also tightens the vertical padding.\n * Unset falls back to `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n readonly dividersResolved = resolveDividers(this.dividers);\n /** Icon badge shown next to the title. Overrides the icon `status` would pick. */\n readonly icon = input<IconName | null>(null);\n /** ARIA role. Unset, an error or warning becomes `alertdialog`; anything else stays `dialog`. */\n readonly dialogRole = input<'dialog' | 'alertdialog' | null>(null);\n /** Fires when the header close button is clicked. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-modal-title-${++nextId}`;\n\n private readonly header =\n viewChild.required<ElementRef<HTMLElement>>('header');\n private readonly actionsRow =\n viewChild.required<ElementRef<HTMLElement>>('actions');\n\n constructor() {\n retainStyles(ModalCardComponent);\n afterRenderEffect((onCleanup) => {\n this.stackOverflowingActions();\n let frame = 0;\n // Deferred a frame: a layout change inside a ResizeObserver callback is reported as an observer loop.\n const remeasure = () => {\n cancelAnimationFrame(frame);\n frame = requestAnimationFrame(() => this.stackOverflowingActions());\n };\n const observer = new ResizeObserver(remeasure);\n // The header, not the actions row: its box does not move when the row stacks.\n observer.observe(this.header().nativeElement);\n // A label change leaves every observed box unchanged; attributes stay unobserved so toggling `stacked` never loops.\n const contentObserver = new MutationObserver(remeasure);\n contentObserver.observe(this.actionsRow().nativeElement, {\n childList: true,\n subtree: true,\n characterData: true,\n });\n onCleanup(() => {\n cancelAnimationFrame(frame);\n observer.disconnect();\n contentObserver.disconnect();\n });\n });\n }\n\n // Measured unstacked: stacked, every child is full-width and its natural width is gone.\n private stackOverflowingActions(): void {\n const row = this.actionsRow().nativeElement;\n row.classList.remove('stacked');\n const styles = getComputedStyle(row);\n const available =\n row.clientWidth -\n parseFloat(styles.paddingLeft) -\n parseFloat(styles.paddingRight);\n const gap = parseFloat(styles.columnGap) || 0;\n let needed = -gap;\n for (const item of flexItems(row)) {\n needed += item.getBoundingClientRect().width + gap;\n }\n row.classList.toggle('stacked', needed > available);\n }\n\n protected readonly resolvedIcon = computed<IconName | null>(() => {\n const explicit = this.icon();\n if (explicit) {\n return explicit;\n }\n switch (this.status()) {\n case 'error':\n return 'error';\n case 'warning':\n return 'warn';\n case 'success':\n return 'success';\n case 'info':\n return 'info';\n default:\n return null;\n }\n });\n\n protected readonly resolvedRole = computed<'dialog' | 'alertdialog'>(() => {\n const explicit = this.dialogRole();\n if (explicit) {\n return explicit;\n }\n const status = this.status();\n\n return status === 'error' || status === 'warning'\n ? 'alertdialog'\n : 'dialog';\n });\n\n protected readonly classes = computed(() => {\n const parts = ['modal', this.size()];\n const status = this.status();\n if (status) {\n parts.push(status);\n }\n if (!this.dividersResolved()) {\n parts.push('no-dividers');\n }\n\n return parts.join(' ');\n });\n\n protected onClose(): void {\n this.closed.emit();\n }\n}\n","<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.closeDialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n","import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n booleanAttribute,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ModalCardComponent } from './modal-card.component';\nimport { resolveDividers } from './modal-defaults';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport type { ModalSize } from './modal.types';\nimport type { DsStatus } from '@ids-group-ltd/ids-design-system/core';\nimport { backdropDismiss } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-modal',\n standalone: true,\n imports: [ModalCardComponent, A11yModule],\n templateUrl: './modal.component.html',\n styleUrl: './modal.component.scss',\n // Keeps a static `title` attribute from becoming a native tooltip on the host.\n host: { '[attr.title]': 'null' },\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n})\nexport class ModalComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Dialog width. */\n readonly size = input<ModalSize>('md');\n /** Severity, forwarded to the card. Null (default) is a neutral dialog. `false` and\n * `undefined` land on null too, so `[status]=\"isDangerous && 'error'\"` binds. */\n readonly status = input<DsStatus | null, DsStatus | false | null | undefined>(\n null,\n { transform: (value) => value || null },\n );\n /** Dialog title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Secondary line under the title. Not part of the accessible name. */\n readonly subtitle = input<string | null>(null);\n /** Fires once the close (leave) animation finishes. */\n readonly closed = output<void>();\n /** Fires when the projected `dsModalConfirm` action is pressed. The modal stays open. */\n readonly confirmed = output<void>();\n /** Draws the rules under the header and over the actions; off also tightens the vertical padding.\n * Unset falls back to `DS_CONFIG.modal.dividers`, then `true`. */\n readonly dividers = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n /** Resolved here and passed down, so the card cannot disagree if a provider sits between them. */\n readonly dividersResolved = resolveDividers(this.dividers);\n /** When false, clicking the scrim does not close the modal. */\n readonly closeOnBackdrop = input(true, { transform: booleanAttribute });\n /** When true, neither backdrop click nor Escape closes the modal. */\n readonly persistent = input(false, { transform: booleanAttribute });\n\n protected readonly rendered = signal(false);\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n constructor() {\n // Skipped in preview, which is always shown.\n effect(() => {\n if (this.preview.staticPreview()) {\n return;\n }\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // animationend is never delivered on a backgrounded tab (Chrome freezes CSS\n // animations) or for a 0s reduced-motion leave; this timer is the teardown.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted, so stacked overlays don't unlock each other.\n effect((onCleanup) => {\n if (this.preview.staticPreview() || !this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n if (this.preview.staticPreview()) {\n return;\n }\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // Host's OWN animationend only; matching the keyframes name would make the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected readonly backdropPress = backdropDismiss();\n\n protected onBackdropRelease(event: PointerEvent): void {\n if (!this.backdropPress.shouldDismiss(event)) {\n return;\n }\n if (this.persistent() || !this.closeOnBackdrop()) {\n return;\n }\n this.onClose();\n }\n\n protected onEscape(): void {\n if (this.persistent()) {\n return;\n }\n this.onClose();\n }\n}\n","@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n","import { Directive, inject } from '@angular/core';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport { ModalComponent } from './modal.component';\n\n/**\n * Marks the confirm action inside a `ds-modal`; pressing it fires the modal's `confirmed`.\n * On a `ds-button` it follows `pressed`, so a disabled or loading button never confirms; on any\n * other element it follows `click` and skips `aria-disabled=\"true\"`. The modal stays open:\n * close it from the `confirmed` handler once the work is done.\n */\n@Directive({\n selector: '[dsModalConfirm]',\n standalone: true,\n host: { '(click)': 'onClick($event)' },\n})\nexport class ModalConfirmActionDirective {\n private readonly modal = inject(ModalComponent);\n private readonly button = inject(ButtonComponent, {\n self: true,\n optional: true,\n });\n\n constructor() {\n this.button?.pressed.subscribe(() => this.modal.confirmed.emit());\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.button) {\n return;\n }\n const target = event.currentTarget as HTMLElement;\n if (target.getAttribute('aria-disabled') === 'true') {\n return;\n }\n this.modal.confirmed.emit();\n }\n}\n","import { InjectionToken } from '@angular/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\n\nexport type ModalConfirmTone = 'default' | 'error';\n\nexport interface ModalConfirmOptions {\n title: string;\n message?: string;\n confirmLabel?: string;\n cancelLabel?: string;\n tone?: ModalConfirmTone;\n icon?: IconName;\n /** When set, the confirm button stays disabled until the user types this\n * exact phrase, guarding high-stakes destructive actions. */\n typeToConfirm?: string;\n}\n\nexport interface ModalConfirmContext {\n options: ModalConfirmOptions;\n resolve: (result: boolean) => void;\n}\n\nexport const MODAL_CONFIRM_DATA = new InjectionToken<ModalConfirmContext>(\n 'MODAL_CONFIRM_DATA',\n);\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n signal,\n} from '@angular/core';\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport type { ButtonColor } from '@ids-group-ltd/ids-design-system/components/button';\nimport { DS_INTL, retainStyles } from '@ids-group-ltd/ids-design-system/core';\nimport { ModalCardComponent } from './modal-card.component';\nimport { MODAL_CONFIRM_DATA } from './modal-confirm.types';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-modal-confirm',\n standalone: true,\n imports: [CdkTrapFocus, ButtonComponent, ModalCardComponent],\n templateUrl: './modal-confirm.component.html',\n styleUrl: './modal-confirm.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class ModalConfirmComponent {\n private readonly context = inject(MODAL_CONFIRM_DATA);\n protected readonly intl = inject(DS_INTL);\n\n protected readonly options = this.context.options;\n protected readonly tone = this.options.tone ?? 'default';\n protected readonly confirmColor: ButtonColor =\n this.tone === 'error' ? 'error' : 'primary';\n\n protected readonly uid = `ds-modal-confirm-${++nextId}`;\n protected readonly messageId = `${this.uid}-message`;\n\n protected readonly typed = signal('');\n protected readonly confirmDisabled = computed(() => {\n const phrase = this.options.typeToConfirm;\n\n return !!phrase && this.typed() !== phrase;\n });\n\n constructor() {\n retainStyles(ModalConfirmComponent, [\n {\n provide: MODAL_CONFIRM_DATA,\n useValue: { options: {}, resolve: () => undefined },\n },\n ]);\n }\n\n protected onType(event: Event): void {\n this.typed.set((event.target as HTMLInputElement).value);\n }\n\n protected confirm(): void {\n if (this.confirmDisabled()) {\n return;\n }\n this.context.resolve(true);\n }\n\n protected cancel(): void {\n this.context.resolve(false);\n }\n}\n","<ds-modal-card\n dialogRole=\"alertdialog\"\n cdkTrapFocus\n [title]=\"options.title\"\n [status]=\"tone === 'error' ? 'error' : null\"\n [icon]=\"options.icon ?? null\"\n [showClose]=\"false\"\n [cdkTrapFocusAutoCapture]=\"true\"\n [attr.aria-describedby]=\"options.message ? messageId : null\">\n <ng-container body>\n @if (options.message) {\n <p\n class=\"message\"\n [id]=\"messageId\">\n {{ options.message }}\n </p>\n }\n\n @if (options.typeToConfirm; as phrase) {\n <label class=\"confirm-field\">\n <span class=\"confirm-hint\">\n {{ intl().dialog.typeToConfirmBefore }} <b>{{ phrase }}</b>\n {{ intl().dialog.typeToConfirmAfter }}\n </span>\n\n <input\n type=\"text\"\n class=\"confirm-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [value]=\"typed()\"\n (input)=\"onType($event)\" />\n </label>\n }\n </ng-container>\n\n <ng-container actions>\n <ds-button\n color=\"neutral\"\n variant=\"outline\"\n (pressed)=\"cancel()\">\n {{ options.cancelLabel ?? intl().dialog.cancel }}\n </ds-button>\n\n <ds-button\n [color]=\"confirmColor\"\n [disabled]=\"confirmDisabled()\"\n (pressed)=\"confirm()\">\n {{ options.confirmLabel ?? intl().dialog.confirm }}\n </ds-button>\n </ng-container>\n</ds-modal-card>\n","import { Injectable, Injector, inject } from '@angular/core';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ModalConfirmComponent } from './modal-confirm.component';\nimport { disposeWithLeave } from '@ids-group-ltd/ids-design-system/components';\nimport {\n MODAL_CONFIRM_DATA,\n type ModalConfirmContext,\n type ModalConfirmOptions,\n} from './modal-confirm.types';\n\n@Injectable({ providedIn: 'root' })\nexport class ModalService {\n private readonly overlay = inject(Overlay);\n private readonly injector = inject(Injector);\n\n /** Open a confirmation dialog. Resolves true on confirm, false on cancel,\n * backdrop click or Escape. */\n confirm(options: ModalConfirmOptions): Promise<boolean> {\n return new Promise<boolean>((resolve) => {\n const overlayRef = this.overlay.create({\n positionStrategy: this.overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically(),\n hasBackdrop: true,\n backdropClass: 'cdk-overlay-dark-backdrop',\n scrollStrategy: this.overlay.scrollStrategies.block(),\n });\n\n let settled = false;\n const finish = (result: boolean): void => {\n if (settled) {\n return;\n }\n settled = true;\n disposeWithLeave(overlayRef);\n resolve(result);\n };\n\n const context: ModalConfirmContext = { options, resolve: finish };\n const injector = Injector.create({\n parent: this.injector,\n providers: [{ provide: MODAL_CONFIRM_DATA, useValue: context }],\n });\n\n overlayRef.backdropClick().subscribe(() => finish(false));\n overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n finish(false);\n }\n });\n overlayRef.attach(\n new ComponentPortal(ModalConfirmComponent, null, injector),\n );\n\n // No CDK backdrop CSS ships; paint the scrim from the DS token.\n if (overlayRef.backdropElement) {\n overlayRef.backdropElement.style.backgroundColor =\n 'var(--surface-scrim)';\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["nextId"],"mappings":";;;;;;;;;;;;;AAGA;;;;AAIG;AACG,SAAU,eAAe,CAC7B,QAAgC,EAAA;AAEhC,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC;AAEhC,IAAA,OAAO,QAAQ,CAAC,MAAM,QAAQ,EAAE,IAAI,MAAM,CAAC,KAAK,EAAE,QAAQ,IAAI,IAAI,CAAC;AACrE;;ACKA,IAAIA,QAAM,GAAG,CAAC;AAEd,UAAU,SAAS,CAAC,MAAe,EAAA;AACjC,IAAA,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,QAAQ,EAAE;QACnC,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC,OAAO,KAAK,UAAU,EAAE;AAClD,YAAA,OAAO,SAAS,CAAC,KAAK,CAAC;QACzB;aAAO;AACL,YAAA,MAAM,KAAK;QACb;IACF;AACF;MAYa,kBAAkB,CAAA;AACV,IAAA,IAAI,GAAG,MAAM,CAAC,OAA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