@gooddata/sdk-ui-ext 11.24.0-alpha.2 → 11.24.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 +18 -18
- package/esm/internal/components/configurationControls/BasemapDropdownControl.d.ts +5 -0
- package/esm/internal/components/configurationControls/BasemapDropdownControl.d.ts.map +1 -0
- package/esm/internal/components/configurationControls/BasemapDropdownControl.js +12 -0
- package/esm/internal/components/configurationControls/BasemapDropdownControl.js.map +1 -0
- package/esm/internal/components/configurationControls/GeoViewportControl.d.ts +11 -3
- package/esm/internal/components/configurationControls/GeoViewportControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/GeoViewportControl.js +62 -6
- package/esm/internal/components/configurationControls/GeoViewportControl.js.map +1 -1
- package/esm/internal/components/configurationControls/PushpinViewportControl.d.ts +2 -0
- package/esm/internal/components/configurationControls/PushpinViewportControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PushpinViewportControl.js.map +1 -1
- package/esm/internal/components/configurationPanels/GeoAreaConfigurationPanel.d.ts +7 -2
- package/esm/internal/components/configurationPanels/GeoAreaConfigurationPanel.d.ts.map +1 -1
- package/esm/internal/components/configurationPanels/GeoAreaConfigurationPanel.js +6 -8
- package/esm/internal/components/configurationPanels/GeoAreaConfigurationPanel.js.map +1 -1
- package/esm/internal/components/configurationPanels/GeoPushpinConfigurationPanel.d.ts +7 -2
- package/esm/internal/components/configurationPanels/GeoPushpinConfigurationPanel.d.ts.map +1 -1
- package/esm/internal/components/configurationPanels/GeoPushpinConfigurationPanel.js +6 -8
- package/esm/internal/components/configurationPanels/GeoPushpinConfigurationPanel.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts +4 -0
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js +13 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/geoAreaConfigBuilder.d.ts +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/geoAreaConfigBuilder.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/geoAreaConfigBuilder.js +26 -3
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/geoAreaConfigBuilder.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.d.ts +4 -0
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js +13 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/geoConfigBuilder.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/geoConfigBuilder.js +34 -8
- package/esm/internal/components/pluggableVisualizations/geoChartNext/geoConfigBuilder.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/geoConfigBuilder.test.js +10 -0
- package/esm/internal/components/pluggableVisualizations/geoChartNext/geoConfigBuilder.test.js.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoCommon/liveMapViewTracking.d.ts +36 -0
- package/esm/internal/components/pluggableVisualizations/geoCommon/liveMapViewTracking.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/geoCommon/liveMapViewTracking.js +55 -0
- package/esm/internal/components/pluggableVisualizations/geoCommon/liveMapViewTracking.js.map +1 -0
- package/esm/internal/constants/dropdowns.d.ts +1 -0
- package/esm/internal/constants/dropdowns.d.ts.map +1 -1
- package/esm/internal/constants/dropdowns.js +15 -2
- package/esm/internal/constants/dropdowns.js.map +1 -1
- package/esm/internal/constants/featureFlags.d.ts +6 -0
- package/esm/internal/constants/featureFlags.d.ts.map +1 -0
- package/esm/internal/constants/featureFlags.js +12 -0
- package/esm/internal/constants/featureFlags.js.map +1 -0
- package/esm/internal/constants/supportedProperties.d.ts.map +1 -1
- package/esm/internal/constants/supportedProperties.js +8 -0
- package/esm/internal/constants/supportedProperties.js.map +1 -1
- package/esm/internal/translations/en-US.localization-bundle.d.ts +32 -0
- package/esm/internal/translations/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-US.localization-bundle.js +33 -1
- package/esm/internal/translations/en-US.localization-bundle.js.map +1 -1
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +8 -0
- package/esm/locales.js.map +1 -1
- package/package.json +20 -20
- package/styles/internal/css/config_panel.css +46 -0
- package/styles/internal/css/config_panel.css.map +1 -1
- package/styles/internal/scss/config_panel.scss +51 -1
package/NOTICE
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
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.
|
|
9
9
|
|
|
10
|
-
Date generated: 2026-2
|
|
10
|
+
Date generated: 2026-3-2
|
|
11
11
|
|
|
12
|
-
Revision ID:
|
|
12
|
+
Revision ID: a40a5be893a968cf1bae5aef68249b6f56f82f65
|
|
13
13
|
|
|
14
14
|
================================================================================
|
|
15
15
|
================================================================================
|
|
@@ -376,7 +376,7 @@ Revision ID: ac440b838207d11a26e0abf70f7c2e0d3e9aea7b
|
|
|
376
376
|
- body-parser (1.20.3) [MIT]
|
|
377
377
|
- bonjour-service (1.3.0) [MIT]
|
|
378
378
|
- braces (3.0.3) [MIT]
|
|
379
|
-
- browserslist (4.
|
|
379
|
+
- browserslist (4.28.1) [MIT]
|
|
380
380
|
- buffer (5.7.1) [MIT]
|
|
381
381
|
- buffer-from (1.1.2) [MIT]
|
|
382
382
|
- bundle-name (4.1.0) [MIT]
|
|
@@ -387,7 +387,7 @@ Revision ID: ac440b838207d11a26e0abf70f7c2e0d3e9aea7b
|
|
|
387
387
|
- call-bind-apply-helpers (1.0.2) [MIT]
|
|
388
388
|
- call-bound (1.0.4) [MIT]
|
|
389
389
|
- callsites (3.1.0) [MIT]
|
|
390
|
-
- caniuse-lite (1.0.
|
|
390
|
+
- caniuse-lite (1.0.30001775) [CC-BY-4.0]
|
|
391
391
|
- ccount (2.0.1) [MIT]
|
|
392
392
|
- chai (6.2.2) [MIT]
|
|
393
393
|
- chalk (4.1.2) [MIT]
|
|
@@ -481,7 +481,7 @@ Revision ID: ac440b838207d11a26e0abf70f7c2e0d3e9aea7b
|
|
|
481
481
|
- earcut (3.0.2) [ISC]
|
|
482
482
|
- eastasianwidth (0.2.0) [MIT]
|
|
483
483
|
- ee-first (1.1.1) [MIT]
|
|
484
|
-
- electron-to-chromium (1.5.
|
|
484
|
+
- electron-to-chromium (1.5.302) [ISC]
|
|
485
485
|
- emailjs-base64 (1.1.4) [MIT]
|
|
486
486
|
- emoji-regex (8.0.0) [MIT]
|
|
487
487
|
- emoji-regex (9.2.2) [MIT]
|
|
@@ -788,7 +788,7 @@ Revision ID: ac440b838207d11a26e0abf70f7c2e0d3e9aea7b
|
|
|
788
788
|
- neo-async (2.6.2) [MIT]
|
|
789
789
|
- node-emoji (2.2.0) [MIT]
|
|
790
790
|
- node-forge (1.3.1) [Multi-license: GPL-2.0-only OR BSD-3-Clause, BSD-3-Clause, public-domain, MIT]
|
|
791
|
-
- node-releases (2.0.
|
|
791
|
+
- node-releases (2.0.27) [MIT]
|
|
792
792
|
- normalize-path (3.0.0) [MIT]
|
|
793
793
|
- object-assign (4.1.1) [MIT]
|
|
794
794
|
- object-code (1.3.3) [MIT]
|
|
@@ -1043,7 +1043,7 @@ Revision ID: ac440b838207d11a26e0abf70f7c2e0d3e9aea7b
|
|
|
1043
1043
|
- unist-util-visit-parents (6.0.1) [MIT]
|
|
1044
1044
|
- universalify (2.0.1) [MIT]
|
|
1045
1045
|
- unpipe (1.0.0) [MIT]
|
|
1046
|
-
- update-browserslist-db (1.
|
|
1046
|
+
- update-browserslist-db (1.2.3) [MIT]
|
|
1047
1047
|
- uri-js (4.4.1) [BSD-2-Clause]
|
|
1048
1048
|
- use-composed-ref (1.4.0) [MIT]
|
|
1049
1049
|
- use-is-mounted-ref (1.5.0) [MIT]
|
|
@@ -5349,9 +5349,9 @@ MIT
|
|
|
5349
5349
|
|
|
5350
5350
|
|
|
5351
5351
|
--------------------------------------------------------------------------------
|
|
5352
|
-
Package Title: browserslist (4.
|
|
5352
|
+
Package Title: browserslist (4.28.1)
|
|
5353
5353
|
|
|
5354
|
-
Package Locator: npm+browserslist$4.
|
|
5354
|
+
Package Locator: npm+browserslist$4.28.1
|
|
5355
5355
|
|
|
5356
5356
|
Package Depth: Transitive
|
|
5357
5357
|
--------------------------------------------------------------------------------
|
|
@@ -5481,9 +5481,9 @@ MIT
|
|
|
5481
5481
|
|
|
5482
5482
|
|
|
5483
5483
|
--------------------------------------------------------------------------------
|
|
5484
|
-
Package Title: caniuse-lite (1.0.
|
|
5484
|
+
Package Title: caniuse-lite (1.0.30001775)
|
|
5485
5485
|
|
|
5486
|
-
Package Locator: npm+caniuse-lite$1.0.
|
|
5486
|
+
Package Locator: npm+caniuse-lite$1.0.30001775
|
|
5487
5487
|
|
|
5488
5488
|
Package Depth: Transitive
|
|
5489
5489
|
--------------------------------------------------------------------------------
|
|
@@ -6613,9 +6613,9 @@ MIT
|
|
|
6613
6613
|
|
|
6614
6614
|
|
|
6615
6615
|
--------------------------------------------------------------------------------
|
|
6616
|
-
Package Title: electron-to-chromium (1.5.
|
|
6616
|
+
Package Title: electron-to-chromium (1.5.302)
|
|
6617
6617
|
|
|
6618
|
-
Package Locator: npm+electron-to-chromium$1.5.
|
|
6618
|
+
Package Locator: npm+electron-to-chromium$1.5.302
|
|
6619
6619
|
|
|
6620
6620
|
Package Depth: Transitive
|
|
6621
6621
|
--------------------------------------------------------------------------------
|
|
@@ -10325,9 +10325,9 @@ public-domain, MIT
|
|
|
10325
10325
|
|
|
10326
10326
|
|
|
10327
10327
|
--------------------------------------------------------------------------------
|
|
10328
|
-
Package Title: node-releases (2.0.
|
|
10328
|
+
Package Title: node-releases (2.0.27)
|
|
10329
10329
|
|
|
10330
|
-
Package Locator: npm+node-releases$2.0.
|
|
10330
|
+
Package Locator: npm+node-releases$2.0.27
|
|
10331
10331
|
|
|
10332
10332
|
Package Depth: Transitive
|
|
10333
10333
|
--------------------------------------------------------------------------------
|
|
@@ -13427,9 +13427,9 @@ MIT
|
|
|
13427
13427
|
|
|
13428
13428
|
|
|
13429
13429
|
--------------------------------------------------------------------------------
|
|
13430
|
-
Package Title: update-browserslist-db (1.
|
|
13430
|
+
Package Title: update-browserslist-db (1.2.3)
|
|
13431
13431
|
|
|
13432
|
-
Package Locator: npm+update-browserslist-db$1.
|
|
13432
|
+
Package Locator: npm+update-browserslist-db$1.2.3
|
|
13433
13433
|
|
|
13434
13434
|
Package Depth: Transitive
|
|
13435
13435
|
--------------------------------------------------------------------------------
|
|
@@ -34663,4 +34663,4 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
34663
34663
|
--------------------------------------------------------------------------------
|
|
34664
34664
|
--------------------------------------------------------------------------------
|
|
34665
34665
|
|
|
34666
|
-
Report Generated by FOSSA on 2026-2
|
|
34666
|
+
Report Generated by FOSSA on 2026-3-2
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type IDropdownControlProps } from "./DropdownControl.js";
|
|
2
|
+
type IBasemapDropdownControlProps = Omit<IDropdownControlProps, "items">;
|
|
3
|
+
export declare const BasemapDropdownControl: import("react").NamedExoticComponent<IBasemapDropdownControlProps>;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=BasemapDropdownControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasemapDropdownControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/BasemapDropdownControl.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAmB,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAInF,KAAK,4BAA4B,GAAG,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;AAEzE,eAAO,MAAM,sBAAsB,oEAMjC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import { useIntl } from "react-intl";
|
|
5
|
+
import { DropdownControl } from "./DropdownControl.js";
|
|
6
|
+
import { basemapDropdownItems } from "../../constants/dropdowns.js";
|
|
7
|
+
import { getTranslatedDropdownItems } from "../../utils/translations.js";
|
|
8
|
+
export const BasemapDropdownControl = memo(function BasemapDropdownControl(props) {
|
|
9
|
+
const intl = useIntl();
|
|
10
|
+
return _jsx(DropdownControl, { ...props, items: getTranslatedDropdownItems(basemapDropdownItems, intl) });
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=BasemapDropdownControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasemapDropdownControl.js","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/BasemapDropdownControl.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,eAAe,EAA8B,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAIzE,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC,SAAS,sBAAsB,CACtE,KAAmC,EACrC;IACE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,OAAO,KAAC,eAAe,OAAK,KAAK,EAAE,KAAK,EAAE,0BAA0B,CAAC,oBAAoB,EAAE,IAAI,CAAC,GAAI,CAAC;AAAA,CACxG,CAAC,CAAC"}
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import { type ReactElement } from "react";
|
|
1
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { type IPushData } from "@gooddata/sdk-ui";
|
|
3
|
+
import { type IGeoLngLat } from "@gooddata/sdk-ui-geo";
|
|
2
4
|
import { type IVisualizationProperties } from "../../interfaces/Visualization.js";
|
|
5
|
+
export interface ICurrentMapView {
|
|
6
|
+
center?: IGeoLngLat;
|
|
7
|
+
zoom?: number;
|
|
8
|
+
}
|
|
3
9
|
export interface IGeoViewportControl {
|
|
4
10
|
disabled: boolean;
|
|
5
11
|
properties?: IVisualizationProperties;
|
|
6
|
-
pushData?: (data:
|
|
12
|
+
pushData?: (data: IPushData) => void;
|
|
13
|
+
getCurrentMapView?: () => ICurrentMapView;
|
|
14
|
+
beforeNavigationContent?: ReactNode;
|
|
7
15
|
className?: string;
|
|
8
16
|
}
|
|
9
17
|
/**
|
|
10
18
|
* Generic viewport control for geo charts (pushpin and area).
|
|
11
|
-
* Allows users to select a default viewport
|
|
19
|
+
* Allows users to select a default viewport and configure navigation interactions.
|
|
12
20
|
*
|
|
13
21
|
* @internal
|
|
14
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoViewportControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/GeoViewportControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GeoViewportControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/GeoViewportControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;AAKhF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAA0B,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAM/E,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAGlF,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,eAAe,CAAC;IAC1C,uBAAuB,CAAC,EAAE,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAUD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,mBAAmB,GAAG,YAAY,CA+G3E"}
|
|
@@ -1,22 +1,78 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2025-2026 GoodData Corporation
|
|
3
|
+
import { useCallback, useMemo } from "react";
|
|
4
|
+
import { cloneDeep, set } from "lodash-es";
|
|
2
5
|
import { useIntl } from "react-intl";
|
|
6
|
+
import { CheckboxControl } from "./CheckboxControl.js";
|
|
3
7
|
import { DropdownControl } from "./DropdownControl.js";
|
|
4
8
|
import { messages } from "../../../locales.js";
|
|
5
9
|
import { pushpinViewportDropdownItems } from "../../constants/dropdowns.js";
|
|
6
10
|
import { getTranslatedDropdownItems } from "../../utils/translations.js";
|
|
7
11
|
function getViewportProperty(props) {
|
|
8
|
-
|
|
12
|
+
const viewport = props.properties?.controls?.["viewport"];
|
|
13
|
+
return {
|
|
14
|
+
...viewport,
|
|
15
|
+
area: viewport?.area ?? "auto",
|
|
16
|
+
};
|
|
9
17
|
}
|
|
10
18
|
/**
|
|
11
19
|
* Generic viewport control for geo charts (pushpin and area).
|
|
12
|
-
* Allows users to select a default viewport
|
|
20
|
+
* Allows users to select a default viewport and configure navigation interactions.
|
|
13
21
|
*
|
|
14
22
|
* @internal
|
|
15
23
|
*/
|
|
16
24
|
export function GeoViewportControl(props) {
|
|
17
25
|
const intl = useIntl();
|
|
18
|
-
const { area } = getViewportProperty(props);
|
|
19
|
-
const
|
|
20
|
-
|
|
26
|
+
const { area, navigation } = getViewportProperty(props);
|
|
27
|
+
const isPanEnabled = navigation?.pan ?? true;
|
|
28
|
+
const isZoomEnabled = navigation?.zoom ?? true;
|
|
29
|
+
const { disabled, properties, pushData, getCurrentMapView, beforeNavigationContent, className = "s-geo-viewport-control", } = props;
|
|
30
|
+
const isAdvancedViewportConfigEnabled = Boolean(getCurrentMapView);
|
|
31
|
+
const effectiveArea = !isAdvancedViewportConfigEnabled && area === "custom" ? "auto" : area;
|
|
32
|
+
const shouldRenderNavigationControls = isAdvancedViewportConfigEnabled;
|
|
33
|
+
const handleViewportPushData = useCallback((data) => {
|
|
34
|
+
const nextProperties = cloneDeep(data.properties ?? properties);
|
|
35
|
+
if (!nextProperties) {
|
|
36
|
+
pushData?.(data);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const selectedArea = nextProperties?.controls?.["viewport"]?.area;
|
|
40
|
+
if (selectedArea === "custom") {
|
|
41
|
+
const currentMapView = getCurrentMapView?.();
|
|
42
|
+
const hasValidSnapshot = Boolean(currentMapView?.center) && typeof currentMapView?.zoom === "number";
|
|
43
|
+
if (!hasValidSnapshot) {
|
|
44
|
+
set(nextProperties, "controls.viewport.area", "auto");
|
|
45
|
+
set(nextProperties, "controls.center", undefined);
|
|
46
|
+
set(nextProperties, "controls.zoom", undefined);
|
|
47
|
+
}
|
|
48
|
+
else if (currentMapView?.center) {
|
|
49
|
+
set(nextProperties, "controls.center", currentMapView.center);
|
|
50
|
+
set(nextProperties, "controls.zoom", currentMapView.zoom);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
set(nextProperties, "controls.center", undefined);
|
|
55
|
+
set(nextProperties, "controls.zoom", undefined);
|
|
56
|
+
}
|
|
57
|
+
pushData?.({
|
|
58
|
+
...data,
|
|
59
|
+
properties: nextProperties,
|
|
60
|
+
});
|
|
61
|
+
}, [getCurrentMapView, properties, pushData]);
|
|
62
|
+
const viewportItems = useMemo(() => {
|
|
63
|
+
if (isAdvancedViewportConfigEnabled) {
|
|
64
|
+
return pushpinViewportDropdownItems;
|
|
65
|
+
}
|
|
66
|
+
return pushpinViewportDropdownItems.filter((item) => item.value !== "custom");
|
|
67
|
+
}, [isAdvancedViewportConfigEnabled]);
|
|
68
|
+
const translatedViewportItems = useMemo(() => getTranslatedDropdownItems(viewportItems, intl), [viewportItems, intl]);
|
|
69
|
+
return (_jsxs("div", { className: `gd-geo-viewport-control ${className}`, children: [
|
|
70
|
+
_jsx(DropdownControl, { value: effectiveArea, valuePath: "viewport.area", labelText: messages["viewportAreaTitle"].id, disabled: disabled, showDisabledMessage: disabled, properties: properties, pushData: handleViewportPushData, items: translatedViewportItems }), beforeNavigationContent, shouldRenderNavigationControls ? (_jsxs("div", { className: "gd-geo-viewport-control__navigation", children: [
|
|
71
|
+
_jsxs("div", { className: "gd-geo-viewport-control__navigation-title", children: [
|
|
72
|
+
_jsx("span", { className: "input-label-text", children: intl.formatMessage({ id: messages["viewportNavigationTitle"].id }) }), _jsx("span", { className: "gd-geo-viewport-control__navigation-line" })
|
|
73
|
+
] }), _jsxs("div", { className: "gd-geo-viewport-control__navigation-options", children: [
|
|
74
|
+
_jsx(CheckboxControl, { valuePath: "viewport.navigation.pan", labelText: messages["viewportNavigationPan"].id, properties: properties, checked: isPanEnabled, disabled: disabled, showDisabledMessage: disabled, pushData: pushData, defaultValue: true }), _jsx(CheckboxControl, { valuePath: "viewport.navigation.zoom", labelText: messages["viewportNavigationZoom"].id, properties: properties, checked: isZoomEnabled, disabled: disabled, showDisabledMessage: disabled, pushData: pushData, defaultValue: true })
|
|
75
|
+
] })
|
|
76
|
+
] })) : null] }));
|
|
21
77
|
}
|
|
22
78
|
//# sourceMappingURL=GeoViewportControl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoViewportControl.js","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/GeoViewportControl.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"GeoViewportControl.js","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/GeoViewportControl.tsx"],"names":[],"mappings":";AAAA,qCAAqC;AAErC,OAAO,EAAqC,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAgBzE,SAAS,mBAAmB,CAAC,KAA0B,EAAqB;IACxE,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,CAAC;IAC1D,OAAO;QACH,GAAG,QAAQ;QACX,IAAI,EAAE,QAAQ,EAAE,IAAI,IAAI,MAAM;KACjC,CAAC;AAAA,CACL;AAED;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAA0B,EAAgB;IACzE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAA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,QAAQ,EAC7B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,sBAAsB,EAChC,KAAK,EAAE,uBAAuB,GAChC,EACD,uBAAuB,EACvB,8BAA8B,CAAC,CAAC,CAAC,CAC9B,eAAK,SAAS,EAAC,qCAAqC;oBAChD,eAAK,SAAS,EAAC,2CAA2C;4BACtD,eAAM,SAAS,EAAC,kBAAkB,YAC7B,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,yBAAyB,CAAC,CAAC,EAAE,EAAE,CAAC,GAChE,EACP,eAAM,SAAS,EAAC,0CAA0C,GAAG;4BAC3D,EACN,eAAK,SAAS,EAAC,6CAA6C;4BACxD,KAAC,eAAe,IACZ,SAAS,EAAC,yBAAyB,EACnC,SAAS,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAC,EAAE,EAC/C,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,QAAQ,EAClB,mBAAmB,EAAE,QAAQ,EAC7B,QAAQ,EAAE,QAAQ,EAClB,YAAY,SACd,EACF,KAAC,eAAe,IACZ,SAAS,EAAC,0BAA0B,EACpC,SAAS,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAAC,EAAE,EAChD,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,QAAQ,EAClB,mBAAmB,EAAE,QAAQ,EAC7B,QAAQ,EAAE,QAAQ,EAClB,YAAY,SACd;4BACA;oBACJ,CACT,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAC;AAAA,CACL"}
|
|
@@ -4,6 +4,8 @@ export interface IPushpinViewportControl {
|
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
properties: IGeoViewportControl["properties"];
|
|
6
6
|
pushData: IGeoViewportControl["pushData"];
|
|
7
|
+
getCurrentMapView?: IGeoViewportControl["getCurrentMapView"];
|
|
8
|
+
beforeNavigationContent?: IGeoViewportControl["beforeNavigationContent"];
|
|
7
9
|
}
|
|
8
10
|
/**
|
|
9
11
|
* Viewport control for pushpin charts.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushpinViewportControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PushpinViewportControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEvF,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAC9C,QAAQ,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"PushpinViewportControl.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PushpinViewportControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEvF,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAC9C,QAAQ,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAC1C,iBAAiB,CAAC,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;IAC7D,uBAAuB,CAAC,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,CAAC;CAC5E;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,uBAAuB,GAAG,YAAY,CAEnF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushpinViewportControl.js","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PushpinViewportControl.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAA4B,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"PushpinViewportControl.js","sourceRoot":"","sources":["../../../../src/internal/components/configurationControls/PushpinViewportControl.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAA4B,MAAM,yBAAyB,CAAC;AAUvF;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAA8B,EAAgB;IACjF,OAAO,KAAC,kBAAkB,OAAK,KAAK,EAAE,SAAS,EAAC,4BAA4B,GAAG,CAAC;AAAA,CACnF"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import type { GeoTileset } from "@gooddata/sdk-ui-geo";
|
|
3
|
-
import { ConfigurationPanelContent } from "./ConfigurationPanelContent.js";
|
|
3
|
+
import { ConfigurationPanelContent, type IConfigurationPanelContentProps } from "./ConfigurationPanelContent.js";
|
|
4
|
+
import { type ICurrentMapView } from "../configurationControls/GeoViewportControl.js";
|
|
5
|
+
interface IGeoAreaConfigurationPanelProps extends IConfigurationPanelContentProps {
|
|
6
|
+
getCurrentMapView?: () => ICurrentMapView;
|
|
7
|
+
}
|
|
4
8
|
/**
|
|
5
9
|
* Configuration panel for GeoAreaChart
|
|
6
10
|
*
|
|
@@ -13,7 +17,7 @@ import { ConfigurationPanelContent } from "./ConfigurationPanelContent.js";
|
|
|
13
17
|
*
|
|
14
18
|
* @internal
|
|
15
19
|
*/
|
|
16
|
-
export declare class GeoAreaConfigurationPanel extends ConfigurationPanelContent {
|
|
20
|
+
export declare class GeoAreaConfigurationPanel extends ConfigurationPanelContent<IGeoAreaConfigurationPanelProps> {
|
|
17
21
|
protected getControlProperties(): {
|
|
18
22
|
tileset: GeoTileset;
|
|
19
23
|
};
|
|
@@ -22,4 +26,5 @@ export declare class GeoAreaConfigurationPanel extends ConfigurationPanelContent
|
|
|
22
26
|
protected renderColorSection(): ReactNode;
|
|
23
27
|
protected isControlDisabled(): boolean;
|
|
24
28
|
}
|
|
29
|
+
export {};
|
|
25
30
|
//# sourceMappingURL=GeoAreaConfigurationPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoAreaConfigurationPanel.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/GeoAreaConfigurationPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,
|
|
1
|
+
{"version":3,"file":"GeoAreaConfigurationPanel.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/GeoAreaConfigurationPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EACH,yBAAyB,EACzB,KAAK,+BAA+B,EACvC,MAAM,gCAAgC,CAAC;AAMxC,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAE1G,UAAU,+BAAgC,SAAQ,+BAA+B;IAC7E,iBAAiB,CAAC,EAAE,MAAM,eAAe,CAAC;CAC7C;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,yBAA0B,SAAQ,yBAAyB,CAAC,+BAA+B,CAAC;IACrG,SAAS,CAAC,oBAAoB,IAAI;QAAE,OAAO,EAAE,UAAU,CAAA;KAAE,CAKxD;IAED,SAAS,CAAC,qBAAqB,IAAI,YAAY,CAkC9C;IAED,SAAS,CAAC,wBAAwB,IAAI,SAAS,CAgB9C;IAED,UAAmB,kBAAkB,IAAI,SAAS,CAiBjD;IAED,UAAmB,iBAAiB,IAAI,OAAO,CAG9C;CACJ"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { bucketIsEmpty, insightBucket } from "@gooddata/sdk-model";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
-
import { ConfigurationPanelContent } from "./ConfigurationPanelContent.js";
|
|
4
|
+
import { ConfigurationPanelContent, } from "./ConfigurationPanelContent.js";
|
|
5
5
|
import { messages } from "../../../locales.js";
|
|
6
|
+
import { isGeoBasemapConfigEnabled, isGeoChartsViewportConfigEnabled } from "../../constants/featureFlags.js";
|
|
7
|
+
import { BasemapDropdownControl } from "../configurationControls/BasemapDropdownControl.js";
|
|
6
8
|
import { ColorsSection } from "../configurationControls/colors/ColorsSection.js";
|
|
7
9
|
import { ConfigSection } from "../configurationControls/ConfigSection.js";
|
|
8
|
-
import { DropdownControl } from "../configurationControls/DropdownControl.js";
|
|
9
10
|
import { GeoViewportControl } from "../configurationControls/GeoViewportControl.js";
|
|
10
11
|
/**
|
|
11
12
|
* Configuration panel for GeoAreaChart
|
|
@@ -29,12 +30,9 @@ export class GeoAreaConfigurationPanel extends ConfigurationPanelContent {
|
|
|
29
30
|
renderViewportSection() {
|
|
30
31
|
const { properties, propertiesMeta, pushData, featureFlags } = this.props;
|
|
31
32
|
const { tileset } = this.getControlProperties();
|
|
32
|
-
const isBasemapConfigEnabled =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{ title: "Default", value: "default" },
|
|
36
|
-
{ title: "Satellite", value: "satellite" },
|
|
37
|
-
], disabled: this.isControlDisabled(), showDisabledMessage: this.isControlDisabled(), pushData: pushData })) : null] }));
|
|
33
|
+
const isBasemapConfigEnabled = isGeoBasemapConfigEnabled(featureFlags);
|
|
34
|
+
const isViewportConfigEnabled = isGeoChartsViewportConfigEnabled(featureFlags);
|
|
35
|
+
return (_jsx(ConfigSection, { id: "map_section", title: messages["pointsMapTitle"].id, propertiesMeta: propertiesMeta, properties: properties, pushData: pushData, children: _jsx(GeoViewportControl, { properties: properties, disabled: this.isControlDisabled(), pushData: pushData, getCurrentMapView: isViewportConfigEnabled ? this.props.getCurrentMapView : undefined, beforeNavigationContent: isBasemapConfigEnabled ? (_jsx(BasemapDropdownControl, { valuePath: "tileset", labelText: messages["basemapTitle"].id, properties: properties, value: tileset, disabled: this.isControlDisabled(), showDisabledMessage: this.isControlDisabled(), pushData: pushData })) : null }) }));
|
|
38
36
|
}
|
|
39
37
|
renderConfigurationPanel() {
|
|
40
38
|
return (_jsxs("div", { children: [this.renderLegendSection(), this.renderColorSection(), this.renderViewportSection(), this.renderInteractionsSection()] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoAreaConfigurationPanel.js","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/GeoAreaConfigurationPanel.tsx"],"names":[],"mappings":";AAIA,OAAO,EAA2B,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,
|
|
1
|
+
{"version":3,"file":"GeoAreaConfigurationPanel.js","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/GeoAreaConfigurationPanel.tsx"],"names":[],"mappings":";AAIA,OAAO,EAA2B,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EACH,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,yBAAyB,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AAC9G,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAwB,MAAM,gD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O,MAAM,KAAK,SAAS,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAAA,CACzD"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import type { GeoTileset } from "@gooddata/sdk-ui-geo";
|
|
3
|
-
import { ConfigurationPanelContent } from "./ConfigurationPanelContent.js";
|
|
4
|
-
|
|
3
|
+
import { ConfigurationPanelContent, type IConfigurationPanelContentProps } from "./ConfigurationPanelContent.js";
|
|
4
|
+
import { type ICurrentMapView } from "../configurationControls/GeoViewportControl.js";
|
|
5
|
+
interface IGeoPushpinConfigurationPanelProps extends IConfigurationPanelContentProps {
|
|
6
|
+
getCurrentMapView?: () => ICurrentMapView;
|
|
7
|
+
}
|
|
8
|
+
export declare class GeoPushpinConfigurationPanel extends ConfigurationPanelContent<IGeoPushpinConfigurationPanelProps> {
|
|
5
9
|
protected getControlProperties(): {
|
|
6
10
|
groupNearbyPoints: boolean;
|
|
7
11
|
tileset: GeoTileset;
|
|
@@ -14,4 +18,5 @@ export declare class GeoPushpinConfigurationPanel extends ConfigurationPanelCont
|
|
|
14
18
|
protected renderConfigurationPanel(): ReactNode;
|
|
15
19
|
protected renderColorSection(): ReactNode;
|
|
16
20
|
}
|
|
21
|
+
export {};
|
|
17
22
|
//# sourceMappingURL=GeoPushpinConfigurationPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoPushpinConfigurationPanel.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/GeoPushpinConfigurationPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAY1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,
|
|
1
|
+
{"version":3,"file":"GeoPushpinConfigurationPanel.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/GeoPushpinConfigurationPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAY1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EACH,yBAAyB,EACzB,KAAK,+BAA+B,EACvC,MAAM,gCAAgC,CAAC;AAaxC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAKtF,UAAU,kCAAmC,SAAQ,+BAA+B;IAChF,iBAAiB,CAAC,EAAE,MAAM,eAAe,CAAC;CAC7C;AAED,qBAAa,4BAA6B,SAAQ,yBAAyB,CAAC,kCAAkC,CAAC;IAC3G,SAAS,CAAC,oBAAoB,IAAI;QAAE,iBAAiB,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,UAAU,CAAA;KAAE,CAOpF;IAED,UAAmB,mBAAmB,IAAI,SAAS,CAelD;IAED,SAAS,CAAC,qBAAqB,IAAI,YAAY,CAmC9C;IAED,SAAS,CAAC,mBAAmB,IAAI,YAAY,CAgC5C;IAED,UAAmB,iBAAiB,IAAI,OAAO,CAG9C;IAED,SAAS,CAAC,mBAAmB,IAAI,MAAM,CAItC;IAED,SAAS,CAAC,wBAAwB,IAAI,SAAS,CAkB9C;IAED,UAAmB,kBAAkB,IAAI,SAAS,CAkBjD;CACJ"}
|
|
@@ -4,13 +4,14 @@ import { FormattedMessage } from "react-intl";
|
|
|
4
4
|
import { bucketIsEmpty, insightBucket, insightHasMeasures, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
6
6
|
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
|
|
7
|
-
import { ConfigurationPanelContent } from "./ConfigurationPanelContent.js";
|
|
7
|
+
import { ConfigurationPanelContent, } from "./ConfigurationPanelContent.js";
|
|
8
8
|
import { messages } from "../../../locales.js";
|
|
9
9
|
import { BUBBLE_ARROW_OFFSET_X, BUBBLE_ARROW_OFFSET_Y, HIDE_DELAY_DEFAULT, SHOW_DELAY_DEFAULT, } from "../../constants/bubble.js";
|
|
10
|
+
import { isGeoBasemapConfigEnabled, isGeoChartsViewportConfigEnabled } from "../../constants/featureFlags.js";
|
|
11
|
+
import { BasemapDropdownControl } from "../configurationControls/BasemapDropdownControl.js";
|
|
10
12
|
import { CheckboxControl } from "../configurationControls/CheckboxControl.js";
|
|
11
13
|
import { ColorsSection } from "../configurationControls/colors/ColorsSection.js";
|
|
12
14
|
import { ConfigSection } from "../configurationControls/ConfigSection.js";
|
|
13
|
-
import { DropdownControl } from "../configurationControls/DropdownControl.js";
|
|
14
15
|
import { LegendSection } from "../configurationControls/legend/LegendSection.js";
|
|
15
16
|
import { PushpinSizeControl } from "../configurationControls/PushpinSizeControl.js";
|
|
16
17
|
import { PushpinViewportControl } from "../configurationControls/PushpinViewportControl.js";
|
|
@@ -33,12 +34,9 @@ export class GeoPushpinConfigurationPanel extends ConfigurationPanelContent {
|
|
|
33
34
|
const { properties, propertiesMeta, pushData, featureFlags } = this.props;
|
|
34
35
|
const { tileset } = this.getControlProperties();
|
|
35
36
|
const isControlDisabled = this.isControlDisabled();
|
|
36
|
-
const isBasemapConfigEnabled =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
{ title: "Default", value: "default" },
|
|
40
|
-
{ title: "Satellite", value: "satellite" },
|
|
41
|
-
], disabled: isControlDisabled, showDisabledMessage: isControlDisabled, pushData: pushData })) : null] }));
|
|
37
|
+
const isBasemapConfigEnabled = isGeoBasemapConfigEnabled(featureFlags);
|
|
38
|
+
const isViewportConfigEnabled = isGeoChartsViewportConfigEnabled(featureFlags);
|
|
39
|
+
return (_jsx(ConfigSection, { id: "map_section", title: messages["pointsMapTitle"].id, propertiesMeta: propertiesMeta, properties: properties, pushData: pushData, children: _jsx(PushpinViewportControl, { properties: properties, disabled: isControlDisabled, pushData: pushData, getCurrentMapView: isViewportConfigEnabled ? this.props.getCurrentMapView : undefined, beforeNavigationContent: isBasemapConfigEnabled ? (_jsx(BasemapDropdownControl, { valuePath: "tileset", labelText: messages["basemapTitle"].id, properties: properties, value: tileset, disabled: isControlDisabled, showDisabledMessage: isControlDisabled, pushData: pushData })) : null }) }));
|
|
42
40
|
}
|
|
43
41
|
renderPointsSection() {
|
|
44
42
|
const { groupNearbyPoints } = this.getControlProperties();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoPushpinConfigurationPanel.js","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/GeoPushpinConfigurationPanel.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAEH,aAAa,EACb,aAAa,EACb,kBAAkB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,
|
|
1
|
+
{"version":3,"file":"GeoPushpinConfigurationPanel.js","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/GeoPushpinConfigurationPanel.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAEH,aAAa,EACb,aAAa,EACb,kBAAkB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,EACH,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EACH,qBAAqB,EACrB,qBAAq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MAAM,MAAM,GAAG,aAAa,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAEzD,OAAO,MAAM,KAAK,SAAS,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAAA,CACzD;AAED,SAAS,cAAc,CAAC,OAAuC,EAAW;IACtE,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,MAAM,MAAM,GAAG,aAAa,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAExD,OAAO,MAAM,KAAK,SAAS,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAAA,CACzD;AAED,SAAS,oBAAoB,CAAC,OAAuC,EAAW;IAC5E,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,MAAM,MAAM,GAAG,aAAa,CAAC,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAE5D,OAAO,MAAM,KAAK,SAAS,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAAA,CACzD;AAED,SAAS,mBAAmB,CAAC,OAAuC,EAAW;IAC3E,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,MAAM,MAAM,GAAG,aAAa,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAE3D,OAAO,MAAM,KAAK,SAAS,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAAA,CACzD"}
|
package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { PluggableBaseChart } from "../baseChart/PluggableBaseChart.js";
|
|
|
13
13
|
export declare class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
14
14
|
private backend;
|
|
15
15
|
private workspace;
|
|
16
|
+
private liveMapView;
|
|
16
17
|
constructor(props: IVisConstruct);
|
|
17
18
|
/**
|
|
18
19
|
* Extends reference point with geo area-specific configuration.
|
|
@@ -47,5 +48,8 @@ export declare class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
47
48
|
private buildPrimaryLayerContext;
|
|
48
49
|
private buildAdditionalLayerExecutions;
|
|
49
50
|
private shouldSkipLayer;
|
|
51
|
+
private handleCenterPositionChanged;
|
|
52
|
+
private handleZoomChanged;
|
|
53
|
+
private getCurrentMapView;
|
|
50
54
|
}
|
|
51
55
|
//# sourceMappingURL=PluggableGeoAreaChart.d.ts.map
|
package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableGeoAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EAM1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,mBAAmB,EAAqC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluggableGeoAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EAM1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,mBAAmB,EAAqC,MAAM,sBAAsB,CAAC;AAuBnG,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAA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yBtC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,2BAA2B,CAAgD;IACnF,OAAO,CAAC,iBAAiB,CAAsC;IAC/D,OAAO,CAAC,iBAAiB,CAA0E;CACtG"}
|
package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js
CHANGED
|
@@ -8,6 +8,7 @@ import { AREA_LAYER_ID, GeoChartInternal, buildLayerExecution, insightLayerToGeo
|
|
|
8
8
|
import { createAreaConfiguredBuckets, createAreaSortForSegment, getAreaItems, getColorMeasures, getSegmentItems, hasAreaMinimumData, sanitizeAreaMeasures, } from "./geoAreaBucketHelper.js";
|
|
9
9
|
import { buildAreaVisualizationConfig } from "./geoAreaConfigBuilder.js";
|
|
10
10
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
11
|
+
import { isGeoChartsViewportConfigEnabled } from "../../../constants/featureFlags.js";
|
|
11
12
|
import { GEOAREA_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
12
13
|
import { GEO_AREA_CHART_UICONFIG } from "../../../constants/uiConfig.js";
|
|
13
14
|
import { EmptyAfmSdkError, } from "../../../interfaces/Visualization.js";
|
|
@@ -19,6 +20,7 @@ import { removeSort } from "../../../utils/sort.js";
|
|
|
19
20
|
import { setGeoAreaUiConfig } from "../../../utils/uiConfigHelpers/geoAreaChartUiConfigHelper.js";
|
|
20
21
|
import { GeoAreaConfigurationPanel } from "../../configurationPanels/GeoAreaConfigurationPanel.js";
|
|
21
22
|
import { PluggableBaseChart } from "../baseChart/PluggableBaseChart.js";
|
|
23
|
+
import { LiveMapViewTracker } from "../geoCommon/liveMapViewTracking.js";
|
|
22
24
|
/**
|
|
23
25
|
* Geo area charts support max 1 measure for color
|
|
24
26
|
*/
|
|
@@ -33,6 +35,7 @@ const NUMBER_MEASURES_IN_BUCKETS_LIMIT = 1;
|
|
|
33
35
|
export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
34
36
|
backend;
|
|
35
37
|
workspace;
|
|
38
|
+
liveMapView = new LiveMapViewTracker();
|
|
36
39
|
constructor(props) {
|
|
37
40
|
super(props);
|
|
38
41
|
this.type = VisualizationTypes.CHOROPLETH;
|
|
@@ -141,8 +144,10 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
141
144
|
}
|
|
142
145
|
renderConfigurationPanel(insight, options) {
|
|
143
146
|
const configPanelElement = this.getConfigPanelElement();
|
|
147
|
+
const isViewportConfigEnabled = isGeoChartsViewportConfigEnabled(this.featureFlags);
|
|
148
|
+
this.liveMapView.resetIfInsightChanged(insight);
|
|
144
149
|
if (configPanelElement) {
|
|
145
|
-
this.renderFun(_jsx(GeoAreaConfigurationPanel, { locale: this.locale, pushData: this.pushData, properties: this.visualizationProperties, references: this.references, propertiesMeta: this.propertiesMeta, insight: insight, colors: this.colors, type: this.type, isError: this.getIsError(), isLoading: this.isLoading, featureFlags: this.featureFlags, permissions: this.permissions, configurationPanelRenderers: options.custom?.configurationPanelRenderers }), configPanelElement);
|
|
150
|
+
this.renderFun(_jsx(GeoAreaConfigurationPanel, { locale: this.locale, pushData: this.pushData, properties: this.visualizationProperties, references: this.references, propertiesMeta: this.propertiesMeta, insight: insight, colors: this.colors, type: this.type, isError: this.getIsError(), isLoading: this.isLoading, featureFlags: this.featureFlags, permissions: this.permissions, configurationPanelRenderers: options.custom?.configurationPanelRenderers, getCurrentMapView: isViewportConfigEnabled ? this.getCurrentMapView : undefined }), configPanelElement);
|
|
146
151
|
}
|
|
147
152
|
}
|
|
148
153
|
/**
|
|
@@ -165,6 +170,8 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
165
170
|
if (!ctx) {
|
|
166
171
|
return;
|
|
167
172
|
}
|
|
173
|
+
this.liveMapView.resetIfInsightChanged(insight);
|
|
174
|
+
const isViewportConfigEnabled = isGeoChartsViewportConfigEnabled(this.featureFlags);
|
|
168
175
|
const { config } = ctx;
|
|
169
176
|
const primaryExecution = this.getExecution(options, insight, executionFactory);
|
|
170
177
|
const additionalLayerExecutions = this.getExecutions(options, insight, executionFactory) ?? [];
|
|
@@ -185,6 +192,8 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
185
192
|
onExportReady: this.onExportReady,
|
|
186
193
|
onLoadingChanged: this.onLoadingChanged,
|
|
187
194
|
onDrill: this.onDrill,
|
|
195
|
+
onCenterPositionChanged: isViewportConfigEnabled ? this.handleCenterPositionChanged : undefined,
|
|
196
|
+
onZoomChanged: isViewportConfigEnabled ? this.handleZoomChanged : undefined,
|
|
188
197
|
};
|
|
189
198
|
this.renderFun(_jsx(GeoChartInternal, { ...geoChartProps }), this.getElement());
|
|
190
199
|
}
|
|
@@ -240,5 +249,8 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
240
249
|
// Skip layers when latitude or longitude is missing
|
|
241
250
|
return !layer.latitude || !layer.longitude;
|
|
242
251
|
}
|
|
252
|
+
handleCenterPositionChanged = this.liveMapView.handleCenterPositionChanged;
|
|
253
|
+
handleZoomChanged = this.liveMapView.handleZoomChanged;
|
|
254
|
+
getCurrentMapView = () => this.liveMapView.getCurrentMapView(this.visualizationProperties);
|
|
243
255
|
}
|
|
244
256
|
//# sourceMappingURL=PluggableGeoAreaChart.js.map
|