@gooddata/util 11.68.0-alpha.6 → 11.68.0-alpha.7
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/LICENSE +1 -1
- package/NOTICE +1 -1
- package/esm/_/_basePickBy.d.ts +14 -0
- package/esm/_/_basePickBy.d.ts.map +1 -0
- package/esm/_/_basePickBy.js +57 -0
- package/esm/_/_createCompounder.d.ts +11 -0
- package/esm/_/_createCompounder.d.ts.map +1 -0
- package/esm/_/{_arrayAggregator.js → _createCompounder.js} +12 -16
- package/esm/_/camelCase.d.ts +3 -4
- package/esm/_/camelCase.d.ts.map +1 -1
- package/esm/_/camelCase.js +8 -19
- package/esm/_/capitalize.d.ts +9 -0
- package/esm/_/capitalize.d.ts.map +1 -0
- package/esm/_/{_arrayAggregator.d.ts → capitalize.js} +10 -9
- package/esm/_/deburr.d.ts.map +1 -1
- package/esm/_/deburr.js +2 -1
- package/esm/_/difference.d.ts +14 -0
- package/esm/_/difference.d.ts.map +1 -0
- package/esm/_/difference.js +67 -0
- package/esm/_/escape.d.ts +13 -0
- package/esm/_/escape.d.ts.map +1 -0
- package/esm/_/escape.js +56 -0
- package/esm/_/has.d.ts +23 -0
- package/esm/_/has.d.ts.map +1 -0
- package/esm/_/has.js +35 -0
- package/esm/_/isPlainObject.d.ts +1 -1
- package/esm/_/isPlainObject.d.ts.map +1 -1
- package/esm/_/kebabCase.d.ts +9 -0
- package/esm/_/kebabCase.d.ts.map +1 -0
- package/esm/_/kebabCase.js +40 -0
- package/esm/_/keyBy.d.ts +17 -0
- package/esm/_/keyBy.d.ts.map +1 -0
- package/esm/_/{_baseAggregator.js → keyBy.js} +9 -16
- package/esm/_/omitBy.d.ts +21 -0
- package/esm/_/omitBy.d.ts.map +1 -0
- package/esm/_/{_createAggregator.js → omitBy.js} +4 -17
- package/esm/_/partial.d.ts +87 -0
- package/esm/_/partial.d.ts.map +1 -0
- package/esm/_/partial.js +30 -0
- package/esm/_/pickBy.d.ts +21 -0
- package/esm/_/pickBy.d.ts.map +1 -0
- package/esm/_/pickBy.js +36 -0
- package/esm/_/toString.d.ts +11 -0
- package/esm/_/toString.d.ts.map +1 -0
- package/esm/_/toString.js +57 -0
- package/esm/_/types.d.ts +38 -0
- package/esm/_/types.d.ts.map +1 -1
- package/esm/_/union.d.ts +11 -0
- package/esm/_/union.d.ts.map +1 -0
- package/esm/_/union.js +55 -0
- package/esm/_/uniqWith.d.ts +14 -0
- package/esm/_/uniqWith.d.ts.map +1 -0
- package/esm/_/uniqWith.js +59 -0
- package/esm/_/upperFirst.d.ts +10 -0
- package/esm/_/upperFirst.d.ts.map +1 -0
- package/esm/_/upperFirst.js +46 -0
- package/esm/_/zip.d.ts +28 -0
- package/esm/_/zip.d.ts.map +1 -0
- package/esm/_/zip.js +38 -0
- package/esm/index.d.ts +14 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +13 -0
- package/esm/util.d.ts +299 -4
- package/package.json +3 -3
- package/esm/_/_arrayAggregator.d.ts.map +0 -1
- package/esm/_/_baseAggregator.d.ts +0 -13
- package/esm/_/_baseAggregator.d.ts.map +0 -1
- package/esm/_/_createAggregator.d.ts +0 -10
- package/esm/_/_createAggregator.d.ts.map +0 -1
package/esm/_/zip.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
/*!
|
|
3
|
+
* Portions of this file are derived from Lodash.
|
|
4
|
+
* https://github.com/lodash/lodash
|
|
5
|
+
*
|
|
6
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
7
|
+
*
|
|
8
|
+
* Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
9
|
+
* DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
10
|
+
*
|
|
11
|
+
* Modifications Copyright (c) 2026 GoodData Corporation
|
|
12
|
+
*
|
|
13
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
14
|
+
* a copy of this software and associated documentation files (the
|
|
15
|
+
* "Software"), to deal in the Software without restriction, including
|
|
16
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
17
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
18
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
19
|
+
* the following conditions:
|
|
20
|
+
*
|
|
21
|
+
* The above copyright notice and this permission notice shall be
|
|
22
|
+
* included in all copies or substantial portions of the Software.
|
|
23
|
+
*
|
|
24
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
25
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
26
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
27
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
28
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
29
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
30
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
31
|
+
*/
|
|
32
|
+
import { _isArrayLike } from "./isArrayLike.js";
|
|
33
|
+
import { _isObjectLike } from "./isObjectLike.js";
|
|
34
|
+
export function _zip(...arrays) {
|
|
35
|
+
const groups = arrays.filter((array) => _isObjectLike(array) && _isArrayLike(array));
|
|
36
|
+
const length = groups.reduce((longest, group) => Math.max(longest, group.length), 0);
|
|
37
|
+
return Array.from({ length }, (_, index) => groups.map((group) => group[index]));
|
|
38
|
+
}
|
package/esm/index.d.ts
CHANGED
|
@@ -13,22 +13,35 @@ export { removeMetadata, sanitizeLocaleForMoment } from "./translationUtils.js";
|
|
|
13
13
|
export { type GuardType, type EmptyObject, combineGuards } from "./typesUtils.js";
|
|
14
14
|
export { type MatcherFunction, type ConsoleFunction, type Matcher, type SpecificMatcherFunction, type ConsoleType, type WaitForFn, delay, strictBarrel, suppressConsole, createTightWaitFor, } from "./testUtils.js";
|
|
15
15
|
export { _camelCase } from "./_/camelCase.js";
|
|
16
|
+
export { _capitalize } from "./_/capitalize.js";
|
|
16
17
|
export { _cloneDeep } from "./_/cloneDeep.js";
|
|
17
18
|
export { type _Falsey, _compact } from "./_/compact.js";
|
|
18
19
|
export { type _DebouncedFunc, type _DebouncedFuncLeading, type _DebounceSettings, type _DebounceSettingsLeading, _debounce, } from "./_/debounce.js";
|
|
20
|
+
export { _difference } from "./_/difference.js";
|
|
21
|
+
export { _escape } from "./_/escape.js";
|
|
19
22
|
export { _groupBy } from "./_/groupBy.js";
|
|
23
|
+
export { _has } from "./_/has.js";
|
|
20
24
|
export { _isEqual } from "./_/isEqual.js";
|
|
21
25
|
export { type _EmptyObject, type _EmptyObjectOf, _isEmpty } from "./_/isEmpty.js";
|
|
26
|
+
export { _kebabCase } from "./_/kebabCase.js";
|
|
27
|
+
export { _keyBy } from "./_/keyBy.js";
|
|
28
|
+
export { _isPlainObject } from "./_/isPlainObject.js";
|
|
22
29
|
export { type _MapCache, type _MapCacheConstructor, type _Memoize, type _MemoizedFunction, _memoize, } from "./_/memoize.js";
|
|
23
30
|
export { _merge } from "./_/merge.js";
|
|
24
31
|
export { _omit } from "./_/omit.js";
|
|
32
|
+
export { _omitBy } from "./_/omitBy.js";
|
|
33
|
+
export { type _Partial, type _Placeholder, _partial } from "./_/partial.js";
|
|
25
34
|
export { _partition } from "./_/partition.js";
|
|
26
35
|
export { _pick } from "./_/pick.js";
|
|
36
|
+
export { _pickBy } from "./_/pickBy.js";
|
|
27
37
|
export { _range } from "./_/range.js";
|
|
28
38
|
export { type _PropertyPath, _set } from "./_/set.js";
|
|
29
39
|
export { _sortBy } from "./_/sortBy.js";
|
|
30
40
|
export { type _ThrottleSettings, type _ThrottleSettingsLeading, _throttle } from "./_/throttle.js";
|
|
41
|
+
export { _union } from "./_/union.js";
|
|
31
42
|
export { _uniq } from "./_/uniq.js";
|
|
32
43
|
export { _uniqBy } from "./_/uniqBy.js";
|
|
33
|
-
export
|
|
44
|
+
export { _uniqWith } from "./_/uniqWith.js";
|
|
45
|
+
export { _zip } from "./_/zip.js";
|
|
46
|
+
export type { _Comparator, _Dictionary, _Function0, _Function1, _Function2, _Function3, _Function4, _IterateeShorthand, _List, _ListIteratee, _ListIterator, _Many, _NotVoid, _NumericDictionary, _ObjectIteratee, _ObjectIterator, _PartialObject, _PartialShallow, _PropertyName, _ValueIteratee, _ValueIterateeCustom, _ValueIteratorTypeGuard, _ValueKeyIteratee, } from "./_/types.js";
|
|
34
47
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EACH,KAAK,mBAAmB,EACxB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,OAAO,EACZ,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,EACL,YAAY,EACZ,eAAe,EACf,kBAAkB,GACrB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,E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,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,YAAY,EACR,WAAW,EACX,WAAW,EACX,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,KAAK,EACL,aAAa,EACb,aAAa,EACb,KAAK,EACL,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,cAAc,EACd,eAAe,EACf,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,GACpB,MAAM,cAAc,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -16,20 +16,33 @@ export { combineGuards } from "./typesUtils.js";
|
|
|
16
16
|
export { delay, strictBarrel, suppressConsole, createTightWaitFor, } from "./testUtils.js";
|
|
17
17
|
// local functions from lodash-es
|
|
18
18
|
export { _camelCase } from "./_/camelCase.js";
|
|
19
|
+
export { _capitalize } from "./_/capitalize.js";
|
|
19
20
|
export { _cloneDeep } from "./_/cloneDeep.js";
|
|
20
21
|
export { _compact } from "./_/compact.js";
|
|
21
22
|
export { _debounce, } from "./_/debounce.js";
|
|
23
|
+
export { _difference } from "./_/difference.js";
|
|
24
|
+
export { _escape } from "./_/escape.js";
|
|
22
25
|
export { _groupBy } from "./_/groupBy.js";
|
|
26
|
+
export { _has } from "./_/has.js";
|
|
23
27
|
export { _isEqual } from "./_/isEqual.js";
|
|
24
28
|
export { _isEmpty } from "./_/isEmpty.js";
|
|
29
|
+
export { _kebabCase } from "./_/kebabCase.js";
|
|
30
|
+
export { _keyBy } from "./_/keyBy.js";
|
|
31
|
+
export { _isPlainObject } from "./_/isPlainObject.js";
|
|
25
32
|
export { _memoize, } from "./_/memoize.js";
|
|
26
33
|
export { _merge } from "./_/merge.js";
|
|
27
34
|
export { _omit } from "./_/omit.js";
|
|
35
|
+
export { _omitBy } from "./_/omitBy.js";
|
|
36
|
+
export { _partial } from "./_/partial.js";
|
|
28
37
|
export { _partition } from "./_/partition.js";
|
|
29
38
|
export { _pick } from "./_/pick.js";
|
|
39
|
+
export { _pickBy } from "./_/pickBy.js";
|
|
30
40
|
export { _range } from "./_/range.js";
|
|
31
41
|
export { _set } from "./_/set.js";
|
|
32
42
|
export { _sortBy } from "./_/sortBy.js";
|
|
33
43
|
export { _throttle } from "./_/throttle.js";
|
|
44
|
+
export { _union } from "./_/union.js";
|
|
34
45
|
export { _uniq } from "./_/uniq.js";
|
|
35
46
|
export { _uniqBy } from "./_/uniqBy.js";
|
|
47
|
+
export { _uniqWith } from "./_/uniqWith.js";
|
|
48
|
+
export { _zip } from "./_/zip.js";
|
package/esm/util.d.ts
CHANGED
|
@@ -8,15 +8,23 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Converts `string` to camel case: the
|
|
12
|
-
*
|
|
13
|
-
* capitalised.
|
|
11
|
+
* Converts `string` to camel case: the words of the string, lower-cased, with every word but the first
|
|
12
|
+
* capitalised, joined together.
|
|
14
13
|
*
|
|
15
14
|
* @param string - The string to convert.
|
|
16
15
|
* @returns Returns the camel cased string.
|
|
17
16
|
* @internal
|
|
18
17
|
*/
|
|
19
|
-
export declare
|
|
18
|
+
export declare const _camelCase: (string?: string) => string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Converts the first character of `string` to upper case and the remaining to lower case.
|
|
22
|
+
*
|
|
23
|
+
* @param string - The string to capitalize.
|
|
24
|
+
* @returns Returns the capitalized string.
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare function _capitalize(string?: string): string;
|
|
20
28
|
|
|
21
29
|
/**
|
|
22
30
|
* Recursively clones `value`.
|
|
@@ -50,6 +58,11 @@ export declare function combineGuards<T extends ((x: unknown) => x is unknown)[]
|
|
|
50
58
|
*/
|
|
51
59
|
export declare function _compact<T>(array: _List<T | _Falsey> | null | undefined): T[];
|
|
52
60
|
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
export declare type _Comparator<T> = (a: T, b: T) => boolean;
|
|
65
|
+
|
|
53
66
|
/**
|
|
54
67
|
* A console function, like log, warn or error
|
|
55
68
|
*
|
|
@@ -167,6 +180,19 @@ export declare type _Dictionary<T> = {
|
|
|
167
180
|
[index: string]: T;
|
|
168
181
|
};
|
|
169
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Creates an array of `array` values not included in the other given arrays using SameValueZero for equality
|
|
185
|
+
* comparisons. The order and references of result values are determined by the first array. Only array-like
|
|
186
|
+
* objects are inspected: any other first argument yields an empty array and any other exclusion argument is
|
|
187
|
+
* skipped.
|
|
188
|
+
*
|
|
189
|
+
* @param array - The array to inspect.
|
|
190
|
+
* @param values - The arrays of values to exclude.
|
|
191
|
+
* @returns Returns the new array of filtered values.
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
export declare function _difference<T>(array: _List<T> | null | undefined, ...values: _List<T>[]): T[];
|
|
195
|
+
|
|
170
196
|
/**
|
|
171
197
|
* @internal
|
|
172
198
|
*/
|
|
@@ -185,6 +211,19 @@ export declare type _EmptyObject<T> = {
|
|
|
185
211
|
*/
|
|
186
212
|
export declare type _EmptyObjectOf<T> = _EmptyObject<T> extends T ? _EmptyObject<T> : never;
|
|
187
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Converts the characters `&`, `<`, `>`, `"` and `'` in `string` to their corresponding HTML entities.
|
|
216
|
+
*
|
|
217
|
+
* **Note:** No other characters are escaped. Though `>` is escaped for symmetry, characters like `>` and `/`
|
|
218
|
+
* don't need escaping in HTML and have no special meaning unless they're part of a tag or unquoted attribute
|
|
219
|
+
* value. When working with HTML you should always quote attribute values to reduce XSS vectors.
|
|
220
|
+
*
|
|
221
|
+
* @param string - The string to escape.
|
|
222
|
+
* @returns Returns the escaped string.
|
|
223
|
+
* @internal
|
|
224
|
+
*/
|
|
225
|
+
export declare function _escape(string?: string): string;
|
|
226
|
+
|
|
188
227
|
/**
|
|
189
228
|
* Escapes special characters used in regular expressions.
|
|
190
229
|
* @param value - string to be escaped
|
|
@@ -200,6 +239,31 @@ export declare function escapeRegExp(value: string): string;
|
|
|
200
239
|
*/
|
|
201
240
|
export declare type _Falsey = null | undefined | false | "" | 0 | 0n;
|
|
202
241
|
|
|
242
|
+
/**
|
|
243
|
+
* @internal
|
|
244
|
+
*/
|
|
245
|
+
export declare type _Function0<R> = () => R;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @internal
|
|
249
|
+
*/
|
|
250
|
+
export declare type _Function1<T1, R> = (t1: T1) => R;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @internal
|
|
254
|
+
*/
|
|
255
|
+
export declare type _Function2<T1, T2, R> = (t1: T1, t2: T2) => R;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
260
|
+
export declare type _Function3<T1, T2, T3, R> = (t1: T1, t2: T2, t3: T3) => R;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @internal
|
|
264
|
+
*/
|
|
265
|
+
export declare type _Function4<T1, T2, T3, T4, R> = (t1: T1, t2: T2, t3: T3, t4: T4) => R;
|
|
266
|
+
|
|
203
267
|
/**
|
|
204
268
|
* Creates an object composed of keys generated from the results of running each element of
|
|
205
269
|
* `collection` thru `iteratee`. The order of grouped values is determined by the order they occur in
|
|
@@ -224,6 +288,26 @@ export declare function _groupBy<T extends object>(collection: T | null | undefi
|
|
|
224
288
|
*/
|
|
225
289
|
export declare type GuardType<T> = T extends ((o: unknown) => o is infer U) ? U : never;
|
|
226
290
|
|
|
291
|
+
/**
|
|
292
|
+
* Checks if `path` is a direct property of `object`: every segment of the path must be an own property of
|
|
293
|
+
* the value before it, or a valid index of an array or arguments object.
|
|
294
|
+
*
|
|
295
|
+
* @param object - The object to query.
|
|
296
|
+
* @param path - The path to check.
|
|
297
|
+
* @returns Returns `true` if `path` exists, else `false`.
|
|
298
|
+
* @internal
|
|
299
|
+
*/
|
|
300
|
+
export declare function _has<T, K extends _PropertyName>(object: T, path: K): object is T & {
|
|
301
|
+
[P in K]: P extends keyof T ? T[P] : Record<string, unknown> extends T ? T[keyof T] : unknown;
|
|
302
|
+
} & {
|
|
303
|
+
[uniqueSymbol]: unknown;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @internal
|
|
308
|
+
*/
|
|
309
|
+
export declare function _has<T>(object: T, path: _PropertyPath): boolean;
|
|
310
|
+
|
|
227
311
|
/**
|
|
228
312
|
* Returns a hash code for a string.
|
|
229
313
|
*
|
|
@@ -305,11 +389,47 @@ export declare interface IShortenTextOptions {
|
|
|
305
389
|
maxLength?: number;
|
|
306
390
|
}
|
|
307
391
|
|
|
392
|
+
/**
|
|
393
|
+
* Checks if `value` is a plain object, that is, an object created by the `Object` constructor or one
|
|
394
|
+
* with a `[[Prototype]]` of `null`.
|
|
395
|
+
*
|
|
396
|
+
* @param value - The value to check.
|
|
397
|
+
* @returns Returns `true` if `value` is a plain object, else `false`.
|
|
398
|
+
* @internal
|
|
399
|
+
*/
|
|
400
|
+
export declare function _isPlainObject(value?: unknown): boolean;
|
|
401
|
+
|
|
308
402
|
/**
|
|
309
403
|
* @internal
|
|
310
404
|
*/
|
|
311
405
|
export declare type _IterateeShorthand<T> = _PropertyName | [_PropertyName, any] | _PartialShallow<T>;
|
|
312
406
|
|
|
407
|
+
/**
|
|
408
|
+
* Converts `string` to kebab case: the words of the string, lower-cased and joined with hyphens.
|
|
409
|
+
*
|
|
410
|
+
* @param string - The string to convert.
|
|
411
|
+
* @returns Returns the kebab cased string.
|
|
412
|
+
* @internal
|
|
413
|
+
*/
|
|
414
|
+
export declare const _kebabCase: (string?: string) => string;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Creates an object composed of keys generated from the results of running each element of `collection`
|
|
418
|
+
* thru `iteratee`. The corresponding value of each key is the last element responsible for generating the
|
|
419
|
+
* key. The iteratee is invoked with one argument: (value).
|
|
420
|
+
*
|
|
421
|
+
* @param collection - The collection to iterate over.
|
|
422
|
+
* @param iteratee - The iteratee to transform keys.
|
|
423
|
+
* @returns Returns the composed aggregate object.
|
|
424
|
+
* @internal
|
|
425
|
+
*/
|
|
426
|
+
export declare function _keyBy<T>(collection: _List<T> | null | undefined, iteratee?: _ValueIterateeCustom<T, _PropertyName>): _Dictionary<T>;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* @internal
|
|
430
|
+
*/
|
|
431
|
+
export declare function _keyBy<T extends object>(collection: T | null | undefined, iteratee?: _ValueIterateeCustom<T[keyof T], _PropertyName>): _Dictionary<T[keyof T]>;
|
|
432
|
+
|
|
313
433
|
/**
|
|
314
434
|
* @internal
|
|
315
435
|
*/
|
|
@@ -454,6 +574,13 @@ export declare function _merge(object: any, ...otherArgs: any[]): any;
|
|
|
454
574
|
*/
|
|
455
575
|
export declare type _NotVoid = unknown;
|
|
456
576
|
|
|
577
|
+
/**
|
|
578
|
+
* @internal
|
|
579
|
+
*/
|
|
580
|
+
export declare type _NumericDictionary<T> = {
|
|
581
|
+
[index: number]: T;
|
|
582
|
+
};
|
|
583
|
+
|
|
457
584
|
/**
|
|
458
585
|
* @internal
|
|
459
586
|
*/
|
|
@@ -492,6 +619,28 @@ export declare function _omit<T extends object, K extends keyof T>(object: T | n
|
|
|
492
619
|
*/
|
|
493
620
|
export declare function _omit<T extends object>(object: T | null | undefined, ...paths: Array<_Many<_PropertyName>>): _PartialObject<T>;
|
|
494
621
|
|
|
622
|
+
/**
|
|
623
|
+
* The opposite of `pickBy`; this method creates an object composed of the own and inherited enumerable
|
|
624
|
+
* string and symbol keyed properties of `object` that `predicate` doesn't return truthy for. The predicate
|
|
625
|
+
* is invoked with two arguments: (value, key). Picked values are kept by reference.
|
|
626
|
+
*
|
|
627
|
+
* @param object - The source object.
|
|
628
|
+
* @param predicate - The function invoked per property, or an iteratee shorthand. Defaults to identity.
|
|
629
|
+
* @returns Returns the new object.
|
|
630
|
+
* @internal
|
|
631
|
+
*/
|
|
632
|
+
export declare function _omitBy<T>(object: _Dictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _Dictionary<T>;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* @internal
|
|
636
|
+
*/
|
|
637
|
+
export declare function _omitBy<T>(object: _NumericDictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _NumericDictionary<T>;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* @internal
|
|
641
|
+
*/
|
|
642
|
+
export declare function _omitBy<T extends object>(object: T | null | undefined, predicate: _ValueKeyIteratee<T[keyof T]>): _PartialObject<T>;
|
|
643
|
+
|
|
495
644
|
/**
|
|
496
645
|
* Parse string in a form of [foo, bar] to an array of objects.
|
|
497
646
|
* Assume alphanumeric strings in the array and spaces; if some is not alphanumeric , return null
|
|
@@ -502,6 +651,53 @@ export declare function _omit<T extends object>(object: T | null | undefined, ..
|
|
|
502
651
|
*/
|
|
503
652
|
export declare function parseStringToArray(str: string): string[] | null;
|
|
504
653
|
|
|
654
|
+
/**
|
|
655
|
+
* The call signatures of `_partial`: each applied parameter is dropped from the resulting function, a
|
|
656
|
+
* placeholder keeps its parameter in place.
|
|
657
|
+
*
|
|
658
|
+
* @internal
|
|
659
|
+
*/
|
|
660
|
+
export declare type _Partial = {
|
|
661
|
+
<T1, T2, R>(func: _Function2<T1, T2, R>, plc1: _Placeholder, arg2: T2): _Function1<T1, R>;
|
|
662
|
+
<T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, plc1: _Placeholder, arg2: T2): _Function2<T1, T3, R>;
|
|
663
|
+
<T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, plc1: _Placeholder, plc2: _Placeholder, arg3: T3): _Function2<T1, T2, R>;
|
|
664
|
+
<T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, arg1: T1, plc2: _Placeholder, arg3: T3): _Function1<T2, R>;
|
|
665
|
+
<T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, plc1: _Placeholder, arg2: T2, arg3: T3): _Function1<T1, R>;
|
|
666
|
+
<T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2): _Function3<T1, T3, T4, R>;
|
|
667
|
+
<T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, plc2: _Placeholder, arg3: T3): _Function3<T1, T2, T4, R>;
|
|
668
|
+
<T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: _Placeholder, arg3: T3): _Function2<T2, T4, R>;
|
|
669
|
+
<T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2, arg3: T3): _Function2<T1, T4, R>;
|
|
670
|
+
<T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, plc2: _Placeholder, plc3: _Placeholder, arg4: T4): _Function3<T1, T2, T3, R>;
|
|
671
|
+
<T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: _Placeholder, plc3: _Placeholder, arg4: T4): _Function2<T2, T3, R>;
|
|
672
|
+
<T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2, plc3: _Placeholder, arg4: T4): _Function2<T1, T3, R>;
|
|
673
|
+
<T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: _Placeholder, arg4: T4): _Function1<T3, R>;
|
|
674
|
+
<T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, plc2: _Placeholder, arg3: T3, arg4: T4): _Function2<T1, T2, R>;
|
|
675
|
+
<T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: _Placeholder, arg3: T3, arg4: T4): _Function1<T2, R>;
|
|
676
|
+
<T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2, arg3: T3, arg4: T4): _Function1<T1, R>;
|
|
677
|
+
<TS extends any[], R>(func: (...ts: TS) => R): (...ts: TS) => R;
|
|
678
|
+
<TS extends any[], T1, R>(func: (t1: T1, ...ts: TS) => R, arg1: T1): (...ts: TS) => R;
|
|
679
|
+
<TS extends any[], T1, T2, R>(func: (t1: T1, t2: T2, ...ts: TS) => R, t1: T1, t2: T2): (...ts: TS) => R;
|
|
680
|
+
<TS extends any[], T1, T2, T3, R>(func: (t1: T1, t2: T2, t3: T3, ...ts: TS) => R, t1: T1, t2: T2, t3: T3): (...ts: TS) => R;
|
|
681
|
+
<TS extends any[], T1, T2, T3, T4, R>(func: (t1: T1, t2: T2, t3: T3, t4: T4, ...ts: TS) => R, t1: T1, t2: T2, t3: T3, t4: T4): (...ts: TS) => R;
|
|
682
|
+
/** Marks a parameter of the function that is left open; `_partial.placeholder` is its only value. */
|
|
683
|
+
placeholder: _Placeholder;
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Creates a function that invokes `func` with `partials` prepended to the arguments it receives. This method
|
|
688
|
+
* is like `bind` except it does **not** alter the `this` binding. The `_partial.placeholder` value may be
|
|
689
|
+
* used as a placeholder for partially applied arguments: each placeholder takes the next argument of the
|
|
690
|
+
* call, the remaining call arguments are appended. Calling the result with `new` constructs `func`.
|
|
691
|
+
*
|
|
692
|
+
* **Note:** This method doesn't set the "length" property of partially applied functions.
|
|
693
|
+
*
|
|
694
|
+
* @param func - The function to partially apply arguments to.
|
|
695
|
+
* @param partials - The arguments to be partially applied.
|
|
696
|
+
* @returns Returns the new partially applied function.
|
|
697
|
+
* @internal
|
|
698
|
+
*/
|
|
699
|
+
export declare const _partial: _Partial;
|
|
700
|
+
|
|
505
701
|
/**
|
|
506
702
|
* @internal
|
|
507
703
|
*/
|
|
@@ -555,6 +751,39 @@ export declare function _pick<T extends object, U extends keyof T>(object: T, ..
|
|
|
555
751
|
*/
|
|
556
752
|
export declare function _pick<T>(object: T | null | undefined, ...props: _Many<_PropertyPath>[]): _PartialObject<T>;
|
|
557
753
|
|
|
754
|
+
/**
|
|
755
|
+
* Creates an object composed of the own and inherited enumerable string and symbol keyed properties of
|
|
756
|
+
* `object` that `predicate` returns truthy for. The predicate is invoked with two arguments: (value, key).
|
|
757
|
+
* Picked values are kept by reference.
|
|
758
|
+
*
|
|
759
|
+
* @param object - The source object.
|
|
760
|
+
* @param predicate - The function invoked per property, or an iteratee shorthand. Defaults to identity.
|
|
761
|
+
* @returns Returns the new object.
|
|
762
|
+
* @internal
|
|
763
|
+
*/
|
|
764
|
+
export declare function _pickBy<T>(object: _Dictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _Dictionary<T>;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* @internal
|
|
768
|
+
*/
|
|
769
|
+
export declare function _pickBy<T>(object: _NumericDictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _NumericDictionary<T>;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* @internal
|
|
773
|
+
*/
|
|
774
|
+
export declare function _pickBy<T extends object>(object: T | null | undefined, predicate?: _ValueKeyIteratee<T[keyof T]>): _PartialObject<T>;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* The type of `_partial.placeholder`, which stands in for lodash's `_` placeholder.
|
|
778
|
+
*
|
|
779
|
+
* @internal
|
|
780
|
+
*/
|
|
781
|
+
export declare type _Placeholder = {
|
|
782
|
+
readonly [placeholderBrand]: true;
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
declare const placeholderBrand: unique symbol;
|
|
786
|
+
|
|
558
787
|
/**
|
|
559
788
|
* @internal
|
|
560
789
|
*/
|
|
@@ -783,6 +1012,16 @@ export declare type _ThrottleSettingsLeading = (_ThrottleSettings & {
|
|
|
783
1012
|
leading: true;
|
|
784
1013
|
}) | Omit<_ThrottleSettings, "leading">;
|
|
785
1014
|
|
|
1015
|
+
/**
|
|
1016
|
+
* Creates an array of unique values, in order, from all given arrays using SameValueZero for equality
|
|
1017
|
+
* comparisons. Only array-like objects are inspected; other arguments, strings included, are skipped.
|
|
1018
|
+
*
|
|
1019
|
+
* @param arrays - The arrays to inspect.
|
|
1020
|
+
* @returns Returns the new array of combined values.
|
|
1021
|
+
* @internal
|
|
1022
|
+
*/
|
|
1023
|
+
export declare function _union<T>(...arrays: (_List<T> | null | undefined)[]): T[];
|
|
1024
|
+
|
|
786
1025
|
/**
|
|
787
1026
|
* Creates a duplicate-free version of an array, using SameValueZero for equality comparisons, in which
|
|
788
1027
|
* only the first occurrence of each element is kept. The order of result values is determined by the
|
|
@@ -806,6 +1045,21 @@ export declare function _uniq<T>(array: _List<T> | null | undefined): T[];
|
|
|
806
1045
|
*/
|
|
807
1046
|
export declare function _uniqBy<T>(array: _List<T> | null | undefined, iteratee: _ValueIteratee<T>): T[];
|
|
808
1047
|
|
|
1048
|
+
declare const uniqueSymbol: unique symbol;
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* This method is like `_uniq` except that it accepts `comparator` which is invoked to compare elements of
|
|
1052
|
+
* `array`. The order of result values is determined by the order they occur in the array. The comparator
|
|
1053
|
+
* is invoked with two arguments: (arrVal, othVal), the candidate first and then each kept element in order.
|
|
1054
|
+
* Without a function comparator, elements are compared with SameValueZero.
|
|
1055
|
+
*
|
|
1056
|
+
* @param array - The array to inspect.
|
|
1057
|
+
* @param comparator - The comparator invoked per element.
|
|
1058
|
+
* @returns Returns the new duplicate free array.
|
|
1059
|
+
* @internal
|
|
1060
|
+
*/
|
|
1061
|
+
export declare function _uniqWith<T>(array: _List<T> | null | undefined, comparator?: _Comparator<T>): T[];
|
|
1062
|
+
|
|
809
1063
|
/**
|
|
810
1064
|
* An iteratee as lodash accepts it: a function, a property name or path, a `[path, value]` pair, or a
|
|
811
1065
|
* partial object to match.
|
|
@@ -814,6 +1068,11 @@ export declare function _uniqBy<T>(array: _List<T> | null | undefined, iteratee:
|
|
|
814
1068
|
*/
|
|
815
1069
|
export declare type _ValueIteratee<T> = ((value: T) => _NotVoid) | _IterateeShorthand<T>;
|
|
816
1070
|
|
|
1071
|
+
/**
|
|
1072
|
+
* @internal
|
|
1073
|
+
*/
|
|
1074
|
+
export declare type _ValueIterateeCustom<T, TResult> = ((value: T) => TResult) | _IterateeShorthand<T>;
|
|
1075
|
+
|
|
817
1076
|
/**
|
|
818
1077
|
* A predicate that narrows the element type, so functions like `_partition` can type their result.
|
|
819
1078
|
*
|
|
@@ -821,6 +1080,11 @@ export declare type _ValueIteratee<T> = ((value: T) => _NotVoid) | _IterateeShor
|
|
|
821
1080
|
*/
|
|
822
1081
|
export declare type _ValueIteratorTypeGuard<T, S extends T> = (value: T) => value is S;
|
|
823
1082
|
|
|
1083
|
+
/**
|
|
1084
|
+
* @internal
|
|
1085
|
+
*/
|
|
1086
|
+
export declare type _ValueKeyIteratee<T> = ((value: T, key: string) => _NotVoid) | _IterateeShorthand<T>;
|
|
1087
|
+
|
|
824
1088
|
/**
|
|
825
1089
|
* A waitFor-compatible polling function, structurally matching testing-library's waitFor.
|
|
826
1090
|
*
|
|
@@ -831,4 +1095,35 @@ export declare type WaitForFn = <T>(callback: () => T | Promise<T>, options?: {
|
|
|
831
1095
|
timeout?: number;
|
|
832
1096
|
}) => Promise<T>;
|
|
833
1097
|
|
|
1098
|
+
/**
|
|
1099
|
+
* Creates an array of grouped elements, the first of which contains the first elements of the given arrays,
|
|
1100
|
+
* the second of which contains the second elements of the given arrays, and so on. Shorter arrays are padded
|
|
1101
|
+
* with `undefined` up to the longest one. Only array-like objects take part; other arguments are skipped.
|
|
1102
|
+
*
|
|
1103
|
+
* @param arrays - The arrays to process.
|
|
1104
|
+
* @returns Returns the new array of grouped elements.
|
|
1105
|
+
* @internal
|
|
1106
|
+
*/
|
|
1107
|
+
export declare function _zip<T1, T2>(arrays1: _List<T1>, arrays2: _List<T2>): [T1 | undefined, T2 | undefined][];
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* @internal
|
|
1111
|
+
*/
|
|
1112
|
+
export declare function _zip<T1, T2, T3>(arrays1: _List<T1>, arrays2: _List<T2>, arrays3: _List<T3>): [T1 | undefined, T2 | undefined, T3 | undefined][];
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* @internal
|
|
1116
|
+
*/
|
|
1117
|
+
export declare function _zip<T1, T2, T3, T4>(arrays1: _List<T1>, arrays2: _List<T2>, arrays3: _List<T3>, arrays4: _List<T4>): [T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined][];
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* @internal
|
|
1121
|
+
*/
|
|
1122
|
+
export declare function _zip<T1, T2, T3, T4, T5>(arrays1: _List<T1>, arrays2: _List<T2>, arrays3: _List<T3>, arrays4: _List<T4>, arrays5: _List<T5>): [T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined, T5 | undefined][];
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* @internal
|
|
1126
|
+
*/
|
|
1127
|
+
export declare function _zip<T>(...arrays: (_List<T> | null | undefined)[]): (T | undefined)[][];
|
|
1128
|
+
|
|
834
1129
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/util",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.7",
|
|
4
4
|
"description": "GoodData Utility Functions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"oxlint-tsgolint": "7.0.2001",
|
|
48
48
|
"typescript": "7.0.2",
|
|
49
49
|
"vitest": "5.0.4",
|
|
50
|
-
"@gooddata/
|
|
51
|
-
"@gooddata/
|
|
50
|
+
"@gooddata/eslint-config": "11.68.0-alpha.7",
|
|
51
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.7"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"_phase:build": "npm run build",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_arrayAggregator.d.ts","sourceRoot":"","sources":["../../src/_/_arrayAggregator.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,GAAG,GAAG,CAU9F"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Aggregates elements of `collection` on `accumulator` with keys transformed
|
|
3
|
-
* by `iteratee` and values set by `setter`.
|
|
4
|
-
*
|
|
5
|
-
* @private
|
|
6
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
7
|
-
* @param {Function} setter The function to set `accumulator` values.
|
|
8
|
-
* @param {Function} iteratee The iteratee to transform keys.
|
|
9
|
-
* @param {Object} accumulator The initial aggregated object.
|
|
10
|
-
* @returns {Function} Returns `accumulator`.
|
|
11
|
-
*/
|
|
12
|
-
export declare function _baseAggregator(collection: any, setter: any, iteratee: any, accumulator: any): any;
|
|
13
|
-
//# sourceMappingURL=_baseAggregator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_baseAggregator.d.ts","sourceRoot":"","sources":["../../src/_/_baseAggregator.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,GAAG,GAAG,CAMlG"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a function like `_.groupBy`.
|
|
3
|
-
*
|
|
4
|
-
* @private
|
|
5
|
-
* @param {Function} setter The function to set accumulator values.
|
|
6
|
-
* @param {Function} [initializer] The accumulator object initializer.
|
|
7
|
-
* @returns {Function} Returns the new aggregator function.
|
|
8
|
-
*/
|
|
9
|
-
export declare function _createAggregator(setter: any, initializer?: any): (collection: any, iteratee?: any) => any;
|
|
10
|
-
//# sourceMappingURL=_createAggregator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_createAggregator.d.ts","sourceRoot":"","sources":["../../src/_/_createAggregator.ts"],"names":[],"mappings":"AAwCA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE,GAAG,GAAG,CAAC,UAAU,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,GAAG,KAAK,GAAG,CAO1G"}
|