@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "1.23.25",
4
+ "version": "1.23.26",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -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
- transform<T>(val: T[], opts: {
20
- property: string;
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
+ }