@gooddata/sdk-ui-geo 11.6.0-alpha.6 → 11.6.0-alpha.7
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/esm/next/GeoPushpinChartNext.d.ts +12 -0
- package/esm/next/GeoPushpinChartNext.d.ts.map +1 -0
- package/esm/next/GeoPushpinChartNext.js +42 -0
- package/esm/next/GeoPushpinChartNext.js.map +1 -0
- package/esm/next/RenderGeoPushpinChart.d.ts +15 -0
- package/esm/next/RenderGeoPushpinChart.d.ts.map +1 -0
- package/esm/next/RenderGeoPushpinChart.js +97 -0
- package/esm/next/RenderGeoPushpinChart.js.map +1 -0
- package/esm/next/components/ErrorComponent.d.ts +13 -0
- package/esm/next/components/ErrorComponent.d.ts.map +1 -0
- package/esm/next/components/ErrorComponent.js +19 -0
- package/esm/next/components/ErrorComponent.js.map +1 -0
- package/esm/next/components/LoadingComponent.d.ts +5 -0
- package/esm/next/components/LoadingComponent.d.ts.map +1 -0
- package/esm/next/components/LoadingComponent.js +13 -0
- package/esm/next/components/LoadingComponent.js.map +1 -0
- package/esm/next/components/legends/Legend.d.ts +28 -0
- package/esm/next/components/legends/Legend.d.ts.map +1 -0
- package/esm/next/components/legends/Legend.js +54 -0
- package/esm/next/components/legends/Legend.js.map +1 -0
- package/esm/next/components/legends/LegendBody.d.ts +12 -0
- package/esm/next/components/legends/LegendBody.d.ts.map +1 -0
- package/esm/next/components/legends/LegendBody.js +30 -0
- package/esm/next/components/legends/LegendBody.js.map +1 -0
- package/esm/next/components/legends/legendPropsAdapter.d.ts +14 -0
- package/esm/next/components/legends/legendPropsAdapter.d.ts.map +1 -0
- package/esm/next/components/legends/legendPropsAdapter.js +34 -0
- package/esm/next/components/legends/legendPropsAdapter.js.map +1 -0
- package/esm/next/components/legends/types.d.ts +16 -0
- package/esm/next/components/legends/types.d.ts.map +1 -0
- package/esm/next/components/legends/types.js +3 -0
- package/esm/next/components/legends/types.js.map +1 -0
- package/esm/next/constants/geoChart.d.ts +108 -0
- package/esm/next/constants/geoChart.d.ts.map +1 -0
- package/esm/next/constants/geoChart.js +130 -0
- package/esm/next/constants/geoChart.js.map +1 -0
- package/esm/next/constants/internal.d.ts +19 -0
- package/esm/next/constants/internal.d.ts.map +1 -0
- package/esm/next/constants/internal.js +20 -0
- package/esm/next/constants/internal.js.map +1 -0
- package/esm/next/context/GeoDataContext.d.ts +69 -0
- package/esm/next/context/GeoDataContext.d.ts.map +1 -0
- package/esm/next/context/GeoDataContext.js +80 -0
- package/esm/next/context/GeoDataContext.js.map +1 -0
- package/esm/next/context/GeoLegendContext.d.ts +78 -0
- package/esm/next/context/GeoLegendContext.d.ts.map +1 -0
- package/esm/next/context/GeoLegendContext.js +74 -0
- package/esm/next/context/GeoLegendContext.js.map +1 -0
- package/esm/next/context/GeoPushpinPropsContext.d.ts +47 -0
- package/esm/next/context/GeoPushpinPropsContext.d.ts.map +1 -0
- package/esm/next/context/GeoPushpinPropsContext.js +81 -0
- package/esm/next/context/GeoPushpinPropsContext.js.map +1 -0
- package/esm/next/context/InitialExecutionContext.d.ts +43 -0
- package/esm/next/context/InitialExecutionContext.d.ts.map +1 -0
- package/esm/next/context/InitialExecutionContext.js +45 -0
- package/esm/next/context/InitialExecutionContext.js.map +1 -0
- package/esm/next/context/MapInstanceContext.d.ts +42 -0
- package/esm/next/context/MapInstanceContext.d.ts.map +1 -0
- package/esm/next/context/MapInstanceContext.js +62 -0
- package/esm/next/context/MapInstanceContext.js.map +1 -0
- package/esm/next/features/clustering/clustering.d.ts +23 -0
- package/esm/next/features/clustering/clustering.d.ts.map +1 -0
- package/esm/next/features/clustering/clustering.js +26 -0
- package/esm/next/features/clustering/clustering.js.map +1 -0
- package/esm/next/features/coloring/colorStrategy.d.ts +22 -0
- package/esm/next/features/coloring/colorStrategy.d.ts.map +1 -0
- package/esm/next/features/coloring/colorStrategy.js +83 -0
- package/esm/next/features/coloring/colorStrategy.js.map +1 -0
- package/esm/next/features/coloring/palette.d.ts +81 -0
- package/esm/next/features/coloring/palette.d.ts.map +1 -0
- package/esm/next/features/coloring/palette.js +233 -0
- package/esm/next/features/coloring/palette.js.map +1 -0
- package/esm/next/features/data/dataSourceManagement.d.ts +20 -0
- package/esm/next/features/data/dataSourceManagement.d.ts.map +1 -0
- package/esm/next/features/data/dataSourceManagement.js +30 -0
- package/esm/next/features/data/dataSourceManagement.js.map +1 -0
- package/esm/next/features/data/transformation.d.ts +99 -0
- package/esm/next/features/data/transformation.d.ts.map +1 -0
- package/esm/next/features/data/transformation.js +369 -0
- package/esm/next/features/data/transformation.js.map +1 -0
- package/esm/next/features/map/initializeMap.d.ts +30 -0
- package/esm/next/features/map/initializeMap.d.ts.map +1 -0
- package/esm/next/features/map/initializeMap.js +58 -0
- package/esm/next/features/map/initializeMap.js.map +1 -0
- package/esm/next/features/map/layerManagement.d.ts +51 -0
- package/esm/next/features/map/layerManagement.d.ts.map +1 -0
- package/esm/next/features/map/layerManagement.js +95 -0
- package/esm/next/features/map/layerManagement.js.map +1 -0
- package/esm/next/features/map/viewportManagement.d.ts +76 -0
- package/esm/next/features/map/viewportManagement.d.ts.map +1 -0
- package/esm/next/features/map/viewportManagement.js +193 -0
- package/esm/next/features/map/viewportManagement.js.map +1 -0
- package/esm/next/features/size/calculations.d.ts +32 -0
- package/esm/next/features/size/calculations.d.ts.map +1 -0
- package/esm/next/features/size/calculations.js +37 -0
- package/esm/next/features/size/calculations.js.map +1 -0
- package/esm/next/features/tooltip/formatting.d.ts +28 -0
- package/esm/next/features/tooltip/formatting.d.ts.map +1 -0
- package/esm/next/features/tooltip/formatting.js +51 -0
- package/esm/next/features/tooltip/formatting.js.map +1 -0
- package/esm/next/features/tooltip/tooltipManagement.d.ts +47 -0
- package/esm/next/features/tooltip/tooltipManagement.d.ts.map +1 -0
- package/esm/next/features/tooltip/tooltipManagement.js +73 -0
- package/esm/next/features/tooltip/tooltipManagement.js.map +1 -0
- package/esm/next/hooks/init/useInitExecution.d.ts +29 -0
- package/esm/next/hooks/init/useInitExecution.d.ts.map +1 -0
- package/esm/next/hooks/init/useInitExecution.js +91 -0
- package/esm/next/hooks/init/useInitExecution.js.map +1 -0
- package/esm/next/hooks/init/useInitExecutionResult.d.ts +17 -0
- package/esm/next/hooks/init/useInitExecutionResult.d.ts.map +1 -0
- package/esm/next/hooks/init/useInitExecutionResult.js +44 -0
- package/esm/next/hooks/init/useInitExecutionResult.js.map +1 -0
- package/esm/next/hooks/legend/useLegendConfig.d.ts +35 -0
- package/esm/next/hooks/legend/useLegendConfig.d.ts.map +1 -0
- package/esm/next/hooks/legend/useLegendConfig.js +25 -0
- package/esm/next/hooks/legend/useLegendConfig.js.map +1 -0
- package/esm/next/hooks/legend/useLegendDetails.d.ts +27 -0
- package/esm/next/hooks/legend/useLegendDetails.d.ts.map +1 -0
- package/esm/next/hooks/legend/useLegendDetails.js +39 -0
- package/esm/next/hooks/legend/useLegendDetails.js.map +1 -0
- package/esm/next/hooks/legend/useLegendItemClick.d.ts +16 -0
- package/esm/next/hooks/legend/useLegendItemClick.d.ts.map +1 -0
- package/esm/next/hooks/legend/useLegendItemClick.js +23 -0
- package/esm/next/hooks/legend/useLegendItemClick.js.map +1 -0
- package/esm/next/hooks/legend/useLegendItems.d.ts +27 -0
- package/esm/next/hooks/legend/useLegendItems.d.ts.map +1 -0
- package/esm/next/hooks/legend/useLegendItems.js +54 -0
- package/esm/next/hooks/legend/useLegendItems.js.map +1 -0
- package/esm/next/hooks/legend/useLegendItemsWithState.d.ts +21 -0
- package/esm/next/hooks/legend/useLegendItemsWithState.d.ts.map +1 -0
- package/esm/next/hooks/legend/useLegendItemsWithState.js +42 -0
- package/esm/next/hooks/legend/useLegendItemsWithState.js.map +1 -0
- package/esm/next/hooks/legend/useLegendProps.d.ts +53 -0
- package/esm/next/hooks/legend/useLegendProps.d.ts.map +1 -0
- package/esm/next/hooks/legend/useLegendProps.js +38 -0
- package/esm/next/hooks/legend/useLegendProps.js.map +1 -0
- package/esm/next/hooks/legend/useSelectedSegments.d.ts +17 -0
- package/esm/next/hooks/legend/useSelectedSegments.d.ts.map +1 -0
- package/esm/next/hooks/legend/useSelectedSegments.js +32 -0
- package/esm/next/hooks/legend/useSelectedSegments.js.map +1 -0
- package/esm/next/hooks/map/useAfterRender.d.ts +19 -0
- package/esm/next/hooks/map/useAfterRender.d.ts.map +1 -0
- package/esm/next/hooks/map/useAfterRender.js +99 -0
- package/esm/next/hooks/map/useAfterRender.js.map +1 -0
- package/esm/next/hooks/map/useMapCallbacks.d.ts +20 -0
- package/esm/next/hooks/map/useMapCallbacks.d.ts.map +1 -0
- package/esm/next/hooks/map/useMapCallbacks.js +44 -0
- package/esm/next/hooks/map/useMapCallbacks.js.map +1 -0
- package/esm/next/hooks/map/useMapDataSync.d.ts +44 -0
- package/esm/next/hooks/map/useMapDataSync.d.ts.map +1 -0
- package/esm/next/hooks/map/useMapDataSync.js +87 -0
- package/esm/next/hooks/map/useMapDataSync.js.map +1 -0
- package/esm/next/hooks/map/useMapInitialization.d.ts +56 -0
- package/esm/next/hooks/map/useMapInitialization.d.ts.map +1 -0
- package/esm/next/hooks/map/useMapInitialization.js +121 -0
- package/esm/next/hooks/map/useMapInitialization.js.map +1 -0
- package/esm/next/hooks/map/useTooltipHandlers.d.ts +22 -0
- package/esm/next/hooks/map/useTooltipHandlers.d.ts.map +1 -0
- package/esm/next/hooks/map/useTooltipHandlers.js +28 -0
- package/esm/next/hooks/map/useTooltipHandlers.js.map +1 -0
- package/esm/next/hooks/shared/useGeoDataTransformation.d.ts +23 -0
- package/esm/next/hooks/shared/useGeoDataTransformation.d.ts.map +1 -0
- package/esm/next/hooks/shared/useGeoDataTransformation.js +37 -0
- package/esm/next/hooks/shared/useGeoDataTransformation.js.map +1 -0
- package/esm/next/hooks/shared/usePushData.d.ts +8 -0
- package/esm/next/hooks/shared/usePushData.d.ts.map +1 -0
- package/esm/next/hooks/shared/usePushData.js +36 -0
- package/esm/next/hooks/shared/usePushData.js.map +1 -0
- package/esm/next/hooks/shared/useResolvedProps.d.ts +16 -0
- package/esm/next/hooks/shared/useResolvedProps.d.ts.map +1 -0
- package/esm/next/hooks/shared/useResolvedProps.js +40 -0
- package/esm/next/hooks/shared/useResolvedProps.js.map +1 -0
- package/esm/next/index.d.ts +5 -0
- package/esm/next/index.d.ts.map +1 -0
- package/esm/next/index.js +3 -0
- package/esm/next/index.js.map +1 -0
- package/esm/next/providers/maplibre/maplibreConfig.d.ts +68 -0
- package/esm/next/providers/maplibre/maplibreConfig.d.ts.map +1 -0
- package/esm/next/providers/maplibre/maplibreConfig.js +104 -0
- package/esm/next/providers/maplibre/maplibreConfig.js.map +1 -0
- package/esm/next/providers/maplibre/maplibreDataLayers.d.ts +51 -0
- package/esm/next/providers/maplibre/maplibreDataLayers.d.ts.map +1 -0
- package/esm/next/providers/maplibre/maplibreDataLayers.js +195 -0
- package/esm/next/providers/maplibre/maplibreDataLayers.js.map +1 -0
- package/esm/next/providers/maplibre/maplibreDataSource.d.ts +28 -0
- package/esm/next/providers/maplibre/maplibreDataSource.d.ts.map +1 -0
- package/esm/next/providers/maplibre/maplibreDataSource.js +117 -0
- package/esm/next/providers/maplibre/maplibreDataSource.js.map +1 -0
- package/esm/next/providers/maplibre/maplibreTooltip.d.ts +54 -0
- package/esm/next/providers/maplibre/maplibreTooltip.d.ts.map +1 -0
- package/esm/next/providers/maplibre/maplibreTooltip.js +158 -0
- package/esm/next/providers/maplibre/maplibreTooltip.js.map +1 -0
- package/esm/next/providers/maplibre/maplibreViewport.d.ts +45 -0
- package/esm/next/providers/maplibre/maplibreViewport.d.ts.map +1 -0
- package/esm/next/providers/maplibre/maplibreViewport.js +92 -0
- package/esm/next/providers/maplibre/maplibreViewport.js.map +1 -0
- package/esm/next/providers/maplibre/style.d.ts +3 -0
- package/esm/next/providers/maplibre/style.d.ts.map +1 -0
- package/esm/next/providers/maplibre/style.js +8361 -0
- package/esm/next/providers/maplibre/style.js.map +1 -0
- package/esm/next/types/config.d.ts +89 -0
- package/esm/next/types/config.d.ts.map +1 -0
- package/esm/next/types/config.js +3 -0
- package/esm/next/types/config.js.map +1 -0
- package/esm/next/types/internal.d.ts +17 -0
- package/esm/next/types/internal.d.ts.map +1 -0
- package/esm/next/types/internal.js +3 -0
- package/esm/next/types/internal.js.map +1 -0
- package/esm/next/types/mapProvider.d.ts +122 -0
- package/esm/next/types/mapProvider.d.ts.map +1 -0
- package/esm/next/types/mapProvider.js +3 -0
- package/esm/next/types/mapProvider.js.map +1 -0
- package/esm/next/types/public.d.ts +84 -0
- package/esm/next/types/public.d.ts.map +1 -0
- package/esm/next/types/public.js +15 -0
- package/esm/next/types/public.js.map +1 -0
- package/esm/next/types/shared.d.ts +209 -0
- package/esm/next/types/shared.d.ts.map +1 -0
- package/esm/next/types/shared.js +3 -0
- package/esm/next/types/shared.js.map +1 -0
- package/esm/next/utils/mapLocale.d.ts +26 -0
- package/esm/next/utils/mapLocale.d.ts.map +1 -0
- package/esm/next/utils/mapLocale.js +22 -0
- package/esm/next/utils/mapLocale.js.map +1 -0
- package/package.json +13 -10
- package/styles/css/main.css +925 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/_geo-pushpin-next-legend.scss +166 -0
- package/styles/scss/_maplibre-overrides.scss +64 -0
- package/styles/scss/geo-pushpin-next.scss +58 -0
- package/styles/scss/main.scss +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IAttribute } from "@gooddata/sdk-model";
|
|
2
|
+
import { IDataVisualizationProps } from "@gooddata/sdk-ui";
|
|
3
|
+
import { IGeoPushpinChartNextBaseProps } from "./public.js";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface ICoreGeoPushpinChartNextProps extends IGeoPushpinChartNextBaseProps, IDataVisualizationProps {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export interface IGeoPushpinChartNextResolvedProps extends IGeoPushpinChartNextBaseProps {
|
|
13
|
+
location?: IAttribute;
|
|
14
|
+
latitude?: IAttribute;
|
|
15
|
+
longitude?: IAttribute;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/next/types/internal.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,6BACb,SAAQ,6BAA6B,EACjC,uBAAuB;CAAG;AAElC;;GAEG;AACH,MAAM,WAAW,iCAAkC,SAAQ,6BAA6B;IACpF,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/next/types/internal.ts"],"names":[],"mappings":"AAAA,gCAAgC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { StyleSpecification } from "maplibre-gl";
|
|
2
|
+
import { IGeoPushpinChartNextConfig } from "./config.js";
|
|
3
|
+
import { IGeoLngLat, IGeoLngLatBounds } from "./shared.js";
|
|
4
|
+
/**
|
|
5
|
+
* Supported map event types
|
|
6
|
+
*
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export type MapEventType = "click" | "mousemove" | "mouseenter" | "mouseleave" | "load" | "error" | "moveend" | "zoomend";
|
|
10
|
+
/**
|
|
11
|
+
* Map event data passed to event handlers
|
|
12
|
+
*
|
|
13
|
+
* @alpha
|
|
14
|
+
*/
|
|
15
|
+
export interface IMapEvent {
|
|
16
|
+
/**
|
|
17
|
+
* Type of the event
|
|
18
|
+
*/
|
|
19
|
+
type: MapEventType;
|
|
20
|
+
/**
|
|
21
|
+
* Geographic coordinates where the event occurred (if applicable)
|
|
22
|
+
*/
|
|
23
|
+
lngLat?: IGeoLngLat;
|
|
24
|
+
/**
|
|
25
|
+
* Screen coordinates where the event occurred (if applicable)
|
|
26
|
+
*/
|
|
27
|
+
point?: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Feature that was interacted with (if applicable)
|
|
33
|
+
*/
|
|
34
|
+
feature?: GeoJSON.Feature;
|
|
35
|
+
/**
|
|
36
|
+
* Original event from the underlying map library
|
|
37
|
+
*/
|
|
38
|
+
originalEvent?: unknown;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Event handler function type for map events
|
|
42
|
+
*
|
|
43
|
+
* @alpha
|
|
44
|
+
*/
|
|
45
|
+
export type MapEventHandler = (event: IMapEvent) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Configuration options for map initialization
|
|
48
|
+
*
|
|
49
|
+
* @alpha
|
|
50
|
+
*/
|
|
51
|
+
export interface IMapOptions {
|
|
52
|
+
/**
|
|
53
|
+
* HTML container element for the map
|
|
54
|
+
*/
|
|
55
|
+
container: HTMLElement;
|
|
56
|
+
/**
|
|
57
|
+
* Initial center position of the map
|
|
58
|
+
*/
|
|
59
|
+
center?: IGeoLngLat;
|
|
60
|
+
/**
|
|
61
|
+
* Initial zoom level (0-22)
|
|
62
|
+
*/
|
|
63
|
+
zoom?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Initial bounds to fit the map to
|
|
66
|
+
*/
|
|
67
|
+
bounds?: IGeoLngLatBounds;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the map should be interactive (pan, zoom, etc.)
|
|
70
|
+
*/
|
|
71
|
+
interactive?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Whether to enable cooperative gestures (requires modifier key for scroll zoom)
|
|
74
|
+
*/
|
|
75
|
+
cooperativeGestures?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Map style URL or style object (provider-specific)
|
|
78
|
+
*/
|
|
79
|
+
style?: string | StyleSpecification;
|
|
80
|
+
/**
|
|
81
|
+
* Access token for the map provider (if required)
|
|
82
|
+
*/
|
|
83
|
+
accessToken?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Configuration for map rendering and behavior
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* This extends the IGeoPushpinChartNextConfig with additional runtime configuration options.
|
|
90
|
+
*
|
|
91
|
+
* @alpha
|
|
92
|
+
*/
|
|
93
|
+
export interface IMapConfig extends IGeoPushpinChartNextConfig {
|
|
94
|
+
/**
|
|
95
|
+
* Whether to show labels on map features
|
|
96
|
+
*/
|
|
97
|
+
showLabels?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Whether to enable clustering of nearby points
|
|
100
|
+
*/
|
|
101
|
+
clusteringEnabled?: boolean;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Viewport configuration for the map
|
|
105
|
+
*
|
|
106
|
+
* @alpha
|
|
107
|
+
*/
|
|
108
|
+
export interface IMapViewport {
|
|
109
|
+
/**
|
|
110
|
+
* Center position of the viewport
|
|
111
|
+
*/
|
|
112
|
+
center: IGeoLngLat;
|
|
113
|
+
/**
|
|
114
|
+
* Zoom level of the viewport (0-22)
|
|
115
|
+
*/
|
|
116
|
+
zoom: number;
|
|
117
|
+
/**
|
|
118
|
+
* Bounds of the viewport
|
|
119
|
+
*/
|
|
120
|
+
bounds?: IGeoLngLatBounds;
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=mapProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapProvider.d.ts","sourceRoot":"","sources":["../../../src/next/types/mapProvider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE3D;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAClB,OAAO,GACP,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,MAAM,GACN,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEhB;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE;QACJ,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IAEF;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;IAE1B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,SAAS,EAAE,WAAW,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC;IAEpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,UAAW,SAAQ,0BAA0B;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapProvider.js","sourceRoot":"","sources":["../../../src/next/types/mapProvider.ts"],"names":[],"mappings":"AAAA,gCAAgC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import { IAttribute, IAttributeOrMeasure, IExecutionConfig, INullableFilter, ISortItem, ITheme } from "@gooddata/sdk-model";
|
|
3
|
+
import { IVisualizationCallbacks, IVisualizationProps } from "@gooddata/sdk-ui";
|
|
4
|
+
import { IGeoPushpinChartNextConfig } from "./config.js";
|
|
5
|
+
import { CenterPositionChangedCallback, ZoomChangedCallback } from "./shared.js";
|
|
6
|
+
/**
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export interface IGeoPushpinChartNextBaseProps extends IVisualizationProps, IVisualizationCallbacks {
|
|
10
|
+
/**
|
|
11
|
+
* Backend to execute against
|
|
12
|
+
*/
|
|
13
|
+
backend?: IAnalyticalBackend;
|
|
14
|
+
/**
|
|
15
|
+
* Workspace to execute in
|
|
16
|
+
*/
|
|
17
|
+
workspace?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies how to segment data (color)
|
|
20
|
+
*/
|
|
21
|
+
segmentBy?: IAttribute;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the measure that determines the size of the pins
|
|
24
|
+
*/
|
|
25
|
+
size?: IAttributeOrMeasure;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the measure that determines color of the pins
|
|
28
|
+
*/
|
|
29
|
+
color?: IAttributeOrMeasure;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies filters to apply to the data
|
|
32
|
+
*/
|
|
33
|
+
filters?: INullableFilter[];
|
|
34
|
+
/**
|
|
35
|
+
* Specifies how to sort the data
|
|
36
|
+
*/
|
|
37
|
+
sortBy?: ISortItem[];
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the theme to use for the chart
|
|
40
|
+
*/
|
|
41
|
+
theme?: ITheme;
|
|
42
|
+
/**
|
|
43
|
+
* Geo-specific configuration
|
|
44
|
+
*/
|
|
45
|
+
config?: IGeoPushpinChartNextConfig;
|
|
46
|
+
/**
|
|
47
|
+
* Execution configuration
|
|
48
|
+
*/
|
|
49
|
+
execConfig?: IExecutionConfig;
|
|
50
|
+
/**
|
|
51
|
+
* Called when map center position changes
|
|
52
|
+
*/
|
|
53
|
+
onCenterPositionChanged?: CenterPositionChangedCallback;
|
|
54
|
+
/**
|
|
55
|
+
* Called when map zoom changes
|
|
56
|
+
*/
|
|
57
|
+
onZoomChanged?: ZoomChangedCallback;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @alpha
|
|
61
|
+
*/
|
|
62
|
+
export interface IGeoPushpinChartNextLocationProps extends IGeoPushpinChartNextBaseProps {
|
|
63
|
+
location: IAttribute;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @alpha
|
|
67
|
+
*/
|
|
68
|
+
export declare function isGeoPushpinChartNextLocationProps(props: IGeoPushpinChartNextProps): props is IGeoPushpinChartNextLocationProps;
|
|
69
|
+
/**
|
|
70
|
+
* @alpha
|
|
71
|
+
*/
|
|
72
|
+
export interface IGeoPushpinChartNextLatitudeLongitudeProps extends IGeoPushpinChartNextBaseProps {
|
|
73
|
+
latitude: IAttribute;
|
|
74
|
+
longitude: IAttribute;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @alpha
|
|
78
|
+
*/
|
|
79
|
+
export declare function isGeoPushpinChartNextLatitudeLongitudeProps(props: IGeoPushpinChartNextProps): props is IGeoPushpinChartNextLatitudeLongitudeProps;
|
|
80
|
+
/**
|
|
81
|
+
* @alpha
|
|
82
|
+
*/
|
|
83
|
+
export type IGeoPushpinChartNextProps = IGeoPushpinChartNextLocationProps | IGeoPushpinChartNextLatitudeLongitudeProps;
|
|
84
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/next/types/public.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACH,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,MAAM,EACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEhF,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB,EAAE,uBAAuB;IAC/F;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAE5B;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAE5B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,0BAA0B,CAAC;IAEpC;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B;;OAEG;IACH,uBAAuB,CAAC,EAAE,6BAA6B,CAAC;IAExD;;OAEG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,iCAAkC,SAAQ,6BAA6B;IACpF,QAAQ,EAAE,UAAU,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAC9C,KAAK,EAAE,yBAAyB,GACjC,KAAK,IAAI,iCAAiC,CAE5C;AAED;;GAEG;AACH,MAAM,WAAW,0CAA2C,SAAQ,6BAA6B;IAC7F,QAAQ,EAAE,UAAU,CAAC;IACrB,SAAS,EAAE,UAAU,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,2CAA2C,CACvD,KAAK,EAAE,yBAAyB,GACjC,KAAK,IAAI,0CAA0C,CAErD;AAED;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAC/B,iCAAiC,GACjC,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { isEmpty } from "lodash-es";
|
|
3
|
+
/**
|
|
4
|
+
* @alpha
|
|
5
|
+
*/
|
|
6
|
+
export function isGeoPushpinChartNextLocationProps(props) {
|
|
7
|
+
return !isEmpty(props) && "location" in props;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @alpha
|
|
11
|
+
*/
|
|
12
|
+
export function isGeoPushpinChartNextLatitudeLongitudeProps(props) {
|
|
13
|
+
return !isEmpty(props) && "latitude" in props && "longitude" in props;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/next/types/public.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwFpC;;GAEG;AACH,MAAM,UAAU,kCAAkC,CAC9C,KAAgC;IAEhC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,UAAU,IAAI,KAAK,CAAC;AAClD,CAAC;AAUD;;GAEG;AACH,MAAM,UAAU,2CAA2C,CACvD,KAAgC;IAEhC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,UAAU,IAAI,KAAK,IAAI,WAAW,IAAI,KAAK,CAAC;AAC1E,CAAC"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared type definitions for GeoPushpinChartNext
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* These types are copied from the legacy implementation and modernized for the new implementation.
|
|
6
|
+
* They represent core data structures used throughout the geo chart components.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Represents geographic coordinates in latitude/longitude format
|
|
12
|
+
*
|
|
13
|
+
* @alpha
|
|
14
|
+
*/
|
|
15
|
+
export interface IGeoLngLat {
|
|
16
|
+
/**
|
|
17
|
+
* Latitude coordinate (-90 to 90)
|
|
18
|
+
*/
|
|
19
|
+
lat: number;
|
|
20
|
+
/**
|
|
21
|
+
* Longitude coordinate (-180 to 180)
|
|
22
|
+
*/
|
|
23
|
+
lng: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents geographic bounds defined by north-east and south-west coordinates
|
|
27
|
+
*
|
|
28
|
+
* @alpha
|
|
29
|
+
*/
|
|
30
|
+
export interface IGeoLngLatBounds {
|
|
31
|
+
/**
|
|
32
|
+
* North-east corner of the bounds
|
|
33
|
+
*/
|
|
34
|
+
northEast: IGeoLngLat;
|
|
35
|
+
/**
|
|
36
|
+
* South-west corner of the bounds
|
|
37
|
+
*/
|
|
38
|
+
southWest: IGeoLngLat;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Represents a single item in the geo chart tooltip
|
|
42
|
+
*
|
|
43
|
+
* @alpha
|
|
44
|
+
*/
|
|
45
|
+
export interface IGeoTooltipItem {
|
|
46
|
+
/**
|
|
47
|
+
* Title/label for the tooltip item
|
|
48
|
+
*/
|
|
49
|
+
title: string;
|
|
50
|
+
/**
|
|
51
|
+
* Value to display (can be string or number)
|
|
52
|
+
*/
|
|
53
|
+
value: string | number;
|
|
54
|
+
/**
|
|
55
|
+
* Optional format string for number formatting
|
|
56
|
+
*/
|
|
57
|
+
format?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Represents pushpin color configuration
|
|
61
|
+
*
|
|
62
|
+
* @remarks
|
|
63
|
+
* Defines both border and background colors for map pushpins
|
|
64
|
+
*
|
|
65
|
+
* @alpha
|
|
66
|
+
*/
|
|
67
|
+
export interface IPushpinColor {
|
|
68
|
+
/**
|
|
69
|
+
* Border color in CSS color format (e.g., "rgb(233,237,241)")
|
|
70
|
+
*/
|
|
71
|
+
border: string;
|
|
72
|
+
/**
|
|
73
|
+
* Background color in CSS color format (e.g., "rgba(0,211,152,0.7)")
|
|
74
|
+
*/
|
|
75
|
+
background: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Base interface for geo data items
|
|
79
|
+
*
|
|
80
|
+
* @alpha
|
|
81
|
+
*/
|
|
82
|
+
export interface IGeoDataItem {
|
|
83
|
+
/**
|
|
84
|
+
* Display name of the data item
|
|
85
|
+
*/
|
|
86
|
+
name: string;
|
|
87
|
+
/**
|
|
88
|
+
* Index position in the data view
|
|
89
|
+
*/
|
|
90
|
+
index: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Represents an attribute item in geo data
|
|
94
|
+
*
|
|
95
|
+
* @alpha
|
|
96
|
+
*/
|
|
97
|
+
export interface IGeoAttributeItem extends IGeoDataItem {
|
|
98
|
+
/**
|
|
99
|
+
* Array of string values for the attribute
|
|
100
|
+
*/
|
|
101
|
+
data: string[];
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Represents a segment item with URIs for drilling
|
|
105
|
+
*
|
|
106
|
+
* @alpha
|
|
107
|
+
*/
|
|
108
|
+
export interface IGeoSegmentItem extends IGeoAttributeItem {
|
|
109
|
+
/**
|
|
110
|
+
* URIs corresponding to segment values for drilling functionality
|
|
111
|
+
*/
|
|
112
|
+
uris: string[];
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Represents a location item with coordinate data
|
|
116
|
+
*
|
|
117
|
+
* @alpha
|
|
118
|
+
*/
|
|
119
|
+
export interface IGeoLocationItem extends IGeoDataItem {
|
|
120
|
+
/**
|
|
121
|
+
* Array of coordinates for each location
|
|
122
|
+
*/
|
|
123
|
+
data: IGeoLngLat[];
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Represents a measure item with numeric data
|
|
127
|
+
*
|
|
128
|
+
* @alpha
|
|
129
|
+
*/
|
|
130
|
+
export interface IGeoMeasureItem extends IGeoDataItem {
|
|
131
|
+
/**
|
|
132
|
+
* Format string for displaying measure values
|
|
133
|
+
*/
|
|
134
|
+
format: string;
|
|
135
|
+
/**
|
|
136
|
+
* Array of numeric values
|
|
137
|
+
*/
|
|
138
|
+
data: number[];
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Complete geo data structure
|
|
142
|
+
*
|
|
143
|
+
* @remarks
|
|
144
|
+
* Contains all data needed to render the geo pushpin chart including
|
|
145
|
+
* locations, sizes, colors, segments, and tooltip text
|
|
146
|
+
*
|
|
147
|
+
* @alpha
|
|
148
|
+
*/
|
|
149
|
+
export interface IGeoData {
|
|
150
|
+
/**
|
|
151
|
+
* Location coordinates for pushpins
|
|
152
|
+
*/
|
|
153
|
+
location?: IGeoLocationItem;
|
|
154
|
+
/**
|
|
155
|
+
* Size measure data (determines pushpin size)
|
|
156
|
+
*/
|
|
157
|
+
size?: IGeoMeasureItem;
|
|
158
|
+
/**
|
|
159
|
+
* Color measure data (determines pushpin color)
|
|
160
|
+
*/
|
|
161
|
+
color?: IGeoMeasureItem;
|
|
162
|
+
/**
|
|
163
|
+
* Segment data (for categorization and drilling)
|
|
164
|
+
*/
|
|
165
|
+
segment?: IGeoSegmentItem;
|
|
166
|
+
/**
|
|
167
|
+
* Additional tooltip text attribute
|
|
168
|
+
*/
|
|
169
|
+
tooltipText?: IGeoAttributeItem;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Metadata about available legend types
|
|
173
|
+
*
|
|
174
|
+
* @remarks
|
|
175
|
+
* Indicates which legends should be displayed based on the data configuration
|
|
176
|
+
*
|
|
177
|
+
* @alpha
|
|
178
|
+
*/
|
|
179
|
+
export interface IAvailableLegends {
|
|
180
|
+
/**
|
|
181
|
+
* Whether to show category legend (based on segment data)
|
|
182
|
+
*/
|
|
183
|
+
hasCategoryLegend: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Whether to show color legend (based on color measure)
|
|
186
|
+
*/
|
|
187
|
+
hasColorLegend: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Whether to show size legend (based on size measure)
|
|
190
|
+
*/
|
|
191
|
+
hasSizeLegend: boolean;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Callback function invoked when map center position changes
|
|
195
|
+
*
|
|
196
|
+
* @param center - New center coordinates
|
|
197
|
+
*
|
|
198
|
+
* @alpha
|
|
199
|
+
*/
|
|
200
|
+
export type CenterPositionChangedCallback = (center: IGeoLngLat) => void;
|
|
201
|
+
/**
|
|
202
|
+
* Callback function invoked when map zoom level changes
|
|
203
|
+
*
|
|
204
|
+
* @param zoom - New zoom level (0-22)
|
|
205
|
+
*
|
|
206
|
+
* @alpha
|
|
207
|
+
*/
|
|
208
|
+
export type ZoomChangedCallback = (zoom: number) => void;
|
|
209
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/next/types/shared.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC;IACtB;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACnD;;OAEG;IACH,IAAI,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACtD;;OAEG;IACH,IAAI,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IAClD;;OAEG;IACH,IAAI,EAAE,UAAU,EAAE,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACjD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,QAAQ;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;AAEzE;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/next/types/shared.ts"],"names":[],"mappings":"AAAA,gCAAgC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IntlShape } from "react-intl";
|
|
2
|
+
/**
|
|
3
|
+
* MapLibre locale configuration for cooperative gestures
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface IMapLibreLocale {
|
|
8
|
+
"ScrollZoomBlocker.CtrlMessage": string;
|
|
9
|
+
"ScrollZoomBlocker.CmdMessage": string;
|
|
10
|
+
"TouchPanBlocker.Message": string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Generate MapLibre locale configuration with translated messages
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Creates locale object for MapLibre's cooperative gestures feature.
|
|
17
|
+
* Uses react-intl to format localized messages for scroll zoom and touch pan blockers.
|
|
18
|
+
* Detects platform to provide appropriate modifier key (Ctrl vs ⌘).
|
|
19
|
+
*
|
|
20
|
+
* @param intl - react-intl instance for message formatting
|
|
21
|
+
* @returns MapLibre locale configuration object
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare function generateMapLibreLocale(intl: IntlShape): IMapLibreLocale;
|
|
26
|
+
//# sourceMappingURL=mapLocale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapLocale.d.ts","sourceRoot":"","sources":["../../../src/next/utils/mapLocale.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B,+BAA+B,EAAE,MAAM,CAAC;IACxC,8BAA8B,EAAE,MAAM,CAAC;IACvC,yBAAyB,EAAE,MAAM,CAAC;CACrC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,GAAG,eAAe,CAYvE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
/**
|
|
3
|
+
* Generate MapLibre locale configuration with translated messages
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Creates locale object for MapLibre's cooperative gestures feature.
|
|
7
|
+
* Uses react-intl to format localized messages for scroll zoom and touch pan blockers.
|
|
8
|
+
* Detects platform to provide appropriate modifier key (Ctrl vs ⌘).
|
|
9
|
+
*
|
|
10
|
+
* @param intl - react-intl instance for message formatting
|
|
11
|
+
* @returns MapLibre locale configuration object
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export function generateMapLibreLocale(intl) {
|
|
16
|
+
return {
|
|
17
|
+
"ScrollZoomBlocker.CtrlMessage": intl.formatMessage({ id: "geochart.scroll.zoom.blocker" }, { button: "ctrl" }),
|
|
18
|
+
"ScrollZoomBlocker.CmdMessage": intl.formatMessage({ id: "geochart.scroll.zoom.blocker" }, { button: "⌘" }),
|
|
19
|
+
"TouchPanBlocker.Message": intl.formatMessage({ id: "geochart.touch.pan.blocker" }),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=mapLocale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapLocale.js","sourceRoot":"","sources":["../../../src/next/utils/mapLocale.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAehC;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAe;IAClD,OAAO;QACH,+BAA+B,EAAE,IAAI,CAAC,aAAa,CAC/C,EAAE,EAAE,EAAE,8BAA8B,EAAE,EACtC,EAAE,MAAM,EAAE,MAAM,EAAE,CACrB;QACD,8BAA8B,EAAE,IAAI,CAAC,aAAa,CAC9C,EAAE,EAAE,EAAE,8BAA8B,EAAE,EACtC,EAAE,MAAM,EAAE,GAAG,EAAE,CAClB;QACD,yBAAyB,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,4BAA4B,EAAE,CAAC;KACtF,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-geo",
|
|
3
|
-
"version": "11.6.0-alpha.
|
|
3
|
+
"version": "11.6.0-alpha.7",
|
|
4
4
|
"description": "GoodData.UI SDK - Geo Charts",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"type": "module",
|
|
17
17
|
"exports": {
|
|
18
18
|
".": "./esm/index.js",
|
|
19
|
+
"./next": "./esm/next/index.js",
|
|
19
20
|
"./styles/css/*": "./styles/css/*",
|
|
20
21
|
"./styles/scss/*": "./styles/scss/*",
|
|
21
22
|
"./internal-tests/GeoChartOptionsWrapper": "./esm/core/geoChart/GeoChartOptionsWrapper.js"
|
|
@@ -36,17 +37,18 @@
|
|
|
36
37
|
"default-import": "1.1.5",
|
|
37
38
|
"lodash-es": "^4.17.21",
|
|
38
39
|
"mapbox-gl": "^2.6.1",
|
|
40
|
+
"maplibre-gl": "^4.7.1",
|
|
39
41
|
"react-intl": "7.1.11",
|
|
40
42
|
"react-measure": "^2.5.2",
|
|
41
43
|
"ts-invariant": "^0.7.5",
|
|
42
44
|
"tslib": "2.8.1",
|
|
43
45
|
"uuid": "^11.1.0",
|
|
44
|
-
"@gooddata/sdk-backend-spi": "11.6.0-alpha.
|
|
45
|
-
"@gooddata/sdk-model": "11.6.0-alpha.
|
|
46
|
-
"@gooddata/sdk-ui
|
|
47
|
-
"@gooddata/sdk-ui-
|
|
48
|
-
"@gooddata/sdk-ui": "11.6.0-alpha.
|
|
49
|
-
"@gooddata/sdk-ui-vis-commons": "11.6.0-alpha.
|
|
46
|
+
"@gooddata/sdk-backend-spi": "11.6.0-alpha.7",
|
|
47
|
+
"@gooddata/sdk-model": "11.6.0-alpha.7",
|
|
48
|
+
"@gooddata/sdk-ui": "11.6.0-alpha.7",
|
|
49
|
+
"@gooddata/sdk-ui-kit": "11.6.0-alpha.7",
|
|
50
|
+
"@gooddata/sdk-ui-theme-provider": "11.6.0-alpha.7",
|
|
51
|
+
"@gooddata/sdk-ui-vis-commons": "11.6.0-alpha.7"
|
|
50
52
|
},
|
|
51
53
|
"devDependencies": {
|
|
52
54
|
"@gooddata/stylelint-config": "^5.0.0",
|
|
@@ -56,6 +58,7 @@
|
|
|
56
58
|
"@testing-library/react": "16.3.0",
|
|
57
59
|
"@types/lodash-es": "^4.17.12",
|
|
58
60
|
"@types/mapbox-gl": "^2.6.0",
|
|
61
|
+
"@types/maplibre-gl": "^1.14.0",
|
|
59
62
|
"@types/node": "^22.13.0",
|
|
60
63
|
"@types/react": "19.1.11",
|
|
61
64
|
"@types/react-dom": "19.1.7",
|
|
@@ -88,8 +91,8 @@
|
|
|
88
91
|
"typescript": "5.8.3",
|
|
89
92
|
"vitest": "3.2.4",
|
|
90
93
|
"vitest-dom": "0.1.1",
|
|
91
|
-
"@gooddata/eslint-config": "11.6.0-alpha.
|
|
92
|
-
"@gooddata/sdk-backend-mockingbird": "11.6.0-alpha.
|
|
94
|
+
"@gooddata/eslint-config": "11.6.0-alpha.7",
|
|
95
|
+
"@gooddata/sdk-backend-mockingbird": "11.6.0-alpha.7"
|
|
93
96
|
},
|
|
94
97
|
"peerDependencies": {
|
|
95
98
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -109,7 +112,7 @@
|
|
|
109
112
|
"eslint-fix": "eslint -c .eslintrc.cjs src/ --fix",
|
|
110
113
|
"prettier-check": "prettier --check '{src,stories,styles,__mocks__}/**/*.{ts,tsx,json,scss,md,yaml,html}'",
|
|
111
114
|
"prettier-write": "prettier --write '{src,stories,styles,__mocks__}/**/*.{ts,tsx,json,scss,md,yaml,html}'",
|
|
112
|
-
"scss": "sass --load-path=node_modules --load-path=node_modules/mapbox-gl/dist styles/scss/main.scss:styles/css/main.css",
|
|
115
|
+
"scss": "sass --load-path=node_modules --load-path=node_modules/mapbox-gl/dist --load-path=node_modules/maplibre-gl/dist styles/scss/main.scss:styles/css/main.css",
|
|
113
116
|
"stylelint": "stylelint '**/*.scss'",
|
|
114
117
|
"stylelint-ci": "stylelint '**/*.scss' --custom-formatter=node_modules/stylelint-checkstyle-formatter > ./ci/results/stylelint-results.xml",
|
|
115
118
|
"stylelint-fix": "stylelint '**/*.scss' --fix",
|