@openmrs/ngx-formentry 3.1.2-pre.186 → 3.1.2-pre.189

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.
@@ -12,6 +12,7 @@ export interface CanDisable {
12
12
  export interface Disabler {
13
13
  toDisable: boolean;
14
14
  disableWhenExpression: string;
15
+ resetValueOnDisable: boolean;
15
16
  reEvaluateDisablingExpression: EvaluateExpressionFn;
16
17
  }
17
18
  export interface EvaluateExpressionFn {
@@ -59,6 +59,7 @@ export declare class QuestionFactory {
59
59
  addAlertProperty(schemaQuestion: any, question: QuestionBase): any;
60
60
  addDisableOrHideProperty(schemaQuestion: any, question: QuestionBase): any;
61
61
  private generateId;
62
+ isEmpty(value: any): boolean;
62
63
  static ɵfac: i0.ɵɵFactoryDeclaration<QuestionFactory, never>;
63
64
  static ɵprov: i0.ɵɵInjectableDeclaration<QuestionFactory>;
64
65
  }
@@ -12,6 +12,7 @@ export interface BaseOptions {
12
12
  questionOptions?: any;
13
13
  hide?: string | boolean;
14
14
  alert?: any;
15
+ resetValueOnDisable?: boolean;
15
16
  disable?: string | boolean;
16
17
  readOnly?: string | boolean;
17
18
  enableHistoricalValue?: boolean;
@@ -32,6 +32,7 @@ export declare class QuestionBase implements BaseOptions {
32
32
  validators?: Array<ValidationModel>;
33
33
  required?: boolean;
34
34
  hide?: string | boolean;
35
+ resetValueOnDisable?: boolean;
35
36
  disable?: string | boolean;
36
37
  readOnly?: string | boolean;
37
38
  calculateExpression?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/ngx-formentry",
3
- "version": "3.1.2-pre.186",
3
+ "version": "3.1.2-pre.189",
4
4
  "dependencies": {
5
5
  "tslib": "^2.2.0"
6
6
  },