@gooddata/util 11.68.0-alpha.6 → 11.68.0-alpha.8

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.
Files changed (84) hide show
  1. package/LICENSE +1 -1
  2. package/NOTICE +4 -2
  3. package/esm/_/_baseDifference.d.ts +15 -0
  4. package/esm/_/_baseDifference.d.ts.map +1 -0
  5. package/esm/_/_baseDifference.js +68 -0
  6. package/esm/_/_basePickBy.d.ts +14 -0
  7. package/esm/_/_basePickBy.d.ts.map +1 -0
  8. package/esm/_/_basePickBy.js +57 -0
  9. package/esm/_/_createCompounder.d.ts +11 -0
  10. package/esm/_/_createCompounder.d.ts.map +1 -0
  11. package/esm/_/{_arrayAggregator.js → _createCompounder.js} +12 -16
  12. package/esm/_/camelCase.d.ts +3 -4
  13. package/esm/_/camelCase.d.ts.map +1 -1
  14. package/esm/_/camelCase.js +8 -19
  15. package/esm/_/capitalize.d.ts +9 -0
  16. package/esm/_/capitalize.d.ts.map +1 -0
  17. package/esm/_/{_arrayAggregator.d.ts → capitalize.js} +10 -9
  18. package/esm/_/clamp.d.ts +17 -0
  19. package/esm/_/clamp.d.ts.map +1 -0
  20. package/esm/_/clamp.js +56 -0
  21. package/esm/_/deburr.d.ts.map +1 -1
  22. package/esm/_/deburr.js +2 -1
  23. package/esm/_/difference.d.ts +14 -0
  24. package/esm/_/difference.d.ts.map +1 -0
  25. package/esm/_/difference.js +46 -0
  26. package/esm/_/differenceBy.d.ts +39 -0
  27. package/esm/_/differenceBy.d.ts.map +1 -0
  28. package/esm/_/{_createAggregator.js → differenceBy.js} +7 -17
  29. package/esm/_/escape.d.ts +13 -0
  30. package/esm/_/escape.d.ts.map +1 -0
  31. package/esm/_/escape.js +56 -0
  32. package/esm/_/has.d.ts +23 -0
  33. package/esm/_/has.d.ts.map +1 -0
  34. package/esm/_/has.js +35 -0
  35. package/esm/_/isPlainObject.d.ts +1 -1
  36. package/esm/_/isPlainObject.d.ts.map +1 -1
  37. package/esm/_/kebabCase.d.ts +9 -0
  38. package/esm/_/kebabCase.d.ts.map +1 -0
  39. package/esm/_/kebabCase.js +40 -0
  40. package/esm/_/keyBy.d.ts +17 -0
  41. package/esm/_/keyBy.d.ts.map +1 -0
  42. package/esm/_/{_baseAggregator.js → keyBy.js} +9 -16
  43. package/esm/_/omitBy.d.ts +21 -0
  44. package/esm/_/omitBy.d.ts.map +1 -0
  45. package/esm/_/omitBy.js +37 -0
  46. package/esm/_/partial.d.ts +87 -0
  47. package/esm/_/partial.d.ts.map +1 -0
  48. package/esm/_/partial.js +30 -0
  49. package/esm/_/pickBy.d.ts +21 -0
  50. package/esm/_/pickBy.d.ts.map +1 -0
  51. package/esm/_/pickBy.js +36 -0
  52. package/esm/_/toNumber.d.ts +11 -0
  53. package/esm/_/toNumber.d.ts.map +1 -0
  54. package/esm/_/toNumber.js +69 -0
  55. package/esm/_/toString.d.ts +11 -0
  56. package/esm/_/toString.d.ts.map +1 -0
  57. package/esm/_/toString.js +57 -0
  58. package/esm/_/types.d.ts +38 -0
  59. package/esm/_/types.d.ts.map +1 -1
  60. package/esm/_/union.d.ts +11 -0
  61. package/esm/_/union.d.ts.map +1 -0
  62. package/esm/_/union.js +55 -0
  63. package/esm/_/uniqWith.d.ts +14 -0
  64. package/esm/_/uniqWith.d.ts.map +1 -0
  65. package/esm/_/uniqWith.js +59 -0
  66. package/esm/_/update.d.ts +17 -0
  67. package/esm/_/update.d.ts.map +1 -0
  68. package/esm/_/update.js +55 -0
  69. package/esm/_/upperFirst.d.ts +10 -0
  70. package/esm/_/upperFirst.d.ts.map +1 -0
  71. package/esm/_/upperFirst.js +46 -0
  72. package/esm/_/zip.d.ts +28 -0
  73. package/esm/_/zip.d.ts.map +1 -0
  74. package/esm/_/zip.js +38 -0
  75. package/esm/index.d.ts +17 -1
  76. package/esm/index.d.ts.map +1 -1
  77. package/esm/index.js +16 -0
  78. package/esm/util.d.ts +377 -4
  79. package/package.json +3 -3
  80. package/esm/_/_arrayAggregator.d.ts.map +0 -1
  81. package/esm/_/_baseAggregator.d.ts +0 -13
  82. package/esm/_/_baseAggregator.d.ts.map +0 -1
  83. package/esm/_/_createAggregator.d.ts +0 -10
  84. package/esm/_/_createAggregator.d.ts.map +0 -1
