@hailin-zheng/editor-core 2.2.27 → 2.2.29
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/editor.css +638 -638
- package/index-cjs.d.ts +32 -32
- package/index-cjs.js +23949 -23920
- package/index-cjs.js.map +1 -1
- package/index.d.ts +32 -32
- package/index.js +23949 -23920
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +541 -543
- package/med_editor/doc-rule.d.ts +174 -174
- package/med_editor/editor-core.d.ts +18 -18
- package/med_editor/framework/code-interpreter/ast-parser.d.ts +4 -4
- package/med_editor/framework/code-interpreter/document-eval-func.d.ts +18 -18
- package/med_editor/framework/code-interpreter/dynamic-execute.d.ts +26 -26
- package/med_editor/framework/doc-layout/document-arrange.d.ts +95 -88
- package/med_editor/framework/doc-layout/paragraph-arrange.d.ts +110 -110
- package/med_editor/framework/document-change.d.ts +341 -341
- package/med_editor/framework/document-combine.d.ts +24 -24
- package/med_editor/framework/document-comment.d.ts +38 -38
- package/med_editor/framework/document-context.d.ts +154 -154
- package/med_editor/framework/document-event.d.ts +256 -256
- package/med_editor/framework/document-input-cursor.d.ts +32 -32
- package/med_editor/framework/document-paginator.d.ts +46 -46
- package/med_editor/framework/document-svg.d.ts +36 -36
- package/med_editor/framework/document-template.d.ts +13 -13
- package/med_editor/framework/document-textline-mode.d.ts +6 -6
- package/med_editor/framework/element-define.d.ts +438 -438
- package/med_editor/framework/element-event-define.d.ts +102 -102
- package/med_editor/framework/element-props.d.ts +344 -344
- package/med_editor/framework/element-reader.d.ts +20 -20
- package/med_editor/framework/element-serialize.d.ts +36 -36
- package/med_editor/framework/element-type-handler.d.ts +8 -8
- package/med_editor/framework/history/element-trace-manage.d.ts +107 -107
- package/med_editor/framework/history/element-trace-tracking.d.ts +89 -89
- package/med_editor/framework/impl/checkbox/checkbox-impl.d.ts +19 -19
- package/med_editor/framework/impl/comments/comment-content-impl.d.ts +39 -39
- package/med_editor/framework/impl/comments/comment-element-impl.d.ts +24 -24
- package/med_editor/framework/impl/comments/comments-container-impl.d.ts +19 -19
- package/med_editor/framework/impl/comments/validate-msg-impl.d.ts +19 -19
- package/med_editor/framework/impl/data-element/data-container-impl.d.ts +25 -25
- package/med_editor/framework/impl/data-element/data-decorate-impl.d.ts +16 -16
- package/med_editor/framework/impl/data-element/data-element-barcode.d.ts +32 -32
- package/med_editor/framework/impl/data-element/data-element-base-impl.d.ts +120 -120
- package/med_editor/framework/impl/data-element/data-element-check-impl.d.ts +26 -26
- package/med_editor/framework/impl/data-element/data-element-date-impl.d.ts +23 -23
- package/med_editor/framework/impl/data-element/data-element-group-impl.d.ts +28 -28
- package/med_editor/framework/impl/data-element/data-element-image-impl.d.ts +23 -23
- package/med_editor/framework/impl/data-element/data-element-list-impl.d.ts +21 -21
- package/med_editor/framework/impl/data-element/data-element-text-impl.d.ts +22 -22
- package/med_editor/framework/impl/data-element/qrcode.d.ts +93 -93
- package/med_editor/framework/impl/decorate/fill-null-space-imple.d.ts +16 -16
- package/med_editor/framework/impl/document/doc-body-impl.d.ts +19 -19
- package/med_editor/framework/impl/document/doc-body-part-impl.d.ts +22 -22
- package/med_editor/framework/impl/document/doc-container-impl.d.ts +7 -7
- package/med_editor/framework/impl/document/doc-footer-impl.d.ts +19 -19
- package/med_editor/framework/impl/document/doc-header-impl.d.ts +19 -19
- package/med_editor/framework/impl/document/doc-impl.d.ts +84 -81
- package/med_editor/framework/impl/index.d.ts +40 -40
- package/med_editor/framework/impl/media-formula/menstrual-history.d.ts +31 -31
- package/med_editor/framework/impl/media-formula/permanent-teeth.d.ts +34 -34
- package/med_editor/framework/impl/paragraph/p-impl.d.ts +38 -38
- package/med_editor/framework/impl/picture/RectEle.d.ts +44 -44
- package/med_editor/framework/impl/picture/image-impl.d.ts +24 -24
- package/med_editor/framework/impl/radio/radio-impl.d.ts +17 -17
- package/med_editor/framework/impl/shape/line-impl.d.ts +31 -0
- package/med_editor/framework/impl/svg/svg-impl.d.ts +20 -20
- package/med_editor/framework/impl/symbol/br-symbol-impl.d.ts +18 -18
- package/med_editor/framework/impl/symbol/p-symbol-impl.d.ts +16 -16
- package/med_editor/framework/impl/symbol/page-br-symbol-impl.d.ts +20 -20
- package/med_editor/framework/impl/symbol/tab-symbol-impl.d.ts +15 -15
- package/med_editor/framework/impl/table/table-cell-impl.d.ts +34 -34
- package/med_editor/framework/impl/table/table-impl.d.ts +49 -49
- package/med_editor/framework/impl/table/table-row-impl.d.ts +27 -27
- package/med_editor/framework/impl/table/table-split-cell-patch.d.ts +20 -20
- package/med_editor/framework/impl/table/table-split-cell.d.ts +93 -93
- package/med_editor/framework/impl/table/table-util.d.ts +180 -180
- package/med_editor/framework/impl/text/text-impl.d.ts +34 -34
- package/med_editor/framework/impl/text/track-run-impl.d.ts +27 -27
- package/med_editor/framework/infrastructure/event-subject.d.ts +57 -57
- package/med_editor/framework/infrastructure/notify.d.ts +13 -13
- package/med_editor/framework/print/document-print-offscreen.d.ts +58 -58
- package/med_editor/framework/print/document-print.d.ts +18 -18
- package/med_editor/framework/render-context.d.ts +111 -111
- package/med_editor/framework/render-define.d.ts +140 -140
- package/med_editor/framework/search/search-panel.d.ts +31 -31
- package/med_editor/framework/selection/document-selection.d.ts +92 -92
- package/med_editor/framework/selection/range-util.d.ts +36 -36
- package/med_editor/framework/selection/selection-overlays.d.ts +36 -36
- package/med_editor/framework/suggestions/input-suggestions.d.ts +29 -29
- package/med_editor/framework/util/adjust-viewport-elements.d.ts +12 -12
- package/med_editor/framework/util/common-util.d.ts +77 -77
- package/med_editor/framework/util/document-segmenter.d.ts +2 -2
- package/med_editor/framework/util/element-util.d.ts +417 -417
- package/med_editor/framework/vnode/editor-calendar-vnode.d.ts +43 -43
- package/package.json +18 -18
@@ -1,344 +1,344 @@
|
|
1
|
-
import { Element, NullableType, OrientType, PaddingProps, SelectionContentRange, TextAlign, ViewOptions } from "./element-define";
|
2
|
-
import { type TrackRunTypeEnum } from "./impl";
|
3
|
-
export declare type TextVertAlign = 'superscript' | 'subscript';
|
4
|
-
export declare abstract class INotifyPropertyChanged {
|
5
|
-
abstract getSerializeProps(viewOptions: ViewOptions): any;
|
6
|
-
private __attachedProperty;
|
7
|
-
setProperty<T>(propertyName: string, value: T): void;
|
8
|
-
removeProperty(propertyName: string): void;
|
9
|
-
getProperty<T>(propertyName: string): T | null;
|
10
|
-
cloneAttachedProperty(dest: INotifyPropertyChanged): void;
|
11
|
-
}
|
12
|
-
export declare class TextProps extends INotifyPropertyChanged {
|
13
|
-
constructor();
|
14
|
-
color: string;
|
15
|
-
fontName: string;
|
16
|
-
fontSize: number;
|
17
|
-
fontWeight: 'normal' | 'bold';
|
18
|
-
fontStyle: 'normal' | 'italic';
|
19
|
-
underline: boolean;
|
20
|
-
overline: boolean;
|
21
|
-
linethrough: boolean;
|
22
|
-
background: string;
|
23
|
-
letterSpace: number;
|
24
|
-
/**
|
25
|
-
* 上标或者下标
|
26
|
-
*/
|
27
|
-
vertAlign: TextVertAlign;
|
28
|
-
/**
|
29
|
-
* 字符边框
|
30
|
-
*/
|
31
|
-
border: boolean;
|
32
|
-
clearCache(): void;
|
33
|
-
clone(source: TextProps | null): TextProps;
|
34
|
-
setPropsValue(source: TextProps, target: TextProps): void;
|
35
|
-
getSerializeProps(viewOptions: ViewOptions): any;
|
36
|
-
private __cacheFont;
|
37
|
-
getFont(): string;
|
38
|
-
equals(props: TextProps): boolean;
|
39
|
-
}
|
40
|
-
export declare enum ParagraphNumberType {
|
41
|
-
none = -1,
|
42
|
-
/**
|
43
|
-
* 无序列表
|
44
|
-
*/
|
45
|
-
ul = 0,
|
46
|
-
/**
|
47
|
-
* 有序符号
|
48
|
-
*/
|
49
|
-
ol = 1
|
50
|
-
}
|
51
|
-
export declare const defaultParaHanging = 30;
|
52
|
-
export declare class ParagraphProps extends INotifyPropertyChanged {
|
53
|
-
indent: number;
|
54
|
-
hanging: number;
|
55
|
-
lineHeight: number;
|
56
|
-
textAlign: TextAlign;
|
57
|
-
numberType: ParagraphNumberType;
|
58
|
-
marginTop: number;
|
59
|
-
marginBottom: number;
|
60
|
-
tabs: Array<number>;
|
61
|
-
clone(dest?: ParagraphProps | null): ParagraphProps;
|
62
|
-
getSerializeProps(viewOptions: ViewOptions): any;
|
63
|
-
}
|
64
|
-
export declare class DocumentProps extends INotifyPropertyChanged {
|
65
|
-
width: number;
|
66
|
-
height: number;
|
67
|
-
padding: PaddingProps;
|
68
|
-
headerLine: number;
|
69
|
-
footerLine: number;
|
70
|
-
orient: OrientType;
|
71
|
-
createUserId: string;
|
72
|
-
createUserName: string;
|
73
|
-
createDate: string;
|
74
|
-
columns: number;
|
75
|
-
version: string;
|
76
|
-
clone(dest: DocumentProps): DocumentProps;
|
77
|
-
getSerializeProps(): any;
|
78
|
-
}
|
79
|
-
export declare class CheckBoxProps extends INotifyPropertyChanged {
|
80
|
-
size: number;
|
81
|
-
isChecked: boolean;
|
82
|
-
groupName: string | null;
|
83
|
-
trueChar: string;
|
84
|
-
falseChar: string;
|
85
|
-
clone(dest: CheckBoxProps): CheckBoxProps;
|
86
|
-
getSerializeProps(viewOptions: ViewOptions): {
|
87
|
-
size: number;
|
88
|
-
isChecked: boolean;
|
89
|
-
groupName: string;
|
90
|
-
};
|
91
|
-
}
|
92
|
-
export declare class RadioBoxProps extends INotifyPropertyChanged {
|
93
|
-
size: number;
|
94
|
-
isChecked: boolean;
|
95
|
-
clone(dest: RadioBoxProps): RadioBoxProps;
|
96
|
-
getSerializeProps(viewOptions: ViewOptions): {
|
97
|
-
size: number;
|
98
|
-
isCheced: boolean;
|
99
|
-
};
|
100
|
-
}
|
101
|
-
export declare class TableRowProps extends INotifyPropertyChanged {
|
102
|
-
minHeight: number;
|
103
|
-
headerRow: boolean;
|
104
|
-
clone(dest: TableRowProps): TableRowProps;
|
105
|
-
getSerializeProps(viewOptions: ViewOptions): any;
|
106
|
-
}
|
107
|
-
export declare type TableAlignment = 'start' | 'end' | 'center';
|
108
|
-
export declare class TableProps extends INotifyPropertyChanged {
|
109
|
-
id: string;
|
110
|
-
cols: Array<number>;
|
111
|
-
align: TableAlignment;
|
112
|
-
border: 'all' | 'none' | 'dashed';
|
113
|
-
allowBreakRow: boolean;
|
114
|
-
cellPadding: PaddingProps;
|
115
|
-
clone(dest: TableProps): TableProps;
|
116
|
-
getSerializeProps(viewOptions: ViewOptions): Partial<TableProps>;
|
117
|
-
}
|
118
|
-
export declare type CellMergeType = 'col-merge' | 'row-merge';
|
119
|
-
export declare type VMergeType = 'restart' | 'continue';
|
120
|
-
export declare type HMergeType = 'restart' | 'continue';
|
121
|
-
export declare type VerticalAlign = 'top' | 'middle' | 'bottom';
|
122
|
-
export declare type CellDiagonal = 'main' | 'sub' | 'all' | null;
|
123
|
-
export declare class TableCellProps extends INotifyPropertyChanged {
|
124
|
-
vMerge: VMergeType | null;
|
125
|
-
hMerge: HMergeType | null;
|
126
|
-
vAlign: VerticalAlign | null;
|
127
|
-
backgroundColor: string | null;
|
128
|
-
/**
|
129
|
-
* 对角线
|
130
|
-
*/
|
131
|
-
diagonal: CellDiagonal;
|
132
|
-
clone(dest: TableCellProps): TableCellProps;
|
133
|
-
getSerializeProps(options: ViewOptions): any;
|
134
|
-
}
|
135
|
-
export declare class PictureProps extends INotifyPropertyChanged {
|
136
|
-
title: string;
|
137
|
-
width: number;
|
138
|
-
height: number;
|
139
|
-
src: string;
|
140
|
-
border: 'all' | 'none';
|
141
|
-
clone(dest: PictureProps): PictureProps;
|
142
|
-
getSerializeProps(viewOptions: ViewOptions): NullableType<PictureProps>;
|
143
|
-
}
|
144
|
-
export declare class SVGProps extends INotifyPropertyChanged {
|
145
|
-
title: string;
|
146
|
-
width: number;
|
147
|
-
height: number;
|
148
|
-
value: string;
|
149
|
-
clone(dest: SVGProps): SVGProps;
|
150
|
-
getSerializeProps(viewOptions: ViewOptions): NullableType<SVGProps>;
|
151
|
-
}
|
152
|
-
export declare class DataDecorateProps extends INotifyPropertyChanged {
|
153
|
-
content: string;
|
154
|
-
size: number;
|
155
|
-
clone(dest: DataDecorateProps): DataDecorateProps;
|
156
|
-
getSerializeProps(viewOptions: ViewOptions): {
|
157
|
-
size: number;
|
158
|
-
content: string;
|
159
|
-
};
|
160
|
-
}
|
161
|
-
export declare type DataEleTypes = 'text' | 'droplist' | 'date' | 'check' | 'img';
|
162
|
-
export declare class DataEleBaseProps extends INotifyPropertyChanged {
|
163
|
-
id: string;
|
164
|
-
name: string;
|
165
|
-
fieldName: string;
|
166
|
-
caption: string;
|
167
|
-
required: boolean;
|
168
|
-
printable: boolean;
|
169
|
-
secretBrowse: boolean;
|
170
|
-
editable: boolean;
|
171
|
-
minLength: number;
|
172
|
-
underline: boolean;
|
173
|
-
expression: string;
|
174
|
-
hidden: boolean;
|
175
|
-
cloneBaseProps(destProps: DataEleBaseProps): void;
|
176
|
-
private setPropValue;
|
177
|
-
updateProps(props: DataEleBaseProps): void;
|
178
|
-
getBaseProps(props: NullableType<DataEleBaseProps>, options: ViewOptions): NullableType<DataEleBaseProps>;
|
179
|
-
getSerializeProps(viewOptions: ViewOptions): void;
|
180
|
-
}
|
181
|
-
export declare class DataEleBaseTextProps extends DataEleBaseProps {
|
182
|
-
constructor();
|
183
|
-
valueTextProps: TextProps;
|
184
|
-
nullText: string;
|
185
|
-
nullTextProps: TextProps;
|
186
|
-
dataType: 'text' | 'int' | 'float' | 'email' | 'date' | 'phone' | 'zipcode';
|
187
|
-
clone(dest?: DataEleBaseTextProps | null): DataEleBaseTextProps;
|
188
|
-
getSerializeProps(options: ViewOptions): any;
|
189
|
-
getBaseProps(props: NullableType<DataEleBaseTextProps>, options: ViewOptions): NullableType<DataEleBaseTextProps>;
|
190
|
-
updateProps(props: DataEleBaseTextProps): void;
|
191
|
-
}
|
192
|
-
export interface DataEleListOption {
|
193
|
-
code: string;
|
194
|
-
value: string;
|
195
|
-
}
|
196
|
-
export declare class DataEleListProps extends DataEleBaseTextProps {
|
197
|
-
constructor();
|
198
|
-
options: Array<DataEleListOption>;
|
199
|
-
/**
|
200
|
-
* 是否持久化选项到病历文件里面
|
201
|
-
*/
|
202
|
-
persistItems: boolean;
|
203
|
-
dropDownStyle: 'DropDownList' | 'DropDown';
|
204
|
-
/**
|
205
|
-
* 是否允许多选
|
206
|
-
*/
|
207
|
-
multiSelect: boolean;
|
208
|
-
displayField: 'code' | 'value';
|
209
|
-
clone(dest: DataEleListProps | null): DataEleListProps;
|
210
|
-
getSerializeProps(options: ViewOptions): any;
|
211
|
-
updateProps(props: DataEleListProps): void;
|
212
|
-
}
|
213
|
-
export declare function updatePartialProps(destProps: any, sourceProps: any): void;
|
214
|
-
export declare class CommContentProps extends INotifyPropertyChanged {
|
215
|
-
id: string;
|
216
|
-
createId: string;
|
217
|
-
createName: string;
|
218
|
-
createDate: Date;
|
219
|
-
text: string;
|
220
|
-
clone(dest: CommContentProps): CommContentProps;
|
221
|
-
getSerializeProps(viewOptions: ViewOptions): {
|
222
|
-
id: string;
|
223
|
-
text: string;
|
224
|
-
};
|
225
|
-
}
|
226
|
-
export declare class CommProps extends INotifyPropertyChanged {
|
227
|
-
id: string;
|
228
|
-
markType: "start" | "end";
|
229
|
-
text: string;
|
230
|
-
userId: string;
|
231
|
-
userName: string;
|
232
|
-
date: string;
|
233
|
-
clone(dest: CommProps): CommProps;
|
234
|
-
getSerializeProps(viewOptions: ViewOptions): {
|
235
|
-
id: string;
|
236
|
-
markType: "start" | "end";
|
237
|
-
text: string;
|
238
|
-
userId: string;
|
239
|
-
userName: string;
|
240
|
-
date: string;
|
241
|
-
};
|
242
|
-
}
|
243
|
-
export declare const trueChar = "\u2713";
|
244
|
-
export declare const falseChar = "\u00D7";
|
245
|
-
export declare class DataEleCheckProps extends DataEleBaseProps {
|
246
|
-
constructor();
|
247
|
-
border: boolean;
|
248
|
-
size: number;
|
249
|
-
checked: boolean;
|
250
|
-
checkedValue: string;
|
251
|
-
groupName: string;
|
252
|
-
multiSelect: boolean;
|
253
|
-
drawStateChar: boolean;
|
254
|
-
trueChar: string;
|
255
|
-
falseChar: string;
|
256
|
-
trueStateColor: string;
|
257
|
-
falseStateColor: string;
|
258
|
-
style: 'CheckBox' | 'RadioButton';
|
259
|
-
clone(dest: DataEleCheckProps | null): DataEleCheckProps;
|
260
|
-
getSerializeProps(options: ViewOptions): any;
|
261
|
-
updateProps(props: DataEleCheckProps): void;
|
262
|
-
}
|
263
|
-
export declare class DataEleImageProps extends DataEleBaseProps {
|
264
|
-
constructor();
|
265
|
-
width: number;
|
266
|
-
height: number;
|
267
|
-
src: string;
|
268
|
-
border: 'all' | 'none';
|
269
|
-
clone(dest: DataEleImageProps | null): DataEleImageProps;
|
270
|
-
getSerializeProps(options: ViewOptions): any;
|
271
|
-
updateProps(props: DataEleImageProps): void;
|
272
|
-
}
|
273
|
-
export declare class DataEleDateProps extends DataEleBaseTextProps {
|
274
|
-
minValue?: Date;
|
275
|
-
maxValue?: Date;
|
276
|
-
format?: string;
|
277
|
-
value: string;
|
278
|
-
clone(dest: DataEleDateProps | null): DataEleDateProps;
|
279
|
-
getSerializeProps(options: ViewOptions): any;
|
280
|
-
updateProps(props: DataEleDateProps): void;
|
281
|
-
}
|
282
|
-
export declare class ValidateCondition {
|
283
|
-
required: boolean;
|
284
|
-
maxLength: number;
|
285
|
-
dataType: 'string' | 'date' | 'time' | 'number' | 'float';
|
286
|
-
}
|
287
|
-
export declare class DataEleMHProps extends DataEleBaseProps {
|
288
|
-
age: string;
|
289
|
-
days: string;
|
290
|
-
cycles: string;
|
291
|
-
lastDate: string;
|
292
|
-
closeAge: string;
|
293
|
-
kind: string;
|
294
|
-
clone(dest: DataEleMHProps | null): DataEleMHProps;
|
295
|
-
getSerializeProps(options: ViewOptions): NullableType<DataEleMHProps>;
|
296
|
-
}
|
297
|
-
export declare class TrackRunProps {
|
298
|
-
type: TrackRunTypeEnum;
|
299
|
-
userId: string;
|
300
|
-
userName: string;
|
301
|
-
date: string;
|
302
|
-
id: string;
|
303
|
-
constructor(type: TrackRunTypeEnum);
|
304
|
-
clone(dest: TrackRunProps | null): void;
|
305
|
-
getSerializeProps(): NullableType<TrackRunProps>;
|
306
|
-
}
|
307
|
-
declare class FontMapStruct {
|
308
|
-
fontMap: Map<string, string>;
|
309
|
-
length: number;
|
310
|
-
registerFontMap(name: string, keyName: string): void;
|
311
|
-
getFontMap(name: string): string;
|
312
|
-
}
|
313
|
-
export declare const fontMapFunc: FontMapStruct;
|
314
|
-
export declare class ValidateProps {
|
315
|
-
id: string;
|
316
|
-
title: string;
|
317
|
-
msg: string;
|
318
|
-
clone(dest: ValidateProps | null): ValidateProps;
|
319
|
-
}
|
320
|
-
export declare class DataElementGroupProps extends DataEleBaseTextProps {
|
321
|
-
}
|
322
|
-
export declare class DataElementBarcodeProps {
|
323
|
-
type: 'ena13' | 'code128' | 'code39' | 'qrcode';
|
324
|
-
text: string;
|
325
|
-
width: number;
|
326
|
-
height: number;
|
327
|
-
clone(dest: DataElementBarcodeProps | null): void;
|
328
|
-
getSerializeProps(): {
|
329
|
-
type: "ena13" | "code128" | "code39" | "qrcode";
|
330
|
-
text: string;
|
331
|
-
width: number;
|
332
|
-
height: number;
|
333
|
-
};
|
334
|
-
}
|
335
|
-
export declare class BodyPartProps extends INotifyPropertyChanged {
|
336
|
-
partId: string;
|
337
|
-
getSerializeProps(viewOptions: ViewOptions): any;
|
338
|
-
}
|
339
|
-
export interface SelectionEffectObject {
|
340
|
-
selectionEleSets: Map<Element, SelectionContentRange>;
|
341
|
-
commRangeSets: Map<Element, SelectionContentRange>;
|
342
|
-
otherRangeSets: Map<Element, Array<SelectionContentRange>>;
|
343
|
-
}
|
344
|
-
export {};
|
1
|
+
import { Element, NullableType, OrientType, PaddingProps, SelectionContentRange, TextAlign, ViewOptions } from "./element-define";
|
2
|
+
import { type TrackRunTypeEnum } from "./impl";
|
3
|
+
export declare type TextVertAlign = 'superscript' | 'subscript';
|
4
|
+
export declare abstract class INotifyPropertyChanged {
|
5
|
+
abstract getSerializeProps(viewOptions: ViewOptions): any;
|
6
|
+
private __attachedProperty;
|
7
|
+
setProperty<T>(propertyName: string, value: T): void;
|
8
|
+
removeProperty(propertyName: string): void;
|
9
|
+
getProperty<T>(propertyName: string): T | null;
|
10
|
+
cloneAttachedProperty(dest: INotifyPropertyChanged): void;
|
11
|
+
}
|
12
|
+
export declare class TextProps extends INotifyPropertyChanged {
|
13
|
+
constructor();
|
14
|
+
color: string;
|
15
|
+
fontName: string;
|
16
|
+
fontSize: number;
|
17
|
+
fontWeight: 'normal' | 'bold';
|
18
|
+
fontStyle: 'normal' | 'italic';
|
19
|
+
underline: boolean;
|
20
|
+
overline: boolean;
|
21
|
+
linethrough: boolean;
|
22
|
+
background: string;
|
23
|
+
letterSpace: number;
|
24
|
+
/**
|
25
|
+
* 上标或者下标
|
26
|
+
*/
|
27
|
+
vertAlign: TextVertAlign;
|
28
|
+
/**
|
29
|
+
* 字符边框
|
30
|
+
*/
|
31
|
+
border: boolean;
|
32
|
+
clearCache(): void;
|
33
|
+
clone(source: TextProps | null): TextProps;
|
34
|
+
setPropsValue(source: TextProps, target: TextProps): void;
|
35
|
+
getSerializeProps(viewOptions: ViewOptions): any;
|
36
|
+
private __cacheFont;
|
37
|
+
getFont(): string;
|
38
|
+
equals(props: TextProps): boolean;
|
39
|
+
}
|
40
|
+
export declare enum ParagraphNumberType {
|
41
|
+
none = -1,
|
42
|
+
/**
|
43
|
+
* 无序列表
|
44
|
+
*/
|
45
|
+
ul = 0,
|
46
|
+
/**
|
47
|
+
* 有序符号
|
48
|
+
*/
|
49
|
+
ol = 1
|
50
|
+
}
|
51
|
+
export declare const defaultParaHanging = 30;
|
52
|
+
export declare class ParagraphProps extends INotifyPropertyChanged {
|
53
|
+
indent: number;
|
54
|
+
hanging: number;
|
55
|
+
lineHeight: number;
|
56
|
+
textAlign: TextAlign;
|
57
|
+
numberType: ParagraphNumberType;
|
58
|
+
marginTop: number;
|
59
|
+
marginBottom: number;
|
60
|
+
tabs: Array<number>;
|
61
|
+
clone(dest?: ParagraphProps | null): ParagraphProps;
|
62
|
+
getSerializeProps(viewOptions: ViewOptions): any;
|
63
|
+
}
|
64
|
+
export declare class DocumentProps extends INotifyPropertyChanged {
|
65
|
+
width: number;
|
66
|
+
height: number;
|
67
|
+
padding: PaddingProps;
|
68
|
+
headerLine: number;
|
69
|
+
footerLine: number;
|
70
|
+
orient: OrientType;
|
71
|
+
createUserId: string;
|
72
|
+
createUserName: string;
|
73
|
+
createDate: string;
|
74
|
+
columns: number;
|
75
|
+
version: string;
|
76
|
+
clone(dest: DocumentProps): DocumentProps;
|
77
|
+
getSerializeProps(): any;
|
78
|
+
}
|
79
|
+
export declare class CheckBoxProps extends INotifyPropertyChanged {
|
80
|
+
size: number;
|
81
|
+
isChecked: boolean;
|
82
|
+
groupName: string | null;
|
83
|
+
trueChar: string;
|
84
|
+
falseChar: string;
|
85
|
+
clone(dest: CheckBoxProps): CheckBoxProps;
|
86
|
+
getSerializeProps(viewOptions: ViewOptions): {
|
87
|
+
size: number;
|
88
|
+
isChecked: boolean;
|
89
|
+
groupName: string;
|
90
|
+
};
|
91
|
+
}
|
92
|
+
export declare class RadioBoxProps extends INotifyPropertyChanged {
|
93
|
+
size: number;
|
94
|
+
isChecked: boolean;
|
95
|
+
clone(dest: RadioBoxProps): RadioBoxProps;
|
96
|
+
getSerializeProps(viewOptions: ViewOptions): {
|
97
|
+
size: number;
|
98
|
+
isCheced: boolean;
|
99
|
+
};
|
100
|
+
}
|
101
|
+
export declare class TableRowProps extends INotifyPropertyChanged {
|
102
|
+
minHeight: number;
|
103
|
+
headerRow: boolean;
|
104
|
+
clone(dest: TableRowProps): TableRowProps;
|
105
|
+
getSerializeProps(viewOptions: ViewOptions): any;
|
106
|
+
}
|
107
|
+
export declare type TableAlignment = 'start' | 'end' | 'center';
|
108
|
+
export declare class TableProps extends INotifyPropertyChanged {
|
109
|
+
id: string;
|
110
|
+
cols: Array<number>;
|
111
|
+
align: TableAlignment;
|
112
|
+
border: 'all' | 'none' | 'dashed';
|
113
|
+
allowBreakRow: boolean;
|
114
|
+
cellPadding: PaddingProps;
|
115
|
+
clone(dest: TableProps): TableProps;
|
116
|
+
getSerializeProps(viewOptions: ViewOptions): Partial<TableProps>;
|
117
|
+
}
|
118
|
+
export declare type CellMergeType = 'col-merge' | 'row-merge';
|
119
|
+
export declare type VMergeType = 'restart' | 'continue';
|
120
|
+
export declare type HMergeType = 'restart' | 'continue';
|
121
|
+
export declare type VerticalAlign = 'top' | 'middle' | 'bottom';
|
122
|
+
export declare type CellDiagonal = 'main' | 'sub' | 'all' | null;
|
123
|
+
export declare class TableCellProps extends INotifyPropertyChanged {
|
124
|
+
vMerge: VMergeType | null;
|
125
|
+
hMerge: HMergeType | null;
|
126
|
+
vAlign: VerticalAlign | null;
|
127
|
+
backgroundColor: string | null;
|
128
|
+
/**
|
129
|
+
* 对角线
|
130
|
+
*/
|
131
|
+
diagonal: CellDiagonal;
|
132
|
+
clone(dest: TableCellProps): TableCellProps;
|
133
|
+
getSerializeProps(options: ViewOptions): any;
|
134
|
+
}
|
135
|
+
export declare class PictureProps extends INotifyPropertyChanged {
|
136
|
+
title: string;
|
137
|
+
width: number;
|
138
|
+
height: number;
|
139
|
+
src: string;
|
140
|
+
border: 'all' | 'none';
|
141
|
+
clone(dest: PictureProps): PictureProps;
|
142
|
+
getSerializeProps(viewOptions: ViewOptions): NullableType<PictureProps>;
|
143
|
+
}
|
144
|
+
export declare class SVGProps extends INotifyPropertyChanged {
|
145
|
+
title: string;
|
146
|
+
width: number;
|
147
|
+
height: number;
|
148
|
+
value: string;
|
149
|
+
clone(dest: SVGProps): SVGProps;
|
150
|
+
getSerializeProps(viewOptions: ViewOptions): NullableType<SVGProps>;
|
151
|
+
}
|
152
|
+
export declare class DataDecorateProps extends INotifyPropertyChanged {
|
153
|
+
content: string;
|
154
|
+
size: number;
|
155
|
+
clone(dest: DataDecorateProps): DataDecorateProps;
|
156
|
+
getSerializeProps(viewOptions: ViewOptions): {
|
157
|
+
size: number;
|
158
|
+
content: string;
|
159
|
+
};
|
160
|
+
}
|
161
|
+
export declare type DataEleTypes = 'text' | 'droplist' | 'date' | 'check' | 'img';
|
162
|
+
export declare class DataEleBaseProps extends INotifyPropertyChanged {
|
163
|
+
id: string;
|
164
|
+
name: string;
|
165
|
+
fieldName: string;
|
166
|
+
caption: string;
|
167
|
+
required: boolean;
|
168
|
+
printable: boolean;
|
169
|
+
secretBrowse: boolean;
|
170
|
+
editable: boolean;
|
171
|
+
minLength: number;
|
172
|
+
underline: boolean;
|
173
|
+
expression: string;
|
174
|
+
hidden: boolean;
|
175
|
+
cloneBaseProps(destProps: DataEleBaseProps): void;
|
176
|
+
private setPropValue;
|
177
|
+
updateProps(props: DataEleBaseProps): void;
|
178
|
+
getBaseProps(props: NullableType<DataEleBaseProps>, options: ViewOptions): NullableType<DataEleBaseProps>;
|
179
|
+
getSerializeProps(viewOptions: ViewOptions): void;
|
180
|
+
}
|
181
|
+
export declare class DataEleBaseTextProps extends DataEleBaseProps {
|
182
|
+
constructor();
|
183
|
+
valueTextProps: TextProps;
|
184
|
+
nullText: string;
|
185
|
+
nullTextProps: TextProps;
|
186
|
+
dataType: 'text' | 'int' | 'float' | 'email' | 'date' | 'phone' | 'zipcode';
|
187
|
+
clone(dest?: DataEleBaseTextProps | null): DataEleBaseTextProps;
|
188
|
+
getSerializeProps(options: ViewOptions): any;
|
189
|
+
getBaseProps(props: NullableType<DataEleBaseTextProps>, options: ViewOptions): NullableType<DataEleBaseTextProps>;
|
190
|
+
updateProps(props: DataEleBaseTextProps): void;
|
191
|
+
}
|
192
|
+
export interface DataEleListOption {
|
193
|
+
code: string;
|
194
|
+
value: string;
|
195
|
+
}
|
196
|
+
export declare class DataEleListProps extends DataEleBaseTextProps {
|
197
|
+
constructor();
|
198
|
+
options: Array<DataEleListOption>;
|
199
|
+
/**
|
200
|
+
* 是否持久化选项到病历文件里面
|
201
|
+
*/
|
202
|
+
persistItems: boolean;
|
203
|
+
dropDownStyle: 'DropDownList' | 'DropDown';
|
204
|
+
/**
|
205
|
+
* 是否允许多选
|
206
|
+
*/
|
207
|
+
multiSelect: boolean;
|
208
|
+
displayField: 'code' | 'value';
|
209
|
+
clone(dest: DataEleListProps | null): DataEleListProps;
|
210
|
+
getSerializeProps(options: ViewOptions): any;
|
211
|
+
updateProps(props: DataEleListProps): void;
|
212
|
+
}
|
213
|
+
export declare function updatePartialProps(destProps: any, sourceProps: any): void;
|
214
|
+
export declare class CommContentProps extends INotifyPropertyChanged {
|
215
|
+
id: string;
|
216
|
+
createId: string;
|
217
|
+
createName: string;
|
218
|
+
createDate: Date;
|
219
|
+
text: string;
|
220
|
+
clone(dest: CommContentProps): CommContentProps;
|
221
|
+
getSerializeProps(viewOptions: ViewOptions): {
|
222
|
+
id: string;
|
223
|
+
text: string;
|
224
|
+
};
|
225
|
+
}
|
226
|
+
export declare class CommProps extends INotifyPropertyChanged {
|
227
|
+
id: string;
|
228
|
+
markType: "start" | "end";
|
229
|
+
text: string;
|
230
|
+
userId: string;
|
231
|
+
userName: string;
|
232
|
+
date: string;
|
233
|
+
clone(dest: CommProps): CommProps;
|
234
|
+
getSerializeProps(viewOptions: ViewOptions): {
|
235
|
+
id: string;
|
236
|
+
markType: "start" | "end";
|
237
|
+
text: string;
|
238
|
+
userId: string;
|
239
|
+
userName: string;
|
240
|
+
date: string;
|
241
|
+
};
|
242
|
+
}
|
243
|
+
export declare const trueChar = "\u2713";
|
244
|
+
export declare const falseChar = "\u00D7";
|
245
|
+
export declare class DataEleCheckProps extends DataEleBaseProps {
|
246
|
+
constructor();
|
247
|
+
border: boolean;
|
248
|
+
size: number;
|
249
|
+
checked: boolean;
|
250
|
+
checkedValue: string;
|
251
|
+
groupName: string;
|
252
|
+
multiSelect: boolean;
|
253
|
+
drawStateChar: boolean;
|
254
|
+
trueChar: string;
|
255
|
+
falseChar: string;
|
256
|
+
trueStateColor: string;
|
257
|
+
falseStateColor: string;
|
258
|
+
style: 'CheckBox' | 'RadioButton';
|
259
|
+
clone(dest: DataEleCheckProps | null): DataEleCheckProps;
|
260
|
+
getSerializeProps(options: ViewOptions): any;
|
261
|
+
updateProps(props: DataEleCheckProps): void;
|
262
|
+
}
|
263
|
+
export declare class DataEleImageProps extends DataEleBaseProps {
|
264
|
+
constructor();
|
265
|
+
width: number;
|
266
|
+
height: number;
|
267
|
+
src: string;
|
268
|
+
border: 'all' | 'none';
|
269
|
+
clone(dest: DataEleImageProps | null): DataEleImageProps;
|
270
|
+
getSerializeProps(options: ViewOptions): any;
|
271
|
+
updateProps(props: DataEleImageProps): void;
|
272
|
+
}
|
273
|
+
export declare class DataEleDateProps extends DataEleBaseTextProps {
|
274
|
+
minValue?: Date;
|
275
|
+
maxValue?: Date;
|
276
|
+
format?: string;
|
277
|
+
value: string;
|
278
|
+
clone(dest: DataEleDateProps | null): DataEleDateProps;
|
279
|
+
getSerializeProps(options: ViewOptions): any;
|
280
|
+
updateProps(props: DataEleDateProps): void;
|
281
|
+
}
|
282
|
+
export declare class ValidateCondition {
|
283
|
+
required: boolean;
|
284
|
+
maxLength: number;
|
285
|
+
dataType: 'string' | 'date' | 'time' | 'number' | 'float';
|
286
|
+
}
|
287
|
+
export declare class DataEleMHProps extends DataEleBaseProps {
|
288
|
+
age: string;
|
289
|
+
days: string;
|
290
|
+
cycles: string;
|
291
|
+
lastDate: string;
|
292
|
+
closeAge: string;
|
293
|
+
kind: string;
|
294
|
+
clone(dest: DataEleMHProps | null): DataEleMHProps;
|
295
|
+
getSerializeProps(options: ViewOptions): NullableType<DataEleMHProps>;
|
296
|
+
}
|
297
|
+
export declare class TrackRunProps {
|
298
|
+
type: TrackRunTypeEnum;
|
299
|
+
userId: string;
|
300
|
+
userName: string;
|
301
|
+
date: string;
|
302
|
+
id: string;
|
303
|
+
constructor(type: TrackRunTypeEnum);
|
304
|
+
clone(dest: TrackRunProps | null): void;
|
305
|
+
getSerializeProps(): NullableType<TrackRunProps>;
|
306
|
+
}
|
307
|
+
declare class FontMapStruct {
|
308
|
+
fontMap: Map<string, string>;
|
309
|
+
length: number;
|
310
|
+
registerFontMap(name: string, keyName: string): void;
|
311
|
+
getFontMap(name: string): string;
|
312
|
+
}
|
313
|
+
export declare const fontMapFunc: FontMapStruct;
|
314
|
+
export declare class ValidateProps {
|
315
|
+
id: string;
|
316
|
+
title: string;
|
317
|
+
msg: string;
|
318
|
+
clone(dest: ValidateProps | null): ValidateProps;
|
319
|
+
}
|
320
|
+
export declare class DataElementGroupProps extends DataEleBaseTextProps {
|
321
|
+
}
|
322
|
+
export declare class DataElementBarcodeProps {
|
323
|
+
type: 'ena13' | 'code128' | 'code39' | 'qrcode';
|
324
|
+
text: string;
|
325
|
+
width: number;
|
326
|
+
height: number;
|
327
|
+
clone(dest: DataElementBarcodeProps | null): void;
|
328
|
+
getSerializeProps(): {
|
329
|
+
type: "ena13" | "code128" | "code39" | "qrcode";
|
330
|
+
text: string;
|
331
|
+
width: number;
|
332
|
+
height: number;
|
333
|
+
};
|
334
|
+
}
|
335
|
+
export declare class BodyPartProps extends INotifyPropertyChanged {
|
336
|
+
partId: string;
|
337
|
+
getSerializeProps(viewOptions: ViewOptions): any;
|
338
|
+
}
|
339
|
+
export interface SelectionEffectObject {
|
340
|
+
selectionEleSets: Map<Element, SelectionContentRange>;
|
341
|
+
commRangeSets: Map<Element, SelectionContentRange>;
|
342
|
+
otherRangeSets: Map<Element, Array<SelectionContentRange>>;
|
343
|
+
}
|
344
|
+
export {};
|