@pobuca/email-builder 1.1.0 → 1.2.1

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 (139) hide show
  1. package/README.md +1 -1
  2. package/bundles/pobuca-email-builder.umd.js +4952 -4494
  3. package/bundles/pobuca-email-builder.umd.js.map +1 -1
  4. package/bundles/pobuca-email-builder.umd.min.js +1 -1
  5. package/bundles/pobuca-email-builder.umd.min.js.map +1 -1
  6. package/esm2015/lib/classes/DefaultEmail.js +54 -54
  7. package/esm2015/lib/classes/Elements.js +278 -229
  8. package/esm2015/lib/classes/Structure.js +89 -89
  9. package/esm2015/lib/components/block/block.component.js +89 -89
  10. package/esm2015/lib/components/block-settings/block-settings.component.js +53 -53
  11. package/esm2015/lib/components/builder-container/builder-container.component.js +114 -114
  12. package/esm2015/lib/components/dialog.component.js +30 -30
  13. package/esm2015/lib/components/general-settings/general-settings.component.js +25 -25
  14. package/esm2015/lib/components/import-dialog/import-dialog.component.js +62 -62
  15. package/esm2015/lib/components/preview.component.js +89 -89
  16. package/esm2015/lib/components/structure/structure.component.js +163 -163
  17. package/esm2015/lib/components/structure-settings/structure-settings.component.js +31 -31
  18. package/esm2015/lib/components/template-list-dialog/template-list-dialog.component.js +45 -45
  19. package/esm2015/lib/directives/dynamic-component.directive.js +48 -46
  20. package/esm2015/lib/elements/abstract-block.js +23 -23
  21. package/esm2015/lib/elements/button/button.component.js +29 -29
  22. package/esm2015/lib/elements/divider/divider.component.js +30 -30
  23. package/esm2015/lib/elements/image/image.component.js +64 -54
  24. package/esm2015/lib/elements/social/social.component.js +42 -42
  25. package/esm2015/lib/elements/spacer/spacer.component.js +30 -30
  26. package/esm2015/lib/elements/text-element/text-element.component.js +80 -80
  27. package/esm2015/lib/elements/video/video.component.js +147 -0
  28. package/esm2015/lib/groups/align.js +79 -79
  29. package/esm2015/lib/groups/back-repeat.js +55 -55
  30. package/esm2015/lib/groups/border.js +102 -102
  31. package/esm2015/lib/groups/color.js +139 -139
  32. package/esm2015/lib/groups/direction.js +63 -63
  33. package/esm2015/lib/groups/font-styles.js +127 -127
  34. package/esm2015/lib/groups/gaps.js +45 -45
  35. package/esm2015/lib/groups/line-height.js +68 -68
  36. package/esm2015/lib/groups/link.js +67 -67
  37. package/esm2015/lib/groups/margin.js +45 -45
  38. package/esm2015/lib/groups/padding.js +53 -53
  39. package/esm2015/lib/groups/upload-image.js +112 -112
  40. package/esm2015/lib/groups/width-height.js +94 -94
  41. package/esm2015/lib/interceptors/pb-interceptor.interceptor.js +51 -51
  42. package/esm2015/lib/interfaces/interfaces.js +13 -13
  43. package/esm2015/lib/pb-email-builder.component.js +258 -258
  44. package/esm2015/lib/pb-email-builder.module.js +296 -291
  45. package/esm2015/lib/pb-email-builder.service.js +134 -134
  46. package/esm2015/lib/pipes/slugify.pipe.js +39 -39
  47. package/esm2015/lib/services/internals/pb-email-object-store/pb-email-object-store.service.js +180 -175
  48. package/esm2015/lib/services/internals/user-interfaces/user-interface.service.js +122 -122
  49. package/esm2015/lib/services/pb-storage/FreeUsersStorage.class.js +11 -11
  50. package/esm2015/lib/services/pb-storage/index.js +7 -7
  51. package/esm2015/lib/services/pb-storage/pb-storage.service.js +79 -79
  52. package/esm2015/lib/services/user-image-uploader-service/free-users-image-uploader.service.js +26 -26
  53. package/esm2015/lib/services/user-image-uploader-service/index.js +8 -8
  54. package/esm2015/lib/services/user-image-uploader-service/paid-users-image-uploader.service.js +30 -30
  55. package/esm2015/lib/services/user-image-uploader-service/upload-bottom-sheet-dialog/upload-bottom-sheet-dialog.component.js +112 -112
  56. package/esm2015/lib/services/user-image-uploader-service/upload-image-gallery/upload-image-gallery.component.js +91 -91
  57. package/esm2015/lib/services/user-image-uploader-service/user-image-uploader.service.js +26 -26
  58. package/esm2015/lib/services/user-middleware-service/FreeUsersMiddleware.js +31 -31
  59. package/esm2015/lib/services/user-middleware-service/PaidUsersMiddleware.js +12 -12
  60. package/esm2015/lib/services/user-middleware-service/index.js +8 -8
  61. package/esm2015/lib/services/user-middleware-service/pb-middlewares.service.js +195 -195
  62. package/esm2015/lib/services/user-rest-api-service/free-users-rest-api.service.js +16 -16
  63. package/esm2015/lib/services/user-rest-api-service/index.js +7 -7
  64. package/esm2015/lib/services/user-rest-api-service/user-rest-api.service.js +130 -116
  65. package/esm2015/lib/services/video-thumbnail.service.js +142 -0
  66. package/esm2015/lib/tokens/private-tokens.js +17 -17
  67. package/esm2015/lib/tokens/tokens.js +160 -159
  68. package/esm2015/lib/utils.js +147 -147
  69. package/esm2015/pobuca-email-builder.js +45 -43
  70. package/esm2015/public_api.js +26 -26
  71. package/fesm2015/pobuca-email-builder.js +4560 -4207
  72. package/fesm2015/pobuca-email-builder.js.map +1 -1
  73. package/lib/classes/DefaultEmail.d.ts +10 -10
  74. package/lib/classes/Elements.d.ts +72 -62
  75. package/lib/classes/Structure.d.ts +11 -11
  76. package/lib/components/block/block.component.d.ts +25 -25
  77. package/lib/components/block-settings/block-settings.component.d.ts +18 -18
  78. package/lib/components/builder-container/builder-container.component.d.ts +36 -36
  79. package/lib/components/dialog.component.d.ts +10 -10
  80. package/lib/components/general-settings/general-settings.component.d.ts +6 -6
  81. package/lib/components/import-dialog/import-dialog.component.d.ts +16 -16
  82. package/lib/components/preview.component.d.ts +18 -18
  83. package/lib/components/structure/structure.component.d.ts +43 -43
  84. package/lib/components/structure-settings/structure-settings.component.d.ts +9 -9
  85. package/lib/components/template-list-dialog/template-list-dialog.component.d.ts +15 -15
  86. package/lib/directives/dynamic-component.directive.d.ts +13 -13
  87. package/lib/elements/abstract-block.d.ts +8 -8
  88. package/lib/elements/button/button.component.d.ts +18 -18
  89. package/lib/elements/divider/divider.component.d.ts +10 -10
  90. package/lib/elements/image/image.component.d.ts +21 -19
  91. package/lib/elements/social/social.component.d.ts +21 -21
  92. package/lib/elements/spacer/spacer.component.d.ts +5 -5
  93. package/lib/elements/text-element/text-element.component.d.ts +52 -52
  94. package/lib/elements/video/video.component.d.ts +36 -0
  95. package/lib/groups/align.d.ts +17 -17
  96. package/lib/groups/back-repeat.d.ts +8 -8
  97. package/lib/groups/border.d.ts +13 -13
  98. package/lib/groups/color.d.ts +26 -26
  99. package/lib/groups/direction.d.ts +13 -13
  100. package/lib/groups/font-styles.d.ts +21 -21
  101. package/lib/groups/gaps.d.ts +7 -7
  102. package/lib/groups/line-height.d.ts +12 -12
  103. package/lib/groups/link.d.ts +11 -11
  104. package/lib/groups/margin.d.ts +8 -8
  105. package/lib/groups/padding.d.ts +8 -8
  106. package/lib/groups/upload-image.d.ts +19 -19
  107. package/lib/groups/width-height.d.ts +19 -19
  108. package/lib/interceptors/pb-interceptor.interceptor.d.ts +10 -10
  109. package/lib/interfaces/interfaces.d.ts +442 -430
  110. package/lib/pb-email-builder.component.d.ts +67 -67
  111. package/lib/pb-email-builder.module.d.ts +51 -51
  112. package/lib/pb-email-builder.service.d.ts +83 -83
  113. package/lib/pipes/slugify.pipe.d.ts +9 -9
  114. package/lib/services/internals/pb-email-object-store/pb-email-object-store.service.d.ts +51 -50
  115. package/lib/services/internals/user-interfaces/user-interface.service.d.ts +46 -46
  116. package/lib/services/pb-storage/FreeUsersStorage.class.d.ts +6 -6
  117. package/lib/services/pb-storage/index.d.ts +2 -2
  118. package/lib/services/pb-storage/pb-storage.service.d.ts +54 -54
  119. package/lib/services/user-image-uploader-service/free-users-image-uploader.service.d.ts +12 -12
  120. package/lib/services/user-image-uploader-service/index.d.ts +3 -3
  121. package/lib/services/user-image-uploader-service/paid-users-image-uploader.service.d.ts +14 -14
  122. package/lib/services/user-image-uploader-service/upload-bottom-sheet-dialog/upload-bottom-sheet-dialog.component.d.ts +28 -28
  123. package/lib/services/user-image-uploader-service/upload-image-gallery/upload-image-gallery.component.d.ts +27 -27
  124. package/lib/services/user-image-uploader-service/user-image-uploader.service.d.ts +26 -26
  125. package/lib/services/user-middleware-service/FreeUsersMiddleware.d.ts +15 -15
  126. package/lib/services/user-middleware-service/PaidUsersMiddleware.d.ts +7 -7
  127. package/lib/services/user-middleware-service/index.d.ts +3 -3
  128. package/lib/services/user-middleware-service/pb-middlewares.service.d.ts +190 -190
  129. package/lib/services/user-rest-api-service/free-users-rest-api.service.d.ts +10 -10
  130. package/lib/services/user-rest-api-service/index.d.ts +2 -2
  131. package/lib/services/user-rest-api-service/user-rest-api.service.d.ts +95 -82
  132. package/lib/services/video-thumbnail.service.d.ts +23 -0
  133. package/lib/tokens/private-tokens.d.ts +5 -5
  134. package/lib/tokens/tokens.d.ts +70 -70
  135. package/lib/utils.d.ts +88 -88
  136. package/package.json +1 -1
  137. package/pobuca-email-builder.d.ts +44 -42
  138. package/pobuca-email-builder.metadata.json +1 -1
  139. package/public_api.d.ts +16 -16
