@sumaris-net/ngx-components 2.4.13 → 2.4.15
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/doc/changelog.md +4 -0
- package/esm2020/src/app/core/services/model/entity.model.mjs +3 -17
- package/esm2020/src/app/shared/functions.mjs +22 -1
- package/esm2020/src/app/shared/pipes/form.pipes.mjs +4 -4
- package/fesm2015/sumaris-net.ngx-components.mjs +26 -19
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +26 -19
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/model/entity.model.d.ts +2 -1
- package/src/app/shared/functions.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Moment } from 'moment';
|
|
2
|
+
import { getPropertyByPath } from '../../../shared/functions';
|
|
2
3
|
import { FilterFn } from '../../../shared/services/entity-service.class';
|
|
3
4
|
import { ObjectMap, ObjectMapEntry, PropertiesArray, PropertiesMap } from '../../../shared/types';
|
|
4
5
|
import { StoreObject } from '@apollo/client/core';
|
|
@@ -49,7 +50,7 @@ export declare abstract class EntityUtils {
|
|
|
49
50
|
static isNotEmpty<T extends IEntity<any> | any>(obj: T, checkedAttribute: keyof T): boolean;
|
|
50
51
|
static isEmpty<T extends IEntity<any> | any>(obj: T, checkedAttribute: keyof T): boolean;
|
|
51
52
|
static equals<T extends IEntity<any> | any>(o1: T, o2: T, checkAttribute?: keyof T): boolean;
|
|
52
|
-
static getPropertyByPath
|
|
53
|
+
static getPropertyByPath: typeof getPropertyByPath;
|
|
53
54
|
static getArrayAsMap<T = any>(source?: ObjectMapEntry<T>[]): ObjectMap<T>;
|
|
54
55
|
static getMapAsArray<T = any>(source?: ObjectMap<T>): ObjectMapEntry<T>[];
|
|
55
56
|
static getPropertyArrayAsObject(source?: PropertiesArray): PropertiesMap;
|
|
@@ -66,6 +66,7 @@ export declare function isNumberRange(value: string): boolean;
|
|
|
66
66
|
export declare function getPropertyByPath(obj: any, path: string | string[], defaultValue?: any): any;
|
|
67
67
|
export declare function getProperty<T = any, K extends keyof T = any>(obj: T, key: K): T[K];
|
|
68
68
|
export declare function getPropertyByPathAsString(obj: any, path: string | string[]): string | undefined;
|
|
69
|
+
export declare function setPropertyByPath(obj: any, path: string | string[], value: any): any;
|
|
69
70
|
export declare function sleep(ms: number): Promise<void>;
|
|
70
71
|
export declare function round(value: number | undefined | null): number;
|
|
71
72
|
export declare function equalsOrNil(value1: any, value2: any): boolean;
|