@sumaris-net/ngx-components 0.18.8 → 0.18.12
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/ngx-sumaris-components.umd.js +37 -34
- package/bundles/ngx-sumaris-components.umd.js.map +1 -1
- package/bundles/ngx-sumaris-components.umd.min.js +1 -1
- package/bundles/ngx-sumaris-components.umd.min.js.map +1 -1
- package/esm2015/src/app/admin/users/list/users.js +5 -5
- package/esm2015/src/app/core/form/form.utils.js +3 -3
- package/esm2015/src/app/core/services/model/referential.model.js +3 -2
- package/esm2015/src/app/core/table/memory-table.class.js +3 -9
- package/esm2015/src/app/shared/functions.js +1 -1
- package/esm2015/src/app/shared/services/memory-entity-service.class.js +62 -55
- package/esm2015/src/app/shared/types.js +1 -1
- package/fesm2015/ngx-sumaris-components.js +68 -65
- package/fesm2015/ngx-sumaris-components.js.map +1 -1
- package/ngx-sumaris-components.metadata.json +1 -1
- package/package.json +1 -1
- package/src/app/admin/users/list/users.d.ts +2 -2
- package/src/app/core/form/form.utils.d.ts +1 -1
- package/src/app/core/services/model/referential.model.d.ts +1 -0
- package/src/app/shared/functions.d.ts +1 -7
- package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +2 -2
- package/src/app/shared/material/latlong/testing/latlong.test.d.ts +2 -2
- package/src/app/shared/types.d.ts +7 -0
package/package.json
CHANGED
|
@@ -31,9 +31,9 @@ export declare class UsersPage extends AppTable<Person, PersonFilter> implements
|
|
|
31
31
|
filterForm: FormGroup;
|
|
32
32
|
profiles: import("../../../core/services/model/person.model").UserProfileLabel[];
|
|
33
33
|
additionalFields: FormFieldDefinition[];
|
|
34
|
-
statusList: readonly import("../../../core/services/model/referential.model").IStatus[];
|
|
35
|
-
statusById: import("../../../shared/functions").KeyValueType<import("../../../core/services/model/referential.model").IStatus>;
|
|
36
34
|
filterCriteriaCount: number;
|
|
35
|
+
readonly statusList: readonly import("../../../core/services/model/referential.model").IStatus[];
|
|
36
|
+
readonly statusById: Readonly<import("../../../shared/types").KeyValueType<import("../../../core/services/model/referential.model").IStatus>>;
|
|
37
37
|
set showUsernameColumn(value: boolean);
|
|
38
38
|
set showUsernameExtranetColumn(value: boolean);
|
|
39
39
|
filterExpansionPanel: MatExpansionPanel;
|
|
@@ -249,7 +249,7 @@ export declare function markAsUntouched(form: FormGroup, opts?: {
|
|
|
249
249
|
onlySelf?: boolean;
|
|
250
250
|
}): void;
|
|
251
251
|
/**
|
|
252
|
-
* Wait end of async validation
|
|
252
|
+
* Wait end of async validation (not pending)
|
|
253
253
|
* return false
|
|
254
254
|
*/
|
|
255
255
|
export declare function waitWhilePending<T extends IAppForm | {
|
|
@@ -8,6 +8,7 @@ export declare interface IStatus {
|
|
|
8
8
|
label: string;
|
|
9
9
|
}
|
|
10
10
|
export declare const StatusList: Readonly<IStatus[]>;
|
|
11
|
+
export declare const StatusById: Readonly<import("../../../shared/types").KeyValueType<IStatus>>;
|
|
11
12
|
export declare abstract class BaseReferential<T extends BaseReferential<any, ID, O>, ID = number, O extends ReferentialAsObjectOptions = ReferentialAsObjectOptions, FO = any> extends Entity<T, ID, O, FO> implements IReferentialRef<T, ID> {
|
|
12
13
|
label: string;
|
|
13
14
|
name: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LoadResult } from './services/entity-service.class';
|
|
2
|
+
import { KeysEnum, KeyValueType } from './types';
|
|
2
3
|
export declare function isNil<T>(obj: T | null | undefined): boolean;
|
|
3
4
|
export declare function isNilOrBlank<T>(obj: T | null | undefined): boolean;
|
|
4
5
|
export declare function isNotNil<T>(obj: T | null | undefined): boolean;
|
|
@@ -85,15 +86,8 @@ export declare function removeAll<T>(array: T[], predicate: (pmfm: T) => boolean
|
|
|
85
86
|
* @param predicate the selection predicate
|
|
86
87
|
*/
|
|
87
88
|
export declare function remove<T>(array: T[], predicate: (pmfm: T) => boolean): T;
|
|
88
|
-
export declare type KeysEnum<T> = {
|
|
89
|
-
[P in keyof Required<T>]: boolean;
|
|
90
|
-
};
|
|
91
89
|
export declare function capitalizeFirstLetter(value: string): string;
|
|
92
90
|
export declare function uncapitalizeFirstLetter(value: string): string;
|
|
93
|
-
export declare type KeyType = string | number;
|
|
94
|
-
export declare type KeyValueType<T> = {
|
|
95
|
-
[key in KeyType]: T;
|
|
96
|
-
};
|
|
97
91
|
export declare function splitByProperty<T, M extends KeyValueType<T> = KeyValueType<T>>(array: T[] | readonly T[], propertyName: string): M;
|
|
98
92
|
export declare function splitById<T, M extends KeyValueType<T> = KeyValueType<T>>(array: T[] | readonly T[]): M;
|
|
99
93
|
export declare class Beans {
|
|
@@ -22,7 +22,7 @@ export declare class DateTimeTestPage implements OnInit {
|
|
|
22
22
|
startMemoryTimer(): void;
|
|
23
23
|
stopMemoryTimer(): void;
|
|
24
24
|
stringify: {
|
|
25
|
-
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: import("../../../
|
|
26
|
-
(value: any, replacer?: import("../../../
|
|
25
|
+
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: import("../../../types").KeyType): string;
|
|
26
|
+
(value: any, replacer?: import("../../../types").KeyType[], space?: import("../../../types").KeyType): string;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
@@ -9,7 +9,7 @@ export declare class LatLongTestPage implements OnInit {
|
|
|
9
9
|
doSubmit(event: any): void;
|
|
10
10
|
geoPosition(event: UIEvent): boolean;
|
|
11
11
|
stringify: {
|
|
12
|
-
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: import("../../../
|
|
13
|
-
(value: any, replacer?: import("../../../
|
|
12
|
+
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: import("../../../types").KeyType): string;
|
|
13
|
+
(value: any, replacer?: import("../../../types").KeyType[], space?: import("../../../types").KeyType): string;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export declare type KeyType = string | number;
|
|
2
|
+
export declare type KeyValueType<T> = {
|
|
3
|
+
[key in KeyType]: T;
|
|
4
|
+
};
|
|
5
|
+
export declare type KeysEnum<T> = {
|
|
6
|
+
[P in keyof Required<T>]: boolean;
|
|
7
|
+
};
|
|
1
8
|
export declare interface ObjectMap<O = any> {
|
|
2
9
|
[key: string]: O;
|
|
3
10
|
}
|