@firestitch/block-editor 12.1.5 → 12.1.6

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.
Files changed (43) hide show
  1. package/app/components/artboard/artboard.component.d.ts +35 -35
  2. package/app/components/block/block.component.d.ts +58 -58
  3. package/app/components/block-editor/block-editor.component.d.ts +28 -28
  4. package/app/components/sidebar/sidebar.component.d.ts +76 -75
  5. package/app/consts/block-formats.const.d.ts +6 -0
  6. package/app/consts/block-types.const.d.ts +12 -12
  7. package/app/consts/index.d.ts +2 -1
  8. package/app/directives/block-editor-margin.directive.d.ts +9 -9
  9. package/app/directives/block-editor-sidebar-panel.directive.d.ts +10 -10
  10. package/app/enums/block-format.enum.d.ts +6 -0
  11. package/app/enums/block-type.enum.d.ts +11 -11
  12. package/app/enums/index.d.ts +2 -1
  13. package/app/fs-block-editor.module.d.ts +27 -26
  14. package/app/interfaces/block-editor-config.d.ts +20 -20
  15. package/app/interfaces/block.d.ts +48 -48
  16. package/app/services/block-editor.service.d.ts +54 -54
  17. package/app/services/index.d.ts +1 -1
  18. package/bundles/firestitch-block-editor.umd.js +1550 -1527
  19. package/bundles/firestitch-block-editor.umd.js.map +1 -1
  20. package/esm2015/app/components/artboard/artboard.component.js +128 -128
  21. package/esm2015/app/components/block/block.component.js +316 -316
  22. package/esm2015/app/components/block-editor/block-editor.component.js +83 -83
  23. package/esm2015/app/components/sidebar/sidebar.component.js +242 -237
  24. package/esm2015/app/consts/block-formats.const.js +8 -0
  25. package/esm2015/app/consts/block-types.const.js +12 -12
  26. package/esm2015/app/consts/index.js +3 -2
  27. package/esm2015/app/directives/block-editor-margin.directive.js +18 -18
  28. package/esm2015/app/directives/block-editor-sidebar-panel.directive.js +20 -20
  29. package/esm2015/app/enums/block-format.enum.js +8 -0
  30. package/esm2015/app/enums/block-type.enum.js +12 -12
  31. package/esm2015/app/enums/index.js +3 -2
  32. package/esm2015/app/fs-block-editor.module.js +98 -94
  33. package/esm2015/app/interfaces/block-editor-config.js +1 -1
  34. package/esm2015/app/interfaces/block.js +1 -1
  35. package/esm2015/app/services/block-editor.service.js +244 -244
  36. package/esm2015/app/services/index.js +1 -1
  37. package/esm2015/firestitch-block-editor.js +4 -4
  38. package/esm2015/public_api.js +6 -6
  39. package/fesm2015/firestitch-block-editor.js +1095 -1071
  40. package/fesm2015/firestitch-block-editor.js.map +1 -1
  41. package/firestitch-block-editor.d.ts +5 -5
  42. package/package.json +1 -1
  43. 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
