@firestitch/block-editor 18.0.10 → 18.0.12
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/artboard/artboard.component.d.ts +2 -4
- package/app/components/block/block.component.d.ts +2 -5
- package/app/components/block-editor/block-editor.component.d.ts +1 -3
- package/app/components/group/group-dialog.component.d.ts +1 -3
- package/app/components/layers-reorder-dialog/layers-reorder-dialog.component.d.ts +2 -3
- package/app/components/sidebar/sidebar.component.d.ts +10 -16
- package/app/directives/block-editor-margin.directive.d.ts +1 -3
- package/app/directives/block-editor-sidebar-panel.directive.d.ts +1 -2
- package/app/fs-block-editor.module.d.ts +31 -31
- package/app/pipes/create-image-url.pipe.d.ts +1 -3
- package/app/services/block-editor.service.d.ts +0 -4
- package/esm2022/app/components/artboard/artboard.component.mjs +10 -17
- package/esm2022/app/components/block/block.component.mjs +16 -20
- package/esm2022/app/components/block-editor/block-editor.component.mjs +15 -17
- package/esm2022/app/components/group/group-dialog.component.mjs +34 -24
- package/esm2022/app/components/layers-reorder-dialog/layers-reorder-dialog.component.mjs +36 -25
- package/esm2022/app/components/sidebar/sidebar.component.mjs +66 -49
- package/esm2022/app/directives/block-editor-margin.directive.mjs +8 -10
- package/esm2022/app/directives/block-editor-sidebar-panel.directive.mjs +7 -9
- package/esm2022/app/fs-block-editor.module.mjs +22 -19
- package/esm2022/app/pipes/create-image-url.pipe.mjs +10 -11
- package/esm2022/app/services/block-editor.service.mjs +7 -15
- package/fesm2022/firestitch-block-editor.mjs +189 -177
- package/fesm2022/firestitch-block-editor.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
3
3
|
import { FsBlockEditorMarginDirective } from '../../directives/block-editor-margin.directive';
|
|
4
4
|
import { FsBlockEditorSidebarPanelDirective } from '../../directives/block-editor-sidebar-panel.directive';
|
|
5
5
|
import { Block } from '../../interfaces/block';
|
|
6
6
|
import { BlockEditorConfig } from '../../interfaces/block-editor-config';
|
|
7
|
-
import { BlockEditorService } from '../../services';
|
|
8
7
|
import { FsBlockComponent } from '../block';
|
|
9
8
|
import { SidebarComponent } from '../sidebar';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
@@ -22,11 +21,10 @@ export declare class ArtboardComponent implements OnInit, OnDestroy, AfterViewIn
|
|
|
22
21
|
zoompan: FsZoomPanComponent;
|
|
23
22
|
blocks: Block[];
|
|
24
23
|
private _destroy$;
|
|
25
|
-
constructor(_el: ElementRef, _blockEditor: BlockEditorService, _cdRef: ChangeDetectorRef);
|
|
26
24
|
get el(): any;
|
|
27
25
|
ngOnInit(): void;
|
|
28
26
|
ngAfterViewInit(): void;
|
|
29
27
|
ngOnDestroy(): void;
|
|
30
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArtboardComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArtboardComponent, "app-artboard", never, { "config": { "alias": "config"; "required": false; }; "zoompan": { "alias": "zoompan"; "required": false; }; }, {}, ["sidebarPanels"], never,
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArtboardComponent, "app-artboard", never, { "config": { "alias": "config"; "required": false; }; "zoompan": { "alias": "zoompan"; "required": false; }; }, {}, ["sidebarPanels"], never, true, never>;
|
|
32
30
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
2
|
-
import { FsFontPickerService } from '@firestitch/font-picker';
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
2
|
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
4
3
|
import Moveable from 'moveable';
|
|
5
4
|
import { BlockType } from '../../enums';
|
|
6
5
|
import { Block } from '../../interfaces';
|
|
7
|
-
import { BlockEditorService } from '../../services';
|
|
8
6
|
import * as i0 from "@angular/core";
|
|
9
7
|
export declare class FsBlockComponent implements OnDestroy, OnInit, AfterViewInit {
|
|
10
8
|
private _blockEditor;
|
|
@@ -29,7 +27,6 @@ export declare class FsBlockComponent implements OnDestroy, OnInit, AfterViewIni
|
|
|
29
27
|
private _editable;
|
|
30
28
|
private _transformable;
|
|
31
29
|
private _destroy$;
|
|
32
|
-
constructor(_blockEditor: BlockEditorService, _elementRef: ElementRef, _cdRef: ChangeDetectorRef, _fontPickerService: FsFontPickerService);
|
|
33
30
|
keydown(event: KeyboardEvent): void;
|
|
34
31
|
get el(): any;
|
|
35
32
|
get moveable(): Moveable;
|
|
@@ -74,5 +71,5 @@ export declare class FsBlockComponent implements OnDestroy, OnInit, AfterViewIni
|
|
|
74
71
|
private _move;
|
|
75
72
|
private _delete;
|
|
76
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockComponent, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockComponent, "fs-block", never, { "block": { "alias": "block"; "required": false; }; "html": { "alias": "html"; "required": false; }; "zoompan": { "alias": "zoompan"; "required": false; }; }, {}, never, never,
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockComponent, "fs-block", never, { "block": { "alias": "block"; "required": false; }; "html": { "alias": "html"; "required": false; }; "zoompan": { "alias": "zoompan"; "required": false; }; }, {}, never, never, true, never>;
|
|
78
75
|
}
|
|
@@ -3,7 +3,6 @@ import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
|
3
3
|
import { FsBlockEditorSidebarPanelDirective } from './../../directives/block-editor-sidebar-panel.directive';
|
|
4
4
|
import { Block } from './../../interfaces/block';
|
|
5
5
|
import { BlockEditorConfig } from './../../interfaces/block-editor-config';
|
|
6
|
-
import { BlockEditorService } from './../../services/block-editor.service';
|
|
7
6
|
import { SidebarComponent } from './../sidebar/sidebar.component';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class FsBlockEditorComponent implements OnInit, OnDestroy {
|
|
@@ -17,12 +16,11 @@ export declare class FsBlockEditorComponent implements OnInit, OnDestroy {
|
|
|
17
16
|
config: BlockEditorConfig;
|
|
18
17
|
blocks: Block[];
|
|
19
18
|
private _destroy$;
|
|
20
|
-
constructor(_el: ElementRef, _blockEditor: BlockEditorService);
|
|
21
19
|
get el(): any;
|
|
22
20
|
ngOnInit(): void;
|
|
23
21
|
zoomCenter(): void;
|
|
24
22
|
editorContainerClick(event: any): void;
|
|
25
23
|
ngOnDestroy(): void;
|
|
26
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockEditorComponent, "fs-block-editor", never, { "config": { "alias": "config"; "required": false; }; }, {}, ["sidebarPanels"], never,
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockEditorComponent, "fs-block-editor", never, { "config": { "alias": "config"; "required": false; }; }, {}, ["sidebarPanels"], never, true, never>;
|
|
28
26
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { Block, BlockGroup } from '../../interfaces';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -9,9 +8,8 @@ export declare class GroupDialogComponent implements OnInit {
|
|
|
9
8
|
block: Block;
|
|
10
9
|
blockGroup: BlockGroup;
|
|
11
10
|
private _blockEditor;
|
|
12
|
-
constructor(_data: any, _dialogRef: MatDialogRef<GroupDialogComponent>);
|
|
13
11
|
ngOnInit(): void;
|
|
14
12
|
save: () => Observable<any>;
|
|
15
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<GroupDialogComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GroupDialogComponent, "ng-component", never, {}, {}, never, never,
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GroupDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
17
15
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
2
|
import { Block } from '../../interfaces';
|
|
4
3
|
import { FsBlockComponent } from '../block/block.component';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -8,10 +7,10 @@ export declare class LayersReorderDialogComponent {
|
|
|
8
7
|
private _dialogRef;
|
|
9
8
|
blocks: Block[];
|
|
10
9
|
blockTypeIcons: {};
|
|
11
|
-
constructor(
|
|
10
|
+
constructor();
|
|
12
11
|
swapItems(event: CdkDragDrop<FsBlockComponent>): void;
|
|
13
12
|
done(): void;
|
|
14
13
|
private _init;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayersReorderDialogComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayersReorderDialogComponent, "ng-component", never, {}, {}, never, never,
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayersReorderDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
17
16
|
}
|
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { UntypedFormControl } from '@angular/forms';
|
|
3
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
-
import { FsClipboard } from '@firestitch/clipboard';
|
|
5
3
|
import { FsFile } from '@firestitch/file';
|
|
6
|
-
import { FsMessage } from '@firestitch/message';
|
|
7
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
8
4
|
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
9
5
|
import { Observable } from 'rxjs';
|
|
10
6
|
import { FsBlockEditorSidebarPanelDirective } from '../../directives';
|
|
11
7
|
import { BlockType } from '../../enums';
|
|
12
8
|
import { Block, BlockGroup } from '../../interfaces';
|
|
13
9
|
import { BlockEditorConfig } from '../../interfaces/block-editor-config';
|
|
14
|
-
import { BlockEditorService } from '../../services';
|
|
15
10
|
import * as i0 from "@angular/core";
|
|
16
11
|
export declare class SidebarComponent implements OnInit, OnDestroy {
|
|
17
|
-
private _el;
|
|
18
|
-
private _blockEditor;
|
|
19
|
-
private _cdRef;
|
|
20
|
-
private _clipboard;
|
|
21
|
-
private _message;
|
|
22
|
-
private _prompt;
|
|
23
|
-
private _dialog;
|
|
24
|
-
private _document;
|
|
25
12
|
sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
|
|
26
13
|
config: BlockEditorConfig;
|
|
27
14
|
blocks: any;
|
|
@@ -43,7 +30,14 @@ export declare class SidebarComponent implements OnInit, OnDestroy {
|
|
|
43
30
|
blocksReordered: () => void;
|
|
44
31
|
formats: any[];
|
|
45
32
|
private _destroy$;
|
|
46
|
-
|
|
33
|
+
private _el;
|
|
34
|
+
private _blockEditor;
|
|
35
|
+
private _cdRef;
|
|
36
|
+
private _clipboard;
|
|
37
|
+
private _message;
|
|
38
|
+
private _prompt;
|
|
39
|
+
private _dialog;
|
|
40
|
+
private _document;
|
|
47
41
|
get el(): any;
|
|
48
42
|
get blockGroups(): BlockGroup[];
|
|
49
43
|
get blockTypeForm(): boolean;
|
|
@@ -89,5 +83,5 @@ export declare class SidebarComponent implements OnInit, OnDestroy {
|
|
|
89
83
|
ngOnDestroy(): void;
|
|
90
84
|
validNumeric(value: any): boolean;
|
|
91
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "sidebar", never, { "config": { "alias": "config"; "required": false; }; "blocks": { "alias": "blocks"; "required": false; }; "zoompan": { "alias": "zoompan"; "required": false; }; }, { "zoomCenter": "zoomCenter"; }, ["sidebarPanels"], never,
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "sidebar", never, { "config": { "alias": "config"; "required": false; }; "blocks": { "alias": "blocks"; "required": false; }; "zoompan": { "alias": "zoompan"; "required": false; }; }, { "zoomCenter": "zoomCenter"; }, ["sidebarPanels"], never, true, never>;
|
|
93
87
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class FsBlockEditorMarginDirective {
|
|
4
3
|
private _elementRef;
|
|
5
|
-
constructor(_elementRef: ElementRef);
|
|
6
4
|
get element(): any;
|
|
7
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorMarginDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsBlockEditorMarginDirective, "[fsBlockEditorMargin]", never, {}, {}, never, never,
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsBlockEditorMarginDirective, "[fsBlockEditorMargin]", never, {}, {}, never, never, true, never>;
|
|
9
7
|
}
|
|
@@ -4,7 +4,6 @@ export declare class FsBlockEditorSidebarPanelDirective {
|
|
|
4
4
|
templateRef: TemplateRef<any>;
|
|
5
5
|
label: string;
|
|
6
6
|
show: boolean;
|
|
7
|
-
constructor(templateRef: TemplateRef<any>);
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorSidebarPanelDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsBlockEditorSidebarPanelDirective, "[fsBlockEditorSidebarPanel]", never, { "label": { "alias": "label"; "required": false; }; "show": { "alias": "show"; "required": false; }; }, {}, never, never,
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsBlockEditorSidebarPanelDirective, "[fsBlockEditorSidebarPanel]", never, { "label": { "alias": "label"; "required": false; }; "show": { "alias": "show"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
9
|
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "
|
|
4
|
-
import * as i2 from "
|
|
5
|
-
import * as i3 from "
|
|
6
|
-
import * as i4 from "
|
|
7
|
-
import * as i5 from "
|
|
8
|
-
import * as i6 from "
|
|
9
|
-
import * as i7 from "
|
|
10
|
-
import * as i8 from "
|
|
11
|
-
import * as i9 from "
|
|
12
|
-
import * as i10 from "@angular/
|
|
13
|
-
import * as i11 from "@angular/
|
|
14
|
-
import * as i12 from "@angular/
|
|
15
|
-
import * as i13 from "@
|
|
16
|
-
import * as i14 from "@
|
|
17
|
-
import * as i15 from "@
|
|
18
|
-
import * as i16 from "@
|
|
19
|
-
import * as i17 from "@
|
|
20
|
-
import * as i18 from "@
|
|
21
|
-
import * as i19 from "@
|
|
22
|
-
import * as i20 from "@
|
|
23
|
-
import * as i21 from "@
|
|
24
|
-
import * as i22 from "
|
|
25
|
-
import * as i23 from "
|
|
26
|
-
import * as i24 from "
|
|
27
|
-
import * as i25 from "
|
|
28
|
-
import * as i26 from "
|
|
29
|
-
import * as i27 from "
|
|
30
|
-
import * as i28 from "
|
|
31
|
-
import * as i29 from "
|
|
32
|
-
import * as i30 from "
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
import * as i3 from "@angular/cdk/drag-drop";
|
|
6
|
+
import * as i4 from "@angular/material/icon";
|
|
7
|
+
import * as i5 from "@angular/material/button";
|
|
8
|
+
import * as i6 from "@angular/material/input";
|
|
9
|
+
import * as i7 from "@angular/material/form-field";
|
|
10
|
+
import * as i8 from "@angular/material/checkbox";
|
|
11
|
+
import * as i9 from "@angular/material/tooltip";
|
|
12
|
+
import * as i10 from "@angular/material/select";
|
|
13
|
+
import * as i11 from "@angular/material/dialog";
|
|
14
|
+
import * as i12 from "@angular/material/list";
|
|
15
|
+
import * as i13 from "@firestitch/file";
|
|
16
|
+
import * as i14 from "@firestitch/colorpicker";
|
|
17
|
+
import * as i15 from "@firestitch/menu";
|
|
18
|
+
import * as i16 from "@firestitch/zoom-pan";
|
|
19
|
+
import * as i17 from "@firestitch/form";
|
|
20
|
+
import * as i18 from "@firestitch/mask";
|
|
21
|
+
import * as i19 from "@firestitch/font-picker";
|
|
22
|
+
import * as i20 from "@firestitch/autocomplete";
|
|
23
|
+
import * as i21 from "@firestitch/dialog";
|
|
24
|
+
import * as i22 from "./components/block/block.component";
|
|
25
|
+
import * as i23 from "./components/block-editor/block-editor.component";
|
|
26
|
+
import * as i24 from "./directives/block-editor-sidebar-panel.directive";
|
|
27
|
+
import * as i25 from "./directives/block-editor-margin.directive";
|
|
28
|
+
import * as i26 from "./components/sidebar/sidebar.component";
|
|
29
|
+
import * as i27 from "./components/artboard/artboard.component";
|
|
30
|
+
import * as i28 from "./components/layers-reorder-dialog/layers-reorder-dialog.component";
|
|
31
|
+
import * as i29 from "./pipes/create-image-url.pipe";
|
|
32
|
+
import * as i30 from "./components/group/group-dialog.component";
|
|
33
33
|
export declare class FsBlockEditorModule {
|
|
34
34
|
static forRoot(): ModuleWithProviders<FsBlockEditorModule>;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorModule, never>;
|
|
36
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsBlockEditorModule, [typeof i1.
|
|
36
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsBlockEditorModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.DragDropModule, typeof i4.MatIconModule, typeof i5.MatButtonModule, typeof i6.MatInputModule, typeof i7.MatFormFieldModule, typeof i8.MatCheckboxModule, typeof i9.MatTooltipModule, typeof i10.MatSelectModule, typeof i11.MatDialogModule, typeof i12.MatListModule, typeof i13.FsFileModule, typeof i14.FsColorPickerModule, typeof i15.FsMenuModule, typeof i16.FsZoomPanModule, typeof i17.FsFormModule, typeof i18.FsMaskModule, typeof i19.FsFontPickerModule, typeof i20.FsAutocompleteModule, typeof i21.FsDialogModule, typeof i22.FsBlockComponent, typeof i23.FsBlockEditorComponent, typeof i24.FsBlockEditorSidebarPanelDirective, typeof i25.FsBlockEditorMarginDirective, typeof i26.SidebarComponent, typeof i27.ArtboardComponent, typeof i28.LayersReorderDialogComponent, typeof i29.CreateImageUrlPipe, typeof i30.GroupDialogComponent], [typeof i22.FsBlockComponent, typeof i23.FsBlockEditorComponent, typeof i24.FsBlockEditorSidebarPanelDirective]>;
|
|
37
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsBlockEditorModule>;
|
|
38
38
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { FsApi } from '@firestitch/api';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class CreateImageUrlPipe implements PipeTransform {
|
|
5
4
|
private _api;
|
|
6
|
-
constructor(_api: FsApi);
|
|
7
5
|
transform(url: any): import("rxjs").Observable<import("@angular/platform-browser").SafeUrl>;
|
|
8
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateImageUrlPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<CreateImageUrlPipe, "createImageUrl",
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CreateImageUrlPipe, "createImageUrl", true>;
|
|
10
8
|
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { FsDialog } from '@firestitch/dialog';
|
|
3
2
|
import { FsFile } from '@firestitch/file';
|
|
4
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
5
3
|
import { Observable } from 'rxjs';
|
|
6
4
|
import { FsBlockComponent } from '../components/block';
|
|
7
5
|
import { BlockEditorConfig, BlockGroup } from '../interfaces';
|
|
8
6
|
import { Block } from './../interfaces/block';
|
|
9
|
-
import { BlocksStore } from './blocks-store.service';
|
|
10
7
|
import * as i0 from "@angular/core";
|
|
11
8
|
export declare class BlockEditorService implements OnDestroy {
|
|
12
9
|
private _store;
|
|
@@ -21,7 +18,6 @@ export declare class BlockEditorService implements OnDestroy {
|
|
|
21
18
|
private _blockClippable$;
|
|
22
19
|
private _destroy$;
|
|
23
20
|
private _selectionRange;
|
|
24
|
-
constructor(_store: BlocksStore, _dialog: FsDialog, _prompt: FsPrompt);
|
|
25
21
|
get blockComponents$(): Observable<FsBlockComponent[]>;
|
|
26
22
|
set blockComponents(blockComponents: any);
|
|
27
23
|
init(config: BlockEditorConfig): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, ElementRef, Input, QueryList, ViewChild, ViewChildren } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, ElementRef, Input, QueryList, ViewChild, ViewChildren, inject } from '@angular/core';
|
|
2
2
|
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { delay, takeUntil } from 'rxjs/operators';
|
|
@@ -7,14 +7,12 @@ import { FsBlockEditorSidebarPanelDirective } from '../../directives/block-edito
|
|
|
7
7
|
import { BlockEditorService } from '../../services';
|
|
8
8
|
import { FsBlockComponent } from '../block';
|
|
9
9
|
import { SidebarComponent } from '../sidebar';
|
|
10
|
+
import { FsBlockComponent as FsBlockComponent_1 } from '../block/block.component';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "../../services";
|
|
12
|
-
import * as i2 from "@angular/common";
|
|
13
|
-
import * as i3 from "../block/block.component";
|
|
14
12
|
export class ArtboardComponent {
|
|
15
|
-
_el;
|
|
16
|
-
_blockEditor;
|
|
17
|
-
_cdRef;
|
|
13
|
+
_el = inject(ElementRef);
|
|
14
|
+
_blockEditor = inject(BlockEditorService);
|
|
15
|
+
_cdRef = inject(ChangeDetectorRef);
|
|
18
16
|
sidebarPanels;
|
|
19
17
|
blockComponents;
|
|
20
18
|
artboard;
|
|
@@ -25,11 +23,6 @@ export class ArtboardComponent {
|
|
|
25
23
|
zoompan;
|
|
26
24
|
blocks = [];
|
|
27
25
|
_destroy$ = new Subject();
|
|
28
|
-
constructor(_el, _blockEditor, _cdRef) {
|
|
29
|
-
this._el = _el;
|
|
30
|
-
this._blockEditor = _blockEditor;
|
|
31
|
-
this._cdRef = _cdRef;
|
|
32
|
-
}
|
|
33
26
|
get el() {
|
|
34
27
|
return this._el.nativeElement;
|
|
35
28
|
}
|
|
@@ -66,13 +59,13 @@ export class ArtboardComponent {
|
|
|
66
59
|
this._destroy$.next(null);
|
|
67
60
|
this._destroy$.complete();
|
|
68
61
|
}
|
|
69
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ArtboardComponent, deps: [
|
|
70
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
62
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ArtboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: ArtboardComponent, isStandalone: true, selector: "app-artboard", inputs: { config: "config", zoompan: "zoompan" }, queries: [{ propertyName: "sidebarPanels", predicate: FsBlockEditorSidebarPanelDirective }], viewQueries: [{ propertyName: "artboard", first: true, predicate: ["artboard"], descendants: true, static: true }, { propertyName: "marginContainer", first: true, predicate: ["marginContainer"], descendants: true, static: true }, { propertyName: "sidebar", first: true, predicate: SidebarComponent, descendants: true, static: true }, { propertyName: "blockComponents", predicate: FsBlockComponent, descendants: true }, { propertyName: "margins", predicate: FsBlockEditorMarginDirective, descendants: true }], ngImport: i0, template: "<div\n #artboard\n class=\"artboard mat-elevation-z4 deselectable\"\n [style.width]=\"config.width + config.unit\"\n [style.height]=\"config.height + config.unit\">\n @for (block of blocks; track block) {\n <fs-block\n [zoompan]=\"zoompan\"\n [block]=\"block\">\n </fs-block>\n }\n @if (config.marginTop) {\n <div class=\"margin margin-top\" [style.top]=\"config.marginTop + 'in'\"></div>\n }\n @if (config.marginLeft) {\n <div class=\"margin margin-left\" [style.left]=\"config.marginLeft + 'in'\"></div>\n }\n @if (config.marginBottom) {\n <div class=\"margin margin-bottom\" [style.bottom]=\"config.marginBottom + 'in'\"></div>\n }\n @if (config.marginRight) {\n <div class=\"margin margin-right\" [style.right]=\"config.marginRight + 'in'\"></div>\n }\n <div\n #marginContainer\n class=\"margin-container\"\n [style.top]=\"config.marginTop + 'in'\"\n [style.right]=\"config.marginRight + 'in'\"\n [style.bottom]=\"config.marginBottom + 'in'\"\n [style.left]=\"config.marginLeft + 'in'\">\n </div>\n</div>\n\n", styles: [".artboard{position:relative;display:inline-flex;background-color:#fff}.artboard .margin-container{position:absolute;z-index:-1}.artboard .margin{position:absolute;border-color:#ff85bd5e;border-style:dashed;border-width:0px}.artboard .margin.margin-top,.artboard .margin.margin-bottom{width:100%;border-top-width:1px}.artboard .margin.margin-left,.artboard .margin.margin-right{height:100%;border-left-width:1px}\n"], dependencies: [{ kind: "component", type: FsBlockComponent_1, selector: "fs-block", inputs: ["block", "html", "zoompan"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
71
64
|
}
|
|
72
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ArtboardComponent, decorators: [{
|
|
73
66
|
type: Component,
|
|
74
|
-
args: [{ selector: 'app-artboard', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n
|
|
75
|
-
}],
|
|
67
|
+
args: [{ selector: 'app-artboard', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FsBlockComponent_1], template: "<div\n #artboard\n class=\"artboard mat-elevation-z4 deselectable\"\n [style.width]=\"config.width + config.unit\"\n [style.height]=\"config.height + config.unit\">\n @for (block of blocks; track block) {\n <fs-block\n [zoompan]=\"zoompan\"\n [block]=\"block\">\n </fs-block>\n }\n @if (config.marginTop) {\n <div class=\"margin margin-top\" [style.top]=\"config.marginTop + 'in'\"></div>\n }\n @if (config.marginLeft) {\n <div class=\"margin margin-left\" [style.left]=\"config.marginLeft + 'in'\"></div>\n }\n @if (config.marginBottom) {\n <div class=\"margin margin-bottom\" [style.bottom]=\"config.marginBottom + 'in'\"></div>\n }\n @if (config.marginRight) {\n <div class=\"margin margin-right\" [style.right]=\"config.marginRight + 'in'\"></div>\n }\n <div\n #marginContainer\n class=\"margin-container\"\n [style.top]=\"config.marginTop + 'in'\"\n [style.right]=\"config.marginRight + 'in'\"\n [style.bottom]=\"config.marginBottom + 'in'\"\n [style.left]=\"config.marginLeft + 'in'\">\n </div>\n</div>\n\n", styles: [".artboard{position:relative;display:inline-flex;background-color:#fff}.artboard .margin-container{position:absolute;z-index:-1}.artboard .margin{position:absolute;border-color:#ff85bd5e;border-style:dashed;border-width:0px}.artboard .margin.margin-top,.artboard .margin.margin-bottom{width:100%;border-top-width:1px}.artboard .margin.margin-left,.artboard .margin.margin-right{height:100%;border-left-width:1px}\n"] }]
|
|
68
|
+
}], propDecorators: { sidebarPanels: [{
|
|
76
69
|
type: ContentChildren,
|
|
77
70
|
args: [FsBlockEditorSidebarPanelDirective]
|
|
78
71
|
}], blockComponents: [{
|
|
@@ -95,4 +88,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
|
|
|
95
88
|
}], zoompan: [{
|
|
96
89
|
type: Input
|
|
97
90
|
}] } });
|
|
98
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
91
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ0Ym9hcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOls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