@hailin-zheng/editor-core 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. package/editor.css +610 -610
  2. package/index-cjs.d.ts +31 -31
  3. package/index-cjs.js +22202 -22166
  4. package/index-cjs.js.map +1 -1
  5. package/index.d.ts +31 -31
  6. package/index.js +22204 -22169
  7. package/index.js.map +1 -1
  8. package/med_editor/doc-editor.d.ts +464 -461
  9. package/med_editor/doc-rule.d.ts +46 -46
  10. package/med_editor/editor-core.d.ts +21 -21
  11. package/med_editor/framework/code-interpreter/ast-parser.d.ts +4 -4
  12. package/med_editor/framework/code-interpreter/document-eval-func.d.ts +18 -18
  13. package/med_editor/framework/code-interpreter/dynamic-execute.d.ts +23 -23
  14. package/med_editor/framework/doc-layout/document-arrange.d.ts +86 -86
  15. package/med_editor/framework/doc-layout/paragraph-arrange.d.ts +107 -107
  16. package/med_editor/framework/document-change.d.ts +295 -295
  17. package/med_editor/framework/document-combine.d.ts +24 -24
  18. package/med_editor/framework/document-comment.d.ts +38 -38
  19. package/med_editor/framework/document-context.d.ts +133 -133
  20. package/med_editor/framework/document-event.d.ts +251 -251
  21. package/med_editor/framework/document-input-cursor.d.ts +43 -43
  22. package/med_editor/framework/document-paginator.d.ts +46 -46
  23. package/med_editor/framework/document-svg.d.ts +36 -36
  24. package/med_editor/framework/document-template.d.ts +13 -13
  25. package/med_editor/framework/document-textline-mode.d.ts +6 -6
  26. package/med_editor/framework/element-define.d.ts +409 -406
  27. package/med_editor/framework/element-event-define.d.ts +107 -107
  28. package/med_editor/framework/element-props.d.ts +343 -343
  29. package/med_editor/framework/element-reader.d.ts +20 -20
  30. package/med_editor/framework/element-serialize.d.ts +36 -36
  31. package/med_editor/framework/element-type-handler.d.ts +9 -9
  32. package/med_editor/framework/history/element-trace-manage.d.ts +107 -107
  33. package/med_editor/framework/history/element-trace-tracking.d.ts +89 -89
  34. package/med_editor/framework/impl/checkbox/checkbox-impl.d.ts +19 -19
  35. package/med_editor/framework/impl/comments/comment-content-impl.d.ts +39 -39
  36. package/med_editor/framework/impl/comments/comment-element-impl.d.ts +24 -24
  37. package/med_editor/framework/impl/comments/comments-container-impl.d.ts +19 -19
  38. package/med_editor/framework/impl/comments/validate-msg-impl.d.ts +19 -19
  39. package/med_editor/framework/impl/data-element/data-decorate-impl.d.ts +15 -15
  40. package/med_editor/framework/impl/data-element/data-element-barcode.d.ts +32 -32
  41. package/med_editor/framework/impl/data-element/data-element-base-impl.d.ts +96 -96
  42. package/med_editor/framework/impl/data-element/data-element-check-impl.d.ts +26 -26
  43. package/med_editor/framework/impl/data-element/data-element-date-impl.d.ts +23 -23
  44. package/med_editor/framework/impl/data-element/data-element-group-impl.d.ts +17 -17
  45. package/med_editor/framework/impl/data-element/data-element-image-impl.d.ts +23 -23
  46. package/med_editor/framework/impl/data-element/data-element-list-impl.d.ts +21 -21
  47. package/med_editor/framework/impl/data-element/data-element-text-impl.d.ts +22 -22
  48. package/med_editor/framework/impl/data-element/qrcode.d.ts +93 -93
  49. package/med_editor/framework/impl/decorate/fill-null-space-imple.d.ts +16 -16
  50. package/med_editor/framework/impl/document/doc-body-impl.d.ts +19 -20
  51. package/med_editor/framework/impl/document/doc-body-part-impl.d.ts +22 -22
  52. package/med_editor/framework/impl/document/doc-container-impl.d.ts +7 -7
  53. package/med_editor/framework/impl/document/doc-footer-impl.d.ts +19 -19
  54. package/med_editor/framework/impl/document/doc-header-impl.d.ts +19 -19
  55. package/med_editor/framework/impl/document/doc-impl.d.ts +72 -71
  56. package/med_editor/framework/impl/index.d.ts +39 -39
  57. package/med_editor/framework/impl/media-formula/menstrual-history.d.ts +31 -31
  58. package/med_editor/framework/impl/media-formula/permanent-teeth.d.ts +34 -34
  59. package/med_editor/framework/impl/paragraph/p-impl.d.ts +38 -38
  60. package/med_editor/framework/impl/picture/RectEle.d.ts +44 -44
  61. package/med_editor/framework/impl/picture/image-impl.d.ts +24 -24
  62. package/med_editor/framework/impl/radio/radio-impl.d.ts +17 -17
  63. package/med_editor/framework/impl/svg/svg-impl.d.ts +20 -20
  64. package/med_editor/framework/impl/symbol/br-symbol-impl.d.ts +18 -18
  65. package/med_editor/framework/impl/symbol/p-symbol-impl.d.ts +16 -16
  66. package/med_editor/framework/impl/symbol/page-br-symbol-impl.d.ts +20 -20
  67. package/med_editor/framework/impl/symbol/tab-symbol-impl.d.ts +15 -15
  68. package/med_editor/framework/impl/table/table-cell-impl.d.ts +34 -34
  69. package/med_editor/framework/impl/table/table-impl.d.ts +49 -49
  70. package/med_editor/framework/impl/table/table-row-impl.d.ts +27 -27
  71. package/med_editor/framework/impl/table/table-split-cell-patch.d.ts +20 -20
  72. package/med_editor/framework/impl/table/table-split-cell.d.ts +92 -92
  73. package/med_editor/framework/impl/table/table-util.d.ts +180 -180
  74. package/med_editor/framework/impl/text/text-impl.d.ts +34 -34
  75. package/med_editor/framework/impl/text/track-run-impl.d.ts +27 -27
  76. package/med_editor/framework/infrastructure/event-subject.d.ts +56 -56
  77. package/med_editor/framework/infrastructure/notify.d.ts +13 -13
  78. package/med_editor/framework/print/document-print-offscreen.d.ts +58 -58
  79. package/med_editor/framework/print/document-print.d.ts +18 -18
  80. package/med_editor/framework/render-context.d.ts +111 -111
  81. package/med_editor/framework/render-define.d.ts +141 -141
  82. package/med_editor/framework/selection/document-selection.d.ts +91 -97
  83. package/med_editor/framework/selection/range-util.d.ts +36 -36
  84. package/med_editor/framework/selection/selection-overlays.d.ts +32 -32
  85. package/med_editor/framework/util/adjust-viewport-elements.d.ts +12 -12
  86. package/med_editor/framework/util/common-util.d.ts +76 -76
  87. package/med_editor/framework/util/document-segmenter.d.ts +2 -2
  88. package/med_editor/framework/util/element-util.d.ts +410 -410
  89. package/med_editor/framework/vnode/editor-calendar-vnode.d.ts +42 -42
  90. package/package.json +19 -19
