@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.
- package/LICENSE +1 -1
- package/NOTICE +4 -2
- package/esm/_/_baseDifference.d.ts +15 -0
- package/esm/_/_baseDifference.d.ts.map +1 -0
- package/esm/_/_baseDifference.js +68 -0
- 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/_/clamp.d.ts +17 -0
- package/esm/_/clamp.d.ts.map +1 -0
- package/esm/_/clamp.js +56 -0
- 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 +46 -0
- package/esm/_/differenceBy.d.ts +39 -0
- package/esm/_/differenceBy.d.ts.map +1 -0
- package/esm/_/{_createAggregator.js → differenceBy.js} +7 -17
- 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/_/omitBy.js +37 -0
- 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/_/toNumber.d.ts +11 -0
- package/esm/_/toNumber.d.ts.map +1 -0
- package/esm/_/toNumber.js +69 -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/_/update.d.ts +17 -0
- package/esm/_/update.d.ts.map +1 -0
- package/esm/_/update.js +55 -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 +17 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +16 -0
- package/esm/util.d.ts +377 -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/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) 2020-
|
|
1
|
+
Copyright (c) 2020-2026 GoodData Corporation
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
package/NOTICE
CHANGED
|
@@ -3,9 +3,11 @@ Copyright (c) 2017-2026 GoodData Corporation
|
|
|
3
3
|
This product includes a number of subcomponents with separate copyright notices and license terms below. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license. This GoodData project does not necessarily use all the open source software referred to below and may also only use portions of a given package. With respect to the open source software listed in this document, if you (i) have any questions, (ii) wish to receive source code for packages under licenses that require their source code to be made available (such as the GNU Lesser Public License), or (iii) discover any errors or omissions in the licensing information provided, please contact us at legal@gooddata.com. Please identify in source code requests: (i) the packages for which you are requesting corresponding source, (ii) the GoodData product (including any available version) with which the package was provided; and (iii) an email address (if available) or postal address at which GoodData may contact you.
|
|
4
4
|
|
|
5
5
|
--------------------------------------------------------------------------------
|
|
6
|
-
Attribution Notice for @gooddata/util (11.68.0-alpha.
|
|
6
|
+
Attribution Notice for @gooddata/util (11.68.0-alpha.8)
|
|
7
7
|
Package License: MIT
|
|
8
8
|
Own License File: LICENSE
|
|
9
|
+
Date generated: 2026-11-10
|
|
10
|
+
Revision ID: dde1512be72244df8ad5c996c9bce5ff623b3b50
|
|
9
11
|
|
|
10
12
|
This notice lists the components that @gooddata/util depends on, directly or through other
|
|
11
13
|
packages, with the license and copyright information reported for each of them.
|
|
@@ -115,7 +117,7 @@ terms above.
|
|
|
115
117
|
|
|
116
118
|
* Copyrights *
|
|
117
119
|
MIT
|
|
118
|
-
- Copyright (c)
|
|
120
|
+
- Copyright (c) OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
119
121
|
|
|
120
122
|
--------------------------------------------------------------------------------
|
|
121
123
|
Package Title: ts-invariant (0.10.3)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { _List } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* The base implementation of `_difference` and `_differenceBy`: creates an array of the `array` values whose
|
|
4
|
+
* criteria are not among the criteria of the `values` lists, compared with SameValueZero. The order and
|
|
5
|
+
* references of result values are determined by the first array, with `-0` normalised to `0`. Only array-like
|
|
6
|
+
* objects are inspected: any other `array` yields an empty array and any other entry of `values` is skipped.
|
|
7
|
+
*
|
|
8
|
+
* @param array - The array to inspect.
|
|
9
|
+
* @param values - The lists of values to exclude.
|
|
10
|
+
* @param iteratee - The iteratee invoked per element to produce its criterion. Defaults to identity.
|
|
11
|
+
* @returns Returns the new array of filtered values.
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function _baseDifference<T>(array: _List<T> | null | undefined, values: unknown[], iteratee?: (value: unknown) => unknown): T[];
|
|
15
|
+
//# sourceMappingURL=_baseDifference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_baseDifference.d.ts","sourceRoot":"","sources":["../../src/_/_baseDifference.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAC7B,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAClC,MAAM,EAAE,OAAO,EAAE,EACjB,QAAQ,GAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAA0B,GACzD,CAAC,EAAE,CA6BL"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
/**
|
|
35
|
+
* The base implementation of `_difference` and `_differenceBy`: creates an array of the `array` values whose
|
|
36
|
+
* criteria are not among the criteria of the `values` lists, compared with SameValueZero. The order and
|
|
37
|
+
* references of result values are determined by the first array, with `-0` normalised to `0`. Only array-like
|
|
38
|
+
* objects are inspected: any other `array` yields an empty array and any other entry of `values` is skipped.
|
|
39
|
+
*
|
|
40
|
+
* @param array - The array to inspect.
|
|
41
|
+
* @param values - The lists of values to exclude.
|
|
42
|
+
* @param iteratee - The iteratee invoked per element to produce its criterion. Defaults to identity.
|
|
43
|
+
* @returns Returns the new array of filtered values.
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export function _baseDifference(array, values, iteratee = (value) => value) {
|
|
47
|
+
if (!_isObjectLike(array) || !_isArrayLike(array)) {
|
|
48
|
+
return [];
|
|
49
|
+
}
|
|
50
|
+
const excluded = new Set();
|
|
51
|
+
for (const list of values) {
|
|
52
|
+
if (!_isObjectLike(list) || !_isArrayLike(list)) {
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
for (let index = 0; index < list.length; index++) {
|
|
56
|
+
excluded.add(iteratee(list[index]));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
const result = [];
|
|
60
|
+
for (let index = 0; index < array.length; index++) {
|
|
61
|
+
const value = array[index];
|
|
62
|
+
if (!excluded.has(iteratee(value))) {
|
|
63
|
+
// lodash normalises `-0` to `+0` in the result
|
|
64
|
+
result.push(value === 0 ? 0 : value);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type _AnyRecord = Record<PropertyKey, unknown>;
|
|
2
|
+
/**
|
|
3
|
+
* The base implementation of `_pickBy`: creates an object composed of the own and inherited enumerable
|
|
4
|
+
* string and symbol keyed properties of `object` that `predicate` returns truthy for. The predicate is
|
|
5
|
+
* 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.
|
|
9
|
+
* @returns Returns the new object.
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare function _basePickBy(object: unknown, predicate: (value: unknown, key: string | symbol) => unknown): _AnyRecord;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=_basePickBy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_basePickBy.d.ts","sourceRoot":"","sources":["../../src/_/_basePickBy.ts"],"names":[],"mappings":"AAmCA,KAAK,UAAU,GAAG,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAE/C;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACvB,MAAM,EAAE,OAAO,EACf,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,KAAK,OAAO,GAC7D,UAAU,CAmBZ"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { _getAllKeysIn } from "./_getAllKeysIn.js";
|
|
33
|
+
/**
|
|
34
|
+
* The base implementation of `_pickBy`: creates an object composed of the own and inherited enumerable
|
|
35
|
+
* string and symbol keyed properties of `object` that `predicate` returns truthy for. The predicate is
|
|
36
|
+
* invoked with two arguments: (value, key). Picked values are kept by reference.
|
|
37
|
+
*
|
|
38
|
+
* @param object - The source object.
|
|
39
|
+
* @param predicate - The function invoked per property.
|
|
40
|
+
* @returns Returns the new object.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export function _basePickBy(object, predicate) {
|
|
44
|
+
const result = {};
|
|
45
|
+
if (object == null) {
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
const source = Object(object);
|
|
49
|
+
for (const key of _getAllKeysIn(source)) {
|
|
50
|
+
const value = source[key];
|
|
51
|
+
// keys that would change the prototype of the result are never written, as in lodash
|
|
52
|
+
if (predicate(value, key) && key !== "__proto__" && key !== "constructor" && key !== "prototype") {
|
|
53
|
+
result[key] = value;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a function like `_camelCase`: the string is deburred, stripped of apostrophes and split into words
|
|
3
|
+
* (on separators, case changes, digits and Unicode boundaries, as lodash does), which `callback` then folds
|
|
4
|
+
* into the result, receiving the result so far, the word and its index.
|
|
5
|
+
*
|
|
6
|
+
* @param callback - The function to combine each word.
|
|
7
|
+
* @returns Returns the new compounder function.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare function _createCompounder(callback: (result: string, word: string, index: number) => string): (string?: string) => string;
|
|
11
|
+
//# sourceMappingURL=_createCompounder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_createCompounder.d.ts","sourceRoot":"","sources":["../../src/_/_createCompounder.ts"],"names":[],"mappings":"AAuCA;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAClE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,CAE7B"}
|
|
@@ -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,22 +29,19 @@
|
|
|
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 { _deburr } from "./deburr.js";
|
|
33
|
+
import { _words } from "./words.js";
|
|
34
|
+
/** Used to match apostrophes. */
|
|
35
|
+
const RE_APOS = /['’]/g;
|
|
33
36
|
/**
|
|
34
|
-
*
|
|
37
|
+
* Creates a function like `_camelCase`: the string is deburred, stripped of apostrophes and split into words
|
|
38
|
+
* (on separators, case changes, digits and Unicode boundaries, as lodash does), which `callback` then folds
|
|
39
|
+
* into the result, receiving the result so far, the word and its index.
|
|
35
40
|
*
|
|
36
|
-
* @
|
|
37
|
-
* @
|
|
38
|
-
* @
|
|
39
|
-
* @param {Function} iteratee The iteratee to transform keys.
|
|
40
|
-
* @param {Object} accumulator The initial aggregated object.
|
|
41
|
-
* @returns {Function} Returns `accumulator`.
|
|
41
|
+
* @param callback - The function to combine each word.
|
|
42
|
+
* @returns Returns the new compounder function.
|
|
43
|
+
* @internal
|
|
42
44
|
*/
|
|
43
|
-
export function
|
|
44
|
-
|
|
45
|
-
const length = array == null ? 0 : array.length;
|
|
46
|
-
while (++index < length) {
|
|
47
|
-
const value = array[index];
|
|
48
|
-
setter(accumulator, value, iteratee(value), array);
|
|
49
|
-
}
|
|
50
|
-
return accumulator;
|
|
45
|
+
export function _createCompounder(callback) {
|
|
46
|
+
return (string) => _words(_deburr(string).replace(RE_APOS, "")).reduce(callback, "");
|
|
51
47
|
}
|
package/esm/_/camelCase.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Converts `string` to camel case: the
|
|
3
|
-
*
|
|
4
|
-
* capitalised.
|
|
2
|
+
* Converts `string` to camel case: the words of the string, lower-cased, with every word but the first
|
|
3
|
+
* capitalised, joined together.
|
|
5
4
|
*
|
|
6
5
|
* @param string - The string to convert.
|
|
7
6
|
* @returns Returns the camel cased string.
|
|
8
7
|
* @internal
|
|
9
8
|
*/
|
|
10
|
-
export declare
|
|
9
|
+
export declare const _camelCase: (string?: string) => string;
|
|
11
10
|
//# sourceMappingURL=camelCase.d.ts.map
|
package/esm/_/camelCase.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"camelCase.d.ts","sourceRoot":"","sources":["../../src/_/camelCase.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"camelCase.d.ts","sourceRoot":"","sources":["../../src/_/camelCase.ts"],"names":[],"mappings":"AAoCA;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAI5C,CAAC"}
|
package/esm/_/camelCase.js
CHANGED
|
@@ -29,28 +29,17 @@
|
|
|
29
29
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
30
30
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
31
31
|
*/
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { _words } from "./words.js";
|
|
35
|
-
/** Used to match apostrophes. */
|
|
36
|
-
const RE_APOS = /['’]/g;
|
|
32
|
+
import { _createCompounder } from "./_createCompounder.js";
|
|
33
|
+
import { _upperFirst } from "./upperFirst.js";
|
|
37
34
|
/**
|
|
38
|
-
* Converts `string` to camel case: the
|
|
39
|
-
*
|
|
40
|
-
* capitalised.
|
|
35
|
+
* Converts `string` to camel case: the words of the string, lower-cased, with every word but the first
|
|
36
|
+
* capitalised, joined together.
|
|
41
37
|
*
|
|
42
38
|
* @param string - The string to convert.
|
|
43
39
|
* @returns Returns the camel cased string.
|
|
44
40
|
* @internal
|
|
45
41
|
*/
|
|
46
|
-
export
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}, "");
|
|
51
|
-
}
|
|
52
|
-
/** Upper-cases the first symbol of `string`, keeping a surrogate pair or joined emoji sequence whole. */
|
|
53
|
-
function _upperFirst(string) {
|
|
54
|
-
const first = (_hasUnicode(string) ? _unicodeToArray(string)[0] : string.charAt(0)) ?? "";
|
|
55
|
-
return first.toUpperCase() + string.slice(first.length);
|
|
56
|
-
}
|
|
42
|
+
export const _camelCase = _createCompounder((result, word, index) => {
|
|
43
|
+
const lower = word.toLowerCase();
|
|
44
|
+
return result + (index ? _upperFirst(lower) : lower);
|
|
45
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts the first character of `string` to upper case and the remaining to lower case.
|
|
3
|
+
*
|
|
4
|
+
* @param string - The string to capitalize.
|
|
5
|
+
* @returns Returns the capitalized string.
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare function _capitalize(string?: string): string;
|
|
9
|
+
//# sourceMappingURL=capitalize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capitalize.d.ts","sourceRoot":"","sources":["../../src/_/capitalize.ts"],"names":[],"mappings":"AAoCA;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEnD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
1
2
|
/*!
|
|
2
3
|
* Portions of this file are derived from Lodash.
|
|
3
4
|
* https://github.com/lodash/lodash
|
|
@@ -28,15 +29,15 @@
|
|
|
28
29
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
29
30
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30
31
|
*/
|
|
32
|
+
import { _toString } from "./toString.js";
|
|
33
|
+
import { _upperFirst } from "./upperFirst.js";
|
|
31
34
|
/**
|
|
32
|
-
*
|
|
35
|
+
* Converts the first character of `string` to upper case and the remaining to lower case.
|
|
33
36
|
*
|
|
34
|
-
* @
|
|
35
|
-
* @
|
|
36
|
-
* @
|
|
37
|
-
* @param {Function} iteratee The iteratee to transform keys.
|
|
38
|
-
* @param {Object} accumulator The initial aggregated object.
|
|
39
|
-
* @returns {Function} Returns `accumulator`.
|
|
37
|
+
* @param string - The string to capitalize.
|
|
38
|
+
* @returns Returns the capitalized string.
|
|
39
|
+
* @internal
|
|
40
40
|
*/
|
|
41
|
-
export
|
|
42
|
-
|
|
41
|
+
export function _capitalize(string) {
|
|
42
|
+
return _upperFirst(_toString(string).toLowerCase());
|
|
43
|
+
}
|
package/esm/_/clamp.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clamps `number` within the inclusive `lower` and `upper` bounds. With two arguments the second one is the
|
|
3
|
+
* upper bound. The upper bound is applied first, bounds that convert to `NaN` count as `0`, an `undefined`
|
|
4
|
+
* bound is skipped, and a `NaN` number is returned as is.
|
|
5
|
+
*
|
|
6
|
+
* @param number - The number to clamp.
|
|
7
|
+
* @param lower - The lower bound.
|
|
8
|
+
* @param upper - The upper bound.
|
|
9
|
+
* @returns Returns the clamped number.
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare function _clamp(number: number, lower: number, upper: number): number;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare function _clamp(number: number, upper: number): number;
|
|
17
|
+
//# sourceMappingURL=clamp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clamp.d.ts","sourceRoot":"","sources":["../../src/_/clamp.ts"],"names":[],"mappings":"AAmCA;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;AAC7E;;GAEG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC"}
|
package/esm/_/clamp.js
ADDED
|
@@ -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 { _toNumber } from "./toNumber.js";
|
|
33
|
+
export function _clamp(number, lower, upper) {
|
|
34
|
+
if (upper === undefined) {
|
|
35
|
+
upper = lower;
|
|
36
|
+
lower = undefined;
|
|
37
|
+
}
|
|
38
|
+
const max = upper === undefined ? undefined : _toBound(upper);
|
|
39
|
+
const min = lower === undefined ? undefined : _toBound(lower);
|
|
40
|
+
let result = _toNumber(number);
|
|
41
|
+
if (result !== result) {
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
if (max !== undefined) {
|
|
45
|
+
result = result <= max ? result : max;
|
|
46
|
+
}
|
|
47
|
+
if (min !== undefined) {
|
|
48
|
+
result = result >= min ? result : min;
|
|
49
|
+
}
|
|
50
|
+
return result;
|
|
51
|
+
}
|
|
52
|
+
/** Converts a bound to a number, `NaN` counting as `0`. */
|
|
53
|
+
function _toBound(bound) {
|
|
54
|
+
const converted = _toNumber(bound);
|
|
55
|
+
return converted === converted ? converted : 0;
|
|
56
|
+
}
|
package/esm/_/deburr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deburr.d.ts","sourceRoot":"","sources":["../../src/_/deburr.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deburr.d.ts","sourceRoot":"","sources":["../../src/_/deburr.ts"],"names":[],"mappings":"AA6OA;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAI/C"}
|
package/esm/_/deburr.js
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
30
30
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
31
31
|
*/
|
|
32
|
+
import { _toString } from "./toString.js";
|
|
32
33
|
/** Used to match Latin Unicode letters (excluding mathematical operators). */
|
|
33
34
|
const RE_LATIN = /[\xc0-\xd6\xd8-\xf6\xf8-\xffĀ-ſ]/g;
|
|
34
35
|
/** Used to match combining diacritical marks and combining diacritical marks for symbols. */
|
|
@@ -237,6 +238,6 @@ const DEBURRED_LETTERS = {
|
|
|
237
238
|
* @internal
|
|
238
239
|
*/
|
|
239
240
|
export function _deburr(string) {
|
|
240
|
-
const text =
|
|
241
|
+
const text = _toString(string);
|
|
241
242
|
return text.replace(RE_LATIN, (letter) => DEBURRED_LETTERS[letter] ?? letter).replace(RE_COMBO_MARK, "");
|
|
242
243
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { _List } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Creates an array of `array` values not included in the other given arrays using SameValueZero for equality
|
|
4
|
+
* comparisons. The order and references of result values are determined by the first array. Only array-like
|
|
5
|
+
* objects are inspected: any other first argument yields an empty array and any other exclusion argument is
|
|
6
|
+
* skipped.
|
|
7
|
+
*
|
|
8
|
+
* @param array - The array to inspect.
|
|
9
|
+
* @param values - The arrays of values to exclude.
|
|
10
|
+
* @returns Returns the new array of filtered values.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare function _difference<T>(array: _List<T> | null | undefined, ...values: _List<T>[]): T[];
|
|
14
|
+
//# sourceMappingURL=difference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"difference.d.ts","sourceRoot":"","sources":["../../src/_/difference.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAE7F"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { _baseDifference } from "./_baseDifference.js";
|
|
33
|
+
/**
|
|
34
|
+
* Creates an array of `array` values not included in the other given arrays using SameValueZero for equality
|
|
35
|
+
* comparisons. The order and references of result values are determined by the first array. Only array-like
|
|
36
|
+
* objects are inspected: any other first argument yields an empty array and any other exclusion argument is
|
|
37
|
+
* skipped.
|
|
38
|
+
*
|
|
39
|
+
* @param array - The array to inspect.
|
|
40
|
+
* @param values - The arrays of values to exclude.
|
|
41
|
+
* @returns Returns the new array of filtered values.
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
export function _difference(array, ...values) {
|
|
45
|
+
return _baseDifference(array, values);
|
|
46
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { _List, _ValueIteratee } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* This method is like `_difference` except that it accepts `iteratee` which is invoked for each element of
|
|
4
|
+
* `array` and `values` to generate the criterion by which they're compared. The order and references of
|
|
5
|
+
* result values are determined by the first array. The iteratee is invoked with one argument: (value).
|
|
6
|
+
* The iteratee is the last argument unless that argument is array-like, in which case it is one more list of
|
|
7
|
+
* values and the elements are compared as they are.
|
|
8
|
+
*
|
|
9
|
+
* @param array - The array to inspect.
|
|
10
|
+
* @param values - The values to exclude, followed by the iteratee.
|
|
11
|
+
* @returns Returns the new array of filtered values.
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function _differenceBy<T1, T2>(array: _List<T1> | null | undefined, values: _List<T2>, iteratee: _ValueIteratee<T1 | T2>): T1[];
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare function _differenceBy<T1, T2, T3>(array: _List<T1> | null | undefined, values1: _List<T2>, values2: _List<T3>, iteratee: _ValueIteratee<T1 | T2 | T3>): T1[];
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare function _differenceBy<T1, T2, T3, T4>(array: _List<T1> | null | undefined, values1: _List<T2>, values2: _List<T3>, values3: _List<T4>, iteratee: _ValueIteratee<T1 | T2 | T3 | T4>): T1[];
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export declare function _differenceBy<T1, T2, T3, T4, T5>(array: _List<T1> | null | undefined, values1: _List<T2>, values2: _List<T3>, values3: _List<T4>, values4: _List<T5>, iteratee: _ValueIteratee<T1 | T2 | T3 | T4 | T5>): T1[];
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare function _differenceBy<T1, T2, T3, T4, T5, T6>(array: _List<T1> | null | undefined, values1: _List<T2>, values2: _List<T3>, values3: _List<T4>, values4: _List<T5>, values5: _List<T6>, iteratee: _ValueIteratee<T1 | T2 | T3 | T4 | T5 | T6>): T1[];
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export declare function _differenceBy<T1, T2, T3, T4, T5, T6, T7>(array: _List<T1> | null | undefined, values1: _List<T2>, values2: _List<T3>, values3: _List<T4>, values4: _List<T5>, values5: _List<T6>, ...values: (_List<T7> | _ValueIteratee<T1 | T2 | T3 | T4 | T5 | T6 | T7>)[]): T1[];
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export declare function _differenceBy<T>(array: _List<T> | null | undefined, ...values: _List<T>[]): T[];
|
|
39
|
+
//# sourceMappingURL=differenceBy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"differenceBy.d.ts","sourceRoot":"","sources":["../../src/_/differenceBy.ts"],"names":[],"mappings":"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"}
|
|
@@ -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,12 @@
|
|
|
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
|
*/
|
|
33
|
-
import {
|
|
34
|
-
import { _baseAggregator } from "./_baseAggregator.js";
|
|
32
|
+
import { _baseDifference } from "./_baseDifference.js";
|
|
35
33
|
import { _baseIteratee } from "./_baseIteratee.js";
|
|
36
|
-
import {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
* @param {Function} [initializer] The accumulator object initializer.
|
|
43
|
-
* @returns {Function} Returns the new aggregator function.
|
|
44
|
-
*/
|
|
45
|
-
export function _createAggregator(setter, initializer) {
|
|
46
|
-
return function (collection, iteratee) {
|
|
47
|
-
const func = _isArray(collection) ? _arrayAggregator : _baseAggregator, accumulator = initializer ? initializer() : {};
|
|
48
|
-
return func(collection, setter, _baseIteratee(iteratee), accumulator);
|
|
49
|
-
};
|
|
34
|
+
import { _isArrayLike } from "./isArrayLike.js";
|
|
35
|
+
import { _isObjectLike } from "./isObjectLike.js";
|
|
36
|
+
export function _differenceBy(array, ...values) {
|
|
37
|
+
const last = values[values.length - 1];
|
|
38
|
+
const iteratee = _isObjectLike(last) && _isArrayLike(last) ? undefined : last;
|
|
39
|
+
return _baseDifference(array, values, _baseIteratee(iteratee));
|
|
50
40
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts the characters `&`, `<`, `>`, `"` and `'` in `string` to their corresponding HTML entities.
|
|
3
|
+
*
|
|
4
|
+
* **Note:** No other characters are escaped. Though `>` is escaped for symmetry, characters like `>` and `/`
|
|
5
|
+
* don't need escaping in HTML and have no special meaning unless they're part of a tag or unquoted attribute
|
|
6
|
+
* value. When working with HTML you should always quote attribute values to reduce XSS vectors.
|
|
7
|
+
*
|
|
8
|
+
* @param string - The string to escape.
|
|
9
|
+
* @returns Returns the escaped string.
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare function _escape(string?: string): string;
|
|
13
|
+
//# sourceMappingURL=escape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../src/_/escape.ts"],"names":[],"mappings":"AA+CA;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAE/C"}
|