@firestitch/block-editor 12.3.17 → 12.3.18

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 (57) hide show
  1. package/app/components/artboard/artboard.component.d.ts +31 -31
  2. package/app/components/block/block.component.d.ts +71 -71
  3. package/app/components/block-editor/block-editor.component.d.ts +28 -29
  4. package/app/components/font/font.component.d.ts +12 -12
  5. package/app/components/font/index.d.ts +1 -1
  6. package/app/components/index.d.ts +1 -1
  7. package/app/components/layers-reorder-dialog/layers-reorder-dialog.component.d.ts +15 -15
  8. package/app/components/sidebar/sidebar.component.d.ts +81 -81
  9. package/app/consts/block-formats.const.d.ts +6 -6
  10. package/app/consts/block-types.const.d.ts +14 -14
  11. package/app/consts/index.d.ts +2 -2
  12. package/app/directives/block-editor-margin.directive.d.ts +9 -9
  13. package/app/directives/block-editor-sidebar-panel.directive.d.ts +10 -10
  14. package/app/enums/block-format.enum.d.ts +6 -6
  15. package/app/enums/block-type.enum.d.ts +11 -11
  16. package/app/enums/index.d.ts +2 -2
  17. package/app/fs-block-editor.module.d.ts +33 -33
  18. package/app/interfaces/block-editor-config.d.ts +19 -19
  19. package/app/interfaces/block.d.ts +63 -63
  20. package/app/interfaces/index.d.ts +2 -2
  21. package/app/services/block-editor.service.d.ts +57 -57
  22. package/app/services/blocks-store.service.d.ts +34 -34
  23. package/app/services/google-font.service.d.ts +15 -15
  24. package/app/services/index.d.ts +2 -2
  25. package/bundles/firestitch-block-editor.umd.js +1983 -1992
  26. package/bundles/firestitch-block-editor.umd.js.map +1 -1
  27. package/esm2015/app/components/artboard/artboard.component.js +108 -108
  28. package/esm2015/app/components/block/block.component.js +476 -476
  29. package/esm2015/app/components/block-editor/block-editor.component.js +86 -95
  30. package/esm2015/app/components/font/font.component.js +31 -31
  31. package/esm2015/app/components/font/index.js +1 -1
  32. package/esm2015/app/components/index.js +1 -1
  33. package/esm2015/app/components/layers-reorder-dialog/layers-reorder-dialog.component.js +43 -43
  34. package/esm2015/app/components/sidebar/sidebar.component.js +248 -248
  35. package/esm2015/app/consts/block-formats.const.js +7 -7
  36. package/esm2015/app/consts/block-types.const.js +12 -12
  37. package/esm2015/app/consts/index.js +2 -2
  38. package/esm2015/app/directives/block-editor-margin.directive.js +18 -18
  39. package/esm2015/app/directives/block-editor-sidebar-panel.directive.js +20 -20
  40. package/esm2015/app/enums/block-format.enum.js +7 -7
  41. package/esm2015/app/enums/block-type.enum.js +12 -12
  42. package/esm2015/app/enums/index.js +2 -2
  43. package/esm2015/app/fs-block-editor.module.js +125 -125
  44. package/esm2015/app/interfaces/block-editor-config.js +1 -1
  45. package/esm2015/app/interfaces/block.js +1 -1
  46. package/esm2015/app/interfaces/index.js +2 -2
  47. package/esm2015/app/services/block-editor.service.js +169 -169
  48. package/esm2015/app/services/blocks-store.service.js +189 -189
  49. package/esm2015/app/services/google-font.service.js +37 -37
  50. package/esm2015/app/services/index.js +2 -2
  51. package/esm2015/firestitch-block-editor.js +4 -4
  52. package/esm2015/public_api.js +6 -6
  53. package/fesm2015/firestitch-block-editor.js +1436 -1445
  54. package/fesm2015/firestitch-block-editor.js.map +1 -1
  55. package/firestitch-block-editor.d.ts +5 -5
  56. package/package.json +1 -1
  57. package/public_api.d.ts +8 -8