@@ -0,0 +1,56 @@
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 { _toString } from "./toString.js";
33
+ /** Used to match HTML characters. */
34
+ const RE_UNESCAPED_HTML = /[&<>"']/g;
35
+ /** Used to map characters to HTML entities. */
36
+ const HTML_ESCAPES = {
37
+ "&": "&amp;",
38
+ "<": "&lt;",
39
+ ">": "&gt;",
40
+ '"': "&quot;",
41
+ "'": "&#39;",
42
+ };
43
+ /**
44
+ * Converts the characters `&`, `<`, `>`, `"` and `'` in `string` to their corresponding HTML entities.
45
+ *
46
+ * **Note:** No other characters are escaped. Though `>` is escaped for symmetry, characters like `>` and `/`
47
+ * don't need escaping in HTML and have no special meaning unless they're part of a tag or unquoted attribute
48
+ * value. When working with HTML you should always quote attribute values to reduce XSS vectors.
49
+ *
50
+ * @param string - The string to escape.
51
+ * @returns Returns the escaped string.
52
+ * @internal
53
+ */
54
+ export function _escape(string) {
55
+ return _toString(string).replace(RE_UNESCAPED_HTML, (character) => HTML_ESCAPES[character] ?? character);
56
+ }
package/esm/_/has.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ import type { _PropertyPath } from "./set.js";
2
+ import type { _PropertyName } from "./types.js";
3
+ declare const uniqueSymbol: unique symbol;
4
+ /**
5
+ * Checks if `path` is a direct property of `object`: every segment of the path must be an own property of
6
+ * the value before it, or a valid index of an array or arguments object.
7
+ *
8
+ * @param object - The object to query.
9
+ * @param path - The path to check.
10
+ * @returns Returns `true` if `path` exists, else `false`.
11
+ * @internal
12
+ */
13
+ export declare function _has<T, K extends _PropertyName>(object: T, path: K): object is T & {
14
+ [P in K]: P extends keyof T ? T[P] : Record<string, unknown> extends T ? T[keyof T] : unknown;
15
+ } & {
16
+ [uniqueSymbol]: unknown;
17
+ };
18
+ /**
19
+ * @internal
20
+ */
21
+ export declare function _has<T>(object: T, path: _PropertyPath): boolean;
22
+ export {};
23
+ //# sourceMappingURL=has.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has.d.ts","sourceRoot":"","sources":["../../src/_/has.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,CAAC,MAAM,YAAY,EAAE,OAAO,MAAM,CAAC;AAE1C;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,aAAa,EAC3C,MAAM,EAAE,CAAC,EACT,IAAI,EAAE,CAAC,GACR,MAAM,IAAI,CAAC,GAAG;KACZ,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO;CAChG,GAAG;IAAE,CAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAChC;;GAEG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC"}
package/esm/_/has.js ADDED
@@ -0,0 +1,35 @@
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 { _hasPath } from "./_hasPath.js";
33
+ export function _has(object, path) {
34
+ return object != null && _hasPath(object, path, (target, key) => Object.hasOwn(target, key));
35
+ }
@@ -6,5 +6,5 @@
6
6
  * @returns Returns `true` if `value` is a plain object, else `false`.
7
7
  * @internal
8
8
  */
9
- export declare function _isPlainObject(value: unknown): boolean;
9
+ export declare function _isPlainObject(value?: unknown): boolean;
10
10
  //# sourceMappingURL=isPlainObject.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isPlainObject.d.ts","sourceRoot":"","sources":["../../src/_/isPlainObject.ts"],"names":[],"mappings":"AA0CA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAmBtD"}
1
+ {"version":3,"file":"isPlainObject.d.ts","sourceRoot":"","sources":["../../src/_/isPlainObject.ts"],"names":[],"mappings":"AA0CA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAmBvD"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Converts `string` to kebab case: the words of the string, lower-cased and joined with hyphens.
3
+ *
4
+ * @param string - The string to convert.
5
+ * @returns Returns the kebab cased string.
6
+ * @internal
7
+ */
8
+ export declare const _kebabCase: (string?: string) => string;
9
+ //# sourceMappingURL=kebabCase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kebabCase.d.ts","sourceRoot":"","sources":["../../src/_/kebabCase.ts"],"names":[],"mappings":"AAmCA;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAE7C,CAAC"}
@@ -0,0 +1,40 @@
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 { _createCompounder } from "./_createCompounder.js";
33
+ /**
34
+ * Converts `string` to kebab case: the words of the string, lower-cased and joined with hyphens.
35
+ *
36
+ * @param string - The string to convert.
37
+ * @returns Returns the kebab cased string.
38
+ * @internal
39
+ */
40
+ export const _kebabCase = _createCompounder((result, word, index) => result + (index ? "-" : "") + word.toLowerCase());
@@ -0,0 +1,17 @@
1
+ import type { _Dictionary, _List, _PropertyName, _ValueIterateeCustom } from "./types.js";
2
+ /**
3
+ * Creates an object composed of keys generated from the results of running each element of `collection`
4
+ * thru `iteratee`. The corresponding value of each key is the last element responsible for generating the
5
+ * key. The iteratee is invoked with one argument: (value).
6
+ *
7
+ * @param collection - The collection to iterate over.
8
+ * @param iteratee - The iteratee to transform keys.
9
+ * @returns Returns the composed aggregate object.
10
+ * @internal
11
+ */
12
+ export declare function _keyBy<T>(collection: _List<T> | null | undefined, iteratee?: _ValueIterateeCustom<T, _PropertyName>): _Dictionary<T>;
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare function _keyBy<T extends object>(collection: T | null | undefined, iteratee?: _ValueIterateeCustom<T[keyof T], _PropertyName>): _Dictionary<T[keyof T]>;
17
+ //# sourceMappingURL=keyBy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyBy.d.ts","sourceRoot":"","sources":["../../src/_/keyBy.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAE1F;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,CAAC,EACpB,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACvC,QAAQ,CAAC,EAAE,oBAAoB,CAAC,CAAC,EAAE,aAAa,CAAC,GAClD,WAAW,CAAC,CAAC,CAAC,CAAC;AAClB;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,EACnC,UAAU,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAChC,QAAQ,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,CAAC,GAC3D,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC"}
@@ -1,5 +1,4 @@
1
1
  // (C) 2026 GoodData Corporation
2
- /* eslint-disable */
3
2
  /*!
4
3
  * Portions of this file are derived from Lodash.
5
4
  * https://github.com/lodash/lodash
@@ -30,21 +29,15 @@
30
29
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31
30
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
31
  */
32
+ import { _baseAssignValue } from "./_baseAssignValue.js";
33
33
  import { _baseEach } from "./_baseEach.js";
34
- /**
35
- * Aggregates elements of `collection` on `accumulator` with keys transformed
36
- * by `iteratee` and values set by `setter`.
37
- *
38
- * @private
39
- * @param {Array|Object} collection The collection to iterate over.
40
- * @param {Function} setter The function to set `accumulator` values.
41
- * @param {Function} iteratee The iteratee to transform keys.
42
- * @param {Object} accumulator The initial aggregated object.
43
- * @returns {Function} Returns `accumulator`.
44
- */
45
- export function _baseAggregator(collection, setter, iteratee, accumulator) {
46
- _baseEach(collection, function (value, _key, collection) {
47
- setter(accumulator, value, iteratee(value), collection);
34
+ import { _baseIteratee } from "./_baseIteratee.js";
35
+ export function _keyBy(collection, iteratee) {
36
+ const result = {};
37
+ const toKey = _baseIteratee(iteratee);
38
+ _baseEach(collection, (value) => {
39
+ // defines a `__proto__` key as an own property instead of changing the prototype
40
+ _baseAssignValue(result, toKey(value), value);
48
41
  });
49
- return accumulator;
42
+ return result;
50
43
  }
@@ -0,0 +1,21 @@
1
+ import type { _Dictionary, _NumericDictionary, _PartialObject, _ValueKeyIteratee } from "./types.js";
2
+ /**
3
+ * The opposite of `pickBy`; this method creates an object composed of the own and inherited enumerable
4
+ * string and symbol keyed properties of `object` that `predicate` doesn't return truthy for. The predicate
5
+ * is invoked with two arguments: (value, key). Picked values are kept by reference.
6
+ *
7
+ * @param object - The source object.
8
+ * @param predicate - The function invoked per property, or an iteratee shorthand. Defaults to identity.
9
+ * @returns Returns the new object.
10
+ * @internal
11
+ */
12
+ export declare function _omitBy<T>(object: _Dictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _Dictionary<T>;
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare function _omitBy<T>(object: _NumericDictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _NumericDictionary<T>;
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare function _omitBy<T extends object>(object: T | null | undefined, predicate: _ValueKeyIteratee<T[keyof T]>): _PartialObject<T>;
21
+ //# sourceMappingURL=omitBy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"omitBy.d.ts","sourceRoot":"","sources":["../../src/_/omitBy.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAErG;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACrB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACzC,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GACjC,WAAW,CAAC,CAAC,CAAC,CAAC;AAClB;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACrB,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAChD,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GACjC,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACzB;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EACpC,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC5B,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACzC,cAAc,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,37 @@
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 { _baseIteratee } from "./_baseIteratee.js";
33
+ import { _basePickBy } from "./_basePickBy.js";
34
+ export function _omitBy(object, predicate) {
35
+ const matches = _baseIteratee(predicate);
36
+ return _basePickBy(object, (value, key) => !matches(value, key));
37
+ }
@@ -0,0 +1,87 @@
1
+ /*!
2
+ * Portions of this file are derived from Lodash.
3
+ * https://github.com/lodash/lodash
4
+ *
5
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
6
+ *
7
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
8
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
9
+ *
10
+ * Modifications Copyright (c) 2026 GoodData Corporation
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining
13
+ * a copy of this software and associated documentation files (the
14
+ * "Software"), to deal in the Software without restriction, including
15
+ * without limitation the rights to use, copy, modify, merge, publish,
16
+ * distribute, sublicense, and/or sell copies of the Software, and to
17
+ * permit persons to whom the Software is furnished to do so, subject to
18
+ * the following conditions:
19
+ *
20
+ * The above copyright notice and this permission notice shall be
21
+ * included in all copies or substantial portions of the Software.
22
+ *
23
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
+ */
31
+ import type { _Function1, _Function2, _Function3, _Function4 } from "./types.js";
32
+ declare const placeholderBrand: unique symbol;
33
+ /**
34
+ * The type of `_partial.placeholder`, which stands in for lodash's `_` placeholder.
35
+ *
36
+ * @internal
37
+ */
38
+ export type _Placeholder = {
39
+ readonly [placeholderBrand]: true;
40
+ };
41
+ /**
42
+ * The call signatures of `_partial`: each applied parameter is dropped from the resulting function, a
43
+ * placeholder keeps its parameter in place.
44
+ *
45
+ * @internal
46
+ */
47
+ export type _Partial = {
48
+ <T1, T2, R>(func: _Function2<T1, T2, R>, plc1: _Placeholder, arg2: T2): _Function1<T1, R>;
49
+ <T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, plc1: _Placeholder, arg2: T2): _Function2<T1, T3, R>;
50
+ <T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, plc1: _Placeholder, plc2: _Placeholder, arg3: T3): _Function2<T1, T2, R>;
51
+ <T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, arg1: T1, plc2: _Placeholder, arg3: T3): _Function1<T2, R>;
52
+ <T1, T2, T3, R>(func: _Function3<T1, T2, T3, R>, plc1: _Placeholder, arg2: T2, arg3: T3): _Function1<T1, R>;
53
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2): _Function3<T1, T3, T4, R>;
54
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, plc2: _Placeholder, arg3: T3): _Function3<T1, T2, T4, R>;
55
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: _Placeholder, arg3: T3): _Function2<T2, T4, R>;
56
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2, arg3: T3): _Function2<T1, T4, R>;
57
+ <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>;
58
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: _Placeholder, plc3: _Placeholder, arg4: T4): _Function2<T2, T3, R>;
59
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2, plc3: _Placeholder, arg4: T4): _Function2<T1, T3, R>;
60
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, arg2: T2, plc3: _Placeholder, arg4: T4): _Function1<T3, R>;
61
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, plc2: _Placeholder, arg3: T3, arg4: T4): _Function2<T1, T2, R>;
62
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, arg1: T1, plc2: _Placeholder, arg3: T3, arg4: T4): _Function1<T2, R>;
63
+ <T1, T2, T3, T4, R>(func: _Function4<T1, T2, T3, T4, R>, plc1: _Placeholder, arg2: T2, arg3: T3, arg4: T4): _Function1<T1, R>;
64
+ <TS extends any[], R>(func: (...ts: TS) => R): (...ts: TS) => R;
65
+ <TS extends any[], T1, R>(func: (t1: T1, ...ts: TS) => R, arg1: T1): (...ts: TS) => R;
66
+ <TS extends any[], T1, T2, R>(func: (t1: T1, t2: T2, ...ts: TS) => R, t1: T1, t2: T2): (...ts: TS) => R;
67
+ <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;
68
+ <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;
69
+ /** Marks a parameter of the function that is left open; `_partial.placeholder` is its only value. */
70
+ placeholder: _Placeholder;
71
+ };
72
+ /**
73
+ * Creates a function that invokes `func` with `partials` prepended to the arguments it receives. This method
74
+ * is like `bind` except it does **not** alter the `this` binding. The `_partial.placeholder` value may be
75
+ * used as a placeholder for partially applied arguments: each placeholder takes the next argument of the
76
+ * call, the remaining call arguments are appended. Calling the result with `new` constructs `func`.
77
+ *
78
+ * **Note:** This method doesn't set the "length" property of partially applied functions.
79
+ *
80
+ * @param func - The function to partially apply arguments to.
81
+ * @param partials - The arguments to be partially applied.
82
+ * @returns Returns the new partially applied function.
83
+ * @internal
84
+ */
85
+ export declare const _partial: _Partial;
86
+ export {};
87
+ //# sourceMappingURL=partial.d.ts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E,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,CAAC,EACtD,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,GACP,CAAC,GAAG,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACpB,qGAAqG;IACrG,WAAW,EAAE,YAAY,CAAC;CAC7B,CAAC;AAIF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,EAAE,QAuBtB,CAAC"}
@@ -0,0 +1,30 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /**
3
+ * Creates a function that invokes `func` with `partials` prepended to the arguments it receives. This method
4
+ * is like `bind` except it does **not** alter the `this` binding. The `_partial.placeholder` value may be
5
+ * used as a placeholder for partially applied arguments: each placeholder takes the next argument of the
6
+ * call, the remaining call arguments are appended. Calling the result with `new` constructs `func`.
7
+ *
8
+ * **Note:** This method doesn't set the "length" property of partially applied functions.
9
+ *
10
+ * @param func - The function to partially apply arguments to.
11
+ * @param partials - The arguments to be partially applied.
12
+ * @returns Returns the new partially applied function.
13
+ * @internal
14
+ */
15
+ export const _partial = Object.assign(function partial(func, ...partials) {
16
+ if (typeof func !== "function") {
17
+ throw new TypeError("Expected a function");
18
+ }
19
+ // placeholders are resolved when the function is created, as lodash does
20
+ const holders = partials.map((value) => value === _partial.placeholder);
21
+ return function wrapper(...args) {
22
+ let index = 0;
23
+ const composed = partials.map((value, position) => (holders[position] ? args[index++] : value));
24
+ composed.push(...args.slice(index));
25
+ if (new.target) {
26
+ return Reflect.construct(func, composed);
27
+ }
28
+ return func.apply(this, composed);
29
+ };
30
+ }, { placeholder: {} });
@@ -0,0 +1,21 @@
1
+ import type { _Dictionary, _NumericDictionary, _PartialObject, _ValueKeyIteratee } from "./types.js";
2
+ /**
3
+ * Creates an object composed of the own and inherited enumerable string and symbol keyed properties of
4
+ * `object` that `predicate` returns truthy for. The predicate is invoked with two arguments: (value, key).
5
+ * Picked values are kept by reference.
6
+ *
7
+ * @param object - The source object.
8
+ * @param predicate - The function invoked per property, or an iteratee shorthand. Defaults to identity.
9
+ * @returns Returns the new object.
10
+ * @internal
11
+ */
12
+ export declare function _pickBy<T>(object: _Dictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _Dictionary<T>;
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare function _pickBy<T>(object: _NumericDictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _NumericDictionary<T>;
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare function _pickBy<T extends object>(object: T | null | undefined, predicate?: _ValueKeyIteratee<T[keyof T]>): _PartialObject<T>;
21
+ //# sourceMappingURL=pickBy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pickBy.d.ts","sourceRoot":"","sources":["../../src/_/pickBy.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAErG;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACrB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACzC,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GACjC,WAAW,CAAC,CAAC,CAAC,CAAC;AAClB;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACrB,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAChD,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GACjC,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACzB;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EACpC,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC5B,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAC1C,cAAc,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,36 @@
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 { _baseIteratee } from "./_baseIteratee.js";
33
+ import { _basePickBy } from "./_basePickBy.js";
34
+ export function _pickBy(object, predicate) {
35
+ return _basePickBy(object, _baseIteratee(predicate));
36
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Converts `value` to a number. Symbols become `NaN`, objects are converted through `valueOf`, and strings
3
+ * are trimmed and may use the `0b`, `0o` and `0x` prefixes; a signed hexadecimal string becomes `NaN`.
4
+ * A bigint throws, as the numeric coercion does.
5
+ *
6
+ * @param value - The value to process.
7
+ * @returns Returns the number.
8
+ * @internal
9
+ */
10
+ export declare function _toNumber(value: unknown): number;
11
+ //# sourceMappingURL=toNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toNumber.d.ts","sourceRoot":"","sources":["../../src/_/toNumber.ts"],"names":[],"mappings":"AA6CA;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CA2BhD"}
@@ -0,0 +1,69 @@
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 { _isObject } from "./isObject.js";
33
+ import { _isSymbol } from "./isSymbol.js";
34
+ /** Used to detect bad signed hexadecimal string values. */
35
+ const RE_IS_BAD_HEX = /^[-+]0x[0-9a-f]+$/i;
36
+ /** Used to detect binary string values. */
37
+ const RE_IS_BINARY = /^0b[01]+$/i;
38
+ /** Used to detect octal string values. */
39
+ const RE_IS_OCTAL = /^0o[0-7]+$/i;
40
+ /**
41
+ * Converts `value` to a number. Symbols become `NaN`, objects are converted through `valueOf`, and strings
42
+ * are trimmed and may use the `0b`, `0o` and `0x` prefixes; a signed hexadecimal string becomes `NaN`.
43
+ * A bigint throws, as the numeric coercion does.
44
+ *
45
+ * @param value - The value to process.
46
+ * @returns Returns the number.
47
+ * @internal
48
+ */
49
+ export function _toNumber(value) {
50
+ if (typeof value === "number") {
51
+ return value;
52
+ }
53
+ if (_isSymbol(value)) {
54
+ return NaN;
55
+ }
56
+ if (_isObject(value)) {
57
+ const other = typeof value.valueOf === "function" ? value.valueOf() : value;
58
+ value = _isObject(other) ? String(other) : other;
59
+ }
60
+ if (typeof value !== "string") {
61
+ return value === 0 ? value : +value;
62
+ }
63
+ const trimmed = value.trim();
64
+ const isBinary = RE_IS_BINARY.test(trimmed);
65
+ if (isBinary || RE_IS_OCTAL.test(trimmed)) {
66
+ return parseInt(trimmed.slice(2), isBinary ? 2 : 8);
67
+ }
68
+ return RE_IS_BAD_HEX.test(trimmed) ? NaN : +trimmed;
69
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Converts `value` to a string. An empty string is returned for `null` and `undefined` values. The sign of
3
+ * `-0` is preserved, symbols are converted through their `toString`, and arrays are converted element by
4
+ * element and joined with commas.
5
+ *
6
+ * @param value - The value to convert.
7
+ * @returns Returns the converted string.
8
+ * @internal
9
+ */
10
+ export declare function _toString(value: unknown): string;
11
+ //# sourceMappingURL=toString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toString.d.ts","sourceRoot":"","sources":["../../src/_/toString.ts"],"names":[],"mappings":"AAmCA;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEhD"}