@pobuca/email-builder 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/README.md +1 -1
  2. package/bundles/pobuca-email-builder.umd.js +4464 -4414
  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 -53
  7. package/esm2015/lib/classes/Elements.js +229 -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 +46 -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 +54 -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/groups/align.js +79 -79
  28. package/esm2015/lib/groups/back-repeat.js +55 -55
  29. package/esm2015/lib/groups/border.js +102 -102
  30. package/esm2015/lib/groups/color.js +139 -139
  31. package/esm2015/lib/groups/direction.js +63 -63
  32. package/esm2015/lib/groups/font-styles.js +127 -112
  33. package/esm2015/lib/groups/gaps.js +45 -45
  34. package/esm2015/lib/groups/line-height.js +68 -68
  35. package/esm2015/lib/groups/link.js +67 -67
  36. package/esm2015/lib/groups/margin.js +45 -45
  37. package/esm2015/lib/groups/padding.js +53 -53
  38. package/esm2015/lib/groups/upload-image.js +112 -112
  39. package/esm2015/lib/groups/width-height.js +94 -94
  40. package/esm2015/lib/interceptors/pb-interceptor.interceptor.js +51 -51
  41. package/esm2015/lib/interfaces/interfaces.js +13 -13
  42. package/esm2015/lib/pb-email-builder.component.js +258 -246
  43. package/esm2015/lib/pb-email-builder.module.js +291 -291
  44. package/esm2015/lib/pb-email-builder.service.js +134 -134
  45. package/esm2015/lib/pipes/slugify.pipe.js +39 -39
  46. package/esm2015/lib/services/internals/pb-email-object-store/pb-email-object-store.service.js +175 -165
  47. package/esm2015/lib/services/internals/user-interfaces/user-interface.service.js +122 -122
  48. package/esm2015/lib/services/pb-storage/FreeUsersStorage.class.js +11 -11
  49. package/esm2015/lib/services/pb-storage/index.js +7 -7
  50. package/esm2015/lib/services/pb-storage/pb-storage.service.js +79 -79
  51. package/esm2015/lib/services/user-image-uploader-service/free-users-image-uploader.service.js +26 -26
  52. package/esm2015/lib/services/user-image-uploader-service/index.js +8 -8
  53. package/esm2015/lib/services/user-image-uploader-service/paid-users-image-uploader.service.js +30 -30
  54. package/esm2015/lib/services/user-image-uploader-service/upload-bottom-sheet-dialog/upload-bottom-sheet-dialog.component.js +112 -112
  55. package/esm2015/lib/services/user-image-uploader-service/upload-image-gallery/upload-image-gallery.component.js +91 -91
  56. package/esm2015/lib/services/user-image-uploader-service/user-image-uploader.service.js +26 -26
  57. package/esm2015/lib/services/user-middleware-service/FreeUsersMiddleware.js +31 -31
  58. package/esm2015/lib/services/user-middleware-service/PaidUsersMiddleware.js +12 -12
  59. package/esm2015/lib/services/user-middleware-service/index.js +8 -8
  60. package/esm2015/lib/services/user-middleware-service/pb-middlewares.service.js +195 -195
  61. package/esm2015/lib/services/user-rest-api-service/free-users-rest-api.service.js +16 -16
  62. package/esm2015/lib/services/user-rest-api-service/index.js +7 -7
  63. package/esm2015/lib/services/user-rest-api-service/user-rest-api.service.js +116 -116
  64. package/esm2015/lib/tokens/private-tokens.js +17 -17
  65. package/esm2015/lib/tokens/tokens.js +159 -159
  66. package/esm2015/lib/utils.js +147 -147
  67. package/esm2015/pobuca-email-builder.js +42 -42
  68. package/esm2015/public_api.js +26 -26
  69. package/fesm2015/pobuca-email-builder.js +4206 -4168
  70. package/fesm2015/pobuca-email-builder.js.map +1 -1
  71. package/lib/classes/DefaultEmail.d.ts +10 -9
  72. package/lib/classes/Elements.d.ts +62 -62
  73. package/lib/classes/Structure.d.ts +11 -11
  74. package/lib/components/block/block.component.d.ts +25 -25
  75. package/lib/components/block-settings/block-settings.component.d.ts +18 -18
  76. package/lib/components/builder-container/builder-container.component.d.ts +36 -36
  77. package/lib/components/dialog.component.d.ts +10 -10
  78. package/lib/components/general-settings/general-settings.component.d.ts +6 -6
  79. package/lib/components/import-dialog/import-dialog.component.d.ts +16 -16
  80. package/lib/components/preview.component.d.ts +18 -18
  81. package/lib/components/structure/structure.component.d.ts +43 -43
  82. package/lib/components/structure-settings/structure-settings.component.d.ts +9 -9
  83. package/lib/components/template-list-dialog/template-list-dialog.component.d.ts +15 -15
  84. package/lib/directives/dynamic-component.directive.d.ts +13 -13
  85. package/lib/elements/abstract-block.d.ts +8 -8
  86. package/lib/elements/button/button.component.d.ts +18 -18
  87. package/lib/elements/divider/divider.component.d.ts +10 -10
  88. package/lib/elements/image/image.component.d.ts +19 -19
  89. package/lib/elements/social/social.component.d.ts +21 -21
  90. package/lib/elements/spacer/spacer.component.d.ts +5 -5
  91. package/lib/elements/text-element/text-element.component.d.ts +52 -52
  92. package/lib/groups/align.d.ts +17 -17
  93. package/lib/groups/back-repeat.d.ts +8 -8
  94. package/lib/groups/border.d.ts +13 -13
  95. package/lib/groups/color.d.ts +26 -26
  96. package/lib/groups/direction.d.ts +13 -13
  97. package/lib/groups/font-styles.d.ts +21 -17
  98. package/lib/groups/gaps.d.ts +7 -7
  99. package/lib/groups/line-height.d.ts +12 -12
  100. package/lib/groups/link.d.ts +11 -11
  101. package/lib/groups/margin.d.ts +8 -8
  102. package/lib/groups/padding.d.ts +8 -8
  103. package/lib/groups/upload-image.d.ts +19 -19
  104. package/lib/groups/width-height.d.ts +19 -19
  105. package/lib/interceptors/pb-interceptor.interceptor.d.ts +10 -10
  106. package/lib/interfaces/interfaces.d.ts +430 -422
  107. package/lib/pb-email-builder.component.d.ts +67 -67
  108. package/lib/pb-email-builder.module.d.ts +51 -51
  109. package/lib/pb-email-builder.service.d.ts +83 -83
  110. package/lib/pipes/slugify.pipe.d.ts +9 -9
  111. package/lib/services/internals/pb-email-object-store/pb-email-object-store.service.d.ts +50 -50
  112. package/lib/services/internals/user-interfaces/user-interface.service.d.ts +46 -46
  113. package/lib/services/pb-storage/FreeUsersStorage.class.d.ts +6 -6
  114. package/lib/services/pb-storage/index.d.ts +2 -2
  115. package/lib/services/pb-storage/pb-storage.service.d.ts +54 -54
  116. package/lib/services/user-image-uploader-service/free-users-image-uploader.service.d.ts +12 -12
  117. package/lib/services/user-image-uploader-service/index.d.ts +3 -3
  118. package/lib/services/user-image-uploader-service/paid-users-image-uploader.service.d.ts +14 -14
  119. package/lib/services/user-image-uploader-service/upload-bottom-sheet-dialog/upload-bottom-sheet-dialog.component.d.ts +28 -28
  120. package/lib/services/user-image-uploader-service/upload-image-gallery/upload-image-gallery.component.d.ts +27 -27
  121. package/lib/services/user-image-uploader-service/user-image-uploader.service.d.ts +26 -26
  122. package/lib/services/user-middleware-service/FreeUsersMiddleware.d.ts +15 -15
  123. package/lib/services/user-middleware-service/PaidUsersMiddleware.d.ts +7 -7
  124. package/lib/services/user-middleware-service/index.d.ts +3 -3
  125. package/lib/services/user-middleware-service/pb-middlewares.service.d.ts +190 -190
  126. package/lib/services/user-rest-api-service/free-users-rest-api.service.d.ts +10 -10
  127. package/lib/services/user-rest-api-service/index.d.ts +2 -2
  128. package/lib/services/user-rest-api-service/user-rest-api.service.d.ts +82 -82
  129. package/lib/tokens/private-tokens.d.ts +5 -5
  130. package/lib/tokens/tokens.d.ts +70 -70
  131. package/lib/utils.d.ts +88 -88
  132. package/package.json +8 -3
  133. package/pobuca-email-builder.d.ts +42 -42
  134. package/pobuca-email-builder.metadata.json +1 -1
  135. package/public_api.d.ts +16 -16
@@ -1,9 +1,10 @@
1
- import { IStructure, IPBEmail, IGeneralOptions } from '../interfaces/interfaces';
2
- export declare class Defaults {
3
- structures: IStructure[];
4
- general: IGeneralOptions;
5
- constructor(structures?: IStructure[], general?: IGeneralOptions);
6
- }
7
- export declare class PBEmail extends Defaults {
8
- constructor({ structures, general }?: IPBEmail);
9
- }
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,62 @@
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, 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,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
+ }
@@ -1,8 +1,8 @@
1
- import { OnInit } from '@angular/core';
2
- export declare abstract class AbstractBlock<AbstractEntityBlock> implements OnInit {
3
- block: AbstractEntityBlock;
4
- private portal;
5
- ngOnInit(): void;
6
- }
7
- export declare abstract class AbstractEntityBlock {
8
- }
1
+ import { OnInit } from '@angular/core';
2
+ export declare abstract class AbstractBlock<AbstractEntityBlock> implements OnInit {
3
+ block: AbstractEntityBlock;
4
+ private portal;
5
+ ngOnInit(): void;
6
+ }
7
+ export declare abstract class AbstractEntityBlock {
8
+ }