ht-emr 0.7.50 → 0.7.52

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.
@@ -310,7 +310,12 @@ export declare class Draw {
310
310
  * @private
311
311
  */
312
312
  private hideTextFieldWhitespace;
313
- private getSubTemplateRuntimeEndIndex;
313
+ getSubTemplateRuntimeEndIndex(elementList: IElement[], startIndex: number, subTemplateId?: string): number;
314
+ /**
315
+ * 将展开后的可编辑内容回写到子模板快照。
316
+ * 运行时元素不会直接导出,因此必须在重新渲染或收起前同步。
317
+ */
318
+ syncSubTemplateRuntimeContent(): void;
314
319
  private getLegacySubTemplateRuntimeEndIndex;
315
320
  private syncSubTemplateExpandedState;
316
321
  private applySubTemplateRuntimeState;
@@ -14,6 +14,8 @@ export declare class MenstrualHistoryParticle {
14
14
  private options;
15
15
  private inputModal;
16
16
  private isPopup;
17
+ private measureContext;
18
+ private sizeCache;
17
19
  constructor(draw: Draw);
18
20
  /**
19
21
  * 计算月经史控件的尺寸
@@ -267,10 +267,18 @@ export interface ITemplateCondition {
267
267
  label: string;
268
268
  /** 精确匹配值 */
269
269
  value?: string;
270
- /** 可选正则表达式;未选择基本信息精确值时使用 */
270
+ /** 运行时正则表达式;未提供 value 时使用 */
271
271
  regex?: string;
272
272
  /** 字段来源,默认 all */
273
273
  source?: ITemplateConditionSource;
274
+ /** 匹配模式;range 模式使用区间数值比较 */
275
+ matchMode?: 'equal' | 'range' | 'regex';
276
+ /** 相等模式的配置值,不参与运行时匹配 */
277
+ matchValue?: string;
278
+ /** 区间模式的最小值,包含边界 */
279
+ rangeMin?: string;
280
+ /** 区间模式的最大值,包含边界 */
281
+ rangeMax?: string;
274
282
  }
275
283
  /**
276
284
  * 子模板元素属性接口
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.50",
5
+ "version": "0.7.52",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",