mixlea-utils-js 0.1.80 → 0.1.82
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/dist/mixlea-utils-js.js +923 -901
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +13 -8
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1048,11 +1048,15 @@ export declare function numberToInt(input: any, method?: 'floor' | 'ceil' | 'rou
|
|
|
1048
1048
|
|
|
1049
1049
|
export declare function objectArrayExpressionCalcInject(arr: Record<string, any>[], injects: Record<string, string>): Record<string, any>[];
|
|
1050
1050
|
|
|
1051
|
-
export declare function
|
|
1051
|
+
export declare function objectArrayFieldMax<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): number;
|
|
1052
1052
|
|
|
1053
|
-
export declare function
|
|
1053
|
+
export declare function objectArrayFieldMin<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): number;
|
|
1054
|
+
|
|
1055
|
+
export declare function objectArrayFieldsMax<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): number;
|
|
1054
1056
|
|
|
1055
|
-
export declare function
|
|
1057
|
+
export declare function objectArrayFieldsMin<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): number;
|
|
1058
|
+
|
|
1059
|
+
export declare function objectArrayMerge<T extends Record<string, any>>(arr: T[], classNames: string[], mergeCallback?: (mergeRecord: T, item: T) => T): T[];
|
|
1056
1060
|
|
|
1057
1061
|
export declare function objectArrayPick(arr: Record<string, any>[], pick: string): any[];
|
|
1058
1062
|
|
|
@@ -1152,15 +1156,16 @@ export declare function parseURL(path: string): {
|
|
|
1152
1156
|
params: Record<string, string>;
|
|
1153
1157
|
};
|
|
1154
1158
|
|
|
1155
|
-
export declare function percentFormatter
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
precisionPad?: boolean;
|
|
1159
|
+
export declare function percentFormatter(input: any, opts?: {
|
|
1160
|
+
positiveSymbol?: boolean;
|
|
1161
|
+
precision?: number | ((value: number) => number);
|
|
1162
|
+
maxValue?: number;
|
|
1160
1163
|
}): string;
|
|
1161
1164
|
|
|
1162
1165
|
export declare function pickObjectArrayField<T extends Record<string, any>, K extends keyof T>(arr: T[], field: K, defaultValue?: T[K]): T[K][];
|
|
1163
1166
|
|
|
1167
|
+
export declare function pickObjectArrayFields<T extends Record<string, any>, K extends keyof T>(arr: T[], fields: K[], defaultValue?: T[K]): T[K][];
|
|
1168
|
+
|
|
1164
1169
|
export declare function pipe<A extends unknown[], B>(ab: (this: void, ...a: A) => B): (...args: A) => B;
|
|
1165
1170
|
|
|
1166
1171
|
export declare function pipe<A extends unknown[], B, C>(ab: (this: void, ...a: A) => B, bc: (this: void, b: B) => C): (...args: A) => C;
|