@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.
- package/README.md +1 -1
- package/bundles/pobuca-email-builder.umd.js +4952 -4494
- 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 -54
- package/esm2015/lib/classes/Elements.js +278 -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 +48 -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 +64 -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/elements/video/video.component.js +147 -0
- 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 -127
- 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 -258
- package/esm2015/lib/pb-email-builder.module.js +296 -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 +180 -175
- 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 +130 -116
- package/esm2015/lib/services/video-thumbnail.service.js +142 -0
- package/esm2015/lib/tokens/private-tokens.js +17 -17
- package/esm2015/lib/tokens/tokens.js +160 -159
- package/esm2015/lib/utils.js +147 -147
- package/esm2015/pobuca-email-builder.js +45 -43
- package/esm2015/public_api.js +26 -26
- package/fesm2015/pobuca-email-builder.js +4560 -4207
- package/fesm2015/pobuca-email-builder.js.map +1 -1
- package/lib/classes/DefaultEmail.d.ts +10 -10
- package/lib/classes/Elements.d.ts +72 -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 +21 -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/elements/video/video.component.d.ts +36 -0
- 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 -21
- 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 +442 -430
- 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 +51 -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 +95 -82
- package/lib/services/video-thumbnail.service.d.ts +23 -0
- 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 +1 -1
- package/pobuca-email-builder.d.ts +44 -42
- package/pobuca-email-builder.metadata.json +1 -1
- package/public_api.d.ts +16 -16
package/lib/tokens/tokens.d.ts
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { IForRootConf, IStructure } from '../interfaces/interfaces';
|
|
3
|
-
import { TBlocks } from '../classes/Elements';
|
|
4
|
-
/**
|
|
5
|
-
* Some top documentation
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* The default social networks list provided by builder. This list is injected by {@link PB_SOCIAL_NETWORKS}.
|
|
9
|
-
*/
|
|
10
|
-
export declare const PB_DEFAULT_SOCIAL_NETWORKS: string[];
|
|
11
|
-
/**
|
|
12
|
-
* The token that injects [default social networks list]{@link PB_DEFAULT_SOCIAL_NETWORKS}.
|
|
13
|
-
* Use it to add or remove social networks within list.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* {provide: PB_SOCIAL_NETWORKS, useValue: PB_DEFAULT_SOCIAL_NETWORKS.filter(network => !['github', 'instagram'].includes(network)}
|
|
17
|
-
*/
|
|
18
|
-
export declare const PB_SOCIAL_NETWORKS: InjectionToken<string[]>;
|
|
19
|
-
/**
|
|
20
|
-
* The default [Google Fonts]{@link https://fonts.google.com} list provided by builder.
|
|
21
|
-
* This list is injected by {@link PB_GOOGLE_FONTS} token.
|
|
22
|
-
*/
|
|
23
|
-
export declare const PB_DEFAULT_GOOGLE_FONTS: string[];
|
|
24
|
-
/**
|
|
25
|
-
* The token that injects [default google fonts]{@link PB_DEFAULT_GOOGLE_FONTS} list.
|
|
26
|
-
*/
|
|
27
|
-
export declare const PB_GOOGLE_FONTS: InjectionToken<string[]>;
|
|
28
|
-
/**
|
|
29
|
-
* The default Fallback Fonts list provided by builder. This list is injected by {@link PB_FALLBACK_FONTS} token.
|
|
30
|
-
*
|
|
31
|
-
* A fallback font is a font that takes effect in case a [Google Font]{@link PB_DEFAULT_GOOGLE_FONTS} can't be loaded by some email
|
|
32
|
-
* providers.
|
|
33
|
-
*/
|
|
34
|
-
export declare const PB_DEFAULT_FALLBACK_FONTS: string[];
|
|
35
|
-
/**
|
|
36
|
-
* The token that injects {@link PB_DEFAULT_FALLBACK_FONTS} list.
|
|
37
|
-
*/
|
|
38
|
-
export declare const PB_FALLBACK_FONTS: InjectionToken<string[]>;
|
|
39
|
-
/**
|
|
40
|
-
* The default [Structures]{@link IStructure} list. This list is injected by {@link PB_STRUCTURES} token.
|
|
41
|
-
*/
|
|
42
|
-
export declare const PB_DEFAULT_STRUCTURES: IStructure[];
|
|
43
|
-
/**
|
|
44
|
-
* The token that injects {@link PB_DEFAULT_STRUCTURES} list.
|
|
45
|
-
*/
|
|
46
|
-
export declare const PB_STRUCTURES: InjectionToken<IStructure[]>;
|
|
47
|
-
/**
|
|
48
|
-
* The default [Blocks]{@link TBlocks} list. This list is injected by {@link PB_BLOCKS} token.
|
|
49
|
-
*/
|
|
50
|
-
export declare const PB_DEFAULT_BLOCKS: TBlocks[];
|
|
51
|
-
/**
|
|
52
|
-
* The token that injects {@link PB_BLOCKS} list.
|
|
53
|
-
*/
|
|
54
|
-
export declare const PB_BLOCKS: InjectionToken<TBlocks[]>;
|
|
55
|
-
/**
|
|
56
|
-
* Default builder configuration, injected by {@link PB_CONFIG} token. See {@link IForRootConf} for more info.
|
|
57
|
-
*/
|
|
58
|
-
export declare const PB_DEFAULT_CONFIG: IForRootConf;
|
|
59
|
-
/**
|
|
60
|
-
* The token that injects [default builder configurations]{@link PB_DEFAULT_CONFIG}.
|
|
61
|
-
*/
|
|
62
|
-
export declare const PB_CONFIG: InjectionToken<Partial<IForRootConf>>;
|
|
63
|
-
/**
|
|
64
|
-
* The default Storage used by builder. It can be either `localStorage` or `sessionStorage`.
|
|
65
|
-
*/
|
|
66
|
-
export declare const PB_STORAGE_FACTORY: InjectionToken<Storage>;
|
|
67
|
-
/**
|
|
68
|
-
* The default storage to cache the templates list. It can be either `localStorage` or `sessionStorage`.
|
|
69
|
-
*/
|
|
70
|
-
export declare const PB_TEMPLATES_TEMPORARY_STORAGE: InjectionToken<Storage>;
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { IForRootConf, IStructure } from '../interfaces/interfaces';
|
|
3
|
+
import { TBlocks } from '../classes/Elements';
|
|
4
|
+
/**
|
|
5
|
+
* Some top documentation
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The default social networks list provided by builder. This list is injected by {@link PB_SOCIAL_NETWORKS}.
|
|
9
|
+
*/
|
|
10
|
+
export declare const PB_DEFAULT_SOCIAL_NETWORKS: string[];
|
|
11
|
+
/**
|
|
12
|
+
* The token that injects [default social networks list]{@link PB_DEFAULT_SOCIAL_NETWORKS}.
|
|
13
|
+
* Use it to add or remove social networks within list.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* {provide: PB_SOCIAL_NETWORKS, useValue: PB_DEFAULT_SOCIAL_NETWORKS.filter(network => !['github', 'instagram'].includes(network)}
|
|
17
|
+
*/
|
|
18
|
+
export declare const PB_SOCIAL_NETWORKS: InjectionToken<string[]>;
|
|
19
|
+
/**
|
|
20
|
+
* The default [Google Fonts]{@link https://fonts.google.com} list provided by builder.
|
|
21
|
+
* This list is injected by {@link PB_GOOGLE_FONTS} token.
|
|
22
|
+
*/
|
|
23
|
+
export declare const PB_DEFAULT_GOOGLE_FONTS: string[];
|
|
24
|
+
/**
|
|
25
|
+
* The token that injects [default google fonts]{@link PB_DEFAULT_GOOGLE_FONTS} list.
|
|
26
|
+
*/
|
|
27
|
+
export declare const PB_GOOGLE_FONTS: InjectionToken<string[]>;
|
|
28
|
+
/**
|
|
29
|
+
* The default Fallback Fonts list provided by builder. This list is injected by {@link PB_FALLBACK_FONTS} token.
|
|
30
|
+
*
|
|
31
|
+
* A fallback font is a font that takes effect in case a [Google Font]{@link PB_DEFAULT_GOOGLE_FONTS} can't be loaded by some email
|
|
32
|
+
* providers.
|
|
33
|
+
*/
|
|
34
|
+
export declare const PB_DEFAULT_FALLBACK_FONTS: string[];
|
|
35
|
+
/**
|
|
36
|
+
* The token that injects {@link PB_DEFAULT_FALLBACK_FONTS} list.
|
|
37
|
+
*/
|
|
38
|
+
export declare const PB_FALLBACK_FONTS: InjectionToken<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* The default [Structures]{@link IStructure} list. This list is injected by {@link PB_STRUCTURES} token.
|
|
41
|
+
*/
|
|
42
|
+
export declare const PB_DEFAULT_STRUCTURES: IStructure[];
|
|
43
|
+
/**
|
|
44
|
+
* The token that injects {@link PB_DEFAULT_STRUCTURES} list.
|
|
45
|
+
*/
|
|
46
|
+
export declare const PB_STRUCTURES: InjectionToken<IStructure[]>;
|
|
47
|
+
/**
|
|
48
|
+
* The default [Blocks]{@link TBlocks} list. This list is injected by {@link PB_BLOCKS} token.
|
|
49
|
+
*/
|
|
50
|
+
export declare const PB_DEFAULT_BLOCKS: TBlocks[];
|
|
51
|
+
/**
|
|
52
|
+
* The token that injects {@link PB_BLOCKS} list.
|
|
53
|
+
*/
|
|
54
|
+
export declare const PB_BLOCKS: InjectionToken<TBlocks[]>;
|
|
55
|
+
/**
|
|
56
|
+
* Default builder configuration, injected by {@link PB_CONFIG} token. See {@link IForRootConf} for more info.
|
|
57
|
+
*/
|
|
58
|
+
export declare const PB_DEFAULT_CONFIG: IForRootConf;
|
|
59
|
+
/**
|
|
60
|
+
* The token that injects [default builder configurations]{@link PB_DEFAULT_CONFIG}.
|
|
61
|
+
*/
|
|
62
|
+
export declare const PB_CONFIG: InjectionToken<Partial<IForRootConf>>;
|
|
63
|
+
/**
|
|
64
|
+
* The default Storage used by builder. It can be either `localStorage` or `sessionStorage`.
|
|
65
|
+
*/
|
|
66
|
+
export declare const PB_STORAGE_FACTORY: InjectionToken<Storage>;
|
|
67
|
+
/**
|
|
68
|
+
* The default storage to cache the templates list. It can be either `localStorage` or `sessionStorage`.
|
|
69
|
+
*/
|
|
70
|
+
export declare const PB_TEMPLATES_TEMPORARY_STORAGE: InjectionToken<Storage>;
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { IBackground, IBorder, IFont, ILineHeight, IMargin, IPadding, IWidthHeight, TFontWeight } from './interfaces/interfaces';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* An alternative lodash cloneDeep function. Use it on your own risk.
|
|
5
|
-
* @param obj Object to be cloned.
|
|
6
|
-
*/
|
|
7
|
-
export declare function cloneDeep<T>(obj?: {}): T;
|
|
8
|
-
/**
|
|
9
|
-
* An alternative lodash isEqual function. Use it on your own risk.
|
|
10
|
-
* @param x Object to be compared
|
|
11
|
-
* @param y the second Object to be compared
|
|
12
|
-
*/
|
|
13
|
-
export declare function isEqual(x: object, y: object): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* An alternative lodash defaultsDeep function. Use it on your own risk.
|
|
16
|
-
* @param to The object with default properties
|
|
17
|
-
* @param sources An array of objects with default properties
|
|
18
|
-
*/
|
|
19
|
-
export declare function defaultsDeep<T>(to?: T, ...sources: T[]): T;
|
|
20
|
-
/**
|
|
21
|
-
* Create CSS border styles based on {@link IBorder} object.
|
|
22
|
-
* @param border Border object.
|
|
23
|
-
* @param rule Most likely you won't need it, but for some cases, it can be changed. Default is: `border`.
|
|
24
|
-
*
|
|
25
|
-
* @return CSS Border styles.
|
|
26
|
-
*/
|
|
27
|
-
export declare function createBorder(border: IBorder, rule?: string): {
|
|
28
|
-
[p: string]: string;
|
|
29
|
-
borderRadius: string;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Create CSS padding styles based on {@link IPadding} object.
|
|
33
|
-
* @param padding Padding object.
|
|
34
|
-
* @param rule Most likely you won't need it, but for some cases, it can be changed. Default is: `padding`.
|
|
35
|
-
*/
|
|
36
|
-
export declare function createPadding(padding: IPadding, rule?: string): {
|
|
37
|
-
[p: string]: string;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Create CSS margin styles based on {@link IMargin} object.
|
|
41
|
-
* @param margin Margin object.
|
|
42
|
-
*/
|
|
43
|
-
export declare function createMargin(margin: IMargin): {
|
|
44
|
-
margin: string;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Create CSS font styles based on {@link IFont} object.
|
|
48
|
-
* @param font Font object.
|
|
49
|
-
*/
|
|
50
|
-
export declare function createFont(font: IFont): {
|
|
51
|
-
fontFamily: string;
|
|
52
|
-
fontSize: string;
|
|
53
|
-
fontStyle: string;
|
|
54
|
-
fontWeight: number | TFontWeight;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Create CSS line-height styles based on {@link ILineHeight} object.
|
|
58
|
-
* @param lineHeight Line-height object.
|
|
59
|
-
*/
|
|
60
|
-
export declare function createLineHeight(lineHeight: ILineHeight): {
|
|
61
|
-
lineHeight: string;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Create background styles based on {@link IBackground} object.
|
|
65
|
-
* @param background Background object.
|
|
66
|
-
*/
|
|
67
|
-
export declare function createBackground(background: IBackground): string;
|
|
68
|
-
/**
|
|
69
|
-
* Create Width or Height styles based on {@link IWidthHeight} object.
|
|
70
|
-
* @param widthHeight Width or Height object.
|
|
71
|
-
*/
|
|
72
|
-
export declare function createWidthHeight(widthHeight: IWidthHeight): string;
|
|
73
|
-
/**
|
|
74
|
-
* Convert bytes to KB-YB.
|
|
75
|
-
* @param bytes Bytes number.
|
|
76
|
-
* @param decimals How many decimals to be used. Default: 2.
|
|
77
|
-
*/
|
|
78
|
-
export declare function bytesToSize(bytes: number, decimals?: number): string;
|
|
79
|
-
/**
|
|
80
|
-
* Get a Social Icon path.
|
|
81
|
-
* @param path Icon path. Ex: facebook.png
|
|
82
|
-
*/
|
|
83
|
-
export declare function getAssetByPath(path: string): string;
|
|
84
|
-
/**
|
|
85
|
-
* A simple and powerful function that allows to create an `Observable` only when it needs to be used.
|
|
86
|
-
* @param args Arguments to send to new Observable.
|
|
87
|
-
*/
|
|
88
|
-
export declare function deferOf<T>(...args: T[]): Observable<T>;
|
|
1
|
+
import { IBackground, IBorder, IFont, ILineHeight, IMargin, IPadding, IWidthHeight, TFontWeight } from './interfaces/interfaces';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
/**
|
|
4
|
+
* An alternative lodash cloneDeep function. Use it on your own risk.
|
|
5
|
+
* @param obj Object to be cloned.
|
|
6
|
+
*/
|
|
7
|
+
export declare function cloneDeep<T>(obj?: {}): T;
|
|
8
|
+
/**
|
|
9
|
+
* An alternative lodash isEqual function. Use it on your own risk.
|
|
10
|
+
* @param x Object to be compared
|
|
11
|
+
* @param y the second Object to be compared
|
|
12
|
+
*/
|
|
13
|
+
export declare function isEqual(x: object, y: object): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* An alternative lodash defaultsDeep function. Use it on your own risk.
|
|
16
|
+
* @param to The object with default properties
|
|
17
|
+
* @param sources An array of objects with default properties
|
|
18
|
+
*/
|
|
19
|
+
export declare function defaultsDeep<T>(to?: T, ...sources: T[]): T;
|
|
20
|
+
/**
|
|
21
|
+
* Create CSS border styles based on {@link IBorder} object.
|
|
22
|
+
* @param border Border object.
|
|
23
|
+
* @param rule Most likely you won't need it, but for some cases, it can be changed. Default is: `border`.
|
|
24
|
+
*
|
|
25
|
+
* @return CSS Border styles.
|
|
26
|
+
*/
|
|
27
|
+
export declare function createBorder(border: IBorder, rule?: string): {
|
|
28
|
+
[p: string]: string;
|
|
29
|
+
borderRadius: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Create CSS padding styles based on {@link IPadding} object.
|
|
33
|
+
* @param padding Padding object.
|
|
34
|
+
* @param rule Most likely you won't need it, but for some cases, it can be changed. Default is: `padding`.
|
|
35
|
+
*/
|
|
36
|
+
export declare function createPadding(padding: IPadding, rule?: string): {
|
|
37
|
+
[p: string]: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Create CSS margin styles based on {@link IMargin} object.
|
|
41
|
+
* @param margin Margin object.
|
|
42
|
+
*/
|
|
43
|
+
export declare function createMargin(margin: IMargin): {
|
|
44
|
+
margin: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Create CSS font styles based on {@link IFont} object.
|
|
48
|
+
* @param font Font object.
|
|
49
|
+
*/
|
|
50
|
+
export declare function createFont(font: IFont): {
|
|
51
|
+
fontFamily: string;
|
|
52
|
+
fontSize: string;
|
|
53
|
+
fontStyle: string;
|
|
54
|
+
fontWeight: number | TFontWeight;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Create CSS line-height styles based on {@link ILineHeight} object.
|
|
58
|
+
* @param lineHeight Line-height object.
|
|
59
|
+
*/
|
|
60
|
+
export declare function createLineHeight(lineHeight: ILineHeight): {
|
|
61
|
+
lineHeight: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Create background styles based on {@link IBackground} object.
|
|
65
|
+
* @param background Background object.
|
|
66
|
+
*/
|
|
67
|
+
export declare function createBackground(background: IBackground): string;
|
|
68
|
+
/**
|
|
69
|
+
* Create Width or Height styles based on {@link IWidthHeight} object.
|
|
70
|
+
* @param widthHeight Width or Height object.
|
|
71
|
+
*/
|
|
72
|
+
export declare function createWidthHeight(widthHeight: IWidthHeight): string;
|
|
73
|
+
/**
|
|
74
|
+
* Convert bytes to KB-YB.
|
|
75
|
+
* @param bytes Bytes number.
|
|
76
|
+
* @param decimals How many decimals to be used. Default: 2.
|
|
77
|
+
*/
|
|
78
|
+
export declare function bytesToSize(bytes: number, decimals?: number): string;
|
|
79
|
+
/**
|
|
80
|
+
* Get a Social Icon path.
|
|
81
|
+
* @param path Icon path. Ex: facebook.png
|
|
82
|
+
*/
|
|
83
|
+
export declare function getAssetByPath(path: string): string;
|
|
84
|
+
/**
|
|
85
|
+
* A simple and powerful function that allows to create an `Observable` only when it needs to be used.
|
|
86
|
+
* @param args Arguments to send to new Observable.
|
|
87
|
+
*/
|
|
88
|
+
export declare function deferOf<T>(...args: T[]): Observable<T>;
|
package/package.json
CHANGED
|
@@ -1,42 +1,44 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public_api';
|
|
5
|
-
export { BlockSettingsComponent as
|
|
6
|
-
export { BlockComponent as ɵf } from './lib/components/block/block.component';
|
|
7
|
-
export { BuilderContainerComponent as
|
|
8
|
-
export { ConfirmDialogComponent as
|
|
9
|
-
export { GeneralSettingsComponent as
|
|
10
|
-
export { ImportDialogComponent as
|
|
11
|
-
export { StructureSettingsComponent as
|
|
12
|
-
export { StructureComponent as ɵe } from './lib/components/structure/structure.component';
|
|
13
|
-
export { TemplateListDialogComponent as
|
|
14
|
-
export { DynamicComponentDirective as ɵg } from './lib/directives/dynamic-component.directive';
|
|
15
|
-
export { AbstractBlock as ɵi } from './lib/elements/abstract-block';
|
|
16
|
-
export { ButtonComponent as
|
|
17
|
-
export { DividerComponent as
|
|
18
|
-
export { ImageComponent as ɵj } from './lib/elements/image/image.component';
|
|
19
|
-
export { SocialComponent as
|
|
20
|
-
export { SpacerComponent as
|
|
21
|
-
export { TextElementComponent as ɵh } from './lib/elements/text-element/text-element.component';
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public_api';
|
|
5
|
+
export { BlockSettingsComponent as ɵbf } from './lib/components/block-settings/block-settings.component';
|
|
6
|
+
export { BlockComponent as ɵf } from './lib/components/block/block.component';
|
|
7
|
+
export { BuilderContainerComponent as ɵq } from './lib/components/builder-container/builder-container.component';
|
|
8
|
+
export { ConfirmDialogComponent as ɵbd } from './lib/components/dialog.component';
|
|
9
|
+
export { GeneralSettingsComponent as ɵbh } from './lib/components/general-settings/general-settings.component';
|
|
10
|
+
export { ImportDialogComponent as ɵbl } from './lib/components/import-dialog/import-dialog.component';
|
|
11
|
+
export { StructureSettingsComponent as ɵbg } from './lib/components/structure-settings/structure-settings.component';
|
|
12
|
+
export { StructureComponent as ɵe } from './lib/components/structure/structure.component';
|
|
13
|
+
export { TemplateListDialogComponent as ɵbk } from './lib/components/template-list-dialog/template-list-dialog.component';
|
|
14
|
+
export { DynamicComponentDirective as ɵg } from './lib/directives/dynamic-component.directive';
|
|
15
|
+
export { AbstractBlock as ɵi } from './lib/elements/abstract-block';
|
|
16
|
+
export { ButtonComponent as ɵm } from './lib/elements/button/button.component';
|
|
17
|
+
export { DividerComponent as ɵn } from './lib/elements/divider/divider.component';
|
|
18
|
+
export { ImageComponent as ɵj } from './lib/elements/image/image.component';
|
|
19
|
+
export { SocialComponent as ɵp } from './lib/elements/social/social.component';
|
|
20
|
+
export { SpacerComponent as ɵo } from './lib/elements/spacer/spacer.component';
|
|
21
|
+
export { TextElementComponent as ɵh } from './lib/elements/text-element/text-element.component';
|
|
22
|
+
export { VideoComponent as ɵk } from './lib/elements/video/video.component';
|
|
23
|
+
export { AlignComponent as ɵba } from './lib/groups/align';
|
|
24
|
+
export { BackRepatComponent as ɵbc } from './lib/groups/back-repeat';
|
|
25
|
+
export { BorderComponent as ɵx } from './lib/groups/border';
|
|
26
|
+
export { ColorComponent as ɵy } from './lib/groups/color';
|
|
27
|
+
export { DirectionComponent as ɵbb } from './lib/groups/direction';
|
|
28
|
+
export { FontStylesComponent as ɵr } from './lib/groups/font-styles';
|
|
29
|
+
export { GapsComponent as ɵu } from './lib/groups/gaps';
|
|
30
|
+
export { LineHeightComponent as ɵv } from './lib/groups/line-height';
|
|
31
|
+
export { LinkComponent as ɵz } from './lib/groups/link';
|
|
32
|
+
export { MarginComponent as ɵt } from './lib/groups/margin';
|
|
33
|
+
export { PaddingComponent as ɵs } from './lib/groups/padding';
|
|
34
|
+
export { ImageUploadComponent as ɵbe } from './lib/groups/upload-image';
|
|
35
|
+
export { WidthHeightComponent as ɵw } from './lib/groups/width-height';
|
|
36
|
+
export { IpInterceptorInterceptor as ɵbm } from './lib/interceptors/pb-interceptor.interceptor';
|
|
37
|
+
export { PbEmailObjectStoreService as ɵa } from './lib/services/internals/pb-email-object-store/pb-email-object-store.service';
|
|
38
|
+
export { PbUserInterfaceService as ɵb } from './lib/services/internals/user-interfaces/user-interface.service';
|
|
39
|
+
export { FreeUsersPbStorage as ɵd } from './lib/services/pb-storage';
|
|
40
|
+
export { UploadBottomSheetDialogComponent as ɵbi } from './lib/services/user-image-uploader-service/upload-bottom-sheet-dialog/upload-bottom-sheet-dialog.component';
|
|
41
|
+
export { UploadImageGalleryComponent as ɵbj } from './lib/services/user-image-uploader-service/upload-image-gallery/upload-image-gallery.component';
|
|
42
|
+
export { FreeUsersRestApi as ɵc } from './lib/services/user-rest-api-service';
|
|
43
|
+
export { VideoThumbnailService as ɵl } from './lib/services/video-thumbnail.service';
|
|
44
|
+
export { LIBRARY_IS_PRO as ɵbn } from './lib/tokens/private-tokens';
|