ngx-rs-ant 2.2.1 → 2.2.3
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/esm2020/data-grid/data-grid.component.mjs +3 -3
- package/esm2020/data-grid/instance-link-template/instance-link-template.component.mjs +3 -3
- package/esm2020/drawer/drawer.component.mjs +5 -1
- package/esm2020/drawer/drawer.service.mjs +2 -2
- package/esm2020/form/form.component.mjs +4 -4
- package/esm2020/public-api.mjs +11 -1
- package/esm2020/types/component/mark-item-component-base.mjs +8 -0
- package/esm2020/types/config/mark-item-config-base.mjs +4 -0
- package/esm2020/types/config/modal-config-base.mjs +1 -1
- package/esm2020/util/utils.mjs +17 -17
- package/esm2020/word/section/color.pipe.mjs +19 -0
- package/esm2020/word/section/mark.pipe.mjs +20 -0
- package/esm2020/word/section/node/node.component.mjs +31 -0
- package/esm2020/word/section/node/paragraph/paragraph.component.mjs +44 -0
- package/esm2020/word/section/node/paragraph/run/run.component.mjs +84 -0
- package/esm2020/word/section/node/paragraph-for-input/item/item.component.mjs +64 -0
- package/esm2020/word/section/node/paragraph-for-input/paragraph-for-input.component.mjs +46 -0
- package/esm2020/word/section/pt.pipe.mjs +22 -0
- package/esm2020/word/section/section.component.mjs +44 -0
- package/esm2020/word/section/section.module.mjs +50 -0
- package/esm2020/word/section/section.service.mjs +48 -0
- package/esm2020/word/word-designer/mark-config/mark-config.component.mjs +77 -0
- package/esm2020/word/word-designer/word-designer.component.mjs +207 -0
- package/esm2020/word/word-designer/word-designer.module.mjs +35 -0
- package/esm2020/word/word-designer/word-designer.service.mjs +69 -0
- package/esm2020/word/word-editor/word-editor.component.mjs +154 -0
- package/esm2020/word/word-editor/word-editor.module.mjs +32 -0
- package/esm2020/word/word-editor/word-editor.service.mjs +67 -0
- package/fesm2015/ngx-rs-ant.mjs +1043 -23
- package/fesm2015/ngx-rs-ant.mjs.map +1 -1
- package/fesm2020/ngx-rs-ant.mjs +1036 -23
- package/fesm2020/ngx-rs-ant.mjs.map +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +10 -0
- package/types/component/mark-item-component-base.d.ts +21 -0
- package/types/config/mark-item-config-base.d.ts +17 -0
- package/types/config/modal-config-base.d.ts +8 -0
- package/util/utils.d.ts +10 -10
- package/word/section/color.pipe.d.ts +7 -0
- package/word/section/mark.pipe.d.ts +10 -0
- package/word/section/node/node.component.d.ts +12 -0
- package/word/section/node/paragraph/paragraph.component.d.ts +35 -0
- package/word/section/node/paragraph/run/run.component.d.ts +21 -0
- package/word/section/node/paragraph-for-input/item/item.component.d.ts +27 -0
- package/word/section/node/paragraph-for-input/paragraph-for-input.component.d.ts +35 -0
- package/word/section/pt.pipe.d.ts +7 -0
- package/word/section/section.component.d.ts +22 -0
- package/word/section/section.module.d.ts +16 -0
- package/word/section/section.service.d.ts +24 -0
- package/word/word-designer/mark-config/mark-config.component.d.ts +21 -0
- package/word/word-designer/word-designer.component.d.ts +48 -0
- package/word/word-designer/word-designer.module.d.ts +11 -0
- package/word/word-designer/word-designer.service.d.ts +13 -0
- package/word/word-editor/word-editor.component.d.ts +41 -0
- package/word/word-editor/word-editor.module.d.ts +10 -0
- package/word/word-editor/word-editor.service.d.ts +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-rs-ant",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "RsAnt components based on Angular and DevExtreme",
|
|
6
6
|
"exports": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@angular/common": "^15.2.0",
|
|
24
24
|
"@angular/core": "^15.2.0",
|
|
25
25
|
"camunda-bpmn-js": "^3.12.1",
|
|
26
|
-
"coast-plugin-register": "2.2.
|
|
26
|
+
"coast-plugin-register": "2.2.6",
|
|
27
27
|
"devextreme": "^23.0.0",
|
|
28
28
|
"devextreme-angular": "^23.0.0",
|
|
29
29
|
"monaco-editor": "^0.44.0",
|
package/public-api.d.ts
CHANGED
|
@@ -34,10 +34,12 @@ export * from './modal/modal.service';
|
|
|
34
34
|
export * from './pdf-viewer/pdf-viewer.component';
|
|
35
35
|
export * from './types/component/cell-component-base';
|
|
36
36
|
export * from './types/component/form-item-component-base';
|
|
37
|
+
export * from './types/component/mark-item-component-base';
|
|
37
38
|
export * from './types/component/modal-component-base';
|
|
38
39
|
export * from './types/component/page-item-component-base';
|
|
39
40
|
export * from './types/config/cell-config-base';
|
|
40
41
|
export * from './types/config/form-item-config-base';
|
|
42
|
+
export * from './types/config/mark-item-config-base';
|
|
41
43
|
export * from './types/config/modal-config-base';
|
|
42
44
|
export * from './types/config/page-item-config-base';
|
|
43
45
|
export * from './util/change-filter';
|
|
@@ -45,3 +47,11 @@ export * from './util/dx-native-element.pipe';
|
|
|
45
47
|
export * from './util/utils';
|
|
46
48
|
export * from './websocket/websocket.module';
|
|
47
49
|
export * from './websocket/websocket.service';
|
|
50
|
+
export * from './word/section/section.component';
|
|
51
|
+
export * from './word/section/node/node.component';
|
|
52
|
+
export * from './word/section/section.service';
|
|
53
|
+
export * from './word/section/section.module';
|
|
54
|
+
export * from './word/word-designer/word-designer.component';
|
|
55
|
+
export * from './word/word-designer/word-designer.module';
|
|
56
|
+
export * from './word/word-editor/word-editor.component';
|
|
57
|
+
export * from './word/word-editor/word-editor.module';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { ComponentBase } from "./component-base";
|
|
3
|
+
export declare class MarkItemComponentBase extends ComponentBase {
|
|
4
|
+
tenant: any;
|
|
5
|
+
templateClassName: any;
|
|
6
|
+
instanceClassName: any;
|
|
7
|
+
instanceOid: any;
|
|
8
|
+
mark: {
|
|
9
|
+
name: string;
|
|
10
|
+
display: string;
|
|
11
|
+
extracted: boolean;
|
|
12
|
+
type: string;
|
|
13
|
+
config: any;
|
|
14
|
+
value: any;
|
|
15
|
+
pickerCode: string;
|
|
16
|
+
generatorCode: string;
|
|
17
|
+
};
|
|
18
|
+
marks: any[];
|
|
19
|
+
readonly: boolean;
|
|
20
|
+
valueUpdated: EventEmitter<void>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentBase } from "../component/component-base";
|
|
2
|
+
export declare class MarkItemConfigBase extends ComponentBase {
|
|
3
|
+
tenant: any;
|
|
4
|
+
templateClassName: any;
|
|
5
|
+
templateOid: any;
|
|
6
|
+
instanceClassName: any;
|
|
7
|
+
mark: {
|
|
8
|
+
name: string;
|
|
9
|
+
display: string;
|
|
10
|
+
type: string;
|
|
11
|
+
config: any;
|
|
12
|
+
value: any;
|
|
13
|
+
pickerCode: string;
|
|
14
|
+
generatorCode: string;
|
|
15
|
+
};
|
|
16
|
+
marks: any;
|
|
17
|
+
}
|
package/util/utils.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DxValidatorComponent } from "devextreme-angular";
|
|
2
|
-
export declare function
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
2
|
+
export declare function notifyError(message: string): void;
|
|
3
|
+
export declare function notifyWarning(message: string): void;
|
|
4
|
+
export declare function notifySuccess(message: string): void;
|
|
5
5
|
export declare function localeSortMethod(value1: string, value2: string): number;
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
6
|
+
export declare function fileTypeIcon(name: string): string;
|
|
7
|
+
export declare function supportPreviewExt(): string[];
|
|
8
|
+
export declare function formatFileSize(size: number): string;
|
|
9
|
+
export declare function filenameFromDisposition(disposition: string): string | null;
|
|
10
|
+
export declare function downloadFile(blob: Blob, filename: string, callback?: Function): void;
|
|
11
11
|
export declare function validate(validator: DxValidatorComponent): Promise<boolean>;
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
12
|
+
export declare function validateGroup(validationGroupComponent: any): Promise<boolean>;
|
|
13
|
+
export declare function validateGroupByName(name: string, brokenElementParent: Element): Promise<boolean>;
|
|
14
14
|
export declare function openBrowserTab(pluginName: string, title?: string, pluginConfig?: any, params?: any): Window | null;
|
|
15
15
|
export declare function deepClone<T>(obj: any): T;
|
|
16
16
|
export declare function evaluateFilter(filter: any, model: any): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ColorPipe implements PipeTransform {
|
|
4
|
+
transform(value: number[]): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ColorPipe, "color", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SectionService } from "./section.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MarkPipe implements PipeTransform {
|
|
5
|
+
private service;
|
|
6
|
+
constructor(service: SectionService);
|
|
7
|
+
transform(name: string): any;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarkPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MarkPipe, "mark", false>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SectionService } from "../section.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NodeComponent {
|
|
4
|
+
protected service: SectionService;
|
|
5
|
+
node: any;
|
|
6
|
+
editMode: boolean;
|
|
7
|
+
pasteMode: boolean;
|
|
8
|
+
readonly: boolean;
|
|
9
|
+
constructor(service: SectionService);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeComponent, "rs-node", never, { "node": "node"; "editMode": "editMode"; "pasteMode": "pasteMode"; "readonly": "readonly"; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PtPipe } from "../../pt.pipe";
|
|
2
|
+
import { SectionService } from "../../section.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ParagraphComponent {
|
|
5
|
+
protected service: SectionService;
|
|
6
|
+
private pt;
|
|
7
|
+
paragraph: {
|
|
8
|
+
style: any;
|
|
9
|
+
content: {
|
|
10
|
+
type: string;
|
|
11
|
+
style: any;
|
|
12
|
+
text?: string;
|
|
13
|
+
data?: string;
|
|
14
|
+
mark?: string;
|
|
15
|
+
setting?: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
editMode: boolean;
|
|
19
|
+
pasteMode: boolean;
|
|
20
|
+
get _style(): {
|
|
21
|
+
display: string;
|
|
22
|
+
marginTop: string;
|
|
23
|
+
marginBottom: string;
|
|
24
|
+
marginLeft: string;
|
|
25
|
+
textIndent: string;
|
|
26
|
+
textAlign: any;
|
|
27
|
+
lineHeight: string;
|
|
28
|
+
minHeight: string;
|
|
29
|
+
fontFamily: any;
|
|
30
|
+
fontSize: string;
|
|
31
|
+
};
|
|
32
|
+
constructor(service: SectionService, pt: PtPipe);
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParagraphComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParagraphComponent, "rs-paragraph", never, { "paragraph": "paragraph"; "editMode": "editMode"; "pasteMode": "pasteMode"; }, {}, never, never, false, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SectionService } from "../../../section.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RunComponent {
|
|
4
|
+
protected service: SectionService;
|
|
5
|
+
node: {
|
|
6
|
+
type: string;
|
|
7
|
+
style: any;
|
|
8
|
+
text?: string;
|
|
9
|
+
data?: string;
|
|
10
|
+
mark?: string;
|
|
11
|
+
setting?: boolean;
|
|
12
|
+
};
|
|
13
|
+
editMode: boolean;
|
|
14
|
+
pasteMode: boolean;
|
|
15
|
+
protected nodeText: any;
|
|
16
|
+
constructor(service: SectionService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
click($event: any, markName: string): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RunComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RunComponent, "rs-run", never, { "node": "node"; "editMode": "editMode"; "pasteMode": "pasteMode"; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { SectionService } from "../../../section.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ItemComponent {
|
|
5
|
+
private service;
|
|
6
|
+
node: {
|
|
7
|
+
type: string;
|
|
8
|
+
style: any;
|
|
9
|
+
text?: string;
|
|
10
|
+
data?: string;
|
|
11
|
+
mark?: string;
|
|
12
|
+
setting?: boolean;
|
|
13
|
+
};
|
|
14
|
+
mark: any;
|
|
15
|
+
editMode: boolean;
|
|
16
|
+
readonly: boolean;
|
|
17
|
+
get _style(): {
|
|
18
|
+
float: any;
|
|
19
|
+
} | {
|
|
20
|
+
float?: undefined;
|
|
21
|
+
};
|
|
22
|
+
itemRef: ViewContainerRef;
|
|
23
|
+
constructor(service: SectionService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItemComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItemComponent, "rs-item", never, { "node": "node"; "mark": "mark"; "editMode": "editMode"; "readonly": "readonly"; }, {}, never, never, false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PtPipe } from "../../pt.pipe";
|
|
2
|
+
import { SectionService } from "../../section.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ParagraphForInputComponent {
|
|
5
|
+
protected service: SectionService;
|
|
6
|
+
private pt;
|
|
7
|
+
paragraph: {
|
|
8
|
+
style: any;
|
|
9
|
+
content: {
|
|
10
|
+
type: string;
|
|
11
|
+
style: any;
|
|
12
|
+
text?: string;
|
|
13
|
+
data?: string;
|
|
14
|
+
mark?: string;
|
|
15
|
+
setting?: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
editMode: boolean;
|
|
19
|
+
readonly: boolean;
|
|
20
|
+
get _style(): {
|
|
21
|
+
display: string;
|
|
22
|
+
marginTop: string;
|
|
23
|
+
marginBottom: string;
|
|
24
|
+
marginLeft: string;
|
|
25
|
+
textIndent: string;
|
|
26
|
+
textAlign: any;
|
|
27
|
+
lineHeight: string;
|
|
28
|
+
minHeight: string;
|
|
29
|
+
fontFamily: any;
|
|
30
|
+
fontSize: string;
|
|
31
|
+
};
|
|
32
|
+
constructor(service: SectionService, pt: PtPipe);
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ParagraphForInputComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParagraphForInputComponent, "rs-paragraph-for-input", never, { "paragraph": "paragraph"; "editMode": "editMode"; "readonly": "readonly"; }, {}, never, never, false, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PtPipe implements PipeTransform {
|
|
4
|
+
transform(value: any, scale?: number): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PtPipe, "pt", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PtPipe } from "./pt.pipe";
|
|
2
|
+
import { SectionService } from "./section.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SectionComponent {
|
|
5
|
+
protected service: SectionService;
|
|
6
|
+
private pt;
|
|
7
|
+
section: any;
|
|
8
|
+
editMode: boolean;
|
|
9
|
+
pasteMode: boolean;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
get _style(): {
|
|
12
|
+
width: string;
|
|
13
|
+
paddingTop: string;
|
|
14
|
+
paddingRight: string;
|
|
15
|
+
paddingBottom: string;
|
|
16
|
+
paddingLeft: string;
|
|
17
|
+
userSelect: string;
|
|
18
|
+
};
|
|
19
|
+
constructor(service: SectionService, pt: PtPipe);
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "rs-section", never, { "section": "section"; "editMode": "editMode"; "pasteMode": "pasteMode"; "readonly": "readonly"; }, {}, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./section.component";
|
|
3
|
+
import * as i2 from "./node/node.component";
|
|
4
|
+
import * as i3 from "./node/paragraph/paragraph.component";
|
|
5
|
+
import * as i4 from "./node/paragraph/run/run.component";
|
|
6
|
+
import * as i5 from "./node/paragraph-for-input/paragraph-for-input.component";
|
|
7
|
+
import * as i6 from "./node/paragraph-for-input/item/item.component";
|
|
8
|
+
import * as i7 from "./color.pipe";
|
|
9
|
+
import * as i8 from "./mark.pipe";
|
|
10
|
+
import * as i9 from "./pt.pipe";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
12
|
+
export declare class SectionModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SectionModule, [typeof i1.SectionComponent, typeof i2.NodeComponent, typeof i3.ParagraphComponent, typeof i4.RunComponent, typeof i5.ParagraphForInputComponent, typeof i6.ItemComponent, typeof i7.ColorPipe, typeof i8.MarkPipe, typeof i9.PtPipe], [typeof i10.CommonModule], [typeof i1.SectionComponent, typeof i2.NodeComponent]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SectionModule>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SectionService {
|
|
4
|
+
tenant: any;
|
|
5
|
+
templateClassName: any;
|
|
6
|
+
instanceClassName: any;
|
|
7
|
+
templateOid: any;
|
|
8
|
+
instanceOid: any;
|
|
9
|
+
params: any;
|
|
10
|
+
tabViewContainerRef: any;
|
|
11
|
+
scale: number;
|
|
12
|
+
marks: any[];
|
|
13
|
+
readonly: boolean;
|
|
14
|
+
activeMark: any;
|
|
15
|
+
copiedMark: any;
|
|
16
|
+
readyPasteMarkNames: string[];
|
|
17
|
+
lastClickToPasteMarkName: string;
|
|
18
|
+
valueUpdated: EventEmitter<void>;
|
|
19
|
+
switchMark(type: number): void;
|
|
20
|
+
getMark(name: any): any;
|
|
21
|
+
getMarkIndex(name: any): number;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SectionService>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MarkConfigComponent {
|
|
4
|
+
tenant: any;
|
|
5
|
+
templateClassName: any;
|
|
6
|
+
templateOid: any;
|
|
7
|
+
instanceClassName: any;
|
|
8
|
+
filterCategories?: string[];
|
|
9
|
+
get mark(): any;
|
|
10
|
+
set mark(mark: any);
|
|
11
|
+
private _mark;
|
|
12
|
+
marks: any;
|
|
13
|
+
protected markTypes: any;
|
|
14
|
+
private changeMark;
|
|
15
|
+
markItemConfigRef: ViewContainerRef;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
loadMarkConfig(): void;
|
|
18
|
+
changeMarkType(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarkConfigComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MarkConfigComponent, "rs-mark-config", never, { "tenant": "tenant"; "templateClassName": "templateClassName"; "templateOid": "templateOid"; "instanceClassName": "instanceClassName"; "filterCategories": "filterCategories"; "mark": "mark"; "marks": "marks"; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ElementRef, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ModalComponent } from "../../modal/modal.component";
|
|
3
|
+
import { WordDesignerService } from "./word-designer.service";
|
|
4
|
+
import { ModalService } from "../../modal/modal.service";
|
|
5
|
+
import { SectionService } from "../section/section.service";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class WordDesignerComponent {
|
|
8
|
+
protected service: SectionService;
|
|
9
|
+
private wordDesignerService;
|
|
10
|
+
protected viewContainerRef: ViewContainerRef;
|
|
11
|
+
private modalService;
|
|
12
|
+
tenant: any;
|
|
13
|
+
className: any;
|
|
14
|
+
oid: any;
|
|
15
|
+
instanceClassName: any;
|
|
16
|
+
filterCategories?: string[];
|
|
17
|
+
params?: any;
|
|
18
|
+
tabViewContainerRef: any;
|
|
19
|
+
protected sections: any;
|
|
20
|
+
protected needUpload: boolean;
|
|
21
|
+
protected pasteMode: boolean;
|
|
22
|
+
protected mouseInViewer: boolean;
|
|
23
|
+
protected loading: boolean;
|
|
24
|
+
protected replaceFileModal?: ModalComponent;
|
|
25
|
+
protected retainMarkConfig: boolean;
|
|
26
|
+
protected previewModal?: ModalComponent;
|
|
27
|
+
uploadInput: ElementRef;
|
|
28
|
+
replaceFileModalTemplate: TemplateRef<any>;
|
|
29
|
+
previewTemplate: TemplateRef<any>;
|
|
30
|
+
previewFooterTemplate: TemplateRef<any>;
|
|
31
|
+
handleKeyDown($event: KeyboardEvent): void;
|
|
32
|
+
constructor(service: SectionService, wordDesignerService: WordDesignerService, viewContainerRef: ViewContainerRef, modalService: ModalService);
|
|
33
|
+
ngOnInit(): void;
|
|
34
|
+
loadTemplateAndConfig(response: any): void;
|
|
35
|
+
scaleByMouse($event: any): void;
|
|
36
|
+
scale(type: number): void;
|
|
37
|
+
upload(): void;
|
|
38
|
+
openReplaceTemplateFileModal(): void;
|
|
39
|
+
replaceTemplateFile(retainMarkConfig: boolean): void;
|
|
40
|
+
downloadTemplateFile(): void;
|
|
41
|
+
preview(): void;
|
|
42
|
+
saveConfig(): void;
|
|
43
|
+
copyMarkConfig(): void;
|
|
44
|
+
exitPasteMode(): void;
|
|
45
|
+
pasteMarkConfig(): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WordDesignerComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WordDesignerComponent, "rs-word-designer", never, { "tenant": "tenant"; "className": "className"; "oid": "oid"; "instanceClassName": "instanceClassName"; "filterCategories": "filterCategories"; "params": "params"; "tabViewContainerRef": "tabViewContainerRef"; }, {}, never, never, false, never>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./word-designer.component";
|
|
3
|
+
import * as i2 from "./mark-config/mark-config.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "devextreme-angular";
|
|
6
|
+
import * as i5 from "../section/section.module";
|
|
7
|
+
export declare class WordDesignerModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WordDesignerModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WordDesignerModule, [typeof i1.WordDesignerComponent, typeof i2.MarkConfigComponent], [typeof i3.CommonModule, typeof i4.DevExtremeModule, typeof i5.SectionModule], [typeof i1.WordDesignerComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<WordDesignerModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WordDesignerService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
loadTemplate(tenant: any, className: any, oid: any): Observable<any>;
|
|
8
|
+
uploadTemplateFile(tenant: any, className: any, oid: any, retainMarkConfig: any, file: any): Observable<any>;
|
|
9
|
+
downloadTemplateFile(tenant: any, className: any, oid: any, callback?: any): import("rxjs").Subscription;
|
|
10
|
+
save(tenant: any, className: any, oid: any, model: any): Observable<any>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WordDesignerService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WordDesignerService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EventEmitter, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { DxValidationGroupComponent } from "devextreme-angular/ui/validation-group";
|
|
3
|
+
import { WordEditorService } from "./word-editor.service";
|
|
4
|
+
import { SectionService } from "../section/section.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class WordEditorComponent {
|
|
7
|
+
protected service: SectionService;
|
|
8
|
+
private wordEditorService;
|
|
9
|
+
protected viewContainerRef: ViewContainerRef;
|
|
10
|
+
tenant: any;
|
|
11
|
+
className: any;
|
|
12
|
+
oid: any;
|
|
13
|
+
templateClassName: any;
|
|
14
|
+
params?: any;
|
|
15
|
+
tabViewContainerRef: any;
|
|
16
|
+
showPullTemplateButton: boolean;
|
|
17
|
+
showPullDataButton: boolean;
|
|
18
|
+
showCalcButton: boolean;
|
|
19
|
+
showValidateButton: boolean;
|
|
20
|
+
showGenerateFileButton: boolean;
|
|
21
|
+
generateFileAttribute: any;
|
|
22
|
+
generateFileName: any;
|
|
23
|
+
showCloseButton: boolean;
|
|
24
|
+
readonly: boolean;
|
|
25
|
+
onSaved: EventEmitter<void>;
|
|
26
|
+
onGenerated: EventEmitter<void>;
|
|
27
|
+
onClosed: EventEmitter<void>;
|
|
28
|
+
protected sections: any;
|
|
29
|
+
protected loading: boolean;
|
|
30
|
+
validator: DxValidationGroupComponent;
|
|
31
|
+
constructor(service: SectionService, wordEditorService: WordEditorService, viewContainerRef: ViewContainerRef);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
pullTemplate(): void;
|
|
34
|
+
pullData(): void;
|
|
35
|
+
calc(): void;
|
|
36
|
+
validate(): void;
|
|
37
|
+
save(): void;
|
|
38
|
+
generateFile(): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WordEditorComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WordEditorComponent, "rs-word-editor", never, { "tenant": "tenant"; "className": "className"; "oid": "oid"; "templateClassName": "templateClassName"; "params": "params"; "tabViewContainerRef": "tabViewContainerRef"; "showPullTemplateButton": "showPullTemplateButton"; "showPullDataButton": "showPullDataButton"; "showCalcButton": "showCalcButton"; "showValidateButton": "showValidateButton"; "showGenerateFileButton": "showGenerateFileButton"; "generateFileAttribute": "generateFileAttribute"; "generateFileName": "generateFileName"; "showCloseButton": "showCloseButton"; "readonly": "readonly"; }, { "onSaved": "onSaved"; "onGenerated": "onGenerated"; "onClosed": "onClosed"; }, never, never, false, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./word-editor.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "devextreme-angular";
|
|
5
|
+
import * as i4 from "../section/section.module";
|
|
6
|
+
export declare class WordEditorModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WordEditorModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WordEditorModule, [typeof i1.WordEditorComponent], [typeof i2.CommonModule, typeof i3.DevExtremeModule, typeof i4.SectionModule], [typeof i1.WordEditorComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<WordEditorModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WordEditorService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
loadTemplate(tenant: any, className: any, oid: any): Observable<any>;
|
|
8
|
+
save(tenant: any, className: any, oid: any, model: any): Observable<any>;
|
|
9
|
+
reloadTemplate(tenant: any, className: any, oid: any, templateClassName: any): Observable<any>;
|
|
10
|
+
pullData(tenant: any, className: any, oid: any, marks: any): Observable<any>;
|
|
11
|
+
generateFile(tenant: any, className: any, oid: any, generateFileAttribute: any, generateFileName: any, model: any): Observable<any>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WordEditorService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WordEditorService>;
|
|
14
|
+
}
|