@openmrs/ngx-formentry 5.0.1-pre.440 → 5.0.1-pre.444

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.
@@ -3,6 +3,7 @@ import { ConditionalRequiredValidator } from '../validators/conditional-required
3
3
  import { ConditionalAnsweredValidator } from '../validators/conditional-answered.validator';
4
4
  import { JsExpressionValidator } from '../validators/js-expression.validator';
5
5
  import { QuestionBase } from '../question-models/question-base';
6
+ import { DisallowDecimalsValidator } from '../validators/disallow-decimals.validator';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class ValidationFactory {
8
9
  private translate;
@@ -10,6 +11,7 @@ export declare class ValidationFactory {
10
11
  getValidators(question: QuestionBase, form?: any): any[];
11
12
  get conditionalRequiredValidator(): ConditionalRequiredValidator;
12
13
  get conditionalAnsweredValidator(): ConditionalAnsweredValidator;
14
+ get disallowDecimalsValidator(): DisallowDecimalsValidator;
13
15
  get requiredValidator(): any;
14
16
  get dateValidator(): any;
15
17
  get futureDateRestrictionValidator(): any;
@@ -23,6 +25,9 @@ export declare class ValidationFactory {
23
25
  };
24
26
  getMinValueValidator(min: number): any;
25
27
  getMaxValueValidator(max: number): any;
28
+ getDisallowedDecimalsValidator(): (control: import("../../abstract-controls-extension/afe-form-control").AfeFormControl) => {
29
+ [key: string]: any;
30
+ };
26
31
  get jsExpressionValidator(): JsExpressionValidator;
27
32
  errors(errors: any, question: QuestionBase): Array<string>;
28
33
  static ɵfac: i0.ɵɵFactoryDeclaration<ValidationFactory, never>;
@@ -0,0 +1,10 @@
1
+ import { ValidationModel } from './validation.model';
2
+ export declare class DisallowDecimalsValidationModel extends ValidationModel {
3
+ disallowDecimals: boolean;
4
+ failsWhenExpression: string;
5
+ message: string;
6
+ constructor(validations: any);
7
+ setMessage(): void;
8
+ setFailsWhenExpression(): void;
9
+ setValuesAndExpressions(): void;
10
+ }
@@ -0,0 +1,6 @@
1
+ import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
2
+ export declare class DisallowDecimalsValidator {
3
+ validate(): (control: AfeFormControl) => {
4
+ [key: string]: any;
5
+ };
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/ngx-formentry",
3
- "version": "5.0.1-pre.440",
3
+ "version": "5.0.1-pre.444",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },