@gooddata/sdk-ui-geo 11.68.0-alpha.2 → 11.68.0-alpha.4
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 +3 -3
- package/esm/core/geoChart/GeoChartRenderer.d.ts.map +1 -1
- package/esm/core/geoChart/GeoChartRenderer.js +2 -2
- package/esm/core/geoChart/GeoValidatorHOC.d.ts.map +1 -1
- package/esm/core/geoChart/GeoValidatorHOC.js +3 -3
- package/esm/core/geoChart/geoChartColor.d.ts.map +1 -1
- package/esm/core/geoChart/geoChartColor.js +3 -2
- package/esm/core/geoChart/geoChartTooltip.d.ts.map +1 -1
- package/esm/core/geoChart/geoChartTooltip.js +3 -2
- package/esm/core/geoChart/helpers/geoChart/common.d.ts.map +1 -1
- package/esm/core/geoChart/helpers/geoChart/common.js +3 -3
- package/esm/next/layers/execution/layerInsightFactory.d.ts.map +1 -1
- package/esm/next/layers/execution/layerInsightFactory.js +2 -2
- package/esm/next/layers/pushpin/coloring/palette.d.ts.map +1 -1
- package/esm/next/layers/pushpin/coloring/palette.js +3 -2
- package/esm/next/layers/pushpin/tooltip/tooltipManagement.d.ts.map +1 -1
- package/esm/next/layers/pushpin/tooltip/tooltipManagement.js +3 -2
- package/package.json +12 -11
package/NOTICE
CHANGED
|
@@ -11,9 +11,9 @@ This product includes a number of subcomponents with separate copyright notices
|
|
|
11
11
|
|
|
12
12
|
The following 3rd-party software packages may be used by or distributed with gooddata-ui-sdk. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
|
|
13
13
|
|
|
14
|
-
Date generated: 2026-11-
|
|
14
|
+
Date generated: 2026-11-6
|
|
15
15
|
|
|
16
|
-
Revision ID:
|
|
16
|
+
Revision ID: d5b83a8355edc9eec2ad7787276b02a1a676cb3f
|
|
17
17
|
|
|
18
18
|
================================================================================
|
|
19
19
|
================================================================================
|
|
@@ -69383,4 +69383,4 @@ MIT
|
|
|
69383
69383
|
--------------------------------------------------------------------------------
|
|
69384
69384
|
--------------------------------------------------------------------------------
|
|
69385
69385
|
|
|
69386
|
-
Report Generated by FOSSA on 2026-11-
|
|
69386
|
+
Report Generated by FOSSA on 2026-11-6
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoChartRenderer.d.ts","sourceRoot":"","sources":["../../../src/core/geoChart/GeoChartRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GeoChartRenderer.d.ts","sourceRoot":"","sources":["../../../src/core/geoChart/GeoChartRenderer.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAGH,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AA8BjE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,UAAU,CAAC;IACnB,cAAc,EAAE,gBAAgB,EAAE,CAAC;IACnC,WAAW,EAAE,YAAY,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,QAAQ,CAAC;IAClB,aAAa,EAAE,cAAc,CAAC;IAC9B,WAAW,IAAI,IAAI,CAAC;IACpB,uBAAuB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAClD,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,gBAAgB,CAAC,EAC7B,MAA4B,EAC5B,cAAc,EACd,WAAW,EACX,QAAQ,EACR,OAAO,EACP,aAAa,EACb,WAAsB,EACtB,uBAAkC,EAClC,aAAwB,EACxB,OAAO,EACP,IAAI,GACP,EAAE,sBAAsB,2CA0jBxB"}
|
|
@@ -2,10 +2,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useRef } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { isEqual } from "lodash-es";
|
|
6
5
|
import mapboxgl from "mapbox-gl";
|
|
7
6
|
import { invariant } from "ts-invariant";
|
|
8
7
|
import { DataViewFacade, GeoTokenMissingSdkError, } from "@gooddata/sdk-ui";
|
|
8
|
+
import { _isEqual } from "@gooddata/util";
|
|
9
9
|
import { DEFAULT_CLUSTER_LABELS_CONFIG, DEFAULT_CLUSTER_LAYER_NAME, DEFAULT_DATA_SOURCE_NAME, DEFAULT_LAYER_NAME, DEFAULT_MAPBOX_OPTIONS, DEFAULT_TOOLTIP_OPTIONS, INTERACTION_EVENTS, LAYER_STYLE_LABEL_PREFIX, ZOOM_CONTROLS_HEIGHT, } from "./constants/geoChart.js";
|
|
10
10
|
import { createClusterLabels, createClusterPoints, createPushpinDataLayer, createPushpinFilter, createUnclusterPoints, } from "./geoChartDataLayers.js";
|
|
11
11
|
import { createPushpinDataSource } from "./geoChartDataSource.js";
|
|
@@ -415,7 +415,7 @@ export function GeoChartRenderer({ config = { mapboxToken: "" }, drillableItems,
|
|
|
415
415
|
return;
|
|
416
416
|
}
|
|
417
417
|
const isColorChanged = isColorAssignmentItemChanged(prevColorStrategy.getColorAssignment(), colorStrategy.getColorAssignment());
|
|
418
|
-
const selectedSegmentItemsChanged = selectedSegmentItems && !
|
|
418
|
+
const selectedSegmentItemsChanged = selectedSegmentItems && !_isEqual(selectedSegmentItems, prevSelectedSegmentItems);
|
|
419
419
|
if (!isColorChanged && selectedSegmentItemsChanged) {
|
|
420
420
|
setFilterMap();
|
|
421
421
|
prevPropsRef.current = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoValidatorHOC.d.ts","sourceRoot":"","sources":["../../../src/core/geoChart/GeoValidatorHOC.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,aAAa,EAMrB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GeoValidatorHOC.d.ts","sourceRoot":"","sources":["../../../src/core/geoChart/GeoValidatorHOC.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,aAAa,EAMrB,MAAM,OAAO,CAAC;AAoBf,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAG9D,KAAK,kBAAkB,GAAG,mBAAmB,CAAC;AAyC9C,wBAAgB,eAAe,CAAC,CAAC,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,GAAG,kBAAkB,CAAC,CA4F3G"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2020-2026 GoodData Corporation
|
|
3
3
|
import { memo, useCallback, useEffect, useRef, useState, } from "react";
|
|
4
|
-
import { isEqual } from "lodash-es";
|
|
5
4
|
import { ErrorComponent as DefaultErrorComponent, ErrorCodes, GeoLocationMissingSdkError, GeoTokenMissingSdkError, IntlWrapper, isGeoTokenMissing, newErrorMapping, } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _isEqual } from "@gooddata/util";
|
|
6
6
|
import { isLocationSet } from "./helpers/geoChart/common.js";
|
|
7
7
|
// Helper functions moved outside the component
|
|
8
8
|
const isSameConfig = (config, nextConfig) => {
|
|
@@ -16,7 +16,7 @@ const isSameConfig = (config, nextConfig) => {
|
|
|
16
16
|
...nextConfig,
|
|
17
17
|
colorMapping: nextColorMapping,
|
|
18
18
|
};
|
|
19
|
-
return
|
|
19
|
+
return _isEqual(configProps, nextConfigProps);
|
|
20
20
|
};
|
|
21
21
|
const isSameData = (execution, nextExecution) => {
|
|
22
22
|
if (!execution || !nextExecution) {
|
|
@@ -86,7 +86,7 @@ export function geoValidatorHOC(InnerComponent) {
|
|
|
86
86
|
// check if buckets, filters and config are changed
|
|
87
87
|
const isSameConfigResult = isSameConfig(config, nextConfig);
|
|
88
88
|
const isSameDataSource = isSameData(execution, nextExecution);
|
|
89
|
-
const isSameDrillableItems =
|
|
89
|
+
const isSameDrillableItems = _isEqual(drillableItems, nextDrillableItems);
|
|
90
90
|
// Return true if props are equal (should NOT re-render)
|
|
91
91
|
// This is the opposite of shouldComponentUpdate
|
|
92
92
|
return isSameConfigResult && isSameDataSource && isSameDrillableItems;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoChartColor.d.ts","sourceRoot":"","sources":["../../../src/core/geoChart/geoChartColor.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"geoChartColor.d.ts","sourceRoot":"","sources":["../../../src/core/geoChart/geoChartColor.ts"],"names":[],"mappings":"AAKA,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,6 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { range } from "lodash-es";
|
|
3
3
|
import { isAttributeDescriptor, isResultAttributeHeader } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
5
|
import { DEFAULT_PUSHPIN_BORDER_COLOR_VALUE, DEFAULT_PUSHPIN_COLOR_OPACITY, DEFAULT_PUSHPIN_COLOR_SCALE, } from "./constants/geoChart.js";
|
|
5
6
|
import { getColorPalette, rgbToRgba } from "./helpers/geoChart/colors.js";
|
|
6
7
|
import { getMinMax } from "./helpers/geoChart/common.js";
|
|
@@ -96,7 +97,7 @@ export function getPushpinColors(colorValues, segmentValues = [], colorStrategy)
|
|
|
96
97
|
});
|
|
97
98
|
}
|
|
98
99
|
export function generateLegendColorData(colorSeries, colorString) {
|
|
99
|
-
if (
|
|
100
|
+
if (_isEmpty(colorSeries)) {
|
|
100
101
|
return [];
|
|
101
102
|
}
|
|
102
103
|
const colorPalette = getColorPalette(colorString, DEFAULT_PUSHPIN_COLOR_OPACITY);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoChartTooltip.d.ts","sourceRoot":"","sources":["../../../src/core/geoChart/geoChartTooltip.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"geoChartTooltip.d.ts","sourceRoot":"","sources":["../../../src/core/geoChart/geoChartTooltip.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,OAAO,EAAE,KAAK,UAAU,EAAwB,MAAM,mBAAmB,CAAC;AAO1E,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAuCrC,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,iBAAiB,GAAG,SAAS,GAAG,OAAO,CAY/F;AAQD,wBAAgB,cAAc,CAC1B,aAAa,EAAE,OAAO,CAAC,iBAAiB,EACxC,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,WAAW,EACxB,cAAc,CAAC,EAAE,gBAAgB,EAAE,EACnC,IAAI,CAAC,EAAE,SAAS,GACjB,MAAM,CAiBR;AAkBD,eAAO,MAAM,uBAAuB,MAC7B,QAAQ,CAAC,SAAS,SACd,QAAQ,CAAC,GAAG,WACV,QAAQ,CAAC,KAAK,UACf,UAAU,mBACD,gBAAgB,EAAE,SAC5B,SAAS,KACjB,IAuCF,CAAC;AAEF,eAAO,MAAM,uBAAuB,OAC5B,QAAQ,CAAC,SAAS,SACf,QAAQ,CAAC,GAAG,WACV,QAAQ,CAAC,KAAK,UACf,UAAU,KACnB,IAMF,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { escape
|
|
2
|
+
import { escape } from "lodash-es";
|
|
3
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
4
|
import { DEFAULT_PUSHPIN_COLOR_VALUE, NULL_TOOLTIP_VALUE } from "./constants/geoChart.js";
|
|
4
5
|
import { parseGeoProperties } from "./helpers/geoChart/data.js";
|
|
5
6
|
import { formatValueForTooltip, getTooltipContentWidth } from "./helpers/geoChart/format.js";
|
|
@@ -37,7 +38,7 @@ function isTooltipShownInFullScreen() {
|
|
|
37
38
|
return document.documentElement.clientWidth <= TOOLTIP_FULLSCREEN_THRESHOLD;
|
|
38
39
|
}
|
|
39
40
|
export function shouldShowTooltip(geoProperties) {
|
|
40
|
-
if (
|
|
41
|
+
if (_isEmpty(geoProperties)) {
|
|
41
42
|
return false;
|
|
42
43
|
}
|
|
43
44
|
const { locationName, color, size, segment } = geoProperties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/core/geoChart/helpers/geoChart/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/core/geoChart/helpers/geoChart/common.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,aAAa,EAGrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAG3F,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI/E,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,GAAG,aAAa,EAAE,EAAE,CAOnG;AAED,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAOpG;AAID,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CASzD;AAED,wBAAgB,gBAAgB,CAAC,MAAM,GAAE,MAAM,EAAO,GAAG,MAAM,CAK9D;AAED,wBAAgB,8BAA8B,CAAC,EAAE,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAI/F;AAGD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,GAAE,OAAc,GAAG,OAAO,CAIjG;AAED,wBAAgB,qBAAqB,CACjC,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,EAC9C,YAAY,EAAE,gBAAgB,GAAG,SAAS,GAC3C,OAAO,CAET;AAED,UAAU,OAAO;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAkBjD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAWzD;AAED,wBAAgB,oBAAoB,CAChC,UAAU,EAAE,OAAO,GAAG,uBAAuB,EAC7C,eAAe,EAAE,OAAO,GACzB,OAAO,CAET;AAED,wBAAgB,4BAA4B,CACxC,mBAAmB,EAAE,gBAAgB,EAAE,EACvC,eAAe,EAAE,gBAAgB,EAAE,GACpC,OAAO,CAET"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { bucketIsEmpty, bucketsFind, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { getResponsiveInfo } from "./responsive.js";
|
|
6
6
|
export function getGeoAttributeHeaderItems(dv, geoData) {
|
|
7
7
|
const { color, size } = geoData;
|
|
@@ -40,7 +40,7 @@ export function isClusteringAllowed(geoData, groupNearbyPoints = true) {
|
|
|
40
40
|
return Boolean(groupNearbyPoints && location && !(color || segment || size));
|
|
41
41
|
}
|
|
42
42
|
export function isPointsConfigChanged(prevPointsConfig, pointsConfig) {
|
|
43
|
-
return !
|
|
43
|
+
return !_isEqual(prevPointsConfig, pointsConfig);
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Get min/max values in number array and ignore NaN values
|
|
@@ -75,5 +75,5 @@ export function isFluidLegendEnabled(responsive, showFluidLegend) {
|
|
|
75
75
|
return getResponsiveInfo(responsive) === true && showFluidLegend;
|
|
76
76
|
}
|
|
77
77
|
export function isColorAssignmentItemChanged(prevColorAssignment, colorAssignment) {
|
|
78
|
-
return !
|
|
78
|
+
return !_isEqual(prevColorAssignment, colorAssignment);
|
|
79
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layerInsightFactory.d.ts","sourceRoot":"","sources":["../../../../src/next/layers/execution/layerInsightFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layerInsightFactory.d.ts","sourceRoot":"","sources":["../../../../src/next/layers/execution/layerInsightFactory.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,qBAAqB,CAAC;AAK7B;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IACvC,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;CACxB,GAAG,kBAAkB,CAUrB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,eAAe,EAAE,GAAG,OAAO,EAAE,CAE3E;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,eAAe,EAAE,GAAG,eAAe,EAAE,CAEpF;AAED;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAC7C,YAAY,CAAC,EAAE,eAAe,EAAE,EAChC,aAAa,CAAC,EAAE,eAAe,EAAE,GAClC,eAAe,EAAE,CAOnB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { newInsightDefinition, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _isEqual } from "@gooddata/util";
|
|
4
4
|
const GEO_LAYER_VIZ_URL = "local:geo.layer";
|
|
5
5
|
/**
|
|
6
6
|
* Creates a synthetic insight used to execute an individual geo layer.
|
|
@@ -45,5 +45,5 @@ export function sanitizeGlobalFilters(filters) {
|
|
|
45
45
|
export function sanitizeDeduplicatedGlobalFilters(layerFilters, globalFilters) {
|
|
46
46
|
const sanitizedLayerFilters = sanitizeLayerFilters(layerFilters);
|
|
47
47
|
const sanitizedGlobalFilters = sanitizeGlobalFilters(globalFilters);
|
|
48
|
-
return sanitizedGlobalFilters.filter((globalFilter) => !sanitizedLayerFilters.some((layerFilter) =>
|
|
48
|
+
return sanitizedGlobalFilters.filter((globalFilter) => !sanitizedLayerFilters.some((layerFilter) => _isEqual(layerFilter, globalFilter)));
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/pushpin/coloring/palette.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAkD,MAAM,qBAAqB,CAAC;AAC1G,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/pushpin/coloring/palette.ts"],"names":[],"mappings":"AAIA,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,6 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { range } from "lodash-es";
|
|
3
3
|
import { isAttributeDescriptor, isResultAttributeHeader } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
5
|
import { isFiniteNumber } from "../../../utils/guards.js";
|
|
5
6
|
import { DEFAULT_PUSHPIN_BORDER_COLOR_VALUE, DEFAULT_PUSHPIN_COLOR_OPACITY, DEFAULT_PUSHPIN_COLOR_SCALE, } from "../constants.js";
|
|
6
7
|
import { getMinMax } from "../size/calculations.js";
|
|
@@ -219,7 +220,7 @@ export function getPushpinColors(colorValues, segmentValues = [], colorStrategy)
|
|
|
219
220
|
* @internal
|
|
220
221
|
*/
|
|
221
222
|
export function generateLegendColorData(colorSeries, colorString) {
|
|
222
|
-
if (
|
|
223
|
+
if (_isEmpty(colorSeries)) {
|
|
223
224
|
return [];
|
|
224
225
|
}
|
|
225
226
|
const colorPalette = getColorPalette(colorString, DEFAULT_PUSHPIN_COLOR_OPACITY);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltipManagement.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/pushpin/tooltip/tooltipManagement.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,KAAK,oBAAoB,EAAgC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltipManagement.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/pushpin/tooltip/tooltipManagement.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,KAAK,oBAAoB,EAAgC,MAAM,8BAA8B,CAAC;AAIvG,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAQpF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAErF,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAY9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAS/F,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAuErC;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,iBAAiB,GAAG,SAAS,GAAG,OAAO,CAe/F;AAQD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAC1B,aAAa,EAAE,OAAO,CAAC,iBAAiB,EACxC,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,GAAG,SAAS,EACnC,cAAc,EAAE,gBAAgB,EAAE,GAAG,SAAS,EAC9C,IAAI,EAAE,SAAS,EACf,UAAU,GAAE,OAAc,EAC1B,YAAY,CAAC,EAAE,oBAAoB,EACnC,aAAa,CAAC,EAAE,qBAAqB,EACrC,aAAa,CAAC,EAAE,sBAAsB,GACvC,MAAM,CA4CR;AAcD;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CACtC,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE,sBAAsB,EAC9B,cAAc,EAAE,gBAAgB,EAAE,GAAG,SAAS,EAC9C,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,MAAM,EAAE,EAClB,aAAa,CAAC,EAAE,qBAAqB,EACrC,aAAa,CAAC,EAAE,sBAAsB,GACvC,iBAAiB,CAuEnB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
-
import { escape
|
|
2
|
+
import { escape } from "lodash-es";
|
|
3
3
|
import { buildTooltipLocalizedStrings } from "@gooddata/sdk-ui-vis-commons";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
5
|
import { getTooltipContentWidth } from "../../../map/style/tooltipFormatting.js";
|
|
5
6
|
import { isGeoJsonPoint, isLngLatTuple, isRecord, } from "../../../utils/guards.js";
|
|
6
7
|
import { buildCustomTooltipPieces, composeTooltipBody } from "../../common/customTooltipSection.js";
|
|
@@ -63,7 +64,7 @@ function isTooltipShownInFullScreen() {
|
|
|
63
64
|
* @internal
|
|
64
65
|
*/
|
|
65
66
|
export function shouldShowTooltip(geoProperties) {
|
|
66
|
-
if (
|
|
67
|
+
if (_isEmpty(geoProperties)) {
|
|
67
68
|
return false;
|
|
68
69
|
}
|
|
69
70
|
const { locationName, color, size, segment, tooltipText, measures } = geoProperties ?? {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-geo",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.4",
|
|
4
4
|
"description": "GoodData.UI SDK - Geo Charts",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -45,12 +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-alpha.
|
|
49
|
-
"@gooddata/sdk-model": "11.68.0-alpha.
|
|
50
|
-
"@gooddata/sdk-ui
|
|
51
|
-
"@gooddata/sdk-ui-kit": "11.68.0-alpha.
|
|
52
|
-
"@gooddata/sdk-ui-
|
|
53
|
-
"@gooddata/sdk-ui": "11.68.0-alpha.
|
|
48
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.4",
|
|
49
|
+
"@gooddata/sdk-model": "11.68.0-alpha.4",
|
|
50
|
+
"@gooddata/sdk-ui": "11.68.0-alpha.4",
|
|
51
|
+
"@gooddata/sdk-ui-kit": "11.68.0-alpha.4",
|
|
52
|
+
"@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.4",
|
|
53
|
+
"@gooddata/sdk-ui-vis-commons": "11.68.0-alpha.4",
|
|
54
|
+
"@gooddata/util": "11.68.0-alpha.4"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -89,10 +90,10 @@
|
|
|
89
90
|
"stylelint": "16.26.1",
|
|
90
91
|
"typescript": "7.0.2",
|
|
91
92
|
"vitest": "5.0.4",
|
|
92
|
-
"@gooddata/eslint-config": "11.68.0-alpha.
|
|
93
|
-
"@gooddata/oxlint-config": "11.68.0-alpha.
|
|
94
|
-
"@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.
|
|
95
|
-
"@gooddata/stylelint-config": "11.68.0-alpha.
|
|
93
|
+
"@gooddata/eslint-config": "11.68.0-alpha.4",
|
|
94
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.4",
|
|
95
|
+
"@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.4",
|
|
96
|
+
"@gooddata/stylelint-config": "11.68.0-alpha.4"
|
|
96
97
|
},
|
|
97
98
|
"peerDependencies": {
|
|
98
99
|
"react": "^18.0.0 || ^19.0.0",
|