ht-emr 0.7.53 → 0.7.55
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 +6596 -6531
- package/dist/canvas-editor.umd.cjs +92 -92
- package/dist/src/editor/core/cursor/Cursor.d.ts +4 -0
- package/dist/src/editor/core/draw/Draw.d.ts +1 -0
- package/dist/src/editor/core/draw/control/Control.d.ts +1 -0
- package/dist/src/editor/interface/Draw.d.ts +1 -0
- package/dist/src/editor/interface/Element.d.ts +2 -0
- package/dist/src/editor/utils/element.d.ts +7 -0
- package/dist/src/editor/utils/templateCondition.d.ts +4 -0
- package/package.json +1 -1
|
@@ -299,6 +299,8 @@ export interface ISubTemplateElement {
|
|
|
299
299
|
subTemplateExpanded?: boolean;
|
|
300
300
|
/** 子模板运行时父节点ID,不参与导出 */
|
|
301
301
|
subTemplateParentId?: string;
|
|
302
|
+
/** 子模板运行时实例ID,用于区分重复插入的模板 */
|
|
303
|
+
subTemplateInstanceId?: string;
|
|
302
304
|
}
|
|
303
305
|
export type IElement = IElementBasic & IElementStyle & IElementRule & IElementGroup & ITable & IHyperlinkElement & ISuperscriptSubscript & ISeparator & IControlElement & ICheckboxElement & IRadioElement & ILaTexElement & IDateElement & IImageElement & IBlockElement & ITitleElement & IListElement & IAreaElement & ILabelElement & IMenstrualHistoryElement & IFetalHeartPositionElement & IToothPositionElement & IMacroElement & IReusableItemElement & ISubTemplateElement;
|
|
304
306
|
export interface IElementMetrics {
|
|
@@ -13,6 +13,13 @@ export declare function registerElementMapping(id: string, originalElement: IEle
|
|
|
13
13
|
* Clear element mapping (for cleanup)
|
|
14
14
|
*/
|
|
15
15
|
export declare function clearElementMappings(): void;
|
|
16
|
+
export interface IControlElementIdentity {
|
|
17
|
+
controlId: string;
|
|
18
|
+
originControlId: string | null;
|
|
19
|
+
subTemplateInstanceId: string | null;
|
|
20
|
+
}
|
|
21
|
+
export declare function getControlElementIdentity(element?: IElement | null): IControlElementIdentity | null;
|
|
22
|
+
export declare function isSameControlElementIdentity(source?: IElement | null, target?: IElement | null): boolean;
|
|
16
23
|
import { LocationPosition } from '../dataset/enum/Common';
|
|
17
24
|
import { RowFlex } from '../dataset/enum/Row';
|
|
18
25
|
import { DeepRequired } from '../interface/Common';
|
|
@@ -7,6 +7,10 @@ export interface ITemplateFieldValue {
|
|
|
7
7
|
}
|
|
8
8
|
export type ITemplateFieldMap = Map<string, ITemplateFieldValue[]>;
|
|
9
9
|
export declare function walkNestedElements(elementList: IElement[], visitor: (element: IElement) => void): void;
|
|
10
|
+
/** Attach runtime content to one concrete sub-template instance. */
|
|
11
|
+
export declare function applySubTemplateRuntimeContext(elementList: IElement[], subTemplate: IElement): void;
|
|
12
|
+
/** Remove fields that only identify expanded runtime instances. */
|
|
13
|
+
export declare function clearSubTemplateRuntimeMetadata(elementList: IElement[]): void;
|
|
10
14
|
export declare function collectTemplateFieldMap(elementList: IElement[]): ITemplateFieldMap;
|
|
11
15
|
export declare function getTemplateConditionVisible(conditions: ITemplateCondition[] | undefined, fieldMap: ITemplateFieldMap, relation?: ITemplateConditionRelation): boolean;
|
|
12
16
|
export {};
|