@sumaris-net/ngx-components 0.13.14 → 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.14",
4
+ "version": "0.14.0",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -51,6 +51,7 @@ export declare class MatAutocompleteField implements OnInit, InputElement, OnDes
51
51
  private _filter$;
52
52
  private _itemCount;
53
53
  private _reload$;
54
+ _readonly: boolean;
54
55
  _tabindex: number;
55
56
  matSelectItems$: Observable<any[]>;
56
57
  $inputItems: BehaviorSubject<any[]>;
@@ -70,7 +71,6 @@ export declare class MatAutocompleteField implements OnInit, InputElement, OnDes
70
71
  suggestFn: SuggestFn<any, any>;
71
72
  required: boolean;
72
73
  mobile: boolean;
73
- readonly: boolean;
74
74
  clearable: boolean;
75
75
  debounceTime: number;
76
76
  displayWith: DisplayFn | null;
@@ -95,6 +95,8 @@ export declare class MatAutocompleteField implements OnInit, InputElement, OnDes
95
95
  animationsDisabled: boolean;
96
96
  set filter(value: any);
97
97
  get filter(): any;
98
+ set readonly(value: boolean);
99
+ get readonly(): boolean;
98
100
  set tabindex(value: number);
99
101
  get tabindex(): number;
100
102
  set items(value: Observable<any[]> | any[]);
@@ -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
  /**
@@ -32,4 +32,8 @@ export declare class Environment {
32
32
  storage?: Partial<StorageConfig>;
33
33
  sourceUrl?: string;
34
34
  reportIssueUrl?: string;
35
+ defaultAuthValues?: {
36
+ username?: string;
37
+ password?: string;
38
+ };
35
39
  }