@firestitch/block-editor 12.3.32 → 12.3.34
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/app/components/block/block.component.d.ts +6 -7
- package/app/components/layers-reorder-dialog/layers-reorder-dialog.component.d.ts +1 -0
- package/app/components/sidebar/sidebar.component.d.ts +1 -0
- package/app/services/block-editor.service.d.ts +6 -4
- package/app/services/google-font.service.d.ts +3 -3
- package/bundles/firestitch-block-editor.umd.js +59 -55
- package/bundles/firestitch-block-editor.umd.js.map +1 -1
- package/esm2015/app/components/block/block.component.js +30 -32
- package/esm2015/app/components/block-editor/block-editor.component.js +5 -5
- package/esm2015/app/components/layers-reorder-dialog/layers-reorder-dialog.component.js +2 -1
- package/esm2015/app/components/sidebar/sidebar.component.js +7 -2
- package/esm2015/app/directives/block-editor-sidebar-panel.directive.js +2 -2
- package/esm2015/app/services/block-editor.service.js +36 -36
- package/esm2015/app/services/google-font.service.js +7 -7
- package/fesm2015/firestitch-block-editor.js +75 -71
- package/fesm2015/firestitch-block-editor.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
3
3
|
import Moveable from 'moveable';
|
|
4
4
|
import { BlockType } from '../../enums';
|
|
5
5
|
import { Block } from '../../interfaces';
|
|
6
6
|
import { BlockEditorService, GoogleFontService } from '../../services';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class FsBlockComponent implements OnDestroy,
|
|
8
|
+
export declare class FsBlockComponent implements OnDestroy, OnInit, AfterViewInit {
|
|
9
9
|
private _blockEditor;
|
|
10
10
|
private _elementRef;
|
|
11
11
|
private _cdRef;
|
|
@@ -14,11 +14,11 @@ export declare class FsBlockComponent implements OnDestroy, AfterContentInit, On
|
|
|
14
14
|
contentElement: ElementRef;
|
|
15
15
|
contentEditable: ElementRef;
|
|
16
16
|
set block(block: Block);
|
|
17
|
+
get block(): Block;
|
|
17
18
|
html: string;
|
|
18
19
|
zoompan: FsZoomPanComponent;
|
|
19
20
|
transformating: boolean;
|
|
20
|
-
|
|
21
|
-
unit: any;
|
|
21
|
+
unit: string;
|
|
22
22
|
content: any;
|
|
23
23
|
selected: any;
|
|
24
24
|
BlockType: typeof BlockType;
|
|
@@ -28,11 +28,12 @@ export declare class FsBlockComponent implements OnDestroy, AfterContentInit, On
|
|
|
28
28
|
private _transformable;
|
|
29
29
|
private _destroy$;
|
|
30
30
|
constructor(_blockEditor: BlockEditorService, _elementRef: ElementRef, _cdRef: ChangeDetectorRef, _googleFontService: GoogleFontService);
|
|
31
|
-
|
|
31
|
+
keydown(event: KeyboardEvent): void;
|
|
32
32
|
get el(): any;
|
|
33
33
|
get moveable(): Moveable;
|
|
34
34
|
hasType(types: any): any;
|
|
35
35
|
get editable(): any;
|
|
36
|
+
set editable(value: any);
|
|
36
37
|
get styleTop(): string;
|
|
37
38
|
get styleLeft(): string;
|
|
38
39
|
get styleWidth(): string;
|
|
@@ -44,7 +45,6 @@ export declare class FsBlockComponent implements OnDestroy, AfterContentInit, On
|
|
|
44
45
|
get styleClipPath(): string;
|
|
45
46
|
get styleBoxShadow(): string;
|
|
46
47
|
set elementGuidelines(value: any);
|
|
47
|
-
set editable(value: any);
|
|
48
48
|
get clippable(): boolean;
|
|
49
49
|
set clippable(value: boolean);
|
|
50
50
|
get transformable(): boolean;
|
|
@@ -55,7 +55,6 @@ export declare class FsBlockComponent implements OnDestroy, AfterContentInit, On
|
|
|
55
55
|
markForCheck(): void;
|
|
56
56
|
ngOnInit(): void;
|
|
57
57
|
ngAfterViewInit(): void;
|
|
58
|
-
ngAfterContentInit(): void;
|
|
59
58
|
pxToIn(px: any): number;
|
|
60
59
|
round(value: any, decimals: any): number;
|
|
61
60
|
deselect(): void;
|
|
@@ -4,6 +4,7 @@ import { Block } from '../../interfaces';
|
|
|
4
4
|
import { FsBlockComponent } from '../block/block.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LayersReorderDialogComponent {
|
|
7
|
+
private _dialogData;
|
|
7
8
|
private _dialogRef;
|
|
8
9
|
blocks: Block[];
|
|
9
10
|
blockTypeIcons: {};
|
|
@@ -82,6 +82,7 @@ export declare class SidebarComponent implements OnInit, OnDestroy {
|
|
|
82
82
|
imageRemove(): void;
|
|
83
83
|
imageClip(): void;
|
|
84
84
|
blockChangeProperty(values: any): void;
|
|
85
|
+
blockDuplicateClick(): void;
|
|
85
86
|
blockRemoveClick(): void;
|
|
86
87
|
validate: (formControl: FormControl) => Observable<any>;
|
|
87
88
|
blockUpload(block: Block, fsFile: FsFile): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
2
|
import { FsDialog } from '@firestitch/dialog';
|
|
4
3
|
import { FsFile } from '@firestitch/file';
|
|
5
4
|
import { FsPrompt } from '@firestitch/prompt';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
6
|
import { FsBlockComponent } from '../components/block';
|
|
7
7
|
import { BlockEditorConfig, BlockGroup } from '../interfaces';
|
|
8
8
|
import { Block } from './../interfaces/block';
|
|
@@ -27,12 +27,11 @@ export declare class BlockEditorService implements OnDestroy {
|
|
|
27
27
|
init(config: BlockEditorConfig): void;
|
|
28
28
|
blockAdd(block: Block): void;
|
|
29
29
|
blockUpload(block: Block, fsFile: FsFile): Observable<Block>;
|
|
30
|
-
private _initBlock;
|
|
31
30
|
blockRemove(block: Block): void;
|
|
32
31
|
get blocks$(): Observable<Block[]>;
|
|
33
32
|
get blockChanged$(): Observable<Block>;
|
|
34
33
|
get blockUpdated$(): Observable<Block>;
|
|
35
|
-
get blockClippable$():
|
|
34
|
+
get blockClippable$(): Observable<boolean>;
|
|
36
35
|
set blockClippable(value: any);
|
|
37
36
|
get blockAdded$(): Observable<Block>;
|
|
38
37
|
get blockRemoved$(): Observable<Block>;
|
|
@@ -41,7 +40,9 @@ export declare class BlockEditorService implements OnDestroy {
|
|
|
41
40
|
applyBlockGroup(block: Block, blockGroup: BlockGroup): void;
|
|
42
41
|
isSelectedBlock(block: Block): boolean;
|
|
43
42
|
indexOf(block: any): number;
|
|
44
|
-
selectedBlockComponentChangeProperty(values:
|
|
43
|
+
selectedBlockComponentChangeProperty(values: {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}): void;
|
|
45
46
|
blockGroupChangeProperty(blockGroup: any, values: any): void;
|
|
46
47
|
get selectedBlocks$(): Observable<Block[]>;
|
|
47
48
|
set selectedBlock(block: Block);
|
|
@@ -57,6 +58,7 @@ export declare class BlockEditorService implements OnDestroy {
|
|
|
57
58
|
ngOnDestroy(): void;
|
|
58
59
|
private _initBlockGroups;
|
|
59
60
|
private _initBlockChange;
|
|
61
|
+
private _initBlock;
|
|
60
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlockEditorService, never>;
|
|
61
63
|
static ɵprov: i0.ɵɵInjectableDeclaration<BlockEditorService>;
|
|
62
64
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class GoogleFontService {
|
|
5
|
-
private
|
|
5
|
+
private _httpClient;
|
|
6
6
|
private _fonts$;
|
|
7
7
|
private _apiKey;
|
|
8
|
-
constructor(
|
|
8
|
+
constructor(_httpClient: HttpClient);
|
|
9
9
|
loadFont(font: any): void;
|
|
10
10
|
getItems(): Observable<{
|
|
11
11
|
family: string;
|