@firestitch/app-message 18.0.15 → 18.0.16

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.
Files changed (41) hide show
  1. package/app/modules/message-preview/components/preview/preview.component.d.ts +2 -2
  2. package/app/modules/message-queues/components/queue/queue.component.d.ts +2 -7
  3. package/app/modules/message-queues/components/queues/queues.component.d.ts +2 -6
  4. package/app/modules/message-queues/components/recipient/recipient.component.d.ts +1 -1
  5. package/app/modules/message-queues/message-queues.module.d.ts +22 -24
  6. package/app/modules/message-queues/pipes/linkify.pipe.d.ts +1 -1
  7. package/app/modules/message-queues/pipes/truncate.pipe.d.ts +1 -1
  8. package/app/modules/message-queues/services/message-queue.service.d.ts +0 -2
  9. package/app/modules/message-templates/components/template/template.component.d.ts +5 -9
  10. package/app/modules/message-templates/components/templates/templates.component.d.ts +1 -4
  11. package/app/modules/messages/components/attachments/attachments.component.d.ts +1 -4
  12. package/app/modules/messages/components/message/message.component.d.ts +2 -7
  13. package/app/modules/messages/components/messages/messages.component.d.ts +1 -4
  14. package/app/modules/webhooks/components/webhooks/webhooks.component.d.ts +1 -4
  15. package/esm2022/app/modules/message-preview/components/preview/preview.component.mjs +16 -17
  16. package/esm2022/app/modules/message-queues/components/queue/queue.component.mjs +48 -42
  17. package/esm2022/app/modules/message-queues/components/queues/queues.component.mjs +33 -32
  18. package/esm2022/app/modules/message-queues/components/recipient/recipient.component.mjs +5 -6
  19. package/esm2022/app/modules/message-queues/message-queues.module.mjs +12 -18
  20. package/esm2022/app/modules/message-queues/pipes/linkify.pipe.mjs +6 -3
  21. package/esm2022/app/modules/message-queues/pipes/truncate.pipe.mjs +3 -2
  22. package/esm2022/app/modules/message-queues/services/message-queue.service.mjs +5 -9
  23. package/esm2022/app/modules/message-templates/components/template/template.component.mjs +30 -39
  24. package/esm2022/app/modules/message-templates/components/templates/templates.component.mjs +10 -18
  25. package/esm2022/app/modules/messages/components/attachments/attachments.component.mjs +12 -19
  26. package/esm2022/app/modules/messages/components/message/message.component.mjs +62 -46
  27. package/esm2022/app/modules/messages/components/messages/messages.component.mjs +10 -19
  28. package/esm2022/app/modules/webhooks/components/webhooks/webhooks.component.mjs +12 -19
  29. package/esm2022/public_api.mjs +1 -4
  30. package/fesm2022/firestitch-app-message.mjs +185 -444
  31. package/fesm2022/firestitch-app-message.mjs.map +1 -1
  32. package/package.json +1 -1
  33. package/public_api.d.ts +0 -3
  34. package/app/modules/message-preview/message-preview.module.d.ts +0 -11
  35. package/app/modules/message-templates/message-templates.module.d.ts +0 -24
  36. package/app/modules/messages/messages.module.d.ts +0 -31
  37. package/app/modules/webhooks/webhooks.module.d.ts +0 -9
  38. package/esm2022/app/modules/message-preview/message-preview.module.mjs +0 -36
  39. package/esm2022/app/modules/message-templates/message-templates.module.mjs +0 -92
  40. package/esm2022/app/modules/messages/messages.module.mjs +0 -119
  41. package/esm2022/app/modules/webhooks/webhooks.module.mjs +0 -28
