@gooddata/sdk-ui-geo 11.13.0-alpha.1 → 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/core/geoChart/GeoChartInner.d.ts +1 -1
- package/esm/core/geoChart/GeoChartInner.d.ts.map +1 -1
- package/esm/core/geoChart/GeoChartInner.js +4 -2
- package/esm/core/geoChart/GeoChartInner.js.map +1 -1
- package/esm/core/geoChart/GeoChartLegendRenderer.d.ts +1 -1
- package/esm/core/geoChart/GeoChartLegendRenderer.d.ts.map +1 -1
- package/esm/core/geoChart/GeoChartLegendRenderer.js +3 -3
- package/esm/core/geoChart/GeoChartLegendRenderer.js.map +1 -1
- package/esm/core/geoChart/GeoChartOptionsWrapper.d.ts.map +1 -1
- package/esm/core/geoChart/GeoChartOptionsWrapper.js +38 -25
- package/esm/core/geoChart/GeoChartOptionsWrapper.js.map +1 -1
- package/esm/core/geoChart/GeoChartRenderer.d.ts +1 -2
- package/esm/core/geoChart/GeoChartRenderer.d.ts.map +1 -1
- package/esm/core/geoChart/GeoChartRenderer.js +1 -2
- package/esm/core/geoChart/GeoChartRenderer.js.map +1 -1
- package/esm/core/geoChart/GeoValidatorHOC.d.ts.map +1 -1
- package/esm/core/geoChart/GeoValidatorHOC.js +15 -8
- package/esm/core/geoChart/GeoValidatorHOC.js.map +1 -1
- package/esm/core/geoChart/legends/PushpinCategoryLegend.d.ts +1 -1
- package/esm/core/geoChart/legends/PushpinCategoryLegend.d.ts.map +1 -1
- package/esm/core/geoChart/legends/PushpinCategoryLegend.js +1 -1
- package/esm/core/geoChart/legends/PushpinCategoryLegend.js.map +1 -1
- package/esm/core/geoChart/legends/PushpinSizeLegend.d.ts +1 -1
- package/esm/core/geoChart/legends/PushpinSizeLegend.d.ts.map +1 -1
- package/esm/core/geoChart/legends/PushpinSizeLegend.js +1 -1
- package/esm/core/geoChart/legends/PushpinSizeLegend.js.map +1 -1
- 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/LegendBody.js +1 -1
- package/esm/next/components/legends/LegendBody.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/{providers/maplibre/maplibreDataSourceArea.js → layers/area/source.js} +21 -80
- 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.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legendPropsAdapter.d.ts","sourceRoot":"","sources":["../../../../src/next/components/legends/legendPropsAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"legendPropsAdapter.d.ts","sourceRoot":"","sources":["../../../../src/next/components/legends/legendPropsAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAErG;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CACzC,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,WAAW,GACzB,4BAA4B,CAgC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legendPropsAdapter.js","sourceRoot":"","sources":["../../../../src/next/components/legends/legendPropsAdapter.ts"],"names":[],"mappings":"AAAA,gCAAgC;
|
|
1
|
+
{"version":3,"file":"legendPropsAdapter.js","sourceRoot":"","sources":["../../../../src/next/components/legends/legendPropsAdapter.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAOhC;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B,CACzC,KAAuB,EACvB,WAAwB;IAExB,MAAM,EACF,aAAa,EACb,aAAa,EACb,OAAO,EACP,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,mBAAmB,GACtB,GAAG,KAAK,CAAC;IAEV,2CAA2C;IAC3C,MAAM,QAAQ,GAAG,aAAa,EAAE,QAAQ,IAAI,KAAK,CAAC;IAClD,MAAM,WAAW,GAAG,aAAa,EAAE,WAAW,IAAI,KAAK,CAAC;IACxD,MAAM,OAAO,GAAG,aAAa,EAAE,OAAO,CAAC;IACvC,MAAM,IAAI,GAAG,aAAa,EAAE,IAAI,CAAC;IAEjC,OAAO;QACH,aAAa;QACb,OAAO,EAAE,OAAO,IAAI,SAAS;QAC7B,gBAAgB,EAAE,gBAAgB,IAAI,EAAE;QACxC,QAAQ;QACR,UAAU;QACV,aAAa,EAAE,aAAa;QAC5B,WAAW;QACX,OAAO;QACP,IAAI;QACJ,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,WAAW,EAAE,mBAAmB;QAChC,WAAW;QACX,sEAAsE;KACzE,CAAC;AACN,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ILegendDetails
|
|
2
|
-
import { IAvailableLegends,
|
|
1
|
+
import { ILegendDetails } from "@gooddata/sdk-ui-vis-commons";
|
|
2
|
+
import { IAvailableLegends, IGeoLegendItem } from "../../types/common/legends.js";
|
|
3
|
+
import { IGeoCommonData } from "../../types/geoData/common.js";
|
|
3
4
|
export interface ILegendBodyProps {
|
|
4
5
|
containerId: string;
|
|
5
6
|
legendDetails: ILegendDetails | null;
|
|
6
|
-
categoryItems:
|
|
7
|
+
categoryItems: IGeoLegendItem[];
|
|
7
8
|
geoData: IGeoCommonData | null;
|
|
8
9
|
availableLegends: IAvailableLegends;
|
|
9
10
|
colorLegendValue: string | null;
|
|
@@ -11,6 +12,6 @@ export interface ILegendBodyProps {
|
|
|
11
12
|
legendHeight: number;
|
|
12
13
|
isFluidLayout: boolean;
|
|
13
14
|
responsive: boolean | "autoPositionWithPopup";
|
|
14
|
-
onCategoryItemClick: (item:
|
|
15
|
+
onCategoryItemClick: (item: IGeoLegendItem) => void;
|
|
15
16
|
}
|
|
16
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/next/components/legends/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/next/components/legends/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,WAAW,gBAAgB;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,cAAc,GAAG,IAAI,CAAC;IACrC,aAAa,EAAE,cAAc,EAAE,CAAC;IAChC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/B,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,GAAG,uBAAuB,CAAC;IAC9C,mBAAmB,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;CACvD"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { PushpinSizeOptionNext } from "../types/config/points.js";
|
|
2
|
+
import type { IGeoConfigViewportAreaNext } from "../types/config/viewport.js";
|
|
3
|
+
/**
|
|
4
|
+
* Default configuration values consumed by GeoChartNext wrappers.
|
|
5
|
+
*
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export declare const GEO_CHART_DEFAULTS: {
|
|
9
|
+
/**
|
|
10
|
+
* Default area fill opacity (0-1 range).
|
|
11
|
+
*/
|
|
12
|
+
readonly AREA_FILL_OPACITY: 0.7;
|
|
13
|
+
/**
|
|
14
|
+
* Default area border color.
|
|
15
|
+
*/
|
|
16
|
+
readonly AREA_BORDER_COLOR: "#FFFFFF";
|
|
17
|
+
/**
|
|
18
|
+
* Default area border width in pixels.
|
|
19
|
+
*/
|
|
20
|
+
readonly AREA_BORDER_WIDTH: 1;
|
|
21
|
+
/**
|
|
22
|
+
* Default minimum pushpin size multiplier.
|
|
23
|
+
*/
|
|
24
|
+
readonly PUSHPIN_MIN_SIZE: PushpinSizeOptionNext;
|
|
25
|
+
/**
|
|
26
|
+
* Default maximum pushpin size multiplier.
|
|
27
|
+
*/
|
|
28
|
+
readonly PUSHPIN_MAX_SIZE: PushpinSizeOptionNext;
|
|
29
|
+
/**
|
|
30
|
+
* Whether pushpins cluster nearby points by default.
|
|
31
|
+
*/
|
|
32
|
+
readonly PUSHPIN_GROUP_NEARBY_POINTS: true;
|
|
33
|
+
/**
|
|
34
|
+
* Default viewport preset.
|
|
35
|
+
*/
|
|
36
|
+
readonly VIEWPORT_AREA: IGeoConfigViewportAreaNext;
|
|
37
|
+
/**
|
|
38
|
+
* Whether viewport interaction is locked by default.
|
|
39
|
+
*/
|
|
40
|
+
readonly VIEWPORT_FROZEN: false;
|
|
41
|
+
/**
|
|
42
|
+
* Whether legend rendering is enabled by default.
|
|
43
|
+
*/
|
|
44
|
+
readonly LEGEND_ENABLED: true;
|
|
45
|
+
/**
|
|
46
|
+
* Default legend position.
|
|
47
|
+
*/
|
|
48
|
+
readonly LEGEND_POSITION: "auto";
|
|
49
|
+
/**
|
|
50
|
+
* Whether legend responsiveness is enabled by default.
|
|
51
|
+
*/
|
|
52
|
+
readonly LEGEND_RESPONSIVE: false;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Type for the GEO_CHART_DEFAULTS object.
|
|
56
|
+
*
|
|
57
|
+
* @alpha
|
|
58
|
+
*/
|
|
59
|
+
export type IGeoChartDefaults = typeof GEO_CHART_DEFAULTS;
|
|
60
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/next/constants/defaults.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAE9E;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;IAC3B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;+BAC2B,qBAAqB;IAEnD;;OAEG;+BAC2B,qBAAqB;IAEnD;;OAEG;;IAGH;;OAEG;4BACsB,0BAA0B;IAEnD;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEG,CAAC;AAEX;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
/**
|
|
3
|
+
* Default configuration values consumed by GeoChartNext wrappers.
|
|
4
|
+
*
|
|
5
|
+
* @alpha
|
|
6
|
+
*/
|
|
7
|
+
export const GEO_CHART_DEFAULTS = {
|
|
8
|
+
/**
|
|
9
|
+
* Default area fill opacity (0-1 range).
|
|
10
|
+
*/
|
|
11
|
+
AREA_FILL_OPACITY: 0.7,
|
|
12
|
+
/**
|
|
13
|
+
* Default area border color.
|
|
14
|
+
*/
|
|
15
|
+
AREA_BORDER_COLOR: "#FFFFFF",
|
|
16
|
+
/**
|
|
17
|
+
* Default area border width in pixels.
|
|
18
|
+
*/
|
|
19
|
+
AREA_BORDER_WIDTH: 1,
|
|
20
|
+
/**
|
|
21
|
+
* Default minimum pushpin size multiplier.
|
|
22
|
+
*/
|
|
23
|
+
PUSHPIN_MIN_SIZE: "normal",
|
|
24
|
+
/**
|
|
25
|
+
* Default maximum pushpin size multiplier.
|
|
26
|
+
*/
|
|
27
|
+
PUSHPIN_MAX_SIZE: "normal",
|
|
28
|
+
/**
|
|
29
|
+
* Whether pushpins cluster nearby points by default.
|
|
30
|
+
*/
|
|
31
|
+
PUSHPIN_GROUP_NEARBY_POINTS: true,
|
|
32
|
+
/**
|
|
33
|
+
* Default viewport preset.
|
|
34
|
+
*/
|
|
35
|
+
VIEWPORT_AREA: "auto",
|
|
36
|
+
/**
|
|
37
|
+
* Whether viewport interaction is locked by default.
|
|
38
|
+
*/
|
|
39
|
+
VIEWPORT_FROZEN: false,
|
|
40
|
+
/**
|
|
41
|
+
* Whether legend rendering is enabled by default.
|
|
42
|
+
*/
|
|
43
|
+
LEGEND_ENABLED: true,
|
|
44
|
+
/**
|
|
45
|
+
* Default legend position.
|
|
46
|
+
*/
|
|
47
|
+
LEGEND_POSITION: "auto",
|
|
48
|
+
/**
|
|
49
|
+
* Whether legend responsiveness is enabled by default.
|
|
50
|
+
*/
|
|
51
|
+
LEGEND_RESPONSIVE: false,
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/next/constants/defaults.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAKhC;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B;;OAEG;IACH,iBAAiB,EAAE,GAAG;IAEtB;;OAEG;IACH,iBAAiB,EAAE,SAAS;IAE5B;;OAEG;IACH,iBAAiB,EAAE,CAAC;IAEpB;;OAEG;IACH,gBAAgB,EAAE,QAAiC;IAEnD;;OAEG;IACH,gBAAgB,EAAE,QAAiC;IAEnD;;OAEG;IACH,2BAA2B,EAAE,IAAI;IAEjC;;OAEG;IACH,aAAa,EAAE,MAAoC;IAEnD;;OAEG;IACH,eAAe,EAAE,KAAK;IAEtB;;OAEG;IACH,cAAc,EAAE,IAAI;IAEpB;;OAEG;IACH,eAAe,EAAE,MAAe;IAEhC;;OAEG;IACH,iBAAiB,EAAE,KAAK;CAClB,CAAC"}
|
|
@@ -4,16 +4,8 @@
|
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const EMPTY_DRILLS: [];
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export declare const EMPTY_FILTERS: [];
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
export declare const EMPTY_SORT_BY: [];
|
|
15
7
|
/**
|
|
16
8
|
* @internal
|
|
17
9
|
*/
|
|
18
10
|
export declare const EMPTY_OBJECT: {};
|
|
19
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=emptyDefaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emptyDefaults.d.ts","sourceRoot":"","sources":["../../../src/next/constants/emptyDefaults.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,EAAO,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,YAAY,IAAK,CAAC"}
|
|
@@ -5,16 +5,8 @@
|
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
7
|
export const EMPTY_DRILLS = [];
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export const EMPTY_FILTERS = [];
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
export const EMPTY_SORT_BY = [];
|
|
16
8
|
/**
|
|
17
9
|
* @internal
|
|
18
10
|
*/
|
|
19
11
|
export const EMPTY_OBJECT = {};
|
|
20
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=emptyDefaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emptyDefaults.js","sourceRoot":"","sources":["../../../src/next/constants/emptyDefaults.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAO,EAAE,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { IGeoChartNextResolvedProps } from "../types/props/geoChartNext/internal.js";
|
|
3
|
+
type IGeoChartNextContextProps = IGeoChartNextResolvedProps;
|
|
4
|
+
/**
|
|
5
|
+
* Provider for GeoChartNext component props.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This context provides access to all props passed to the GeoChartNext component
|
|
9
|
+
* including configuration, data properties, and callback handlers.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare function GeoChartNextPropsProvider({ children, ...props }: IGeoChartNextContextProps & {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
/**
|
|
17
|
+
* Hook to access GeoChartNext component props.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Props are already resolved and defaulted in `useResolvedGeoChartNextProps`.
|
|
21
|
+
* We deep-memoize nested values to maintain stable references.
|
|
22
|
+
*
|
|
23
|
+
* @returns Component props
|
|
24
|
+
* @throws Error if used outside of GeoChartNextPropsProvider
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGeoChartNextProps(): IGeoChartNextResolvedProps;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=GeoChartNextContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoChartNextContext.d.ts","sourceRoot":"","sources":["../../../src/next/context/GeoChartNextContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAC;AAI7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF,KAAK,yBAAyB,GAAG,0BAA0B,CAAC;AAI5D;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,EACtC,QAAQ,EACR,GAAG,KAAK,EACX,EAAE,yBAAyB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAErD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,IAAI,0BAA0B,CAejE"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2025 GoodData Corporation
|
|
3
|
+
import { createContext, useContext } from "react";
|
|
4
|
+
import { useDeepMemo } from "@gooddata/sdk-ui/internal";
|
|
5
|
+
const GeoChartNextContext = createContext(undefined);
|
|
6
|
+
/**
|
|
7
|
+
* Provider for GeoChartNext component props.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This context provides access to all props passed to the GeoChartNext component
|
|
11
|
+
* including configuration, data properties, and callback handlers.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export function GeoChartNextPropsProvider({ children, ...props }) {
|
|
16
|
+
return _jsx(GeoChartNextContext.Provider, { value: props, children: children });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Hook to access GeoChartNext component props.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Props are already resolved and defaulted in `useResolvedGeoChartNextProps`.
|
|
23
|
+
* We deep-memoize nested values to maintain stable references.
|
|
24
|
+
*
|
|
25
|
+
* @returns Component props
|
|
26
|
+
* @throws Error if used outside of GeoChartNextPropsProvider
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export function useGeoChartNextProps() {
|
|
31
|
+
const context = useContext(GeoChartNextContext);
|
|
32
|
+
const memoizeDeep = useDeepMemo();
|
|
33
|
+
if (context === undefined) {
|
|
34
|
+
throw new Error("useGeoChartNextProps must be used within a GeoChartNextPropsProvider");
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
...context,
|
|
38
|
+
drillableItems: memoizeDeep("drillableItems", context.drillableItems),
|
|
39
|
+
layers: memoizeDeep("layers", context.layers),
|
|
40
|
+
execConfig: memoizeDeep("execConfig", context.execConfig),
|
|
41
|
+
config: memoizeDeep("config", context.config),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=GeoChartNextContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoChartNextContext.js","sourceRoot":"","sources":["../../../src/next/context/GeoChartNextContext.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAa,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAMxD,MAAM,mBAAmB,GAAG,aAAa,CAAwC,SAAS,CAAC,CAAC;AAE5F;;;;;;;;GAQG;AACH,MAAM,UAAU,yBAAyB,CAAC,EACtC,QAAQ,EACR,GAAG,KAAK,EAC0C;IAClD,OAAO,KAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAgC,CAAC;AACjG,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,oBAAoB;IAChC,MAAM,OAAO,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAChD,MAAM,WAAW,GAAG,WAAW,EAAE,CAAC;IAElC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;IAC5F,CAAC;IAED,OAAO;QACH,GAAG,OAAO;QACV,cAAc,EAAE,WAAW,CAAC,gBAAgB,EAAE,OAAO,CAAC,cAAc,CAAC;QACrE,MAAM,EAAE,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC;QAC7C,UAAU,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,UAAU,CAAC;QACzD,MAAM,EAAE,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC;KAChD,CAAC;AACN,CAAC"}
|
|
@@ -1,63 +1,18 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
1
|
import { IColorPalette } from "@gooddata/sdk-model";
|
|
3
|
-
import { IColorStrategy
|
|
4
|
-
import { IAvailableLegends,
|
|
5
|
-
|
|
6
|
-
* Context for geographic data and derived values.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* This context provides all computed data derived from the initial execution result.
|
|
10
|
-
* All values are computed once using useMemo and provided down the tree.
|
|
11
|
-
* This eliminates the need for useEffect state synchronization.
|
|
12
|
-
*
|
|
13
|
-
* @alpha
|
|
14
|
-
*/
|
|
2
|
+
import { IColorStrategy } from "@gooddata/sdk-ui-vis-commons";
|
|
3
|
+
import { IAvailableLegends, IGeoLegendItem } from "../types/common/legends.js";
|
|
4
|
+
import type { IGeoCommonData } from "../types/geoData/common.js";
|
|
15
5
|
export interface IGeoDataContext<TGeoData extends IGeoCommonData = IGeoCommonData> {
|
|
16
|
-
/**
|
|
17
|
-
* Transformed geographic data
|
|
18
|
-
*/
|
|
19
6
|
geoData: TGeoData | null;
|
|
20
|
-
/**
|
|
21
|
-
* Color strategy used for visualization
|
|
22
|
-
*/
|
|
23
7
|
colorStrategy: IColorStrategy | null;
|
|
24
|
-
/**
|
|
25
|
-
* Color palette used for visualization
|
|
26
|
-
*/
|
|
27
8
|
colorPalette: IColorPalette;
|
|
28
|
-
|
|
29
|
-
* Base category legend items (before applying visibility state)
|
|
30
|
-
*/
|
|
31
|
-
baseLegendItems: IPushpinCategoryLegendItem[];
|
|
32
|
-
/**
|
|
33
|
-
* Available legend types based on data
|
|
34
|
-
*/
|
|
9
|
+
baseLegendItems: IGeoLegendItem[];
|
|
35
10
|
availableLegends: IAvailableLegends;
|
|
36
11
|
}
|
|
37
|
-
interface IGeoDataContextProviderProps {
|
|
38
|
-
children: ReactNode;
|
|
39
|
-
value: IGeoDataContext;
|
|
40
|
-
}
|
|
41
12
|
/**
|
|
42
|
-
*
|
|
43
|
-
* Use specialized providers (for example pushpin or area charts) to compute the value
|
|
44
|
-
* and pass it through this wrapper so that all consumers can rely on {@link useGeoData}.
|
|
45
|
-
*
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
export declare function GeoDataContextProvider({ children, value }: IGeoDataContextProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
49
|
-
/**
|
|
50
|
-
* Hook to access geographic data.
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
* Use this hook to access all computed data derived from the execution result.
|
|
54
|
-
* All values are already computed and memoized.
|
|
55
|
-
*
|
|
56
|
-
* @returns Geographic data context
|
|
57
|
-
* @throws Error if used outside of GeoDataContextProvider
|
|
13
|
+
* Hook to access geographic data derived from the primary layer.
|
|
58
14
|
*
|
|
59
15
|
* @alpha
|
|
60
16
|
*/
|
|
61
|
-
export declare function useGeoData
|
|
62
|
-
export {};
|
|
17
|
+
export declare function useGeoData(): IGeoDataContext;
|
|
63
18
|
//# sourceMappingURL=GeoDataContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoDataContext.d.ts","sourceRoot":"","sources":["../../../src/next/context/GeoDataContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GeoDataContext.d.ts","sourceRoot":"","sources":["../../../src/next/context/GeoDataContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,MAAM,WAAW,eAAe,CAAC,QAAQ,SAAS,cAAc,GAAG,cAAc;IAC7E,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAC;IACzB,aAAa,EAAE,cAAc,GAAG,IAAI,CAAC;IACrC,YAAY,EAAE,aAAa,CAAC;IAC5B,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,gBAAgB,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;GAIG;AACH,wBAAgB,UAAU,IAAI,eAAe,CAc5C"}
|
|
@@ -1,34 +1,21 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
// (C) 2025 GoodData Corporation
|
|
3
|
-
import {
|
|
4
|
-
const GeoDataContext = createContext(undefined);
|
|
2
|
+
import { useGeoLayers } from "./GeoLayersContext.js";
|
|
5
3
|
/**
|
|
6
|
-
*
|
|
7
|
-
* Use specialized providers (for example pushpin or area charts) to compute the value
|
|
8
|
-
* and pass it through this wrapper so that all consumers can rely on {@link useGeoData}.
|
|
9
|
-
*
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
export function GeoDataContextProvider({ children, value }) {
|
|
13
|
-
return _jsx(GeoDataContext.Provider, { value: value, children: children });
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Hook to access geographic data.
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* Use this hook to access all computed data derived from the execution result.
|
|
20
|
-
* All values are already computed and memoized.
|
|
21
|
-
*
|
|
22
|
-
* @returns Geographic data context
|
|
23
|
-
* @throws Error if used outside of GeoDataContextProvider
|
|
4
|
+
* Hook to access geographic data derived from the primary layer.
|
|
24
5
|
*
|
|
25
6
|
* @alpha
|
|
26
7
|
*/
|
|
27
8
|
export function useGeoData() {
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
throw new Error("useGeoData
|
|
9
|
+
const { primaryLayer, colorPalette } = useGeoLayers();
|
|
10
|
+
if (!primaryLayer) {
|
|
11
|
+
throw new Error("useGeoData requires a primary layer in GeoLayersContext");
|
|
31
12
|
}
|
|
32
|
-
return
|
|
13
|
+
return {
|
|
14
|
+
geoData: primaryLayer.geoData ?? null,
|
|
15
|
+
colorStrategy: primaryLayer.colorStrategy,
|
|
16
|
+
colorPalette,
|
|
17
|
+
baseLegendItems: primaryLayer.baseLegendItems,
|
|
18
|
+
availableLegends: primaryLayer.availableLegends,
|
|
19
|
+
};
|
|
33
20
|
}
|
|
34
21
|
//# sourceMappingURL=GeoDataContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoDataContext.js","sourceRoot":"","sources":["../../../src/next/context/GeoDataContext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GeoDataContext.js","sourceRoot":"","sources":["../../../src/next/context/GeoDataContext.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAKhC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAYrD;;;;GAIG;AACH,MAAM,UAAU,UAAU;IACtB,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAAC;IAEtD,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC/E,CAAC;IAED,OAAO;QACH,OAAO,EAAE,YAAY,CAAC,OAAO,IAAI,IAAI;QACrC,aAAa,EAAE,YAAY,CAAC,aAAa;QACzC,YAAY;QACZ,eAAe,EAAE,YAAY,CAAC,eAAe;QAC7C,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;KAClD,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { IColorPalette } from "@gooddata/sdk-model";
|
|
3
|
+
import { DataViewFacade } from "@gooddata/sdk-ui";
|
|
4
|
+
import { IColorStrategy } from "@gooddata/sdk-ui-vis-commons";
|
|
5
|
+
import type { ILayerPreparedData } from "../hooks/layers/useLayersPrepare.js";
|
|
6
|
+
import type { GeoJSONSourceSpecification } from "../layers/common/mapFacade.js";
|
|
7
|
+
import { IAvailableLegends, IGeoLegendItem } from "../types/common/legends.js";
|
|
8
|
+
import { IAreaGeoData } from "../types/geoData/area.js";
|
|
9
|
+
import { IPushpinGeoData } from "../types/geoData/pushpin.js";
|
|
10
|
+
import { GeoLayerType } from "../types/layers/index.js";
|
|
11
|
+
import type { IMapViewport } from "../types/map/provider.js";
|
|
12
|
+
import { ILayerExecutionRecord } from "../types/props/geoChartNext/internal.js";
|
|
13
|
+
/**
|
|
14
|
+
* Data for a single layer including transformed geo data and color strategy.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* This interface represents fully loaded layer data - all async operations
|
|
18
|
+
* have completed before this data is created.
|
|
19
|
+
*
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface IGeoLayerData {
|
|
23
|
+
/**
|
|
24
|
+
* Layer ID for reference.
|
|
25
|
+
*/
|
|
26
|
+
layerId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Layer type.
|
|
29
|
+
*/
|
|
30
|
+
layerType: GeoLayerType;
|
|
31
|
+
/**
|
|
32
|
+
* Complete GeoJSON source specification ready for MapLibre.
|
|
33
|
+
*/
|
|
34
|
+
source: GeoJSONSourceSpecification | null;
|
|
35
|
+
/**
|
|
36
|
+
* Transformed geographic data.
|
|
37
|
+
*/
|
|
38
|
+
geoData: IPushpinGeoData | IAreaGeoData | null;
|
|
39
|
+
/**
|
|
40
|
+
* Data view from execution.
|
|
41
|
+
*/
|
|
42
|
+
dataView: DataViewFacade;
|
|
43
|
+
/**
|
|
44
|
+
* Color strategy for this layer.
|
|
45
|
+
*/
|
|
46
|
+
colorStrategy: IColorStrategy | null;
|
|
47
|
+
/**
|
|
48
|
+
* Legend items for this layer.
|
|
49
|
+
*/
|
|
50
|
+
baseLegendItems: IGeoLegendItem[];
|
|
51
|
+
/**
|
|
52
|
+
* Available legend types.
|
|
53
|
+
*/
|
|
54
|
+
availableLegends: IAvailableLegends;
|
|
55
|
+
/**
|
|
56
|
+
* Initial viewport hint derived from the layer data.
|
|
57
|
+
*/
|
|
58
|
+
initialViewport: Partial<IMapViewport> | null;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Context value for multi-layer geo data.
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* This context is only created after all async data loading is complete.
|
|
65
|
+
* All data is pre-loaded and ready for synchronous rendering.
|
|
66
|
+
*
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
export interface IGeoLayersContext {
|
|
70
|
+
/**
|
|
71
|
+
* Layer executions for reference.
|
|
72
|
+
*/
|
|
73
|
+
layerExecutions: ILayerExecutionRecord[];
|
|
74
|
+
/**
|
|
75
|
+
* Data for all layers (pre-loaded).
|
|
76
|
+
*/
|
|
77
|
+
layers: Map<string, IGeoLayerData>;
|
|
78
|
+
/**
|
|
79
|
+
* Primary (first) layer data - used for legend/tooltips.
|
|
80
|
+
*/
|
|
81
|
+
primaryLayer: IGeoLayerData | null;
|
|
82
|
+
/**
|
|
83
|
+
* Color palette used.
|
|
84
|
+
*/
|
|
85
|
+
colorPalette: IColorPalette;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Provider that exposes pre-loaded layer data through context.
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* This provider receives already-loaded data from the data loading gate.
|
|
92
|
+
* No async operations happen here - data is ready for synchronous rendering.
|
|
93
|
+
*
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
export declare function GeoLayersProvider({ children, layerExecutions, layerOutputs, colorPalette, }: {
|
|
97
|
+
children: ReactNode;
|
|
98
|
+
layerExecutions: ILayerExecutionRecord[];
|
|
99
|
+
layerOutputs: Map<string, ILayerPreparedData>;
|
|
100
|
+
colorPalette: IColorPalette;
|
|
101
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
102
|
+
/**
|
|
103
|
+
* Hook to access multi-layer geo data context
|
|
104
|
+
*
|
|
105
|
+
* @returns Layer data context
|
|
106
|
+
* @throws Error if used outside of GeoLayersProvider
|
|
107
|
+
*
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
export declare function useGeoLayers(): IGeoLayersContext;
|
|
111
|
+
//# sourceMappingURL=GeoLayersContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoLayersContext.d.ts","sourceRoot":"","sources":["../../../src/next/context/GeoLayersContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAsC,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAUhF;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,YAAY,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAE1C;;OAEG;IACH,OAAO,EAAE,eAAe,GAAG,YAAY,GAAG,IAAI,CAAC;IAE/C;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAC;IAEzB;;OAEG;IACH,aAAa,EAAE,cAAc,GAAG,IAAI,CAAC;IAErC;;OAEG;IACH,eAAe,EAAE,cAAc,EAAE,CAAC;IAElC;;OAEG;IACH,gBAAgB,EAAE,iBAAiB,CAAC;IAEpC;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;CACjD;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,eAAe,EAAE,qBAAqB,EAAE,CAAC;IAEzC;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAEnC;;OAEG;IACH,YAAY,EAAE,aAAa,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,YAAY,EAAE,aAAa,CAAC;CAC/B;AAID;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,YAAY,GACf,EAAE;IACC,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,2CAqCA;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,iBAAiB,CAQhD"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2025 GoodData Corporation
|
|
3
|
+
import { createContext, useContext, useMemo } from "react";
|
|
4
|
+
const EMPTY_AVAILABLE_LEGENDS = {
|
|
5
|
+
hasCategoryLegend: false,
|
|
6
|
+
hasColorLegend: false,
|
|
7
|
+
hasSizeLegend: false,
|
|
8
|
+
};
|
|
9
|
+
const EMPTY_LEGEND_ITEMS = [];
|
|
10
|
+
const GeoLayersContext = createContext(undefined);
|
|
11
|
+
/**
|
|
12
|
+
* Provider that exposes pre-loaded layer data through context.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* This provider receives already-loaded data from the data loading gate.
|
|
16
|
+
* No async operations happen here - data is ready for synchronous rendering.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export function GeoLayersProvider({ children, layerExecutions, layerOutputs, colorPalette, }) {
|
|
21
|
+
const layersData = useMemo(() => {
|
|
22
|
+
const map = new Map();
|
|
23
|
+
for (const layerExecution of layerExecutions) {
|
|
24
|
+
const { layerId, layer } = layerExecution;
|
|
25
|
+
const prepared = layerOutputs.get(layerId);
|
|
26
|
+
if (prepared) {
|
|
27
|
+
map.set(layerId, {
|
|
28
|
+
layerId,
|
|
29
|
+
layerType: layer.type,
|
|
30
|
+
source: prepared.output?.source ?? null,
|
|
31
|
+
geoData: prepared.output?.geoData ?? null,
|
|
32
|
+
dataView: prepared.dataView,
|
|
33
|
+
colorStrategy: prepared.output?.colorStrategy ?? null,
|
|
34
|
+
baseLegendItems: prepared.output?.legend.items ?? EMPTY_LEGEND_ITEMS,
|
|
35
|
+
availableLegends: prepared.output?.legend.available ?? EMPTY_AVAILABLE_LEGENDS,
|
|
36
|
+
initialViewport: prepared.output?.initialViewport ?? null,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return map;
|
|
41
|
+
}, [layerExecutions, layerOutputs]);
|
|
42
|
+
const primaryLayerId = layerExecutions[0]?.layerId;
|
|
43
|
+
const primaryLayer = primaryLayerId ? (layersData.get(primaryLayerId) ?? null) : null;
|
|
44
|
+
const value = useMemo(() => ({
|
|
45
|
+
layerExecutions,
|
|
46
|
+
layers: layersData,
|
|
47
|
+
primaryLayer,
|
|
48
|
+
colorPalette,
|
|
49
|
+
}), [layerExecutions, layersData, primaryLayer, colorPalette]);
|
|
50
|
+
return _jsx(GeoLayersContext.Provider, { value: value, children: children });
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Hook to access multi-layer geo data context
|
|
54
|
+
*
|
|
55
|
+
* @returns Layer data context
|
|
56
|
+
* @throws Error if used outside of GeoLayersProvider
|
|
57
|
+
*
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
export function useGeoLayers() {
|
|
61
|
+
const context = useContext(GeoLayersContext);
|
|
62
|
+
if (context === undefined) {
|
|
63
|
+
throw new Error("useGeoLayers must be used within a GeoLayersProvider");
|
|
64
|
+
}
|
|
65
|
+
return context;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=GeoLayersContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoLayersContext.js","sourceRoot":"","sources":["../../../src/next/context/GeoLayersContext.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAa,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAetE,MAAM,uBAAuB,GAAsB;IAC/C,iBAAiB,EAAE,KAAK;IACxB,cAAc,EAAE,KAAK;IACrB,aAAa,EAAE,KAAK;CACvB,CAAC;AAEF,MAAM,kBAAkB,GAAqB,EAAE,CAAC;AAyFhD,MAAM,gBAAgB,GAAG,aAAa,CAAgC,SAAS,CAAC,CAAC;AAEjF;;;;;;;;GAQG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAC9B,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,YAAY,GAMf;IACG,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,MAAM,GAAG,GAAG,IAAI,GAAG,EAAyB,CAAC;QAC7C,KAAK,MAAM,cAAc,IAAI,eAAe,EAAE,CAAC;YAC3C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,cAAc,CAAC;YAC1C,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAC3C,IAAI,QAAQ,EAAE,CAAC;gBACX,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE;oBACb,OAAO;oBACP,SAAS,EAAE,KAAK,CAAC,IAAI;oBACrB,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,IAAI;oBACvC,OAAO,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,IAAI,IAAI;oBACzC,QAAQ,EAAE,QAAQ,CAAC,QAAQ;oBAC3B,aAAa,EAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,IAAI,IAAI;oBACrD,eAAe,EAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,kBAAkB;oBACpE,gBAAgB,EAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,IAAI,uBAAuB;oBAC9E,eAAe,EAAE,QAAQ,CAAC,MAAM,EAAE,eAAe,IAAI,IAAI;iBAC5D,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC;IAEpC,MAAM,cAAc,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC;IACnD,MAAM,YAAY,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAEtF,MAAM,KAAK,GAAG,OAAO,CACjB,GAAG,EAAE,CAAC,CAAC;QACH,eAAe;QACf,MAAM,EAAE,UAAU;QAClB,YAAY;QACZ,YAAY;KACf,CAAC,EACF,CAAC,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,CAC5D,CAAC;IAEF,OAAO,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAA6B,CAAC;AAC3F,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY;IACxB,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAE7C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC5E,CAAC;IAED,OAAO,OAAO,CAAC;AACnB,CAAC"}
|