+ }
@@ -1,75 +1,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
- sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
16
- config: BlockEditorConfig;
17
- blocks: any;
18
- zoomCenter: EventEmitter<any>;
19
- block: Block;
20
- BlockTypes: ({
21
- value: BlockType;
22
- name: string;
23
- icon: string;
24
- accept?: undefined;
25
- } | {
26
- value: BlockType;
27
- name: string;
28
- icon: string;
29
- accept: string;
30
- })[];
31
- blockTypeNames: {};
32
- clippable: any;
33
- BlockType: typeof BlockType;
34
- private _destroy$;
35
- constructor(_el: ElementRef, _blockEditor: BlockEditorService, _cdRef: ChangeDetectorRef, _prompt: FsPrompt);
36
- get el(): any;
37
- ngOnInit(): void;
38
- verticalAlignClick(value: any): void;
39
- boldClick(): void;
40
- fontColorChange(value: any): void;
41
- lineHeightChange(value: any): void;
42
- fontSizeChange(value: any): void;
43
- borderWidthChange(value: any): void;
44
- italicClick(): void;
45
- underlineClick(): void;
46
- backgroundColorChange(value: any): void;
47
- widthChange(value: any): void;
48
- heightChange(value: any): void;
49
- topChange(value: any): void;
50
- leftChange(value: any): void;
51
- rotateChange(value: any): void;
52
- paddingChange(name: any, value: any): void;
53
- paddingAllChange(value: any): void;
54
- borderColorChange(value: any): void;
55
- toggleKeepRatio(): void;
56
- horizontalAlignClick(value: any): void;
57
- shapeRound(name: any): void;
58
- imageRemove(): void;
59
- imageClip(): void;
60
- shapeRadiusChange(value: any): void;
61
- blockChangeProperty(value: any, name: any): void;
62
- imageSelect(fsFile: FsFile): void;
63
- blockRemoveClick(): void;
64
- blockUpload(blockType: any, fsFile: FsFile): void;
65
- blockAdd(type: BlockType): void;
66
- layerMove(direction: any): void;
67
- layerUp(): void;
68
- layerDown(): void;
69
- blockChanged(block: Block<any>): void;
70
- inputFocus(event: any): void;
71
- ngOnDestroy(): void;
72
- validNumeric(value: any): boolean;
73
- static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
74
- static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "sidebar", never, { "config": "config"; "blocks": "blocks"; }, { "zoomCenter": "zoomCenter"; }, ["sidebarPanels"], never>;
75
- }
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
+ sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
16
+ config: BlockEditorConfig;
17
+ blocks: any;
18
+ zoomCenter: EventEmitter<any>;
19
+ block: Block;
20
+ BlockTypes: ({
21
+ value: BlockType;
22
+ name: string;
23
+ icon: string;
24
+ accept?: undefined;
25
+ } | {
26
+ value: BlockType;
27
+ name: string;
28
+ icon: string;
29
+ accept: string;
30
+ })[];
31
+ blockTypeNames: {};
32
+ clippable: any;
33
+ BlockType: typeof BlockType;
34
+ formats: any[];
35
+ private _destroy$;
36
+ constructor(_el: ElementRef, _blockEditor: BlockEditorService, _cdRef: ChangeDetectorRef, _prompt: FsPrompt);
37
+ get el(): any;
38
+ ngOnInit(): void;
39
+ verticalAlignClick(value: any): void;
40
+ boldClick(): void;
41
+ fontColorChange(value: any): void;
42
+ lineHeightChange(value: any): void;
43
+ fontSizeChange(value: any): void;
44
+ borderWidthChange(value: any): void;
45
+ italicClick(): void;
46
+ underlineClick(): void;
47
+ backgroundColorChange(value: any): void;
48
+ widthChange(value: any): void;
49
+ heightChange(value: any): void;
50
+ topChange(value: any): void;
51
+ leftChange(value: any): void;
52
+ rotateChange(value: any): void;
53
+ paddingChange(name: any, value: any): void;
54
+ paddingAllChange(value: any): void;
55
+ borderColorChange(value: any): void;
56
+ toggleKeepRatio(): void;
57
+ horizontalAlignClick(value: any): void;
58
+ shapeRound(name: any): void;
59
+ imageRemove(): void;
60
+ imageClip(): void;
61
+ shapeRadiusChange(value: any): void;
62
+ blockChangeProperty(value: any, name: any): void;
63
+ imageSelect(fsFile: FsFile): void;
64
+ blockRemoveClick(): void;
65
+ blockUpload(blockType: any, fsFile: FsFile): void;
66
+ blockAdd(type: BlockType): void;
67
+ layerMove(direction: any): void;
68
+ layerUp(): void;
69
+ layerDown(): void;
70
+ blockChanged(block: Block<any>): void;
71
+ inputFocus(event: any): void;
72
+ ngOnDestroy(): void;
73
+ validNumeric(value: any): boolean;
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
75
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "sidebar", never, { "config": "config"; "blocks": "blocks"; }, { "zoomCenter": "zoomCenter"; }, ["sidebarPanels"], never>;
76
+ }
@@ -0,0 +1,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
+ })[];
@@ -1 +1,2 @@
1
- export * from './block-types.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
+ }
@@ -0,0 +1,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
+ }
@@ -1 +1,2 @@
1
- export * from './block-type.enum';
1
+ export * from './block-type.enum';
2
+ export * from './block-format.enum';
@@ -1,26 +1,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 "@angular/common";
10
- import * as i8 from "@angular/forms";
11
- import * as i9 from "@angular/material/icon";
12
- import * as i10 from "@angular/material/button";
13
- import * as i11 from "@angular/material/input";
14
- import * as i12 from "@angular/material/form-field";
15
- import * as i13 from "@angular/material/checkbox";
16
- import * as i14 from "@angular/material/tooltip";
17
- import * as i15 from "@firestitch/file";
18
- import * as i16 from "@firestitch/colorpicker";
19
- import * as i17 from "@firestitch/menu";
20
- import * as i18 from "@firestitch/zoom-pan";
21
- export declare class FsBlockEditorModule {
22
- static forRoot(): ModuleWithProviders<FsBlockEditorModule>;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorModule, never>;
24
- 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.CommonModule, typeof i8.FormsModule, typeof i9.MatIconModule, typeof i10.MatButtonModule, typeof i11.MatInputModule, typeof i12.MatFormFieldModule, typeof i13.MatCheckboxModule, typeof i14.MatTooltipModule, typeof i15.FsFileModule, typeof i16.FsColorPickerModule, typeof i17.FsMenuModule, typeof i18.FsZoomPanModule], [typeof i1.FsBlockComponent, typeof i2.FsBlockEditorComponent, typeof i3.FsBlockEditorSidebarPanelDirective]>;
25
- static ɵinj: i0.ɵɵInjectorDeclaration<FsBlockEditorModule>;
26
- }
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 "@angular/common";
10
+ import * as i8 from "@angular/forms";
11
+ import * as i9 from "@angular/material/icon";
12
+ import * as i10 from "@angular/material/button";
13
+ import * as i11 from "@angular/material/input";
14
+ import * as i12 from "@angular/material/form-field";
15
+ import * as i13 from "@angular/material/checkbox";
16
+ import * as i14 from "@angular/material/tooltip";
17
+ import * as i15 from "@angular/material/select";
18
+ import * as i16 from "@firestitch/file";
19
+ import * as i17 from "@firestitch/colorpicker";
20
+ import * as i18 from "@firestitch/menu";
21
+ import * as i19 from "@firestitch/zoom-pan";
22
+ export declare class FsBlockEditorModule {
23
+ static forRoot(): ModuleWithProviders<FsBlockEditorModule>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorModule, never>;
25
+ 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.CommonModule, typeof i8.FormsModule, typeof i9.MatIconModule, typeof i10.MatButtonModule, typeof i11.MatInputModule, typeof i12.MatFormFieldModule, typeof i13.MatCheckboxModule, typeof i14.MatTooltipModule, typeof i15.MatSelectModule, typeof i16.FsFileModule, typeof i17.FsColorPickerModule, typeof i18.FsMenuModule, typeof i19.FsZoomPanModule], [typeof i1.FsBlockComponent, typeof i2.FsBlockEditorComponent, typeof i3.FsBlockEditorSidebarPanelDirective]>;
26
+ static ɵinj: i0.ɵɵInjectorDeclaration<FsBlockEditorModule>;
27
+ }
@@ -1,20 +1,20 @@
1
- import { Observable } from 'rxjs';
2
- import { Block } from './block';
3
- export interface BlockEditorConfig {
4
- unit?: 'in' | 'px';
5
- width?: number;
6
- height?: number;
7
- marginTop?: number;
8
- marginRight?: number;
9
- marginBottom?: number;
10
- marginLeft?: number;
11
- blocks?: Block[];
12
- blockChanged?: (block: Block) => void;
13
- blockAdded?: (block: Block) => void;
14
- blockAdd?: (block: Block) => Observable<Block>;
15
- blockUpload?: (block: Block, file: Blob) => Observable<Block>;
16
- blocksRemove?: (block: Block[]) => Observable<Block>;
17
- blocksLevelChanged?: (blocks: Block[]) => void;
18
- blocksSelected?: (blocks: Block[]) => void;
19
- imageUpload?: (file: Blob) => Observable<string>;
20
- }
1
+ import { Observable } from 'rxjs';
2
+ import { Block } from './block';
3
+ export interface BlockEditorConfig {
4
+ unit?: 'in' | 'px';
5
+ width?: number;
6
+ height?: number;
7
+ marginTop?: number;
8
+ marginRight?: number;
9
+ marginBottom?: number;
10
+ marginLeft?: number;
11
+ blocks?: Block[];
12
+ blockChanged?: (block: Block) => void;
13
+ blockAdded?: (block: Block) => void;
14
+ blockAdd?: (block: Block) => Observable<Block>;
15
+ blockUpload?: (block: Block, file: Blob) => Observable<Block>;
16
+ blocksRemove?: (block: Block[]) => Observable<Block>;
17
+ blocksLevelChanged?: (blocks: Block[]) => void;
18
+ blocksSelected?: (blocks: Block[]) => void;
19
+ imageUpload?: (file: Blob) => Observable<string>;
20
+ }