@@ -1,31 +1,31 @@
1
- import { ChangeDetectorRef, ElementRef, 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, OnDestroy {
12
- private _el;
13
- private _blockEditor;
14
- private _cdRef;
15
- sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
16
- blockComponents: QueryList<FsBlockComponent>;
17
- artboard: ElementRef;
18
- marginContainer: ElementRef;
19
- margins: QueryList<FsBlockEditorMarginDirective>;
20
- sidebar: SidebarComponent;
21
- config: BlockEditorConfig;
22
- zoompan: FsZoomPanComponent;
23
- blocks: Block[];
24
- private _destroy$;
25
- constructor(_el: ElementRef, _blockEditor: BlockEditorService, _cdRef: ChangeDetectorRef);
26
- get el(): any;
27
- ngOnInit(): void;
28
- ngOnDestroy(): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<ArtboardComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<ArtboardComponent, "app-artboard", never, { "config": "config"; "zoompan": "zoompan"; }, {}, ["sidebarPanels"], never>;
31
- }
1
+ import { ChangeDetectorRef, ElementRef, 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, OnDestroy {
12
+ private _el;
13
+ private _blockEditor;
14
+ private _cdRef;
15
+ sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
16
+ blockComponents: QueryList<FsBlockComponent>;
17
+ artboard: ElementRef;
18
+ marginContainer: ElementRef;
19
+ margins: QueryList<FsBlockEditorMarginDirective>;
20
+ sidebar: SidebarComponent;
21
+ config: BlockEditorConfig;
22
+ zoompan: FsZoomPanComponent;
23
+ blocks: Block[];
24
+ private _destroy$;
25
+ constructor(_el: ElementRef, _blockEditor: BlockEditorService, _cdRef: ChangeDetectorRef);
26
+ get el(): any;
27
+ ngOnInit(): void;
28
+ ngOnDestroy(): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArtboardComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArtboardComponent, "app-artboard", never, { "config": "config"; "zoompan": "zoompan"; }, {}, ["sidebarPanels"], never>;
31
+ }
@@ -1,71 +1,71 @@
1
- import { AfterContentInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import { FsZoomPanComponent } from '@firestitch/zoom-pan';
3
- import Moveable from 'moveable';
4
- import { BlockType } from '../../enums';
5
- import { Block } from './../../interfaces';
6
- import { BlockEditorService, GoogleFontService } from './../../services';
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
- private _googleFontService;
13
- element: ElementRef;
14
- contentElement: ElementRef;
15
- contentEditable: ElementRef;
16
- block: Block;
17
- html: string;
18
- zoompan: FsZoomPanComponent;
19
- transformating: boolean;
20
- unit: any;
21
- content: any;
22
- selected: any;
23
- BlockType: typeof BlockType;
24
- private _moveable;
25
- private _editable;
26
- private _transformable;
27
- private _destroy$;
28
- constructor(_blockEditor: BlockEditorService, _elementRef: ElementRef, _cdRef: ChangeDetectorRef, _googleFontService: GoogleFontService);
29
- get el(): any;
30
- get moveable(): Moveable;
31
- get editable(): any;
32
- get styleTop(): string;
33
- get styleLeft(): string;
34
- get styleWidth(): string;
35
- get styleHeight(): string;
36
- get styleImageHeight(): string;
37
- get styleImageWidth(): string;
38
- get styleImageTop(): string;
39
- get styleImageLeft(): string;
40
- get styleClipPath(): string;
41
- get styleBoxShadow(): string;
42
- set elementGuidelines(value: any);
43
- set editable(value: any);
44
- get clippable(): boolean;
45
- set clippable(value: boolean);
46
- get transformable(): boolean;
47
- set transformable(value: boolean);
48
- set rotate(value: any);
49
- set index(value: any);
50
- set keepRatio(value: any);
51
- markForCheck(): void;
52
- ngOnInit(): void;
53
- ngAfterContentInit(): void;
54
- pxToIn(px: any): number;
55
- round(value: any, decimals: any): number;
56
- select(): void;
57
- deselect(): void;
58
- disableContentEdit(): void;
59
- deselectContent(): void;
60
- selectAll(): void;
61
- ngOnDestroy(): void;
62
- private _setTransform;
63
- private _triggerChanged;
64
- private _updateElementGuidelines;
65
- private _updateMoveable;
66
- private _initMoveable;
67
- private _initEvents;
68
- private _initFonts;
69
- static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockComponent, never>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockComponent, "fs-block", never, { "block": "block"; "html": "html"; "zoompan": "zoompan"; }, {}, never, never>;
71
- }
1
+ import { AfterContentInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { FsZoomPanComponent } from '@firestitch/zoom-pan';
3
+ import Moveable from 'moveable';
4
+ import { BlockType } from '../../enums';
5
+ import { Block } from './../../interfaces';
6
+ import { BlockEditorService, GoogleFontService } from './../../services';
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
+ private _googleFontService;
13
+ element: ElementRef;
14
+ contentElement: ElementRef;
15
+ contentEditable: ElementRef;
16
+ block: Block;
17
+ html: string;
18
+ zoompan: FsZoomPanComponent;
19
+ transformating: boolean;
20
+ unit: any;
21
+ content: any;
22
+ selected: any;
23
+ BlockType: typeof BlockType;
24
+ private _moveable;
25
+ private _editable;
26
+ private _transformable;
27
+ private _destroy$;
28
+ constructor(_blockEditor: BlockEditorService, _elementRef: ElementRef, _cdRef: ChangeDetectorRef, _googleFontService: GoogleFontService);
29
+ get el(): any;
30
+ get moveable(): Moveable;
31
+ get editable(): any;
32
+ get styleTop(): string;
33
+ get styleLeft(): string;
34
+ get styleWidth(): string;
35
+ get styleHeight(): string;
36
+ get styleImageHeight(): string;
37
+ get styleImageWidth(): string;
38
+ get styleImageTop(): string;
39
+ get styleImageLeft(): string;
40
+ get styleClipPath(): string;
41
+ get styleBoxShadow(): string;
42
+ set elementGuidelines(value: any);
43
+ set editable(value: any);
44
+ get clippable(): boolean;
45
+ set clippable(value: boolean);
46
+ get transformable(): boolean;
47
+ set transformable(value: boolean);
48
+ set rotate(value: any);
49
+ set index(value: any);
50
+ set keepRatio(value: any);
51
+ markForCheck(): void;
52
+ ngOnInit(): void;
53
+ ngAfterContentInit(): void;
54
+ pxToIn(px: any): number;
55
+ round(value: any, decimals: any): number;
56
+ select(): void;
57
+ deselect(): void;
58
+ disableContentEdit(): void;
59
+ deselectContent(): void;
60
+ selectAll(): void;
61
+ ngOnDestroy(): void;
62
+ private _setTransform;
63
+ private _triggerChanged;
64
+ private _updateElementGuidelines;
65
+ private _updateMoveable;
66
+ private _initMoveable;
67
+ private _initEvents;
68
+ private _initFonts;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockComponent, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockComponent, "fs-block", never, { "block": "block"; "html": "html"; "zoompan": "zoompan"; }, {}, never, never>;
71
+ }
@@ -1,29 +1,28 @@
1
- import { ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
2
- import { FsZoomPanComponent } from '@firestitch/zoom-pan';
3
- import { FsBlockEditorSidebarPanelDirective } from './../../directives/block-editor-sidebar-panel.directive';
4
- import { Block } from './../../interfaces/block';
5
- import { BlockEditorConfig } from './../../interfaces/block-editor-config';
6
- import { BlockEditorService } from './../../services/block-editor.service';
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[];
19
- private _destroy$;
20
- constructor(_el: ElementRef, _blockEditor: BlockEditorService);
21
- get el(): any;
22
- ngOnInit(): void;
23
- zoomCenter(): void;
24
- editorContainerKeyDown(event: KeyboardEvent): void;
25
- editorContainerClick(event: any): void;
26
- ngOnDestroy(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<FsBlockEditorComponent, "fs-block-editor", never, { "config": "config"; }, {}, ["sidebarPanels"], never>;
29
- }
1
+ import { ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
2
+ import { FsZoomPanComponent } from '@firestitch/zoom-pan';
3
+ import { FsBlockEditorSidebarPanelDirective } from './../../directives/block-editor-sidebar-panel.directive';
4
+ import { Block } from './../../interfaces/block';
5
+ import { BlockEditorConfig } from './../../interfaces/block-editor-config';
6
+ import { BlockEditorService } from './../../services/block-editor.service';
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[];
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,12 +1,12 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { GoogleFontService } from '../../services/google-font.service';
3
- import * as i0 from "@angular/core";
4
- export declare class FontComponent implements OnInit {
5
- private _el;
6
- private _googleFontService;
7
- font: any;
8
- constructor(_el: ElementRef, _googleFontService: GoogleFontService);
9
- ngOnInit(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<FontComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<FontComponent, "app-font", never, { "font": "font"; }, {}, never, never>;
12
- }
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { GoogleFontService } from '../../services/google-font.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FontComponent implements OnInit {
5
+ private _el;
6
+ private _googleFontService;
7
+ font: any;
8
+ constructor(_el: ElementRef, _googleFontService: GoogleFontService);
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FontComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<FontComponent, "app-font", never, { "font": "font"; }, {}, never, never>;
12
+ }
@@ -1 +1 @@
1
- export * from './font.component';
1
+ export * from './font.component';
@@ -1 +1 @@
1
- export * from './font';
1
+ export * from './font';
@@ -1,15 +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
- blockComponents: 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
+ 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
+ blockComponents: 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,81 +1,81 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { FsFile } from '@firestitch/file';
4
- import { FsPrompt } from '@firestitch/prompt';
5
- import { FsBlockEditorSidebarPanelDirective } from '../../directives/block-editor-sidebar-panel.directive';
6
- import { BlockType } from '../../enums';
7
- import { Block } from '../../interfaces/block';
8
- import { BlockEditorConfig } from '../../interfaces/block-editor-config';
9
- import { BlockEditorService, GoogleFontService } from '../../services';
10
- import * as i0 from "@angular/core";
11
- export declare class SidebarComponent implements OnInit, OnDestroy {
12
- private _el;
13
- private _blockEditor;
14
- private _cdRef;
15
- private _prompt;
16
- private _googleFontService;
17
- private _document;
18
- sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
19
- config: BlockEditorConfig;
20
- blocks: any;
21
- zoomCenter: EventEmitter<any>;
22
- block: Block;
23
- BlockTypes: ({
24
- value: BlockType;
25
- name: string;
26
- icon: string;
27
- type: string;
28
- accept?: undefined;
29
- } | {
30
- value: BlockType;
31
- name: string;
32
- icon: string;
33
- accept: string;
34
- type: string;
35
- })[];
36
- blockTypeNames: {};
37
- blockTypeIcons: {};
38
- clippable: boolean;
39
- BlockType: typeof BlockType;
40
- formats: any[];
41
- private _destroy$;
42
- constructor(_el: ElementRef, _blockEditor: BlockEditorService, _cdRef: ChangeDetectorRef, _prompt: FsPrompt, _googleFontService: GoogleFontService, _document: any);
43
- get el(): any;
44
- ngOnInit(): void;
45
- fontFetch: (value: any) => Observable<any>;
46
- fontDisplayWith: (value: any) => string;
47
- fontChanged(font: any): void;
48
- verticalAlignClick(value: any): void;
49
- boldClick(): void;
50
- toggleLock(): void;
51
- fontColorChange(value: any): void;
52
- italicClick(): void;
53
- underlineClick(): void;
54
- backgroundColorChange(value: any): void;
55
- shadowColorChange(value: any): void;
56
- paddingAllChange(value: any): void;
57
- paddingKeypress(event: KeyboardEvent, name: any): void;
58
- paddingAllKeypress(event: KeyboardEvent, unit?: number): void;
59
- borderColorChange(value: any): void;
60
- toggleKeepRatio(): void;
61
- horizontalAlignClick(value: any): void;
62
- shapeRound(name: any): void;
63
- numberChange(value: any, name: any): void;
64
- imageRemove(): void;
65
- imageClip(): void;
66
- blockChangeProperty(value: any, name: any): void;
67
- imageSelect(fsFile: FsFile): void;
68
- blockRemoveClick(): void;
69
- blockUpload(type: any, fsFile: FsFile): void;
70
- blockAdd(type: BlockType): void;
71
- layerMove(direction: any): void;
72
- layerUp(): void;
73
- layerDown(): void;
74
- reorderLayers(): void;
75
- inputFocus(event: any): void;
76
- numericInputKeypress(event: KeyboardEvent, name: any, unit?: number): void;
77
- ngOnDestroy(): void;
78
- validNumeric(value: any): boolean;
79
- static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "sidebar", never, { "config": "config"; "blocks": "blocks"; }, { "zoomCenter": "zoomCenter"; }, ["sidebarPanels"], never>;
81
- }
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { FsFile } from '@firestitch/file';
4
+ import { FsPrompt } from '@firestitch/prompt';
5
+ import { FsBlockEditorSidebarPanelDirective } from '../../directives/block-editor-sidebar-panel.directive';
6
+ import { BlockType } from '../../enums';
7
+ import { Block } from '../../interfaces/block';
8
+ import { BlockEditorConfig } from '../../interfaces/block-editor-config';
9
+ import { BlockEditorService, GoogleFontService } from '../../services';
10
+ import * as i0 from "@angular/core";
11
+ export declare class SidebarComponent implements OnInit, OnDestroy {
12
+ private _el;
13
+ private _blockEditor;
14
+ private _cdRef;
15
+ private _prompt;
16
+ private _googleFontService;
17
+ private _document;
18
+ sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;
19
+ config: BlockEditorConfig;
20
+ blocks: any;
21
+ zoomCenter: EventEmitter<any>;
22
+ block: Block;
23
+ BlockTypes: ({
24
+ value: BlockType;
25
+ name: string;
26
+ icon: string;
27
+ type: string;
28
+ accept?: undefined;
29
+ } | {
30
+ value: BlockType;
31
+ name: string;
32
+ icon: string;
33
+ accept: string;
34
+ type: string;
35
+ })[];
36
+ blockTypeNames: {};
37
+ blockTypeIcons: {};
38
+ clippable: boolean;
39
+ BlockType: typeof BlockType;
40
+ formats: any[];
41
+ private _destroy$;
42
+ constructor(_el: ElementRef, _blockEditor: BlockEditorService, _cdRef: ChangeDetectorRef, _prompt: FsPrompt, _googleFontService: GoogleFontService, _document: any);
43
+ get el(): any;
44
+ ngOnInit(): void;
45
+ fontFetch: (value: any) => Observable<any>;
46
+ fontDisplayWith: (value: any) => string;
47
+ fontChanged(font: any): void;
48
+ verticalAlignClick(value: any): void;
49
+ boldClick(): void;
50
+ toggleLock(): void;
51
+ fontColorChange(value: any): void;
52
+ italicClick(): void;
53
+ underlineClick(): void;
54
+ backgroundColorChange(value: any): void;
55
+ shadowColorChange(value: any): void;
56
+ paddingAllChange(value: any): void;
57
+ paddingKeypress(event: KeyboardEvent, name: any): void;
58
+ paddingAllKeypress(event: KeyboardEvent, unit?: number): void;
59
+ borderColorChange(value: any): void;
60
+ toggleKeepRatio(): void;
61
+ horizontalAlignClick(value: any): void;
62
+ shapeRound(name: any): void;
63
+ numberChange(value: any, name: any): void;
64
+ imageRemove(): void;
65
+ imageClip(): void;
66
+ blockChangeProperty(value: any, name: any): void;
67
+ imageSelect(fsFile: FsFile): void;
68
+ blockRemoveClick(): void;
69
+ blockUpload(type: any, fsFile: FsFile): void;
70
+ blockAdd(type: BlockType): void;
71
+ layerMove(direction: any): void;
72
+ layerUp(): void;
73
+ layerDown(): void;
74
+ reorderLayers(): void;
75
+ inputFocus(event: any): void;
76
+ numericInputKeypress(event: KeyboardEvent, name: any, unit?: number): void;
77
+ ngOnDestroy(): void;
78
+ validNumeric(value: any): boolean;
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
80
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "sidebar", never, { "config": "config"; "blocks": "blocks"; }, { "zoomCenter": "zoomCenter"; }, ["sidebarPanels"], never>;
81
+ }
@@ -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,14 +1,14 @@
1
- import { BlockType } from '../enums';
2
- export declare const BlockTypes: ({
3
- value: BlockType;
4
- name: string;
5
- icon: string;
6
- type: string;
7
- accept?: undefined;
8
- } | {
9
- value: BlockType;
10
- name: string;
11
- icon: string;
12
- accept: string;
13
- type: string;
14
- })[];
1
+ import { BlockType } from '../enums';
2
+ export declare const BlockTypes: ({
3
+ value: BlockType;
4
+ name: string;
5
+ icon: string;
6
+ type: string;
7
+ accept?: undefined;
8
+ } | {
9
+ value: BlockType;
10
+ name: string;
11
+ icon: string;
12
+ accept: string;
13
+ type: string;
14
+ })[];
@@ -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 = "YYYY/MM/DD",
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
+ }
@@ -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';