+ @for (severity of severities; track severity.type) {
+
+ }
+
+ \`,
+})
+export class ConfirmDialogSeveritiesComponent {
+ severities = SEVERITIES;
+ constructor(private confirmDialogService: ConfirmDialogService) {}
+
+ showConfirm(severity: any): void {
+ this.confirmDialogService.confirm({
+ key: 'cd-severity-' + severity.type,
+ message: severity.message,
+ header: severity.header,
+ icon: severity.icon,
+ acceptLabel: severity.acceptLabel,
+ rejectLabel: 'Нет',
+ acceptButtonProps: { severity: severity.buttonSeverity },
+ accept: () => {},
+ reject: () => {},
+ });
+ }
+}
+ `,
+ },
+ },
+ },
+};
+
+// ── Sizes ─────────────────────────────────────────────────────────────────────
+
+export const Sizes: Story = {
+ name: 'Sizes',
+ decorators: [moduleMetadata({ imports: [ConfirmDialogSizesComponent] })],
+ render: () => ({ template: `