@sumaris-net/ngx-components 2.4.25-rc2 → 2.4.25
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 +1 -0
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +2 -2
- package/esm2020/src/app/core/services/model/entity.model.mjs +5 -3
- package/esm2020/src/app/shared/functions.mjs +14 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +19 -4
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +19 -4
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +4 -0
package/package.json
CHANGED
|
@@ -90,6 +90,10 @@ export declare function capitalizeFirstLetter(value: string): string;
|
|
|
90
90
|
export declare function uncapitalizeFirstLetter(value: string): string;
|
|
91
91
|
export declare function splitByProperty<T, M extends KeyValueType<T> = KeyValueType<T>>(array: T[] | readonly T[], propertyName: keyof T | string): M;
|
|
92
92
|
export declare function splitById<T, M extends KeyValueType<T> = KeyValueType<T>>(array: T[] | readonly T[]): M;
|
|
93
|
+
/**
|
|
94
|
+
* Split an array, into a map of array, group by property
|
|
95
|
+
*/
|
|
96
|
+
export declare function collectByProperty<T>(values: T[], propertyName: keyof T): KeyValueType<T[]>;
|
|
93
97
|
/**
|
|
94
98
|
* Determines if two objects or two values are equivalent.
|
|
95
99
|
*
|