@sumaris-net/ngx-components 18.7.4-rc1 → 18.7.4-rc2

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": "18.7.4-rc1",
4
+ "version": "18.7.4-rc2",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -92,9 +92,10 @@ export declare function isPromise<T>(value: T | Promise<T>): value is Promise<T>
92
92
  * Rounds a numeric value to two decimal places.
93
93
  *
94
94
  * @param {number | undefined | null} value - The value to be rounded. Can be a number, undefined, or null.
95
+ * @param nbDecimal the number of decimal (default: 2)
95
96
  * @return {number} The rounded value with two decimal places if the input value is a valid number; otherwise, returns the input value.
96
97
  */
97
- export declare function round(value: number | undefined | null): number;
98
+ export declare function round(value: number | undefined | null, nbDecimal?: number): number;
98
99
  export declare function equalsOrNil(value1: any, value2: any): boolean;
99
100
  /**
100
101
  * remove elements from an array
@@ -19,7 +19,7 @@ export declare class OddPipe implements PipeTransform {
19
19
  static ɵprov: i0.ɵɵInjectableDeclaration<OddPipe>;
20
20
  }
21
21
  export declare class RoundPipe implements PipeTransform {
22
- transform(val: number): any;
22
+ transform(val: number, nbDecimal?: number): any;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<RoundPipe, never>;
24
24
  static ɵpipe: i0.ɵɵPipeDeclaration<RoundPipe, "round", false>;
25
25
  static ɵprov: i0.ɵɵInjectableDeclaration<RoundPipe>;