@firestitch/block-editor 12.3.28 → 12.3.29
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 +3 -0
- package/app/components/block-editor/block-editor.component.d.ts +0 -1
- package/app/services/block-editor.service.d.ts +4 -2
- package/bundles/firestitch-block-editor.umd.js +92 -93
- package/bundles/firestitch-block-editor.umd.js.map +1 -1
- package/esm2015/app/components/artboard/artboard.component.js +3 -33
- package/esm2015/app/components/block/block.component.js +48 -3
- package/esm2015/app/components/block-editor/block-editor.component.js +3 -15
- package/esm2015/app/components/sidebar/sidebar.component.js +4 -14
- package/esm2015/app/services/block-editor.service.js +19 -10
- package/fesm2015/firestitch-block-editor.js +71 -71
- package/fesm2015/firestitch-block-editor.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@ export declare class FsBlockComponent implements OnDestroy, AfterContentInit, On
|
|
|
17
17
|
html: string;
|
|
18
18
|
zoompan: FsZoomPanComponent;
|
|
19
19
|
transformating: boolean;
|
|
20
|
+
keydown(event: KeyboardEvent): void;
|
|
20
21
|
unit: any;
|
|
21
22
|
content: any;
|
|
22
23
|
selected: any;
|
|
@@ -68,6 +69,8 @@ export declare class FsBlockComponent implements OnDestroy, AfterContentInit, On
|
|
|
68
69
|
private _initMoveable;
|
|
69
70
|
private _initEvents;
|
|
70
71
|
private _initFonts;
|
|
72
|
+
private _move;
|
|
73
|
+
private _delete;
|
|
71
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockComponent, never>;
|
|
72
75
|
static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockComponent, "fs-block", never, { "block": "block"; "html": "html"; "zoompan": "zoompan"; }, {}, never, never>;
|
|
73
76
|
}
|
|
@@ -21,7 +21,6 @@ export declare class FsBlockEditorComponent implements OnInit, OnDestroy {
|
|
|
21
21
|
get el(): any;
|
|
22
22
|
ngOnInit(): void;
|
|
23
23
|
zoomCenter(): void;
|
|
24
|
-
editorContainerKeyDown(event: KeyboardEvent): void;
|
|
25
24
|
editorContainerClick(event: any): void;
|
|
26
25
|
ngOnDestroy(): void;
|
|
27
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorComponent, never>;
|
|
@@ -2,6 +2,7 @@ import { OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
3
|
import { FsDialog } from '@firestitch/dialog';
|
|
4
4
|
import { FsFile } from '@firestitch/file';
|
|
5
|
+
import { FsPrompt } from '@firestitch/prompt';
|
|
5
6
|
import { FsBlockComponent } from '../components/block/block.component';
|
|
6
7
|
import { BlockEditorConfig } from '../interfaces/block-editor-config';
|
|
7
8
|
import { Block } from './../interfaces/block';
|
|
@@ -10,6 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
10
11
|
export declare class BlockEditorService implements OnDestroy {
|
|
11
12
|
private _store;
|
|
12
13
|
private _dialog;
|
|
14
|
+
private _prompt;
|
|
13
15
|
container: any;
|
|
14
16
|
margin: any;
|
|
15
17
|
config: BlockEditorConfig;
|
|
@@ -19,13 +21,13 @@ export declare class BlockEditorService implements OnDestroy {
|
|
|
19
21
|
private _blockClippable$;
|
|
20
22
|
private _destroy$;
|
|
21
23
|
private _blockInited$;
|
|
22
|
-
constructor(_store: BlocksStore, _dialog: FsDialog);
|
|
24
|
+
constructor(_store: BlocksStore, _dialog: FsDialog, _prompt: FsPrompt);
|
|
23
25
|
get blockComponents(): FsBlockComponent[];
|
|
24
26
|
init(config: BlockEditorConfig): void;
|
|
25
27
|
blockAdd(block: Block): void;
|
|
26
28
|
blockUpload(block: Block, fsFile: FsFile): Observable<Block>;
|
|
27
29
|
blockRemove(block: Block): void;
|
|
28
|
-
|
|
30
|
+
removeBlocks(blocks: Block[]): void;
|
|
29
31
|
get blocks$(): Observable<Block[]>;
|
|
30
32
|
get blockChanged$(): Observable<Block>;
|
|
31
33
|
get blockUpdated$(): Observable<Block>;
|