@sumaris-net/ngx-components 2.4.91 → 2.4.94

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.4.91",
4
+ "version": "2.4.94",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -10,7 +10,7 @@ import { MatAutocompleteConfigHolder, MatAutocompleteFieldAddOptions, MatAutocom
10
10
  import * as i0 from "@angular/core";
11
11
  export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy, IFormControlPathTranslator {
12
12
  private _subscription;
13
- private _form;
13
+ protected _form: UntypedFormGroup;
14
14
  protected _enable: boolean;
15
15
  protected errorTranslator: FormErrorTranslator;
16
16
  protected i18nFieldPrefix: string;
@@ -26,10 +26,14 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
26
26
  private _onChangeCallback;
27
27
  private _onTouchedCallback;
28
28
  private _subscription;
29
+ private _controlSubscription;
29
30
  private _writing;
30
31
  private _disabling;
31
32
  private _tabindex;
32
33
  private _readonly;
34
+ private _control;
35
+ private _controlName;
36
+ private _required;
33
37
  dayControl: UntypedFormControl;
34
38
  hourControl: UntypedFormControl;
35
39
  displayPattern: string;
@@ -37,12 +41,19 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
37
41
  locale: string;
38
42
  readonly dayMask: (string | RegExp)[];
39
43
  readonly hourMask: (string | RegExp)[];
40
- formControl: UntypedFormControl;
41
- formControlName: string;
44
+ set control(value: UntypedFormControl);
45
+ get control(): UntypedFormControl;
46
+ set controlName(value: string);
47
+ get controlName(): string;
48
+ set required(value: boolean | any);
49
+ get required(): boolean | any;
50
+ set formControl(value: UntypedFormControl);
51
+ get formControl(): UntypedFormControl;
52
+ set formControlName(value: string);
53
+ get formControlName(): string;
42
54
  placeholder: string;
43
55
  floatLabel: FloatLabelType;
44
56
  appearance: MatFormFieldAppearance;
45
- required: boolean;
46
57
  mobile: boolean;
47
58
  compact: boolean;
48
59
  placeholderChar: string;
@@ -63,6 +74,9 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
63
74
  ngOnInit(): void;
64
75
  ngAfterViewInit(): void;
65
76
  ngOnDestroy(): void;
77
+ setControlName(controlName: string): void;
78
+ setControl(control: UntypedFormControl): void;
79
+ updateControlValidators(control: UntypedFormControl, required: boolean): void;
66
80
  writeValue(value: any): void;
67
81
  registerOnChange(fn: any): void;
68
82
  registerOnTouched(fn: any): void;
@@ -85,6 +99,6 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
85
99
  private markAsDirty;
86
100
  private markForCheck;
87
101
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDateTime, [null, null, null, null, { optional: true; }]>;
88
- static ɵcmp: i0.ɵɵComponentDeclaration<MatDateTime, "mat-date-time-field", never, { "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "floatLabel": "floatLabel"; "appearance": "appearance"; "required": "required"; "mobile": "mobile"; "compact": "compact"; "placeholderChar": "placeholderChar"; "autofocus": "autofocus"; "startDate": "startDate"; "clearable": "clearable"; "datePickerFilter": "datePickerFilter"; "readonly": "readonly"; "tabindex": "tabindex"; }, {}, never, ["mat-error", "mat-hint", "[matPrefix]"], false>;
102
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatDateTime, "mat-date-time-field", never, { "control": "control"; "controlName": "controlName"; "required": "required"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "floatLabel": "floatLabel"; "appearance": "appearance"; "mobile": "mobile"; "compact": "compact"; "placeholderChar": "placeholderChar"; "autofocus": "autofocus"; "startDate": "startDate"; "clearable": "clearable"; "datePickerFilter": "datePickerFilter"; "readonly": "readonly"; "tabindex": "tabindex"; }, {}, never, ["mat-error", "mat-hint", "[matPrefix]"], false>;
89
103
  }
90
104
  export {};