@sumaris-net/ngx-components 1.6.7 → 1.6.9
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/bundles/sumaris-net.ngx-components.umd.js +340 -364
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/services/model/filter.model.js +1 -1
- package/esm2015/src/app/core/services/model/referential.model.js +1 -1
- package/esm2015/src/app/core/table/table.class.js +8 -8
- package/esm2015/src/app/shared/material/boolean/material.boolean.js +3 -4
- package/esm2015/src/app/shared/material/datetime/material.date.js +40 -40
- package/esm2015/src/app/shared/material/datetime/material.datetime.js +29 -29
- package/fesm2015/sumaris-net.ngx-components.js +331 -347
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/model/filter.model.d.ts +1 -1
- package/src/app/core/services/model/referential.model.d.ts +3 -3
- package/src/app/core/table/table.class.d.ts +4 -4
- package/src/app/shared/material/boolean/material.boolean.d.ts +0 -1
- package/src/app/shared/material/datetime/material.date.d.ts +6 -6
- package/src/app/shared/material/datetime/material.datetime.d.ts +9 -9
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export interface IEntityFilter<F extends IEntityFilter<F, T, ID, AO, FO>, T exte
|
|
|
6
6
|
isEmpty(): boolean;
|
|
7
7
|
countNotEmptyCriteria(): number;
|
|
8
8
|
}
|
|
9
|
-
export declare abstract class EntityFilter<F extends EntityFilter<F, T, ID, AO, FO>, T extends IEntity<T,
|
|
9
|
+
export declare abstract class EntityFilter<F extends EntityFilter<F, T, ID, AO, FO>, T extends IEntity<T, any>, ID = number, AO extends EntityAsObjectOptions = EntityAsObjectOptions, FO = any> extends Entity<F, ID, AO, FO> implements IEntityFilter<F, T, ID, AO, FO> {
|
|
10
10
|
constructor(__typename?: string);
|
|
11
11
|
/**
|
|
12
12
|
* Clean a filter, before sending to the pod (e.g convert dates, remove internal properties, etc.)
|
|
@@ -9,7 +9,7 @@ export declare interface IStatus {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const StatusList: Readonly<IStatus[]>;
|
|
11
11
|
export declare const StatusById: Readonly<import("../../../shared/types").KeyValueType<IStatus>>;
|
|
12
|
-
export declare abstract class BaseReferential<T extends BaseReferential<
|
|
12
|
+
export declare abstract class BaseReferential<T extends BaseReferential<T, ID, AO>, ID = number, AO extends ReferentialAsObjectOptions = ReferentialAsObjectOptions, FO = any> extends Entity<T, ID, AO, FO> implements IReferentialRef<T, ID> {
|
|
13
13
|
label: string;
|
|
14
14
|
name: string;
|
|
15
15
|
description: string;
|
|
@@ -21,11 +21,11 @@ export declare abstract class BaseReferential<T extends BaseReferential<any, ID,
|
|
|
21
21
|
parentId: number;
|
|
22
22
|
entityName: string;
|
|
23
23
|
constructor(__typename?: string);
|
|
24
|
-
asObject(opts?:
|
|
24
|
+
asObject(opts?: AO): any;
|
|
25
25
|
fromObject(source: any, opts?: FO): void;
|
|
26
26
|
equals(other: T): boolean;
|
|
27
27
|
}
|
|
28
|
-
export declare class Referential extends BaseReferential<
|
|
28
|
+
export declare class Referential<T extends Referential<any> = Referential<any>> extends BaseReferential<T, number> {
|
|
29
29
|
static fromObject: (source: any, opts?: any) => Referential;
|
|
30
30
|
}
|
|
31
31
|
export declare class ReferentialUtils {
|
|
@@ -197,10 +197,6 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
197
197
|
markAsLoaded(opts?: {
|
|
198
198
|
emitEvent?: boolean;
|
|
199
199
|
}): void;
|
|
200
|
-
protected markRowAsDirty(row?: TableElement<T>, opts?: {
|
|
201
|
-
onlySelf?: boolean;
|
|
202
|
-
emitEVent?: boolean;
|
|
203
|
-
}): void;
|
|
204
200
|
markAsReady(opts?: {
|
|
205
201
|
emitEvent?: boolean;
|
|
206
202
|
}): void;
|
|
@@ -373,6 +369,10 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
373
369
|
* @protected
|
|
374
370
|
*/
|
|
375
371
|
protected equals(d1: T, d2: T): boolean;
|
|
372
|
+
protected markRowAsDirty(row?: TableElement<T>, opts?: {
|
|
373
|
+
onlySelf?: boolean;
|
|
374
|
+
emitEVent?: boolean;
|
|
375
|
+
}): void;
|
|
376
376
|
private setLoading;
|
|
377
377
|
private deleteNewRow;
|
|
378
378
|
private cancelExistingRow;
|
|
@@ -42,7 +42,6 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
42
42
|
noButton: MatRadioButton;
|
|
43
43
|
checkboxButton: MatCheckbox;
|
|
44
44
|
fakeInput: ElementRef;
|
|
45
|
-
suffixDiv: ElementRef;
|
|
46
45
|
constructor(translate: TranslateService, formBuilder: FormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
|
|
47
46
|
ngOnInit(): void;
|
|
48
47
|
writeValue(value: any, event?: UIEvent): void;
|
|
@@ -54,14 +54,14 @@ export declare class MatDate implements OnInit, OnDestroy, ControlValueAccessor,
|
|
|
54
54
|
registerOnTouched(fn: any): void;
|
|
55
55
|
setDisabledState(isDisabled: boolean): void;
|
|
56
56
|
onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
|
|
57
|
-
private updatePattern;
|
|
58
|
-
private onFormChange;
|
|
59
|
-
checkIfTouched(): void;
|
|
60
57
|
openDatePickerIfMobile(event: UIEvent, datePicker?: MatDatepicker<any>): Promise<void>;
|
|
61
58
|
openDatePicker(event?: UIEvent, datePicker?: MatDatepicker<any>): void;
|
|
62
59
|
preventEvent(event: UIEvent): void;
|
|
63
60
|
focus(): void;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
private updatePattern;
|
|
62
|
+
private onFormChange;
|
|
63
|
+
checkIfTouched(): void;
|
|
64
|
+
private waitKeyboardHide;
|
|
65
|
+
private updateTabIndex;
|
|
66
|
+
private markForCheck;
|
|
67
67
|
}
|
|
@@ -32,7 +32,7 @@ export declare class MatDateTime implements OnInit, OnDestroy, ControlValueAcces
|
|
|
32
32
|
protected writing: boolean;
|
|
33
33
|
protected disabling: boolean;
|
|
34
34
|
protected _tabindex: number;
|
|
35
|
-
protected
|
|
35
|
+
protected keyboardHideDelay: number;
|
|
36
36
|
_readonly: boolean;
|
|
37
37
|
dateFormControl: FormControl;
|
|
38
38
|
timeFormControl: FormControl;
|
|
@@ -68,7 +68,6 @@ export declare class MatDateTime implements OnInit, OnDestroy, ControlValueAcces
|
|
|
68
68
|
registerOnChange(fn: any): void;
|
|
69
69
|
registerOnTouched(fn: any): void;
|
|
70
70
|
setDisabledState(isDisabled: boolean): void;
|
|
71
|
-
private updatePattern;
|
|
72
71
|
onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
|
|
73
72
|
onTimePickerChange(timeStr: string): void;
|
|
74
73
|
openDatePickerIfMobile(event: UIEvent, datePicker?: MatDatepicker<any>): Promise<void>;
|
|
@@ -76,14 +75,15 @@ export declare class MatDateTime implements OnInit, OnDestroy, ControlValueAcces
|
|
|
76
75
|
openTimePickerIfMobile(event: UIEvent): Promise<void>;
|
|
77
76
|
openTimePicker(event: UIEvent): void;
|
|
78
77
|
preventEvent(event: UIEvent): void;
|
|
79
|
-
checkIfTouched(): void;
|
|
80
78
|
focus(): void;
|
|
81
79
|
clear(): void;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
private updatePattern;
|
|
81
|
+
checkIfTouched(): void;
|
|
82
|
+
private waitKeyboardHide;
|
|
83
|
+
private emitChange;
|
|
84
|
+
private updateTabIndex;
|
|
85
|
+
private markAsTouched;
|
|
86
|
+
private markAsDirty;
|
|
87
|
+
private markForCheck;
|
|
88
88
|
}
|
|
89
89
|
export {};
|