@gooddata/sdk-ui-geo 11.13.0-alpha.2 → 11.13.0-alpha.3
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/GeoAreaChart.d.ts +4 -26
- package/esm/next/GeoAreaChart.d.ts.map +1 -1
- package/esm/next/GeoAreaChart.js +16 -57
- package/esm/next/GeoAreaChart.js.map +1 -1
- package/esm/next/GeoChartNext.d.ts +19 -0
- package/esm/next/GeoChartNext.d.ts.map +1 -0
- package/esm/next/GeoChartNext.js +34 -0
- package/esm/next/GeoChartNext.js.map +1 -0
- package/esm/next/GeoPushpinChartNext.d.ts +5 -6
- package/esm/next/GeoPushpinChartNext.d.ts.map +1 -1
- package/esm/next/GeoPushpinChartNext.js +19 -35
- package/esm/next/GeoPushpinChartNext.js.map +1 -1
- package/esm/next/components/GeoChartNextDataLoader.d.ts +12 -0
- package/esm/next/components/GeoChartNextDataLoader.d.ts.map +1 -0
- package/esm/next/components/GeoChartNextDataLoader.js +42 -0
- package/esm/next/components/GeoChartNextDataLoader.js.map +1 -0
- package/esm/next/components/GeoChartNextProviders.d.ts +13 -0
- package/esm/next/components/GeoChartNextProviders.d.ts.map +1 -0
- package/esm/next/components/GeoChartNextProviders.js +15 -0
- package/esm/next/components/GeoChartNextProviders.js.map +1 -0
- package/esm/next/components/GeoErrorComponent.d.ts +13 -0
- package/esm/next/components/GeoErrorComponent.d.ts.map +1 -0
- package/esm/next/components/{ErrorComponent.js → GeoErrorComponent.js} +4 -4
- package/esm/next/components/GeoErrorComponent.js.map +1 -0
- package/esm/next/components/GeoLoadingComponent.d.ts +5 -0
- package/esm/next/components/GeoLoadingComponent.d.ts.map +1 -0
- package/esm/next/components/{LoadingComponent.js → GeoLoadingComponent.js} +4 -4
- package/esm/next/components/GeoLoadingComponent.js.map +1 -0
- package/esm/next/components/RenderGeoChartNext.d.ts +18 -0
- package/esm/next/components/RenderGeoChartNext.d.ts.map +1 -0
- package/esm/next/components/RenderGeoChartNext.js +51 -0
- package/esm/next/components/RenderGeoChartNext.js.map +1 -0
- package/esm/next/components/legends/Legend.d.ts +5 -4
- package/esm/next/components/legends/Legend.d.ts.map +1 -1
- package/esm/next/components/legends/Legend.js.map +1 -1
- package/esm/next/components/legends/legendPropsAdapter.d.ts.map +1 -1
- package/esm/next/components/legends/legendPropsAdapter.js.map +1 -1
- package/esm/next/components/legends/types.d.ts +5 -4
- package/esm/next/components/legends/types.d.ts.map +1 -1
- package/esm/next/constants/defaults.d.ts +60 -0
- package/esm/next/constants/defaults.d.ts.map +1 -0
- package/esm/next/constants/defaults.js +53 -0
- package/esm/next/constants/defaults.js.map +1 -0
- package/esm/next/constants/{internal.d.ts → emptyDefaults.d.ts} +1 -9
- package/esm/next/constants/emptyDefaults.d.ts.map +1 -0
- package/esm/next/constants/{internal.js → emptyDefaults.js} +1 -9
- package/esm/next/constants/emptyDefaults.js.map +1 -0
- package/esm/next/context/GeoChartNextContext.d.ts +30 -0
- package/esm/next/context/GeoChartNextContext.d.ts.map +1 -0
- package/esm/next/context/GeoChartNextContext.js +44 -0
- package/esm/next/context/GeoChartNextContext.js.map +1 -0
- package/esm/next/context/GeoDataContext.d.ts +6 -51
- package/esm/next/context/GeoDataContext.d.ts.map +1 -1
- package/esm/next/context/GeoDataContext.js +12 -25
- package/esm/next/context/GeoDataContext.js.map +1 -1
- package/esm/next/context/GeoLayersContext.d.ts +111 -0
- package/esm/next/context/GeoLayersContext.d.ts.map +1 -0
- package/esm/next/context/GeoLayersContext.js +67 -0
- package/esm/next/context/GeoLayersContext.js.map +1 -0
- package/esm/next/context/GeoLegendContext.d.ts +23 -33
- package/esm/next/context/GeoLegendContext.d.ts.map +1 -1
- package/esm/next/context/GeoLegendContext.js +34 -31
- package/esm/next/context/GeoLegendContext.js.map +1 -1
- package/esm/next/context/InitialExecutionContext.d.ts +1 -1
- package/esm/next/context/InitialExecutionContext.d.ts.map +1 -1
- package/esm/next/context/MapRuntimeContext.d.ts +15 -0
- package/esm/next/context/MapRuntimeContext.d.ts.map +1 -0
- package/esm/next/context/MapRuntimeContext.js +15 -0
- package/esm/next/context/MapRuntimeContext.js.map +1 -0
- package/esm/next/context/createGeoContext.d.ts +36 -0
- package/esm/next/context/createGeoContext.d.ts.map +1 -0
- package/esm/next/context/createGeoContext.js +45 -0
- package/esm/next/context/createGeoContext.js.map +1 -0
- package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.d.ts +24 -0
- package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.d.ts.map +1 -0
- package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.js +64 -0
- package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.js.map +1 -0
- package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.d.ts +33 -0
- package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.d.ts.map +1 -0
- package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.js +36 -0
- package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.js.map +1 -0
- package/esm/next/hooks/layers/useGeoAdapterContext.d.ts +12 -0
- package/esm/next/hooks/layers/useGeoAdapterContext.d.ts.map +1 -0
- package/esm/next/hooks/layers/useGeoAdapterContext.js +34 -0
- package/esm/next/hooks/layers/useGeoAdapterContext.js.map +1 -0
- package/esm/next/hooks/layers/useLayerTooltips.d.ts +48 -0
- package/esm/next/hooks/layers/useLayerTooltips.d.ts.map +1 -0
- package/esm/next/hooks/layers/useLayerTooltips.js +105 -0
- package/esm/next/hooks/layers/useLayerTooltips.js.map +1 -0
- package/esm/next/hooks/layers/useLayersData.d.ts +45 -0
- package/esm/next/hooks/layers/useLayersData.d.ts.map +1 -0
- package/esm/next/hooks/layers/useLayersData.js +69 -0
- package/esm/next/hooks/layers/useLayersData.js.map +1 -0
- package/esm/next/hooks/layers/useLayersExecutions.d.ts +27 -0
- package/esm/next/hooks/layers/useLayersExecutions.d.ts.map +1 -0
- package/esm/next/hooks/layers/useLayersExecutions.js +15 -0
- package/esm/next/hooks/layers/useLayersExecutions.js.map +1 -0
- package/esm/next/hooks/layers/useLayersPrepare.d.ts +83 -0
- package/esm/next/hooks/layers/useLayersPrepare.d.ts.map +1 -0
- package/esm/next/hooks/layers/useLayersPrepare.js +84 -0
- package/esm/next/hooks/layers/useLayersPrepare.js.map +1 -0
- package/esm/next/hooks/layers/useSyncLayersToMap.d.ts +23 -0
- package/esm/next/hooks/layers/useSyncLayersToMap.d.ts.map +1 -0
- package/esm/next/hooks/layers/useSyncLayersToMap.js +70 -0
- package/esm/next/hooks/layers/useSyncLayersToMap.js.map +1 -0
- package/esm/next/hooks/legend/useLegendConfig.d.ts +2 -2
- package/esm/next/hooks/legend/useLegendConfig.d.ts.map +1 -1
- package/esm/next/hooks/legend/useLegendConfig.js.map +1 -1
- package/esm/next/hooks/legend/useLegendDetails.d.ts +3 -3
- package/esm/next/hooks/legend/useLegendDetails.d.ts.map +1 -1
- package/esm/next/hooks/legend/useLegendDetails.js.map +1 -1
- package/esm/next/hooks/legend/useLegendItemClick.d.ts +2 -2
- package/esm/next/hooks/legend/useLegendItemClick.d.ts.map +1 -1
- package/esm/next/hooks/legend/useLegendItemClick.js.map +1 -1
- package/esm/next/hooks/legend/useLegendItemsWithState.d.ts +2 -2
- package/esm/next/hooks/legend/useLegendItemsWithState.d.ts.map +1 -1
- package/esm/next/hooks/legend/useLegendItemsWithState.js +0 -3
- package/esm/next/hooks/legend/useLegendItemsWithState.js.map +1 -1
- package/esm/next/hooks/legend/useLegendRenderState.d.ts +44 -0
- package/esm/next/hooks/legend/useLegendRenderState.d.ts.map +1 -0
- package/esm/next/hooks/legend/useLegendRenderState.js +43 -0
- package/esm/next/hooks/legend/useLegendRenderState.js.map +1 -0
- package/esm/next/hooks/legend/useSelectedSegments.d.ts +2 -2
- package/esm/next/hooks/legend/useSelectedSegments.d.ts.map +1 -1
- package/esm/next/hooks/legend/useSelectedSegments.js +0 -3
- package/esm/next/hooks/legend/useSelectedSegments.js.map +1 -1
- package/esm/next/hooks/map/useAfterRender.d.ts +4 -3
- package/esm/next/hooks/map/useAfterRender.d.ts.map +1 -1
- package/esm/next/hooks/map/useAfterRender.js +3 -16
- package/esm/next/hooks/map/useAfterRender.js.map +1 -1
- package/esm/next/hooks/map/useMapCallbacks.d.ts +3 -3
- package/esm/next/hooks/map/useMapCallbacks.d.ts.map +1 -1
- package/esm/next/hooks/map/useMapCallbacks.js.map +1 -1
- package/esm/next/hooks/map/useMapInitialization.d.ts +7 -8
- package/esm/next/hooks/map/useMapInitialization.d.ts.map +1 -1
- package/esm/next/hooks/map/useMapInitialization.js +20 -23
- package/esm/next/hooks/map/useMapInitialization.js.map +1 -1
- package/esm/next/hooks/map/useMapResize.d.ts +3 -3
- package/esm/next/hooks/map/useMapResize.d.ts.map +1 -1
- package/esm/next/hooks/map/useMapResize.js +3 -7
- package/esm/next/hooks/map/useMapResize.js.map +1 -1
- package/esm/next/hooks/props/useResolvedGeoChartNextProps.d.ts +21 -0
- package/esm/next/hooks/props/useResolvedGeoChartNextProps.d.ts.map +1 -0
- package/esm/next/hooks/props/useResolvedGeoChartNextProps.js +39 -0
- package/esm/next/hooks/props/useResolvedGeoChartNextProps.js.map +1 -0
- package/esm/next/hooks/pushData/useGeoPushData.d.ts +28 -0
- package/esm/next/hooks/pushData/useGeoPushData.d.ts.map +1 -0
- package/esm/next/hooks/{shared → pushData}/useGeoPushData.js +1 -1
- package/esm/next/hooks/pushData/useGeoPushData.js.map +1 -0
- package/esm/next/hooks/utils/useCallbackOnChange.d.ts +24 -0
- package/esm/next/hooks/utils/useCallbackOnChange.d.ts.map +1 -0
- package/esm/next/hooks/utils/useCallbackOnChange.js +37 -0
- package/esm/next/hooks/utils/useCallbackOnChange.js.map +1 -0
- package/esm/next/index.d.ts +28 -8
- package/esm/next/index.d.ts.map +1 -1
- package/esm/next/index.js +13 -2
- package/esm/next/index.js.map +1 -1
- package/esm/next/layers/area/adapter.d.ts +4 -0
- package/esm/next/layers/area/adapter.d.ts.map +1 -0
- package/esm/next/layers/area/adapter.js +160 -0
- package/esm/next/layers/area/adapter.js.map +1 -0
- package/esm/next/{hooks/shared/geoCollectionBoundingBox.d.ts → layers/area/boundingBox.d.ts} +4 -2
- package/esm/next/layers/area/boundingBox.d.ts.map +1 -0
- package/esm/next/{hooks/shared/geoCollectionBoundingBox.js → layers/area/boundingBox.js} +23 -16
- package/esm/next/layers/area/boundingBox.js.map +1 -0
- package/esm/next/{features/coloring/areaColorStrategy.d.ts → layers/area/coloring/colorStrategy.d.ts} +2 -2
- package/esm/next/layers/area/coloring/colorStrategy.d.ts.map +1 -0
- package/esm/next/{features/coloring/areaColorStrategy.js → layers/area/coloring/colorStrategy.js} +2 -2
- package/esm/next/layers/area/coloring/colorStrategy.js.map +1 -0
- package/esm/next/{features/coloring/areaPalette.d.ts → layers/area/coloring/palette.d.ts} +1 -1
- package/esm/next/layers/area/coloring/palette.d.ts.map +1 -0
- package/esm/next/{features/coloring/areaPalette.js → layers/area/coloring/palette.js} +7 -7
- package/esm/next/layers/area/coloring/palette.js.map +1 -0
- package/esm/next/layers/area/config/defaults.d.ts +8 -0
- package/esm/next/layers/area/config/defaults.d.ts.map +1 -0
- package/esm/next/layers/area/config/defaults.js +19 -0
- package/esm/next/layers/area/config/defaults.js.map +1 -0
- package/esm/next/layers/area/constants.d.ts +14 -0
- package/esm/next/layers/area/constants.d.ts.map +1 -0
- package/esm/next/layers/area/constants.js +15 -0
- package/esm/next/layers/area/constants.js.map +1 -0
- package/esm/next/layers/area/data/transformation.d.ts +41 -0
- package/esm/next/layers/area/data/transformation.d.ts.map +1 -0
- package/esm/next/{features/data/areaTransformation.js → layers/area/data/transformation.js} +104 -55
- package/esm/next/layers/area/data/transformation.js.map +1 -0
- package/esm/next/layers/area/layerFactory.d.ts +20 -0
- package/esm/next/layers/area/layerFactory.d.ts.map +1 -0
- package/esm/next/layers/area/layerFactory.js +26 -0
- package/esm/next/layers/area/layerFactory.js.map +1 -0
- package/esm/next/{providers/maplibre/maplibreDataLayersArea.d.ts → layers/area/layers.d.ts} +7 -7
- package/esm/next/layers/area/layers.d.ts.map +1 -0
- package/esm/next/{providers/maplibre/maplibreDataLayersArea.js → layers/area/layers.js} +10 -16
- package/esm/next/layers/area/layers.js.map +1 -0
- package/esm/next/layers/area/operations.d.ts +33 -0
- package/esm/next/layers/area/operations.d.ts.map +1 -0
- package/esm/next/layers/area/operations.js +55 -0
- package/esm/next/layers/area/operations.js.map +1 -0
- package/esm/next/layers/area/source.d.ts +36 -0
- package/esm/next/layers/area/source.d.ts.map +1 -0
- package/esm/next/layers/area/source.js +150 -0
- package/esm/next/layers/area/source.js.map +1 -0
- package/esm/next/layers/area/tooltip/tooltipManagement.d.ts +19 -0
- package/esm/next/layers/area/tooltip/tooltipManagement.d.ts.map +1 -0
- package/esm/next/layers/area/tooltip/tooltipManagement.js +127 -0
- package/esm/next/layers/area/tooltip/tooltipManagement.js.map +1 -0
- package/esm/next/layers/common/computeLegend.d.ts +34 -0
- package/esm/next/layers/common/computeLegend.d.ts.map +1 -0
- package/esm/next/layers/common/computeLegend.js +43 -0
- package/esm/next/layers/common/computeLegend.js.map +1 -0
- package/esm/next/layers/common/dimensions.d.ts +15 -0
- package/esm/next/layers/common/dimensions.d.ts.map +1 -0
- package/esm/next/layers/common/dimensions.js +24 -0
- package/esm/next/layers/common/dimensions.js.map +1 -0
- package/esm/next/layers/common/layerOps.d.ts +4 -0
- package/esm/next/layers/common/layerOps.d.ts.map +1 -0
- package/esm/next/layers/common/layerOps.js +21 -0
- package/esm/next/layers/common/layerOps.js.map +1 -0
- package/esm/next/layers/common/mapFacade.d.ts +116 -0
- package/esm/next/layers/common/mapFacade.d.ts.map +1 -0
- package/esm/next/layers/common/mapFacade.js +128 -0
- package/esm/next/layers/common/mapFacade.js.map +1 -0
- package/esm/next/layers/execution/buildLayerExecution.d.ts +15 -0
- package/esm/next/layers/execution/buildLayerExecution.d.ts.map +1 -0
- package/esm/next/layers/execution/buildLayerExecution.js +28 -0
- package/esm/next/layers/execution/buildLayerExecution.js.map +1 -0
- package/esm/next/layers/execution/layerContext.d.ts +33 -0
- package/esm/next/layers/execution/layerContext.d.ts.map +1 -0
- package/esm/next/layers/execution/layerContext.js +39 -0
- package/esm/next/layers/execution/layerContext.js.map +1 -0
- package/esm/next/layers/pushpin/adapter.d.ts +4 -0
- package/esm/next/layers/pushpin/adapter.d.ts.map +1 -0
- package/esm/next/layers/pushpin/adapter.js +122 -0
- package/esm/next/layers/pushpin/adapter.js.map +1 -0
- package/esm/next/layers/pushpin/clustering/clustering.d.ts +8 -0
- package/esm/next/layers/pushpin/clustering/clustering.d.ts.map +1 -0
- package/esm/next/layers/pushpin/clustering/clustering.js +11 -0
- package/esm/next/layers/pushpin/clustering/clustering.js.map +1 -0
- package/esm/next/{features → layers/pushpin}/coloring/colorStrategy.d.ts +2 -2
- package/esm/next/layers/pushpin/coloring/colorStrategy.d.ts.map +1 -0
- package/esm/next/{features → layers/pushpin}/coloring/colorStrategy.js +4 -4
- package/esm/next/layers/pushpin/coloring/colorStrategy.js.map +1 -0
- package/esm/next/{features → layers/pushpin}/coloring/palette.d.ts +2 -2
- package/esm/next/layers/pushpin/coloring/palette.d.ts.map +1 -0
- package/esm/next/{features → layers/pushpin}/coloring/palette.js +8 -5
- package/esm/next/layers/pushpin/coloring/palette.js.map +1 -0
- package/esm/next/layers/pushpin/config/defaults.d.ts +12 -0
- package/esm/next/layers/pushpin/config/defaults.d.ts.map +1 -0
- package/esm/next/layers/pushpin/config/defaults.js +19 -0
- package/esm/next/layers/pushpin/config/defaults.js.map +1 -0
- package/esm/next/{constants/geoChart.d.ts → layers/pushpin/constants.d.ts} +1 -9
- package/esm/next/layers/pushpin/constants.d.ts.map +1 -0
- package/esm/next/{constants/geoChart.js → layers/pushpin/constants.js} +1 -9
- package/esm/next/layers/pushpin/constants.js.map +1 -0
- package/esm/next/{features/data/pushpinTransformation.d.ts → layers/pushpin/data/transformation.d.ts} +5 -5
- package/esm/next/layers/pushpin/data/transformation.d.ts.map +1 -0
- package/esm/next/{features/data/pushpinTransformation.js → layers/pushpin/data/transformation.js} +146 -56
- package/esm/next/layers/pushpin/data/transformation.js.map +1 -0
- package/esm/next/layers/pushpin/layerFactory.d.ts +20 -0
- package/esm/next/layers/pushpin/layerFactory.d.ts.map +1 -0
- package/esm/next/layers/pushpin/layerFactory.js +26 -0
- package/esm/next/layers/pushpin/layerFactory.js.map +1 -0
- package/esm/next/{providers/maplibre/maplibreDataLayers.d.ts → layers/pushpin/layers.d.ts} +12 -8
- package/esm/next/layers/pushpin/layers.d.ts.map +1 -0
- package/esm/next/{providers/maplibre/maplibreDataLayers.js → layers/pushpin/layers.js} +39 -35
- package/esm/next/layers/pushpin/layers.js.map +1 -0
- package/esm/next/layers/pushpin/operations.d.ts +37 -0
- package/esm/next/layers/pushpin/operations.d.ts.map +1 -0
- package/esm/next/layers/pushpin/operations.js +74 -0
- package/esm/next/layers/pushpin/operations.js.map +1 -0
- package/esm/next/layers/pushpin/size/calculations.d.ts.map +1 -0
- package/esm/next/layers/pushpin/size/calculations.js.map +1 -0
- package/esm/next/layers/pushpin/source.d.ts +32 -0
- package/esm/next/layers/pushpin/source.d.ts.map +1 -0
- package/esm/next/layers/pushpin/source.js +126 -0
- package/esm/next/layers/pushpin/source.js.map +1 -0
- package/esm/next/{providers/maplibre/maplibreTooltip.d.ts → layers/pushpin/tooltip/tooltipManagement.d.ts} +13 -23
- package/esm/next/layers/pushpin/tooltip/tooltipManagement.d.ts.map +1 -0
- package/esm/next/layers/pushpin/tooltip/tooltipManagement.js +208 -0
- package/esm/next/layers/pushpin/tooltip/tooltipManagement.js.map +1 -0
- package/esm/next/layers/registry/adapterRegistry.d.ts +31 -0
- package/esm/next/layers/registry/adapterRegistry.d.ts.map +1 -0
- package/esm/next/layers/registry/adapterRegistry.js +48 -0
- package/esm/next/layers/registry/adapterRegistry.js.map +1 -0
- package/esm/next/layers/registry/adapterTypes.d.ts +295 -0
- package/esm/next/layers/registry/adapterTypes.d.ts.map +1 -0
- package/esm/next/{types/areaInternal.js → layers/registry/adapterTypes.js} +1 -1
- package/esm/next/layers/registry/adapterTypes.js.map +1 -0
- package/esm/next/layers/registry/output.d.ts +9 -0
- package/esm/next/layers/registry/output.d.ts.map +1 -0
- package/esm/next/layers/registry/output.js +22 -0
- package/esm/next/layers/registry/output.js.map +1 -0
- package/esm/next/map/MapController.d.ts +25 -0
- package/esm/next/map/MapController.d.ts.map +1 -0
- package/esm/next/map/MapController.js +39 -0
- package/esm/next/map/MapController.js.map +1 -0
- package/esm/next/{providers/maplibre/maplibreConfig.d.ts → map/runtime/mapConfig.d.ts} +5 -4
- package/esm/next/map/runtime/mapConfig.d.ts.map +1 -0
- package/esm/next/{providers/maplibre/maplibreConfig.js → map/runtime/mapConfig.js} +5 -4
- package/esm/next/map/runtime/mapConfig.js.map +1 -0
- package/esm/next/{features/map/initializeMap.d.ts → map/runtime/mapInitialization.d.ts} +3 -3
- package/esm/next/map/runtime/mapInitialization.d.ts.map +1 -0
- package/esm/next/{features/map/initializeMap.js → map/runtime/mapInitialization.js} +14 -9
- package/esm/next/map/runtime/mapInitialization.js.map +1 -0
- package/esm/next/{features/data/transformationCommon.d.ts → map/style/dataTransformation.d.ts} +1 -8
- package/esm/next/map/style/dataTransformation.d.ts.map +1 -0
- package/esm/next/{features/data/transformationCommon.js → map/style/dataTransformation.js} +1 -21
- package/esm/next/map/style/dataTransformation.js.map +1 -0
- package/esm/next/map/style/sharedDefaults.d.ts +12 -0
- package/esm/next/map/style/sharedDefaults.d.ts.map +1 -0
- package/esm/next/map/style/sharedDefaults.js +25 -0
- package/esm/next/map/style/sharedDefaults.js.map +1 -0
- package/esm/next/map/style/sharedLayers.d.ts +8 -0
- package/esm/next/map/style/sharedLayers.d.ts.map +1 -0
- package/esm/next/map/style/sharedLayers.js +18 -0
- package/esm/next/map/style/sharedLayers.js.map +1 -0
- package/esm/next/map/style/styleConfig.d.ts +3 -0
- package/esm/next/map/style/styleConfig.d.ts.map +1 -0
- package/esm/next/{providers/maplibre/style.js → map/style/styleConfig.js} +1 -1
- package/esm/next/map/style/styleConfig.js.map +1 -0
- package/esm/next/{features/tooltip/formatting.d.ts → map/style/tooltipFormatting.d.ts} +1 -1
- package/esm/next/map/style/tooltipFormatting.d.ts.map +1 -0
- package/esm/next/{features/tooltip/formatting.js → map/style/tooltipFormatting.js} +1 -1
- package/esm/next/map/style/tooltipFormatting.js.map +1 -0
- package/esm/next/map/styleReconciliation/planBuilder.d.ts +105 -0
- package/esm/next/map/styleReconciliation/planBuilder.d.ts.map +1 -0
- package/esm/next/map/styleReconciliation/planBuilder.js +83 -0
- package/esm/next/map/styleReconciliation/planBuilder.js.map +1 -0
- package/esm/next/map/styleReconciliation/reconcileStyle.d.ts +92 -0
- package/esm/next/map/styleReconciliation/reconcileStyle.d.ts.map +1 -0
- package/esm/next/map/styleReconciliation/reconcileStyle.js +121 -0
- package/esm/next/map/styleReconciliation/reconcileStyle.js.map +1 -0
- package/esm/next/map/styleReconciliation/types.d.ts +138 -0
- package/esm/next/map/styleReconciliation/types.d.ts.map +1 -0
- package/esm/next/{types/shared.js → map/styleReconciliation/types.js} +1 -1
- package/esm/next/map/styleReconciliation/types.js.map +1 -0
- package/esm/next/map/viewport/viewportCalculation.d.ts +33 -0
- package/esm/next/map/viewport/viewportCalculation.d.ts.map +1 -0
- package/esm/next/map/viewport/viewportCalculation.js +94 -0
- package/esm/next/map/viewport/viewportCalculation.js.map +1 -0
- package/esm/next/{providers/maplibre/maplibreViewport.d.ts → map/viewport/viewportPresets.d.ts} +4 -4
- package/esm/next/map/viewport/viewportPresets.d.ts.map +1 -0
- package/esm/next/{providers/maplibre/maplibreViewport.js → map/viewport/viewportPresets.js} +9 -13
- package/esm/next/map/viewport/viewportPresets.js.map +1 -0
- package/esm/next/map/viewport.d.ts +8 -0
- package/esm/next/map/viewport.d.ts.map +1 -0
- package/esm/next/map/viewport.js +44 -0
- package/esm/next/map/viewport.js.map +1 -0
- package/esm/next/pushData/PushDataSync.d.ts +12 -0
- package/esm/next/pushData/PushDataSync.d.ts.map +1 -0
- package/esm/next/pushData/PushDataSync.js +16 -0
- package/esm/next/pushData/PushDataSync.js.map +1 -0
- package/esm/next/types/common/callbacks.d.ts +14 -0
- package/esm/next/types/common/callbacks.d.ts.map +1 -0
- package/esm/next/types/{areaPublic.js → common/callbacks.js} +1 -1
- package/esm/next/types/common/callbacks.js.map +1 -0
- package/esm/next/types/common/coordinates.d.ts +31 -0
- package/esm/next/types/common/coordinates.d.ts.map +1 -0
- package/esm/next/types/{areaConfig.js → common/coordinates.js} +1 -1
- package/esm/next/types/common/coordinates.js.map +1 -0
- package/esm/next/types/common/legends.d.ts +56 -0
- package/esm/next/types/common/legends.d.ts.map +1 -0
- package/esm/next/types/common/legends.js +3 -0
- package/esm/next/types/common/legends.js.map +1 -0
- package/esm/next/types/config/areaChart.d.ts +37 -0
- package/esm/next/types/config/areaChart.d.ts.map +1 -0
- package/esm/next/types/config/areaChart.js +3 -0
- package/esm/next/types/config/areaChart.js.map +1 -0
- package/esm/next/types/config/areas.d.ts +23 -0
- package/esm/next/types/config/areas.d.ts.map +1 -0
- package/esm/next/types/{config.js → config/areas.js} +1 -1
- package/esm/next/types/config/areas.js.map +1 -0
- package/esm/next/types/config/legend.d.ts +26 -0
- package/esm/next/types/config/legend.d.ts.map +1 -0
- package/esm/next/types/config/legend.js +3 -0
- package/esm/next/types/config/legend.js.map +1 -0
- package/esm/next/types/config/points.d.ts +44 -0
- package/esm/next/types/config/points.d.ts.map +1 -0
- package/esm/next/types/config/points.js +23 -0
- package/esm/next/types/config/points.js.map +1 -0
- package/esm/next/types/config/pushpinChart.d.ts +37 -0
- package/esm/next/types/config/pushpinChart.d.ts.map +1 -0
- package/esm/next/types/config/pushpinChart.js +3 -0
- package/esm/next/types/config/pushpinChart.js.map +1 -0
- package/esm/next/types/config/unified.d.ts +93 -0
- package/esm/next/types/config/unified.d.ts.map +1 -0
- package/esm/next/types/config/unified.js +3 -0
- package/esm/next/types/config/unified.js.map +1 -0
- package/esm/next/types/config/viewport.d.ts +38 -0
- package/esm/next/types/config/viewport.d.ts.map +1 -0
- package/esm/next/types/config/viewport.js +25 -0
- package/esm/next/types/config/viewport.js.map +1 -0
- package/esm/next/types/geoData/area.d.ts +32 -0
- package/esm/next/types/geoData/area.d.ts.map +1 -0
- package/esm/next/types/geoData/area.js +3 -0
- package/esm/next/types/geoData/area.js.map +1 -0
- package/esm/next/types/geoData/common.d.ts +72 -0
- package/esm/next/types/geoData/common.d.ts.map +1 -0
- package/esm/next/types/geoData/common.js +3 -0
- package/esm/next/types/geoData/common.js.map +1 -0
- package/esm/next/types/geoData/pushpin.d.ts +51 -0
- package/esm/next/types/geoData/pushpin.d.ts.map +1 -0
- package/esm/next/types/geoData/pushpin.js +3 -0
- package/esm/next/types/geoData/pushpin.js.map +1 -0
- package/esm/next/types/geoData/typeGuards.d.ts +21 -0
- package/esm/next/types/geoData/typeGuards.d.ts.map +1 -0
- package/esm/next/types/geoData/typeGuards.js +24 -0
- package/esm/next/types/geoData/typeGuards.js.map +1 -0
- package/esm/next/types/layers/index.d.ts +207 -0
- package/esm/next/types/layers/index.d.ts.map +1 -0
- package/esm/next/types/layers/index.js +31 -0
- package/esm/next/types/layers/index.js.map +1 -0
- package/esm/next/types/{mapProvider.d.ts → map/provider.d.ts} +5 -51
- package/esm/next/types/map/provider.d.ts.map +1 -0
- package/esm/next/types/map/provider.js +3 -0
- package/esm/next/types/map/provider.js.map +1 -0
- package/esm/next/types/props/areaChart/internal.d.ts +43 -0
- package/esm/next/types/props/areaChart/internal.d.ts.map +1 -0
- package/esm/next/types/props/areaChart/internal.js.map +1 -0
- package/esm/next/types/props/areaChart/public.d.ts +73 -0
- package/esm/next/types/props/areaChart/public.d.ts.map +1 -0
- package/esm/next/types/props/areaChart/public.js +3 -0
- package/esm/next/types/props/areaChart/public.js.map +1 -0
- package/esm/next/types/props/geoChartNext/internal.d.ts +92 -0
- package/esm/next/types/props/geoChartNext/internal.d.ts.map +1 -0
- package/esm/next/types/props/geoChartNext/internal.js +3 -0
- package/esm/next/types/props/geoChartNext/internal.js.map +1 -0
- package/esm/next/types/props/geoChartNext/public.d.ts +50 -0
- package/esm/next/types/props/geoChartNext/public.d.ts.map +1 -0
- package/esm/next/types/props/geoChartNext/public.js +3 -0
- package/esm/next/types/props/geoChartNext/public.js.map +1 -0
- package/esm/next/types/props/pushpinChart/internal.d.ts +43 -0
- package/esm/next/types/props/pushpinChart/internal.d.ts.map +1 -0
- package/esm/next/types/props/pushpinChart/internal.js +3 -0
- package/esm/next/types/props/pushpinChart/internal.js.map +1 -0
- package/esm/next/types/props/pushpinChart/public.d.ts +81 -0
- package/esm/next/types/props/pushpinChart/public.d.ts.map +1 -0
- package/esm/next/types/props/pushpinChart/public.js +3 -0
- package/esm/next/types/props/pushpinChart/public.js.map +1 -0
- package/esm/next/utils/dataValidation.d.ts +85 -0
- package/esm/next/utils/dataValidation.d.ts.map +1 -0
- package/esm/next/utils/dataValidation.js +82 -0
- package/esm/next/utils/dataValidation.js.map +1 -0
- package/esm/next/utils/fingerprint.d.ts +39 -0
- package/esm/next/utils/fingerprint.d.ts.map +1 -0
- package/esm/next/utils/fingerprint.js +44 -0
- package/esm/next/utils/fingerprint.js.map +1 -0
- package/esm/next/utils/geoCollection.d.ts +0 -7
- package/esm/next/utils/geoCollection.d.ts.map +1 -1
- package/esm/next/utils/geoCollection.js +15 -61
- package/esm/next/utils/geoCollection.js.map +1 -1
- package/esm/next/utils/geoHeaders.d.ts +12 -0
- package/esm/next/utils/geoHeaders.d.ts.map +1 -0
- package/esm/next/utils/geoHeaders.js +12 -0
- package/esm/next/utils/geoHeaders.js.map +1 -0
- package/esm/next/utils/guards.d.ts +18 -0
- package/esm/next/utils/guards.d.ts.map +1 -0
- package/esm/next/utils/guards.js +41 -0
- package/esm/next/utils/guards.js.map +1 -0
- package/esm/next/utils/layerConversion.d.ts +38 -0
- package/esm/next/utils/layerConversion.d.ts.map +1 -0
- package/esm/next/utils/layerConversion.js +244 -0
- package/esm/next/utils/layerConversion.js.map +1 -0
- package/package.json +9 -9
- package/styles/css/main.css +18 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/geo-chart-next.scss +24 -0
- package/styles/scss/main.scss +1 -0
- package/esm/next/RenderGeoAreaChart.d.ts +0 -15
- package/esm/next/RenderGeoAreaChart.d.ts.map +0 -1
- package/esm/next/RenderGeoAreaChart.js +0 -104
- package/esm/next/RenderGeoAreaChart.js.map +0 -1
- package/esm/next/RenderGeoPushpinChart.d.ts +0 -15
- package/esm/next/RenderGeoPushpinChart.d.ts.map +0 -1
- package/esm/next/RenderGeoPushpinChart.js +0 -111
- package/esm/next/RenderGeoPushpinChart.js.map +0 -1
- package/esm/next/components/ErrorComponent.d.ts +0 -13
- package/esm/next/components/ErrorComponent.d.ts.map +0 -1
- package/esm/next/components/ErrorComponent.js.map +0 -1
- package/esm/next/components/LoadingComponent.d.ts +0 -5
- package/esm/next/components/LoadingComponent.d.ts.map +0 -1
- package/esm/next/components/LoadingComponent.js.map +0 -1
- package/esm/next/constants/geoChart.d.ts.map +0 -1
- package/esm/next/constants/geoChart.js.map +0 -1
- package/esm/next/constants/internal.d.ts.map +0 -1
- package/esm/next/constants/internal.js.map +0 -1
- package/esm/next/context/GeoAreaCollectionContext.d.ts +0 -24
- package/esm/next/context/GeoAreaCollectionContext.d.ts.map +0 -1
- package/esm/next/context/GeoAreaCollectionContext.js +0 -39
- package/esm/next/context/GeoAreaCollectionContext.js.map +0 -1
- package/esm/next/context/GeoAreaDataContext.d.ts +0 -69
- package/esm/next/context/GeoAreaDataContext.d.ts.map +0 -1
- package/esm/next/context/GeoAreaDataContext.js +0 -87
- package/esm/next/context/GeoAreaDataContext.js.map +0 -1
- package/esm/next/context/GeoAreaPropsContext.d.ts +0 -47
- package/esm/next/context/GeoAreaPropsContext.d.ts.map +0 -1
- package/esm/next/context/GeoAreaPropsContext.js +0 -84
- package/esm/next/context/GeoAreaPropsContext.js.map +0 -1
- package/esm/next/context/GeoPushpinDataContext.d.ts +0 -14
- package/esm/next/context/GeoPushpinDataContext.d.ts.map +0 -1
- package/esm/next/context/GeoPushpinDataContext.js +0 -51
- package/esm/next/context/GeoPushpinDataContext.js.map +0 -1
- package/esm/next/context/GeoPushpinPropsContext.d.ts +0 -47
- package/esm/next/context/GeoPushpinPropsContext.d.ts.map +0 -1
- package/esm/next/context/GeoPushpinPropsContext.js +0 -81
- package/esm/next/context/GeoPushpinPropsContext.js.map +0 -1
- package/esm/next/context/MapInstanceContext.d.ts +0 -42
- package/esm/next/context/MapInstanceContext.d.ts.map +0 -1
- package/esm/next/context/MapInstanceContext.js +0 -62
- package/esm/next/context/MapInstanceContext.js.map +0 -1
- package/esm/next/features/clustering/clustering.d.ts +0 -23
- package/esm/next/features/clustering/clustering.d.ts.map +0 -1
- package/esm/next/features/clustering/clustering.js +0 -26
- package/esm/next/features/clustering/clustering.js.map +0 -1
- package/esm/next/features/coloring/areaColorStrategy.d.ts.map +0 -1
- package/esm/next/features/coloring/areaColorStrategy.js.map +0 -1
- package/esm/next/features/coloring/areaPalette.d.ts.map +0 -1
- package/esm/next/features/coloring/areaPalette.js.map +0 -1
- package/esm/next/features/coloring/colorStrategy.d.ts.map +0 -1
- package/esm/next/features/coloring/colorStrategy.js.map +0 -1
- package/esm/next/features/coloring/palette.d.ts.map +0 -1
- package/esm/next/features/coloring/palette.js.map +0 -1
- package/esm/next/features/data/areaTransformation.d.ts +0 -60
- package/esm/next/features/data/areaTransformation.d.ts.map +0 -1
- package/esm/next/features/data/areaTransformation.js.map +0 -1
- package/esm/next/features/data/dataSourceManagement.d.ts +0 -20
- package/esm/next/features/data/dataSourceManagement.d.ts.map +0 -1
- package/esm/next/features/data/dataSourceManagement.js +0 -30
- package/esm/next/features/data/dataSourceManagement.js.map +0 -1
- package/esm/next/features/data/pushpinTransformation.d.ts.map +0 -1
- package/esm/next/features/data/pushpinTransformation.js.map +0 -1
- package/esm/next/features/data/transformationCommon.d.ts.map +0 -1
- package/esm/next/features/data/transformationCommon.js.map +0 -1
- package/esm/next/features/map/areaLayerManagement.d.ts +0 -51
- package/esm/next/features/map/areaLayerManagement.d.ts.map +0 -1
- package/esm/next/features/map/areaLayerManagement.js +0 -81
- package/esm/next/features/map/areaLayerManagement.js.map +0 -1
- package/esm/next/features/map/initializeMap.d.ts.map +0 -1
- package/esm/next/features/map/initializeMap.js.map +0 -1
- package/esm/next/features/map/layerManagement.d.ts +0 -51
- package/esm/next/features/map/layerManagement.d.ts.map +0 -1
- package/esm/next/features/map/layerManagement.js +0 -95
- package/esm/next/features/map/layerManagement.js.map +0 -1
- package/esm/next/features/map/viewportManagement.d.ts +0 -89
- package/esm/next/features/map/viewportManagement.d.ts.map +0 -1
- package/esm/next/features/map/viewportManagement.js +0 -223
- package/esm/next/features/map/viewportManagement.js.map +0 -1
- package/esm/next/features/size/calculations.d.ts.map +0 -1
- package/esm/next/features/size/calculations.js.map +0 -1
- package/esm/next/features/tooltip/formatting.d.ts.map +0 -1
- package/esm/next/features/tooltip/formatting.js.map +0 -1
- package/esm/next/features/tooltip/tooltipManagement.d.ts +0 -47
- package/esm/next/features/tooltip/tooltipManagement.d.ts.map +0 -1
- package/esm/next/features/tooltip/tooltipManagement.js +0 -77
- package/esm/next/features/tooltip/tooltipManagement.js.map +0 -1
- package/esm/next/helpers/areaAttributeResolver.d.ts +0 -10
- package/esm/next/helpers/areaAttributeResolver.d.ts.map +0 -1
- package/esm/next/helpers/areaAttributeResolver.js +0 -26
- package/esm/next/helpers/areaAttributeResolver.js.map +0 -1
- package/esm/next/hooks/init/useInitExecution.d.ts +0 -32
- package/esm/next/hooks/init/useInitExecution.d.ts.map +0 -1
- package/esm/next/hooks/init/useInitExecution.js +0 -107
- package/esm/next/hooks/init/useInitExecution.js.map +0 -1
- package/esm/next/hooks/init/useInitExecutionResult.d.ts +0 -17
- package/esm/next/hooks/init/useInitExecutionResult.d.ts.map +0 -1
- package/esm/next/hooks/init/useInitExecutionResult.js +0 -51
- package/esm/next/hooks/init/useInitExecutionResult.js.map +0 -1
- package/esm/next/hooks/legend/useAreaLegendItems.d.ts +0 -27
- package/esm/next/hooks/legend/useAreaLegendItems.d.ts.map +0 -1
- package/esm/next/hooks/legend/useAreaLegendItems.js +0 -33
- package/esm/next/hooks/legend/useAreaLegendItems.js.map +0 -1
- package/esm/next/hooks/legend/useLegendProps.d.ts +0 -53
- package/esm/next/hooks/legend/useLegendProps.d.ts.map +0 -1
- package/esm/next/hooks/legend/useLegendProps.js +0 -38
- package/esm/next/hooks/legend/useLegendProps.js.map +0 -1
- package/esm/next/hooks/legend/usePushpinLegendItems.d.ts +0 -27
- package/esm/next/hooks/legend/usePushpinLegendItems.d.ts.map +0 -1
- package/esm/next/hooks/legend/usePushpinLegendItems.js +0 -33
- package/esm/next/hooks/legend/usePushpinLegendItems.js.map +0 -1
- package/esm/next/hooks/map/useAreaMapDataSync.d.ts +0 -9
- package/esm/next/hooks/map/useAreaMapDataSync.d.ts.map +0 -1
- package/esm/next/hooks/map/useAreaMapDataSync.js +0 -71
- package/esm/next/hooks/map/useAreaMapDataSync.js.map +0 -1
- package/esm/next/hooks/map/useMapDataSync.d.ts +0 -44
- package/esm/next/hooks/map/useMapDataSync.d.ts.map +0 -1
- package/esm/next/hooks/map/useMapDataSync.js +0 -87
- package/esm/next/hooks/map/useMapDataSync.js.map +0 -1
- package/esm/next/hooks/map/useTooltipHandlers.d.ts +0 -22
- package/esm/next/hooks/map/useTooltipHandlers.d.ts.map +0 -1
- package/esm/next/hooks/map/useTooltipHandlers.js +0 -28
- package/esm/next/hooks/map/useTooltipHandlers.js.map +0 -1
- package/esm/next/hooks/shared/geoCollectionBoundingBox.d.ts.map +0 -1
- package/esm/next/hooks/shared/geoCollectionBoundingBox.js.map +0 -1
- package/esm/next/hooks/shared/useAreaCollectionFeatures.d.ts +0 -43
- package/esm/next/hooks/shared/useAreaCollectionFeatures.d.ts.map +0 -1
- package/esm/next/hooks/shared/useAreaCollectionFeatures.js +0 -213
- package/esm/next/hooks/shared/useAreaCollectionFeatures.js.map +0 -1
- package/esm/next/hooks/shared/useAreaDataTransformation.d.ts +0 -21
- package/esm/next/hooks/shared/useAreaDataTransformation.d.ts.map +0 -1
- package/esm/next/hooks/shared/useAreaDataTransformation.js +0 -25
- package/esm/next/hooks/shared/useAreaDataTransformation.js.map +0 -1
- package/esm/next/hooks/shared/useAreaPushData.d.ts +0 -11
- package/esm/next/hooks/shared/useAreaPushData.d.ts.map +0 -1
- package/esm/next/hooks/shared/useAreaPushData.js +0 -20
- package/esm/next/hooks/shared/useAreaPushData.js.map +0 -1
- package/esm/next/hooks/shared/useGeoDataTransformation.d.ts +0 -9
- package/esm/next/hooks/shared/useGeoDataTransformation.d.ts.map +0 -1
- package/esm/next/hooks/shared/useGeoDataTransformation.js +0 -20
- package/esm/next/hooks/shared/useGeoDataTransformation.js.map +0 -1
- package/esm/next/hooks/shared/useGeoPushData.d.ts +0 -20
- package/esm/next/hooks/shared/useGeoPushData.d.ts.map +0 -1
- package/esm/next/hooks/shared/useGeoPushData.js.map +0 -1
- package/esm/next/hooks/shared/usePushData.d.ts +0 -8
- package/esm/next/hooks/shared/usePushData.d.ts.map +0 -1
- package/esm/next/hooks/shared/usePushData.js +0 -15
- package/esm/next/hooks/shared/usePushData.js.map +0 -1
- package/esm/next/hooks/shared/usePushpinDataTransformation.d.ts +0 -23
- package/esm/next/hooks/shared/usePushpinDataTransformation.d.ts.map +0 -1
- package/esm/next/hooks/shared/usePushpinDataTransformation.js +0 -27
- package/esm/next/hooks/shared/usePushpinDataTransformation.js.map +0 -1
- package/esm/next/hooks/shared/useResolvedAreaProps.d.ts +0 -16
- package/esm/next/hooks/shared/useResolvedAreaProps.d.ts.map +0 -1
- package/esm/next/hooks/shared/useResolvedAreaProps.js +0 -36
- package/esm/next/hooks/shared/useResolvedAreaProps.js.map +0 -1
- package/esm/next/hooks/shared/useResolvedPlaceholderValues.d.ts +0 -8
- package/esm/next/hooks/shared/useResolvedPlaceholderValues.d.ts.map +0 -1
- package/esm/next/hooks/shared/useResolvedPlaceholderValues.js +0 -11
- package/esm/next/hooks/shared/useResolvedPlaceholderValues.js.map +0 -1
- package/esm/next/hooks/shared/useResolvedProps.d.ts +0 -16
- package/esm/next/hooks/shared/useResolvedProps.d.ts.map +0 -1
- package/esm/next/hooks/shared/useResolvedProps.js +0 -40
- package/esm/next/hooks/shared/useResolvedProps.js.map +0 -1
- package/esm/next/hooks/shared/useSegmentLegendItems.d.ts +0 -17
- package/esm/next/hooks/shared/useSegmentLegendItems.d.ts.map +0 -1
- package/esm/next/hooks/shared/useSegmentLegendItems.js +0 -33
- package/esm/next/hooks/shared/useSegmentLegendItems.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreConfig.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreConfig.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataLayers.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataLayers.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataLayersArea.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataLayersArea.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataSource.d.ts +0 -28
- package/esm/next/providers/maplibre/maplibreDataSource.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataSource.js +0 -117
- package/esm/next/providers/maplibre/maplibreDataSource.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataSourceArea.d.ts +0 -34
- package/esm/next/providers/maplibre/maplibreDataSourceArea.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataSourceArea.js +0 -223
- package/esm/next/providers/maplibre/maplibreDataSourceArea.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreTooltip.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreTooltip.js +0 -174
- package/esm/next/providers/maplibre/maplibreTooltip.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreViewport.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreViewport.js.map +0 -1
- package/esm/next/providers/maplibre/style.d.ts +0 -3
- package/esm/next/providers/maplibre/style.d.ts.map +0 -1
- package/esm/next/providers/maplibre/style.js.map +0 -1
- package/esm/next/types/areaConfig.d.ts +0 -68
- package/esm/next/types/areaConfig.d.ts.map +0 -1
- package/esm/next/types/areaConfig.js.map +0 -1
- package/esm/next/types/areaInternal.d.ts +0 -13
- package/esm/next/types/areaInternal.d.ts.map +0 -1
- package/esm/next/types/areaInternal.js.map +0 -1
- package/esm/next/types/areaPublic.d.ts +0 -68
- package/esm/next/types/areaPublic.d.ts.map +0 -1
- package/esm/next/types/areaPublic.js.map +0 -1
- package/esm/next/types/config.d.ts +0 -89
- package/esm/next/types/config.d.ts.map +0 -1
- package/esm/next/types/config.js.map +0 -1
- package/esm/next/types/internal.d.ts +0 -17
- package/esm/next/types/internal.d.ts.map +0 -1
- package/esm/next/types/internal.js.map +0 -1
- package/esm/next/types/mapProvider.d.ts.map +0 -1
- package/esm/next/types/mapProvider.js +0 -3
- package/esm/next/types/mapProvider.js.map +0 -1
- package/esm/next/types/public.d.ts +0 -84
- package/esm/next/types/public.d.ts.map +0 -1
- package/esm/next/types/public.js +0 -15
- package/esm/next/types/public.js.map +0 -1
- package/esm/next/types/shared.d.ts +0 -245
- package/esm/next/types/shared.d.ts.map +0 -1
- package/esm/next/types/shared.js.map +0 -1
- /package/esm/next/{features → layers/pushpin}/size/calculations.d.ts +0 -0
- /package/esm/next/{features → layers/pushpin}/size/calculations.js +0 -0
- /package/esm/next/types/{internal.js → props/areaChart/internal.js} +0 -0
|
@@ -1,33 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { IGeoAreaChartProps } from "./types/
|
|
2
|
+
import { AREA_LAYER_ID } from "./layers/area/layerFactory.js";
|
|
3
|
+
import { IGeoAreaChartProps } from "./types/props/areaChart/public.js";
|
|
4
|
+
export { AREA_LAYER_ID };
|
|
4
5
|
/**
|
|
5
|
-
* GeoAreaChart
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* This component renders an area map where geographic areas (countries, regions, states)
|
|
9
|
-
* are rendered according to the provided geographic attribute. It uses MapLibre GL JS for rendering and supports:
|
|
10
|
-
* - Area-based visualization with polygon fills
|
|
11
|
-
* - Optional color measures or attributes for data-driven styling
|
|
12
|
-
* - Optional segment attributes for categorical grouping
|
|
13
|
-
* - Interactive legends that reflect the active color/segment state
|
|
14
|
-
* - Drilling capabilities inherited from the GoodData.UI visualization props
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <GeoAreaChart
|
|
19
|
-
* backend={backend}
|
|
20
|
-
* workspace={workspace}
|
|
21
|
-
* area={Md.Country}
|
|
22
|
-
* color={Md.Revenue}
|
|
23
|
-
* />
|
|
24
|
-
* ```
|
|
6
|
+
* GeoAreaChart wraps {@link GeoChartNext} for the single area-layer scenario.
|
|
25
7
|
*
|
|
26
8
|
* @alpha
|
|
27
9
|
*/
|
|
28
10
|
export declare function GeoAreaChart(props: IGeoAreaChartProps): ReactElement;
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
export declare function GeoAreaChartImplementation(props: ICoreGeoAreaChartProps): ReactElement;
|
|
33
11
|
//# sourceMappingURL=GeoAreaChart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoAreaChart.d.ts","sourceRoot":"","sources":["../../src/next/GeoAreaChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"GeoAreaChart.d.ts","sourceRoot":"","sources":["../../src/next/GeoAreaChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAW,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,aAAa,EAAmB,MAAM,+BAA+B,CAAC;AAE/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,GAAG,YAAY,CAqBpE"}
|
package/esm/next/GeoAreaChart.js
CHANGED
|
@@ -1,65 +1,24 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { GeoAreaDataProvider } from "./context/GeoAreaDataContext.js";
|
|
8
|
-
import { GeoAreaPropsProvider } from "./context/GeoAreaPropsContext.js";
|
|
9
|
-
import { GeoLegendProvider } from "./context/GeoLegendContext.js";
|
|
10
|
-
import { GeoPushpinPropsProvider } from "./context/GeoPushpinPropsContext.js";
|
|
11
|
-
import { InitialExecutionContextProvider } from "./context/InitialExecutionContext.js";
|
|
12
|
-
import { MapInstanceProvider } from "./context/MapInstanceContext.js";
|
|
13
|
-
import { useInitExecution } from "./hooks/init/useInitExecution.js";
|
|
14
|
-
import { useInitExecutionResult } from "./hooks/init/useInitExecutionResult.js";
|
|
15
|
-
import { useResolvedAreaProps } from "./hooks/shared/useResolvedAreaProps.js";
|
|
16
|
-
import { RenderGeoAreaChart } from "./RenderGeoAreaChart.js";
|
|
2
|
+
// (C) 2025 GoodData Corporation
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { GeoChartNext } from "./GeoChartNext.js";
|
|
5
|
+
import { AREA_LAYER_ID, createAreaLayer } from "./layers/area/layerFactory.js";
|
|
6
|
+
export { AREA_LAYER_ID };
|
|
17
7
|
/**
|
|
18
|
-
* GeoAreaChart
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* This component renders an area map where geographic areas (countries, regions, states)
|
|
22
|
-
* are rendered according to the provided geographic attribute. It uses MapLibre GL JS for rendering and supports:
|
|
23
|
-
* - Area-based visualization with polygon fills
|
|
24
|
-
* - Optional color measures or attributes for data-driven styling
|
|
25
|
-
* - Optional segment attributes for categorical grouping
|
|
26
|
-
* - Interactive legends that reflect the active color/segment state
|
|
27
|
-
* - Drilling capabilities inherited from the GoodData.UI visualization props
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```tsx
|
|
31
|
-
* <GeoAreaChart
|
|
32
|
-
* backend={backend}
|
|
33
|
-
* workspace={workspace}
|
|
34
|
-
* area={Md.Country}
|
|
35
|
-
* color={Md.Revenue}
|
|
36
|
-
* />
|
|
37
|
-
* ```
|
|
8
|
+
* GeoAreaChart wraps {@link GeoChartNext} for the single area-layer scenario.
|
|
38
9
|
*
|
|
39
10
|
* @alpha
|
|
40
11
|
*/
|
|
41
12
|
export function GeoAreaChart(props) {
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
|
-
function GeoAreaChartWithInitialization() {
|
|
56
|
-
const { result: dataView, status, error } = useInitExecutionResult();
|
|
57
|
-
if (status === "error") {
|
|
58
|
-
return _jsx(ErrorComponent, { error: error });
|
|
59
|
-
}
|
|
60
|
-
if (status === "pending" || status === "loading") {
|
|
61
|
-
return _jsx(LoadingComponent, {});
|
|
62
|
-
}
|
|
63
|
-
return (_jsx(InitialExecutionContextProvider, { initialDataView: dataView, children: _jsx(GeoAreaCollectionProvider, { children: _jsx(GeoAreaDataProvider, { children: _jsx(GeoLegendProvider, { children: _jsx(RenderGeoAreaChart, {}) }) }) }) }));
|
|
13
|
+
const { area, color, segmentBy, filters, sortBy, config, additionalLayers, ...restProps } = props;
|
|
14
|
+
const primaryLayer = useMemo(() => createAreaLayer({
|
|
15
|
+
area,
|
|
16
|
+
color,
|
|
17
|
+
segmentBy,
|
|
18
|
+
filters,
|
|
19
|
+
sortBy,
|
|
20
|
+
}), [area, color, segmentBy, filters, sortBy]);
|
|
21
|
+
const allLayers = useMemo(() => [primaryLayer, ...(additionalLayers ?? [])], [primaryLayer, additionalLayers]);
|
|
22
|
+
return _jsx(GeoChartNext, { ...restProps, layers: allLayers, config: config });
|
|
64
23
|
}
|
|
65
24
|
//# sourceMappingURL=GeoAreaChart.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoAreaChart.js","sourceRoot":"","sources":["../../src/next/GeoAreaChart.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"GeoAreaChart.js","sourceRoot":"","sources":["../../src/next/GeoAreaChart.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAgB,OAAO,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAI/E,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,KAAyB;IAClD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAElG,MAAM,YAAY,GAAG,OAAO,CACxB,GAAG,EAAE,CACD,eAAe,CAAC;QACZ,IAAI;QACJ,KAAK;QACL,SAAS;QACT,OAAO;QACP,MAAM;KACT,CAAC,EACN,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAC5C,CAAC;IAEF,MAAM,SAAS,GAAG,OAAO,CACrB,GAAG,EAAE,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,EACjD,CAAC,YAAY,EAAE,gBAAgB,CAAC,CACnC,CAAC;IAEF,OAAO,KAAC,YAAY,OAAK,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import type { GeoLayerType } from "./types/layers/index.js";
|
|
3
|
+
import { ICoreGeoChartNextProps } from "./types/props/geoChartNext/internal.js";
|
|
4
|
+
import { IGeoChartNextProps } from "./types/props/geoChartNext/public.js";
|
|
5
|
+
/**
|
|
6
|
+
* GeoChartNext renders a MapLibre-based geo visualization composed of one or more data layers.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*/
|
|
10
|
+
export declare function GeoChartNext(props: IGeoChartNextProps): ReactElement;
|
|
11
|
+
/**
|
|
12
|
+
* Internal implementation of GeoChartNext that consumes normalized layer executions.
|
|
13
|
+
*
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare function GeoChartNextInternal(props: ICoreGeoChartNextProps & {
|
|
17
|
+
type: GeoLayerType;
|
|
18
|
+
}): ReactElement;
|
|
19
|
+
//# sourceMappingURL=GeoChartNext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoChartNext.d.ts","sourceRoot":"","sources":["../../src/next/GeoChartNext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAUrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,GAAG,YAAY,CAoBpE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,sBAAsB,GAAG;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,GAAG,YAAY,CAazG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { IntlWrapper, UnexpectedSdkError } from "@gooddata/sdk-ui";
|
|
3
|
+
import { ThemeContextProvider } from "@gooddata/sdk-ui-theme-provider";
|
|
4
|
+
import { GeoChartNextDataLoader } from "./components/GeoChartNextDataLoader.js";
|
|
5
|
+
import { GeoChartNextPropsProvider } from "./context/GeoChartNextContext.js";
|
|
6
|
+
import { useNormalizedLayerExecutions } from "./hooks/dataLoading/useNormalizedLayerExecutions.js";
|
|
7
|
+
import { useLayersExecutions } from "./hooks/layers/useLayersExecutions.js";
|
|
8
|
+
import { useResolvedGeoChartNextProps } from "./hooks/props/useResolvedGeoChartNextProps.js";
|
|
9
|
+
/**
|
|
10
|
+
* GeoChartNext renders a MapLibre-based geo visualization composed of one or more data layers.
|
|
11
|
+
*
|
|
12
|
+
* @alpha
|
|
13
|
+
*/
|
|
14
|
+
export function GeoChartNext(props) {
|
|
15
|
+
const resolvedProps = useResolvedGeoChartNextProps(props);
|
|
16
|
+
const { primaryExecution, additionalExecutions } = useLayersExecutions(resolvedProps);
|
|
17
|
+
if (!primaryExecution) {
|
|
18
|
+
throw new UnexpectedSdkError("GeoChartNext requires at least one layer. " +
|
|
19
|
+
"Provide layers=[{ id: 'myLayer', type: 'pushpin', latitude: Md.Lat, longitude: Md.Lng }] " +
|
|
20
|
+
"for point data, or { id: 'myLayer', type: 'area', area: Md.Country } for region data.");
|
|
21
|
+
}
|
|
22
|
+
return (_jsx(GeoChartNextInternal, { ...resolvedProps, execution: primaryExecution, executions: additionalExecutions }));
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Internal implementation of GeoChartNext that consumes normalized layer executions.
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export function GeoChartNextInternal(props) {
|
|
30
|
+
const { layerExecutions, propsWithLayers } = useNormalizedLayerExecutions(props);
|
|
31
|
+
const { locale, theme, ...providerProps } = propsWithLayers;
|
|
32
|
+
return (_jsx(IntlWrapper, { locale: locale, children: _jsx(ThemeContextProvider, { theme: theme || {}, themeIsLoading: false, children: _jsx(GeoChartNextPropsProvider, { ...providerProps, locale: locale, theme: theme, children: _jsx(GeoChartNextDataLoader, { layerExecutions: layerExecutions }) }) }) }));
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=GeoChartNext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoChartNext.js","sourceRoot":"","sources":["../../src/next/GeoChartNext.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAEvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAK7F;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,KAAyB;IAClD,MAAM,aAAa,GAAG,4BAA4B,CAAC,KAAK,CAAC,CAAC;IAE1D,MAAM,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAC;IAEtF,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACpB,MAAM,IAAI,kBAAkB,CACxB,4CAA4C;YACxC,2FAA2F;YAC3F,uFAAuF,CAC9F,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,oBAAoB,OACb,aAAa,EACjB,SAAS,EAAE,gBAAgB,EAC3B,UAAU,EAAE,oBAAoB,GAClC,CACL,CAAC;AACN,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAsD;IACvF,MAAM,EAAE,eAAe,EAAE,eAAe,EAAE,GAAG,4BAA4B,CAAC,KAAK,CAAC,CAAC;IACjF,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,aAAa,EAAE,GAAG,eAAe,CAAC;IAE5D,OAAO,CACH,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,YACvB,KAAC,oBAAoB,IAAC,KAAK,EAAE,KAAK,IAAI,EAAE,EAAE,cAAc,EAAE,KAAK,YAC3D,KAAC,yBAAyB,OAAK,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,YACtE,KAAC,sBAAsB,IAAC,eAAe,EAAE,eAAe,GAAI,GACpC,GACT,GACb,CACjB,CAAC;AACN,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { IGeoPushpinChartNextProps } from "./types/public.js";
|
|
2
|
+
import { PUSHPIN_LAYER_ID } from "./layers/pushpin/layerFactory.js";
|
|
3
|
+
import { IGeoPushpinChartNextProps } from "./types/props/pushpinChart/public.js";
|
|
4
|
+
export { PUSHPIN_LAYER_ID };
|
|
4
5
|
/**
|
|
6
|
+
* GeoPushpinChartNext wraps {@link GeoChartNext} for the single pushpin-layer scenario.
|
|
7
|
+
*
|
|
5
8
|
* @alpha
|
|
6
9
|
*/
|
|
7
10
|
export declare function GeoPushpinChartNext(props: IGeoPushpinChartNextProps): ReactElement;
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export declare function GeoPushpinChartNextImplementation(props: ICoreGeoPushpinChartNextProps): ReactElement;
|
|
12
11
|
//# sourceMappingURL=GeoPushpinChartNext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoPushpinChartNext.d.ts","sourceRoot":"","sources":["../../src/next/GeoPushpinChartNext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"GeoPushpinChartNext.d.ts","sourceRoot":"","sources":["../../src/next/GeoPushpinChartNext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAW,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,gBAAgB,EAAsB,MAAM,kCAAkC,CAAC;AAExF,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAEjF,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,yBAAyB,GAAG,YAAY,CAkClF"}
|
|
@@ -1,42 +1,26 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { GeoPushpinDataProvider } from "./context/GeoPushpinDataContext.js";
|
|
8
|
-
import { GeoPushpinPropsProvider } from "./context/GeoPushpinPropsContext.js";
|
|
9
|
-
import { InitialExecutionContextProvider } from "./context/InitialExecutionContext.js";
|
|
10
|
-
import { MapInstanceProvider } from "./context/MapInstanceContext.js";
|
|
11
|
-
import { useInitExecution } from "./hooks/init/useInitExecution.js";
|
|
12
|
-
import { useInitExecutionResult } from "./hooks/init/useInitExecutionResult.js";
|
|
13
|
-
import { useResolvedProps } from "./hooks/shared/useResolvedProps.js";
|
|
14
|
-
import { RenderGeoPushpinChart } from "./RenderGeoPushpinChart.js";
|
|
2
|
+
// (C) 2025 GoodData Corporation
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { GeoChartNext } from "./GeoChartNext.js";
|
|
5
|
+
import { PUSHPIN_LAYER_ID, createPushpinLayer } from "./layers/pushpin/layerFactory.js";
|
|
6
|
+
export { PUSHPIN_LAYER_ID };
|
|
15
7
|
/**
|
|
8
|
+
* GeoPushpinChartNext wraps {@link GeoChartNext} for the single pushpin-layer scenario.
|
|
9
|
+
*
|
|
16
10
|
* @alpha
|
|
17
11
|
*/
|
|
18
12
|
export function GeoPushpinChartNext(props) {
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
function GeoPushpinChartNextWithInitialization() {
|
|
33
|
-
const { result: dataView, status, error } = useInitExecutionResult();
|
|
34
|
-
if (status === "error") {
|
|
35
|
-
return _jsx(ErrorComponent, { error: error });
|
|
36
|
-
}
|
|
37
|
-
if (status === "pending" || status === "loading") {
|
|
38
|
-
return _jsx(LoadingComponent, {});
|
|
39
|
-
}
|
|
40
|
-
return (_jsx(InitialExecutionContextProvider, { initialDataView: dataView, children: _jsx(GeoPushpinDataProvider, { children: _jsx(GeoLegendProvider, { children: _jsx(RenderGeoPushpinChart, {}) }) }) }));
|
|
13
|
+
const { latitude, longitude, segmentBy, size, color, filters, sortBy, config, additionalLayers, ...restProps } = props;
|
|
14
|
+
const primaryLayer = useMemo(() => createPushpinLayer({
|
|
15
|
+
latitude,
|
|
16
|
+
longitude,
|
|
17
|
+
size,
|
|
18
|
+
color,
|
|
19
|
+
segmentBy,
|
|
20
|
+
filters,
|
|
21
|
+
sortBy,
|
|
22
|
+
}), [latitude, longitude, size, color, segmentBy, filters, sortBy]);
|
|
23
|
+
const allLayers = useMemo(() => [primaryLayer, ...(additionalLayers ?? [])], [primaryLayer, additionalLayers]);
|
|
24
|
+
return _jsx(GeoChartNext, { ...restProps, layers: allLayers, config: config });
|
|
41
25
|
}
|
|
42
26
|
//# sourceMappingURL=GeoPushpinChartNext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoPushpinChartNext.js","sourceRoot":"","sources":["../../src/next/GeoPushpinChartNext.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"GeoPushpinChartNext.js","sourceRoot":"","sources":["../../src/next/GeoPushpinChartNext.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAgB,OAAO,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAIxF,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAgC;IAChE,MAAM,EACF,QAAQ,EACR,SAAS,EACT,SAAS,EACT,IAAI,EACJ,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,gBAAgB,EAChB,GAAG,SAAS,EACf,GAAG,KAAK,CAAC;IAEV,MAAM,YAAY,GAAG,OAAO,CACxB,GAAG,EAAE,CACD,kBAAkB,CAAC;QACf,QAAQ;QACR,SAAS;QACT,IAAI;QACJ,KAAK;QACL,SAAS;QACT,OAAO;QACP,MAAM;KACT,CAAC,EACN,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CACjE,CAAC;IAEF,MAAM,SAAS,GAAG,OAAO,CACrB,GAAG,EAAE,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,EACjD,CAAC,YAAY,EAAE,gBAAgB,CAAC,CACnC,CAAC;IAEF,OAAO,KAAC,YAAY,OAAK,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { ILayerExecutionRecord } from "../types/props/geoChartNext/internal.js";
|
|
3
|
+
/**
|
|
4
|
+
* Component that loads all layer data before rendering.
|
|
5
|
+
* This is the single async loading gate - everything below is synchronous.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function GeoChartNextDataLoader({ layerExecutions, }: {
|
|
10
|
+
layerExecutions: ILayerExecutionRecord[];
|
|
11
|
+
}): ReactElement;
|
|
12
|
+
//# sourceMappingURL=GeoChartNextDataLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoChartNextDataLoader.d.ts","sourceRoot":"","sources":["../../../src/next/components/GeoChartNextDataLoader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAarC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EACnC,eAAe,GAClB,EAAE;IACC,eAAe,EAAE,qBAAqB,EAAE,CAAC;CAC5C,GAAG,YAAY,CAsCf"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useIntl } from "react-intl";
|
|
3
|
+
import { useBackendStrict, useWorkspaceStrict } from "@gooddata/sdk-ui";
|
|
4
|
+
import { GeoChartNextProviders } from "./GeoChartNextProviders.js";
|
|
5
|
+
import { GeoErrorComponent } from "./GeoErrorComponent.js";
|
|
6
|
+
import { GeoLoadingComponent } from "./GeoLoadingComponent.js";
|
|
7
|
+
import { RenderGeoChartNext } from "./RenderGeoChartNext.js";
|
|
8
|
+
import { useGeoChartNextProps } from "../context/GeoChartNextContext.js";
|
|
9
|
+
import { useGeoChartData } from "../hooks/dataLoading/useGeoChartDataPipeline.js";
|
|
10
|
+
import { useCallbackOnChange } from "../hooks/utils/useCallbackOnChange.js";
|
|
11
|
+
/**
|
|
12
|
+
* Component that loads all layer data before rendering.
|
|
13
|
+
* This is the single async loading gate - everything below is synchronous.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export function GeoChartNextDataLoader({ layerExecutions, }) {
|
|
18
|
+
const props = useGeoChartNextProps();
|
|
19
|
+
const intl = useIntl();
|
|
20
|
+
const backend = useBackendStrict(props.backend, "GeoDataLoadingGate");
|
|
21
|
+
const workspace = useWorkspaceStrict(props.workspace, "GeoDataLoadingGate");
|
|
22
|
+
const { layerOutputs, status, error, colorPalette } = useGeoChartData({
|
|
23
|
+
layerExecutions,
|
|
24
|
+
backend,
|
|
25
|
+
workspace,
|
|
26
|
+
config: props.config,
|
|
27
|
+
execConfig: props.execConfig,
|
|
28
|
+
intl,
|
|
29
|
+
});
|
|
30
|
+
const isLoading = status === "loading";
|
|
31
|
+
const { onLoadingChanged, onError } = props;
|
|
32
|
+
useCallbackOnChange(isLoading, (loading) => onLoadingChanged?.({ isLoading: loading }));
|
|
33
|
+
useCallbackOnChange(error, (err) => onError?.(err), Boolean(error));
|
|
34
|
+
if (status === "error" && error) {
|
|
35
|
+
return _jsx(GeoErrorComponent, { error: error });
|
|
36
|
+
}
|
|
37
|
+
if (status !== "success") {
|
|
38
|
+
return _jsx(GeoLoadingComponent, {});
|
|
39
|
+
}
|
|
40
|
+
return (_jsx(GeoChartNextProviders, { layerExecutions: layerExecutions, layerOutputs: layerOutputs, colorPalette: colorPalette, children: _jsx(RenderGeoChartNext, {}) }));
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=GeoChartNextDataLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoChartNextDataLoader.js","sourceRoot":"","sources":["../../../src/next/components/GeoChartNextDataLoader.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAG5E;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAC,EACnC,eAAe,GAGlB;IACG,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,OAAO,GAAG,gBAAgB,CAAC,KAAK,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;IACtE,MAAM,SAAS,GAAG,kBAAkB,CAAC,KAAK,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;IAE5E,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,eAAe,CAAC;QAClE,eAAe;QACf,OAAO;QACP,SAAS;QACT,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,IAAI;KACP,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,MAAM,KAAK,SAAS,CAAC;IACvC,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE5C,mBAAmB,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,gBAAgB,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IACxF,mBAAmB,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,GAAI,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAErE,IAAI,MAAM,KAAK,OAAO,IAAI,KAAK,EAAE,CAAC;QAC9B,OAAO,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;IAC/C,CAAC;IAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,KAAC,mBAAmB,KAAG,CAAC;IACnC,CAAC;IAED,OAAO,CACH,KAAC,qBAAqB,IAClB,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,YAE1B,KAAC,kBAAkB,KAAG,GACF,CAC3B,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from "react";
|
|
2
|
+
import { IColorPalette } from "@gooddata/sdk-model";
|
|
3
|
+
import type { ILayerPreparedData } from "../hooks/layers/useLayersPrepare.js";
|
|
4
|
+
import type { ILayerExecutionRecord } from "../types/props/geoChartNext/internal.js";
|
|
5
|
+
interface IGeoChartNextProvidersProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
layerExecutions: ILayerExecutionRecord[];
|
|
8
|
+
layerOutputs: Map<string, ILayerPreparedData>;
|
|
9
|
+
colorPalette: IColorPalette;
|
|
10
|
+
}
|
|
11
|
+
export declare function GeoChartNextProviders({ children, layerExecutions, layerOutputs, colorPalette, }: IGeoChartNextProvidersProps): ReactElement;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=GeoChartNextProviders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoChartNextProviders.d.ts","sourceRoot":"","sources":["../../../src/next/components/GeoChartNextProviders.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF,UAAU,2BAA2B;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,EAAE,qBAAqB,EAAE,CAAC;IACzC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC9C,YAAY,EAAE,aAAa,CAAC;CAC/B;AAED,wBAAgB,qBAAqB,CAAC,EAClC,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,YAAY,GACf,EAAE,2BAA2B,GAAG,YAAY,CAY5C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2025 GoodData Corporation
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { GeoLayersProvider, useGeoLayers } from "../context/GeoLayersContext.js";
|
|
5
|
+
import { GeoLegendProvider } from "../context/GeoLegendContext.js";
|
|
6
|
+
import { InitialExecutionContextProvider } from "../context/InitialExecutionContext.js";
|
|
7
|
+
export function GeoChartNextProviders({ children, layerExecutions, layerOutputs, colorPalette, }) {
|
|
8
|
+
return (_jsx(GeoLayersProvider, { layerExecutions: layerExecutions, layerOutputs: layerOutputs, colorPalette: colorPalette, children: _jsx(GeoLegendProvider, { children: _jsx(InitialExecutionProvider, { children: children }) }) }));
|
|
9
|
+
}
|
|
10
|
+
function InitialExecutionProvider({ children }) {
|
|
11
|
+
const { primaryLayer } = useGeoLayers();
|
|
12
|
+
const initialDataView = useMemo(() => primaryLayer?.dataView ?? null, [primaryLayer?.dataView]);
|
|
13
|
+
return (_jsx(InitialExecutionContextProvider, { initialDataView: initialDataView, children: children }));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=GeoChartNextProviders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoChartNextProviders.js","sourceRoot":"","sources":["../../../src/next/components/GeoChartNextProviders.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAA2B,OAAO,EAAE,MAAM,OAAO,CAAC;AAIzD,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAWxF,MAAM,UAAU,qBAAqB,CAAC,EAClC,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,YAAY,GACc;IAC1B,OAAO,CACH,KAAC,iBAAiB,IACd,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,YAE1B,KAAC,iBAAiB,cACd,KAAC,wBAAwB,cAAE,QAAQ,GAA4B,GAC/C,GACJ,CACvB,CAAC;AACN,CAAC;AAED,SAAS,wBAAwB,CAAC,EAAE,QAAQ,EAA2B;IACnE,MAAM,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAAC;IACxC,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,YAAY,EAAE,QAAQ,IAAI,IAAI,EAAE,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEhG,OAAO,CACH,KAAC,+BAA+B,IAAC,eAAe,EAAE,eAAe,YAC5D,QAAQ,GACqB,CACrC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GoodDataSdkError } from "@gooddata/sdk-ui";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
interface IGeoErrorComponentProps {
|
|
6
|
+
error: GoodDataSdkError;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare function GeoErrorComponent({ error }: IGeoErrorComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=GeoErrorComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoErrorComponent.d.ts","sourceRoot":"","sources":["../../../src/next/components/GeoErrorComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGH,gBAAgB,EAEnB,MAAM,kBAAkB,CAAC;AAM1B;;GAEG;AACH,UAAU,uBAAuB;IAC7B,KAAK,EAAE,gBAAgB,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE,uBAAuB,2CAWnE"}
|
|
@@ -2,18 +2,18 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2025 GoodData Corporation
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { ErrorComponent as DefaultErrorComponent, ErrorCodes, newErrorMapping, } from "@gooddata/sdk-ui";
|
|
5
|
-
import {
|
|
5
|
+
import { useGeoChartNextProps } from "../context/GeoChartNextContext.js";
|
|
6
6
|
const UNKNOWN_ERROR_CODE = ErrorCodes.UNKNOWN_ERROR;
|
|
7
7
|
/**
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
10
|
-
export function
|
|
10
|
+
export function GeoErrorComponent({ error }) {
|
|
11
11
|
const intl = useIntl();
|
|
12
12
|
const errorMap = newErrorMapping(intl);
|
|
13
|
-
const { ErrorComponent } =
|
|
13
|
+
const { ErrorComponent } = useGeoChartNextProps();
|
|
14
14
|
const Error = ErrorComponent ?? DefaultErrorComponent;
|
|
15
15
|
const code = error.getErrorCode?.() ?? UNKNOWN_ERROR_CODE;
|
|
16
16
|
const errorProps = errorMap[code] ?? errorMap[UNKNOWN_ERROR_CODE];
|
|
17
17
|
return _jsx(Error, { code: code, ...errorProps });
|
|
18
18
|
}
|
|
19
|
-
//# sourceMappingURL=
|
|
19
|
+
//# sourceMappingURL=GeoErrorComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoErrorComponent.js","sourceRoot":"","sources":["../../../src/next/components/GeoErrorComponent.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EACH,cAAc,IAAI,qBAAqB,EACvC,UAAU,EAEV,eAAe,GAClB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,MAAM,kBAAkB,GAAG,UAAU,CAAC,aAAa,CAAC;AASpD;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAAE,KAAK,EAA2B;IAChE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,QAAQ,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAEvC,MAAM,EAAE,cAAc,EAAE,GAAG,oBAAoB,EAAE,CAAC;IAClD,MAAM,KAAK,GAAG,cAAc,IAAI,qBAAqB,CAAC;IAEtD,MAAM,IAAI,GAAG,KAAK,CAAC,YAAY,EAAE,EAAE,IAAI,kBAAkB,CAAC;IAC1D,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAElE,OAAO,KAAC,KAAK,IAAC,IAAI,EAAE,IAAI,KAAM,UAAU,GAAI,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoLoadingComponent.d.ts","sourceRoot":"","sources":["../../../src/next/components/GeoLoadingComponent.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,mBAAmB,4CAKlC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025 GoodData Corporation
|
|
3
3
|
import { LoadingComponent as DefaultLoadingComponent } from "@gooddata/sdk-ui";
|
|
4
|
-
import {
|
|
4
|
+
import { useGeoChartNextProps } from "../context/GeoChartNextContext.js";
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
|
-
export function
|
|
9
|
-
const { LoadingComponent } =
|
|
8
|
+
export function GeoLoadingComponent() {
|
|
9
|
+
const { LoadingComponent } = useGeoChartNextProps();
|
|
10
10
|
const Loading = LoadingComponent ?? DefaultLoadingComponent;
|
|
11
11
|
return _jsx(Loading, {});
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=GeoLoadingComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoLoadingComponent.js","sourceRoot":"","sources":["../../../src/next/components/GeoLoadingComponent.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE;;GAEG;AACH,MAAM,UAAU,mBAAmB;IAC/B,MAAM,EAAE,gBAAgB,EAAE,GAAG,oBAAoB,EAAE,CAAC;IACpD,MAAM,OAAO,GAAG,gBAAgB,IAAI,uBAAuB,CAAC;IAE5D,OAAO,KAAC,OAAO,KAAG,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Rendering component for GeoChartNext
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* This is the final rendering layer that:
|
|
7
|
+
* - Creates the map container
|
|
8
|
+
* - Initializes the map
|
|
9
|
+
* - Syncs all layers to map via useLayerRendering hook
|
|
10
|
+
* - Handles map interactions
|
|
11
|
+
* - Shows legend from primary layer
|
|
12
|
+
*
|
|
13
|
+
* All data is pre-loaded before this component renders - no async operations here.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare function RenderGeoChartNext(): ReactElement;
|
|
18
|
+
//# sourceMappingURL=RenderGeoChartNext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderGeoChartNext.d.ts","sourceRoot":"","sources":["../../../src/next/components/RenderGeoChartNext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA6B,MAAM,OAAO,CAAC;AAsBhE;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,IAAI,YAAY,CA2EjD"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2025 GoodData Corporation
|
|
3
|
+
import { useMemo, useRef, useState } from "react";
|
|
4
|
+
import cx from "classnames";
|
|
5
|
+
import { defaultImport } from "default-import";
|
|
6
|
+
import ReactMeasure from "react-measure";
|
|
7
|
+
import { v4 } from "uuid";
|
|
8
|
+
import { convertDrillableItemsToPredicates } from "@gooddata/sdk-ui";
|
|
9
|
+
import { Legend } from "./legends/Legend.js";
|
|
10
|
+
import { useGeoChartNextProps } from "../context/GeoChartNextContext.js";
|
|
11
|
+
import { useGeoLayers } from "../context/GeoLayersContext.js";
|
|
12
|
+
import { useLegendRenderState } from "../hooks/legend/useLegendRenderState.js";
|
|
13
|
+
import { MapController } from "../map/MapController.js";
|
|
14
|
+
import { computeCombinedViewport } from "../map/viewport.js";
|
|
15
|
+
import { PushDataSync } from "../pushData/PushDataSync.js";
|
|
16
|
+
// There are known compatibility issues between CommonJS (CJS) and ECMAScript modules (ESM).
|
|
17
|
+
const Measure = defaultImport(ReactMeasure);
|
|
18
|
+
const containerBaseId = "geo-chart-next";
|
|
19
|
+
/**
|
|
20
|
+
* Rendering component for GeoChartNext
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* This is the final rendering layer that:
|
|
24
|
+
* - Creates the map container
|
|
25
|
+
* - Initializes the map
|
|
26
|
+
* - Syncs all layers to map via useLayerRendering hook
|
|
27
|
+
* - Handles map interactions
|
|
28
|
+
* - Shows legend from primary layer
|
|
29
|
+
*
|
|
30
|
+
* All data is pre-loaded before this component renders - no async operations here.
|
|
31
|
+
*
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export function RenderGeoChartNext() {
|
|
35
|
+
const props = useGeoChartNextProps();
|
|
36
|
+
const { layers, layerExecutions, colorPalette } = useGeoLayers();
|
|
37
|
+
const mapContainerRef = useRef(null);
|
|
38
|
+
const containerId = useMemo(() => `${containerBaseId}-${v4()}`, []);
|
|
39
|
+
const [chartContainerRect, setChartContainerRect] = useState(null);
|
|
40
|
+
const { primaryLayer, colorStrategy, legendItems, selectedSegmentItems, isLegendRenderedFirst, isRow } = useLegendRenderState(props.config, chartContainerRect);
|
|
41
|
+
const initialViewport = useMemo(() => computeCombinedViewport(layers), [layers]);
|
|
42
|
+
const drillablePredicates = useMemo(() => convertDrillableItemsToPredicates(props.drillableItems ?? []), [props.drillableItems]);
|
|
43
|
+
const flexDirection = isRow ? "flex-direction-row" : "flex-direction-column";
|
|
44
|
+
const isExportMode = props.config?.isExportMode ?? false;
|
|
45
|
+
const containerClass = cx("gd-geo-chart-next__container", "gd-geo-component", containerBaseId, containerId, flexDirection, isRow ? "gd-geo-chart-next__container--flex-row" : "gd-geo-chart-next__container--flex-column", {
|
|
46
|
+
isExportMode,
|
|
47
|
+
});
|
|
48
|
+
const legendComponent = (_jsx(Legend, { colorStrategy: colorStrategy, config: props.config, categoryItems: legendItems, containerId: containerId, chartContainerRect: chartContainerRect ?? undefined }));
|
|
49
|
+
return (_jsx(Measure, { client: true, onResize: setChartContainerRect, children: ({ measureRef }) => (_jsxs("div", { id: containerId, "data-testid": isExportMode ? "geo-chart-next-export-mode" : containerBaseId, className: containerClass, ref: measureRef, children: [isLegendRenderedFirst ? legendComponent : null, _jsx("div", { ref: mapContainerRef, className: "gd-geo-chart-next__map" }), isLegendRenderedFirst ? null : legendComponent, _jsx(MapController, { mapContainerRef: mapContainerRef, chartContainerRect: chartContainerRect, initialViewport: initialViewport, layerExecutions: layerExecutions, selectedSegmentItems: selectedSegmentItems, drillablePredicates: drillablePredicates, onCenterPositionChanged: props.onCenterPositionChanged, onZoomChanged: props.onZoomChanged, afterRender: props.afterRender, config: props.config }), _jsx(PushDataSync, { colorStrategy: colorStrategy, colorPalette: colorPalette, availableLegends: primaryLayer?.availableLegends })] })) }));
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=RenderGeoChartNext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderGeoChartNext.js","sourceRoot":"","sources":["../../../src/next/components/RenderGeoChartNext.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAgB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,YAAqD,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAE1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAC;AAErE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,4FAA4F;AAC5F,MAAM,OAAO,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;AAE5C,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,kBAAkB;IAC9B,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAAC;IACjE,MAAM,eAAe,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,eAAe,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAEpE,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAqB,IAAI,CAAC,CAAC;IAEvF,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,KAAK,EAAE,GAClG,oBAAoB,CAAC,KAAK,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAE3D,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEjF,MAAM,mBAAmB,GAAG,OAAO,CAC/B,GAAG,EAAE,CAAC,iCAAiC,CAAC,KAAK,CAAC,cAAc,IAAI,EAAE,CAAC,EACnE,CAAC,KAAK,CAAC,cAAc,CAAC,CACzB,CAAC;IAEF,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,uBAAuB,CAAC;IAC7E,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,EAAE,YAAY,IAAI,KAAK,CAAC;IACzD,MAAM,cAAc,GAAG,EAAE,CACrB,8BAA8B,EAC9B,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,aAAa,EACb,KAAK,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC,CAAC,2CAA2C,EAC9F;QACI,YAAY;KACf,CACJ,CAAC;IAEF,MAAM,eAAe,GAAG,CACpB,KAAC,MAAM,IACH,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,aAAa,EAAE,WAAW,EAC1B,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB,IAAI,SAAS,GACrD,CACL,CAAC;IAEF,OAAO,CACH,KAAC,OAAO,IAAC,MAAM,QAAC,QAAQ,EAAE,qBAAqB,YAC1C,CAAC,EAAE,UAAU,EAA0B,EAAE,EAAE,CAAC,CACzC,eACI,EAAE,EAAE,WAAW,iBACF,YAAY,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,eAAe,EAC1E,SAAS,EAAE,cAAc,EACzB,GAAG,EAAE,UAAU,aAEd,qBAAqB,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,EAC/C,cAAK,GAAG,EAAE,eAAe,EAAE,SAAS,EAAC,wBAAwB,GAAG,EAC/D,qBAAqB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,EAC/C,KAAC,aAAa,IACV,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,kBAAkB,EACtC,eAAe,EAAE,eAAe,EAChC,eAAe,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,EAAE,mBAAmB,EACxC,uBAAuB,EAAE,KAAK,CAAC,uBAAuB,EACtD,aAAa,EAAE,KAAK,CAAC,aAAa,EAClC,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,MAAM,EAAE,KAAK,CAAC,MAAM,GACtB,EACF,KAAC,YAAY,IACT,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,YAAY,EAAE,gBAAgB,GAClD,IACA,CACT,GACK,CACb,CAAC;AACN,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
2
|
import { ContentRect } from "react-measure";
|
|
3
|
-
import { IColorStrategy
|
|
4
|
-
import {
|
|
3
|
+
import { IColorStrategy } from "@gooddata/sdk-ui-vis-commons";
|
|
4
|
+
import { IGeoLegendItem } from "../../types/common/legends.js";
|
|
5
|
+
import { IGeoChartNextConfig } from "../../types/config/unified.js";
|
|
5
6
|
/**
|
|
6
7
|
* Props for Legend component.
|
|
7
8
|
*
|
|
@@ -9,8 +10,8 @@ import { IGeoPushpinChartNextConfig } from "../../types/config.js";
|
|
|
9
10
|
*/
|
|
10
11
|
export interface ILegendProps {
|
|
11
12
|
colorStrategy: IColorStrategy | null;
|
|
12
|
-
config:
|
|
13
|
-
categoryItems:
|
|
13
|
+
config: IGeoChartNextConfig | undefined;
|
|
14
|
+
categoryItems: IGeoLegendItem[];
|
|
14
15
|
containerId: string;
|
|
15
16
|
chartContainerRect?: ContentRect;
|
|
16
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../../src/next/components/legends/Legend.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAW,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../../src/next/components/legends/Legend.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAW,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAQ9D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB,aAAa,EAAE,cAAc,GAAG,IAAI,CAAC;IACrC,MAAM,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACxC,aAAa,EAAE,cAAc,EAAE,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,WAAW,CAAC;CACpC;AAED;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,EACnB,aAAa,EACb,MAAM,EACN,aAAa,EACb,WAAW,EACX,kBAAkB,GACrB,EAAE,YAAY,GAAG,YAAY,GAAG,IAAI,CA0CpC"}
|