@sumaris-net/ngx-components 18.10.13 → 18.10.14
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 +3 -0
- package/esm2022/src/app/shared/functions.mjs +21 -2
- package/esm2022/src/app/shared/pipes/number-format.pipe.mjs +4 -17
- package/fesm2022/sumaris-net.ngx-components.mjs +22 -17
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +11 -1
- package/src/app/shared/pipes/number-format.pipe.d.ts +0 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -178,7 +178,7 @@ export declare function interpolateString(message: string, interpolateParams: Re
|
|
|
178
178
|
*
|
|
179
179
|
* Transforms a value (typically a string) to a number.
|
|
180
180
|
* Intended to be used as a transform function of an input.
|
|
181
|
-
*
|
|
181
|
+
* Should return n=undefined when for a nil input
|
|
182
182
|
* @param value Value to be transformed.
|
|
183
183
|
* @param fallbackValue Value to use if the provided value can't be parsed as a number.
|
|
184
184
|
*
|
|
@@ -190,3 +190,13 @@ export declare function interpolateString(message: string, interpolateParams: Re
|
|
|
190
190
|
* @publicApi
|
|
191
191
|
*/
|
|
192
192
|
export declare function numberOrNilAttribute(value: unknown, fallbackValue?: number): number | undefined | null;
|
|
193
|
+
/**
|
|
194
|
+
* Formats a given number according to the specified options.
|
|
195
|
+
*
|
|
196
|
+
* @param {number} val - The number to be formatted.
|
|
197
|
+
* @param {Intl.NumberFormatOptions & { fixedDecimals?: number }} [opts] - An optional object containing formatting options. It can include standard `Intl.NumberFormatOptions` properties and an additional `fixedDecimals` property to specify the number of fixed decimal places.
|
|
198
|
+
* @return {string} The formatted number as a string, based on the provided options.
|
|
199
|
+
*/
|
|
200
|
+
export declare function numberToString(val: number, opts?: Intl.NumberFormatOptions & {
|
|
201
|
+
fixedDecimals?: number;
|
|
202
|
+
}): string;
|
|
@@ -6,5 +6,4 @@ export declare class NumberFormatPipe implements PipeTransform {
|
|
|
6
6
|
}): string | Promise<string>;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberFormatPipe, never>;
|
|
8
8
|
static ɵpipe: i0.ɵɵPipeDeclaration<NumberFormatPipe, "numberFormat", false>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NumberFormatPipe>;
|
|
10
9
|
}
|
package/src/assets/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ngx-sumaris-components",
|
|
3
3
|
"short_name": "ngx-sumaris-components",
|
|
4
4
|
"manifest_version": 1,
|
|
5
|
-
"version": "18.10.
|
|
5
|
+
"version": "18.10.14",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|