@sumaris-net/ngx-components 0.13.17 → 0.14.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "0.13.17",
4
+ "version": "0.14.0",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -47,6 +47,11 @@ export declare class SharedFormGroupValidators {
47
47
  static requiredIfTrue(fieldName: string, anotherFieldToCheck: string | AbstractControl): ValidatorFn;
48
48
  static requiredIfEmpty(fieldName: string, anotherFieldToCheck: string): ValidatorFn;
49
49
  static propagateIfDirty(fieldName: string, fieldNameToPropagate: string, valueToPropagate: any): ValidatorFn;
50
+ /**
51
+ * Same as compose, but keep only the first errors (instead of the union)
52
+ * @param validators
53
+ */
54
+ first(validators: (ValidatorFn | null | undefined)[]): ValidationErrors | null;
50
55
  }
51
56
  export declare class SharedFormArrayValidators {
52
57
  /**