@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,11 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import { PositionType } from "@gooddata/sdk-ui-vis-commons";
|
|
3
2
|
/**
|
|
4
|
-
* Context for managing legend
|
|
3
|
+
* Context for managing legend item visibility state.
|
|
5
4
|
*
|
|
6
5
|
* @remarks
|
|
7
|
-
* This context manages which legend items are enabled/visible
|
|
8
|
-
* and responsive layout behavior for smaller screens.
|
|
6
|
+
* This context manages which legend items are enabled/visible for filtering.
|
|
9
7
|
*
|
|
10
8
|
* @alpha
|
|
11
9
|
*/
|
|
@@ -29,37 +27,29 @@ interface IGeoLegendContext {
|
|
|
29
27
|
* @param allUris - All available legend item URIs (for toggle logic)
|
|
30
28
|
*/
|
|
31
29
|
toggleLegendItem: (uri: string, allUris: string[]) => void;
|
|
32
|
-
/**
|
|
33
|
-
* Position of the legend relative to the chart
|
|
34
|
-
*/
|
|
35
|
-
legendPosition: PositionType;
|
|
36
|
-
/**
|
|
37
|
-
* Updates the legend position
|
|
38
|
-
*/
|
|
39
|
-
setLegendPosition: (position: PositionType) => void;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the legend is in responsive mode (horizontal layout on small screens)
|
|
42
|
-
*/
|
|
43
|
-
isResponsive: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Updates the responsive state
|
|
46
|
-
*/
|
|
47
|
-
setIsResponsive: (responsive: boolean) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Whether the legend should show in a popup on small screens
|
|
50
|
-
*/
|
|
51
|
-
showPopup: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Updates the popup state
|
|
54
|
-
*/
|
|
55
|
-
setShowPopup: (show: boolean) => void;
|
|
56
30
|
}
|
|
57
31
|
/**
|
|
58
|
-
*
|
|
32
|
+
* Pure function to compute next enabled items state after toggling.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* This logic is extracted for testability and clarity:
|
|
36
|
+
* - `null` means all items are enabled (initial state)
|
|
37
|
+
* - Empty array means all items are disabled
|
|
38
|
+
* - Array with URIs means only those items are enabled
|
|
39
|
+
*
|
|
40
|
+
* @param prev - Previous enabled items state
|
|
41
|
+
* @param uri - URI of the item being toggled
|
|
42
|
+
* @param allUris - All available URIs
|
|
43
|
+
* @returns New enabled items state
|
|
44
|
+
*
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
export declare function computeNextEnabledItems(prev: string[] | null, uri: string, allUris: string[]): string[] | null;
|
|
48
|
+
/**
|
|
49
|
+
* Provider for legend item visibility state management.
|
|
59
50
|
*
|
|
60
51
|
* @remarks
|
|
61
|
-
* This provider manages
|
|
62
|
-
* the legend position, and responsive behavior.
|
|
52
|
+
* This provider manages which legend items are visible/enabled for filtering.
|
|
63
53
|
*
|
|
64
54
|
* @alpha
|
|
65
55
|
*/
|
|
@@ -67,10 +57,10 @@ export declare function GeoLegendProvider({ children }: {
|
|
|
67
57
|
children: ReactNode;
|
|
68
58
|
}): import("react/jsx-runtime").JSX.Element;
|
|
69
59
|
/**
|
|
70
|
-
* Hook to access legend state and controls.
|
|
60
|
+
* Hook to access legend item visibility state and controls.
|
|
71
61
|
*
|
|
72
62
|
* @remarks
|
|
73
|
-
* Use this hook to manage legend
|
|
63
|
+
* Use this hook to manage which legend items are visible/enabled for filtering.
|
|
74
64
|
*
|
|
75
65
|
* @returns Legend context
|
|
76
66
|
* @throws Error if used outside of GeoLegendProvider
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoLegendContext.d.ts","sourceRoot":"","sources":["../../../src/next/context/GeoLegendContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"GeoLegendContext.d.ts","sourceRoot":"","sources":["../../../src/next/context/GeoLegendContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAoD,MAAM,OAAO,CAAC;AAEpF;;;;;;;GAOG;AACH,UAAU,iBAAiB;IACvB;;;;;;OAMG;IACH,kBAAkB,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,qBAAqB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IAExD;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC9D;AAID;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CACnC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EACrB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,GAAG,IAAI,CAWjB;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAkBtE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,IAAI,iBAAiB,CAQhD"}
|
|
@@ -1,54 +1,57 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025 GoodData Corporation
|
|
3
|
-
import { createContext, useContext, useState } from "react";
|
|
3
|
+
import { createContext, useCallback, useContext, useState } from "react";
|
|
4
4
|
const GeoLegendContext = createContext(undefined);
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Pure function to compute next enabled items state after toggling.
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* This
|
|
10
|
-
*
|
|
9
|
+
* This logic is extracted for testability and clarity:
|
|
10
|
+
* - `null` means all items are enabled (initial state)
|
|
11
|
+
* - Empty array means all items are disabled
|
|
12
|
+
* - Array with URIs means only those items are enabled
|
|
13
|
+
*
|
|
14
|
+
* @param prev - Previous enabled items state
|
|
15
|
+
* @param uri - URI of the item being toggled
|
|
16
|
+
* @param allUris - All available URIs
|
|
17
|
+
* @returns New enabled items state
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export function computeNextEnabledItems(prev, uri, allUris) {
|
|
22
|
+
if (prev === null) {
|
|
23
|
+
return allUris.filter((itemUri) => itemUri !== uri);
|
|
24
|
+
}
|
|
25
|
+
if (prev.includes(uri)) {
|
|
26
|
+
return prev.filter((item) => item !== uri);
|
|
27
|
+
}
|
|
28
|
+
const newEnabled = [...prev, uri];
|
|
29
|
+
return newEnabled.length === allUris.length ? null : newEnabled;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Provider for legend item visibility state management.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* This provider manages which legend items are visible/enabled for filtering.
|
|
11
36
|
*
|
|
12
37
|
* @alpha
|
|
13
38
|
*/
|
|
14
39
|
export function GeoLegendProvider({ children }) {
|
|
15
40
|
const [enabledLegendItems, setEnabledLegendItems] = useState(null);
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const toggleLegendItem = (uri, allUris) => {
|
|
20
|
-
setEnabledLegendItems((prev) => {
|
|
21
|
-
// All items are enabled; disable the clicked one by tracking all others explicitly.
|
|
22
|
-
if (prev === null) {
|
|
23
|
-
return allUris.filter((itemUri) => itemUri !== uri);
|
|
24
|
-
}
|
|
25
|
-
// If the item is enabled, disable it
|
|
26
|
-
if (prev.includes(uri)) {
|
|
27
|
-
const newEnabled = prev.filter((item) => item !== uri);
|
|
28
|
-
return newEnabled.length === 0 ? [] : newEnabled;
|
|
29
|
-
}
|
|
30
|
-
// If the item is disabled, enable it
|
|
31
|
-
const newEnabled = [...prev, uri];
|
|
32
|
-
return newEnabled.length === allUris.length ? null : newEnabled;
|
|
33
|
-
});
|
|
34
|
-
};
|
|
41
|
+
const toggleLegendItem = useCallback((uri, allUris) => {
|
|
42
|
+
setEnabledLegendItems((prev) => computeNextEnabledItems(prev, uri, allUris));
|
|
43
|
+
}, []);
|
|
35
44
|
return (_jsx(GeoLegendContext.Provider, { value: {
|
|
36
45
|
enabledLegendItems,
|
|
37
46
|
setEnabledLegendItems,
|
|
38
47
|
toggleLegendItem,
|
|
39
|
-
legendPosition,
|
|
40
|
-
setLegendPosition,
|
|
41
|
-
isResponsive,
|
|
42
|
-
setIsResponsive,
|
|
43
|
-
showPopup,
|
|
44
|
-
setShowPopup,
|
|
45
48
|
}, children: children }));
|
|
46
49
|
}
|
|
47
50
|
/**
|
|
48
|
-
* Hook to access legend state and controls.
|
|
51
|
+
* Hook to access legend item visibility state and controls.
|
|
49
52
|
*
|
|
50
53
|
* @remarks
|
|
51
|
-
* Use this hook to manage legend
|
|
54
|
+
* Use this hook to manage which legend items are visible/enabled for filtering.
|
|
52
55
|
*
|
|
53
56
|
* @returns Legend context
|
|
54
57
|
* @throws Error if used outside of GeoLegendProvider
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoLegendContext.js","sourceRoot":"","sources":["../../../src/next/context/GeoLegendContext.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAa,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GeoLegendContext.js","sourceRoot":"","sources":["../../../src/next/context/GeoLegendContext.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAa,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAkCpF,MAAM,gBAAgB,GAAG,aAAa,CAAgC,SAAS,CAAC,CAAC;AAEjF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,uBAAuB,CACnC,IAAqB,EACrB,GAAW,EACX,OAAiB;IAEjB,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAChB,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,KAAK,GAAG,CAAC,CAAC;IACxD,CAAC;IAED,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC;IAClC,OAAO,UAAU,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC;AACpE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAAE,QAAQ,EAA2B;IACnE,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAkB,IAAI,CAAC,CAAC;IAEpF,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,GAAW,EAAE,OAAiB,EAAE,EAAE;QACpE,qBAAqB,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;IACjF,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH,KAAC,gBAAgB,CAAC,QAAQ,IACtB,KAAK,EAAE;YACH,kBAAkB;YAClB,qBAAqB;YACrB,gBAAgB;SACnB,YAEA,QAAQ,GACe,CAC/B,CAAC;AACN,CAAC;AAED;;;;;;;;;;GAUG;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitialExecutionContext.d.ts","sourceRoot":"","sources":["../../../src/next/context/InitialExecutionContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,eAAe,EAAE,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"InitialExecutionContext.d.ts","sourceRoot":"","sources":["../../../src/next/context/InitialExecutionContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,eAAe,EAAE,cAAc,GAAG,IAAI,CAAC;CAC1C;AASD;;;;;;;;;;;GAWG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,eAAe,EACf,QAAQ,GACX,EAAE,wBAAwB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAMpD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,IAAI,wBAAwB,CAQ9D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from "react";
|
|
2
|
+
import type { IMapFacade, IPopupFacade } from "../layers/common/mapFacade.js";
|
|
3
|
+
import type { IGeoAdapterContext } from "../layers/registry/adapterTypes.js";
|
|
4
|
+
export interface IMapRuntimeContextValue {
|
|
5
|
+
map: IMapFacade | null;
|
|
6
|
+
tooltip: IPopupFacade | null;
|
|
7
|
+
isMapReady: boolean;
|
|
8
|
+
adapterContext: IGeoAdapterContext;
|
|
9
|
+
}
|
|
10
|
+
export declare function MapRuntimeProvider({ value, children, }: {
|
|
11
|
+
value: IMapRuntimeContextValue;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}): ReactElement;
|
|
14
|
+
export declare function useMapRuntime(): IMapRuntimeContextValue;
|
|
15
|
+
//# sourceMappingURL=MapRuntimeContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapRuntimeContext.d.ts","sourceRoot":"","sources":["../../../src/next/context/MapRuntimeContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAC;AAE3E,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,MAAM,WAAW,uBAAuB;IACpC,GAAG,EAAE,UAAU,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,kBAAkB,CAAC;CACtC;AAID,wBAAgB,kBAAkB,CAAC,EAC/B,KAAK,EACL,QAAQ,GACX,EAAE;IACC,KAAK,EAAE,uBAAuB,CAAC;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACvB,GAAG,YAAY,CAEf;AAED,wBAAgB,aAAa,IAAI,uBAAuB,CAOvD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2025 GoodData Corporation
|
|
3
|
+
import { createContext, useContext } from "react";
|
|
4
|
+
const MapRuntimeContext = createContext(null);
|
|
5
|
+
export function MapRuntimeProvider({ value, children, }) {
|
|
6
|
+
return _jsx(MapRuntimeContext.Provider, { value: value, children: children });
|
|
7
|
+
}
|
|
8
|
+
export function useMapRuntime() {
|
|
9
|
+
const context = useContext(MapRuntimeContext);
|
|
10
|
+
if (!context) {
|
|
11
|
+
throw new Error("useMapRuntime must be used within MapRuntimeProvider");
|
|
12
|
+
}
|
|
13
|
+
return context;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=MapRuntimeContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapRuntimeContext.js","sourceRoot":"","sources":["../../../src/next/context/MapRuntimeContext.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAA2B,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAY3E,MAAM,iBAAiB,GAAG,aAAa,CAAiC,IAAI,CAAC,CAAC;AAE9E,MAAM,UAAU,kBAAkB,CAAC,EAC/B,KAAK,EACL,QAAQ,GAIX;IACG,OAAO,KAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAA8B,CAAC;AAC7F,CAAC;AAED,MAAM,UAAU,aAAa;IACzB,MAAM,OAAO,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC5E,CAAC;IAED,OAAO,OAAO,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Context } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a typed context with a custom hook that throws if used outside provider.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* This factory reduces boilerplate for creating React contexts with the common pattern:
|
|
7
|
+
* 1. Create context with undefined default
|
|
8
|
+
* 2. Create a useHook that throws if context is undefined
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* interface IMyContext {
|
|
13
|
+
* value: string;
|
|
14
|
+
* }
|
|
15
|
+
*
|
|
16
|
+
* const { Context: MyContext, useContextValue: useMyContext } = createGeoContext<IMyContext>("MyContext");
|
|
17
|
+
*
|
|
18
|
+
* // In provider component:
|
|
19
|
+
* <MyContext.Provider value={{ value: "hello" }}>
|
|
20
|
+
* {children}
|
|
21
|
+
* </MyContext.Provider>
|
|
22
|
+
*
|
|
23
|
+
* // In consumer:
|
|
24
|
+
* const { value } = useMyContext(); // throws if not inside provider
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @param name - Name for the context (used in error messages)
|
|
28
|
+
* @returns Object with Context and useContextValue hook
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export declare function createGeoContext<T>(name: string): {
|
|
33
|
+
Context: Context<T | undefined>;
|
|
34
|
+
useContextValue: () => T;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=createGeoContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGeoContext.d.ts","sourceRoot":"","sources":["../../../src/next/context/createGeoContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAA6B,MAAM,OAAO,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG;IAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC,CAAC;CAC5B,CAaA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Creates a typed context with a custom hook that throws if used outside provider.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This factory reduces boilerplate for creating React contexts with the common pattern:
|
|
8
|
+
* 1. Create context with undefined default
|
|
9
|
+
* 2. Create a useHook that throws if context is undefined
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* interface IMyContext {
|
|
14
|
+
* value: string;
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* const { Context: MyContext, useContextValue: useMyContext } = createGeoContext<IMyContext>("MyContext");
|
|
18
|
+
*
|
|
19
|
+
* // In provider component:
|
|
20
|
+
* <MyContext.Provider value={{ value: "hello" }}>
|
|
21
|
+
* {children}
|
|
22
|
+
* </MyContext.Provider>
|
|
23
|
+
*
|
|
24
|
+
* // In consumer:
|
|
25
|
+
* const { value } = useMyContext(); // throws if not inside provider
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @param name - Name for the context (used in error messages)
|
|
29
|
+
* @returns Object with Context and useContextValue hook
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export function createGeoContext(name) {
|
|
34
|
+
const Context = createContext(undefined);
|
|
35
|
+
Context.displayName = name;
|
|
36
|
+
function useContextValue() {
|
|
37
|
+
const value = useContext(Context);
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
throw new Error(`use${name} must be used within a ${name}Provider`);
|
|
40
|
+
}
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return { Context, useContextValue };
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=createGeoContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGeoContext.js","sourceRoot":"","sources":["../../../src/next/context/createGeoContext.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAW,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,UAAU,gBAAgB,CAAI,IAAY;IAI5C,MAAM,OAAO,GAAG,aAAa,CAAgB,SAAS,CAAC,CAAC;IACxD,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAE3B,SAAS,eAAe;QACpB,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;QAClC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,MAAM,IAAI,0BAA0B,IAAI,UAAU,CAAC,CAAC;QACxE,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IntlShape } from "react-intl";
|
|
2
|
+
import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
3
|
+
import { IColorPalette, IExecutionConfig } from "@gooddata/sdk-model";
|
|
4
|
+
import { GoodDataSdkError, UseCancelablePromiseStatus } from "@gooddata/sdk-ui";
|
|
5
|
+
import { IColorMapping } from "@gooddata/sdk-ui-vis-commons";
|
|
6
|
+
import { IGeoChartNextConfig } from "../../types/config/unified.js";
|
|
7
|
+
import { ILayerExecutionRecord } from "../../types/props/geoChartNext/internal.js";
|
|
8
|
+
import { ILayerPreparedData } from "../layers/useLayersPrepare.js";
|
|
9
|
+
export interface IGeoChartDataResult {
|
|
10
|
+
layerOutputs: Map<string, ILayerPreparedData>;
|
|
11
|
+
status: UseCancelablePromiseStatus;
|
|
12
|
+
error?: GoodDataSdkError;
|
|
13
|
+
colorPalette: IColorPalette;
|
|
14
|
+
colorMapping: IColorMapping[];
|
|
15
|
+
}
|
|
16
|
+
export declare function useGeoChartData(params: {
|
|
17
|
+
layerExecutions: ILayerExecutionRecord[];
|
|
18
|
+
backend: IAnalyticalBackend;
|
|
19
|
+
workspace: string;
|
|
20
|
+
config?: IGeoChartNextConfig;
|
|
21
|
+
execConfig?: IExecutionConfig;
|
|
22
|
+
intl: IntlShape;
|
|
23
|
+
}): IGeoChartDataResult;
|
|
24
|
+
//# sourceMappingURL=useGeoChartDataPipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGeoChartDataPipeline.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/dataLoading/useGeoChartDataPipeline.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAGH,gBAAgB,EAChB,0BAA0B,EAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAGnF,OAAO,EAAE,kBAAkB,EAA2C,MAAM,+BAA+B,CAAC;AAE5G,MAAM,WAAW,mBAAmB;IAChC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC9C,MAAM,EAAE,0BAA0B,CAAC;IACnC,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,YAAY,EAAE,aAAa,CAAC;IAC5B,YAAY,EAAE,aAAa,EAAE,CAAC;CACjC;AAqBD,wBAAgB,eAAe,CAAC,MAAM,EAAE;IACpC,eAAe,EAAE,qBAAqB,EAAE,CAAC;IACzC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,IAAI,EAAE,SAAS,CAAC;CACnB,GAAG,mBAAmB,CA8DtB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { DataTooLargeToDisplaySdkError, DefaultColorPalette, } from "@gooddata/sdk-ui";
|
|
4
|
+
import { getDataPointsLimit, validateLayersDataSize } from "../../utils/dataValidation.js";
|
|
5
|
+
import { useLayersData } from "../layers/useLayersData.js";
|
|
6
|
+
import { useLayersPrepare } from "../layers/useLayersPrepare.js";
|
|
7
|
+
/**
|
|
8
|
+
* Status priority for combining multiple statuses.
|
|
9
|
+
* Lower number = higher priority (takes precedence).
|
|
10
|
+
*/
|
|
11
|
+
const STATUS_PRIORITY = {
|
|
12
|
+
error: 0,
|
|
13
|
+
loading: 1,
|
|
14
|
+
pending: 2,
|
|
15
|
+
success: 3,
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Combines multiple statuses into a single status using priority-based resolution.
|
|
19
|
+
* The status with the highest priority (lowest number) wins.
|
|
20
|
+
*/
|
|
21
|
+
function combineStatus(...statuses) {
|
|
22
|
+
return statuses.reduce((a, b) => (STATUS_PRIORITY[a] < STATUS_PRIORITY[b] ? a : b));
|
|
23
|
+
}
|
|
24
|
+
export function useGeoChartData(params) {
|
|
25
|
+
const { layerExecutions, backend, workspace, config, execConfig, intl } = params;
|
|
26
|
+
const colorPalette = useMemo(() => config?.colorPalette ?? DefaultColorPalette, [config?.colorPalette]);
|
|
27
|
+
const colorMapping = useMemo(() => config?.colorMapping ?? [], [config?.colorMapping]);
|
|
28
|
+
const { layerDataViews, status: dataStatus, error: dataError, } = useLayersData(layerExecutions, backend, workspace);
|
|
29
|
+
const prepareContext = {
|
|
30
|
+
backend,
|
|
31
|
+
workspace,
|
|
32
|
+
config,
|
|
33
|
+
execConfig,
|
|
34
|
+
colorPalette,
|
|
35
|
+
colorMapping,
|
|
36
|
+
intl,
|
|
37
|
+
};
|
|
38
|
+
const { layerOutputs, status: prepareStatus, error: prepareError, } = useLayersPrepare(layerExecutions, layerDataViews, dataStatus, prepareContext);
|
|
39
|
+
const combinedStatus = combineStatus(dataStatus, prepareStatus);
|
|
40
|
+
const pipelineError = dataError ?? prepareError;
|
|
41
|
+
const dataSizeValidation = useMemo(() => {
|
|
42
|
+
if (combinedStatus !== "success") {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
const limit = getDataPointsLimit(config);
|
|
46
|
+
return validateLayersDataSize(layerExecutions, layerOutputs, limit);
|
|
47
|
+
}, [combinedStatus, config, layerExecutions, layerOutputs]);
|
|
48
|
+
const dataTooLargeError = useMemo(() => {
|
|
49
|
+
if (!dataSizeValidation) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
return new DataTooLargeToDisplaySdkError(`Data limit: ${dataSizeValidation.limit}, actual: ${dataSizeValidation.actualCount}`);
|
|
53
|
+
}, [dataSizeValidation]);
|
|
54
|
+
const status = dataTooLargeError ? "error" : combinedStatus;
|
|
55
|
+
const error = pipelineError ?? dataTooLargeError;
|
|
56
|
+
return {
|
|
57
|
+
layerOutputs,
|
|
58
|
+
status,
|
|
59
|
+
error,
|
|
60
|
+
colorPalette,
|
|
61
|
+
colorMapping,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=useGeoChartDataPipeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGeoChartDataPipeline.js","sourceRoot":"","sources":["../../../../src/next/hooks/dataLoading/useGeoChartDataPipeline.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,EACH,6BAA6B,EAC7B,mBAAmB,GAGtB,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAA6C,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAU5G;;;GAGG;AACH,MAAM,eAAe,GAA+C;IAChE,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;CACb,CAAC;AAEF;;;GAGG;AACH,SAAS,aAAa,CAAC,GAAG,QAAsC;IAC5D,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxF,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,MAO/B;IACG,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAEjF,MAAM,YAAY,GAAG,OAAO,CACxB,GAAG,EAAE,CAAC,MAAM,EAAE,YAAY,IAAI,mBAAmB,EACjD,CAAC,MAAM,EAAE,YAAY,CAAC,CACzB,CAAC;IAEF,MAAM,YAAY,GAAG,OAAO,CAAkB,GAAG,EAAE,CAAC,MAAM,EAAE,YAAY,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;IAExG,MAAM,EACF,cAAc,EACd,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,SAAS,GACnB,GAAG,aAAa,CAAC,eAAe,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAEvD,MAAM,cAAc,GAA0B;QAC1C,OAAO;QACP,SAAS;QACT,MAAM;QACN,UAAU;QACV,YAAY;QACZ,YAAY;QACZ,IAAI;KACP,CAAC;IAEF,MAAM,EACF,YAAY,EACZ,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,YAAY,GACtB,GAAG,gBAAgB,CAAC,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IAElF,MAAM,cAAc,GAAG,aAAa,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IAChE,MAAM,aAAa,GAAG,SAAS,IAAI,YAAY,CAAC;IAEhD,MAAM,kBAAkB,GAAG,OAAO,CAAC,GAAG,EAAE;QACpC,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YAC/B,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACzC,OAAO,sBAAsB,CAAC,eAAe,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IACxE,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC;IAE5D,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,EAAE;QACnC,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACtB,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,OAAO,IAAI,6BAA6B,CACpC,eAAe,kBAAkB,CAAC,KAAK,aAAa,kBAAkB,CAAC,WAAW,EAAE,CACvF,CAAC;IACN,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEzB,MAAM,MAAM,GAA+B,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC;IACxF,MAAM,KAAK,GAAG,aAAa,IAAI,iBAAiB,CAAC;IAEjD,OAAO;QACH,YAAY;QACZ,MAAM;QACN,KAAK;QACL,YAAY;QACZ,YAAY;KACf,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IDataVisualizationProps } from "@gooddata/sdk-ui";
|
|
2
|
+
import { IGeoLayer } from "../../types/layers/index.js";
|
|
3
|
+
import { ILayerExecutionRecord } from "../../types/props/geoChartNext/internal.js";
|
|
4
|
+
type WithoutExecutions<T> = Omit<T, "execution" | "executions">;
|
|
5
|
+
/**
|
|
6
|
+
* Result of normalizing layer executions
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export interface INormalizedLayerExecutions<TCoreProps> {
|
|
11
|
+
/**
|
|
12
|
+
* All layer executions paired with their layer definitions
|
|
13
|
+
*/
|
|
14
|
+
layerExecutions: ILayerExecutionRecord[];
|
|
15
|
+
/**
|
|
16
|
+
* Core props with derived layers array and resolved type
|
|
17
|
+
*/
|
|
18
|
+
propsWithLayers: TCoreProps & {
|
|
19
|
+
layers: IGeoLayer[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Normalizes executions into paired layer execution records.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Extracts layer metadata from execution contexts and pairs them together
|
|
27
|
+
* so downstream hooks can rely on the combined data.
|
|
28
|
+
*
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export declare function useNormalizedLayerExecutions<TCoreProps extends IDataVisualizationProps>(props: TCoreProps): INormalizedLayerExecutions<WithoutExecutions<TCoreProps>>;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=useNormalizedLayerExecutions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNormalizedLayerExecutions.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/dataLoading/useNormalizedLayerExecutions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAEnF,KAAK,iBAAiB,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,0BAA0B,CAAC,UAAU;IAClD;;OAEG;IACH,eAAe,EAAE,qBAAqB,EAAE,CAAC;IAEzC;;OAEG;IACH,eAAe,EAAE,UAAU,GAAG;QAAE,MAAM,EAAE,SAAS,EAAE,CAAA;KAAE,CAAC;CACzD;AAED;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAAC,UAAU,SAAS,uBAAuB,EACnF,KAAK,EAAE,UAAU,GAClB,0BAA0B,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,CA6B3D"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { hasGeoLayerContext } from "../../layers/execution/layerContext.js";
|
|
4
|
+
/**
|
|
5
|
+
* Normalizes executions into paired layer execution records.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Extracts layer metadata from execution contexts and pairs them together
|
|
9
|
+
* so downstream hooks can rely on the combined data.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export function useNormalizedLayerExecutions(props) {
|
|
14
|
+
const { execution, executions, ...coreProps } = props;
|
|
15
|
+
return useMemo(() => {
|
|
16
|
+
const allExecutions = [execution, ...(executions ?? [])];
|
|
17
|
+
const layerExecutions = [];
|
|
18
|
+
allExecutions.forEach((candidate) => {
|
|
19
|
+
if (!hasGeoLayerContext(candidate)) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
layerExecutions.push({
|
|
23
|
+
layerId: candidate.context.id,
|
|
24
|
+
layer: candidate.context,
|
|
25
|
+
execution: candidate,
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
const layers = layerExecutions.map((record) => record.layer);
|
|
29
|
+
const propsWithLayers = {
|
|
30
|
+
...coreProps,
|
|
31
|
+
layers,
|
|
32
|
+
};
|
|
33
|
+
return { layerExecutions, propsWithLayers };
|
|
34
|
+
}, [execution, executions, coreProps]);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=useNormalizedLayerExecutions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNormalizedLayerExecutions.js","sourceRoot":"","sources":["../../../../src/next/hooks/dataLoading/useNormalizedLayerExecutions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAuB5E;;;;;;;;GAQG;AACH,MAAM,UAAU,4BAA4B,CACxC,KAAiB;IAEjB,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtD,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,MAAM,aAAa,GAAG,CAAC,SAAS,EAAE,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,CAAC;QAEzD,MAAM,eAAe,GAA4B,EAAE,CAAC;QAEpD,aAAa,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAChC,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;gBACjC,OAAO;YACX,CAAC;YAED,eAAe,CAAC,IAAI,CAAC;gBACjB,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,EAAE;gBAC7B,KAAK,EAAE,SAAS,CAAC,OAAO;gBACxB,SAAS,EAAE,SAAS;aACvB,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAEH,MAAM,MAAM,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAE7D,MAAM,eAAe,GAAG;YACpB,GAAG,SAAS;YACZ,MAAM;SACkD,CAAC;QAE7D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC;IAChD,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IGeoAdapterContext } from "../../layers/registry/adapterTypes.js";
|
|
2
|
+
interface IUseGeoAdapterContextOptions {
|
|
3
|
+
selectedSegmentItems?: string[];
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Builds adapter context shared by layer rendering logic.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare function useGeoAdapterContext({ selectedSegmentItems, }?: IUseGeoAdapterContextOptions): IGeoAdapterContext;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=useGeoAdapterContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGeoAdapterContext.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useGeoAdapterContext.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,UAAU,4BAA4B;IAClC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACnC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,oBAAoB,GACvB,GAAE,4BAAiC,GAAG,kBAAkB,CAkCxD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { useIntl } from "react-intl";
|
|
4
|
+
import { DefaultColorPalette, useBackendStrict, useWorkspaceStrict } from "@gooddata/sdk-ui";
|
|
5
|
+
import { useGeoChartNextProps } from "../../context/GeoChartNextContext.js";
|
|
6
|
+
import { useGeoLayers } from "../../context/GeoLayersContext.js";
|
|
7
|
+
/**
|
|
8
|
+
* Builds adapter context shared by layer rendering logic.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export function useGeoAdapterContext({ selectedSegmentItems, } = {}) {
|
|
13
|
+
const props = useGeoChartNextProps();
|
|
14
|
+
const { colorPalette: contextColorPalette } = useGeoLayers();
|
|
15
|
+
const intl = useIntl();
|
|
16
|
+
const backend = useBackendStrict(props.backend, "useGeoAdapterContext");
|
|
17
|
+
const workspace = useWorkspaceStrict(props.workspace, "useGeoAdapterContext");
|
|
18
|
+
const colorPalette = useMemo(() => contextColorPalette ?? props.config?.colorPalette ?? DefaultColorPalette, [contextColorPalette, props.config?.colorPalette]);
|
|
19
|
+
const colorMapping = useMemo(() => props.config?.colorMapping ?? [], [props.config?.colorMapping]);
|
|
20
|
+
const mergedConfig = useMemo(() => ({
|
|
21
|
+
...props.config,
|
|
22
|
+
selectedSegmentItems,
|
|
23
|
+
}), [props.config, selectedSegmentItems]);
|
|
24
|
+
return useMemo(() => ({
|
|
25
|
+
backend,
|
|
26
|
+
workspace,
|
|
27
|
+
config: mergedConfig,
|
|
28
|
+
execConfig: props.execConfig,
|
|
29
|
+
colorPalette,
|
|
30
|
+
colorMapping,
|
|
31
|
+
intl,
|
|
32
|
+
}), [backend, workspace, mergedConfig, props.execConfig, colorPalette, colorMapping, intl]);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=useGeoAdapterContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGeoAdapterContext.js","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useGeoAdapterContext.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAOjE;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,EACjC,oBAAoB,MACU,EAAE;IAChC,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,EAAE,YAAY,EAAE,mBAAmB,EAAE,GAAG,YAAY,EAAE,CAAC;IAC7D,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,OAAO,GAAG,gBAAgB,CAAC,KAAK,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC;IACxE,MAAM,SAAS,GAAG,kBAAkB,CAAC,KAAK,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC;IAE9E,MAAM,YAAY,GAAG,OAAO,CACxB,GAAG,EAAE,CAAC,mBAAmB,IAAI,KAAK,CAAC,MAAM,EAAE,YAAY,IAAI,mBAAmB,EAC9E,CAAC,mBAAmB,EAAE,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC,CACpD,CAAC;IAEF,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;IAEnG,MAAM,YAAY,GAAG,OAAO,CACxB,GAAG,EAAE,CAAC,CAAC;QACH,GAAG,KAAK,CAAC,MAAM;QACf,oBAAoB;KACvB,CAAC,EACF,CAAC,KAAK,CAAC,MAAM,EAAE,oBAAoB,CAAC,CACvC,CAAC;IAEF,OAAO,OAAO,CACV,GAAG,EAAE,CAAC,CAAC;QACH,OAAO;QACP,SAAS;QACT,MAAM,EAAE,YAAY;QACpB,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,YAAY;QACZ,YAAY;QACZ,IAAI;KACP,CAAC,EACF,CAAC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,CAAC,CACzF,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IHeaderPredicate } from "@gooddata/sdk-ui";
|
|
2
|
+
import { IGeoLayerData } from "../../context/GeoLayersContext.js";
|
|
3
|
+
import type { IMapFacade, IPopupFacade } from "../../layers/common/mapFacade.js";
|
|
4
|
+
import type { IGeoAdapterContext } from "../../layers/registry/adapterTypes.js";
|
|
5
|
+
import { ILayerExecutionRecord } from "../../types/props/geoChartNext/internal.js";
|
|
6
|
+
interface IUseLayerTooltipsParams {
|
|
7
|
+
/**
|
|
8
|
+
* MapLibre map instance.
|
|
9
|
+
*/
|
|
10
|
+
map: IMapFacade | null;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the map is ready for rendering.
|
|
13
|
+
*/
|
|
14
|
+
isMapReady: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Tooltip popup instance.
|
|
17
|
+
*/
|
|
18
|
+
tooltip: IPopupFacade | null;
|
|
19
|
+
/**
|
|
20
|
+
* Drillable predicates for tooltip interactions.
|
|
21
|
+
*/
|
|
22
|
+
drillablePredicates: IHeaderPredicate[];
|
|
23
|
+
/**
|
|
24
|
+
* Layer executions for tooltip registration.
|
|
25
|
+
*/
|
|
26
|
+
layerExecutions: ILayerExecutionRecord[];
|
|
27
|
+
/**
|
|
28
|
+
* Layer data map.
|
|
29
|
+
*/
|
|
30
|
+
layers: Map<string, IGeoLayerData>;
|
|
31
|
+
/**
|
|
32
|
+
* Adapter context for tooltip registration.
|
|
33
|
+
*/
|
|
34
|
+
adapterContext: IGeoAdapterContext;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Hook that manages unified tooltip handling for all layers.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Registers ONE mousemove handler that queries all tooltip-enabled layers.
|
|
41
|
+
* MapLibre returns features in render order (topmost first), so the tooltip
|
|
42
|
+
* is shown for the visually topmost feature.
|
|
43
|
+
*
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export declare function useLayerTooltips({ map, isMapReady, tooltip, drillablePredicates, layerExecutions, layers, adapterContext, }: IUseLayerTooltipsParams): void;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=useLayerTooltips.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayerTooltips.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useLayerTooltips.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAiB,MAAM,kCAAkC,CAAC;AAEhG,OAAO,KAAK,EAAE,kBAAkB,EAAqB,MAAM,uCAAuC,CAAC;AAEnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAEnF,UAAU,uBAAuB;IAC7B;;OAEG;IACH,GAAG,EAAE,UAAU,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,mBAAmB,EAAE,gBAAgB,EAAE,CAAC;IAExC;;OAEG;IACH,eAAe,EAAE,qBAAqB,EAAE,CAAC;IAEzC;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAEnC;;OAEG;IACH,cAAc,EAAE,kBAAkB,CAAC;CACtC;AA4BD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,EAC7B,GAAG,EACH,UAAU,EACV,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,MAAM,EACN,cAAc,GACjB,EAAE,uBAAuB,GAAG,IAAI,CAsGhC"}
|