@firestitch/block-editor 13.0.0 → 14.0.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 +32 -32
- package/app/components/block/block.component.d.ts +78 -78
- package/app/components/block/index.d.ts +1 -1
- package/app/components/block-editor/block-editor.component.d.ts +28 -28
- package/app/components/group/group-dialog.component.d.ts +17 -17
- package/app/components/group/index.d.ts +1 -1
- package/app/components/index.d.ts +1 -1
- package/app/components/layers-reorder-dialog/index.d.ts +1 -1
- package/app/components/layers-reorder-dialog/layers-reorder-dialog.component.d.ts +17 -17
- package/app/components/sidebar/index.d.ts +1 -1
- package/app/components/sidebar/sidebar.component.d.ts +93 -93
- package/app/consts/block-formats.const.d.ts +6 -6
- package/app/consts/block-types.const.d.ts +8 -8
- 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/directives/index.d.ts +2 -2
- 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 +37 -37
- package/app/interfaces/block-editor-config.d.ts +20 -20
- package/app/interfaces/block-group.d.ts +5 -5
- package/app/interfaces/block.d.ts +66 -66
- package/app/interfaces/index.d.ts +3 -3
- package/app/pipes/create-image-url.pipe.d.ts +10 -10
- package/app/services/block-editor.service.d.ts +64 -64
- package/app/services/blocks-store.service.d.ts +28 -28
- package/app/services/index.d.ts +1 -1
- package/esm2020/app/components/artboard/artboard.component.mjs +86 -86
- package/esm2020/app/components/block/block.component.mjs +546 -546
- package/esm2020/app/components/block/index.mjs +1 -1
- package/esm2020/app/components/block-editor/block-editor.component.mjs +81 -81
- package/esm2020/app/components/group/group-dialog.component.mjs +46 -46
- package/esm2020/app/components/group/index.mjs +1 -1
- package/esm2020/app/components/index.mjs +1 -1
- package/esm2020/app/components/layers-reorder-dialog/index.mjs +1 -1
- package/esm2020/app/components/layers-reorder-dialog/layers-reorder-dialog.component.mjs +41 -41
- package/esm2020/app/components/sidebar/index.mjs +1 -1
- package/esm2020/app/components/sidebar/sidebar.component.mjs +353 -353
- package/esm2020/app/consts/block-formats.const.mjs +7 -7
- package/esm2020/app/consts/block-types.const.mjs +12 -12
- package/esm2020/app/consts/index.mjs +2 -2
- package/esm2020/app/directives/block-editor-margin.directive.mjs +18 -18
- package/esm2020/app/directives/block-editor-sidebar-panel.directive.mjs +20 -20
- package/esm2020/app/directives/index.mjs +2 -2
- package/esm2020/app/enums/block-format.enum.mjs +7 -7
- package/esm2020/app/enums/block-type.enum.mjs +12 -12
- package/esm2020/app/enums/index.mjs +2 -2
- package/esm2020/app/fs-block-editor.module.mjs +133 -135
- package/esm2020/app/interfaces/block-editor-config.mjs +1 -1
- package/esm2020/app/interfaces/block-group.mjs +1 -1
- package/esm2020/app/interfaces/block.mjs +1 -1
- package/esm2020/app/interfaces/index.mjs +3 -3
- package/esm2020/app/pipes/create-image-url.pipe.mjs +18 -18
- package/esm2020/app/services/block-editor.service.mjs +286 -286
- package/esm2020/app/services/blocks-store.service.mjs +110 -110
- package/esm2020/app/services/index.mjs +1 -1
- package/esm2020/firestitch-block-editor.mjs +4 -4
- package/esm2020/public_api.mjs +6 -6
- package/fesm2015/firestitch-block-editor.mjs +1586 -1588
- package/fesm2015/firestitch-block-editor.mjs.map +1 -1
- package/fesm2020/firestitch-block-editor.mjs +1619 -1621
- package/fesm2020/firestitch-block-editor.mjs.map +1 -1
- package/{firestitch-block-editor.d.ts → index.d.ts} +5 -5
- package/package.json +3 -3
- package/public_api.d.ts +8 -8
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './block-editor-margin.directive';
|
|
2
|
-
export * from './block-editor-sidebar-panel.directive';
|
|
1
|
+
export * from './block-editor-margin.directive';
|
|
2
|
+
export * from './block-editor-sidebar-panel.directive';
|
|
@@ -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
|
+
}
|
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,37 +1,37 @@
|
|
|
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 "./pipes/create-image-url.pipe";
|
|
11
|
-
import * as i9 from "./components/group/group-dialog.component";
|
|
12
|
-
import * as i10 from "@angular/common";
|
|
13
|
-
import * as i11 from "@angular/forms";
|
|
14
|
-
import * as i12 from "@angular/cdk/drag-drop";
|
|
15
|
-
import * as i13 from "@angular/material/icon";
|
|
16
|
-
import * as i14 from "@angular/material/button";
|
|
17
|
-
import * as i15 from "@angular/material/input";
|
|
18
|
-
import * as i16 from "@angular/material/form-field";
|
|
19
|
-
import * as i17 from "@angular/material/checkbox";
|
|
20
|
-
import * as i18 from "@angular/material/tooltip";
|
|
21
|
-
import * as i19 from "@angular/material/select";
|
|
22
|
-
import * as i20 from "@angular/material/list";
|
|
23
|
-
import * as i21 from "@firestitch/file";
|
|
24
|
-
import * as i22 from "@firestitch/colorpicker";
|
|
25
|
-
import * as i23 from "@firestitch/menu";
|
|
26
|
-
import * as i24 from "@firestitch/zoom-pan";
|
|
27
|
-
import * as i25 from "@firestitch/form";
|
|
28
|
-
import * as i26 from "@firestitch/mask";
|
|
29
|
-
import * as i27 from "@firestitch/font-picker";
|
|
30
|
-
import * as i28 from "@firestitch/autocomplete";
|
|
31
|
-
import * as i29 from "@firestitch/dialog";
|
|
32
|
-
export declare class FsBlockEditorModule {
|
|
33
|
-
static forRoot(): ModuleWithProviders<FsBlockEditorModule>;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorModule, never>;
|
|
35
|
-
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.CreateImageUrlPipe, typeof i9.GroupDialogComponent], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i12.DragDropModule, typeof i13.MatIconModule, typeof i14.MatButtonModule, typeof i15.MatInputModule, typeof i16.MatFormFieldModule, typeof i17.MatCheckboxModule, typeof i18.MatTooltipModule, typeof i19.MatSelectModule, typeof i20.MatListModule, typeof i21.FsFileModule, typeof i22.FsColorPickerModule, typeof i23.FsMenuModule, typeof i24.FsZoomPanModule, typeof i25.FsFormModule, typeof i26.FsMaskModule, typeof i27.FsFontPickerModule, typeof i28.FsAutocompleteModule, typeof i29.FsDialogModule], [typeof i1.FsBlockComponent, typeof i2.FsBlockEditorComponent, typeof i3.FsBlockEditorSidebarPanelDirective]>;
|
|
36
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FsBlockEditorModule>;
|
|
37
|
-
}
|
|
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 "./pipes/create-image-url.pipe";
|
|
11
|
+
import * as i9 from "./components/group/group-dialog.component";
|
|
12
|
+
import * as i10 from "@angular/common";
|
|
13
|
+
import * as i11 from "@angular/forms";
|
|
14
|
+
import * as i12 from "@angular/cdk/drag-drop";
|
|
15
|
+
import * as i13 from "@angular/material/icon";
|
|
16
|
+
import * as i14 from "@angular/material/button";
|
|
17
|
+
import * as i15 from "@angular/material/input";
|
|
18
|
+
import * as i16 from "@angular/material/form-field";
|
|
19
|
+
import * as i17 from "@angular/material/checkbox";
|
|
20
|
+
import * as i18 from "@angular/material/tooltip";
|
|
21
|
+
import * as i19 from "@angular/material/select";
|
|
22
|
+
import * as i20 from "@angular/material/list";
|
|
23
|
+
import * as i21 from "@firestitch/file";
|
|
24
|
+
import * as i22 from "@firestitch/colorpicker";
|
|
25
|
+
import * as i23 from "@firestitch/menu";
|
|
26
|
+
import * as i24 from "@firestitch/zoom-pan";
|
|
27
|
+
import * as i25 from "@firestitch/form";
|
|
28
|
+
import * as i26 from "@firestitch/mask";
|
|
29
|
+
import * as i27 from "@firestitch/font-picker";
|
|
30
|
+
import * as i28 from "@firestitch/autocomplete";
|
|
31
|
+
import * as i29 from "@firestitch/dialog";
|
|
32
|
+
export declare class FsBlockEditorModule {
|
|
33
|
+
static forRoot(): ModuleWithProviders<FsBlockEditorModule>;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsBlockEditorModule, never>;
|
|
35
|
+
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.CreateImageUrlPipe, typeof i9.GroupDialogComponent], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i12.DragDropModule, typeof i13.MatIconModule, typeof i14.MatButtonModule, typeof i15.MatInputModule, typeof i16.MatFormFieldModule, typeof i17.MatCheckboxModule, typeof i18.MatTooltipModule, typeof i19.MatSelectModule, typeof i20.MatListModule, typeof i21.FsFileModule, typeof i22.FsColorPickerModule, typeof i23.FsMenuModule, typeof i24.FsZoomPanModule, typeof i25.FsFormModule, typeof i26.FsMaskModule, typeof i27.FsFontPickerModule, typeof i28.FsAutocompleteModule, typeof i29.FsDialogModule], [typeof i1.FsBlockComponent, typeof i2.FsBlockEditorComponent, typeof i3.FsBlockEditorSidebarPanelDirective]>;
|
|
36
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FsBlockEditorModule>;
|
|
37
|
+
}
|
|
@@ -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
|
-
defaultValidation?: (block: Block, value: any) => Observable<any>;
|
|
13
|
-
blockChange?: (block: Block) => void;
|
|
14
|
-
blockAdd?: (block: Block) => Observable<Block>;
|
|
15
|
-
blockUpload?: (block: Block, file: Blob) => Observable<Block>;
|
|
16
|
-
blocksRemove?: (block: Block[]) => Observable<any>;
|
|
17
|
-
blocksLevelChanged?: (blocks: Block[]) => void;
|
|
18
|
-
blocksSelect?: (blocks: Block[]) => void;
|
|
19
|
-
blocksReorder?: (blocks: Block[]) => Observable<any>;
|
|
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
|
+
defaultValidation?: (block: Block, value: any) => Observable<any>;
|
|
13
|
+
blockChange?: (block: Block) => void;
|
|
14
|
+
blockAdd?: (block: Block) => Observable<Block>;
|
|
15
|
+
blockUpload?: (block: Block, file: Blob) => Observable<Block>;
|
|
16
|
+
blocksRemove?: (block: Block[]) => Observable<any>;
|
|
17
|
+
blocksLevelChanged?: (blocks: Block[]) => void;
|
|
18
|
+
blocksSelect?: (blocks: Block[]) => void;
|
|
19
|
+
blocksReorder?: (blocks: Block[]) => Observable<any>;
|
|
20
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface BlockGroup {
|
|
2
|
-
label?: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
}
|
|
1
|
+
export interface BlockGroup {
|
|
2
|
+
label?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { FsBlockComponent } from '../components/block/block.component';
|
|
2
|
-
import { BlockType } from '../enums';
|
|
3
|
-
export interface Block {
|
|
4
|
-
width?: number;
|
|
5
|
-
height?: number;
|
|
6
|
-
top?: number;
|
|
7
|
-
left?: number;
|
|
8
|
-
rotate?: number;
|
|
9
|
-
horizontalAlign?: string;
|
|
10
|
-
verticalAlign?: string;
|
|
11
|
-
borderColor?: string;
|
|
12
|
-
borderWidth?: number;
|
|
13
|
-
fontColor?: string;
|
|
14
|
-
fontSize?: number;
|
|
15
|
-
bold?: boolean;
|
|
16
|
-
italic?: boolean;
|
|
17
|
-
underline?: boolean;
|
|
18
|
-
keepRatio?: boolean;
|
|
19
|
-
backgroundColor?: string;
|
|
20
|
-
shapeRadius?: number;
|
|
21
|
-
lineHeight?: number;
|
|
22
|
-
shapeTopRight?: string;
|
|
23
|
-
shapeTopLeft?: string;
|
|
24
|
-
shapeBottomRight?: string;
|
|
25
|
-
shapeBottomLeft?: string;
|
|
26
|
-
padding?: number;
|
|
27
|
-
paddingTop?: number;
|
|
28
|
-
paddingLeft?: number;
|
|
29
|
-
paddingBottom?: number;
|
|
30
|
-
paddingRight?: number;
|
|
31
|
-
content?: string;
|
|
32
|
-
blockComponent?: FsBlockComponent;
|
|
33
|
-
index?: number;
|
|
34
|
-
tabIndex?: number;
|
|
35
|
-
imageUrl?: string;
|
|
36
|
-
clipPath?: {
|
|
37
|
-
type: string;
|
|
38
|
-
values: number[];
|
|
39
|
-
};
|
|
40
|
-
readonly?: boolean;
|
|
41
|
-
name?: string;
|
|
42
|
-
format?: string;
|
|
43
|
-
required?: boolean;
|
|
44
|
-
label?: string;
|
|
45
|
-
description?: string;
|
|
46
|
-
default?: string;
|
|
47
|
-
groupLabel?: string;
|
|
48
|
-
groupDescription?: string;
|
|
49
|
-
guid?: string;
|
|
50
|
-
type?: BlockType;
|
|
51
|
-
shadowX?: number;
|
|
52
|
-
shadowY?: number;
|
|
53
|
-
shadowBlur?: number;
|
|
54
|
-
shadowColor?: string;
|
|
55
|
-
shadowSpread?: number;
|
|
56
|
-
shadowOpacity?: number;
|
|
57
|
-
imageOpacity?: number;
|
|
58
|
-
fontFamily?: string;
|
|
59
|
-
formula?: string;
|
|
60
|
-
data?: any;
|
|
61
|
-
clippable?: boolean;
|
|
62
|
-
lock?: boolean;
|
|
63
|
-
resizable?: boolean;
|
|
64
|
-
rotatable?: boolean;
|
|
65
|
-
scalable?: boolean;
|
|
66
|
-
}
|
|
1
|
+
import { FsBlockComponent } from '../components/block/block.component';
|
|
2
|
+
import { BlockType } from '../enums';
|
|
3
|
+
export interface Block {
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
top?: number;
|
|
7
|
+
left?: number;
|
|
8
|
+
rotate?: number;
|
|
9
|
+
horizontalAlign?: string;
|
|
10
|
+
verticalAlign?: string;
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
borderWidth?: number;
|
|
13
|
+
fontColor?: string;
|
|
14
|
+
fontSize?: number;
|
|
15
|
+
bold?: boolean;
|
|
16
|
+
italic?: boolean;
|
|
17
|
+
underline?: boolean;
|
|
18
|
+
keepRatio?: boolean;
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
shapeRadius?: number;
|
|
21
|
+
lineHeight?: number;
|
|
22
|
+
shapeTopRight?: string;
|
|
23
|
+
shapeTopLeft?: string;
|
|
24
|
+
shapeBottomRight?: string;
|
|
25
|
+
shapeBottomLeft?: string;
|
|
26
|
+
padding?: number;
|
|
27
|
+
paddingTop?: number;
|
|
28
|
+
paddingLeft?: number;
|
|
29
|
+
paddingBottom?: number;
|
|
30
|
+
paddingRight?: number;
|
|
31
|
+
content?: string;
|
|
32
|
+
blockComponent?: FsBlockComponent;
|
|
33
|
+
index?: number;
|
|
34
|
+
tabIndex?: number;
|
|
35
|
+
imageUrl?: string;
|
|
36
|
+
clipPath?: {
|
|
37
|
+
type: string;
|
|
38
|
+
values: number[];
|
|
39
|
+
};
|
|
40
|
+
readonly?: boolean;
|
|
41
|
+
name?: string;
|
|
42
|
+
format?: string;
|
|
43
|
+
required?: boolean;
|
|
44
|
+
label?: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
default?: string;
|
|
47
|
+
groupLabel?: string;
|
|
48
|
+
groupDescription?: string;
|
|
49
|
+
guid?: string;
|
|
50
|
+
type?: BlockType;
|
|
51
|
+
shadowX?: number;
|
|
52
|
+
shadowY?: number;
|
|
53
|
+
shadowBlur?: number;
|
|
54
|
+
shadowColor?: string;
|
|
55
|
+
shadowSpread?: number;
|
|
56
|
+
shadowOpacity?: number;
|
|
57
|
+
imageOpacity?: number;
|
|
58
|
+
fontFamily?: string;
|
|
59
|
+
formula?: string;
|
|
60
|
+
data?: any;
|
|
61
|
+
clippable?: boolean;
|
|
62
|
+
lock?: boolean;
|
|
63
|
+
resizable?: boolean;
|
|
64
|
+
rotatable?: boolean;
|
|
65
|
+
scalable?: boolean;
|
|
66
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './block';
|
|
2
|
-
export * from './block-editor-config';
|
|
3
|
-
export * from './block-group';
|
|
1
|
+
export * from './block';
|
|
2
|
+
export * from './block-editor-config';
|
|
3
|
+
export * from './block-group';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { FsApi } from '@firestitch/api';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CreateImageUrlPipe implements PipeTransform {
|
|
5
|
-
private _api;
|
|
6
|
-
constructor(_api: FsApi);
|
|
7
|
-
transform(url: any): import("rxjs").Observable<import("@angular/platform-browser").SafeUrl>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CreateImageUrlPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<CreateImageUrlPipe, "createImageUrl">;
|
|
10
|
-
}
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { FsApi } from '@firestitch/api';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CreateImageUrlPipe implements PipeTransform {
|
|
5
|
+
private _api;
|
|
6
|
+
constructor(_api: FsApi);
|
|
7
|
+
transform(url: any): import("rxjs").Observable<import("@angular/platform-browser").SafeUrl>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreateImageUrlPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CreateImageUrlPipe, "createImageUrl", false>;
|
|
10
|
+
}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { FsDialog } from '@firestitch/dialog';
|
|
3
|
-
import { FsFile } from '@firestitch/file';
|
|
4
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
|
-
import { FsBlockComponent } from '../components/block';
|
|
7
|
-
import { BlockEditorConfig, BlockGroup } from '../interfaces';
|
|
8
|
-
import { Block } from './../interfaces/block';
|
|
9
|
-
import { BlocksStore } from './blocks-store.service';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class BlockEditorService implements OnDestroy {
|
|
12
|
-
private _store;
|
|
13
|
-
private _dialog;
|
|
14
|
-
private _prompt;
|
|
15
|
-
container: any;
|
|
16
|
-
margin: any;
|
|
17
|
-
config: BlockEditorConfig;
|
|
18
|
-
blockGroups: BlockGroup[];
|
|
19
|
-
private _selectedBlocks$;
|
|
20
|
-
private _blockComponents$;
|
|
21
|
-
private _blockClippable$;
|
|
22
|
-
private _destroy$;
|
|
23
|
-
private _selectionRange;
|
|
24
|
-
constructor(_store: BlocksStore, _dialog: FsDialog, _prompt: FsPrompt);
|
|
25
|
-
get blockComponents$(): Observable<FsBlockComponent[]>;
|
|
26
|
-
set blockComponents(blockComponents: any);
|
|
27
|
-
init(config: BlockEditorConfig): void;
|
|
28
|
-
blockAdd(block: Block): void;
|
|
29
|
-
blockUpload(block: Block, fsFile: FsFile): Observable<Block>;
|
|
30
|
-
blockRemove(block: Block): void;
|
|
31
|
-
get blocks$(): Observable<Block[]>;
|
|
32
|
-
get blockChanged$(): Observable<Block>;
|
|
33
|
-
get blockUpdated$(): Observable<Block>;
|
|
34
|
-
get blockClippable$(): Observable<boolean>;
|
|
35
|
-
set blockClippable(value: any);
|
|
36
|
-
get blockAdded$(): Observable<Block>;
|
|
37
|
-
get blockRemoved$(): Observable<Block>;
|
|
38
|
-
get blocks(): Block[];
|
|
39
|
-
blockChange(block: Block): void;
|
|
40
|
-
applyBlockGroup(block: Block, blockGroup: BlockGroup): void;
|
|
41
|
-
isSelectedBlock(block: Block): boolean;
|
|
42
|
-
indexOf(block: any): number;
|
|
43
|
-
selectedBlockComponentChangeProperty(values: {
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
}): void;
|
|
46
|
-
blockGroupChangeProperty(blockGroup: any, values: any): void;
|
|
47
|
-
get selectedBlocks$(): Observable<Block[]>;
|
|
48
|
-
set selectedBlock(block: Block);
|
|
49
|
-
set selectedBlocks(blocks: Block[]);
|
|
50
|
-
get selectedBlocks(): Block[];
|
|
51
|
-
saveSelection(): void;
|
|
52
|
-
restoreSelection(): void;
|
|
53
|
-
hasSelectionRange(): boolean;
|
|
54
|
-
registerContainer(container: any): void;
|
|
55
|
-
registerMargin(margin: any): void;
|
|
56
|
-
removeBlocks(blocks: Block[]): void;
|
|
57
|
-
openReorderDialog(): void;
|
|
58
|
-
ngOnDestroy(): void;
|
|
59
|
-
private _initBlockGroups;
|
|
60
|
-
private _initBlockChange;
|
|
61
|
-
private _initBlock;
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BlockEditorService, never>;
|
|
63
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BlockEditorService>;
|
|
64
|
-
}
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { FsDialog } from '@firestitch/dialog';
|
|
3
|
+
import { FsFile } from '@firestitch/file';
|
|
4
|
+
import { FsPrompt } from '@firestitch/prompt';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { FsBlockComponent } from '../components/block';
|
|
7
|
+
import { BlockEditorConfig, BlockGroup } from '../interfaces';
|
|
8
|
+
import { Block } from './../interfaces/block';
|
|
9
|
+
import { BlocksStore } from './blocks-store.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class BlockEditorService implements OnDestroy {
|
|
12
|
+
private _store;
|
|
13
|
+
private _dialog;
|
|
14
|
+
private _prompt;
|
|
15
|
+
container: any;
|
|
16
|
+
margin: any;
|
|
17
|
+
config: BlockEditorConfig;
|
|
18
|
+
blockGroups: BlockGroup[];
|
|
19
|
+
private _selectedBlocks$;
|
|
20
|
+
private _blockComponents$;
|
|
21
|
+
private _blockClippable$;
|
|
22
|
+
private _destroy$;
|
|
23
|
+
private _selectionRange;
|
|
24
|
+
constructor(_store: BlocksStore, _dialog: FsDialog, _prompt: FsPrompt);
|
|
25
|
+
get blockComponents$(): Observable<FsBlockComponent[]>;
|
|
26
|
+
set blockComponents(blockComponents: any);
|
|
27
|
+
init(config: BlockEditorConfig): void;
|
|
28
|
+
blockAdd(block: Block): void;
|
|
29
|
+
blockUpload(block: Block, fsFile: FsFile): Observable<Block>;
|
|
30
|
+
blockRemove(block: Block): void;
|
|
31
|
+
get blocks$(): Observable<Block[]>;
|
|
32
|
+
get blockChanged$(): Observable<Block>;
|
|
33
|
+
get blockUpdated$(): Observable<Block>;
|
|
34
|
+
get blockClippable$(): Observable<boolean>;
|
|
35
|
+
set blockClippable(value: any);
|
|
36
|
+
get blockAdded$(): Observable<Block>;
|
|
37
|
+
get blockRemoved$(): Observable<Block>;
|
|
38
|
+
get blocks(): Block[];
|
|
39
|
+
blockChange(block: Block): void;
|
|
40
|
+
applyBlockGroup(block: Block, blockGroup: BlockGroup): void;
|
|
41
|
+
isSelectedBlock(block: Block): boolean;
|
|
42
|
+
indexOf(block: any): number;
|
|
43
|
+
selectedBlockComponentChangeProperty(values: {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}): void;
|
|
46
|
+
blockGroupChangeProperty(blockGroup: any, values: any): void;
|
|
47
|
+
get selectedBlocks$(): Observable<Block[]>;
|
|
48
|
+
set selectedBlock(block: Block);
|
|
49
|
+
set selectedBlocks(blocks: Block[]);
|
|
50
|
+
get selectedBlocks(): Block[];
|
|
51
|
+
saveSelection(): void;
|
|
52
|
+
restoreSelection(): void;
|
|
53
|
+
hasSelectionRange(): boolean;
|
|
54
|
+
registerContainer(container: any): void;
|
|
55
|
+
registerMargin(margin: any): void;
|
|
56
|
+
removeBlocks(blocks: Block[]): void;
|
|
57
|
+
openReorderDialog(): void;
|
|
58
|
+
ngOnDestroy(): void;
|
|
59
|
+
private _initBlockGroups;
|
|
60
|
+
private _initBlockChange;
|
|
61
|
+
private _initBlock;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BlockEditorService, never>;
|
|
63
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BlockEditorService>;
|
|
64
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Block } from '../interfaces/block';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BlocksStore implements OnDestroy {
|
|
6
|
-
private _eventBus$;
|
|
7
|
-
private _blocks$;
|
|
8
|
-
private _destroy$;
|
|
9
|
-
get blocks(): Block[];
|
|
10
|
-
get blocks$(): Observable<Block[]>;
|
|
11
|
-
get blockAdded$(): Observable<Block>;
|
|
12
|
-
get blockChanged$(): Observable<Block>;
|
|
13
|
-
get blockUpdated$(): Observable<Block>;
|
|
14
|
-
get blockRemoved$(): Observable<Block>;
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
|
-
init(blocks: Block[]): void;
|
|
17
|
-
blockExists(block: Block): boolean;
|
|
18
|
-
blockAdd(block: Block): void;
|
|
19
|
-
blockChange(block: Block): void;
|
|
20
|
-
blockUpdate(block: Block): void;
|
|
21
|
-
blockRemove(targetBlocks: Block | Block[]): void;
|
|
22
|
-
private _setBlocks;
|
|
23
|
-
private _appendBlock;
|
|
24
|
-
private _dispatchEvent;
|
|
25
|
-
private _deduplicateIndexesFor;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BlocksStore, never>;
|
|
27
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BlocksStore>;
|
|
28
|
-
}
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Block } from '../interfaces/block';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BlocksStore implements OnDestroy {
|
|
6
|
+
private _eventBus$;
|
|
7
|
+
private _blocks$;
|
|
8
|
+
private _destroy$;
|
|
9
|
+
get blocks(): Block[];
|
|
10
|
+
get blocks$(): Observable<Block[]>;
|
|
11
|
+
get blockAdded$(): Observable<Block>;
|
|
12
|
+
get blockChanged$(): Observable<Block>;
|
|
13
|
+
get blockUpdated$(): Observable<Block>;
|
|
14
|
+
get blockRemoved$(): Observable<Block>;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
init(blocks: Block[]): void;
|
|
17
|
+
blockExists(block: Block): boolean;
|
|
18
|
+
blockAdd(block: Block): void;
|
|
19
|
+
blockChange(block: Block): void;
|
|
20
|
+
blockUpdate(block: Block): void;
|
|
21
|
+
blockRemove(targetBlocks: Block | Block[]): void;
|
|
22
|
+
private _setBlocks;
|
|
23
|
+
private _appendBlock;
|
|
24
|
+
private _dispatchEvent;
|
|
25
|
+
private _deduplicateIndexesFor;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BlocksStore, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BlocksStore>;
|
|
28
|
+
}
|
package/app/services/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './block-editor.service';
|
|
1
|
+
export * from './block-editor.service';
|