@sumaris-net/ngx-components 18.23.69 → 18.23.71
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 +7 -0
- package/esm2022/src/app/shared/functions.mjs +44 -20
- package/fesm2022/sumaris-net.ngx-components.mjs +44 -20
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +11 -6
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -307,14 +307,19 @@ export declare function numberToString(val: number, opts?: Intl.NumberFormatOpti
|
|
|
307
307
|
fixedDecimals?: number;
|
|
308
308
|
}): string;
|
|
309
309
|
/**
|
|
310
|
-
* @deprecated
|
|
310
|
+
* @deprecated Use deepMergeSkipUndefined instead
|
|
311
311
|
*/
|
|
312
312
|
export declare function mergeObjectsWithoutUndefined(...objects: unknown[]): unknown;
|
|
313
313
|
/**
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
* @param target
|
|
317
|
-
* @param {...unknown[]} sources - The objects to be merged.
|
|
318
|
-
* @return {unknown} A new object that combines the properties of the provided objects, excluding `undefined` values.
|
|
314
|
+
* @deprecated Use deepMergeSkipUndefined instead
|
|
319
315
|
*/
|
|
320
316
|
export declare function assignSkipUndefined(target: unknown, ...sources: unknown[]): unknown;
|
|
317
|
+
/**
|
|
318
|
+
* Merge many objects into one new object, skipping undefined objects or properties with `undefined` values.
|
|
319
|
+
* This function is recursive, but prevents circular references - fix issue sumaris-app#1929.
|
|
320
|
+
*
|
|
321
|
+
* @param {Partial<T>} target - The target object to merge properties into. Defaults to an empty object if not provided.
|
|
322
|
+
* @param {...unknown[]} sources - One or more source objects to merge into the target object.
|
|
323
|
+
* @return {T} The resulting object after merging the target and source objects.
|
|
324
|
+
*/
|
|
325
|
+
export declare function deepMergeSkipUndefined<T = Record<string, unknown>>(target?: Partial<T>, ...sources: unknown[]): T;
|
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.23.
|
|
5
|
+
"version": "18.23.71",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|