ht-emr 0.7.42 → 0.7.45
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/dist/canvas-editor.js +4249 -4096
- package/dist/canvas-editor.umd.cjs +93 -93
- package/dist/src/editor/core/command/CommandAdapt.d.ts +1 -1
- package/dist/src/editor/core/draw/Draw.d.ts +17 -0
- package/dist/src/editor/core/draw/particle/table/TableOperate.d.ts +1 -1
- package/dist/src/editor/interface/Element.d.ts +6 -2
- package/package.json +1 -1
|
@@ -107,7 +107,7 @@ export declare class CommandAdapt {
|
|
|
107
107
|
rowFlex(payload: RowFlex): void;
|
|
108
108
|
vertical(item: VerticalAlign): void;
|
|
109
109
|
rowMargin(payload: number): void;
|
|
110
|
-
insertTable(row: number, col: number): void;
|
|
110
|
+
insertTable(row: number, col: number, tableEditable?: boolean): void;
|
|
111
111
|
insertTableTopRow(): void;
|
|
112
112
|
insertTableBottomRow(): void;
|
|
113
113
|
insertTableLeftCol(): void;
|
|
@@ -279,6 +279,16 @@ export declare class Draw {
|
|
|
279
279
|
private getElementLayoutWidth;
|
|
280
280
|
isContentReadonly(): boolean;
|
|
281
281
|
isSelectionDisabled(): boolean;
|
|
282
|
+
/**
|
|
283
|
+
* 表单模式下,光标是否落在可交互控件上。
|
|
284
|
+
*
|
|
285
|
+
* 不可编辑表格(tableEditable !== true)只应限制单元格文本与表格结构的编辑,
|
|
286
|
+
* 表格内的业务控件仍要能正常交互(弹层、勾选、输入),故单列该判定用于放行只读。
|
|
287
|
+
* TextField 除外——它的表单输入规则(仅含嵌套控件时 value 可输入)在上面单独处理。
|
|
288
|
+
*
|
|
289
|
+
* @returns 光标处是否为可交互控件
|
|
290
|
+
*/
|
|
291
|
+
private getIsInteractiveControlAtCursor;
|
|
282
292
|
/**
|
|
283
293
|
* 设置编辑器模式
|
|
284
294
|
*
|
|
@@ -301,6 +311,7 @@ export declare class Draw {
|
|
|
301
311
|
*/
|
|
302
312
|
private hideTextFieldWhitespace;
|
|
303
313
|
private getSubTemplateRuntimeEndIndex;
|
|
314
|
+
private getLegacySubTemplateRuntimeEndIndex;
|
|
304
315
|
private syncSubTemplateExpandedState;
|
|
305
316
|
private applySubTemplateRuntimeState;
|
|
306
317
|
/**
|
|
@@ -315,6 +326,7 @@ export declare class Draw {
|
|
|
315
326
|
*/
|
|
316
327
|
private updateTextFieldPlaceholderVisibility;
|
|
317
328
|
isReadonly(): boolean;
|
|
329
|
+
isTableEditable(): boolean;
|
|
318
330
|
isDisabled(): boolean;
|
|
319
331
|
/**
|
|
320
332
|
* 判断是否为设计模式
|
|
@@ -790,6 +802,11 @@ export declare class Draw {
|
|
|
790
802
|
setPaperDirection(payload: PaperDirection): void;
|
|
791
803
|
setPaperMargin(payload: IMargin): void;
|
|
792
804
|
getOriginValue(options?: IGetOriginValueOption): Required<IEditorData>;
|
|
805
|
+
/**
|
|
806
|
+
* 展开子模板产生的元素只参与当前渲染,不应作为文档内容导出。
|
|
807
|
+
* 否则重新加载时会把已展开内容和子模板快照再次叠加。
|
|
808
|
+
*/
|
|
809
|
+
private removeSubTemplateRuntimeElements;
|
|
793
810
|
getValue(options?: IGetValueOption): IEditorResult;
|
|
794
811
|
setValue(payload: Partial<IEditorData>, options?: ISetValueOption): void;
|
|
795
812
|
setEditorData(payload: Partial<Omit<IEditorData, 'graffiti'>>): void;
|
|
@@ -9,7 +9,7 @@ export declare class TableOperate {
|
|
|
9
9
|
private tableParticle;
|
|
10
10
|
private options;
|
|
11
11
|
constructor(draw: Draw);
|
|
12
|
-
insertTable(row: number, col: number): void;
|
|
12
|
+
insertTable(row: number, col: number, tableEditable?: boolean): void;
|
|
13
13
|
insertTableTopRow(): void;
|
|
14
14
|
insertTableBottomRow(): void;
|
|
15
15
|
adjustColWidth(element: IElement): void;
|
|
@@ -80,6 +80,8 @@ export interface ITableAttr {
|
|
|
80
80
|
tdPadding?: [number, number, number, number];
|
|
81
81
|
}
|
|
82
82
|
export interface ITableRule {
|
|
83
|
+
/** 表单模式下是否允许编辑单元格及表格结构 */
|
|
84
|
+
tableEditable?: boolean;
|
|
83
85
|
tableToolDisabled?: boolean;
|
|
84
86
|
}
|
|
85
87
|
export interface ITableElement {
|
|
@@ -263,8 +265,10 @@ export type ITemplateConditionRelation = 'and' | 'or';
|
|
|
263
265
|
export interface ITemplateCondition {
|
|
264
266
|
/** 匹配字段标签 */
|
|
265
267
|
label: string;
|
|
266
|
-
/**
|
|
267
|
-
|
|
268
|
+
/** 精确匹配值 */
|
|
269
|
+
value?: string;
|
|
270
|
+
/** 可选正则表达式;未选择基本信息精确值时使用 */
|
|
271
|
+
regex?: string;
|
|
268
272
|
/** 字段来源,默认 all */
|
|
269
273
|
source?: ITemplateConditionSource;
|
|
270
274
|
}
|