@gooddata/sdk-ui-geo 11.68.0-alpha.8 → 11.68.0
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/NOTICE +19 -19
- package/esm/GeoPushpinChart.d.ts.map +1 -1
- package/esm/GeoPushpinChart.js +2 -3
- package/esm/core/geoChart/colorStrategy/geoChart.d.ts.map +1 -1
- package/esm/core/geoChart/colorStrategy/geoChart.js +3 -3
- package/esm/core/geoChart/geoChartColor.d.ts.map +1 -1
- package/esm/core/geoChart/geoChartColor.js +2 -3
- package/esm/core/geoChart/helpers/geoChart/colors.d.ts.map +1 -1
- package/esm/core/geoChart/helpers/geoChart/colors.js +3 -3
- package/esm/core/geoChart/helpers/geoChart/drilling.d.ts.map +1 -1
- package/esm/core/geoChart/helpers/geoChart/drilling.js +3 -2
- package/esm/next/layers/area/coloring/colorStrategy.d.ts.map +1 -1
- package/esm/next/layers/area/coloring/colorStrategy.js +3 -3
- package/esm/next/layers/pushpin/coloring/colorStrategy.d.ts.map +1 -1
- package/esm/next/layers/pushpin/coloring/colorStrategy.js +2 -2
- package/esm/next/layers/pushpin/coloring/palette.d.ts.map +1 -1
- package/esm/next/layers/pushpin/coloring/palette.js +3 -4
- package/package.json +12 -12
package/NOTICE
CHANGED
|
@@ -3,11 +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/sdk-ui-geo (11.68.0
|
|
6
|
+
Attribution Notice for @gooddata/sdk-ui-geo (11.68.0)
|
|
7
7
|
Package License: LicenseRef-LICENSE
|
|
8
8
|
Own License File: LICENSE
|
|
9
|
-
Date generated: 2026-11-
|
|
10
|
-
Revision ID:
|
|
9
|
+
Date generated: 2026-11-12
|
|
10
|
+
Revision ID: c56f4e258b22c698a7b4595c97b12a469452f25a
|
|
11
11
|
|
|
12
12
|
This notice lists the components that @gooddata/sdk-ui-geo depends on, directly or through other
|
|
13
13
|
packages, with the license and copyright information reported for each of them.
|
|
@@ -19,14 +19,14 @@ change those terms.
|
|
|
19
19
|
Dependencies
|
|
20
20
|
|
|
21
21
|
Local GoodData SDK components
|
|
22
|
-
- @gooddata/sdk-backend-spi (11.68.0
|
|
23
|
-
- @gooddata/sdk-code-schemas (11.68.0
|
|
24
|
-
- @gooddata/sdk-model (11.68.0
|
|
25
|
-
- @gooddata/sdk-ui (11.68.0
|
|
26
|
-
- @gooddata/sdk-ui-kit (11.68.0
|
|
27
|
-
- @gooddata/sdk-ui-theme-provider (11.68.0
|
|
28
|
-
- @gooddata/sdk-ui-vis-commons (11.68.0
|
|
29
|
-
- @gooddata/util (11.68.0
|
|
22
|
+
- @gooddata/sdk-backend-spi (11.68.0) [MIT] — Direct
|
|
23
|
+
- @gooddata/sdk-code-schemas (11.68.0) [MIT] — Transitive
|
|
24
|
+
- @gooddata/sdk-model (11.68.0) [MIT] — Direct
|
|
25
|
+
- @gooddata/sdk-ui (11.68.0) [MIT] — Direct
|
|
26
|
+
- @gooddata/sdk-ui-kit (11.68.0) [MIT] — Direct
|
|
27
|
+
- @gooddata/sdk-ui-theme-provider (11.68.0) [MIT] — Direct
|
|
28
|
+
- @gooddata/sdk-ui-vis-commons (11.68.0) [MIT] — Direct
|
|
29
|
+
- @gooddata/util (11.68.0) [MIT] — Direct
|
|
30
30
|
|
|
31
31
|
External components
|
|
32
32
|
- @aaronhayes/react-use-hubspot-form (2.1.2) [MIT] — Transitive
|
|
@@ -342,7 +342,7 @@ Local GoodData SDK components
|
|
|
342
342
|
================================================================================
|
|
343
343
|
|
|
344
344
|
--------------------------------------------------------------------------------
|
|
345
|
-
Package Title: @gooddata/sdk-backend-spi (11.68.0
|
|
345
|
+
Package Title: @gooddata/sdk-backend-spi (11.68.0)
|
|
346
346
|
Package Source: Local workspace
|
|
347
347
|
Package Depth: Direct
|
|
348
348
|
--------------------------------------------------------------------------------
|
|
@@ -360,7 +360,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
360
360
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
361
361
|
|
|
362
362
|
--------------------------------------------------------------------------------
|
|
363
|
-
Package Title: @gooddata/sdk-code-schemas (11.68.0
|
|
363
|
+
Package Title: @gooddata/sdk-code-schemas (11.68.0)
|
|
364
364
|
Package Source: Local workspace
|
|
365
365
|
Package Depth: Transitive
|
|
366
366
|
--------------------------------------------------------------------------------
|
|
@@ -390,7 +390,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
390
390
|
SOFTWARE.
|
|
391
391
|
|
|
392
392
|
--------------------------------------------------------------------------------
|
|
393
|
-
Package Title: @gooddata/sdk-model (11.68.0
|
|
393
|
+
Package Title: @gooddata/sdk-model (11.68.0)
|
|
394
394
|
Package Source: Local workspace
|
|
395
395
|
Package Depth: Direct
|
|
396
396
|
--------------------------------------------------------------------------------
|
|
@@ -408,7 +408,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
408
408
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
409
409
|
|
|
410
410
|
--------------------------------------------------------------------------------
|
|
411
|
-
Package Title: @gooddata/sdk-ui (11.68.0
|
|
411
|
+
Package Title: @gooddata/sdk-ui (11.68.0)
|
|
412
412
|
Package Source: Local workspace
|
|
413
413
|
Package Depth: Direct
|
|
414
414
|
--------------------------------------------------------------------------------
|
|
@@ -426,7 +426,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
426
426
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
427
427
|
|
|
428
428
|
--------------------------------------------------------------------------------
|
|
429
|
-
Package Title: @gooddata/sdk-ui-kit (11.68.0
|
|
429
|
+
Package Title: @gooddata/sdk-ui-kit (11.68.0)
|
|
430
430
|
Package Source: Local workspace
|
|
431
431
|
Package Depth: Direct
|
|
432
432
|
--------------------------------------------------------------------------------
|
|
@@ -444,7 +444,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
444
444
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
445
445
|
|
|
446
446
|
--------------------------------------------------------------------------------
|
|
447
|
-
Package Title: @gooddata/sdk-ui-theme-provider (11.68.0
|
|
447
|
+
Package Title: @gooddata/sdk-ui-theme-provider (11.68.0)
|
|
448
448
|
Package Source: Local workspace
|
|
449
449
|
Package Depth: Direct
|
|
450
450
|
--------------------------------------------------------------------------------
|
|
@@ -462,7 +462,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
462
462
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
463
463
|
|
|
464
464
|
--------------------------------------------------------------------------------
|
|
465
|
-
Package Title: @gooddata/sdk-ui-vis-commons (11.68.0
|
|
465
|
+
Package Title: @gooddata/sdk-ui-vis-commons (11.68.0)
|
|
466
466
|
Package Source: Local workspace
|
|
467
467
|
Package Depth: Direct
|
|
468
468
|
--------------------------------------------------------------------------------
|
|
@@ -480,7 +480,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
480
480
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
481
481
|
|
|
482
482
|
--------------------------------------------------------------------------------
|
|
483
|
-
Package Title: @gooddata/util (11.68.0
|
|
483
|
+
Package Title: @gooddata/util (11.68.0)
|
|
484
484
|
Package Source: Local workspace
|
|
485
485
|
Package Depth: Direct
|
|
486
486
|
--------------------------------------------------------------------------------
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoPushpinChart.d.ts","sourceRoot":"","sources":["../src/GeoPushpinChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GeoPushpinChart.d.ts","sourceRoot":"","sources":["../src/GeoPushpinChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAIH,KAAK,UAAU,EACf,KAAK,oBAAoB,EAS5B,MAAM,qBAAqB,CAAC;AAa7B,OAAO,EAEH,KAAK,4CAA4C,EACjD,KAAK,2BAA2B,EAEnC,MAAM,eAAe,CAAC;AAyBvB;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,oBAAoB,GAAG,UAAU,EAAE,CAS7E;AA4FD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACjC,KAAK,EAAE,2BAA2B,GAAG,4CAA4C,2CAMpF"}
|
package/esm/GeoPushpinChart.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import { MeasureGroupIdentifier, bucketsAttributes, bucketsMeasures, disableComputeRatio, newBucket, newDimension, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames, IntlTranslationsProvider, IntlWrapper, useResolveValuesWithPlaceholders, withContexts, } from "@gooddata/sdk-ui";
|
|
5
4
|
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
6
|
-
import { _compact } from "@gooddata/util";
|
|
5
|
+
import { _compact, _omit } from "@gooddata/util";
|
|
7
6
|
import { CoreGeoChart } from "./core/CoreGeoChart.js";
|
|
8
7
|
import { isGeoPushpinChartProps, } from "./GeoChart.js";
|
|
9
8
|
const getBuckets = (props) => {
|
|
@@ -63,7 +62,7 @@ function GeoPushpinChartInner(props) {
|
|
|
63
62
|
const { backend, workspace, sortBy, filters, exportTitle, execConfig = {} } = props;
|
|
64
63
|
const theme = useTheme();
|
|
65
64
|
const buckets = getBuckets(props);
|
|
66
|
-
const newProps =
|
|
65
|
+
const newProps = _omit(props, getNonCoreProps(props));
|
|
67
66
|
const execution = backend
|
|
68
67
|
.withTelemetry("GeoPushpinChart", props)
|
|
69
68
|
.workspace(workspace)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoChart.d.ts","sourceRoot":"","sources":["../../../../src/core/geoChart/colorStrategy/geoChart.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geoChart.d.ts","sourceRoot":"","sources":["../../../../src/core/geoChart/colorStrategy/geoChart.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0C,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACjG,OAAO,EAAE,KAAK,cAAc,EAAyB,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAGH,KAAK,aAAa,EAClB,KAAK,cAAc,EAItB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAqErD,wBAAgB,gBAAgB,CAC5B,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,aAAa,EAAE,EAC7B,OAAO,EAAE,QAAQ,EACjB,EAAE,EAAE,cAAc,GACnB,cAAc,CAgBhB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2020-
|
|
2
|
-
import { omit } from "lodash-es";
|
|
1
|
+
// (C) 2020-2026 GoodData Corporation
|
|
3
2
|
import { AttributeColorStrategy, ColorStrategy, getColorFromMapping, isValidMappedColor, } from "@gooddata/sdk-ui-vis-commons";
|
|
3
|
+
import { _omit } from "@gooddata/util";
|
|
4
4
|
import { findGeoAttributesInDimension } from "../helpers/geoChart/data.js";
|
|
5
5
|
class GeoChartColorStrategy extends ColorStrategy {
|
|
6
6
|
createColorAssignment(colorPalette, colorMapping, locationAttribute, segmentByAttribute, dv) {
|
|
@@ -38,7 +38,7 @@ class GeoChartColorStrategy extends ColorStrategy {
|
|
|
38
38
|
export function getColorStrategy(colorPalette, colorMapping, geoData, dv) {
|
|
39
39
|
const { locationAttribute, segmentByAttribute } = findGeoAttributesInDimension(dv, geoData);
|
|
40
40
|
const locationAttributeHeader = {
|
|
41
|
-
attributeHeader:
|
|
41
|
+
attributeHeader: _omit(locationAttribute, "items"),
|
|
42
42
|
};
|
|
43
43
|
return new GeoChartColorStrategy(colorPalette, colorMapping, locationAttributeHeader, segmentByAttribute, dv);
|
|
44
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoChartColor.d.ts","sourceRoot":"","sources":["../../../src/core/geoChart/geoChartColor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geoChartColor.d.ts","sourceRoot":"","sources":["../../../src/core/geoChart/geoChartColor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG1F,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAavD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAiB7F;AAED,KAAK,mBAAmB,GAAG;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,CAAC;AAE5D,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,cAAc,GAAG,mBAAmB,CAqBzF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC5B,WAAW,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,EACjC,aAAa,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,YAAK,EACxC,aAAa,EAAE,cAAc,GAC9B,aAAa,EAAE,CAkDjB;AAED,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,GAAG,gBAAgB,EAAE,CA0BtG"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { range } from "lodash-es";
|
|
3
2
|
import { isAttributeDescriptor, isResultAttributeHeader } from "@gooddata/sdk-model";
|
|
4
|
-
import { _isEmpty } from "@gooddata/util";
|
|
3
|
+
import { _isEmpty, _range } from "@gooddata/util";
|
|
5
4
|
import { DEFAULT_PUSHPIN_BORDER_COLOR_VALUE, DEFAULT_PUSHPIN_COLOR_OPACITY, DEFAULT_PUSHPIN_COLOR_SCALE, } from "./constants/geoChart.js";
|
|
6
5
|
import { getColorPalette, rgbToRgba } from "./helpers/geoChart/colors.js";
|
|
7
6
|
import { getMinMax } from "./helpers/geoChart/common.js";
|
|
@@ -107,7 +106,7 @@ export function generateLegendColorData(colorSeries, colorString) {
|
|
|
107
106
|
if (min === max) {
|
|
108
107
|
return [];
|
|
109
108
|
}
|
|
110
|
-
return
|
|
109
|
+
return _range(0, DEFAULT_PUSHPIN_COLOR_SCALE).map((index) => {
|
|
111
110
|
const from = min + offset * index;
|
|
112
111
|
const isLastItem = index === DEFAULT_PUSHPIN_COLOR_SCALE - 1;
|
|
113
112
|
const to = isLastItem ? max : from + offset;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../src/core/geoChart/helpers/geoChart/colors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../src/core/geoChart/helpers/geoChart/colors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAkD1D,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc,EAAE,OAAO,GAAE,MAAU,GAAG,MAAM,EAAE,CAOjG;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,MAAU,GAAG,MAAM,CAGpE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { _range } from "@gooddata/util";
|
|
3
3
|
function formatColor(red, green, blue, opacity = 1) {
|
|
4
4
|
if (opacity === 1) {
|
|
5
5
|
return `rgb(${red},${green},${blue})`;
|
|
@@ -17,7 +17,7 @@ function getCalculatedChannel(channel, index, step) {
|
|
|
17
17
|
return Math.trunc(channel + index * step);
|
|
18
18
|
}
|
|
19
19
|
function getCalculatedColors(count, channels, steps, opacity = 1) {
|
|
20
|
-
return
|
|
20
|
+
return _range(1, count).map((index) => formatColor(getCalculatedChannel(channels[0], index, steps[0]), getCalculatedChannel(channels[1], index, steps[1]), getCalculatedChannel(channels[2], index, steps[2]), opacity));
|
|
21
21
|
}
|
|
22
22
|
function getRGBColorCode(color) {
|
|
23
23
|
if (typeof color === "string") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drilling.d.ts","sourceRoot":"","sources":["../../../../../src/core/geoChart/helpers/geoChart/drilling.ts"],"names":[],"mappings":"AASA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,YAAY,EAGjB,KAAK,gBAAgB,EAIxB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"drilling.d.ts","sourceRoot":"","sources":["../../../../../src/core/geoChart/helpers/geoChart/drilling.ts"],"names":[],"mappings":"AASA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,YAAY,EAGjB,KAAK,gBAAgB,EAIxB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,QAAQ,EAAuB,MAAM,yBAAyB,CAAC;AA4F7E,wBAAgB,0BAA0B,CACtC,cAAc,EAAE,gBAAgB,EAAE,EAClC,WAAW,EAAE,YAAY,EACzB,EAAE,EAAE,cAAc,EAClB,OAAO,EAAE,QAAQ,EACjB,aAAa,EAAE,OAAO,CAAC,iBAAiB,EACxC,cAAc,EAAE,MAAM,EAAE,EACxB,MAAM,EAAE,WAAW,EACnB,UAAU,CAAC,EAAE,UAAU,GACxB,IAAI,CAoDN"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { without } from "lodash-es";
|
|
3
3
|
import { isResultAttributeHeader, } from "@gooddata/sdk-model";
|
|
4
4
|
import { getDrillIntersection, isSomeHeaderPredicateMatched, } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _omit } from "@gooddata/util";
|
|
5
6
|
import { findGeoAttributesInDimension, parseGeoProperties } from "./data.js";
|
|
6
7
|
function getDrillIntersectionForGeoChart(drillableItems, dv, geoData, locationIndex) {
|
|
7
8
|
const measureGroupItems = dv.meta().measureDescriptors();
|
|
@@ -36,7 +37,7 @@ function getDrillIntersectionForGeoChart(drillableItems, dv, geoData, locationIn
|
|
|
36
37
|
function getAttributeHeader(attribute, dataIndex) {
|
|
37
38
|
if (attribute) {
|
|
38
39
|
return {
|
|
39
|
-
attributeHeader: { attributeHeader:
|
|
40
|
+
attributeHeader: { attributeHeader: _omit(attribute, "items") },
|
|
40
41
|
attributeHeaderItem: attribute.items[dataIndex],
|
|
41
42
|
};
|
|
42
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorStrategy.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/area/coloring/colorStrategy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"colorStrategy.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/area/coloring/colorStrategy.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0C,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACjG,OAAO,EAAE,KAAK,cAAc,EAAyB,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAGH,KAAK,aAAa,EAClB,KAAK,cAAc,EAItB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gCAAgC,CAAC;AA4FnE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAChC,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,aAAa,EAAE,EAC7B,OAAO,EAAE,YAAY,EACrB,EAAE,EAAE,cAAc,GACnB,cAAc,CAWhB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2025 GoodData Corporation
|
|
2
|
-
import { omit } from "lodash-es";
|
|
1
|
+
// (C) 2025-2026 GoodData Corporation
|
|
3
2
|
import { AttributeColorStrategy, ColorStrategy, getColorFromMapping, isValidMappedColor, } from "@gooddata/sdk-ui-vis-commons";
|
|
3
|
+
import { _omit } from "@gooddata/util";
|
|
4
4
|
import { findAreaAttributesInDimension } from "../data/transformation.js";
|
|
5
5
|
/**
|
|
6
6
|
* Color strategy for GeoAreaChart
|
|
@@ -76,7 +76,7 @@ class AreaColorStrategy extends ColorStrategy {
|
|
|
76
76
|
export function getAreaColorStrategy(colorPalette, colorMapping, geoData, dv) {
|
|
77
77
|
const { areaAttribute, segmentByAttribute } = findAreaAttributesInDimension(dv, geoData);
|
|
78
78
|
const areaAttributeHeader = {
|
|
79
|
-
attributeHeader:
|
|
79
|
+
attributeHeader: _omit(areaAttribute, "items"),
|
|
80
80
|
};
|
|
81
81
|
return new AreaColorStrategy(colorPalette, colorMapping, areaAttributeHeader, segmentByAttribute, dv);
|
|
82
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorStrategy.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/pushpin/coloring/colorStrategy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"colorStrategy.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/pushpin/coloring/colorStrategy.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0C,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACjG,OAAO,EAAE,KAAK,cAAc,EAAyB,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAGH,KAAK,aAAa,EAClB,KAAK,cAAc,EAItB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mCAAmC,CAAC;AA+FzE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CACnC,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,aAAa,EAAE,EAC7B,OAAO,EAAE,eAAe,EACxB,EAAE,EAAE,cAAc,GACnB,cAAc,CAehB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import { AttributeColorStrategy, ColorStrategy, getColorFromMapping, isValidMappedColor, } from "@gooddata/sdk-ui-vis-commons";
|
|
3
|
+
import { _omit } from "@gooddata/util";
|
|
4
4
|
import { findPushpinAttributesInDimension, } from "../data/transformation.js";
|
|
5
5
|
/**
|
|
6
6
|
* Color strategy for GeoPushpinChart
|
|
@@ -76,7 +76,7 @@ class PushpinColorStrategy extends ColorStrategy {
|
|
|
76
76
|
export function getPushpinColorStrategy(colorPalette, colorMapping, geoData, dv) {
|
|
77
77
|
const { locationAttribute, segmentByAttribute } = findPushpinAttributesInDimension(dv, geoData);
|
|
78
78
|
const locationAttributeHeader = {
|
|
79
|
-
attributeHeader:
|
|
79
|
+
attributeHeader: _omit(locationAttribute, "items"),
|
|
80
80
|
};
|
|
81
81
|
return new PushpinColorStrategy(colorPalette, colorMapping, locationAttributeHeader, segmentByAttribute, dv);
|
|
82
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/pushpin/coloring/palette.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/pushpin/coloring/palette.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAkD,MAAM,qBAAqB,CAAC;AAC1G,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG1F,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAuEvE;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc,EAAE,OAAO,SAAI,GAAG,MAAM,EAAE,CAOzF;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,SAAI,GAAG,MAAM,CAG5D;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAiB7F;AAED;;GAEG;AACH,KAAK,mBAAmB,GAAG;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,CAAC;AAE5D;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,cAAc,GAAG,mBAAmB,CAwBzF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAC5B,WAAW,EAAE,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC,EACzC,aAAa,EAAE,MAAM,EAAE,YAAK,EAC5B,aAAa,EAAE,cAAc,GAC9B,aAAa,EAAE,CA8DjB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAwBtG"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
-
import { range } from "lodash-es";
|
|
3
2
|
import { isAttributeDescriptor, isResultAttributeHeader } from "@gooddata/sdk-model";
|
|
4
|
-
import { _isEmpty } from "@gooddata/util";
|
|
3
|
+
import { _isEmpty, _range } from "@gooddata/util";
|
|
5
4
|
import { isFiniteNumber } from "../../../utils/guards.js";
|
|
6
5
|
import { DEFAULT_PUSHPIN_BORDER_COLOR_VALUE, DEFAULT_PUSHPIN_COLOR_OPACITY, DEFAULT_PUSHPIN_COLOR_SCALE, } from "../constants.js";
|
|
7
6
|
import { getMinMax } from "../size/calculations.js";
|
|
@@ -41,7 +40,7 @@ function getCalculatedChannel(channel, index, step) {
|
|
|
41
40
|
* Generates an array of gradient colors
|
|
42
41
|
*/
|
|
43
42
|
function getCalculatedColors(count, channels, steps, opacity = 1) {
|
|
44
|
-
return
|
|
43
|
+
return _range(1, count).map((index) => formatColor(getCalculatedChannel(channels[0], index, steps[0]), getCalculatedChannel(channels[1], index, steps[1]), getCalculatedChannel(channels[2], index, steps[2]), opacity));
|
|
45
44
|
}
|
|
46
45
|
/**
|
|
47
46
|
* Converts color to RGB color code object
|
|
@@ -230,7 +229,7 @@ export function generateLegendColorData(colorSeries, colorString) {
|
|
|
230
229
|
if (min === max) {
|
|
231
230
|
return [];
|
|
232
231
|
}
|
|
233
|
-
return
|
|
232
|
+
return _range(0, DEFAULT_PUSHPIN_COLOR_SCALE).map((index) => {
|
|
234
233
|
const from = min + offset * index;
|
|
235
234
|
const isLastItem = index === DEFAULT_PUSHPIN_COLOR_SCALE - 1;
|
|
236
235
|
const to = isLastItem ? max : from + offset;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-geo",
|
|
3
|
-
"version": "11.68.0
|
|
3
|
+
"version": "11.68.0",
|
|
4
4
|
"description": "GoodData.UI SDK - Geo Charts",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"ts-invariant": "0.10.3",
|
|
46
46
|
"tslib": "2.8.1",
|
|
47
47
|
"uuid": "11.1.1",
|
|
48
|
-
"@gooddata/sdk-backend-spi": "11.68.0
|
|
49
|
-
"@gooddata/sdk-model": "11.68.0
|
|
50
|
-
"@gooddata/sdk-ui": "11.68.0
|
|
51
|
-
"@gooddata/sdk-ui-
|
|
52
|
-
"@gooddata/sdk-ui-
|
|
53
|
-
"@gooddata/sdk-ui-vis-commons": "11.68.0
|
|
54
|
-
"@gooddata/util": "11.68.0
|
|
48
|
+
"@gooddata/sdk-backend-spi": "11.68.0",
|
|
49
|
+
"@gooddata/sdk-model": "11.68.0",
|
|
50
|
+
"@gooddata/sdk-ui": "11.68.0",
|
|
51
|
+
"@gooddata/sdk-ui-theme-provider": "11.68.0",
|
|
52
|
+
"@gooddata/sdk-ui-kit": "11.68.0",
|
|
53
|
+
"@gooddata/sdk-ui-vis-commons": "11.68.0",
|
|
54
|
+
"@gooddata/util": "11.68.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
"stylelint": "16.26.1",
|
|
91
91
|
"typescript": "7.0.2",
|
|
92
92
|
"vitest": "5.0.4",
|
|
93
|
-
"@gooddata/eslint-config": "11.68.0
|
|
94
|
-
"@gooddata/oxlint-config": "11.68.0
|
|
95
|
-
"@gooddata/sdk-backend-mockingbird": "11.68.0
|
|
96
|
-
"@gooddata/stylelint-config": "11.68.0
|
|
93
|
+
"@gooddata/eslint-config": "11.68.0",
|
|
94
|
+
"@gooddata/oxlint-config": "11.68.0",
|
|
95
|
+
"@gooddata/sdk-backend-mockingbird": "11.68.0",
|
|
96
|
+
"@gooddata/stylelint-config": "11.68.0"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"react": "^18.0.0 || ^19.0.0",
|