@sumaris-net/ngx-components 2.4.90 → 2.4.92

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.90",
4
+ "version": "2.4.92",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -61,7 +61,7 @@ export declare function joinProperties<T = any, K extends keyof T = any>(obj: T,
61
61
  export declare function propertyPathComparator<T = any>(path: string | string[]): (a: T, b: T) => number;
62
62
  export declare function propertyComparator<T = any, K extends keyof T = any>(key: K, defaultValue?: any): (a: T, b: T) => number;
63
63
  export declare function propertiesPathComparator<T = any>(keys: string[], defaultValues?: any[]): (a: T, b: T) => number;
64
- export declare function sort<T>(array: T[], attribute: string, opts?: Intl.CollatorOptions): T[];
64
+ export declare function sort<T>(array: T[], attribute?: string, opts?: Intl.CollatorOptions): T[];
65
65
  export declare function isInt(value: string): boolean;
66
66
  export declare function isNumber(value: string): boolean;
67
67
  export declare function isNumberRange(value: string): boolean;
@@ -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 {};