@sumaris-net/ngx-components 18.8.18 → 18.8.19
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 -2
- package/esm2022/src/app/shared/functions.mjs +25 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +53 -29
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +16 -0
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -169,3 +169,19 @@ export declare function noHtml(value: string): string;
|
|
|
169
169
|
* @return {string} The interpolated string with placeholders replaced by corresponding values, or the original string if no placeholders are matched.
|
|
170
170
|
*/
|
|
171
171
|
export declare function interpolateString(message: string, interpolateParams: Record<string, any>): string;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* Transforms a value (typically a string) to a number.
|
|
175
|
+
* Intended to be used as a transform function of an input.
|
|
176
|
+
* BLA - SHould return n=undefined when for a nil input
|
|
177
|
+
* @param value Value to be transformed.
|
|
178
|
+
* @param fallbackValue Value to use if the provided value can't be parsed as a number.
|
|
179
|
+
*
|
|
180
|
+
* @usageNotes
|
|
181
|
+
* ```ts
|
|
182
|
+
* @Input({ transform: numberAttribute }) id!: number;
|
|
183
|
+
* ```
|
|
184
|
+
*
|
|
185
|
+
* @publicApi
|
|
186
|
+
*/
|
|
187
|
+
export declare function numberAttribute(value: unknown, fallbackValue?: number): number;
|
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.8.
|
|
5
|
+
"version": "18.8.19",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|