@@ -1,343 +1,343 @@
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 | null;
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
- dropDownStyle: 'DropDownList' | 'DropDown';
200
- /**
201
- * 是否允许多选
202
- */
203
- multiSelect: boolean;
204
- displayField: 'code' | 'value';
205
- clone(dest: DataEleListProps | null): DataEleListProps;
206
- getSerializeProps(options: ViewOptions): any;
207
- updateProps(props: DataEleListProps): void;
208
- }
209
- export declare class CommContentProps extends INotifyPropertyChanged {
210
- id: string;
211
- createId: string;
212
- createName: string;
213
- createDate: Date;
214
- text: string;
215
- clone(dest: CommContentProps): CommContentProps;
216
- getSerializeProps(viewOptions: ViewOptions): {
217
- id: string;
218
- text: string;
219
- };
220
- }
221
- export declare class CommProps extends INotifyPropertyChanged {
222
- id: string;
223
- markType: "start" | "end";
224
- text: string;
225
- userId: string;
226
- userName: string;
227
- date: string;
228
- clone(dest: CommProps): CommProps;
229
- getSerializeProps(viewOptions: ViewOptions): {
230
- id: string;
231
- markType: "start" | "end";
232
- text: string;
233
- userId: string;
234
- userName: string;
235
- date: string;
236
- };
237
- }
238
- export declare const trueChar = "\u2713";
239
- export declare const falseChar = "\u00D7";
240
- export declare class DataEleCheckProps extends DataEleBaseProps {
241
- constructor();
242
- border: boolean;
243
- size: number;
244
- checked: boolean;
245
- checkedValue: string;
246
- groupName: string;
247
- multiSelect: boolean;
248
- drawStateChar: boolean;
249
- trueChar: string;
250
- falseChar: string;
251
- trueStateColor: string;
252
- falseStateColor: string;
253
- style: 'CheckBox' | 'RadioButton';
254
- clone(dest: DataEleCheckProps | null): DataEleCheckProps;
255
- getSerializeProps(options: ViewOptions): any;
256
- updateProps(props: DataEleCheckProps): void;
257
- }
258
- export declare class DataEleImageProps extends DataEleBaseProps {
259
- constructor();
260
- width: number;
261
- height: number;
262
- src: string;
263
- border: 'all' | 'none';
264
- clone(dest: DataEleImageProps | null): DataEleImageProps;
265
- getSerializeProps(options: ViewOptions): any;
266
- updateProps(props: DataEleImageProps): void;
267
- }
268
- export declare class DataEleDateProps extends DataEleBaseTextProps {
269
- minValue?: Date;
270
- maxValue?: Date;
271
- format?: string;
272
- value: string;
273
- clone(dest: DataEleDateProps | null): DataEleDateProps;
274
- getSerializeProps(options: ViewOptions): any;
275
- updateProps(props: DataEleDateProps): void;
276
- }
277
- export declare class ValidateCondition {
278
- required: boolean;
279
- maxLength: number;
280
- dataType: 'string' | 'date' | 'time' | 'number' | 'float';
281
- }
282
- export declare class DataEleMHProps extends DataEleBaseProps {
283
- age: string;
284
- days: string;
285
- cycles: string;
286
- lastDate: string;
287
- closeAge: string;
288
- kind: string;
289
- clone(dest: DataEleMHProps | null): DataEleMHProps;
290
- getSerializeProps(options: ViewOptions): NullableType<DataEleMHProps>;
291
- }
292
- export declare class TrackRunProps {
293
- type: TrackRunTypeEnum;
294
- userId: string;
295
- userName: string;
296
- date: string;
297
- id: string;
298
- constructor(type: TrackRunTypeEnum);
299
- clone(dest: TrackRunProps | null): void;
300
- getSerializeProps(): NullableType<TrackRunProps>;
301
- }
302
- declare class FontMapStruct {
303
- fontMap: Map<string, string>;
304
- length: number;
305
- registerFontMap(name: string, keyName: string): void;
306
- getFontMap(name: string): string;
307
- }
308
- export declare const fontMapFunc: FontMapStruct;
309
- export declare class ValidateProps {
310
- id: string;
311
- title: string;
312
- msg: string;
313
- clone(dest: ValidateProps | null): ValidateProps;
314
- }
315
- export declare class DataElementGroupProps extends INotifyPropertyChanged {
316
- id: string;
317
- name: string;
318
- hidden: boolean;
319
- clone(dest: DataElementGroupProps | null): void;
320
- getSerializeProps(): NullableType<DataElementGroupProps>;
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
- }
343
- 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 | null;
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
+ dropDownStyle: 'DropDownList' | 'DropDown';
200
+ /**
201
+ * 是否允许多选
202
+ */
203
+ multiSelect: boolean;
204
+ displayField: 'code' | 'value';
205
+ clone(dest: DataEleListProps | null): DataEleListProps;
206
+ getSerializeProps(options: ViewOptions): any;
207
+ updateProps(props: DataEleListProps): void;
208
+ }
209
+ export declare class CommContentProps extends INotifyPropertyChanged {
210
+ id: string;
211
+ createId: string;
212
+ createName: string;
213
+ createDate: Date;
214
+ text: string;
215
+ clone(dest: CommContentProps): CommContentProps;
216
+ getSerializeProps(viewOptions: ViewOptions): {
217
+ id: string;
218
+ text: string;
219
+ };
220
+ }
221
+ export declare class CommProps extends INotifyPropertyChanged {
222
+ id: string;
223
+ markType: "start" | "end";
224
+ text: string;
225
+ userId: string;
226
+ userName: string;
227
+ date: string;
228
+ clone(dest: CommProps): CommProps;
229
+ getSerializeProps(viewOptions: ViewOptions): {
230
+ id: string;
231
+ markType: "start" | "end";
232
+ text: string;
233
+ userId: string;
234
+ userName: string;
235
+ date: string;
236
+ };
237
+ }
238
+ export declare const trueChar = "\u2713";
239
+ export declare const falseChar = "\u00D7";
240
+ export declare class DataEleCheckProps extends DataEleBaseProps {
241
+ constructor();
242
+ border: boolean;
243
+ size: number;
244
+ checked: boolean;
245
+ checkedValue: string;
246
+ groupName: string;
247
+ multiSelect: boolean;
248
+ drawStateChar: boolean;
249
+ trueChar: string;
250
+ falseChar: string;
251
+ trueStateColor: string;
252
+ falseStateColor: string;
253
+ style: 'CheckBox' | 'RadioButton';
254
+ clone(dest: DataEleCheckProps | null): DataEleCheckProps;
255
+ getSerializeProps(options: ViewOptions): any;
256
+ updateProps(props: DataEleCheckProps): void;
257
+ }
258
+ export declare class DataEleImageProps extends DataEleBaseProps {
259
+ constructor();
260
+ width: number;
261
+ height: number;
262
+ src: string;
263
+ border: 'all' | 'none';
264
+ clone(dest: DataEleImageProps | null): DataEleImageProps;
265
+ getSerializeProps(options: ViewOptions): any;
266
+ updateProps(props: DataEleImageProps): void;
267
+ }
268
+ export declare class DataEleDateProps extends DataEleBaseTextProps {
269
+ minValue?: Date;
270
+ maxValue?: Date;
271
+ format?: string;
272
+ value: string;
273
+ clone(dest: DataEleDateProps | null): DataEleDateProps;
274
+ getSerializeProps(options: ViewOptions): any;
275
+ updateProps(props: DataEleDateProps): void;
276
+ }
277
+ export declare class ValidateCondition {
278
+ required: boolean;
279
+ maxLength: number;
280
+ dataType: 'string' | 'date' | 'time' | 'number' | 'float';
281
+ }
282
+ export declare class DataEleMHProps extends DataEleBaseProps {
283
+ age: string;
284
+ days: string;
285
+ cycles: string;
286
+ lastDate: string;
287
+ closeAge: string;
288
+ kind: string;
289
+ clone(dest: DataEleMHProps | null): DataEleMHProps;
290
+ getSerializeProps(options: ViewOptions): NullableType<DataEleMHProps>;
291
+ }
292
+ export declare class TrackRunProps {
293
+ type: TrackRunTypeEnum;
294
+ userId: string;
295
+ userName: string;
296
+ date: string;
297
+ id: string;
298
+ constructor(type: TrackRunTypeEnum);
299
+ clone(dest: TrackRunProps | null): void;
300
+ getSerializeProps(): NullableType<TrackRunProps>;
301
+ }
302
+ declare class FontMapStruct {
303
+ fontMap: Map<string, string>;
304
+ length: number;
305
+ registerFontMap(name: string, keyName: string): void;
306
+ getFontMap(name: string): string;
307
+ }
308
+ export declare const fontMapFunc: FontMapStruct;
309
+ export declare class ValidateProps {
310
+ id: string;
311
+ title: string;
312
+ msg: string;
313
+ clone(dest: ValidateProps | null): ValidateProps;
314
+ }
315
+ export declare class DataElementGroupProps extends INotifyPropertyChanged {
316
+ id: string;
317
+ name: string;
318
+ hidden: boolean;
319
+ clone(dest: DataElementGroupProps | null): void;
320
+ getSerializeProps(): NullableType<DataElementGroupProps>;
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
+ }
343
+ export {};