@sumaris-net/ngx-components 1.23.25 → 1.23.26
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 +35 -6
- 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/form/editor.class.js +1 -1
- package/esm2015/src/app/shared/functions.js +8 -3
- package/esm2015/src/app/shared/pipes/arrays.pipe.js +24 -6
- package/esm2015/src/app/shared/pipes/pipes.module.js +4 -2
- package/fesm2015/sumaris-net.ngx-components.js +32 -7
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +1 -1
- package/src/app/shared/pipes/arrays.pipe.d.ts +10 -2
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ export declare function sort<T>(array: T[], attribute: string, opts?: Intl.Colla
|
|
|
58
58
|
export declare function isInt(value: string): boolean;
|
|
59
59
|
export declare function isNumber(value: string): boolean;
|
|
60
60
|
export declare function isNumberRange(value: string): boolean;
|
|
61
|
-
export declare function getPropertyByPath(obj: any, path: string, defaultValue?: any): any;
|
|
61
|
+
export declare function getPropertyByPath(obj: any, path: string | string[], defaultValue?: any): any;
|
|
62
62
|
export declare function getProperty<T = any, K extends keyof T = any>(obj: T, key: K): T[K];
|
|
63
63
|
export declare function getPropertyByPathAsString(obj: any, path: string): string | undefined;
|
|
64
64
|
export declare function sleep(ms: number): Promise<void>;
|
|
@@ -16,8 +16,13 @@ export declare class ArrayFirstPipe implements PipeTransform {
|
|
|
16
16
|
transform<T>(val: T[]): T | undefined;
|
|
17
17
|
}
|
|
18
18
|
export declare class ArrayPluckPipe implements PipeTransform {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @param values
|
|
22
|
+
* @param opts property to get, or options
|
|
23
|
+
*/
|
|
24
|
+
transform<T>(values: T[], opts: string | string[] | {
|
|
25
|
+
property: string | string[];
|
|
21
26
|
omitNil?: boolean;
|
|
22
27
|
}): any[];
|
|
23
28
|
}
|
|
@@ -27,3 +32,6 @@ export declare class ArrayIncludesPipe implements PipeTransform {
|
|
|
27
32
|
export declare class ArrayFilterPipe implements PipeTransform {
|
|
28
33
|
transform<T>(val: T[], filterFn: (T: any) => boolean): T[];
|
|
29
34
|
}
|
|
35
|
+
export declare class ArrayJoinPipe implements PipeTransform {
|
|
36
|
+
transform<T>(val: T[], separator: string): string;
|
|
37
|
+
}
|