@@ -4,8 +4,8 @@ export declare class PreviewComponent implements OnInit {
4
4
  private _data;
5
5
  html: any;
6
6
  styles: any;
7
- constructor(_data: any);
7
+ constructor();
8
8
  ngOnInit(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<PreviewComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<PreviewComponent, "ng-component", never, {}, {}, never, never, false, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<PreviewComponent, "ng-component", never, {}, {}, never, never, true, never>;
11
11
  }
@@ -1,9 +1,5 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { MatDialog } from '@angular/material/dialog';
1
+ import { OnDestroy, OnInit } from '@angular/core';
3
2
  import { FsListComponent, FsListConfig } from '@firestitch/list';
4
- import { FsMessage } from '@firestitch/message';
5
- import { FsPrompt } from '@firestitch/prompt';
6
- import { FsAppMessageConfig } from '../../../app-message/interfaces';
7
3
  import { ForwardMessageQueue, LoadMessage, ResendMessageQueue } from '../../../app-message/types';
8
4
  import { EmailMessageQueueFormat, MessageQueueEventType } from '../../enums';
9
5
  import * as i0 from "@angular/core";
@@ -28,7 +24,6 @@ export declare class QueueComponent implements OnInit, OnDestroy {
28
24
  MessageQueueEventTypes: {};
29
25
  MessageQueueEventType: typeof MessageQueueEventType;
30
26
  private _destroy$;
31
- constructor(_config: FsAppMessageConfig, _data: any, _message: FsMessage, _prompt: FsPrompt, _dialog: MatDialog, _cdRef: ChangeDetectorRef);
32
27
  ngOnInit(): void;
33
28
  anchorMe(input: any): string;
34
29
  openMessage(message: any): void;
@@ -40,5 +35,5 @@ export declare class QueueComponent implements OnInit, OnDestroy {
40
35
  private _setAttachmentsConfig;
41
36
  private _prettyFilesize;
42
37
  static ɵfac: i0.ɵɵFactoryDeclaration<QueueComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<QueueComponent, "ng-component", never, {}, {}, never, never, false, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<QueueComponent, "ng-component", never, {}, {}, never, never, true, never>;
44
39
  }
@@ -1,11 +1,8 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { FsListComponent, FsListConfig } from '@firestitch/list';
3
- import { FsStore } from '@firestitch/store';
4
3
  import { MessageQueuesConfig } from '../../../../interfaces';
5
- import { FsAppMessageConfig } from '../../../app-message/interfaces';
6
4
  import { MessageQueueType } from '../../enums';
7
5
  import { MessageQueueState } from '../../enums/message-queue-state.enum';
8
- import { FsMessageQueueService } from '../../services/message-queue.service';
9
6
  import * as i0 from "@angular/core";
10
7
  export declare class QueuesComponent implements OnInit, OnDestroy {
11
8
  private _config;
@@ -21,7 +18,6 @@ export declare class QueuesComponent implements OnInit, OnDestroy {
21
18
  MessageQueueState: typeof MessageQueueState;
22
19
  webHookEnabled: any;
23
20
  private _destroy$;
24
- constructor(_config: FsAppMessageConfig, _messageQueueService: FsMessageQueueService, _cdRef: ChangeDetectorRef, _store: FsStore);
25
21
  ngOnInit(): void;
26
22
  enableWebhook(): void;
27
23
  initWebhook(): void;
@@ -30,5 +26,5 @@ export declare class QueuesComponent implements OnInit, OnDestroy {
30
26
  ngOnDestroy(): void;
31
27
  private _initConfig;
32
28
  static ɵfac: i0.ɵɵFactoryDeclaration<QueuesComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<QueuesComponent, "fs-app-message-queues", never, { "query": { "alias": "query"; "required": false; }; "type": { "alias": "type"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<QueuesComponent, "fs-app-message-queues", never, { "query": { "alias": "query"; "required": false; }; "type": { "alias": "type"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
34
30
  }
@@ -6,5 +6,5 @@ export declare class RecipientComponent implements OnInit {
6
6
  icon: any;
7
7
  ngOnInit(): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<RecipientComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<RecipientComponent, "app-recipient", never, { "name": { "alias": "name"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, {}, never, never, false, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<RecipientComponent, "app-recipient", never, { "name": { "alias": "name"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, {}, never, never, true, never>;
10
10
  }
@@ -1,29 +1,27 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./components/queues/queues.component";
3
- import * as i2 from "./components/queue/queue.component";
4
- import * as i3 from "./pipes/linkify.pipe";
5
- import * as i4 from "./pipes/truncate.pipe";
6
- import * as i5 from "./components/recipient/recipient.component";
7
- import * as i6 from "@angular/router";
8
- import * as i7 from "@angular/forms";
9
- import * as i8 from "@angular/common";
10
- import * as i9 from "@angular/material/tooltip";
11
- import * as i10 from "@angular/material/dialog";
12
- import * as i11 from "@angular/material/button";
13
- import * as i12 from "@angular/material/icon";
14
- import * as i13 from "@angular/material/tabs";
15
- import * as i14 from "@firestitch/list";
16
- import * as i15 from "@firestitch/dialog";
17
- import * as i16 from "@firestitch/label";
18
- import * as i17 from "@firestitch/date";
19
- import * as i18 from "@firestitch/skeleton";
20
- import * as i19 from "../messages/messages.module";
21
- import * as i20 from "@firestitch/form";
22
- import * as i21 from "@firestitch/prompt";
23
- import * as i22 from "@firestitch/iframe";
24
- import * as i23 from "@firestitch/message";
2
+ import * as i1 from "@angular/router";
3
+ import * as i2 from "@angular/forms";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/material/tooltip";
6
+ import * as i5 from "@angular/material/dialog";
7
+ import * as i6 from "@angular/material/button";
8
+ import * as i7 from "@angular/material/icon";
9
+ import * as i8 from "@angular/material/tabs";
10
+ import * as i9 from "@firestitch/list";
11
+ import * as i10 from "@firestitch/dialog";
12
+ import * as i11 from "@firestitch/label";
13
+ import * as i12 from "@firestitch/date";
14
+ import * as i13 from "@firestitch/skeleton";
15
+ import * as i14 from "@firestitch/form";
16
+ import * as i15 from "@firestitch/iframe";
17
+ import * as i16 from "@firestitch/message";
18
+ import * as i17 from "./components/queues/queues.component";
19
+ import * as i18 from "./components/queue/queue.component";
20
+ import * as i19 from "./pipes/linkify.pipe";
21
+ import * as i20 from "./pipes/truncate.pipe";
22
+ import * as i21 from "./components/recipient/recipient.component";
25
23
  export declare class FsAppMessageQueuesModule {
26
24
  static ɵfac: i0.ɵɵFactoryDeclaration<FsAppMessageQueuesModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<FsAppMessageQueuesModule, [typeof i1.QueuesComponent, typeof i2.QueueComponent, typeof i3.LinkifyPipe, typeof i4.TruncatePipe, typeof i5.RecipientComponent], [typeof i6.RouterModule, typeof i7.FormsModule, typeof i8.CommonModule, typeof i9.MatTooltipModule, typeof i10.MatDialogModule, typeof i11.MatButtonModule, typeof i12.MatIconModule, typeof i13.MatTabsModule, typeof i14.FsListModule, typeof i15.FsDialogModule, typeof i16.FsLabelModule, typeof i17.FsDateModule, typeof i18.FsSkeletonModule, typeof i19.FsAppMessagesModule, typeof i20.FsFormModule, typeof i21.FsPromptInputModule, typeof i22.FsIFrameModule, typeof i23.FsMessageModule], [typeof i1.QueuesComponent, typeof i2.QueueComponent]>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FsAppMessageQueuesModule, never, [typeof i1.RouterModule, typeof i2.FormsModule, typeof i3.CommonModule, typeof i4.MatTooltipModule, typeof i5.MatDialogModule, typeof i6.MatButtonModule, typeof i7.MatIconModule, typeof i8.MatTabsModule, typeof i9.FsListModule, typeof i10.FsDialogModule, typeof i11.FsLabelModule, typeof i12.FsDateModule, typeof i13.FsSkeletonModule, typeof i14.FsFormModule, typeof i15.FsIFrameModule, typeof i16.FsMessageModule, typeof i17.QueuesComponent, typeof i18.QueueComponent, typeof i19.LinkifyPipe, typeof i20.TruncatePipe, typeof i21.RecipientComponent], [typeof i17.QueuesComponent, typeof i18.QueueComponent]>;
28
26
  static ɵinj: i0.ɵɵInjectorDeclaration<FsAppMessageQueuesModule>;
29
27
  }
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class LinkifyPipe implements PipeTransform {
4
4
  transform(input: string): string;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<LinkifyPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<LinkifyPipe, "linkify", false>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<LinkifyPipe, "linkify", true>;
7
7
  }
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class TruncatePipe implements PipeTransform {
4
4
  transform(value: string, limit?: number, completeWords?: boolean, ellipsis?: string): string;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", false>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
7
7
  }
@@ -1,9 +1,7 @@
1
- import { MatDialog } from '@angular/material/dialog';
2
1
  import { Observable } from 'rxjs';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class FsMessageQueueService {
5
4
  private _dialog;
6
- constructor(_dialog: MatDialog);
7
5
  openMessageQueue(messageQueueId: number, options?: any): Observable<any>;
8
6
  static ɵfac: i0.ɵɵFactoryDeclaration<FsMessageQueueService, never>;
9
7
  static ɵprov: i0.ɵɵInjectableDeclaration<FsMessageQueueService>;
@@ -1,23 +1,19 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { MatDialogRef, MatDialog } from '@angular/material/dialog';
3
- import { FsMessage } from '@firestitch/message';
4
- import { FsTextEditorConfig } from '@firestitch/text-editor';
5
2
  import { SubmitEvent } from '@firestitch/form';
6
- import { FsAppMessageConfig } from '../../../app-message/interfaces';
3
+ import { FsTextEditorConfig } from '@firestitch/text-editor';
7
4
  import * as i0 from "@angular/core";
8
5
  export declare class TemplateComponent implements OnInit {
6
+ messageTemplate: any;
7
+ htmlEditorconfig: FsTextEditorConfig;
8
+ cssEditorconfig: FsTextEditorConfig;
9
9
  private _data;
10
10
  private _config;
11
11
  private _dialogRef;
12
12
  private _message;
13
13
  private _dialog;
14
- messageTemplate: any;
15
- htmlEditorconfig: FsTextEditorConfig;
16
- cssEditorconfig: FsTextEditorConfig;
17
- constructor(_data: any, _config: FsAppMessageConfig, _dialogRef: MatDialogRef<TemplateComponent>, _message: FsMessage, _dialog: MatDialog);
18
14
  ngOnInit(): void;
19
15
  openPreview(): void;
20
16
  save: (event: SubmitEvent) => import("rxjs").Observable<any>;
21
17
  static ɵfac: i0.ɵɵFactoryDeclaration<TemplateComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<TemplateComponent, "ng-component", never, {}, {}, never, never, false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<TemplateComponent, "ng-component", never, {}, {}, never, never, true, never>;
23
19
  }
@@ -1,7 +1,5 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { MatDialog } from '@angular/material/dialog';
3
2
  import { FsListComponent, FsListConfig } from '@firestitch/list';
4
- import { FsAppMessageConfig } from '../../../app-message/interfaces';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class TemplatesComponent implements OnInit, OnDestroy {
7
5
  private _config;
@@ -10,10 +8,9 @@ export declare class TemplatesComponent implements OnInit, OnDestroy {
10
8
  config: FsListConfig;
11
9
  messageQueueStates: any[];
12
10
  private _destroy$;
13
- constructor(_config: FsAppMessageConfig, _dialog: MatDialog);
14
11
  ngOnInit(): void;
15
12
  open(messageTemplate: any): void;
16
13
  ngOnDestroy(): void;
17
14
  static ɵfac: i0.ɵɵFactoryDeclaration<TemplatesComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<TemplatesComponent, "fs-app-message-templates", never, {}, {}, never, never, false, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<TemplatesComponent, "fs-app-message-templates", never, {}, {}, never, never, true, never>;
19
16
  }
@@ -1,7 +1,5 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { FsListComponent, FsListConfig } from '@firestitch/list';
3
- import { FsAppMessageConfig } from '../../../app-message/interfaces';
4
- import { FsMessage } from '@firestitch/message';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class AttachmentsComponent implements OnInit, OnDestroy {
7
5
  private _config;
@@ -10,9 +8,8 @@ export declare class AttachmentsComponent implements OnInit, OnDestroy {
10
8
  message: any;
11
9
  config: FsListConfig;
12
10
  private _destroy$;
13
- constructor(_config: FsAppMessageConfig, _message: FsMessage);
14
11
  ngOnInit(): void;
15
12
  ngOnDestroy(): void;
16
13
  static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentsComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentsComponent, "fs-app-message-attachments", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, false, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentsComponent, "fs-app-message-attachments", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
18
15
  }
@@ -1,8 +1,4 @@
1
- import { ChangeDetectorRef, OnInit } from '@angular/core';
2
- import { MatDialog } from '@angular/material/dialog';
3
- import { FsMessage } from '@firestitch/message';
4
- import { FsPrompt } from '@firestitch/prompt';
5
- import { FsAppMessageConfig } from '../../../app-message/interfaces';
1
+ import { OnInit } from '@angular/core';
6
2
  import { EmailMessageFormat } from '../../enums';
7
3
  import * as i0 from "@angular/core";
8
4
  export declare class MessageComponent implements OnInit {
@@ -20,11 +16,10 @@ export declare class MessageComponent implements OnInit {
20
16
  value: EmailMessageFormat;
21
17
  }[];
22
18
  emailMessageFormat: typeof EmailMessageFormat;
23
- constructor(_config: FsAppMessageConfig, _data: any, _prompt: FsPrompt, _message: FsMessage, _dialog: MatDialog, _cdRef: ChangeDetectorRef);
24
19
  ngOnInit(): void;
25
20
  save: () => import("rxjs").Observable<any>;
26
21
  openPreview(): void;
27
22
  sendTest(type: any): void;
28
23
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "ng-component", never, {}, {}, never, never, false, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "ng-component", never, {}, {}, never, never, true, never>;
30
25
  }
@@ -1,7 +1,5 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { MatDialog } from '@angular/material/dialog';
3
2
  import { FsListComponent, FsListConfig } from '@firestitch/list';
4
- import { FsAppMessageConfig } from '../../../app-message/interfaces';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class MessagesComponent implements OnInit, OnDestroy {
7
5
  private _config;
@@ -10,10 +8,9 @@ export declare class MessagesComponent implements OnInit, OnDestroy {
10
8
  config: FsListConfig;
11
9
  emailMessageFormats: {};
12
10
  private _destroy$;
13
- constructor(_config: FsAppMessageConfig, _dialog: MatDialog);
14
11
  ngOnInit(): void;
15
12
  open(message: any): void;
16
13
  ngOnDestroy(): void;
17
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MessagesComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<MessagesComponent, "fs-app-messages", never, {}, {}, never, never, false, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessagesComponent, "fs-app-messages", never, {}, {}, never, never, true, never>;
19
16
  }
@@ -1,15 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FsListComponent, FsListConfig } from '@firestitch/list';
3
- import { FsMessage } from '@firestitch/message';
4
- import { FsAppMessageConfig } from '../../../app-message/interfaces';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class WebhooksComponent implements OnInit {
7
5
  private _config;
8
6
  private _message;
9
7
  list: FsListComponent;
10
8
  listConfig: FsListConfig;
11
- constructor(_config: FsAppMessageConfig, _message: FsMessage);
12
9
  ngOnInit(): void;
13
10
  static ɵfac: i0.ɵɵFactoryDeclaration<WebhooksComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<WebhooksComponent, "fs-app-message-webhooks", never, {}, {}, never, never, false, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<WebhooksComponent, "fs-app-message-webhooks", never, {}, {}, never, never, true, never>;
15
12
  }
@@ -1,29 +1,28 @@
1
- import { Component, Inject } from '@angular/core';
2
- import { MAT_DIALOG_DATA } from '@angular/material/dialog';
1
+ import { Component, inject } from '@angular/core';
2
+ import { MAT_DIALOG_DATA, MatDialogTitle, MatDialogContent, MatDialogActions, MatDialogClose } from '@angular/material/dialog';
3
+ import { FsDialogModule } from '@firestitch/dialog';
4
+ import { CdkScrollable } from '@angular/cdk/scrolling';
5
+ import { FsIFrameModule } from '@firestitch/iframe';
6
+ import { MatButton } from '@angular/material/button';
3
7
  import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/material/dialog";
5
- import * as i2 from "@angular/material/button";
6
- import * as i3 from "@firestitch/dialog";
7
- import * as i4 from "@firestitch/iframe";
8
+ import * as i1 from "@firestitch/dialog";
9
+ import * as i2 from "@firestitch/iframe";
8
10
  export class PreviewComponent {
9
- _data;
11
+ _data = inject(MAT_DIALOG_DATA);
10
12
  html;
11
13
  styles;
12
- constructor(_data) {
13
- this._data = _data;
14
+ constructor() {
15
+ const _data = this._data;
14
16
  this.html = _data.html;
15
17
  this.styles = _data.styles;
16
18
  }
17
19
  ngOnInit() {
18
20
  }
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PreviewComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
20
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: PreviewComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog>\n <div mat-dialog-title>Preview</div>\n <mat-dialog-content>\n <fs-iframe\n [html]=\"html\"\n [width]=\"'100%'\"\n [styles]=\"styles\">\n </fs-iframe>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"null\" color=\"primary\" type=\"button\">Done</button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }, { kind: "component", type: i4.FsIFrameComponent, selector: "fs-iframe", inputs: ["html", "src", "styles", "width", "height"], outputs: ["loaded"] }] });
21
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PreviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: PreviewComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<fs-dialog>\n <div mat-dialog-title>Preview</div>\n <mat-dialog-content>\n <fs-iframe\n [html]=\"html\"\n [width]=\"'100%'\"\n [styles]=\"styles\">\n </fs-iframe>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"null\" color=\"primary\" type=\"button\">Done</button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FsDialogModule }, { kind: "component", type: i1.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }, { kind: "directive", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: FsIFrameModule }, { kind: "component", type: i2.FsIFrameComponent, selector: "fs-iframe", inputs: ["html", "src", "styles", "width", "height"], outputs: ["loaded"] }, { kind: "directive", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }] });
21
23
  }
22
24
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PreviewComponent, decorators: [{
23
25
  type: Component,
24
- args: [{ template: "<fs-dialog>\n <div mat-dialog-title>Preview</div>\n <mat-dialog-content>\n <fs-iframe\n [html]=\"html\"\n [width]=\"'100%'\"\n [styles]=\"styles\">\n </fs-iframe>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"null\" color=\"primary\" type=\"button\">Done</button>\n </mat-dialog-actions>\n</fs-dialog>\n" }]
25
- }], ctorParameters: () => [{ type: undefined, decorators: [{
26
- type: Inject,
27
- args: [MAT_DIALOG_DATA]
28
- }] }] });
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJldmlldy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvbWVzc2FnZS1wcmV2aWV3L2NvbXBvbmVudHMvcHJldmlldy9wcmV2aWV3LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9tZXNzYWdlLXByZXZpZXcvY29tcG9uZW50cy9wcmV2aWV3L3ByZXZpZXcuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFMUQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDOzs7Ozs7QUFPM0QsTUFBTSxPQUFPLGdCQUFnQjtJQU1RO0lBSjVCLElBQUksQ0FBQztJQUNMLE1BQU0sQ0FBQztJQUVkLFlBQ21DLEtBQUs7UUFBTCxVQUFLLEdBQUwsS0FBSyxD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G9nLWNvbnRlbnQ+XG4gICAgPGZzLWlmcmFtZVxuICAgICAgW2h0bWxdPVwiaHRtbFwiXG4gICAgICBbd2lkdGhdPVwiJzEwMCUnXCJcbiAgICAgIFtzdHlsZXNdPVwic3R5bGVzXCI+XG4gICAgPC9mcy1pZnJhbWU+XG4gIDwvbWF0LWRpYWxvZy1jb250ZW50PlxuICA8bWF0LWRpYWxvZy1hY3Rpb25zPlxuICAgIDxidXR0b24gbWF0LWJ1dHRvbiBbbWF0LWRpYWxvZy1jbG9zZV09XCJudWxsXCIgY29sb3I9XCJwcmltYXJ5XCIgdHlwZT1cImJ1dHRvblwiPkRvbmU8L2J1dHRvbj5cbiAgPC9tYXQtZGlhbG9nLWFjdGlvbnM+XG48L2ZzLWRpYWxvZz5cbiJdfQ==
26
+ args: [{ standalone: true, imports: [FsDialogModule, MatDialogTitle, CdkScrollable, MatDialogContent, FsIFrameModule, MatDialogActions, MatButton, MatDialogClose], template: "<fs-dialog>\n <div mat-dialog-title>Preview</div>\n <mat-dialog-content>\n <fs-iframe\n [html]=\"html\"\n [width]=\"'100%'\"\n [styles]=\"styles\">\n </fs-iframe>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"null\" color=\"primary\" type=\"button\">Done</button>\n </mat-dialog-actions>\n</fs-dialog>\n" }]
27
+ }], ctorParameters: () => [] });
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJldmlldy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvbWVzc2FnZS1wcmV2aWV3L2NvbXBvbmVudHMvcHJldmlldy9wcmV2aWV3LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9tZXNzYWdlLXByZXZpZXcvY29tcG9uZW50cy9wcmV2a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