@pobuca/email-builder 1.0.0 → 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.
- package/README.md +1 -1
- package/bundles/pobuca-email-builder.umd.js +4464 -4414
- package/bundles/pobuca-email-builder.umd.js.map +1 -1
- package/bundles/pobuca-email-builder.umd.min.js +1 -1
- package/bundles/pobuca-email-builder.umd.min.js.map +1 -1
- package/esm2015/lib/classes/DefaultEmail.js +54 -53
- package/esm2015/lib/classes/Elements.js +229 -229
- package/esm2015/lib/classes/Structure.js +89 -89
- package/esm2015/lib/components/block/block.component.js +89 -89
- package/esm2015/lib/components/block-settings/block-settings.component.js +53 -53
- package/esm2015/lib/components/builder-container/builder-container.component.js +114 -114
- package/esm2015/lib/components/dialog.component.js +30 -30
- package/esm2015/lib/components/general-settings/general-settings.component.js +25 -25
- package/esm2015/lib/components/import-dialog/import-dialog.component.js +62 -62
- package/esm2015/lib/components/preview.component.js +89 -89
- package/esm2015/lib/components/structure/structure.component.js +163 -163
- package/esm2015/lib/components/structure-settings/structure-settings.component.js +31 -31
- package/esm2015/lib/components/template-list-dialog/template-list-dialog.component.js +45 -45
- package/esm2015/lib/directives/dynamic-component.directive.js +46 -46
- package/esm2015/lib/elements/abstract-block.js +23 -23
- package/esm2015/lib/elements/button/button.component.js +29 -29
- package/esm2015/lib/elements/divider/divider.component.js +30 -30
- package/esm2015/lib/elements/image/image.component.js +54 -54
- package/esm2015/lib/elements/social/social.component.js +42 -42
- package/esm2015/lib/elements/spacer/spacer.component.js +30 -30
- package/esm2015/lib/elements/text-element/text-element.component.js +80 -80
- package/esm2015/lib/groups/align.js +79 -79
- package/esm2015/lib/groups/back-repeat.js +55 -55
- package/esm2015/lib/groups/border.js +102 -102
- package/esm2015/lib/groups/color.js +139 -139
- package/esm2015/lib/groups/direction.js +63 -63
- package/esm2015/lib/groups/font-styles.js +127 -112
- package/esm2015/lib/groups/gaps.js +45 -45
- package/esm2015/lib/groups/line-height.js +68 -68
- package/esm2015/lib/groups/link.js +67 -67
- package/esm2015/lib/groups/margin.js +45 -45
- package/esm2015/lib/groups/padding.js +53 -53
- package/esm2015/lib/groups/upload-image.js +112 -112
- package/esm2015/lib/groups/width-height.js +94 -94
- package/esm2015/lib/interceptors/pb-interceptor.interceptor.js +51 -51
- package/esm2015/lib/interfaces/interfaces.js +13 -13
- package/esm2015/lib/pb-email-builder.component.js +258 -246
- package/esm2015/lib/pb-email-builder.module.js +291 -291
- package/esm2015/lib/pb-email-builder.service.js +134 -134
- package/esm2015/lib/pipes/slugify.pipe.js +39 -39
- package/esm2015/lib/services/internals/pb-email-object-store/pb-email-object-store.service.js +175 -165
- package/esm2015/lib/services/internals/user-interfaces/user-interface.service.js +122 -122
- package/esm2015/lib/services/pb-storage/FreeUsersStorage.class.js +11 -11
- package/esm2015/lib/services/pb-storage/index.js +7 -7
- package/esm2015/lib/services/pb-storage/pb-storage.service.js +79 -79
- package/esm2015/lib/services/user-image-uploader-service/free-users-image-uploader.service.js +26 -26
- package/esm2015/lib/services/user-image-uploader-service/index.js +8 -8
- package/esm2015/lib/services/user-image-uploader-service/paid-users-image-uploader.service.js +30 -30
- package/esm2015/lib/services/user-image-uploader-service/upload-bottom-sheet-dialog/upload-bottom-sheet-dialog.component.js +112 -112
- package/esm2015/lib/services/user-image-uploader-service/upload-image-gallery/upload-image-gallery.component.js +91 -91
- package/esm2015/lib/services/user-image-uploader-service/user-image-uploader.service.js +26 -26
- package/esm2015/lib/services/user-middleware-service/FreeUsersMiddleware.js +31 -31
- package/esm2015/lib/services/user-middleware-service/PaidUsersMiddleware.js +12 -12
- package/esm2015/lib/services/user-middleware-service/index.js +8 -8
- package/esm2015/lib/services/user-middleware-service/pb-middlewares.service.js +195 -195
- package/esm2015/lib/services/user-rest-api-service/free-users-rest-api.service.js +16 -16
- package/esm2015/lib/services/user-rest-api-service/index.js +7 -7
- package/esm2015/lib/services/user-rest-api-service/user-rest-api.service.js +116 -116
- package/esm2015/lib/tokens/private-tokens.js +17 -17
- package/esm2015/lib/tokens/tokens.js +159 -159
- package/esm2015/lib/utils.js +147 -147
- package/esm2015/pobuca-email-builder.js +42 -42
- package/esm2015/public_api.js +26 -26
- package/fesm2015/pobuca-email-builder.js +4206 -4168
- package/fesm2015/pobuca-email-builder.js.map +1 -1
- package/lib/classes/DefaultEmail.d.ts +10 -9
- package/lib/classes/Elements.d.ts +62 -62
- package/lib/classes/Structure.d.ts +11 -11
- package/lib/components/block/block.component.d.ts +25 -25
- package/lib/components/block-settings/block-settings.component.d.ts +18 -18
- package/lib/components/builder-container/builder-container.component.d.ts +36 -36
- package/lib/components/dialog.component.d.ts +10 -10
- package/lib/components/general-settings/general-settings.component.d.ts +6 -6
- package/lib/components/import-dialog/import-dialog.component.d.ts +16 -16
- package/lib/components/preview.component.d.ts +18 -18
- package/lib/components/structure/structure.component.d.ts +43 -43
- package/lib/components/structure-settings/structure-settings.component.d.ts +9 -9
- package/lib/components/template-list-dialog/template-list-dialog.component.d.ts +15 -15
- package/lib/directives/dynamic-component.directive.d.ts +13 -13
- package/lib/elements/abstract-block.d.ts +8 -8
- package/lib/elements/button/button.component.d.ts +18 -18
- package/lib/elements/divider/divider.component.d.ts +10 -10
- package/lib/elements/image/image.component.d.ts +19 -19
- package/lib/elements/social/social.component.d.ts +21 -21
- package/lib/elements/spacer/spacer.component.d.ts +5 -5
- package/lib/elements/text-element/text-element.component.d.ts +52 -52
- package/lib/groups/align.d.ts +17 -17
- package/lib/groups/back-repeat.d.ts +8 -8
- package/lib/groups/border.d.ts +13 -13
- package/lib/groups/color.d.ts +26 -26
- package/lib/groups/direction.d.ts +13 -13
- package/lib/groups/font-styles.d.ts +21 -17
- package/lib/groups/gaps.d.ts +7 -7
- package/lib/groups/line-height.d.ts +12 -12
- package/lib/groups/link.d.ts +11 -11
- package/lib/groups/margin.d.ts +8 -8
- package/lib/groups/padding.d.ts +8 -8
- package/lib/groups/upload-image.d.ts +19 -19
- package/lib/groups/width-height.d.ts +19 -19
- package/lib/interceptors/pb-interceptor.interceptor.d.ts +10 -10
- package/lib/interfaces/interfaces.d.ts +430 -422
- package/lib/pb-email-builder.component.d.ts +67 -67
- package/lib/pb-email-builder.module.d.ts +51 -51
- package/lib/pb-email-builder.service.d.ts +83 -83
- package/lib/pipes/slugify.pipe.d.ts +9 -9
- package/lib/services/internals/pb-email-object-store/pb-email-object-store.service.d.ts +50 -50
- package/lib/services/internals/user-interfaces/user-interface.service.d.ts +46 -46
- package/lib/services/pb-storage/FreeUsersStorage.class.d.ts +6 -6
- package/lib/services/pb-storage/index.d.ts +2 -2
- package/lib/services/pb-storage/pb-storage.service.d.ts +54 -54
- package/lib/services/user-image-uploader-service/free-users-image-uploader.service.d.ts +12 -12
- package/lib/services/user-image-uploader-service/index.d.ts +3 -3
- package/lib/services/user-image-uploader-service/paid-users-image-uploader.service.d.ts +14 -14
- package/lib/services/user-image-uploader-service/upload-bottom-sheet-dialog/upload-bottom-sheet-dialog.component.d.ts +28 -28
- package/lib/services/user-image-uploader-service/upload-image-gallery/upload-image-gallery.component.d.ts +27 -27
- package/lib/services/user-image-uploader-service/user-image-uploader.service.d.ts +26 -26
- package/lib/services/user-middleware-service/FreeUsersMiddleware.d.ts +15 -15
- package/lib/services/user-middleware-service/PaidUsersMiddleware.d.ts +7 -7
- package/lib/services/user-middleware-service/index.d.ts +3 -3
- package/lib/services/user-middleware-service/pb-middlewares.service.d.ts +190 -190
- package/lib/services/user-rest-api-service/free-users-rest-api.service.d.ts +10 -10
- package/lib/services/user-rest-api-service/index.d.ts +2 -2
- package/lib/services/user-rest-api-service/user-rest-api.service.d.ts +82 -82
- package/lib/tokens/private-tokens.d.ts +5 -5
- package/lib/tokens/tokens.d.ts +70 -70
- package/lib/utils.d.ts +88 -88
- package/package.json +8 -3
- package/pobuca-email-builder.d.ts +42 -42
- package/pobuca-email-builder.metadata.json +1 -1
- package/public_api.d.ts +16 -16
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { Renderer2, OnChanges, SimpleChanges, OnDestroy, OnInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { PbEmailBuilderService } from './pb-email-builder.service';
|
|
4
|
-
import { IStructure } from './interfaces/interfaces';
|
|
5
|
-
import { PBEmail } from './classes/DefaultEmail';
|
|
6
|
-
import { SlugifyPipe } from './pipes/slugify.pipe';
|
|
7
|
-
import { PbUserMiddlewaresService, TExportType } from './services/user-middleware-service/pb-middlewares.service';
|
|
8
|
-
import { TBlocks } from './classes/Elements';
|
|
9
|
-
import { PbUserInterfaceService } from './services/internals/user-interfaces/user-interface.service';
|
|
10
|
-
import { PbEmailObjectStoreService } from './services/internals/pb-email-object-store/pb-email-object-store.service';
|
|
11
|
-
import { PbUserRestApiService } from './services/user-rest-api-service/user-rest-api.service';
|
|
12
|
-
export declare class PbEmailBuilderComponent implements OnChanges, OnDestroy, OnInit, ControlValueAccessor {
|
|
13
|
-
ngb: PbEmailBuilderService;
|
|
14
|
-
private userRestApiService;
|
|
15
|
-
private userInterfaceService;
|
|
16
|
-
private emailObjectStore;
|
|
17
|
-
private renderer2;
|
|
18
|
-
private slugifyPipe;
|
|
19
|
-
private middlewares;
|
|
20
|
-
private changeDetectorRef;
|
|
21
|
-
structures: IStructure[];
|
|
22
|
-
blocks: TBlocks[];
|
|
23
|
-
private doc;
|
|
24
|
-
email?: PBEmail;
|
|
25
|
-
emailChange: EventEmitter<PBEmail>;
|
|
26
|
-
previewTemplate: boolean;
|
|
27
|
-
showGeneralSettings$: import("rxjs").Observable<"general" | "structure" | "block">;
|
|
28
|
-
currentTabIndex$: import("rxjs").Observable<number>;
|
|
29
|
-
cdkDropListConnectedTo$: import("rxjs").Observable<any[]>;
|
|
30
|
-
getBuilderContainerStyles$: import("rxjs").Observable<{
|
|
31
|
-
direction: import("./interfaces/interfaces").TDirection;
|
|
32
|
-
backgroundRepeat: import("./interfaces/interfaces").TBackgroundRepeat;
|
|
33
|
-
backgroundColor: string;
|
|
34
|
-
backgroundSize: string;
|
|
35
|
-
backgroundPosition: string;
|
|
36
|
-
}>;
|
|
37
|
-
currentHTMLTemplate$: import("rxjs").Observable<string>;
|
|
38
|
-
activeMatProgress$: import("rxjs").Observable<boolean>;
|
|
39
|
-
customModuleList$: import("rxjs").Observable<import("./interfaces/interfaces").IUserModule[]>;
|
|
40
|
-
private readonly _onDestroy$;
|
|
41
|
-
private includedFonts;
|
|
42
|
-
constructor(ngb: PbEmailBuilderService, userRestApiService: PbUserRestApiService, userInterfaceService: PbUserInterfaceService, emailObjectStore: PbEmailObjectStoreService, renderer2: Renderer2, slugifyPipe: SlugifyPipe, middlewares: PbUserMiddlewaresService, changeDetectorRef: ChangeDetectorRef, structures: IStructure[], blocks: TBlocks[], googleFonts: TBlocks[], doc: Document);
|
|
43
|
-
private onChange;
|
|
44
|
-
private onTouched;
|
|
45
|
-
writeValue(email: PBEmail): void;
|
|
46
|
-
registerOnChange(fn: any): void;
|
|
47
|
-
registerOnTouched(fn: any): void;
|
|
48
|
-
/**
|
|
49
|
-
* Not implemented yet
|
|
50
|
-
* @param isDisabled The state of builder
|
|
51
|
-
*/
|
|
52
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
53
|
-
saveEmail(): import("rxjs").Subscription;
|
|
54
|
-
disableBlocksList$(block: TBlocks): import("rxjs").Observable<boolean>;
|
|
55
|
-
disableStructureList$(structure: IStructure): import("rxjs").Observable<boolean>;
|
|
56
|
-
trackByFn(block: TBlocks | IStructure): "button" | "image" | "text" | "divider" | "spacer" | "social" | "cols_1" | "cols_2" | "cols_3" | "cols_4" | "cols_12" | "cols_21";
|
|
57
|
-
changeTabIndex(index: number): void;
|
|
58
|
-
download(source: TExportType): import("rxjs").Subscription;
|
|
59
|
-
importFile(): void;
|
|
60
|
-
createArrayFromStructureColumns({ columns }: {
|
|
61
|
-
columns: any;
|
|
62
|
-
}): string[];
|
|
63
|
-
togglePreview(): import("rxjs").Subscription;
|
|
64
|
-
ngOnInit(): void;
|
|
65
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
66
|
-
ngOnDestroy(): void;
|
|
67
|
-
}
|
|
1
|
+
import { Renderer2, OnChanges, SimpleChanges, OnDestroy, OnInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { PbEmailBuilderService } from './pb-email-builder.service';
|
|
4
|
+
import { IStructure } from './interfaces/interfaces';
|
|
5
|
+
import { PBEmail } from './classes/DefaultEmail';
|
|
6
|
+
import { SlugifyPipe } from './pipes/slugify.pipe';
|
|
7
|
+
import { PbUserMiddlewaresService, TExportType } from './services/user-middleware-service/pb-middlewares.service';
|
|
8
|
+
import { TBlocks } from './classes/Elements';
|
|
9
|
+
import { PbUserInterfaceService } from './services/internals/user-interfaces/user-interface.service';
|
|
10
|
+
import { PbEmailObjectStoreService } from './services/internals/pb-email-object-store/pb-email-object-store.service';
|
|
11
|
+
import { PbUserRestApiService } from './services/user-rest-api-service/user-rest-api.service';
|
|
12
|
+
export declare class PbEmailBuilderComponent implements OnChanges, OnDestroy, OnInit, ControlValueAccessor {
|
|
13
|
+
ngb: PbEmailBuilderService;
|
|
14
|
+
private userRestApiService;
|
|
15
|
+
private userInterfaceService;
|
|
16
|
+
private emailObjectStore;
|
|
17
|
+
private renderer2;
|
|
18
|
+
private slugifyPipe;
|
|
19
|
+
private middlewares;
|
|
20
|
+
private changeDetectorRef;
|
|
21
|
+
structures: IStructure[];
|
|
22
|
+
blocks: TBlocks[];
|
|
23
|
+
private doc;
|
|
24
|
+
email?: PBEmail;
|
|
25
|
+
emailChange: EventEmitter<PBEmail>;
|
|
26
|
+
previewTemplate: boolean;
|
|
27
|
+
showGeneralSettings$: import("rxjs").Observable<"general" | "structure" | "block">;
|
|
28
|
+
currentTabIndex$: import("rxjs").Observable<number>;
|
|
29
|
+
cdkDropListConnectedTo$: import("rxjs").Observable<any[]>;
|
|
30
|
+
getBuilderContainerStyles$: import("rxjs").Observable<{
|
|
31
|
+
direction: import("./interfaces/interfaces").TDirection;
|
|
32
|
+
backgroundRepeat: import("./interfaces/interfaces").TBackgroundRepeat;
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
backgroundSize: string;
|
|
35
|
+
backgroundPosition: string;
|
|
36
|
+
}>;
|
|
37
|
+
currentHTMLTemplate$: import("rxjs").Observable<string>;
|
|
38
|
+
activeMatProgress$: import("rxjs").Observable<boolean>;
|
|
39
|
+
customModuleList$: import("rxjs").Observable<import("./interfaces/interfaces").IUserModule[]>;
|
|
40
|
+
private readonly _onDestroy$;
|
|
41
|
+
private includedFonts;
|
|
42
|
+
constructor(ngb: PbEmailBuilderService, userRestApiService: PbUserRestApiService, userInterfaceService: PbUserInterfaceService, emailObjectStore: PbEmailObjectStoreService, renderer2: Renderer2, slugifyPipe: SlugifyPipe, middlewares: PbUserMiddlewaresService, changeDetectorRef: ChangeDetectorRef, structures: IStructure[], blocks: TBlocks[], googleFonts: TBlocks[], doc: Document);
|
|
43
|
+
private onChange;
|
|
44
|
+
private onTouched;
|
|
45
|
+
writeValue(email: PBEmail): void;
|
|
46
|
+
registerOnChange(fn: any): void;
|
|
47
|
+
registerOnTouched(fn: any): void;
|
|
48
|
+
/**
|
|
49
|
+
* Not implemented yet
|
|
50
|
+
* @param isDisabled The state of builder
|
|
51
|
+
*/
|
|
52
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
53
|
+
saveEmail(): import("rxjs").Subscription;
|
|
54
|
+
disableBlocksList$(block: TBlocks): import("rxjs").Observable<boolean>;
|
|
55
|
+
disableStructureList$(structure: IStructure): import("rxjs").Observable<boolean>;
|
|
56
|
+
trackByFn(block: TBlocks | IStructure): "button" | "image" | "text" | "divider" | "spacer" | "social" | "cols_1" | "cols_2" | "cols_3" | "cols_4" | "cols_12" | "cols_21";
|
|
57
|
+
changeTabIndex(index: number): void;
|
|
58
|
+
download(source: TExportType): import("rxjs").Subscription;
|
|
59
|
+
importFile(): void;
|
|
60
|
+
createArrayFromStructureColumns({ columns }: {
|
|
61
|
+
columns: any;
|
|
62
|
+
}): string[];
|
|
63
|
+
togglePreview(): import("rxjs").Subscription;
|
|
64
|
+
ngOnInit(): void;
|
|
65
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
66
|
+
ngOnDestroy(): void;
|
|
67
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
|
3
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
-
import { HttpClient } from '@angular/common/http';
|
|
5
|
-
import 'quill';
|
|
6
|
-
import { IForRootConf } from './interfaces/interfaces';
|
|
7
|
-
import { FreeUsersMiddleware, PaidUsersMiddleware } from './services/user-middleware-service';
|
|
8
|
-
import { FreeUsersImageUploader, PaidUsersImageUploader } from './services/user-image-uploader-service';
|
|
9
|
-
import { PbUserMiddlewaresService } from './services/user-middleware-service/pb-middlewares.service';
|
|
10
|
-
import { PbUserImageUploaderService } from './services/user-image-uploader-service/user-image-uploader.service';
|
|
11
|
-
import { FreeUsersRestApi } from './services/user-rest-api-service';
|
|
12
|
-
import { FreeUsersPbStorage } from './services/pb-storage';
|
|
13
|
-
import { PbUserRestApiService } from './services/user-rest-api-service/user-rest-api.service';
|
|
14
|
-
import '@angular/localize/init';
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
* @param http
|
|
18
|
-
*/
|
|
19
|
-
export declare function createCustomRestApiService(http: HttpClient): FreeUsersRestApi;
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
* @param libraryIsProEnv
|
|
23
|
-
*/
|
|
24
|
-
export declare function createUserMiddlewareService(libraryIsProEnv: boolean): FreeUsersMiddleware | PaidUsersMiddleware;
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
* @param templateStorage
|
|
28
|
-
*/
|
|
29
|
-
export declare function createUsersIpStorage(templateStorage: Storage): FreeUsersPbStorage;
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
* @param libraryIsProEnv
|
|
33
|
-
* @param matBottomSheet
|
|
34
|
-
* @param matDialog
|
|
35
|
-
* @param userMiddleware
|
|
36
|
-
* @param userRestApi
|
|
37
|
-
*/
|
|
38
|
-
export declare function createUserUploaderService(libraryIsProEnv: boolean, matBottomSheet: MatBottomSheet, matDialog: MatDialog, userMiddleware: PbUserMiddlewaresService, userRestApi: PbUserRestApiService): FreeUsersImageUploader | PaidUsersImageUploader;
|
|
39
|
-
export declare class PbEmailBuilderModule {
|
|
40
|
-
constructor(pbMiddlewaresService: PbUserMiddlewaresService, userImageUploader: PbUserImageUploaderService, libraryIsPro: boolean);
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated use PbEmailBuilderModule.withConfig(userConfig) instead
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
static forRoot(userConfig?: IForRootConf): ModuleWithProviders<PbEmailBuilderModule>;
|
|
46
|
-
/**
|
|
47
|
-
* Import module with configurations
|
|
48
|
-
* @param userConfig Configurations
|
|
49
|
-
*/
|
|
50
|
-
static withConfig(userConfig?: IForRootConf): ModuleWithProviders<PbEmailBuilderModule>;
|
|
51
|
-
}
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { HttpClient } from '@angular/common/http';
|
|
5
|
+
import 'quill';
|
|
6
|
+
import { IForRootConf } from './interfaces/interfaces';
|
|
7
|
+
import { FreeUsersMiddleware, PaidUsersMiddleware } from './services/user-middleware-service';
|
|
8
|
+
import { FreeUsersImageUploader, PaidUsersImageUploader } from './services/user-image-uploader-service';
|
|
9
|
+
import { PbUserMiddlewaresService } from './services/user-middleware-service/pb-middlewares.service';
|
|
10
|
+
import { PbUserImageUploaderService } from './services/user-image-uploader-service/user-image-uploader.service';
|
|
11
|
+
import { FreeUsersRestApi } from './services/user-rest-api-service';
|
|
12
|
+
import { FreeUsersPbStorage } from './services/pb-storage';
|
|
13
|
+
import { PbUserRestApiService } from './services/user-rest-api-service/user-rest-api.service';
|
|
14
|
+
import '@angular/localize/init';
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
* @param http
|
|
18
|
+
*/
|
|
19
|
+
export declare function createCustomRestApiService(http: HttpClient): FreeUsersRestApi;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* @param libraryIsProEnv
|
|
23
|
+
*/
|
|
24
|
+
export declare function createUserMiddlewareService(libraryIsProEnv: boolean): FreeUsersMiddleware | PaidUsersMiddleware;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* @param templateStorage
|
|
28
|
+
*/
|
|
29
|
+
export declare function createUsersIpStorage(templateStorage: Storage): FreeUsersPbStorage;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @param libraryIsProEnv
|
|
33
|
+
* @param matBottomSheet
|
|
34
|
+
* @param matDialog
|
|
35
|
+
* @param userMiddleware
|
|
36
|
+
* @param userRestApi
|
|
37
|
+
*/
|
|
38
|
+
export declare function createUserUploaderService(libraryIsProEnv: boolean, matBottomSheet: MatBottomSheet, matDialog: MatDialog, userMiddleware: PbUserMiddlewaresService, userRestApi: PbUserRestApiService): FreeUsersImageUploader | PaidUsersImageUploader;
|
|
39
|
+
export declare class PbEmailBuilderModule {
|
|
40
|
+
constructor(pbMiddlewaresService: PbUserMiddlewaresService, userImageUploader: PbUserImageUploaderService, libraryIsPro: boolean);
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated use PbEmailBuilderModule.withConfig(userConfig) instead
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
static forRoot(userConfig?: IForRootConf): ModuleWithProviders<PbEmailBuilderModule>;
|
|
46
|
+
/**
|
|
47
|
+
* Import module with configurations
|
|
48
|
+
* @param userConfig Configurations
|
|
49
|
+
*/
|
|
50
|
+
static withConfig(userConfig?: IForRootConf): ModuleWithProviders<PbEmailBuilderModule>;
|
|
51
|
+
}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { IForRootConf, IUserModule, IUserTemplate } from './interfaces/interfaces';
|
|
3
|
-
import { PBEmail } from './classes/DefaultEmail';
|
|
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
|
-
import { PbUserInterfaceService } from './services/internals/user-interfaces/user-interface.service';
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Soon it will be removed
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export declare class PbEmailBuilderService {
|
|
12
|
-
config: IForRootConf;
|
|
13
|
-
private emailObjectStore;
|
|
14
|
-
private pbMiddleWares;
|
|
15
|
-
private pbUserInterface;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated Please use the new service "UserRestApiService" instead
|
|
18
|
-
*/
|
|
19
|
-
modules: Set<IUserModule>;
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Please use the new service "UserRestApiService" instead
|
|
22
|
-
*/
|
|
23
|
-
readonly customTemplates: Set<IUserTemplate>;
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated Please use the new service "UserRestApiService" instead
|
|
26
|
-
*/
|
|
27
|
-
private _mergeTags;
|
|
28
|
-
readonly onTemplateCreated$: Observable<[PBEmail, string, string]>;
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Use onTemplateCreated$ instead
|
|
31
|
-
*/
|
|
32
|
-
readonly onSave$: Observable<[PBEmail, string, string]>;
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use isLoading$ instead
|
|
35
|
-
*/
|
|
36
|
-
readonly isLoading: Observable<boolean>;
|
|
37
|
-
readonly isLoading$: Observable<boolean>;
|
|
38
|
-
constructor(config: IForRootConf, emailObjectStore: PbEmailObjectStoreService, pbMiddleWares: PbUserMiddlewaresService, pbUserInterface: PbUserInterfaceService);
|
|
39
|
-
/**
|
|
40
|
-
* Save current Email Template
|
|
41
|
-
*/
|
|
42
|
-
createHTMLTemplate$(): Observable<import("./interfaces/interfaces").IMjmlServerResponse>;
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Please use ngb.createHTMLTemplate$() instead
|
|
45
|
-
*/
|
|
46
|
-
saveEmail(): Observable<import("./interfaces/interfaces").IMjmlServerResponse>;
|
|
47
|
-
/**
|
|
48
|
-
* Get Email as object
|
|
49
|
-
*/
|
|
50
|
-
get Email(): PBEmail;
|
|
51
|
-
/**
|
|
52
|
-
* Set Email saved from database or created with new PBEmail()
|
|
53
|
-
*/
|
|
54
|
-
set Email(newEmail: PBEmail);
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated Use getTemplateAsObservable$() instead
|
|
57
|
-
*/
|
|
58
|
-
get Template(): any;
|
|
59
|
-
/**
|
|
60
|
-
* Set HTML output
|
|
61
|
-
*/
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Use getMjmlAsObservable$() instead
|
|
64
|
-
*/
|
|
65
|
-
get Mjml(): any;
|
|
66
|
-
/**
|
|
67
|
-
* Listen Email changes
|
|
68
|
-
*/
|
|
69
|
-
getEmailAsObservable$(): Observable<PBEmail>;
|
|
70
|
-
/**
|
|
71
|
-
* Listen Template changes
|
|
72
|
-
*/
|
|
73
|
-
getTemplateAsObservable$(): Observable<string>;
|
|
74
|
-
/**
|
|
75
|
-
* Listen MJML changes
|
|
76
|
-
*/
|
|
77
|
-
getMjmlAsObservable$(): Observable<string>;
|
|
78
|
-
/**
|
|
79
|
-
* Listen Email and Template changes
|
|
80
|
-
* @deprecated Use onTemplateCreated$ instead
|
|
81
|
-
*/
|
|
82
|
-
onChanges$(): Observable<[PBEmail, string, string]>;
|
|
83
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { IForRootConf, IUserModule, IUserTemplate } from './interfaces/interfaces';
|
|
3
|
+
import { PBEmail } from './classes/DefaultEmail';
|
|
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
|
+
import { PbUserInterfaceService } from './services/internals/user-interfaces/user-interface.service';
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Soon it will be removed
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class PbEmailBuilderService {
|
|
12
|
+
config: IForRootConf;
|
|
13
|
+
private emailObjectStore;
|
|
14
|
+
private pbMiddleWares;
|
|
15
|
+
private pbUserInterface;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Please use the new service "UserRestApiService" instead
|
|
18
|
+
*/
|
|
19
|
+
modules: Set<IUserModule>;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Please use the new service "UserRestApiService" instead
|
|
22
|
+
*/
|
|
23
|
+
readonly customTemplates: Set<IUserTemplate>;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Please use the new service "UserRestApiService" instead
|
|
26
|
+
*/
|
|
27
|
+
private _mergeTags;
|
|
28
|
+
readonly onTemplateCreated$: Observable<[PBEmail, string, string]>;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use onTemplateCreated$ instead
|
|
31
|
+
*/
|
|
32
|
+
readonly onSave$: Observable<[PBEmail, string, string]>;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use isLoading$ instead
|
|
35
|
+
*/
|
|
36
|
+
readonly isLoading: Observable<boolean>;
|
|
37
|
+
readonly isLoading$: Observable<boolean>;
|
|
38
|
+
constructor(config: IForRootConf, emailObjectStore: PbEmailObjectStoreService, pbMiddleWares: PbUserMiddlewaresService, pbUserInterface: PbUserInterfaceService);
|
|
39
|
+
/**
|
|
40
|
+
* Save current Email Template
|
|
41
|
+
*/
|
|
42
|
+
createHTMLTemplate$(): Observable<import("./interfaces/interfaces").IMjmlServerResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Please use ngb.createHTMLTemplate$() instead
|
|
45
|
+
*/
|
|
46
|
+
saveEmail(): Observable<import("./interfaces/interfaces").IMjmlServerResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Get Email as object
|
|
49
|
+
*/
|
|
50
|
+
get Email(): PBEmail;
|
|
51
|
+
/**
|
|
52
|
+
* Set Email saved from database or created with new PBEmail()
|
|
53
|
+
*/
|
|
54
|
+
set Email(newEmail: PBEmail);
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Use getTemplateAsObservable$() instead
|
|
57
|
+
*/
|
|
58
|
+
get Template(): any;
|
|
59
|
+
/**
|
|
60
|
+
* Set HTML output
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Use getMjmlAsObservable$() instead
|
|
64
|
+
*/
|
|
65
|
+
get Mjml(): any;
|
|
66
|
+
/**
|
|
67
|
+
* Listen Email changes
|
|
68
|
+
*/
|
|
69
|
+
getEmailAsObservable$(): Observable<PBEmail>;
|
|
70
|
+
/**
|
|
71
|
+
* Listen Template changes
|
|
72
|
+
*/
|
|
73
|
+
getTemplateAsObservable$(): Observable<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Listen MJML changes
|
|
76
|
+
*/
|
|
77
|
+
getMjmlAsObservable$(): Observable<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Listen Email and Template changes
|
|
80
|
+
* @deprecated Use onTemplateCreated$ instead
|
|
81
|
+
*/
|
|
82
|
+
onChanges$(): Observable<[PBEmail, string, string]>;
|
|
83
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* @ignore
|
|
4
|
-
*
|
|
5
|
-
* Soon will be removed.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SlugifyPipe implements PipeTransform {
|
|
8
|
-
transform(input: string): string;
|
|
9
|
-
}
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* @ignore
|
|
4
|
+
*
|
|
5
|
+
* Soon will be removed.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SlugifyPipe implements PipeTransform {
|
|
8
|
+
transform(input: string): string;
|
|
9
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { IAddBlockEvent, IAddStructureEvent, PbUserMiddlewaresService } from '../../user-middleware-service/pb-middlewares.service';
|
|
3
|
-
import { IForRootConf, IMjmlServerResponse, IStructure } from '../../../interfaces/interfaces';
|
|
4
|
-
import { TBlocks } from '../../../classes/Elements';
|
|
5
|
-
import { PBEmail } from '../../../classes/DefaultEmail';
|
|
6
|
-
import { PbUserRestApiService } from '../../user-rest-api-service/user-rest-api.service';
|
|
7
|
-
import { PbStorageService } from '../../pb-storage/pb-storage.service';
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export declare class PbEmailObjectStoreService {
|
|
12
|
-
private userRestApi;
|
|
13
|
-
private pbStorage;
|
|
14
|
-
private userMiddleware;
|
|
15
|
-
private googleFonts;
|
|
16
|
-
readonly config: IForRootConf;
|
|
17
|
-
Email: PBEmail;
|
|
18
|
-
private clonedEmail;
|
|
19
|
-
private _Email$;
|
|
20
|
-
readonly emailAsObservable$: import("rxjs").Observable<PBEmail>;
|
|
21
|
-
readonly emailStructuresAsObservable$: import("rxjs").Observable<IStructure[]>;
|
|
22
|
-
readonly generalEmailOptionsAsObservable$: import("rxjs").Observable<import("../../../interfaces/interfaces").IGeneralOptions>;
|
|
23
|
-
readonly currentEmailHasChanges$: import("rxjs").Observable<boolean>;
|
|
24
|
-
readonly builderContainerStyles$: import("rxjs").Observable<{
|
|
25
|
-
direction: import("../../../interfaces/interfaces").TDirection;
|
|
26
|
-
backgroundRepeat: import("../../../interfaces/interfaces").TBackgroundRepeat;
|
|
27
|
-
backgroundColor: string;
|
|
28
|
-
backgroundSize: string;
|
|
29
|
-
backgroundPosition: string;
|
|
30
|
-
}>;
|
|
31
|
-
private _Mjml$;
|
|
32
|
-
readonly mjmlAsObservable$: import("rxjs").Observable<string>;
|
|
33
|
-
private _Template$;
|
|
34
|
-
readonly templateAsObservable$: import("rxjs").Observable<string>;
|
|
35
|
-
private _onTemplateCreated$;
|
|
36
|
-
readonly onTemplateCreated$: import("rxjs").Observable<[PBEmail, string, string]>;
|
|
37
|
-
constructor(userRestApi: PbUserRestApiService, pbStorage: PbStorageService, userMiddleware: PbUserMiddlewaresService, googleFonts: string[], config: IForRootConf);
|
|
38
|
-
createHTMLTemplate$(): import("rxjs").Observable<IMjmlServerResponse>;
|
|
39
|
-
markForCheck(): void;
|
|
40
|
-
setEmail(newEmail: PBEmail): void;
|
|
41
|
-
addStructure({ currentIndex, item }: IAddStructureEvent): IStructure;
|
|
42
|
-
changeStructureOrder({ previousIndex, currentIndex }: CdkDragDrop<Set<IStructure>>): void;
|
|
43
|
-
duplicateStructure(index: number): IStructure;
|
|
44
|
-
removeStructure(index: number): void;
|
|
45
|
-
addBlock({ previousIndex, currentIndex, item, previousContainer: { id, data } }: IAddBlockEvent, column: TBlocks[]): void;
|
|
46
|
-
changeBlockOrder({ previousIndex, currentIndex }: CdkDragDrop<TBlocks[]>, column: TBlocks[]): void;
|
|
47
|
-
duplicateBlock(key: number, column: TBlocks[], block: TBlocks): TBlocks;
|
|
48
|
-
removeBlock(key: number, column: TBlocks[]): void;
|
|
49
|
-
reset(): void;
|
|
50
|
-
}
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { IAddBlockEvent, IAddStructureEvent, PbUserMiddlewaresService } from '../../user-middleware-service/pb-middlewares.service';
|
|
3
|
+
import { IForRootConf, IMjmlServerResponse, IStructure } from '../../../interfaces/interfaces';
|
|
4
|
+
import { TBlocks } from '../../../classes/Elements';
|
|
5
|
+
import { PBEmail } from '../../../classes/DefaultEmail';
|
|
6
|
+
import { PbUserRestApiService } from '../../user-rest-api-service/user-rest-api.service';
|
|
7
|
+
import { PbStorageService } from '../../pb-storage/pb-storage.service';
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class PbEmailObjectStoreService {
|
|
12
|
+
private userRestApi;
|
|
13
|
+
private pbStorage;
|
|
14
|
+
private userMiddleware;
|
|
15
|
+
private googleFonts;
|
|
16
|
+
readonly config: IForRootConf;
|
|
17
|
+
Email: PBEmail;
|
|
18
|
+
private clonedEmail;
|
|
19
|
+
private _Email$;
|
|
20
|
+
readonly emailAsObservable$: import("rxjs").Observable<PBEmail>;
|
|
21
|
+
readonly emailStructuresAsObservable$: import("rxjs").Observable<IStructure[]>;
|
|
22
|
+
readonly generalEmailOptionsAsObservable$: import("rxjs").Observable<import("../../../interfaces/interfaces").IGeneralOptions>;
|
|
23
|
+
readonly currentEmailHasChanges$: import("rxjs").Observable<boolean>;
|
|
24
|
+
readonly builderContainerStyles$: import("rxjs").Observable<{
|
|
25
|
+
direction: import("../../../interfaces/interfaces").TDirection;
|
|
26
|
+
backgroundRepeat: import("../../../interfaces/interfaces").TBackgroundRepeat;
|
|
27
|
+
backgroundColor: string;
|
|
28
|
+
backgroundSize: string;
|
|
29
|
+
backgroundPosition: string;
|
|
30
|
+
}>;
|
|
31
|
+
private _Mjml$;
|
|
32
|
+
readonly mjmlAsObservable$: import("rxjs").Observable<string>;
|
|
33
|
+
private _Template$;
|
|
34
|
+
readonly templateAsObservable$: import("rxjs").Observable<string>;
|
|
35
|
+
private _onTemplateCreated$;
|
|
36
|
+
readonly onTemplateCreated$: import("rxjs").Observable<[PBEmail, string, string]>;
|
|
37
|
+
constructor(userRestApi: PbUserRestApiService, pbStorage: PbStorageService, userMiddleware: PbUserMiddlewaresService, googleFonts: string[], config: IForRootConf);
|
|
38
|
+
createHTMLTemplate$(): import("rxjs").Observable<IMjmlServerResponse>;
|
|
39
|
+
markForCheck(): void;
|
|
40
|
+
setEmail(newEmail: PBEmail): void;
|
|
41
|
+
addStructure({ currentIndex, item }: IAddStructureEvent): IStructure;
|
|
42
|
+
changeStructureOrder({ previousIndex, currentIndex }: CdkDragDrop<Set<IStructure>>): void;
|
|
43
|
+
duplicateStructure(index: number): IStructure;
|
|
44
|
+
removeStructure(index: number): void;
|
|
45
|
+
addBlock({ previousIndex, currentIndex, item, previousContainer: { id, data } }: IAddBlockEvent, column: TBlocks[]): void;
|
|
46
|
+
changeBlockOrder({ previousIndex, currentIndex }: CdkDragDrop<TBlocks[]>, column: TBlocks[]): void;
|
|
47
|
+
duplicateBlock(key: number, column: TBlocks[], block: TBlocks): TBlocks;
|
|
48
|
+
removeBlock(key: number, column: TBlocks[]): void;
|
|
49
|
+
reset(): void;
|
|
50
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
|
4
|
-
import { Observable, ReplaySubject } from 'rxjs';
|
|
5
|
-
import { IStructure, IUserTemplate, IUserTemplateCategory } from '../../../interfaces/interfaces';
|
|
6
|
-
import { TBlocks } from '../../../classes/Elements';
|
|
7
|
-
import { PbEmailObjectStoreService } from '../pb-email-object-store/pb-email-object-store.service';
|
|
8
|
-
import { PBEmail } from '../../../classes/DefaultEmail';
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
export declare class PbUserInterfaceService {
|
|
13
|
-
private emailObjectStore;
|
|
14
|
-
private matDialog;
|
|
15
|
-
private bottomSheet;
|
|
16
|
-
private snackBar;
|
|
17
|
-
readonly activeMatProgress$: ReplaySubject<boolean>;
|
|
18
|
-
readonly cdkDropListConnectedTo$: Observable<any[]>;
|
|
19
|
-
private readonly _currentEditingStructure$;
|
|
20
|
-
readonly currentEditingStructure$: Observable<IStructure>;
|
|
21
|
-
private readonly _currentEditingBlock$;
|
|
22
|
-
readonly currentEditingBlock$: Observable<TBlocks>;
|
|
23
|
-
private readonly _editGeneralSettings$;
|
|
24
|
-
readonly editGeneralSettings$: Observable<"general" | "structure" | "block">;
|
|
25
|
-
private readonly _currentTabIndex$;
|
|
26
|
-
readonly currentTabIndex$: Observable<number>;
|
|
27
|
-
constructor(emailObjectStore: PbEmailObjectStoreService, matDialog: MatDialog, bottomSheet: MatBottomSheet, snackBar: MatSnackBar);
|
|
28
|
-
editBlock(block: TBlocks): void;
|
|
29
|
-
editStructure(structure: IStructure): void;
|
|
30
|
-
editGeneralSettings(): void;
|
|
31
|
-
changeTabIndex(index: number): void;
|
|
32
|
-
confirmDialog$(): Observable<boolean>;
|
|
33
|
-
templatesListDialog$(templateList: IUserTemplateCategory[]): Observable<{
|
|
34
|
-
category: string;
|
|
35
|
-
template: IUserTemplate;
|
|
36
|
-
}>;
|
|
37
|
-
importDialog$(): Observable<PBEmail>;
|
|
38
|
-
notify(msg: string, close?: string, duration?: number): import("@angular/material/snack-bar").MatSnackBarRef<import("@angular/material/snack-bar").TextOnlySnackBar>;
|
|
39
|
-
currentEditingBlock(): TBlocks;
|
|
40
|
-
currentEditingStructure(): IStructure;
|
|
41
|
-
currentStructureEqualWith(structure: IStructure): boolean;
|
|
42
|
-
currentBlockEqualWith(block: TBlocks): boolean;
|
|
43
|
-
currentStructureContainsActiveBlock(structure: IStructure): boolean;
|
|
44
|
-
resetElements(): void;
|
|
45
|
-
reset(): void;
|
|
46
|
-
}
|
|
1
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
|
4
|
+
import { Observable, ReplaySubject } from 'rxjs';
|
|
5
|
+
import { IStructure, IUserTemplate, IUserTemplateCategory } from '../../../interfaces/interfaces';
|
|
6
|
+
import { TBlocks } from '../../../classes/Elements';
|
|
7
|
+
import { PbEmailObjectStoreService } from '../pb-email-object-store/pb-email-object-store.service';
|
|
8
|
+
import { PBEmail } from '../../../classes/DefaultEmail';
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare class PbUserInterfaceService {
|
|
13
|
+
private emailObjectStore;
|
|
14
|
+
private matDialog;
|
|
15
|
+
private bottomSheet;
|
|
16
|
+
private snackBar;
|
|
17
|
+
readonly activeMatProgress$: ReplaySubject<boolean>;
|
|
18
|
+
readonly cdkDropListConnectedTo$: Observable<any[]>;
|
|
19
|
+
private readonly _currentEditingStructure$;
|
|
20
|
+
readonly currentEditingStructure$: Observable<IStructure>;
|
|
21
|
+
private readonly _currentEditingBlock$;
|
|
22
|
+
readonly currentEditingBlock$: Observable<TBlocks>;
|
|
23
|
+
private readonly _editGeneralSettings$;
|
|
24
|
+
readonly editGeneralSettings$: Observable<"general" | "structure" | "block">;
|
|
25
|
+
private readonly _currentTabIndex$;
|
|
26
|
+
readonly currentTabIndex$: Observable<number>;
|
|
27
|
+
constructor(emailObjectStore: PbEmailObjectStoreService, matDialog: MatDialog, bottomSheet: MatBottomSheet, snackBar: MatSnackBar);
|
|
28
|
+
editBlock(block: TBlocks): void;
|
|
29
|
+
editStructure(structure: IStructure): void;
|
|
30
|
+
editGeneralSettings(): void;
|
|
31
|
+
changeTabIndex(index: number): void;
|
|
32
|
+
confirmDialog$(): Observable<boolean>;
|
|
33
|
+
templatesListDialog$(templateList: IUserTemplateCategory[]): Observable<{
|
|
34
|
+
category: string;
|
|
35
|
+
template: IUserTemplate;
|
|
36
|
+
}>;
|
|
37
|
+
importDialog$(): Observable<PBEmail>;
|
|
38
|
+
notify(msg: string, close?: string, duration?: number): import("@angular/material/snack-bar").MatSnackBarRef<import("@angular/material/snack-bar").TextOnlySnackBar>;
|
|
39
|
+
currentEditingBlock(): TBlocks;
|
|
40
|
+
currentEditingStructure(): IStructure;
|
|
41
|
+
currentStructureEqualWith(structure: IStructure): boolean;
|
|
42
|
+
currentBlockEqualWith(block: TBlocks): boolean;
|
|
43
|
+
currentStructureContainsActiveBlock(structure: IStructure): boolean;
|
|
44
|
+
resetElements(): void;
|
|
45
|
+
reset(): void;
|
|
46
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PbStorageService } from './pb-storage.service';
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export default class FreeUsersPbStorage extends PbStorageService {
|
|
6
|
-
}
|
|
1
|
+
import { PbStorageService } from './pb-storage.service';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export default class FreeUsersPbStorage extends PbStorageService {
|
|
6
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import FreeUsersPbStorage from './FreeUsersStorage.class';
|
|
2
|
-
export { FreeUsersPbStorage };
|
|
1
|
+
import FreeUsersPbStorage from './FreeUsersStorage.class';
|
|
2
|
+
export { FreeUsersPbStorage };
|