ht-emr 0.7.26 → 0.7.28

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.
@@ -44,11 +44,15 @@ export declare class CommandAdapt {
44
44
  private getButtonContentText;
45
45
  private normalizeButtonContentValue;
46
46
  private getButtonContentResult;
47
+ private isSameButtonControlElement;
48
+ private getButtonControlRange;
49
+ private getButtonRenderedValue;
47
50
  private getButtonBusinessValue;
48
51
  private findButtonControlContext;
49
52
  private removeButtonBusinessElements;
50
53
  private appendButtonContentValue;
51
54
  private createButtonBusinessElements;
55
+ private replaceButtonRenderedValue;
52
56
  private getIsRangeInTextField;
53
57
  mode(payload: EditorMode): void;
54
58
  cut(): Promise<void>;
@@ -17,12 +17,12 @@ export declare class ButtonControl implements IControlInstance {
17
17
  getIsPopup(): boolean;
18
18
  getValue(context?: IControlContext): IElement[];
19
19
  setValue(data: IElement[], context?: IControlContext, options?: IControlRuleOption): number;
20
+ private syncControlValue;
20
21
  clearSelect(context?: IControlContext, options?: IControlRuleOption): number;
21
22
  keydown(evt: KeyboardEvent): number | null;
22
23
  removeByValue(array: IElement[], controlId: string): Promise<unknown>;
23
24
  cut(): number;
24
25
  awake(evt?: MouseEvent): void;
25
- private showInputModal;
26
26
  private closeInputModal;
27
27
  private showEditModal;
28
28
  destroy(): void;
@@ -83,7 +83,7 @@ export interface IControlAction {
83
83
  key: 'outpatient.diagnosis' | 'outpatient.orders' | 'outpatient.patient360' | string;
84
84
  label: string;
85
85
  writeTarget?: 'self' | string;
86
- writeMode?: 'confirmAppend' | string;
86
+ writeMode?: 'confirmAppend' | 'replaceOnConfirm' | string;
87
87
  }
88
88
  export interface IControlBasic {
89
89
  type: ControlType;
@@ -111,6 +111,7 @@ export interface IControlBasic {
111
111
  buttonLabel?: string;
112
112
  code?: string | null;
113
113
  action?: IControlAction;
114
+ editable?: boolean;
114
115
  menstrualData?: IMenstrualData;
115
116
  }
116
117
  export interface IMenstrualData {
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.26",
5
+ "version": "0.7.28",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",