@@ -1,10 +1,10 @@
1
- import { IStructure, IPBEmail, IGeneralOptions, ICustomFont } from '../interfaces/interfaces';
2
- export declare class Defaults {
3
- structures: IStructure[];
4
- general: IGeneralOptions;
5
- customFonts: ICustomFont[];
6
- constructor(structures?: IStructure[], general?: IGeneralOptions, customFonts?: ICustomFont[]);
7
- }
8
- export declare class PBEmail extends Defaults {
9
- constructor({ structures, general, customFonts }?: IPBEmail);
10
- }
1
+ import { IStructure, IPBEmail, IGeneralOptions, ICustomFont } from '../interfaces/interfaces';
2
+ export declare class Defaults {
3
+ structures: IStructure[];
4
+ general: IGeneralOptions;
5
+ customFonts: ICustomFont[];
6
+ constructor(structures?: IStructure[], general?: IGeneralOptions, customFonts?: ICustomFont[]);
7
+ }
8
+ export declare class PBEmail extends Defaults {
9
+ constructor({ structures, general, customFonts }?: IPBEmail);
10
+ }
@@ -1,62 +1,72 @@
1
- import { IBlockState, IButtonBlockOptions, IDividerBlockOptions, IImageBLockOptions, ISocialBlockOptions, ISocialNetwork, ISpacerBlockOptions, ITextBlockOptions } from '../interfaces/interfaces';
2
- export declare type TBlocksOptions = ITextBlockOptions | IImageBLockOptions | IButtonBlockOptions | IDividerBlockOptions | ISpacerBlockOptions | ISocialBlockOptions;
3
- export declare abstract class AIPBlock {
4
- readonly type: string;
5
- readonly icon: string;
6
- abstract readonly title: string;
7
- options: TBlocksOptions;
8
- state: IBlockState;
9
- }
10
- export declare class TextBlock implements AIPBlock {
11
- innerText?: string;
12
- state: IBlockState;
13
- readonly type = "text";
14
- readonly icon = "text_format";
15
- options: ITextBlockOptions;
16
- title: string;
17
- constructor(innerText?: string, options?: ITextBlockOptions, state?: IBlockState);
18
- }
19
- export declare class ImageBlock implements AIPBlock {
20
- src: string;
21
- state: IBlockState;
22
- readonly type = "image";
23
- readonly icon = "image";
24
- options: IImageBLockOptions;
25
- title: string;
26
- constructor(src?: string, options?: IImageBLockOptions, state?: IBlockState);
27
- }
28
- export declare class ButtonBlock implements AIPBlock {
29
- innerText: string;
30
- state: IBlockState;
31
- readonly type = "button";
32
- readonly icon = "radio_button_checked";
33
- options: IButtonBlockOptions;
34
- title: string;
35
- constructor(innerText?: string, options?: IButtonBlockOptions, state?: IBlockState);
36
- }
37
- export declare class DividerBlock implements AIPBlock {
38
- state: IBlockState;
39
- readonly type = "divider";
40
- readonly icon = "remove";
41
- options: IDividerBlockOptions;
42
- title: string;
43
- constructor(options?: IDividerBlockOptions, state?: IBlockState);
44
- }
45
- export declare class SpacerBlock implements AIPBlock {
46
- state: IBlockState;
47
- readonly type = "spacer";
48
- readonly icon = "vertical_align_center";
49
- title: string;
50
- options: ISpacerBlockOptions;
51
- constructor(options?: ISpacerBlockOptions, state?: IBlockState);
52
- }
53
- export declare class SocialBlock implements AIPBlock {
54
- networks: ISocialNetwork[];
55
- state: IBlockState;
56
- readonly type = "social";
57
- readonly icon = "share";
58
- title: string;
59
- options: ISocialBlockOptions;
60
- constructor(networks?: ISocialNetwork[], options?: ISocialBlockOptions, state?: IBlockState);
61
- }
62
- export declare type TBlocks = TextBlock | ImageBlock | ButtonBlock | DividerBlock | SpacerBlock | SocialBlock;
1
+ import { IBlockState, IButtonBlockOptions, IDividerBlockOptions, IImageBLockOptions, IVideoBlockOptions, ISocialBlockOptions, ISocialNetwork, ISpacerBlockOptions, ITextBlockOptions } from '../interfaces/interfaces';
2
+ export declare type TBlocksOptions = ITextBlockOptions | IImageBLockOptions | IVideoBlockOptions | IButtonBlockOptions | IDividerBlockOptions | ISpacerBlockOptions | ISocialBlockOptions;
3
+ export declare abstract class AIPBlock {
4
+ readonly type: string;
5
+ readonly icon: string;
6
+ abstract readonly title: string;
7
+ options: TBlocksOptions;
8
+ state: IBlockState;
9
+ }
10
+ export declare class TextBlock implements AIPBlock {
11
+ innerText?: string;
12
+ state: IBlockState;
13
+ readonly type = "text";
14
+ readonly icon = "text_format";
15
+ options: ITextBlockOptions;
16
+ title: string;
17
+ constructor(innerText?: string, options?: ITextBlockOptions, state?: IBlockState);
18
+ }
19
+ export declare class ImageBlock implements AIPBlock {
20
+ src: string;
21
+ state: IBlockState;
22
+ readonly type = "image";
23
+ readonly icon = "image";
24
+ options: IImageBLockOptions;
25
+ title: string;
26
+ constructor(src?: string, options?: IImageBLockOptions, state?: IBlockState);
27
+ }
28
+ export declare class VideoBlock implements AIPBlock {
29
+ src: string;
30
+ posterSrc: string;
31
+ state: IBlockState;
32
+ readonly type = "video";
33
+ readonly icon = "videocam";
34
+ options: IVideoBlockOptions;
35
+ title: string;
36
+ constructor(src?: string, posterSrc?: string, options?: Partial<IVideoBlockOptions>, state?: IBlockState);
37
+ }
38
+ export declare class ButtonBlock implements AIPBlock {
39
+ innerText: string;
40
+ state: IBlockState;
41
+ readonly type = "button";
42
+ readonly icon = "radio_button_checked";
43
+ options: IButtonBlockOptions;
44
+ title: string;
45
+ constructor(innerText?: string, options?: IButtonBlockOptions, state?: IBlockState);
46
+ }
47
+ export declare class DividerBlock implements AIPBlock {
48
+ state: IBlockState;
49
+ readonly type = "divider";
50
+ readonly icon = "remove";
51
+ options: IDividerBlockOptions;
52
+ title: string;
53
+ constructor(options?: IDividerBlockOptions, state?: IBlockState);
54
+ }
55
+ export declare class SpacerBlock implements AIPBlock {
56
+ state: IBlockState;
57
+ readonly type = "spacer";
58
+ readonly icon = "vertical_align_center";
59
+ title: string;
60
+ options: ISpacerBlockOptions;
61
+ constructor(options?: ISpacerBlockOptions, state?: IBlockState);
62
+ }
63
+ export declare class SocialBlock implements AIPBlock {
64
+ networks: ISocialNetwork[];
65
+ state: IBlockState;
66
+ readonly type = "social";
67
+ readonly icon = "share";
68
+ title: string;
69
+ options: ISocialBlockOptions;
70
+ constructor(networks?: ISocialNetwork[], options?: ISocialBlockOptions, state?: IBlockState);
71
+ }
72
+ export declare type TBlocks = TextBlock | ImageBlock | VideoBlock | ButtonBlock | DividerBlock | SpacerBlock | SocialBlock;
@@ -1,11 +1,11 @@
1
- import { IStructure, IStructureColumnOptions, IStructureOptions, TStructureTypes } from '../interfaces/interfaces';
2
- import { TBlocks } from './Elements';
3
- export declare const defaultColumnsOptions: IStructureColumnOptions;
4
- export declare class Structure implements IStructure {
5
- readonly type: TStructureTypes;
6
- elements: TBlocks[][];
7
- columns: number;
8
- readonly id: number;
9
- options: IStructureOptions;
10
- constructor(type?: TStructureTypes, elements?: TBlocks[][], options?: IStructureOptions);
11
- }
1
+ import { IStructure, IStructureColumnOptions, IStructureOptions, TStructureTypes } from '../interfaces/interfaces';
2
+ import { TBlocks } from './Elements';
3
+ export declare const defaultColumnsOptions: IStructureColumnOptions;
4
+ export declare class Structure implements IStructure {
5
+ readonly type: TStructureTypes;
6
+ elements: TBlocks[][];
7
+ columns: number;
8
+ readonly id: number;
9
+ options: IStructureOptions;
10
+ constructor(type?: TStructureTypes, elements?: TBlocks[][], options?: IStructureOptions);
11
+ }
@@ -1,25 +1,25 @@
1
- import { DoCheck, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
2
- import { TBlocks } from '../../classes/Elements';
3
- import { PbUserInterfaceService } from '../../services/internals/user-interfaces/user-interface.service';
4
- import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
5
- import { PbUserMiddlewaresService } from '../../services/user-middleware-service/pb-middlewares.service';
6
- export declare class BlockComponent implements DoCheck, OnDestroy, OnInit {
7
- private pbMiddlewaresService;
8
- private userInterfaceService;
9
- private emailObjectStore;
10
- private chRef;
11
- block: TBlocks;
12
- column: TBlocks[];
13
- index: number;
14
- isActive: boolean;
15
- private readonly componentIsDestroyed$;
16
- onHostClick(event: MouseEvent): void;
17
- get isBlockActive(): boolean;
18
- constructor(pbMiddlewaresService: PbUserMiddlewaresService, userInterfaceService: PbUserInterfaceService, emailObjectStore: PbEmailObjectStoreService, chRef: ChangeDetectorRef);
19
- removeBlock(): void;
20
- duplicateBlock(): void;
21
- editBlock(): void;
22
- ngOnInit(): void;
23
- ngDoCheck(): void;
24
- ngOnDestroy(): void;
25
- }
1
+ import { DoCheck, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
2
+ import { TBlocks } from '../../classes/Elements';
3
+ import { PbUserInterfaceService } from '../../services/internals/user-interfaces/user-interface.service';
4
+ import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
5
+ import { PbUserMiddlewaresService } from '../../services/user-middleware-service/pb-middlewares.service';
6
+ export declare class BlockComponent implements DoCheck, OnDestroy, OnInit {
7
+ private pbMiddlewaresService;
8
+ private userInterfaceService;
9
+ private emailObjectStore;
10
+ private chRef;
11
+ block: TBlocks;
12
+ column: TBlocks[];
13
+ index: number;
14
+ isActive: boolean;
15
+ private readonly componentIsDestroyed$;
16
+ onHostClick(event: MouseEvent): void;
17
+ get isBlockActive(): boolean;
18
+ constructor(pbMiddlewaresService: PbUserMiddlewaresService, userInterfaceService: PbUserInterfaceService, emailObjectStore: PbEmailObjectStoreService, chRef: ChangeDetectorRef);
19
+ removeBlock(): void;
20
+ duplicateBlock(): void;
21
+ editBlock(): void;
22
+ ngOnInit(): void;
23
+ ngDoCheck(): void;
24
+ ngOnDestroy(): void;
25
+ }
@@ -1,18 +1,18 @@
1
- import { MatSelectChange } from '@angular/material/select';
2
- import { SocialBlock, TBlocksOptions } from '../../classes/Elements';
3
- import { ISocialNetwork } from '../../interfaces/interfaces';
4
- import { PbUserInterfaceService } from '../../services/internals/user-interfaces/user-interface.service';
5
- import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
6
- export declare class BlockSettingsComponent {
7
- private internalService;
8
- private emailObject;
9
- private networks;
10
- block$: import("rxjs").Observable<import("../../classes/Elements").TBlocks>;
11
- constructor(internalService: PbUserInterfaceService, emailObject: PbEmailObjectStoreService, networks: string[]);
12
- hasProperty(options: TBlocksOptions, property: string): boolean;
13
- markForCheck(): void;
14
- socialNetworks(block: SocialBlock): string[];
15
- addSocialNetwork({ value, source }: MatSelectChange, block: SocialBlock): void;
16
- removeSocialNetwork(network: ISocialNetwork, block: SocialBlock): void;
17
- getSocialIcon(network: string): string;
18
- }
1
+ import { MatSelectChange } from '@angular/material/select';
2
+ import { SocialBlock, TBlocksOptions } from '../../classes/Elements';
3
+ import { ISocialNetwork } from '../../interfaces/interfaces';
4
+ import { PbUserInterfaceService } from '../../services/internals/user-interfaces/user-interface.service';
5
+ import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
6
+ export declare class BlockSettingsComponent {
7
+ private internalService;
8
+ private emailObject;
9
+ private networks;
10
+ block$: import("rxjs").Observable<import("../../classes/Elements").TBlocks>;
11
+ constructor(internalService: PbUserInterfaceService, emailObject: PbEmailObjectStoreService, networks: string[]);
12
+ hasProperty(options: TBlocksOptions, property: string): boolean;
13
+ markForCheck(): void;
14
+ socialNetworks(block: SocialBlock): string[];
15
+ addSocialNetwork({ value, source }: MatSelectChange, block: SocialBlock): void;
16
+ removeSocialNetwork(network: ISocialNetwork, block: SocialBlock): void;
17
+ getSocialIcon(network: string): string;
18
+ }
@@ -1,36 +1,36 @@
1
- import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
2
- import { IForRootConf, IStructure } from '../../interfaces/interfaces';
3
- import { IAddStructureEvent, PbUserMiddlewaresService } from '../../services/user-middleware-service/pb-middlewares.service';
4
- import { PbUserInterfaceService } from '../../services/internals/user-interfaces/user-interface.service';
5
- import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
6
- import { PbUserRestApiService } from '../../services/user-rest-api-service/user-rest-api.service';
7
- import { PbStorageService } from '../../services/pb-storage/pb-storage.service';
8
- export declare class BuilderContainerComponent {
9
- private userInterfaceService;
10
- private emailObjectStore;
11
- private userRestApi;
12
- private pbStorage;
13
- private pbMiddlewaresService;
14
- private sanitizer;
15
- private userConfig;
16
- showTemplateList: boolean;
17
- getStructures$: import("rxjs").Observable<IStructure[]>;
18
- activeMatProgress$: import("rxjs").ReplaySubject<boolean>;
19
- constructor(userInterfaceService: PbUserInterfaceService, emailObjectStore: PbEmailObjectStoreService, userRestApi: PbUserRestApiService, pbStorage: PbStorageService, pbMiddlewaresService: PbUserMiddlewaresService, sanitizer: DomSanitizer, userConfig: IForRootConf);
20
- onHostClick(): void;
21
- trackBy(structure: IStructure): number;
22
- disableStructureDrag$(structure: IStructure): import("rxjs").Observable<boolean>;
23
- openTemplateDialog(ev: Event): import("rxjs").Subscription;
24
- dropNewStructure(event: IAddStructureEvent): void;
25
- getStructureStyles(structure: IStructure): {
26
- margin: string;
27
- borderRadius: string;
28
- width: string;
29
- backgroundRepeat: import("../../interfaces/interfaces").TBackgroundRepeat;
30
- backgroundColor: string;
31
- backgroundSize: string;
32
- backgroundPosition: string;
33
- gridTemplateColumns: string;
34
- };
35
- getBackgroundImage(structure: IStructure): SafeStyle;
36
- }
1
+ import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
2
+ import { IForRootConf, IStructure } from '../../interfaces/interfaces';
3
+ import { IAddStructureEvent, PbUserMiddlewaresService } from '../../services/user-middleware-service/pb-middlewares.service';
4
+ import { PbUserInterfaceService } from '../../services/internals/user-interfaces/user-interface.service';
5
+ import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
6
+ import { PbUserRestApiService } from '../../services/user-rest-api-service/user-rest-api.service';
7
+ import { PbStorageService } from '../../services/pb-storage/pb-storage.service';
8
+ export declare class BuilderContainerComponent {
9
+ private userInterfaceService;
10
+ private emailObjectStore;
11
+ private userRestApi;
12
+ private pbStorage;
13
+ private pbMiddlewaresService;
14
+ private sanitizer;
15
+ private userConfig;
16
+ showTemplateList: boolean;
17
+ getStructures$: import("rxjs").Observable<IStructure[]>;
18
+ activeMatProgress$: import("rxjs").ReplaySubject<boolean>;
19
+ constructor(userInterfaceService: PbUserInterfaceService, emailObjectStore: PbEmailObjectStoreService, userRestApi: PbUserRestApiService, pbStorage: PbStorageService, pbMiddlewaresService: PbUserMiddlewaresService, sanitizer: DomSanitizer, userConfig: IForRootConf);
20
+ onHostClick(): void;
21
+ trackBy(structure: IStructure): number;
22
+ disableStructureDrag$(structure: IStructure): import("rxjs").Observable<boolean>;
23
+ openTemplateDialog(ev: Event): import("rxjs").Subscription;
24
+ dropNewStructure(event: IAddStructureEvent): void;
25
+ getStructureStyles(structure: IStructure): {
26
+ margin: string;
27
+ borderRadius: string;
28
+ width: string;
29
+ backgroundRepeat: import("../../interfaces/interfaces").TBackgroundRepeat;
30
+ backgroundColor: string;
31
+ backgroundSize: string;
32
+ backgroundPosition: string;
33
+ gridTemplateColumns: string;
34
+ };
35
+ getBackgroundImage(structure: IStructure): SafeStyle;
36
+ }
@@ -1,10 +1,10 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
- export declare class ConfirmDialogComponent {
3
- dialogRef: MatDialogRef<ConfirmDialogComponent>;
4
- data: {
5
- message: string;
6
- };
7
- constructor(dialogRef: MatDialogRef<ConfirmDialogComponent>, data: {
8
- message: string;
9
- });
10
- }
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ export declare class ConfirmDialogComponent {
3
+ dialogRef: MatDialogRef<ConfirmDialogComponent>;
4
+ data: {
5
+ message: string;
6
+ };
7
+ constructor(dialogRef: MatDialogRef<ConfirmDialogComponent>, data: {
8
+ message: string;
9
+ });
10
+ }
@@ -1,6 +1,6 @@
1
- import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
2
- export declare class GeneralSettingsComponent {
3
- private pbEmailObject;
4
- generalOptions$: import("rxjs").Observable<import("../../interfaces/interfaces").IGeneralOptions>;
5
- constructor(pbEmailObject: PbEmailObjectStoreService);
6
- }
1
+ import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
2
+ export declare class GeneralSettingsComponent {
3
+ private pbEmailObject;
4
+ generalOptions$: import("rxjs").Observable<import("../../interfaces/interfaces").IGeneralOptions>;
5
+ constructor(pbEmailObject: PbEmailObjectStoreService);
6
+ }
@@ -1,16 +1,16 @@
1
- import { OnInit, OnDestroy } from '@angular/core';
2
- import { MatBottomSheetRef } from '@angular/material/bottom-sheet';
3
- import { PbUserMiddlewaresService } from '../../services/user-middleware-service/pb-middlewares.service';
4
- import { PBEmail } from '../../classes/DefaultEmail';
5
- export declare class ImportDialogComponent implements OnInit, OnDestroy {
6
- private pbMiddlewares;
7
- private bottomSheetRef;
8
- private uploadInput;
9
- importing: boolean;
10
- private fileReader;
11
- constructor(pbMiddlewares: PbUserMiddlewaresService, bottomSheetRef: MatBottomSheetRef<ImportDialogComponent, PBEmail>);
12
- openBrowserModal(event: MouseEvent): void;
13
- startImporting(): void;
14
- ngOnInit(): void;
15
- ngOnDestroy(): void;
16
- }
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
+ import { MatBottomSheetRef } from '@angular/material/bottom-sheet';
3
+ import { PbUserMiddlewaresService } from '../../services/user-middleware-service/pb-middlewares.service';
4
+ import { PBEmail } from '../../classes/DefaultEmail';
5
+ export declare class ImportDialogComponent implements OnInit, OnDestroy {
6
+ private pbMiddlewares;
7
+ private bottomSheetRef;
8
+ private uploadInput;
9
+ importing: boolean;
10
+ private fileReader;
11
+ constructor(pbMiddlewares: PbUserMiddlewaresService, bottomSheetRef: MatBottomSheetRef<ImportDialogComponent, PBEmail>);
12
+ openBrowserModal(event: MouseEvent): void;
13
+ startImporting(): void;
14
+ ngOnInit(): void;
15
+ ngOnDestroy(): void;
16
+ }
@@ -1,18 +1,18 @@
1
- import { OnInit, OnDestroy } from '@angular/core';
2
- import { MatButtonToggleChange } from '@angular/material/button-toggle';
3
- import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
4
- import { PbUserMiddlewaresService } from '../services/user-middleware-service/pb-middlewares.service';
5
- export declare type TPreviewDevice = 'desktop' | 'smartphone' | 'tablet';
6
- export declare class PreviewTemplateComponent implements OnInit, OnDestroy {
7
- private middlewares;
8
- private sanitizer;
9
- template: string;
10
- private src;
11
- private device;
12
- templateSrc: SafeResourceUrl;
13
- constructor(middlewares: PbUserMiddlewaresService, sanitizer: DomSanitizer);
14
- changeDevice(button: MatButtonToggleChange): import("rxjs").Subscription;
15
- getFlexWidth(): string;
16
- ngOnInit(): void;
17
- ngOnDestroy(): void;
18
- }
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
+ import { MatButtonToggleChange } from '@angular/material/button-toggle';
3
+ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
4
+ import { PbUserMiddlewaresService } from '../services/user-middleware-service/pb-middlewares.service';
5
+ export declare type TPreviewDevice = 'desktop' | 'smartphone' | 'tablet';
6
+ export declare class PreviewTemplateComponent implements OnInit, OnDestroy {
7
+ private middlewares;
8
+ private sanitizer;
9
+ template: string;
10
+ private src;
11
+ private device;
12
+ templateSrc: SafeResourceUrl;
13
+ constructor(middlewares: PbUserMiddlewaresService, sanitizer: DomSanitizer);
14
+ changeDevice(button: MatButtonToggleChange): import("rxjs").Subscription;
15
+ getFlexWidth(): string;
16
+ ngOnInit(): void;
17
+ ngOnDestroy(): void;
18
+ }
@@ -1,43 +1,43 @@
1
- import { ChangeDetectorRef, DoCheck, OnDestroy, OnInit } from '@angular/core';
2
- import { ResizeEvent } from 'angular-resizable-element';
3
- import { Structure } from '../../classes/Structure';
4
- import { TBlocks } from '../../classes/Elements';
5
- import { IAddBlockEvent, PbUserMiddlewaresService } from '../../services/user-middleware-service/pb-middlewares.service';
6
- import { PbUserInterfaceService } from '../../services/internals/user-interfaces/user-interface.service';
7
- import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
8
- export declare class StructureComponent implements DoCheck, OnInit, OnDestroy {
9
- private userInterfaceService;
10
- private emailObjectStore;
11
- private chRef;
12
- private pbMiddlewaresService;
13
- structure: Structure;
14
- index: number;
15
- isActive: boolean;
16
- cdkDropListConnectedTo$: import("rxjs").Observable<any[]>;
17
- fr: number;
18
- validate: any;
19
- private readonly componentIsDestroyed$;
20
- constructor(userInterfaceService: PbUserInterfaceService, emailObjectStore: PbEmailObjectStoreService, chRef: ChangeDetectorRef, pbMiddlewaresService: PbUserMiddlewaresService);
21
- get isStructureActive(): boolean;
22
- onHostClick(event: MouseEvent): void;
23
- removeStructure(event: Event): void;
24
- duplicateStructure(event: Event): void;
25
- dropNewBlock(event: IAddBlockEvent, column: TBlocks[]): void;
26
- disableBlockDrag$(block: TBlocks): import("rxjs").Observable<boolean>;
27
- editStructure(structure?: Structure): void;
28
- getResizeEdges(columnKey: number): {
29
- right: boolean;
30
- left: boolean;
31
- };
32
- createColumnId(columnKey: number): string;
33
- getColumnStyles(columnKey: number): {
34
- borderRadius: string;
35
- padding: string;
36
- backgroundColor: string;
37
- placeSelf: string;
38
- };
39
- onResizeEnd({ rectangle }: ResizeEvent, key: number): void;
40
- ngDoCheck(): void;
41
- ngOnInit(): void;
42
- ngOnDestroy(): void;
43
- }
1
+ import { ChangeDetectorRef, DoCheck, OnDestroy, OnInit } from '@angular/core';
2
+ import { ResizeEvent } from 'angular-resizable-element';
3
+ import { Structure } from '../../classes/Structure';
4
+ import { TBlocks } from '../../classes/Elements';
5
+ import { IAddBlockEvent, PbUserMiddlewaresService } from '../../services/user-middleware-service/pb-middlewares.service';
6
+ import { PbUserInterfaceService } from '../../services/internals/user-interfaces/user-interface.service';
7
+ import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
8
+ export declare class StructureComponent implements DoCheck, OnInit, OnDestroy {
9
+ private userInterfaceService;
10
+ private emailObjectStore;
11
+ private chRef;
12
+ private pbMiddlewaresService;
13
+ structure: Structure;
14
+ index: number;
15
+ isActive: boolean;
16
+ cdkDropListConnectedTo$: import("rxjs").Observable<any[]>;
17
+ fr: number;
18
+ validate: any;
19
+ private readonly componentIsDestroyed$;
20
+ constructor(userInterfaceService: PbUserInterfaceService, emailObjectStore: PbEmailObjectStoreService, chRef: ChangeDetectorRef, pbMiddlewaresService: PbUserMiddlewaresService);
21
+ get isStructureActive(): boolean;
22
+ onHostClick(event: MouseEvent): void;
23
+ removeStructure(event: Event): void;
24
+ duplicateStructure(event: Event): void;
25
+ dropNewBlock(event: IAddBlockEvent, column: TBlocks[]): void;
26
+ disableBlockDrag$(block: TBlocks): import("rxjs").Observable<boolean>;
27
+ editStructure(structure?: Structure): void;
28
+ getResizeEdges(columnKey: number): {
29
+ right: boolean;
30
+ left: boolean;
31
+ };
32
+ createColumnId(columnKey: number): string;
33
+ getColumnStyles(columnKey: number): {
34
+ borderRadius: string;
35
+ padding: string;
36
+ backgroundColor: string;
37
+ placeSelf: string;
38
+ };
39
+ onResizeEnd({ rectangle }: ResizeEvent, key: number): void;
40
+ ngDoCheck(): void;
41
+ ngOnInit(): void;
42
+ ngOnDestroy(): void;
43
+ }
@@ -1,9 +1,9 @@
1
- import { PbUserInterfaceService } from '../../services/internals/user-interfaces/user-interface.service';
2
- import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
3
- export declare class StructureSettingsComponent {
4
- private pbInternalService;
5
- private emailObject;
6
- currentStructure$: import("rxjs").Observable<import("../../interfaces/interfaces").IStructure>;
7
- constructor(pbInternalService: PbUserInterfaceService, emailObject: PbEmailObjectStoreService);
8
- markForCheck(): void;
9
- }
1
+ import { PbUserInterfaceService } from '../../services/internals/user-interfaces/user-interface.service';
2
+ import { PbEmailObjectStoreService } from '../../services/internals/pb-email-object-store/pb-email-object-store.service';
3
+ export declare class StructureSettingsComponent {
4
+ private pbInternalService;
5
+ private emailObject;
6
+ currentStructure$: import("rxjs").Observable<import("../../interfaces/interfaces").IStructure>;
7
+ constructor(pbInternalService: PbUserInterfaceService, emailObject: PbEmailObjectStoreService);
8
+ markForCheck(): void;
9
+ }
@@ -1,15 +1,15 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { IUserTemplateCategory, IUserTemplate } from '../../interfaces/interfaces';
4
- export declare class TemplateListDialogComponent {
5
- private matDialogRef;
6
- templateList: IUserTemplateCategory[];
7
- readonly chooseCategory$: BehaviorSubject<string>;
8
- readonly currentCategoryTemplates$: import("rxjs").Observable<any[]>;
9
- csdTemplate: IUserTemplate;
10
- constructor(matDialogRef: MatDialogRef<TemplateListDialogComponent>, templateList: IUserTemplateCategory[]);
11
- chooseTemplate(template: IUserTemplate): void;
12
- chageCategory(category: string): void;
13
- getTemplatesList(): IUserTemplateCategory[];
14
- startBuilding(): void;
15
- }
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import { IUserTemplateCategory, IUserTemplate } from '../../interfaces/interfaces';
4
+ export declare class TemplateListDialogComponent {
5
+ private matDialogRef;
6
+ templateList: IUserTemplateCategory[];
7
+ readonly chooseCategory$: BehaviorSubject<string>;
8
+ readonly currentCategoryTemplates$: import("rxjs").Observable<any[]>;
9
+ csdTemplate: IUserTemplate;
10
+ constructor(matDialogRef: MatDialogRef<TemplateListDialogComponent>, templateList: IUserTemplateCategory[]);
11
+ chooseTemplate(template: IUserTemplate): void;
12
+ chageCategory(category: string): void;
13
+ getTemplatesList(): IUserTemplateCategory[];
14
+ startBuilding(): void;
15
+ }
@@ -1,13 +1,13 @@
1
- import { ComponentFactoryResolver, ViewContainerRef } from '@angular/core';
2
- import { TBlocks } from '../classes/Elements';
3
- /**
4
- * @internal
5
- *
6
- * Soon it must be optimized, and load all components lazily.
7
- */
8
- export declare class DynamicComponentDirective {
9
- private cResolver;
10
- private viewContainerRef;
11
- constructor(cResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef);
12
- set pbDynamicComponent(block: TBlocks);
13
- }
1
+ import { ComponentFactoryResolver, ViewContainerRef } from '@angular/core';
2
+ import { TBlocks } from '../classes/Elements';
3
+ /**
4
+ * @internal
5
+ *
6
+ * Soon it must be optimized, and load all components lazily.
7
+ */
8
+ export declare class DynamicComponentDirective {
9
+ private cResolver;
10
+ private viewContainerRef;
11
+ constructor(cResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef);
12
+ set pbDynamicComponent(block: TBlocks);
13
+ }