@sumaris-net/ngx-components 2.7.2-rc13 → 2.7.2-rc14

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": "2.7.2-rc13",
4
+ "version": "2.7.2-rc14",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -57,11 +57,18 @@ export declare class SharedValidators {
57
57
  static clearError(control: AbstractControl, errorCode: string): void;
58
58
  }
59
59
  export declare class SharedFormGroupValidators {
60
- static dateRange(startDateField: string, endDateField: string, msg?: string): ValidatorFn;
60
+ static dateRange(startDateField: string, endDateField: string, opts?: {
61
+ msg?: string;
62
+ fieldOnly?: boolean;
63
+ }): ValidatorFn;
61
64
  static dateMaxDuration(startDateField: string, endDateField: string, maxDuration: number, durationUnit?: moment.unitOfTime.Diff): ValidatorFn;
62
65
  static dateMinDuration(startDateField: string, endDateField: string, minDuration: number, durationUnit?: moment.unitOfTime.Diff): ValidatorFn;
63
- static requiredIf(fieldName: string, anotherFieldToCheck: string | AbstractControl): ValidatorFn;
64
- static requiredIfTrue(fieldName: string, anotherFieldToCheck: string | AbstractControl): ValidatorFn;
66
+ static requiredIf(fieldName: string, anotherFieldToCheck: string | AbstractControl, opts?: {
67
+ fieldOnly?: boolean;
68
+ }): ValidatorFn;
69
+ static requiredIfTrue(fieldName: string, anotherFieldToCheck: string | AbstractControl, opts?: {
70
+ fieldOnly?: boolean;
71
+ }): ValidatorFn;
65
72
  static requiredIfEmpty(fieldName: string, anotherFieldToCheck: string, opts?: {
66
73
  fieldOnly?: boolean;
67
74
  }): ValidatorFn;