@firestitch/block-editor 12.1.7 → 12.2.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/app/components/artboard/artboard.component.d.ts +35 -35
- package/app/components/block/block.component.d.ts +58 -58
- package/app/components/block-editor/block-editor.component.d.ts +28 -28
- package/app/components/layers-reorder-dialog/layers-reorder-dialog.component.d.ts +15 -0
- package/app/components/sidebar/sidebar.component.d.ts +79 -76
- package/app/consts/block-formats.const.d.ts +6 -6
- package/app/consts/block-types.const.d.ts +12 -12
- package/app/consts/index.d.ts +2 -2
- package/app/directives/block-editor-margin.directive.d.ts +9 -9
- package/app/directives/block-editor-sidebar-panel.directive.d.ts +10 -10
- package/app/enums/block-format.enum.d.ts +6 -6
- package/app/enums/block-type.enum.d.ts +11 -11
- package/app/enums/index.d.ts +2 -2
- package/app/fs-block-editor.module.d.ts +31 -27
- package/app/interfaces/block-editor-config.d.ts +20 -20
- package/app/interfaces/block.d.ts +49 -48
- package/app/services/block-editor.service.d.ts +53 -54
- package/app/services/blocks-store.service.d.ts +34 -0
- package/app/services/index.d.ts +1 -1
- package/bundles/firestitch-block-editor.umd.js +1740 -1551
- package/bundles/firestitch-block-editor.umd.js.map +1 -1
- package/esm2015/app/components/artboard/artboard.component.js +129 -129
- package/esm2015/app/components/block/block.component.js +319 -317
- package/esm2015/app/components/block-editor/block-editor.component.js +86 -84
- package/esm2015/app/components/layers-reorder-dialog/layers-reorder-dialog.component.js +45 -0
- package/esm2015/app/components/sidebar/sidebar.component.js +251 -242
- package/esm2015/app/consts/block-formats.const.js +7 -7
- package/esm2015/app/consts/block-types.const.js +12 -12
- package/esm2015/app/consts/index.js +2 -2
- package/esm2015/app/directives/block-editor-margin.directive.js +18 -18
- package/esm2015/app/directives/block-editor-sidebar-panel.directive.js +20 -20
- package/esm2015/app/enums/block-format.enum.js +8 -8
- package/esm2015/app/enums/block-type.enum.js +12 -12
- package/esm2015/app/enums/index.js +2 -2
- package/esm2015/app/fs-block-editor.module.js +113 -98
- package/esm2015/app/interfaces/block-editor-config.js +1 -1
- package/esm2015/app/interfaces/block.js +2 -2
- package/esm2015/app/services/block-editor.service.js +165 -246
- package/esm2015/app/services/blocks-store.service.js +174 -0
- package/esm2015/app/services/index.js +1 -1
- package/esm2015/firestitch-block-editor.js +4 -4
- package/esm2015/public_api.js +6 -6
- package/fesm2015/firestitch-block-editor.js +1247 -1101
- package/fesm2015/firestitch-block-editor.js.map +1 -1
- package/firestitch-block-editor.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +8 -8
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, IterableDiffers, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
-
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
3
|
-
import { BlockEditorConfig } from '../../interfaces/block-editor-config';
|
|
4
|
-
import { FsBlockComponent } from '../block/block.component';
|
|
5
|
-
import { BlockEditorService } from '../../services/block-editor.service';
|
|
6
|
-
import { Block } from '../../interfaces/block';
|
|
7
|
-
import { FsBlockEditorSidebarPanelDirective } from '../../directives/block-editor-sidebar-panel.directive';
|
|
8
|
-
import { FsBlockEditorMarginDirective } from '../../directives/block-editor-margin.directive';
|
|
9
|
-
import { SidebarComponent } from '../sidebar/sidebar.component';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class ArtboardComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
12
|
-
private _el;
|
|
13
|
-
private _blockEditor;
|
|
14
|
-
private _cdRef;
|
|
15
|
-
private _differs;
|
|
16
|
-
sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
|
|
17
|
-
blockComponents: QueryList<FsBlockComponent>;
|
|
18
|
-
artboard: ElementRef;
|
|
19
|
-
marginContainer: ElementRef;
|
|
20
|
-
margins: QueryList<FsBlockEditorMarginDirective>;
|
|
21
|
-
sidebar: SidebarComponent;
|
|
22
|
-
config: BlockEditorConfig;
|
|
23
|
-
zoompan: FsZoomPanComponent;
|
|
24
|
-
blocks: Block[];
|
|
25
|
-
private _differ;
|
|
26
|
-
private _destroy$;
|
|
27
|
-
constructor(_el: ElementRef, _blockEditor: BlockEditorService, _cdRef: ChangeDetectorRef, _differs: IterableDiffers);
|
|
28
|
-
get el(): any;
|
|
29
|
-
ngOnInit(): void;
|
|
30
|
-
blockChanged(block: Block<any>): void;
|
|
31
|
-
ngAfterViewInit(): void;
|
|
32
|
-
ngOnDestroy(): void;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ArtboardComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArtboardComponent, "app-artboard", never, { "config": "config"; "zoompan": "zoompan"; }, {}, ["sidebarPanels"], never>;
|
|
35
|
-
}
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, IterableDiffers, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
3
|
+
import { BlockEditorConfig } from '../../interfaces/block-editor-config';
|
|
4
|
+
import { FsBlockComponent } from '../block/block.component';
|
|
5
|
+
import { BlockEditorService } from '../../services/block-editor.service';
|
|
6
|
+
import { Block } from '../../interfaces/block';
|
|
7
|
+
import { FsBlockEditorSidebarPanelDirective } from '../../directives/block-editor-sidebar-panel.directive';
|
|
8
|
+
import { FsBlockEditorMarginDirective } from '../../directives/block-editor-margin.directive';
|
|
9
|
+
import { SidebarComponent } from '../sidebar/sidebar.component';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class ArtboardComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
12
|
+
private _el;
|
|
13
|
+
private _blockEditor;
|
|
14
|
+
private _cdRef;
|
|
15
|
+
private _differs;
|
|
16
|
+
sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
|
|
17
|
+
blockComponents: QueryList<FsBlockComponent>;
|
|
18
|
+
artboard: ElementRef;
|
|
19
|
+
marginContainer: ElementRef;
|
|
20
|
+
margins: QueryList<FsBlockEditorMarginDirective>;
|
|
21
|
+
sidebar: SidebarComponent;
|
|
22
|
+
config: BlockEditorConfig;
|
|
23
|
+
zoompan: FsZoomPanComponent;
|
|
24
|
+
blocks: Block[];
|
|
25
|
+
private _differ;
|
|
26
|
+
private _destroy$;
|
|
27
|
+
constructor(_el: ElementRef, _blockEditor: BlockEditorService, _cdRef: ChangeDetectorRef, _differs: IterableDiffers);
|
|
28
|
+
get el(): any;
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
blockChanged(block: Block<any>): void;
|
|
31
|
+
ngAfterViewInit(): void;
|
|
32
|
+
ngOnDestroy(): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArtboardComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArtboardComponent, "app-artboard", never, { "config": "config"; "zoompan": "zoompan"; }, {}, ["sidebarPanels"], never>;
|
|
35
|
+
}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { AfterContentInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
3
|
-
import Moveable from 'moveable';
|
|
4
|
-
import { BlockEditorService } from './../../services';
|
|
5
|
-
import { Block } from './../../interfaces/block';
|
|
6
|
-
import { BlockType } from '../../enums';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class FsBlockComponent implements OnDestroy, AfterContentInit, OnInit {
|
|
9
|
-
private _blockEditor;
|
|
10
|
-
private _elementRef;
|
|
11
|
-
private _cdRef;
|
|
12
|
-
element: ElementRef;
|
|
13
|
-
contentElement: ElementRef;
|
|
14
|
-
contentEditable: ElementRef;
|
|
15
|
-
block: Block;
|
|
16
|
-
html: string;
|
|
17
|
-
zoompan: FsZoomPanComponent;
|
|
18
|
-
transformating: boolean;
|
|
19
|
-
unit: any;
|
|
20
|
-
content: string;
|
|
21
|
-
BlockType: typeof BlockType;
|
|
22
|
-
private _moveable;
|
|
23
|
-
private _editable;
|
|
24
|
-
private _transformable;
|
|
25
|
-
private _rotateStart;
|
|
26
|
-
private _destroy$;
|
|
27
|
-
constructor(_blockEditor: BlockEditorService, _elementRef: ElementRef, _cdRef: ChangeDetectorRef);
|
|
28
|
-
get el(): any;
|
|
29
|
-
get moveable(): Moveable;
|
|
30
|
-
get editable(): any;
|
|
31
|
-
set elementGuidelines(value: any);
|
|
32
|
-
set editable(value: any);
|
|
33
|
-
set clippable(value: any);
|
|
34
|
-
get transformable(): boolean;
|
|
35
|
-
set transformable(value: boolean);
|
|
36
|
-
set width(value: any);
|
|
37
|
-
set height(value: any);
|
|
38
|
-
set top(value: any);
|
|
39
|
-
set left(value: any);
|
|
40
|
-
set rotate(value: any);
|
|
41
|
-
set index(value: any);
|
|
42
|
-
set keepRatio(value: any);
|
|
43
|
-
markForCheck(): void;
|
|
44
|
-
ngOnInit(): void;
|
|
45
|
-
ngAfterContentInit(): void;
|
|
46
|
-
pxToIn(px: any): number;
|
|
47
|
-
round(value: any, decimals: any): number;
|
|
48
|
-
deselect(): void;
|
|
49
|
-
deselectContent(): void;
|
|
50
|
-
selectAll(): void;
|
|
51
|
-
ngOnDestroy(): void;
|
|
52
|
-
private _setTransform;
|
|
53
|
-
private _triggerChanged;
|
|
54
|
-
private _initMoveable;
|
|
55
|
-
private _initEvents;
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockComponent, "fs-block", never, { "block": "block"; "html": "html"; "zoompan": "zoompan"; }, {}, never, never>;
|
|
58
|
-
}
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
3
|
+
import Moveable from 'moveable';
|
|
4
|
+
import { BlockEditorService } from './../../services';
|
|
5
|
+
import { Block } from './../../interfaces/block';
|
|
6
|
+
import { BlockType } from '../../enums';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class FsBlockComponent implements OnDestroy, AfterContentInit, OnInit {
|
|
9
|
+
private _blockEditor;
|
|
10
|
+
private _elementRef;
|
|
11
|
+
private _cdRef;
|
|
12
|
+
element: ElementRef;
|
|
13
|
+
contentElement: ElementRef;
|
|
14
|
+
contentEditable: ElementRef;
|
|
15
|
+
block: Block;
|
|
16
|
+
html: string;
|
|
17
|
+
zoompan: FsZoomPanComponent;
|
|
18
|
+
transformating: boolean;
|
|
19
|
+
unit: any;
|
|
20
|
+
content: string;
|
|
21
|
+
BlockType: typeof BlockType;
|
|
22
|
+
private _moveable;
|
|
23
|
+
private _editable;
|
|
24
|
+
private _transformable;
|
|
25
|
+
private _rotateStart;
|
|
26
|
+
private _destroy$;
|
|
27
|
+
constructor(_blockEditor: BlockEditorService, _elementRef: ElementRef, _cdRef: ChangeDetectorRef);
|
|
28
|
+
get el(): any;
|
|
29
|
+
get moveable(): Moveable;
|
|
30
|
+
get editable(): any;
|
|
31
|
+
set elementGuidelines(value: any);
|
|
32
|
+
set editable(value: any);
|
|
33
|
+
set clippable(value: any);
|
|
34
|
+
get transformable(): boolean;
|
|
35
|
+
set transformable(value: boolean);
|
|
36
|
+
set width(value: any);
|
|
37
|
+
set height(value: any);
|
|
38
|
+
set top(value: any);
|
|
39
|
+
set left(value: any);
|
|
40
|
+
set rotate(value: any);
|
|
41
|
+
set index(value: any);
|
|
42
|
+
set keepRatio(value: any);
|
|
43
|
+
markForCheck(): void;
|
|
44
|
+
ngOnInit(): void;
|
|
45
|
+
ngAfterContentInit(): void;
|
|
46
|
+
pxToIn(px: any): number;
|
|
47
|
+
round(value: any, decimals: any): number;
|
|
48
|
+
deselect(): void;
|
|
49
|
+
deselectContent(): void;
|
|
50
|
+
selectAll(): void;
|
|
51
|
+
ngOnDestroy(): void;
|
|
52
|
+
private _setTransform;
|
|
53
|
+
private _triggerChanged;
|
|
54
|
+
private _initMoveable;
|
|
55
|
+
private _initEvents;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockComponent, "fs-block", never, { "block": "block"; "html": "html"; "zoompan": "zoompan"; }, {}, never, never>;
|
|
58
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
-
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
3
|
-
import { BlockEditorConfig } from './../../interfaces/block-editor-config';
|
|
4
|
-
import { BlockEditorService } from './../../services/block-editor.service';
|
|
5
|
-
import { Block } from './../../interfaces/block';
|
|
6
|
-
import { FsBlockEditorSidebarPanelDirective } from './../../directives/block-editor-sidebar-panel.directive';
|
|
7
|
-
import { SidebarComponent } from './../sidebar/sidebar.component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class FsBlockEditorComponent implements OnInit, OnDestroy {
|
|
10
|
-
private _el;
|
|
11
|
-
private _blockEditor;
|
|
12
|
-
sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
|
|
13
|
-
zoompan: FsZoomPanComponent;
|
|
14
|
-
artboardContainer: ElementRef;
|
|
15
|
-
sidebar: SidebarComponent;
|
|
16
|
-
artboard: ElementRef;
|
|
17
|
-
config: BlockEditorConfig;
|
|
18
|
-
blocks: Block<any>[];
|
|
19
|
-
private _destroy$;
|
|
20
|
-
constructor(_el: ElementRef, _blockEditor: BlockEditorService);
|
|
21
|
-
get el(): any;
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
zoomCenter(): void;
|
|
24
|
-
editorContainerClick(event: any): void;
|
|
25
|
-
ngOnDestroy(): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockEditorComponent, "fs-block-editor", never, { "config": "config"; }, {}, ["sidebarPanels"], never>;
|
|
28
|
-
}
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
3
|
+
import { BlockEditorConfig } from './../../interfaces/block-editor-config';
|
|
4
|
+
import { BlockEditorService } from './../../services/block-editor.service';
|
|
5
|
+
import { Block } from './../../interfaces/block';
|
|
6
|
+
import { FsBlockEditorSidebarPanelDirective } from './../../directives/block-editor-sidebar-panel.directive';
|
|
7
|
+
import { SidebarComponent } from './../sidebar/sidebar.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class FsBlockEditorComponent implements OnInit, OnDestroy {
|
|
10
|
+
private _el;
|
|
11
|
+
private _blockEditor;
|
|
12
|
+
sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
|
|
13
|
+
zoompan: FsZoomPanComponent;
|
|
14
|
+
artboardContainer: ElementRef;
|
|
15
|
+
sidebar: SidebarComponent;
|
|
16
|
+
artboard: ElementRef;
|
|
17
|
+
config: BlockEditorConfig;
|
|
18
|
+
blocks: Block<any>[];
|
|
19
|
+
private _destroy$;
|
|
20
|
+
constructor(_el: ElementRef, _blockEditor: BlockEditorService);
|
|
21
|
+
get el(): any;
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
zoomCenter(): void;
|
|
24
|
+
editorContainerClick(event: any): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockEditorComponent, "fs-block-editor", never, { "config": "config"; }, {}, ["sidebarPanels"], never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
3
|
+
import { FsBlockComponent } from '../block/block.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LayersReorderDialogComponent {
|
|
6
|
+
private _dialogRef;
|
|
7
|
+
fields: FsBlockComponent[];
|
|
8
|
+
blockTypeIcons: {};
|
|
9
|
+
constructor(_dialogData: unknown, _dialogRef: MatDialogRef<LayersReorderDialogComponent>);
|
|
10
|
+
swapItems(event: CdkDragDrop<FsBlockComponent>): void;
|
|
11
|
+
done(): void;
|
|
12
|
+
private _init;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayersReorderDialogComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayersReorderDialogComponent, "ng-component", never, {}, {}, never, never>;
|
|
15
|
+
}
|
|
@@ -1,76 +1,79 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
-
import { FsFile } from '@firestitch/file';
|
|
3
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
4
|
-
import { BlockEditorConfig } from '../../interfaces/block-editor-config';
|
|
5
|
-
import { BlockEditorService } from '../../services/block-editor.service';
|
|
6
|
-
import { Block } from '../../interfaces/block';
|
|
7
|
-
import { FsBlockEditorSidebarPanelDirective } from '../../directives/block-editor-sidebar-panel.directive';
|
|
8
|
-
import { BlockType } from '../../enums';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class SidebarComponent implements OnInit, OnDestroy {
|
|
11
|
-
private _el;
|
|
12
|
-
private _blockEditor;
|
|
13
|
-
private _cdRef;
|
|
14
|
-
private _prompt;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { FsFile } from '@firestitch/file';
|
|
3
|
+
import { FsPrompt } from '@firestitch/prompt';
|
|
4
|
+
import { BlockEditorConfig } from '../../interfaces/block-editor-config';
|
|
5
|
+
import { BlockEditorService } from '../../services/block-editor.service';
|
|
6
|
+
import { Block } from '../../interfaces/block';
|
|
7
|
+
import { FsBlockEditorSidebarPanelDirective } from '../../directives/block-editor-sidebar-panel.directive';
|
|
8
|
+
import { BlockType } from '../../enums';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class SidebarComponent implements OnInit, OnDestroy {
|
|
11
|
+
private _el;
|
|
12
|
+
private _blockEditor;
|
|
13
|
+
private _cdRef;
|
|
14
|
+
private _prompt;
|
|
15
|
+
private _document;
|
|
16
|
+
sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
|
|
17
|
+
config: BlockEditorConfig;
|
|
18
|
+
blocks: any;
|
|
19
|
+
zoomCenter: EventEmitter<any>;
|
|
20
|
+
block: Block;
|
|
21
|
+
BlockTypes: ({
|
|
22
|
+
value: BlockType;
|
|
23
|
+
name: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
accept?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
value: BlockType;
|
|
28
|
+
name: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
accept: string;
|
|
31
|
+
})[];
|
|
32
|
+
blockTypeNames: {};
|
|
33
|
+
blockTypeIcons: {};
|
|
34
|
+
clippable: any;
|
|
35
|
+
BlockType: typeof BlockType;
|
|
36
|
+
formats: any[];
|
|
37
|
+
private _destroy$;
|
|
38
|
+
constructor(_el: ElementRef, _blockEditor: BlockEditorService, _cdRef: ChangeDetectorRef, _prompt: FsPrompt, _document: any);
|
|
39
|
+
get el(): any;
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
verticalAlignClick(value: any): void;
|
|
42
|
+
boldClick(): void;
|
|
43
|
+
fontColorChange(value: any): void;
|
|
44
|
+
lineHeightChange(value: any): void;
|
|
45
|
+
fontSizeChange(value: any): void;
|
|
46
|
+
borderWidthChange(value: any): void;
|
|
47
|
+
italicClick(): void;
|
|
48
|
+
underlineClick(): void;
|
|
49
|
+
backgroundColorChange(value: any): void;
|
|
50
|
+
widthChange(value: any): void;
|
|
51
|
+
heightChange(value: any): void;
|
|
52
|
+
topChange(value: any): void;
|
|
53
|
+
leftChange(value: any): void;
|
|
54
|
+
rotateChange(value: any): void;
|
|
55
|
+
paddingChange(name: any, value: any): void;
|
|
56
|
+
paddingAllChange(value: any): void;
|
|
57
|
+
borderColorChange(value: any): void;
|
|
58
|
+
toggleKeepRatio(): void;
|
|
59
|
+
horizontalAlignClick(value: any): void;
|
|
60
|
+
shapeRound(name: any): void;
|
|
61
|
+
imageRemove(): void;
|
|
62
|
+
imageClip(): void;
|
|
63
|
+
shapeRadiusChange(value: any): void;
|
|
64
|
+
blockChangeProperty(value: any, name: any): void;
|
|
65
|
+
imageSelect(fsFile: FsFile): void;
|
|
66
|
+
blockRemoveClick(): void;
|
|
67
|
+
blockUpload(type: any, fsFile: FsFile): void;
|
|
68
|
+
blockAdd(type: BlockType): void;
|
|
69
|
+
layerMove(direction: any): void;
|
|
70
|
+
layerUp(): void;
|
|
71
|
+
layerDown(): void;
|
|
72
|
+
reorderLayers(): void;
|
|
73
|
+
blockChanged(block: Block<any>): void;
|
|
74
|
+
inputFocus(event: any): void;
|
|
75
|
+
ngOnDestroy(): void;
|
|
76
|
+
validNumeric(value: any): boolean;
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "sidebar", never, { "config": "config"; "blocks": "blocks"; }, { "zoomCenter": "zoomCenter"; }, ["sidebarPanels"], never>;
|
|
79
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BlockFormat, BlockType } from '../enums';
|
|
2
|
-
export declare const BlockFormats: {
|
|
3
|
-
value: BlockFormat;
|
|
4
|
-
name: string;
|
|
5
|
-
blockTypes: BlockType[];
|
|
6
|
-
}[];
|
|
1
|
+
import { BlockFormat, BlockType } from '../enums';
|
|
2
|
+
export declare const BlockFormats: {
|
|
3
|
+
value: BlockFormat;
|
|
4
|
+
name: string;
|
|
5
|
+
blockTypes: BlockType[];
|
|
6
|
+
}[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BlockType } from '../enums';
|
|
2
|
-
export declare const BlockTypes: ({
|
|
3
|
-
value: BlockType;
|
|
4
|
-
name: string;
|
|
5
|
-
icon: string;
|
|
6
|
-
accept?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
value: BlockType;
|
|
9
|
-
name: string;
|
|
10
|
-
icon: string;
|
|
11
|
-
accept: string;
|
|
12
|
-
})[];
|
|
1
|
+
import { BlockType } from '../enums';
|
|
2
|
+
export declare const BlockTypes: ({
|
|
3
|
+
value: BlockType;
|
|
4
|
+
name: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
accept?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
value: BlockType;
|
|
9
|
+
name: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
accept: string;
|
|
12
|
+
})[];
|
package/app/consts/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './block-types.const';
|
|
2
|
-
export * from './block-formats.const';
|
|
1
|
+
export * from './block-types.const';
|
|
2
|
+
export * from './block-formats.const';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FsBlockEditorMarginDirective {
|
|
4
|
-
private _elementRef;
|
|
5
|
-
constructor(_elementRef: ElementRef);
|
|
6
|
-
get element(): any;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorMarginDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsBlockEditorMarginDirective, "[fsBlockEditorMargin]", never, {}, {}, never>;
|
|
9
|
-
}
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsBlockEditorMarginDirective {
|
|
4
|
+
private _elementRef;
|
|
5
|
+
constructor(_elementRef: ElementRef);
|
|
6
|
+
get element(): any;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorMarginDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsBlockEditorMarginDirective, "[fsBlockEditorMargin]", never, {}, {}, never>;
|
|
9
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FsBlockEditorSidebarPanelDirective {
|
|
4
|
-
templateRef: TemplateRef<any>;
|
|
5
|
-
label: string;
|
|
6
|
-
show: boolean;
|
|
7
|
-
constructor(templateRef: TemplateRef<any>);
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorSidebarPanelDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsBlockEditorSidebarPanelDirective, "[fsBlockEditorSidebarPanel]", never, { "label": "label"; "show": "show"; }, {}, never>;
|
|
10
|
-
}
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsBlockEditorSidebarPanelDirective {
|
|
4
|
+
templateRef: TemplateRef<any>;
|
|
5
|
+
label: string;
|
|
6
|
+
show: boolean;
|
|
7
|
+
constructor(templateRef: TemplateRef<any>);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorSidebarPanelDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsBlockEditorSidebarPanelDirective, "[fsBlockEditorSidebarPanel]", never, { "label": "label"; "show": "show"; }, {}, never>;
|
|
10
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare enum BlockFormat {
|
|
2
|
-
Date = "date",
|
|
3
|
-
YYYYMMDD = "
|
|
4
|
-
Currency = "currency",
|
|
5
|
-
Number = "number"
|
|
6
|
-
}
|
|
1
|
+
export declare enum BlockFormat {
|
|
2
|
+
Date = "date",
|
|
3
|
+
YYYYMMDD = "YYYY/MM/DD",
|
|
4
|
+
Currency = "currency",
|
|
5
|
+
Number = "number"
|
|
6
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare enum BlockType {
|
|
2
|
-
Rectangle = "rectangle",
|
|
3
|
-
ShortText = "shorttext",
|
|
4
|
-
LongText = "longtext",
|
|
5
|
-
Image = "image",
|
|
6
|
-
RadioButton = "radiobutton",
|
|
7
|
-
Checkbox = "checkbox",
|
|
8
|
-
Signature = "signature",
|
|
9
|
-
Pdf = "pdf",
|
|
10
|
-
Date = "date"
|
|
11
|
-
}
|
|
1
|
+
export declare enum BlockType {
|
|
2
|
+
Rectangle = "rectangle",
|
|
3
|
+
ShortText = "shorttext",
|
|
4
|
+
LongText = "longtext",
|
|
5
|
+
Image = "image",
|
|
6
|
+
RadioButton = "radiobutton",
|
|
7
|
+
Checkbox = "checkbox",
|
|
8
|
+
Signature = "signature",
|
|
9
|
+
Pdf = "pdf",
|
|
10
|
+
Date = "date"
|
|
11
|
+
}
|
package/app/enums/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './block-type.enum';
|
|
2
|
-
export * from './block-format.enum';
|
|
1
|
+
export * from './block-type.enum';
|
|
2
|
+
export * from './block-format.enum';
|
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./components/block/block.component";
|
|
4
|
-
import * as i2 from "./components/block-editor/block-editor.component";
|
|
5
|
-
import * as i3 from "./directives/block-editor-sidebar-panel.directive";
|
|
6
|
-
import * as i4 from "./directives/block-editor-margin.directive";
|
|
7
|
-
import * as i5 from "./components/sidebar/sidebar.component";
|
|
8
|
-
import * as i6 from "./components/artboard/artboard.component";
|
|
9
|
-
import * as i7 from "
|
|
10
|
-
import * as i8 from "@angular/
|
|
11
|
-
import * as i9 from "@angular/
|
|
12
|
-
import * as i10 from "@angular/material/
|
|
13
|
-
import * as i11 from "@angular/material/
|
|
14
|
-
import * as i12 from "@angular/material/
|
|
15
|
-
import * as i13 from "@angular/material/
|
|
16
|
-
import * as i14 from "@angular/material/
|
|
17
|
-
import * as i15 from "@angular/material/
|
|
18
|
-
import * as i16 from "@
|
|
19
|
-
import * as i17 from "@
|
|
20
|
-
import * as i18 from "@
|
|
21
|
-
import * as i19 from "@firestitch/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./components/block/block.component";
|
|
4
|
+
import * as i2 from "./components/block-editor/block-editor.component";
|
|
5
|
+
import * as i3 from "./directives/block-editor-sidebar-panel.directive";
|
|
6
|
+
import * as i4 from "./directives/block-editor-margin.directive";
|
|
7
|
+
import * as i5 from "./components/sidebar/sidebar.component";
|
|
8
|
+
import * as i6 from "./components/artboard/artboard.component";
|
|
9
|
+
import * as i7 from "./components/layers-reorder-dialog/layers-reorder-dialog.component";
|
|
10
|
+
import * as i8 from "@angular/common";
|
|
11
|
+
import * as i9 from "@angular/forms";
|
|
12
|
+
import * as i10 from "@angular/material/icon";
|
|
13
|
+
import * as i11 from "@angular/material/button";
|
|
14
|
+
import * as i12 from "@angular/material/input";
|
|
15
|
+
import * as i13 from "@angular/material/form-field";
|
|
16
|
+
import * as i14 from "@angular/material/checkbox";
|
|
17
|
+
import * as i15 from "@angular/material/tooltip";
|
|
18
|
+
import * as i16 from "@angular/material/select";
|
|
19
|
+
import * as i17 from "@angular/material/list";
|
|
20
|
+
import * as i18 from "@angular/cdk/drag-drop";
|
|
21
|
+
import * as i19 from "@firestitch/file";
|
|
22
|
+
import * as i20 from "@firestitch/colorpicker";
|
|
23
|
+
import * as i21 from "@firestitch/menu";
|
|
24
|
+
import * as i22 from "@firestitch/zoom-pan";
|
|
25
|
+
import * as i23 from "@firestitch/dialog";
|
|
26
|
+
export declare class FsBlockEditorModule {
|
|
27
|
+
static forRoot(): ModuleWithProviders<FsBlockEditorModule>;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorModule, never>;
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsBlockEditorModule, [typeof i1.FsBlockComponent, typeof i2.FsBlockEditorComponent, typeof i3.FsBlockEditorSidebarPanelDirective, typeof i4.FsBlockEditorMarginDirective, typeof i5.SidebarComponent, typeof i6.ArtboardComponent, typeof i7.LayersReorderDialogComponent], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.MatIconModule, typeof i11.MatButtonModule, typeof i12.MatInputModule, typeof i13.MatFormFieldModule, typeof i14.MatCheckboxModule, typeof i15.MatTooltipModule, typeof i16.MatSelectModule, typeof i17.MatListModule, typeof i18.DragDropModule, typeof i19.FsFileModule, typeof i20.FsColorPickerModule, typeof i21.FsMenuModule, typeof i22.FsZoomPanModule, typeof i23.FsDialogModule], [typeof i1.FsBlockComponent, typeof i2.FsBlockEditorComponent, typeof i3.FsBlockEditorSidebarPanelDirective]>;
|
|
30
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FsBlockEditorModule>;
|
|
31
|
+
}
|