@openmrs/ngx-formentry 3.0.1-pre.153 → 3.0.1-pre.159

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.
@@ -1,4 +1,3 @@
1
- import { Validators } from '@angular/forms';
2
1
  import { ConditionalRequiredValidator } from '../validators/conditional-required.validator';
3
2
  import { ConditionalAnsweredValidator } from '../validators/conditional-answered.validator';
4
3
  import { JsExpressionValidator } from '../validators/js-expression.validator';
@@ -14,8 +13,12 @@ export declare class ValidationFactory {
14
13
  get futureDateRestrictionValidator(): any;
15
14
  get maxDateValidator(): any;
16
15
  get minDateValidator(): any;
17
- get minLengthValidator(): any;
18
- get maxLengthValidator(): typeof Validators.maxLength;
16
+ minLengthValidator(minLength: number): (control: import("../../abstract-controls-extension/afe-form-control").AfeFormControl) => {
17
+ [key: string]: any;
18
+ };
19
+ maxLengthValidator(maxLength: number): (control: import("../../abstract-controls-extension/afe-form-control").AfeFormControl) => {
20
+ [key: string]: any;
21
+ };
19
22
  getMinValueValidator(min: number): any;
20
23
  getMaxValueValidator(max: number): any;
21
24
  get jsExpressionValidator(): JsExpressionValidator;
@@ -0,0 +1,5 @@
1
+ import { ValidationModel } from './validation.model';
2
+ export declare class MaxLengthValidationModel extends ValidationModel {
3
+ maxlength: number;
4
+ constructor(validations: any);
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ValidationModel } from './validation.model';
2
+ export declare class MinLengthValidationModel extends ValidationModel {
3
+ minlength: number;
4
+ constructor(validations: any);
5
+ }
@@ -0,0 +1,6 @@
1
+ import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
2
+ export declare class MaxLengthValidator {
3
+ validate(maxLength: number): (control: AfeFormControl) => {
4
+ [key: string]: any;
5
+ };
6
+ }
@@ -0,0 +1,6 @@
1
+ import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
2
+ export declare class MinLengthValidator {
3
+ validate(minLength: number): (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": "3.0.1-pre.153",
3
+ "version": "3.0.1-pre.159",
4
4
  "dependencies": {
5
5
  "tslib": "^2.2.0"
6
6
  },