ht-emr 0.7.44 → 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.
@@ -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
  /**
@@ -791,6 +802,11 @@ export declare class Draw {
791
802
  setPaperDirection(payload: PaperDirection): void;
792
803
  setPaperMargin(payload: IMargin): void;
793
804
  getOriginValue(options?: IGetOriginValueOption): Required<IEditorData>;
805
+ /**
806
+ * 展开子模板产生的元素只参与当前渲染,不应作为文档内容导出。
807
+ * 否则重新加载时会把已展开内容和子模板快照再次叠加。
808
+ */
809
+ private removeSubTemplateRuntimeElements;
794
810
  getValue(options?: IGetValueOption): IEditorResult;
795
811
  setValue(payload: Partial<IEditorData>, options?: ISetValueOption): void;
796
812
  setEditorData(payload: Partial<Omit<IEditorData, 'graffiti'>>): void;
@@ -265,8 +265,10 @@ export type ITemplateConditionRelation = 'and' | 'or';
265
265
  export interface ITemplateCondition {
266
266
  /** 匹配字段标签 */
267
267
  label: string;
268
- /** 正则表达式 */
269
- regex: string;
268
+ /** 精确匹配值 */
269
+ value?: string;
270
+ /** 可选正则表达式;未选择基本信息精确值时使用 */
271
+ regex?: string;
270
272
  /** 字段来源,默认 all */
271
273
  source?: ITemplateConditionSource;
272
274
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ht-emr",
3
3
  "author": "swj",
4
4
  "license": "MIT",
5
- "version": "0.7.44",
5
+ "version": "0.7.45",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",