@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.
Files changed (712) hide show
  1. package/esm/core/geoChart/GeoChartInner.d.ts +1 -1
  2. package/esm/core/geoChart/GeoChartInner.d.ts.map +1 -1
  3. package/esm/core/geoChart/GeoChartInner.js +4 -2
  4. package/esm/core/geoChart/GeoChartInner.js.map +1 -1
  5. package/esm/core/geoChart/GeoChartLegendRenderer.d.ts +1 -1
  6. package/esm/core/geoChart/GeoChartLegendRenderer.d.ts.map +1 -1
  7. package/esm/core/geoChart/GeoChartLegendRenderer.js +3 -3
  8. package/esm/core/geoChart/GeoChartLegendRenderer.js.map +1 -1
  9. package/esm/core/geoChart/GeoChartOptionsWrapper.d.ts.map +1 -1
  10. package/esm/core/geoChart/GeoChartOptionsWrapper.js +38 -25
  11. package/esm/core/geoChart/GeoChartOptionsWrapper.js.map +1 -1
  12. package/esm/core/geoChart/GeoChartRenderer.d.ts +1 -2
  13. package/esm/core/geoChart/GeoChartRenderer.d.ts.map +1 -1
  14. package/esm/core/geoChart/GeoChartRenderer.js +1 -2
  15. package/esm/core/geoChart/GeoChartRenderer.js.map +1 -1
  16. package/esm/core/geoChart/GeoValidatorHOC.d.ts.map +1 -1
  17. package/esm/core/geoChart/GeoValidatorHOC.js +15 -8
  18. package/esm/core/geoChart/GeoValidatorHOC.js.map +1 -1
  19. package/esm/core/geoChart/legends/PushpinCategoryLegend.d.ts +1 -1
  20. package/esm/core/geoChart/legends/PushpinCategoryLegend.d.ts.map +1 -1
  21. package/esm/core/geoChart/legends/PushpinCategoryLegend.js +1 -1
  22. package/esm/core/geoChart/legends/PushpinCategoryLegend.js.map +1 -1
  23. package/esm/core/geoChart/legends/PushpinSizeLegend.d.ts +1 -1
  24. package/esm/core/geoChart/legends/PushpinSizeLegend.d.ts.map +1 -1
  25. package/esm/core/geoChart/legends/PushpinSizeLegend.js +1 -1
  26. package/esm/core/geoChart/legends/PushpinSizeLegend.js.map +1 -1
  27. package/esm/next/GeoAreaChart.d.ts +4 -26
  28. package/esm/next/GeoAreaChart.d.ts.map +1 -1
  29. package/esm/next/GeoAreaChart.js +16 -57
  30. package/esm/next/GeoAreaChart.js.map +1 -1
  31. package/esm/next/GeoChartNext.d.ts +19 -0
  32. package/esm/next/GeoChartNext.d.ts.map +1 -0
  33. package/esm/next/GeoChartNext.js +34 -0
  34. package/esm/next/GeoChartNext.js.map +1 -0
  35. package/esm/next/GeoPushpinChartNext.d.ts +5 -6
  36. package/esm/next/GeoPushpinChartNext.d.ts.map +1 -1
  37. package/esm/next/GeoPushpinChartNext.js +19 -35
  38. package/esm/next/GeoPushpinChartNext.js.map +1 -1
  39. package/esm/next/components/GeoChartNextDataLoader.d.ts +12 -0
  40. package/esm/next/components/GeoChartNextDataLoader.d.ts.map +1 -0
  41. package/esm/next/components/GeoChartNextDataLoader.js +42 -0
  42. package/esm/next/components/GeoChartNextDataLoader.js.map +1 -0
  43. package/esm/next/components/GeoChartNextProviders.d.ts +13 -0
  44. package/esm/next/components/GeoChartNextProviders.d.ts.map +1 -0
  45. package/esm/next/components/GeoChartNextProviders.js +15 -0
  46. package/esm/next/components/GeoChartNextProviders.js.map +1 -0
  47. package/esm/next/components/GeoErrorComponent.d.ts +13 -0
  48. package/esm/next/components/GeoErrorComponent.d.ts.map +1 -0
  49. package/esm/next/components/{ErrorComponent.js → GeoErrorComponent.js} +4 -4
  50. package/esm/next/components/GeoErrorComponent.js.map +1 -0
  51. package/esm/next/components/GeoLoadingComponent.d.ts +5 -0
  52. package/esm/next/components/GeoLoadingComponent.d.ts.map +1 -0
  53. package/esm/next/components/{LoadingComponent.js → GeoLoadingComponent.js} +4 -4
  54. package/esm/next/components/GeoLoadingComponent.js.map +1 -0
  55. package/esm/next/components/RenderGeoChartNext.d.ts +18 -0
  56. package/esm/next/components/RenderGeoChartNext.d.ts.map +1 -0
  57. package/esm/next/components/RenderGeoChartNext.js +51 -0
  58. package/esm/next/components/RenderGeoChartNext.js.map +1 -0
  59. package/esm/next/components/legends/Legend.d.ts +5 -4
  60. package/esm/next/components/legends/Legend.d.ts.map +1 -1
  61. package/esm/next/components/legends/Legend.js.map +1 -1
  62. package/esm/next/components/legends/LegendBody.js +1 -1
  63. package/esm/next/components/legends/LegendBody.js.map +1 -1
  64. package/esm/next/components/legends/legendPropsAdapter.d.ts.map +1 -1
  65. package/esm/next/components/legends/legendPropsAdapter.js.map +1 -1
  66. package/esm/next/components/legends/types.d.ts +5 -4
  67. package/esm/next/components/legends/types.d.ts.map +1 -1
  68. package/esm/next/constants/defaults.d.ts +60 -0
  69. package/esm/next/constants/defaults.d.ts.map +1 -0
  70. package/esm/next/constants/defaults.js +53 -0
  71. package/esm/next/constants/defaults.js.map +1 -0
  72. package/esm/next/constants/{internal.d.ts → emptyDefaults.d.ts} +1 -9
  73. package/esm/next/constants/emptyDefaults.d.ts.map +1 -0
  74. package/esm/next/constants/{internal.js → emptyDefaults.js} +1 -9
  75. package/esm/next/constants/emptyDefaults.js.map +1 -0
  76. package/esm/next/context/GeoChartNextContext.d.ts +30 -0
  77. package/esm/next/context/GeoChartNextContext.d.ts.map +1 -0
  78. package/esm/next/context/GeoChartNextContext.js +44 -0
  79. package/esm/next/context/GeoChartNextContext.js.map +1 -0
  80. package/esm/next/context/GeoDataContext.d.ts +6 -51
  81. package/esm/next/context/GeoDataContext.d.ts.map +1 -1
  82. package/esm/next/context/GeoDataContext.js +12 -25
  83. package/esm/next/context/GeoDataContext.js.map +1 -1
  84. package/esm/next/context/GeoLayersContext.d.ts +111 -0
  85. package/esm/next/context/GeoLayersContext.d.ts.map +1 -0
  86. package/esm/next/context/GeoLayersContext.js +67 -0
  87. package/esm/next/context/GeoLayersContext.js.map +1 -0
  88. package/esm/next/context/GeoLegendContext.d.ts +23 -33
  89. package/esm/next/context/GeoLegendContext.d.ts.map +1 -1
  90. package/esm/next/context/GeoLegendContext.js +34 -31
  91. package/esm/next/context/GeoLegendContext.js.map +1 -1
  92. package/esm/next/context/InitialExecutionContext.d.ts +1 -1
  93. package/esm/next/context/InitialExecutionContext.d.ts.map +1 -1
  94. package/esm/next/context/MapRuntimeContext.d.ts +15 -0
  95. package/esm/next/context/MapRuntimeContext.d.ts.map +1 -0
  96. package/esm/next/context/MapRuntimeContext.js +15 -0
  97. package/esm/next/context/MapRuntimeContext.js.map +1 -0
  98. package/esm/next/context/createGeoContext.d.ts +36 -0
  99. package/esm/next/context/createGeoContext.d.ts.map +1 -0
  100. package/esm/next/context/createGeoContext.js +45 -0
  101. package/esm/next/context/createGeoContext.js.map +1 -0
  102. package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.d.ts +24 -0
  103. package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.d.ts.map +1 -0
  104. package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.js +64 -0
  105. package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.js.map +1 -0
  106. package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.d.ts +33 -0
  107. package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.d.ts.map +1 -0
  108. package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.js +36 -0
  109. package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.js.map +1 -0
  110. package/esm/next/hooks/layers/useGeoAdapterContext.d.ts +12 -0
  111. package/esm/next/hooks/layers/useGeoAdapterContext.d.ts.map +1 -0
  112. package/esm/next/hooks/layers/useGeoAdapterContext.js +34 -0
  113. package/esm/next/hooks/layers/useGeoAdapterContext.js.map +1 -0
  114. package/esm/next/hooks/layers/useLayerTooltips.d.ts +48 -0
  115. package/esm/next/hooks/layers/useLayerTooltips.d.ts.map +1 -0
  116. package/esm/next/hooks/layers/useLayerTooltips.js +105 -0
  117. package/esm/next/hooks/layers/useLayerTooltips.js.map +1 -0
  118. package/esm/next/hooks/layers/useLayersData.d.ts +45 -0
  119. package/esm/next/hooks/layers/useLayersData.d.ts.map +1 -0
  120. package/esm/next/hooks/layers/useLayersData.js +69 -0
  121. package/esm/next/hooks/layers/useLayersData.js.map +1 -0
  122. package/esm/next/hooks/layers/useLayersExecutions.d.ts +27 -0
  123. package/esm/next/hooks/layers/useLayersExecutions.d.ts.map +1 -0
  124. package/esm/next/hooks/layers/useLayersExecutions.js +15 -0
  125. package/esm/next/hooks/layers/useLayersExecutions.js.map +1 -0
  126. package/esm/next/hooks/layers/useLayersPrepare.d.ts +83 -0
  127. package/esm/next/hooks/layers/useLayersPrepare.d.ts.map +1 -0
  128. package/esm/next/hooks/layers/useLayersPrepare.js +84 -0
  129. package/esm/next/hooks/layers/useLayersPrepare.js.map +1 -0
  130. package/esm/next/hooks/layers/useSyncLayersToMap.d.ts +23 -0
  131. package/esm/next/hooks/layers/useSyncLayersToMap.d.ts.map +1 -0
  132. package/esm/next/hooks/layers/useSyncLayersToMap.js +70 -0
  133. package/esm/next/hooks/layers/useSyncLayersToMap.js.map +1 -0
  134. package/esm/next/hooks/legend/useLegendConfig.d.ts +2 -2
  135. package/esm/next/hooks/legend/useLegendConfig.d.ts.map +1 -1
  136. package/esm/next/hooks/legend/useLegendConfig.js.map +1 -1
  137. package/esm/next/hooks/legend/useLegendDetails.d.ts +3 -3
  138. package/esm/next/hooks/legend/useLegendDetails.d.ts.map +1 -1
  139. package/esm/next/hooks/legend/useLegendDetails.js.map +1 -1
  140. package/esm/next/hooks/legend/useLegendItemClick.d.ts +2 -2
  141. package/esm/next/hooks/legend/useLegendItemClick.d.ts.map +1 -1
  142. package/esm/next/hooks/legend/useLegendItemClick.js.map +1 -1
  143. package/esm/next/hooks/legend/useLegendItemsWithState.d.ts +2 -2
  144. package/esm/next/hooks/legend/useLegendItemsWithState.d.ts.map +1 -1
  145. package/esm/next/hooks/legend/useLegendItemsWithState.js +0 -3
  146. package/esm/next/hooks/legend/useLegendItemsWithState.js.map +1 -1
  147. package/esm/next/hooks/legend/useLegendRenderState.d.ts +44 -0
  148. package/esm/next/hooks/legend/useLegendRenderState.d.ts.map +1 -0
  149. package/esm/next/hooks/legend/useLegendRenderState.js +43 -0
  150. package/esm/next/hooks/legend/useLegendRenderState.js.map +1 -0
  151. package/esm/next/hooks/legend/useSelectedSegments.d.ts +2 -2
  152. package/esm/next/hooks/legend/useSelectedSegments.d.ts.map +1 -1
  153. package/esm/next/hooks/legend/useSelectedSegments.js +0 -3
  154. package/esm/next/hooks/legend/useSelectedSegments.js.map +1 -1
  155. package/esm/next/hooks/map/useAfterRender.d.ts +4 -3
  156. package/esm/next/hooks/map/useAfterRender.d.ts.map +1 -1
  157. package/esm/next/hooks/map/useAfterRender.js +3 -16
  158. package/esm/next/hooks/map/useAfterRender.js.map +1 -1
  159. package/esm/next/hooks/map/useMapCallbacks.d.ts +3 -3
  160. package/esm/next/hooks/map/useMapCallbacks.d.ts.map +1 -1
  161. package/esm/next/hooks/map/useMapCallbacks.js.map +1 -1
  162. package/esm/next/hooks/map/useMapInitialization.d.ts +7 -8
  163. package/esm/next/hooks/map/useMapInitialization.d.ts.map +1 -1
  164. package/esm/next/hooks/map/useMapInitialization.js +20 -23
  165. package/esm/next/hooks/map/useMapInitialization.js.map +1 -1
  166. package/esm/next/hooks/map/useMapResize.d.ts +3 -3
  167. package/esm/next/hooks/map/useMapResize.d.ts.map +1 -1
  168. package/esm/next/hooks/map/useMapResize.js +3 -7
  169. package/esm/next/hooks/map/useMapResize.js.map +1 -1
  170. package/esm/next/hooks/props/useResolvedGeoChartNextProps.d.ts +21 -0
  171. package/esm/next/hooks/props/useResolvedGeoChartNextProps.d.ts.map +1 -0
  172. package/esm/next/hooks/props/useResolvedGeoChartNextProps.js +39 -0
  173. package/esm/next/hooks/props/useResolvedGeoChartNextProps.js.map +1 -0
  174. package/esm/next/hooks/pushData/useGeoPushData.d.ts +28 -0
  175. package/esm/next/hooks/pushData/useGeoPushData.d.ts.map +1 -0
  176. package/esm/next/hooks/{shared → pushData}/useGeoPushData.js +1 -1
  177. package/esm/next/hooks/pushData/useGeoPushData.js.map +1 -0
  178. package/esm/next/hooks/utils/useCallbackOnChange.d.ts +24 -0
  179. package/esm/next/hooks/utils/useCallbackOnChange.d.ts.map +1 -0
  180. package/esm/next/hooks/utils/useCallbackOnChange.js +37 -0
  181. package/esm/next/hooks/utils/useCallbackOnChange.js.map +1 -0
  182. package/esm/next/index.d.ts +28 -8
  183. package/esm/next/index.d.ts.map +1 -1
  184. package/esm/next/index.js +13 -2
  185. package/esm/next/index.js.map +1 -1
  186. package/esm/next/layers/area/adapter.d.ts +4 -0
  187. package/esm/next/layers/area/adapter.d.ts.map +1 -0
  188. package/esm/next/layers/area/adapter.js +160 -0
  189. package/esm/next/layers/area/adapter.js.map +1 -0
  190. package/esm/next/{hooks/shared/geoCollectionBoundingBox.d.ts → layers/area/boundingBox.d.ts} +4 -2
  191. package/esm/next/layers/area/boundingBox.d.ts.map +1 -0
  192. package/esm/next/{hooks/shared/geoCollectionBoundingBox.js → layers/area/boundingBox.js} +23 -16
  193. package/esm/next/layers/area/boundingBox.js.map +1 -0
  194. package/esm/next/{features/coloring/areaColorStrategy.d.ts → layers/area/coloring/colorStrategy.d.ts} +2 -2
  195. package/esm/next/layers/area/coloring/colorStrategy.d.ts.map +1 -0
  196. package/esm/next/{features/coloring/areaColorStrategy.js → layers/area/coloring/colorStrategy.js} +2 -2
  197. package/esm/next/layers/area/coloring/colorStrategy.js.map +1 -0
  198. package/esm/next/{features/coloring/areaPalette.d.ts → layers/area/coloring/palette.d.ts} +1 -1
  199. package/esm/next/layers/area/coloring/palette.d.ts.map +1 -0
  200. package/esm/next/{features/coloring/areaPalette.js → layers/area/coloring/palette.js} +7 -7
  201. package/esm/next/layers/area/coloring/palette.js.map +1 -0
  202. package/esm/next/layers/area/config/defaults.d.ts +8 -0
  203. package/esm/next/layers/area/config/defaults.d.ts.map +1 -0
  204. package/esm/next/layers/area/config/defaults.js +19 -0
  205. package/esm/next/layers/area/config/defaults.js.map +1 -0
  206. package/esm/next/layers/area/constants.d.ts +14 -0
  207. package/esm/next/layers/area/constants.d.ts.map +1 -0
  208. package/esm/next/layers/area/constants.js +15 -0
  209. package/esm/next/layers/area/constants.js.map +1 -0
  210. package/esm/next/layers/area/data/transformation.d.ts +41 -0
  211. package/esm/next/layers/area/data/transformation.d.ts.map +1 -0
  212. package/esm/next/{features/data/areaTransformation.js → layers/area/data/transformation.js} +104 -55
  213. package/esm/next/layers/area/data/transformation.js.map +1 -0
  214. package/esm/next/layers/area/layerFactory.d.ts +20 -0
  215. package/esm/next/layers/area/layerFactory.d.ts.map +1 -0
  216. package/esm/next/layers/area/layerFactory.js +26 -0
  217. package/esm/next/layers/area/layerFactory.js.map +1 -0
  218. package/esm/next/{providers/maplibre/maplibreDataLayersArea.d.ts → layers/area/layers.d.ts} +7 -7
  219. package/esm/next/layers/area/layers.d.ts.map +1 -0
  220. package/esm/next/{providers/maplibre/maplibreDataLayersArea.js → layers/area/layers.js} +10 -16
  221. package/esm/next/layers/area/layers.js.map +1 -0
  222. package/esm/next/layers/area/operations.d.ts +33 -0
  223. package/esm/next/layers/area/operations.d.ts.map +1 -0
  224. package/esm/next/layers/area/operations.js +55 -0
  225. package/esm/next/layers/area/operations.js.map +1 -0
  226. package/esm/next/layers/area/source.d.ts +36 -0
  227. package/esm/next/layers/area/source.d.ts.map +1 -0
  228. package/esm/next/{providers/maplibre/maplibreDataSourceArea.js → layers/area/source.js} +21 -80
  229. package/esm/next/layers/area/source.js.map +1 -0
  230. package/esm/next/layers/area/tooltip/tooltipManagement.d.ts +19 -0
  231. package/esm/next/layers/area/tooltip/tooltipManagement.d.ts.map +1 -0
  232. package/esm/next/layers/area/tooltip/tooltipManagement.js +127 -0
  233. package/esm/next/layers/area/tooltip/tooltipManagement.js.map +1 -0
  234. package/esm/next/layers/common/computeLegend.d.ts +34 -0
  235. package/esm/next/layers/common/computeLegend.d.ts.map +1 -0
  236. package/esm/next/layers/common/computeLegend.js +43 -0
  237. package/esm/next/layers/common/computeLegend.js.map +1 -0
  238. package/esm/next/layers/common/dimensions.d.ts +15 -0
  239. package/esm/next/layers/common/dimensions.d.ts.map +1 -0
  240. package/esm/next/layers/common/dimensions.js +24 -0
  241. package/esm/next/layers/common/dimensions.js.map +1 -0
  242. package/esm/next/layers/common/layerOps.d.ts +4 -0
  243. package/esm/next/layers/common/layerOps.d.ts.map +1 -0
  244. package/esm/next/layers/common/layerOps.js +21 -0
  245. package/esm/next/layers/common/layerOps.js.map +1 -0
  246. package/esm/next/layers/common/mapFacade.d.ts +116 -0
  247. package/esm/next/layers/common/mapFacade.d.ts.map +1 -0
  248. package/esm/next/layers/common/mapFacade.js +128 -0
  249. package/esm/next/layers/common/mapFacade.js.map +1 -0
  250. package/esm/next/layers/execution/buildLayerExecution.d.ts +15 -0
  251. package/esm/next/layers/execution/buildLayerExecution.d.ts.map +1 -0
  252. package/esm/next/layers/execution/buildLayerExecution.js +28 -0
  253. package/esm/next/layers/execution/buildLayerExecution.js.map +1 -0
  254. package/esm/next/layers/execution/layerContext.d.ts +33 -0
  255. package/esm/next/layers/execution/layerContext.d.ts.map +1 -0
  256. package/esm/next/layers/execution/layerContext.js +39 -0
  257. package/esm/next/layers/execution/layerContext.js.map +1 -0
  258. package/esm/next/layers/pushpin/adapter.d.ts +4 -0
  259. package/esm/next/layers/pushpin/adapter.d.ts.map +1 -0
  260. package/esm/next/layers/pushpin/adapter.js +122 -0
  261. package/esm/next/layers/pushpin/adapter.js.map +1 -0
  262. package/esm/next/layers/pushpin/clustering/clustering.d.ts +8 -0
  263. package/esm/next/layers/pushpin/clustering/clustering.d.ts.map +1 -0
  264. package/esm/next/layers/pushpin/clustering/clustering.js +11 -0
  265. package/esm/next/layers/pushpin/clustering/clustering.js.map +1 -0
  266. package/esm/next/{features → layers/pushpin}/coloring/colorStrategy.d.ts +2 -2
  267. package/esm/next/layers/pushpin/coloring/colorStrategy.d.ts.map +1 -0
  268. package/esm/next/{features → layers/pushpin}/coloring/colorStrategy.js +4 -4
  269. package/esm/next/layers/pushpin/coloring/colorStrategy.js.map +1 -0
  270. package/esm/next/{features → layers/pushpin}/coloring/palette.d.ts +2 -2
  271. package/esm/next/layers/pushpin/coloring/palette.d.ts.map +1 -0
  272. package/esm/next/{features → layers/pushpin}/coloring/palette.js +8 -5
  273. package/esm/next/layers/pushpin/coloring/palette.js.map +1 -0
  274. package/esm/next/layers/pushpin/config/defaults.d.ts +12 -0
  275. package/esm/next/layers/pushpin/config/defaults.d.ts.map +1 -0
  276. package/esm/next/layers/pushpin/config/defaults.js +19 -0
  277. package/esm/next/layers/pushpin/config/defaults.js.map +1 -0
  278. package/esm/next/{constants/geoChart.d.ts → layers/pushpin/constants.d.ts} +1 -9
  279. package/esm/next/layers/pushpin/constants.d.ts.map +1 -0
  280. package/esm/next/{constants/geoChart.js → layers/pushpin/constants.js} +1 -9
  281. package/esm/next/layers/pushpin/constants.js.map +1 -0
  282. package/esm/next/{features/data/pushpinTransformation.d.ts → layers/pushpin/data/transformation.d.ts} +5 -5
  283. package/esm/next/layers/pushpin/data/transformation.d.ts.map +1 -0
  284. package/esm/next/{features/data/pushpinTransformation.js → layers/pushpin/data/transformation.js} +146 -56
  285. package/esm/next/layers/pushpin/data/transformation.js.map +1 -0
  286. package/esm/next/layers/pushpin/layerFactory.d.ts +20 -0
  287. package/esm/next/layers/pushpin/layerFactory.d.ts.map +1 -0
  288. package/esm/next/layers/pushpin/layerFactory.js +26 -0
  289. package/esm/next/layers/pushpin/layerFactory.js.map +1 -0
  290. package/esm/next/{providers/maplibre/maplibreDataLayers.d.ts → layers/pushpin/layers.d.ts} +12 -8
  291. package/esm/next/layers/pushpin/layers.d.ts.map +1 -0
  292. package/esm/next/{providers/maplibre/maplibreDataLayers.js → layers/pushpin/layers.js} +39 -35
  293. package/esm/next/layers/pushpin/layers.js.map +1 -0
  294. package/esm/next/layers/pushpin/operations.d.ts +37 -0
  295. package/esm/next/layers/pushpin/operations.d.ts.map +1 -0
  296. package/esm/next/layers/pushpin/operations.js +74 -0
  297. package/esm/next/layers/pushpin/operations.js.map +1 -0
  298. package/esm/next/layers/pushpin/size/calculations.d.ts.map +1 -0
  299. package/esm/next/layers/pushpin/size/calculations.js.map +1 -0
  300. package/esm/next/layers/pushpin/source.d.ts +32 -0
  301. package/esm/next/layers/pushpin/source.d.ts.map +1 -0
  302. package/esm/next/layers/pushpin/source.js +126 -0
  303. package/esm/next/layers/pushpin/source.js.map +1 -0
  304. package/esm/next/{providers/maplibre/maplibreTooltip.d.ts → layers/pushpin/tooltip/tooltipManagement.d.ts} +13 -23
  305. package/esm/next/layers/pushpin/tooltip/tooltipManagement.d.ts.map +1 -0
  306. package/esm/next/layers/pushpin/tooltip/tooltipManagement.js +208 -0
  307. package/esm/next/layers/pushpin/tooltip/tooltipManagement.js.map +1 -0
  308. package/esm/next/layers/registry/adapterRegistry.d.ts +31 -0
  309. package/esm/next/layers/registry/adapterRegistry.d.ts.map +1 -0
  310. package/esm/next/layers/registry/adapterRegistry.js +48 -0
  311. package/esm/next/layers/registry/adapterRegistry.js.map +1 -0
  312. package/esm/next/layers/registry/adapterTypes.d.ts +295 -0
  313. package/esm/next/layers/registry/adapterTypes.d.ts.map +1 -0
  314. package/esm/next/{types/areaInternal.js → layers/registry/adapterTypes.js} +1 -1
  315. package/esm/next/layers/registry/adapterTypes.js.map +1 -0
  316. package/esm/next/layers/registry/output.d.ts +9 -0
  317. package/esm/next/layers/registry/output.d.ts.map +1 -0
  318. package/esm/next/layers/registry/output.js +22 -0
  319. package/esm/next/layers/registry/output.js.map +1 -0
  320. package/esm/next/map/MapController.d.ts +25 -0
  321. package/esm/next/map/MapController.d.ts.map +1 -0
  322. package/esm/next/map/MapController.js +39 -0
  323. package/esm/next/map/MapController.js.map +1 -0
  324. package/esm/next/{providers/maplibre/maplibreConfig.d.ts → map/runtime/mapConfig.d.ts} +5 -4
  325. package/esm/next/map/runtime/mapConfig.d.ts.map +1 -0
  326. package/esm/next/{providers/maplibre/maplibreConfig.js → map/runtime/mapConfig.js} +5 -4
  327. package/esm/next/map/runtime/mapConfig.js.map +1 -0
  328. package/esm/next/{features/map/initializeMap.d.ts → map/runtime/mapInitialization.d.ts} +3 -3
  329. package/esm/next/map/runtime/mapInitialization.d.ts.map +1 -0
  330. package/esm/next/{features/map/initializeMap.js → map/runtime/mapInitialization.js} +14 -9
  331. package/esm/next/map/runtime/mapInitialization.js.map +1 -0
  332. package/esm/next/{features/data/transformationCommon.d.ts → map/style/dataTransformation.d.ts} +1 -8
  333. package/esm/next/map/style/dataTransformation.d.ts.map +1 -0
  334. package/esm/next/{features/data/transformationCommon.js → map/style/dataTransformation.js} +1 -21
  335. package/esm/next/map/style/dataTransformation.js.map +1 -0
  336. package/esm/next/map/style/sharedDefaults.d.ts +12 -0
  337. package/esm/next/map/style/sharedDefaults.d.ts.map +1 -0
  338. package/esm/next/map/style/sharedDefaults.js +25 -0
  339. package/esm/next/map/style/sharedDefaults.js.map +1 -0
  340. package/esm/next/map/style/sharedLayers.d.ts +8 -0
  341. package/esm/next/map/style/sharedLayers.d.ts.map +1 -0
  342. package/esm/next/map/style/sharedLayers.js +18 -0
  343. package/esm/next/map/style/sharedLayers.js.map +1 -0
  344. package/esm/next/map/style/styleConfig.d.ts +3 -0
  345. package/esm/next/map/style/styleConfig.d.ts.map +1 -0
  346. package/esm/next/{providers/maplibre/style.js → map/style/styleConfig.js} +1 -1
  347. package/esm/next/map/style/styleConfig.js.map +1 -0
  348. package/esm/next/{features/tooltip/formatting.d.ts → map/style/tooltipFormatting.d.ts} +1 -1
  349. package/esm/next/map/style/tooltipFormatting.d.ts.map +1 -0
  350. package/esm/next/{features/tooltip/formatting.js → map/style/tooltipFormatting.js} +1 -1
  351. package/esm/next/map/style/tooltipFormatting.js.map +1 -0
  352. package/esm/next/map/styleReconciliation/planBuilder.d.ts +105 -0
  353. package/esm/next/map/styleReconciliation/planBuilder.d.ts.map +1 -0
  354. package/esm/next/map/styleReconciliation/planBuilder.js +83 -0
  355. package/esm/next/map/styleReconciliation/planBuilder.js.map +1 -0
  356. package/esm/next/map/styleReconciliation/reconcileStyle.d.ts +92 -0
  357. package/esm/next/map/styleReconciliation/reconcileStyle.d.ts.map +1 -0
  358. package/esm/next/map/styleReconciliation/reconcileStyle.js +121 -0
  359. package/esm/next/map/styleReconciliation/reconcileStyle.js.map +1 -0
  360. package/esm/next/map/styleReconciliation/types.d.ts +138 -0
  361. package/esm/next/map/styleReconciliation/types.d.ts.map +1 -0
  362. package/esm/next/{types/shared.js → map/styleReconciliation/types.js} +1 -1
  363. package/esm/next/map/styleReconciliation/types.js.map +1 -0
  364. package/esm/next/map/viewport/viewportCalculation.d.ts +33 -0
  365. package/esm/next/map/viewport/viewportCalculation.d.ts.map +1 -0
  366. package/esm/next/map/viewport/viewportCalculation.js +94 -0
  367. package/esm/next/map/viewport/viewportCalculation.js.map +1 -0
  368. package/esm/next/{providers/maplibre/maplibreViewport.d.ts → map/viewport/viewportPresets.d.ts} +4 -4
  369. package/esm/next/map/viewport/viewportPresets.d.ts.map +1 -0
  370. package/esm/next/{providers/maplibre/maplibreViewport.js → map/viewport/viewportPresets.js} +9 -13
  371. package/esm/next/map/viewport/viewportPresets.js.map +1 -0
  372. package/esm/next/map/viewport.d.ts +8 -0
  373. package/esm/next/map/viewport.d.ts.map +1 -0
  374. package/esm/next/map/viewport.js +44 -0
  375. package/esm/next/map/viewport.js.map +1 -0
  376. package/esm/next/pushData/PushDataSync.d.ts +12 -0
  377. package/esm/next/pushData/PushDataSync.d.ts.map +1 -0
  378. package/esm/next/pushData/PushDataSync.js +16 -0
  379. package/esm/next/pushData/PushDataSync.js.map +1 -0
  380. package/esm/next/types/common/callbacks.d.ts +14 -0
  381. package/esm/next/types/common/callbacks.d.ts.map +1 -0
  382. package/esm/next/types/{areaPublic.js → common/callbacks.js} +1 -1
  383. package/esm/next/types/common/callbacks.js.map +1 -0
  384. package/esm/next/types/common/coordinates.d.ts +31 -0
  385. package/esm/next/types/common/coordinates.d.ts.map +1 -0
  386. package/esm/next/types/{areaConfig.js → common/coordinates.js} +1 -1
  387. package/esm/next/types/common/coordinates.js.map +1 -0
  388. package/esm/next/types/common/legends.d.ts +56 -0
  389. package/esm/next/types/common/legends.d.ts.map +1 -0
  390. package/esm/next/types/common/legends.js +3 -0
  391. package/esm/next/types/common/legends.js.map +1 -0
  392. package/esm/next/types/config/areaChart.d.ts +37 -0
  393. package/esm/next/types/config/areaChart.d.ts.map +1 -0
  394. package/esm/next/types/config/areaChart.js +3 -0
  395. package/esm/next/types/config/areaChart.js.map +1 -0
  396. package/esm/next/types/config/areas.d.ts +23 -0
  397. package/esm/next/types/config/areas.d.ts.map +1 -0
  398. package/esm/next/types/{config.js → config/areas.js} +1 -1
  399. package/esm/next/types/config/areas.js.map +1 -0
  400. package/esm/next/types/config/legend.d.ts +26 -0
  401. package/esm/next/types/config/legend.d.ts.map +1 -0
  402. package/esm/next/types/config/legend.js +3 -0
  403. package/esm/next/types/config/legend.js.map +1 -0
  404. package/esm/next/types/config/points.d.ts +44 -0
  405. package/esm/next/types/config/points.d.ts.map +1 -0
  406. package/esm/next/types/config/points.js +23 -0
  407. package/esm/next/types/config/points.js.map +1 -0
  408. package/esm/next/types/config/pushpinChart.d.ts +37 -0
  409. package/esm/next/types/config/pushpinChart.d.ts.map +1 -0
  410. package/esm/next/types/config/pushpinChart.js +3 -0
  411. package/esm/next/types/config/pushpinChart.js.map +1 -0
  412. package/esm/next/types/config/unified.d.ts +93 -0
  413. package/esm/next/types/config/unified.d.ts.map +1 -0
  414. package/esm/next/types/config/unified.js +3 -0
  415. package/esm/next/types/config/unified.js.map +1 -0
  416. package/esm/next/types/config/viewport.d.ts +38 -0
  417. package/esm/next/types/config/viewport.d.ts.map +1 -0
  418. package/esm/next/types/config/viewport.js +25 -0
  419. package/esm/next/types/config/viewport.js.map +1 -0
  420. package/esm/next/types/geoData/area.d.ts +32 -0
  421. package/esm/next/types/geoData/area.d.ts.map +1 -0
  422. package/esm/next/types/geoData/area.js +3 -0
  423. package/esm/next/types/geoData/area.js.map +1 -0
  424. package/esm/next/types/geoData/common.d.ts +72 -0
  425. package/esm/next/types/geoData/common.d.ts.map +1 -0
  426. package/esm/next/types/geoData/common.js +3 -0
  427. package/esm/next/types/geoData/common.js.map +1 -0
  428. package/esm/next/types/geoData/pushpin.d.ts +51 -0
  429. package/esm/next/types/geoData/pushpin.d.ts.map +1 -0
  430. package/esm/next/types/geoData/pushpin.js +3 -0
  431. package/esm/next/types/geoData/pushpin.js.map +1 -0
  432. package/esm/next/types/geoData/typeGuards.d.ts +21 -0
  433. package/esm/next/types/geoData/typeGuards.d.ts.map +1 -0
  434. package/esm/next/types/geoData/typeGuards.js +24 -0
  435. package/esm/next/types/geoData/typeGuards.js.map +1 -0
  436. package/esm/next/types/layers/index.d.ts +207 -0
  437. package/esm/next/types/layers/index.d.ts.map +1 -0
  438. package/esm/next/types/layers/index.js +31 -0
  439. package/esm/next/types/layers/index.js.map +1 -0
  440. package/esm/next/types/{mapProvider.d.ts → map/provider.d.ts} +5 -51
  441. package/esm/next/types/map/provider.d.ts.map +1 -0
  442. package/esm/next/types/map/provider.js +3 -0
  443. package/esm/next/types/map/provider.js.map +1 -0
  444. package/esm/next/types/props/areaChart/internal.d.ts +43 -0
  445. package/esm/next/types/props/areaChart/internal.d.ts.map +1 -0
  446. package/esm/next/types/props/areaChart/internal.js.map +1 -0
  447. package/esm/next/types/props/areaChart/public.d.ts +73 -0
  448. package/esm/next/types/props/areaChart/public.d.ts.map +1 -0
  449. package/esm/next/types/props/areaChart/public.js +3 -0
  450. package/esm/next/types/props/areaChart/public.js.map +1 -0
  451. package/esm/next/types/props/geoChartNext/internal.d.ts +92 -0
  452. package/esm/next/types/props/geoChartNext/internal.d.ts.map +1 -0
  453. package/esm/next/types/props/geoChartNext/internal.js +3 -0
  454. package/esm/next/types/props/geoChartNext/internal.js.map +1 -0
  455. package/esm/next/types/props/geoChartNext/public.d.ts +50 -0
  456. package/esm/next/types/props/geoChartNext/public.d.ts.map +1 -0
  457. package/esm/next/types/props/geoChartNext/public.js +3 -0
  458. package/esm/next/types/props/geoChartNext/public.js.map +1 -0
  459. package/esm/next/types/props/pushpinChart/internal.d.ts +43 -0
  460. package/esm/next/types/props/pushpinChart/internal.d.ts.map +1 -0
  461. package/esm/next/types/props/pushpinChart/internal.js +3 -0
  462. package/esm/next/types/props/pushpinChart/internal.js.map +1 -0
  463. package/esm/next/types/props/pushpinChart/public.d.ts +81 -0
  464. package/esm/next/types/props/pushpinChart/public.d.ts.map +1 -0
  465. package/esm/next/types/props/pushpinChart/public.js +3 -0
  466. package/esm/next/types/props/pushpinChart/public.js.map +1 -0
  467. package/esm/next/utils/dataValidation.d.ts +85 -0
  468. package/esm/next/utils/dataValidation.d.ts.map +1 -0
  469. package/esm/next/utils/dataValidation.js +82 -0
  470. package/esm/next/utils/dataValidation.js.map +1 -0
  471. package/esm/next/utils/fingerprint.d.ts +39 -0
  472. package/esm/next/utils/fingerprint.d.ts.map +1 -0
  473. package/esm/next/utils/fingerprint.js +44 -0
  474. package/esm/next/utils/fingerprint.js.map +1 -0
  475. package/esm/next/utils/geoCollection.d.ts +0 -7
  476. package/esm/next/utils/geoCollection.d.ts.map +1 -1
  477. package/esm/next/utils/geoCollection.js +15 -61
  478. package/esm/next/utils/geoCollection.js.map +1 -1
  479. package/esm/next/utils/geoHeaders.d.ts +12 -0
  480. package/esm/next/utils/geoHeaders.d.ts.map +1 -0
  481. package/esm/next/utils/geoHeaders.js +12 -0
  482. package/esm/next/utils/geoHeaders.js.map +1 -0
  483. package/esm/next/utils/guards.d.ts +18 -0
  484. package/esm/next/utils/guards.d.ts.map +1 -0
  485. package/esm/next/utils/guards.js +41 -0
  486. package/esm/next/utils/guards.js.map +1 -0
  487. package/esm/next/utils/layerConversion.d.ts +38 -0
  488. package/esm/next/utils/layerConversion.d.ts.map +1 -0
  489. package/esm/next/utils/layerConversion.js +244 -0
  490. package/esm/next/utils/layerConversion.js.map +1 -0
  491. package/package.json +9 -9
  492. package/styles/css/main.css +18 -0
  493. package/styles/css/main.css.map +1 -1
  494. package/styles/scss/geo-chart-next.scss +24 -0
  495. package/styles/scss/main.scss +1 -0
  496. package/esm/next/RenderGeoAreaChart.d.ts +0 -15
  497. package/esm/next/RenderGeoAreaChart.d.ts.map +0 -1
  498. package/esm/next/RenderGeoAreaChart.js +0 -104
  499. package/esm/next/RenderGeoAreaChart.js.map +0 -1
  500. package/esm/next/RenderGeoPushpinChart.d.ts +0 -15
  501. package/esm/next/RenderGeoPushpinChart.d.ts.map +0 -1
  502. package/esm/next/RenderGeoPushpinChart.js +0 -111
  503. package/esm/next/RenderGeoPushpinChart.js.map +0 -1
  504. package/esm/next/components/ErrorComponent.d.ts +0 -13
  505. package/esm/next/components/ErrorComponent.d.ts.map +0 -1
  506. package/esm/next/components/ErrorComponent.js.map +0 -1
  507. package/esm/next/components/LoadingComponent.d.ts +0 -5
  508. package/esm/next/components/LoadingComponent.d.ts.map +0 -1
  509. package/esm/next/components/LoadingComponent.js.map +0 -1
  510. package/esm/next/constants/geoChart.d.ts.map +0 -1
  511. package/esm/next/constants/geoChart.js.map +0 -1
  512. package/esm/next/constants/internal.d.ts.map +0 -1
  513. package/esm/next/constants/internal.js.map +0 -1
  514. package/esm/next/context/GeoAreaCollectionContext.d.ts +0 -24
  515. package/esm/next/context/GeoAreaCollectionContext.d.ts.map +0 -1
  516. package/esm/next/context/GeoAreaCollectionContext.js +0 -39
  517. package/esm/next/context/GeoAreaCollectionContext.js.map +0 -1
  518. package/esm/next/context/GeoAreaDataContext.d.ts +0 -69
  519. package/esm/next/context/GeoAreaDataContext.d.ts.map +0 -1
  520. package/esm/next/context/GeoAreaDataContext.js +0 -87
  521. package/esm/next/context/GeoAreaDataContext.js.map +0 -1
  522. package/esm/next/context/GeoAreaPropsContext.d.ts +0 -47
  523. package/esm/next/context/GeoAreaPropsContext.d.ts.map +0 -1
  524. package/esm/next/context/GeoAreaPropsContext.js +0 -84
  525. package/esm/next/context/GeoAreaPropsContext.js.map +0 -1
  526. package/esm/next/context/GeoPushpinDataContext.d.ts +0 -14
  527. package/esm/next/context/GeoPushpinDataContext.d.ts.map +0 -1
  528. package/esm/next/context/GeoPushpinDataContext.js +0 -51
  529. package/esm/next/context/GeoPushpinDataContext.js.map +0 -1
  530. package/esm/next/context/GeoPushpinPropsContext.d.ts +0 -47
  531. package/esm/next/context/GeoPushpinPropsContext.d.ts.map +0 -1
  532. package/esm/next/context/GeoPushpinPropsContext.js +0 -81
  533. package/esm/next/context/GeoPushpinPropsContext.js.map +0 -1
  534. package/esm/next/context/MapInstanceContext.d.ts +0 -42
  535. package/esm/next/context/MapInstanceContext.d.ts.map +0 -1
  536. package/esm/next/context/MapInstanceContext.js +0 -62
  537. package/esm/next/context/MapInstanceContext.js.map +0 -1
  538. package/esm/next/features/clustering/clustering.d.ts +0 -23
  539. package/esm/next/features/clustering/clustering.d.ts.map +0 -1
  540. package/esm/next/features/clustering/clustering.js +0 -26
  541. package/esm/next/features/clustering/clustering.js.map +0 -1
  542. package/esm/next/features/coloring/areaColorStrategy.d.ts.map +0 -1
  543. package/esm/next/features/coloring/areaColorStrategy.js.map +0 -1
  544. package/esm/next/features/coloring/areaPalette.d.ts.map +0 -1
  545. package/esm/next/features/coloring/areaPalette.js.map +0 -1
  546. package/esm/next/features/coloring/colorStrategy.d.ts.map +0 -1
  547. package/esm/next/features/coloring/colorStrategy.js.map +0 -1
  548. package/esm/next/features/coloring/palette.d.ts.map +0 -1
  549. package/esm/next/features/coloring/palette.js.map +0 -1
  550. package/esm/next/features/data/areaTransformation.d.ts +0 -60
  551. package/esm/next/features/data/areaTransformation.d.ts.map +0 -1
  552. package/esm/next/features/data/areaTransformation.js.map +0 -1
  553. package/esm/next/features/data/dataSourceManagement.d.ts +0 -20
  554. package/esm/next/features/data/dataSourceManagement.d.ts.map +0 -1
  555. package/esm/next/features/data/dataSourceManagement.js +0 -30
  556. package/esm/next/features/data/dataSourceManagement.js.map +0 -1
  557. package/esm/next/features/data/pushpinTransformation.d.ts.map +0 -1
  558. package/esm/next/features/data/pushpinTransformation.js.map +0 -1
  559. package/esm/next/features/data/transformationCommon.d.ts.map +0 -1
  560. package/esm/next/features/data/transformationCommon.js.map +0 -1
  561. package/esm/next/features/map/areaLayerManagement.d.ts +0 -51
  562. package/esm/next/features/map/areaLayerManagement.d.ts.map +0 -1
  563. package/esm/next/features/map/areaLayerManagement.js +0 -81
  564. package/esm/next/features/map/areaLayerManagement.js.map +0 -1
  565. package/esm/next/features/map/initializeMap.d.ts.map +0 -1
  566. package/esm/next/features/map/initializeMap.js.map +0 -1
  567. package/esm/next/features/map/layerManagement.d.ts +0 -51
  568. package/esm/next/features/map/layerManagement.d.ts.map +0 -1
  569. package/esm/next/features/map/layerManagement.js +0 -95
  570. package/esm/next/features/map/layerManagement.js.map +0 -1
  571. package/esm/next/features/map/viewportManagement.d.ts +0 -89
  572. package/esm/next/features/map/viewportManagement.d.ts.map +0 -1
  573. package/esm/next/features/map/viewportManagement.js +0 -223
  574. package/esm/next/features/map/viewportManagement.js.map +0 -1
  575. package/esm/next/features/size/calculations.d.ts.map +0 -1
  576. package/esm/next/features/size/calculations.js.map +0 -1
  577. package/esm/next/features/tooltip/formatting.d.ts.map +0 -1
  578. package/esm/next/features/tooltip/formatting.js.map +0 -1
  579. package/esm/next/features/tooltip/tooltipManagement.d.ts +0 -47
  580. package/esm/next/features/tooltip/tooltipManagement.d.ts.map +0 -1
  581. package/esm/next/features/tooltip/tooltipManagement.js +0 -77
  582. package/esm/next/features/tooltip/tooltipManagement.js.map +0 -1
  583. package/esm/next/helpers/areaAttributeResolver.d.ts +0 -10
  584. package/esm/next/helpers/areaAttributeResolver.d.ts.map +0 -1
  585. package/esm/next/helpers/areaAttributeResolver.js +0 -26
  586. package/esm/next/helpers/areaAttributeResolver.js.map +0 -1
  587. package/esm/next/hooks/init/useInitExecution.d.ts +0 -32
  588. package/esm/next/hooks/init/useInitExecution.d.ts.map +0 -1
  589. package/esm/next/hooks/init/useInitExecution.js +0 -107
  590. package/esm/next/hooks/init/useInitExecution.js.map +0 -1
  591. package/esm/next/hooks/init/useInitExecutionResult.d.ts +0 -17
  592. package/esm/next/hooks/init/useInitExecutionResult.d.ts.map +0 -1
  593. package/esm/next/hooks/init/useInitExecutionResult.js +0 -51
  594. package/esm/next/hooks/init/useInitExecutionResult.js.map +0 -1
  595. package/esm/next/hooks/legend/useAreaLegendItems.d.ts +0 -27
  596. package/esm/next/hooks/legend/useAreaLegendItems.d.ts.map +0 -1
  597. package/esm/next/hooks/legend/useAreaLegendItems.js +0 -33
  598. package/esm/next/hooks/legend/useAreaLegendItems.js.map +0 -1
  599. package/esm/next/hooks/legend/useLegendProps.d.ts +0 -53
  600. package/esm/next/hooks/legend/useLegendProps.d.ts.map +0 -1
  601. package/esm/next/hooks/legend/useLegendProps.js +0 -38
  602. package/esm/next/hooks/legend/useLegendProps.js.map +0 -1
  603. package/esm/next/hooks/legend/usePushpinLegendItems.d.ts +0 -27
  604. package/esm/next/hooks/legend/usePushpinLegendItems.d.ts.map +0 -1
  605. package/esm/next/hooks/legend/usePushpinLegendItems.js +0 -33
  606. package/esm/next/hooks/legend/usePushpinLegendItems.js.map +0 -1
  607. package/esm/next/hooks/map/useAreaMapDataSync.d.ts +0 -9
  608. package/esm/next/hooks/map/useAreaMapDataSync.d.ts.map +0 -1
  609. package/esm/next/hooks/map/useAreaMapDataSync.js +0 -71
  610. package/esm/next/hooks/map/useAreaMapDataSync.js.map +0 -1
  611. package/esm/next/hooks/map/useMapDataSync.d.ts +0 -44
  612. package/esm/next/hooks/map/useMapDataSync.d.ts.map +0 -1
  613. package/esm/next/hooks/map/useMapDataSync.js +0 -87
  614. package/esm/next/hooks/map/useMapDataSync.js.map +0 -1
  615. package/esm/next/hooks/map/useTooltipHandlers.d.ts +0 -22
  616. package/esm/next/hooks/map/useTooltipHandlers.d.ts.map +0 -1
  617. package/esm/next/hooks/map/useTooltipHandlers.js +0 -28
  618. package/esm/next/hooks/map/useTooltipHandlers.js.map +0 -1
  619. package/esm/next/hooks/shared/geoCollectionBoundingBox.d.ts.map +0 -1
  620. package/esm/next/hooks/shared/geoCollectionBoundingBox.js.map +0 -1
  621. package/esm/next/hooks/shared/useAreaCollectionFeatures.d.ts +0 -43
  622. package/esm/next/hooks/shared/useAreaCollectionFeatures.d.ts.map +0 -1
  623. package/esm/next/hooks/shared/useAreaCollectionFeatures.js +0 -213
  624. package/esm/next/hooks/shared/useAreaCollectionFeatures.js.map +0 -1
  625. package/esm/next/hooks/shared/useAreaDataTransformation.d.ts +0 -21
  626. package/esm/next/hooks/shared/useAreaDataTransformation.d.ts.map +0 -1
  627. package/esm/next/hooks/shared/useAreaDataTransformation.js +0 -25
  628. package/esm/next/hooks/shared/useAreaDataTransformation.js.map +0 -1
  629. package/esm/next/hooks/shared/useAreaPushData.d.ts +0 -11
  630. package/esm/next/hooks/shared/useAreaPushData.d.ts.map +0 -1
  631. package/esm/next/hooks/shared/useAreaPushData.js +0 -20
  632. package/esm/next/hooks/shared/useAreaPushData.js.map +0 -1
  633. package/esm/next/hooks/shared/useGeoDataTransformation.d.ts +0 -9
  634. package/esm/next/hooks/shared/useGeoDataTransformation.d.ts.map +0 -1
  635. package/esm/next/hooks/shared/useGeoDataTransformation.js +0 -20
  636. package/esm/next/hooks/shared/useGeoDataTransformation.js.map +0 -1
  637. package/esm/next/hooks/shared/useGeoPushData.d.ts +0 -20
  638. package/esm/next/hooks/shared/useGeoPushData.d.ts.map +0 -1
  639. package/esm/next/hooks/shared/useGeoPushData.js.map +0 -1
  640. package/esm/next/hooks/shared/usePushData.d.ts +0 -8
  641. package/esm/next/hooks/shared/usePushData.d.ts.map +0 -1
  642. package/esm/next/hooks/shared/usePushData.js +0 -15
  643. package/esm/next/hooks/shared/usePushData.js.map +0 -1
  644. package/esm/next/hooks/shared/usePushpinDataTransformation.d.ts +0 -23
  645. package/esm/next/hooks/shared/usePushpinDataTransformation.d.ts.map +0 -1
  646. package/esm/next/hooks/shared/usePushpinDataTransformation.js +0 -27
  647. package/esm/next/hooks/shared/usePushpinDataTransformation.js.map +0 -1
  648. package/esm/next/hooks/shared/useResolvedAreaProps.d.ts +0 -16
  649. package/esm/next/hooks/shared/useResolvedAreaProps.d.ts.map +0 -1
  650. package/esm/next/hooks/shared/useResolvedAreaProps.js +0 -36
  651. package/esm/next/hooks/shared/useResolvedAreaProps.js.map +0 -1
  652. package/esm/next/hooks/shared/useResolvedPlaceholderValues.d.ts +0 -8
  653. package/esm/next/hooks/shared/useResolvedPlaceholderValues.d.ts.map +0 -1
  654. package/esm/next/hooks/shared/useResolvedPlaceholderValues.js +0 -11
  655. package/esm/next/hooks/shared/useResolvedPlaceholderValues.js.map +0 -1
  656. package/esm/next/hooks/shared/useResolvedProps.d.ts +0 -16
  657. package/esm/next/hooks/shared/useResolvedProps.d.ts.map +0 -1
  658. package/esm/next/hooks/shared/useResolvedProps.js +0 -40
  659. package/esm/next/hooks/shared/useResolvedProps.js.map +0 -1
  660. package/esm/next/hooks/shared/useSegmentLegendItems.d.ts +0 -17
  661. package/esm/next/hooks/shared/useSegmentLegendItems.d.ts.map +0 -1
  662. package/esm/next/hooks/shared/useSegmentLegendItems.js +0 -33
  663. package/esm/next/hooks/shared/useSegmentLegendItems.js.map +0 -1
  664. package/esm/next/providers/maplibre/maplibreConfig.d.ts.map +0 -1
  665. package/esm/next/providers/maplibre/maplibreConfig.js.map +0 -1
  666. package/esm/next/providers/maplibre/maplibreDataLayers.d.ts.map +0 -1
  667. package/esm/next/providers/maplibre/maplibreDataLayers.js.map +0 -1
  668. package/esm/next/providers/maplibre/maplibreDataLayersArea.d.ts.map +0 -1
  669. package/esm/next/providers/maplibre/maplibreDataLayersArea.js.map +0 -1
  670. package/esm/next/providers/maplibre/maplibreDataSource.d.ts +0 -28
  671. package/esm/next/providers/maplibre/maplibreDataSource.d.ts.map +0 -1
  672. package/esm/next/providers/maplibre/maplibreDataSource.js +0 -117
  673. package/esm/next/providers/maplibre/maplibreDataSource.js.map +0 -1
  674. package/esm/next/providers/maplibre/maplibreDataSourceArea.d.ts +0 -34
  675. package/esm/next/providers/maplibre/maplibreDataSourceArea.d.ts.map +0 -1
  676. package/esm/next/providers/maplibre/maplibreDataSourceArea.js.map +0 -1
  677. package/esm/next/providers/maplibre/maplibreTooltip.d.ts.map +0 -1
  678. package/esm/next/providers/maplibre/maplibreTooltip.js +0 -174
  679. package/esm/next/providers/maplibre/maplibreTooltip.js.map +0 -1
  680. package/esm/next/providers/maplibre/maplibreViewport.d.ts.map +0 -1
  681. package/esm/next/providers/maplibre/maplibreViewport.js.map +0 -1
  682. package/esm/next/providers/maplibre/style.d.ts +0 -3
  683. package/esm/next/providers/maplibre/style.d.ts.map +0 -1
  684. package/esm/next/providers/maplibre/style.js.map +0 -1
  685. package/esm/next/types/areaConfig.d.ts +0 -68
  686. package/esm/next/types/areaConfig.d.ts.map +0 -1
  687. package/esm/next/types/areaConfig.js.map +0 -1
  688. package/esm/next/types/areaInternal.d.ts +0 -13
  689. package/esm/next/types/areaInternal.d.ts.map +0 -1
  690. package/esm/next/types/areaInternal.js.map +0 -1
  691. package/esm/next/types/areaPublic.d.ts +0 -68
  692. package/esm/next/types/areaPublic.d.ts.map +0 -1
  693. package/esm/next/types/areaPublic.js.map +0 -1
  694. package/esm/next/types/config.d.ts +0 -89
  695. package/esm/next/types/config.d.ts.map +0 -1
  696. package/esm/next/types/config.js.map +0 -1
  697. package/esm/next/types/internal.d.ts +0 -17
  698. package/esm/next/types/internal.d.ts.map +0 -1
  699. package/esm/next/types/internal.js.map +0 -1
  700. package/esm/next/types/mapProvider.d.ts.map +0 -1
  701. package/esm/next/types/mapProvider.js +0 -3
  702. package/esm/next/types/mapProvider.js.map +0 -1
  703. package/esm/next/types/public.d.ts +0 -84
  704. package/esm/next/types/public.d.ts.map +0 -1
  705. package/esm/next/types/public.js +0 -15
  706. package/esm/next/types/public.js.map +0 -1
  707. package/esm/next/types/shared.d.ts +0 -245
  708. package/esm/next/types/shared.d.ts.map +0 -1
  709. package/esm/next/types/shared.js.map +0 -1
  710. /package/esm/next/{features → layers/pushpin}/size/calculations.d.ts +0 -0
  711. /package/esm/next/{features → layers/pushpin}/size/calculations.js +0 -0
  712. /package/esm/next/types/{internal.js → props/areaChart/internal.js} +0 -0
@@ -0,0 +1,39 @@
1
+ // (C) 2025 GoodData Corporation
2
+ import { useMemo } from "react";
3
+ import { useResolveValueWithPlaceholders } from "@gooddata/sdk-ui";
4
+ import { EMPTY_DRILLS, EMPTY_OBJECT } from "../../constants/emptyDefaults.js";
5
+ import { applyAreaConfigDefaults } from "../../layers/area/config/defaults.js";
6
+ import { applyPushpinConfigDefaults } from "../../layers/pushpin/config/defaults.js";
7
+ import { applySharedGeoConfigDefaults } from "../../map/style/sharedDefaults.js";
8
+ /**
9
+ * Resolves placeholders, applies defaults, and derives chart type for GeoChartNext.
10
+ *
11
+ * Pipeline: public props → placeholder resolution → defaults → resolved type → executions upstream.
12
+ *
13
+ * @param props - GeoChartNext props potentially containing placeholders
14
+ * @returns Resolved props with placeholders replaced, defaults applied, and chart type derived
15
+ *
16
+ * @internal
17
+ */
18
+ export function useResolvedGeoChartNextProps(props) {
19
+ const resolvedLayers = useResolveValueWithPlaceholders(props.layers);
20
+ const resolvedType = props.type ?? resolvedLayers[0]?.type ?? props.layers[0]?.type ?? "pushpin";
21
+ const config = applyGeoChartNextConfigDefaults(props.config);
22
+ return useMemo(() => ({
23
+ ...props,
24
+ layers: resolvedLayers,
25
+ type: resolvedType,
26
+ drillableItems: props.drillableItems ?? EMPTY_DRILLS,
27
+ execConfig: props.execConfig ?? EMPTY_OBJECT,
28
+ config,
29
+ }), [props, resolvedLayers, resolvedType, config]);
30
+ }
31
+ /**
32
+ * Applies shared + layer-specific config defaults.
33
+ *
34
+ * @internal
35
+ */
36
+ export function applyGeoChartNextConfigDefaults(config) {
37
+ return applyAreaConfigDefaults(applyPushpinConfigDefaults(applySharedGeoConfigDefaults(config)));
38
+ }
39
+ //# sourceMappingURL=useResolvedGeoChartNextProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResolvedGeoChartNextProps.js","sourceRoot":"","sources":["../../../../src/next/hooks/props/useResolvedGeoChartNextProps.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAKjF;;;;;;;;;GASG;AACH,MAAM,UAAU,4BAA4B,CAAC,KAAyB;IAClE,MAAM,cAAc,GAAG,+BAA+B,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACrE,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,IAAI,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,SAAS,CAAC;IAEjG,MAAM,MAAM,GAAG,+BAA+B,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAE7D,OAAO,OAAO,CACV,GAAG,EAAE,CAAC,CAAC;QACH,GAAG,KAAK;QACR,MAAM,EAAE,cAAc;QACtB,IAAI,EAAE,YAAY;QAClB,cAAc,EAAE,KAAK,CAAC,cAAc,IAAI,YAAY;QACpD,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,YAAY;QAC5C,MAAM;KACT,CAAC,EACF,CAAC,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,CAAC,CAChD,CAAC;AACN,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,+BAA+B,CAC3C,MAAuC;IAEvC,OAAO,uBAAuB,CAAC,0BAA0B,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { IColorPalette } from "@gooddata/sdk-model";
2
+ import { IPushData } from "@gooddata/sdk-ui";
3
+ import { IColorStrategy } from "@gooddata/sdk-ui-vis-commons";
4
+ import { IAvailableLegends } from "../../types/common/legends.js";
5
+ interface ILegendContext {
6
+ availableLegends: IAvailableLegends;
7
+ }
8
+ /**
9
+ * Minimal props interface required for pushData functionality
10
+ *
11
+ * @internal
12
+ */
13
+ interface IPushDataProps {
14
+ pushData?: (data: IPushData) => void;
15
+ }
16
+ interface IUseGeoPushDataConfig<TProps extends IPushDataProps, TLegendContext extends ILegendContext> {
17
+ useProps: () => TProps;
18
+ useLegendContext: () => TLegendContext;
19
+ getLegendVisibility?: (availableLegends: IAvailableLegends) => boolean;
20
+ }
21
+ /**
22
+ * Shared implementation for Analytical Designer pushData updates.
23
+ *
24
+ * @internal
25
+ */
26
+ export declare function useGeoPushData<TProps extends IPushDataProps, TLegendContext extends ILegendContext>(colorStrategy: IColorStrategy | null, colorPalette: IColorPalette, { useProps, useLegendContext, getLegendVisibility }: IUseGeoPushDataConfig<TProps, TLegendContext>): void;
27
+ export {};
28
+ //# sourceMappingURL=useGeoPushData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGeoPushData.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/pushData/useGeoPushData.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,UAAU,cAAc;IACpB,gBAAgB,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;GAIG;AACH,UAAU,cAAc;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACxC;AAED,UAAU,qBAAqB,CAAC,MAAM,SAAS,cAAc,EAAE,cAAc,SAAS,cAAc;IAChG,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,cAAc,CAAC;IACvC,mBAAmB,CAAC,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,KAAK,OAAO,CAAC;CAC1E;AAOD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,SAAS,cAAc,EAAE,cAAc,SAAS,cAAc,EAC/F,aAAa,EAAE,cAAc,GAAG,IAAI,EACpC,YAAY,EAAE,aAAa,EAC3B,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,EAAE,qBAAqB,CAAC,MAAM,EAAE,cAAc,CAAC,GACnG,IAAI,CAyBN"}
@@ -31,6 +31,6 @@ export function useGeoPushData(colorStrategy, colorPalette, { useProps, useLegen
31
31
  colorPalette,
32
32
  },
33
33
  });
34
- }, [pushData, availableLegends, colorStrategy, colorPalette, initialDataView, isLegendVisible]);
34
+ }, [pushData, colorStrategy, colorPalette, initialDataView, isLegendVisible]);
35
35
  }
36
36
  //# sourceMappingURL=useGeoPushData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGeoPushData.js","sourceRoot":"","sources":["../../../../src/next/hooks/pushData/useGeoPushData.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAsB/E,MAAM,uBAAuB,GAAG,CAAC,gBAAmC,EAAW,EAAE;IAC7E,MAAM,aAAa,GAAG,gBAAgB,CAAC,aAAa,IAAI,KAAK,CAAC;IAC9D,OAAO,OAAO,CAAC,gBAAgB,CAAC,iBAAiB,IAAI,gBAAgB,CAAC,cAAc,IAAI,aAAa,CAAC,CAAC;AAC3G,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAC1B,aAAoC,EACpC,YAA2B,EAC3B,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAiD;IAElG,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAChD,MAAM,EAAE,eAAe,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,wBAAwB,GAAG,mBAAmB,IAAI,uBAAuB,CAAC;IAEhF,MAAM,eAAe,GAAG,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;IAEnE,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,CAAC,QAAQ,IAAI,CAAC,aAAa,EAAE,CAAC;YAC9B,OAAO;QACX,CAAC;QAED,QAAQ,CAAC;YACL,QAAQ,EAAE,eAAe,EAAE,QAAQ;YACnC,cAAc,EAAE;gBACZ,cAAc,EAAE,eAAe;aAClC;YACD,MAAM,EAAE;gBACJ,gBAAgB,EAAE,aAAa,CAAC,kBAAkB,EAAE;gBACpD,YAAY;aACf;SACJ,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC;AAClF,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Hook that calls a callback when a value changes.
3
+ *
4
+ * @remarks
5
+ * This utility hook is useful for notification patterns where you need to
6
+ * call a callback only when a value changes, not on every render.
7
+ *
8
+ * @param value - The value to track for changes
9
+ * @param callback - The callback to invoke when value changes
10
+ * @param shouldTrigger - Optional predicate to gate callback invocation (default: true)
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * // Notify host when loading state changes
15
+ * useCallbackOnChange(isLoading, (loading) => onLoadingChanged?.({ isLoading: loading }));
16
+ *
17
+ * // Only notify when error is truthy
18
+ * useCallbackOnChange(error, (err) => onError?.(err), Boolean(error));
19
+ * ```
20
+ *
21
+ * @internal
22
+ */
23
+ export declare function useCallbackOnChange<T>(value: T, callback: ((value: T) => void) | undefined, shouldTrigger?: boolean): void;
24
+ //# sourceMappingURL=useCallbackOnChange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCallbackOnChange.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/utils/useCallbackOnChange.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACjC,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,EAC1C,aAAa,GAAE,OAAc,GAC9B,IAAI,CAaN"}
@@ -0,0 +1,37 @@
1
+ // (C) 2025 GoodData Corporation
2
+ import { useEffect, useRef } from "react";
3
+ /**
4
+ * Hook that calls a callback when a value changes.
5
+ *
6
+ * @remarks
7
+ * This utility hook is useful for notification patterns where you need to
8
+ * call a callback only when a value changes, not on every render.
9
+ *
10
+ * @param value - The value to track for changes
11
+ * @param callback - The callback to invoke when value changes
12
+ * @param shouldTrigger - Optional predicate to gate callback invocation (default: true)
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * // Notify host when loading state changes
17
+ * useCallbackOnChange(isLoading, (loading) => onLoadingChanged?.({ isLoading: loading }));
18
+ *
19
+ * // Only notify when error is truthy
20
+ * useCallbackOnChange(error, (err) => onError?.(err), Boolean(error));
21
+ * ```
22
+ *
23
+ * @internal
24
+ */
25
+ export function useCallbackOnChange(value, callback, shouldTrigger = true) {
26
+ const prevValueRef = useRef(undefined);
27
+ useEffect(() => {
28
+ if (!shouldTrigger) {
29
+ return;
30
+ }
31
+ if (prevValueRef.current !== value) {
32
+ prevValueRef.current = value;
33
+ callback?.(value);
34
+ }
35
+ }, [value, callback, shouldTrigger]);
36
+ }
37
+ //# sourceMappingURL=useCallbackOnChange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCallbackOnChange.js","sourceRoot":"","sources":["../../../../src/next/hooks/utils/useCallbackOnChange.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,mBAAmB,CAC/B,KAAQ,EACR,QAA0C,EAC1C,gBAAyB,IAAI;IAE7B,MAAM,YAAY,GAAG,MAAM,CAAgB,SAAS,CAAC,CAAC;IAEtD,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,CAAC,aAAa,EAAE,CAAC;YACjB,OAAO;QACX,CAAC;QAED,IAAI,YAAY,CAAC,OAAO,KAAK,KAAK,EAAE,CAAC;YACjC,YAAY,CAAC,OAAO,GAAG,KAAK,CAAC;YAC7B,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;AACzC,CAAC"}
@@ -1,9 +1,29 @@
1
- export { GeoPushpinChartNext, GeoPushpinChartNextImplementation } from "./GeoPushpinChartNext.js";
2
- export type { IGeoPushpinChartNextBaseProps, IGeoPushpinChartNextLocationProps, IGeoPushpinChartNextLatitudeLongitudeProps, IGeoPushpinChartNextProps, isGeoPushpinChartNextLocationProps, isGeoPushpinChartNextLatitudeLongitudeProps, } from "./types/public.js";
3
- export type { ICoreGeoPushpinChartNextProps } from "./types/internal.js";
4
- export type { IGeoPushpinChartNextConfig, IGeoConfigViewportNext, IGeoConfigViewportAreaNext, IGeoPointsConfigNext, PushpinSizeOptionNext, IGeoLegendConfigNext, } from "./types/config.js";
5
- export { GeoAreaChart, GeoAreaChartImplementation } from "./GeoAreaChart.js";
6
- export type { IGeoAreaChartBaseProps, IGeoAreaChartProps } from "./types/areaPublic.js";
7
- export type { ICoreGeoAreaChartProps } from "./types/areaInternal.js";
8
- export type { IGeoAreaChartConfig, IGeoAreasConfig } from "./types/areaConfig.js";
1
+ export { GeoPushpinChartNext } from "./GeoPushpinChartNext.js";
2
+ export { PUSHPIN_LAYER_ID } from "./GeoPushpinChartNext.js";
3
+ export type { IGeoPushpinChartNextBaseProps, IGeoPushpinChartNextProps, } from "./types/props/pushpinChart/public.js";
4
+ export type { ICoreGeoPushpinChartNextProps } from "./types/props/pushpinChart/internal.js";
5
+ export type { IGeoPushpinChartNextConfig } from "./types/config/pushpinChart.js";
6
+ export type { IGeoConfigViewportNext, IGeoConfigViewportAreaNext } from "./types/config/viewport.js";
7
+ export { isValidViewportArea, VALID_VIEWPORT_AREAS } from "./types/config/viewport.js";
8
+ export type { IGeoPointsConfigNext, PushpinSizeOptionNext } from "./types/config/points.js";
9
+ export { isValidPushpinSizeOption, VALID_PUSHPIN_SIZE_OPTIONS } from "./types/config/points.js";
10
+ export type { IGeoLegendConfigNext } from "./types/config/legend.js";
11
+ export { GeoAreaChart } from "./GeoAreaChart.js";
12
+ export { AREA_LAYER_ID } from "./GeoAreaChart.js";
13
+ export type { IGeoAreaChartBaseProps, IGeoAreaChartProps } from "./types/props/areaChart/public.js";
14
+ export type { ICoreGeoAreaChartProps } from "./types/props/areaChart/internal.js";
15
+ export type { IGeoAreaChartConfig } from "./types/config/areaChart.js";
16
+ export type { IGeoAreasConfig } from "./types/config/areas.js";
17
+ export { GeoChartNext, GeoChartNextInternal } from "./GeoChartNext.js";
18
+ export type { IGeoChartNextProps } from "./types/props/geoChartNext/public.js";
19
+ export type { IGeoChartNextConfig } from "./types/config/unified.js";
20
+ export type { IGeoLayer, IGeoLayerPushpin, IGeoLayerArea, GeoLayerType } from "./types/layers/index.js";
21
+ export { isGeoLayerPushpin, isGeoLayerArea } from "./types/layers/index.js";
22
+ export { insightLayerToGeoLayer, insightLayersToGeoLayers, GEO_LAYER_TYPES, } from "./utils/layerConversion.js";
23
+ export { buildLayerExecution } from "./layers/execution/buildLayerExecution.js";
24
+ export { createPushpinLayer } from "./layers/pushpin/layerFactory.js";
25
+ export { createAreaLayer } from "./layers/area/layerFactory.js";
26
+ export { GEO_CHART_DEFAULTS } from "./constants/defaults.js";
27
+ export type { IGeoChartDefaults } from "./constants/defaults.js";
28
+ export type { CenterPositionChangedCallback, ZoomChangedCallback } from "./types/common/callbacks.js";
9
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/next/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAClG,YAAY,EACR,6BAA6B,EAC7B,iCAAiC,EACjC,0CAA0C,EAC1C,yBAAyB,EACzB,kCAAkC,EAClC,2CAA2C,GAC9C,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AACzE,YAAY,EACR,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,GACvB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC7E,YAAY,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACxF,YAAY,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACtE,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/next/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EACR,6BAA6B,EAC7B,yBAAyB,GAC5B,MAAM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AAEhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,YAAY,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC"}
package/esm/next/index.js CHANGED
@@ -1,4 +1,15 @@
1
1
  // (C) 2025 GoodData Corporation
2
- export { GeoPushpinChartNext, GeoPushpinChartNextImplementation } from "./GeoPushpinChartNext.js";
3
- export { GeoAreaChart, GeoAreaChartImplementation } from "./GeoAreaChart.js";
2
+ export { GeoPushpinChartNext } from "./GeoPushpinChartNext.js";
3
+ export { PUSHPIN_LAYER_ID } from "./GeoPushpinChartNext.js";
4
+ export { isValidViewportArea, VALID_VIEWPORT_AREAS } from "./types/config/viewport.js";
5
+ export { isValidPushpinSizeOption, VALID_PUSHPIN_SIZE_OPTIONS } from "./types/config/points.js";
6
+ export { GeoAreaChart } from "./GeoAreaChart.js";
7
+ export { AREA_LAYER_ID } from "./GeoAreaChart.js";
8
+ export { GeoChartNext, GeoChartNextInternal } from "./GeoChartNext.js";
9
+ export { isGeoLayerPushpin, isGeoLayerArea } from "./types/layers/index.js";
10
+ export { insightLayerToGeoLayer, insightLayersToGeoLayers, GEO_LAYER_TYPES, } from "./utils/layerConversion.js";
11
+ export { buildLayerExecution } from "./layers/execution/buildLayerExecution.js";
12
+ export { createPushpinLayer } from "./layers/pushpin/layerFactory.js";
13
+ export { createAreaLayer } from "./layers/area/layerFactory.js";
14
+ export { GEO_CHART_DEFAULTS } from "./constants/defaults.js";
4
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/next/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,mBAAmB,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAmBlG,OAAO,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/next/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQ5D,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvF,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAGhG,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAMlD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAIvE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE5E,OAAO,EACH,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,GAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { IGeoLayerArea } from "../../types/layers/index.js";
2
+ import { IAreaLayerOutput, IGeoLayerAdapter } from "../registry/adapterTypes.js";
3
+ export declare const areaAdapter: IGeoLayerAdapter<IGeoLayerArea, IAreaLayerOutput>;
4
+ //# sourceMappingURL=adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/next/layers/area/adapter.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAK5D,OAAO,EAAE,gBAAgB,EAAsB,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAqGrG,eAAO,MAAM,WAAW,EAAE,gBAAgB,CAAC,aAAa,EAAE,gBAAgB,CAiFzE,CAAC"}
@@ -0,0 +1,160 @@
1
+ // (C) 2025 GoodData Corporation
2
+ import { attributeDisplayFormRef, isIdentifierRef, newBucket, } from "@gooddata/sdk-model";
3
+ import { BucketNames } from "@gooddata/sdk-ui";
4
+ import { deriveCollectionBoundingBox } from "./boundingBox.js";
5
+ import { getAreaColorStrategy } from "./coloring/colorStrategy.js";
6
+ import { transformAreaData } from "./data/transformation.js";
7
+ import { getAreaLayerIds, removeAreaLayer, syncAreaLayerToMap } from "./operations.js";
8
+ import { createAreaDataSource } from "./source.js";
9
+ import { createAreaTooltipConfig } from "./tooltip/tooltipManagement.js";
10
+ import { bboxToViewport } from "../../map/viewport/viewportCalculation.js";
11
+ import { getLocationCollectionMetadata } from "../../utils/geoCollection.js";
12
+ import { getGeoHeaderStrings } from "../../utils/geoHeaders.js";
13
+ import { computeLegend } from "../common/computeLegend.js";
14
+ import { getGeoChartDimensions } from "../common/dimensions.js";
15
+ const COLLECTION_OVERRIDES = {
16
+ region: { collectionId: "regions" },
17
+ };
18
+ function normalizeCollectionId(collectionId) {
19
+ return COLLECTION_OVERRIDES[collectionId]?.collectionId ?? collectionId;
20
+ }
21
+ function createExecution(layer, context) {
22
+ const { backend, workspace, config, execConfig } = context;
23
+ const { area, color, segmentBy, filters = [], sortBy = [] } = layer;
24
+ const { tooltipText } = config ?? {};
25
+ const buckets = [];
26
+ if (area) {
27
+ buckets.push(newBucket(BucketNames.AREA, area));
28
+ }
29
+ if (color) {
30
+ buckets.push(newBucket(BucketNames.COLOR, color));
31
+ }
32
+ if (segmentBy) {
33
+ buckets.push(newBucket(BucketNames.SEGMENT, segmentBy));
34
+ }
35
+ if (tooltipText) {
36
+ buckets.push(newBucket(BucketNames.TOOLTIP_TEXT, tooltipText));
37
+ }
38
+ let execution = backend
39
+ .workspace(workspace)
40
+ .execution()
41
+ .forBuckets(buckets, filters)
42
+ .withSorting(...sortBy)
43
+ .withDimensions(getGeoChartDimensions);
44
+ if (execConfig) {
45
+ execution = execution.withExecConfig(execConfig);
46
+ }
47
+ return execution;
48
+ }
49
+ async function resolveCollectionMetadata(dataView, areaAttribute, context) {
50
+ // First try to get metadata from execution result
51
+ const metadataFromExecution = getLocationCollectionMetadata(dataView);
52
+ if (metadataFromExecution) {
53
+ return {
54
+ ...metadataFromExecution,
55
+ collectionId: normalizeCollectionId(metadataFromExecution.collectionId),
56
+ };
57
+ }
58
+ // Fallback: fetch from display form
59
+ if (!areaAttribute) {
60
+ return undefined;
61
+ }
62
+ const displayFormRef = attributeDisplayFormRef(areaAttribute);
63
+ if (!isIdentifierRef(displayFormRef)) {
64
+ return undefined;
65
+ }
66
+ try {
67
+ const displayForm = await context.backend
68
+ .workspace(context.workspace)
69
+ .attributes()
70
+ .getAttributeDisplayForm(displayFormRef);
71
+ const geoAreaConfig = displayForm.geoAreaConfig;
72
+ if (geoAreaConfig?.collectionId) {
73
+ return {
74
+ collectionId: normalizeCollectionId(geoAreaConfig.collectionId),
75
+ };
76
+ }
77
+ }
78
+ catch {
79
+ // Failed to fetch display form metadata
80
+ }
81
+ return undefined;
82
+ }
83
+ async function fetchAreaFeatures(dataView, areaAttribute, metadata) {
84
+ try {
85
+ const result = await dataView.getCollectionItemsForAttribute(areaAttribute, {
86
+ collectionId: metadata.collectionId,
87
+ });
88
+ return result?.features ?? [];
89
+ }
90
+ catch {
91
+ return [];
92
+ }
93
+ }
94
+ export const areaAdapter = {
95
+ type: "area",
96
+ buildExecution(layer, context) {
97
+ return createExecution(layer, context);
98
+ },
99
+ async prepareLayer(layer, dataView, context) {
100
+ if (!context.intl) {
101
+ throw new Error("prepareLayer requires intl in adapter context");
102
+ }
103
+ const { emptyHeaderString, nullHeaderString } = getGeoHeaderStrings(context.intl);
104
+ const geoData = transformAreaData(dataView, emptyHeaderString, nullHeaderString);
105
+ if (!geoData?.area) {
106
+ return null;
107
+ }
108
+ const { colorPalette = [], colorMapping = [] } = context;
109
+ const colorStrategy = getAreaColorStrategy(colorPalette, colorMapping, geoData, dataView);
110
+ // Resolve collection metadata
111
+ const metadata = await resolveCollectionMetadata(dataView, layer.area, context);
112
+ // Fetch boundary features if we have metadata
113
+ let boundaryFeatures = [];
114
+ if (metadata && layer.area) {
115
+ boundaryFeatures = await fetchAreaFeatures(dataView, layer.area, metadata);
116
+ }
117
+ // Get area-specific config with defaults
118
+ const areaConfig = {
119
+ ...context.config,
120
+ };
121
+ // Create complete source with all features and styling
122
+ // Boundaries are passed directly - no need to store in geoData
123
+ const source = createAreaDataSource({
124
+ geoData,
125
+ colorStrategy,
126
+ config: areaConfig,
127
+ features: boundaryFeatures,
128
+ });
129
+ const legend = computeLegend(geoData, colorStrategy, {
130
+ layerType: "area",
131
+ hasSizeData: false,
132
+ });
133
+ // Calculate initial viewport from boundary features
134
+ const bbox = deriveCollectionBoundingBox(boundaryFeatures);
135
+ const initialViewport = bboxToViewport(bbox);
136
+ return { source, legend, geoData, colorStrategy, initialViewport };
137
+ },
138
+ syncToMap(layer, map, output, context) {
139
+ if (!output.geoData) {
140
+ removeAreaLayer(map, layer.id);
141
+ return;
142
+ }
143
+ const config = context.config ?? {};
144
+ // Use pre-computed source from output - no transformation needed
145
+ syncAreaLayerToMap(map, layer.id, output.source, config);
146
+ },
147
+ removeFromMap(layer, map) {
148
+ removeAreaLayer(map, layer.id);
149
+ },
150
+ getTooltipConfig(layer, _output, context, { tooltip, drillablePredicates }) {
151
+ if (!tooltip || !context.intl) {
152
+ return undefined;
153
+ }
154
+ const config = context.config ?? {};
155
+ const ids = getAreaLayerIds(layer.id);
156
+ const layerIds = [ids.fillLayerId, ids.outlineLayerId];
157
+ return createAreaTooltipConfig(tooltip, config, drillablePredicates, context.intl, layerIds);
158
+ },
159
+ };
160
+ //# sourceMappingURL=adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../src/next/layers/area/adapter.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAGhC,OAAO,EAGH,uBAAuB,EACvB,eAAe,EACf,SAAS,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAG3E,OAAO,EAA0B,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AACrG,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,oBAAoB,GAA8C;IACpE,MAAM,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE;CACtC,CAAC;AAEF,SAAS,qBAAqB,CAAC,YAAoB;IAC/C,OAAO,oBAAoB,CAAC,YAAY,CAAC,EAAE,YAAY,IAAI,YAAY,CAAC;AAC5E,CAAC;AAED,SAAS,eAAe,CAAC,KAAoB,EAAE,OAA2B;IACtE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,G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AAG,CAAC,WAAW,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;QAEvD,OAAO,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACjG,CAAC;CACJ,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { IGeoJsonFeature } from "@gooddata/sdk-model";
2
+ type NormalizedBBox = [number, number, number, number];
2
3
  /**
3
4
  * Resolves a bounding box for geo collection features.
4
5
  *
@@ -13,5 +14,6 @@ import { IGeoJsonFeature } from "@gooddata/sdk-model";
13
14
  *
14
15
  * @internal
15
16
  */
16
- export declare function deriveCollectionBoundingBox(features: IGeoJsonFeature[] | undefined, fallback?: number[]): number[] | undefined;
17
- //# sourceMappingURL=geoCollectionBoundingBox.d.ts.map
17
+ export declare function deriveCollectionBoundingBox(features: IGeoJsonFeature[] | undefined, fallback?: GeoJSON.BBox): NormalizedBBox | undefined;
18
+ export {};
19
+ //# sourceMappingURL=boundingBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boundingBox.d.ts","sourceRoot":"","sources":["../../../../src/next/layers/area/boundingBox.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAItD,KAAK,cAAc,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAiGvD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACvC,QAAQ,EAAE,eAAe,EAAE,GAAG,SAAS,EACvC,QAAQ,CAAC,EAAE,OAAO,CAAC,IAAI,GACxB,cAAc,GAAG,SAAS,CAkB5B"}
@@ -1,4 +1,8 @@
1
1
  // (C) 2025 GoodData Corporation
2
+ import { isGeoJsonPosition } from "../../utils/guards.js";
3
+ function hasCoordinates(geometry) {
4
+ return geometry.type !== "GeometryCollection";
5
+ }
2
6
  function normalizeBoundingBox(bbox) {
3
7
  if (!bbox || bbox.length < 4) {
4
8
  return undefined;
@@ -8,10 +12,15 @@ function normalizeBoundingBox(bbox) {
8
12
  if (!values.every((value) => Number.isFinite(value))) {
9
13
  return undefined;
10
14
  }
15
+ // After Number.isFinite check, values are guaranteed to be numbers
11
16
  return [minLng, minLat, maxLng, maxLat];
12
17
  }
13
18
  function cloneNormalizedBoundingBox(bbox) {
14
- return bbox ? [...bbox] : undefined;
19
+ if (!bbox) {
20
+ return undefined;
21
+ }
22
+ const cloned = [bbox[0], bbox[1], bbox[2], bbox[3]];
23
+ return cloned;
15
24
  }
16
25
  function mergeNormalizedBoundingBoxes(a, b) {
17
26
  if (!a) {
@@ -26,18 +35,13 @@ function coordsToBoundingBox(value) {
26
35
  if (!Array.isArray(value) || value.length === 0) {
27
36
  return undefined;
28
37
  }
29
- const typed = value;
30
- const looksLikePosition = typed.length >= 2 && typed.every((entry) => typeof entry === "number" && Number.isFinite(entry));
31
- if (looksLikePosition) {
32
- const [lng, lat] = typed;
33
- if (!Number.isFinite(lng) || !Number.isFinite(lat)) {
34
- return undefined;
35
- }
36
- const normalizedLng = lng;
37
- const normalizedLat = lat;
38
- return [normalizedLng, normalizedLat, normalizedLng, normalizedLat];
38
+ // Check if this is a position [lng, lat]
39
+ if (isGeoJsonPosition(value)) {
40
+ const [lng, lat] = value;
41
+ return [lng, lat, lng, lat];
39
42
  }
40
- return typed.reduce((acc, entry) => {
43
+ // Otherwise it's a nested array of coordinates
44
+ return value.reduce((acc, entry) => {
41
45
  const child = coordsToBoundingBox(entry);
42
46
  return mergeNormalizedBoundingBoxes(acc, child);
43
47
  }, undefined);
@@ -52,7 +56,11 @@ function geometryToBoundingBox(geometry) {
52
56
  return mergeNormalizedBoundingBoxes(acc, childBbox);
53
57
  }, undefined);
54
58
  }
55
- return coordsToBoundingBox(geometry.coordinates);
59
+ // Use type guard to narrow geometry to types with coordinates
60
+ if (hasCoordinates(geometry)) {
61
+ return coordsToBoundingBox(geometry.coordinates);
62
+ }
63
+ return undefined;
56
64
  }
57
65
  /**
58
66
  * Resolves a bounding box for geo collection features.
@@ -74,8 +82,7 @@ export function deriveCollectionBoundingBox(features, fallback) {
74
82
  return cloneNormalizedBoundingBox(initial);
75
83
  }
76
84
  const resolved = features.reduce((acc, feature) => {
77
- const featureBbox = normalizeBoundingBox(feature.bbox) ??
78
- geometryToBoundingBox(feature.geometry);
85
+ const featureBbox = normalizeBoundingBox(feature.bbox) ?? geometryToBoundingBox(feature.geometry);
79
86
  if (!featureBbox) {
80
87
  return acc;
81
88
  }
@@ -83,4 +90,4 @@ export function deriveCollectionBoundingBox(features, fallback) {
83
90
  }, initial);
84
91
  return cloneNormalizedBoundingBox(resolved);
85
92
  }
86
- //# sourceMappingURL=geoCollectionBoundingBox.js.map
93
+ //# sourceMappingURL=boundingBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boundingBox.js","sourceRoot":"","sources":["../../../../src/next/layers/area/boundingBox.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAIhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAS1D,SAAS,cAAc,CAAC,QAA0B;IAC9C,OAAO,QAAQ,CAAC,IAAI,KAAK,oBAAoB,CAAC;AAClD,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAmB;IAC7C,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3B,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAC9C,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACnD,OAAO,SAAS,CAAC;IACr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,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAA6B,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QAC1E,MAAM,WAAW,GAAG,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAElG,IAAI,CAAC,WAAW,EAAE,CAAC;YACf,OAAO,GAAG,CAAC;QACf,CAAC;QAED,OAAO,4BAA4B,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IAC1D,CAAC,EAAE,OAAO,CAAC,CAAC;IAEZ,OAAO,0BAA0B,CAAC,QAAQ,CAAC,CAAC;AAChD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { IColorPalette } from "@gooddata/sdk-model";
2
2
  import { DataViewFacade } from "@gooddata/sdk-ui";
3
3
  import { IColorMapping, IColorStrategy } from "@gooddata/sdk-ui-vis-commons";
4
- import { IAreaGeoData } from "../../types/shared.js";
4
+ import { IAreaGeoData } from "../../../types/geoData/area.js";
5
5
  /**
6
6
  * Creates and returns a color strategy for area chart
7
7
  *
@@ -19,4 +19,4 @@ import { IAreaGeoData } from "../../types/shared.js";
19
19
  * @internal
20
20
  */
21
21
  export declare function getAreaColorStrategy(colorPalette: IColorPalette, colorMapping: IColorMapping[], geoData: IAreaGeoData, dv: DataViewFacade): IColorStrategy;
22
- //# sourceMappingURL=areaColorStrategy.d.ts.map
22
+ //# sourceMappingURL=colorStrategy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorStrategy.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/area/coloring/colorStrategy.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgC,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAoB,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAGH,aAAa,EACb,cAAc,EAIjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AA4F9D;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAChC,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,aAAa,EAAE,EAC7B,OAAO,EAAE,YAAY,EACrB,EAAE,EAAE,cAAc,GACnB,cAAc,CAWhB"}
@@ -1,7 +1,7 @@
1
1
  // (C) 2025 GoodData Corporation
2
2
  import { omit } from "lodash-es";
3
3
  import { AttributeColorStrategy, ColorStrategy, getColorFromMapping, isValidMappedColor, } from "@gooddata/sdk-ui-vis-commons";
4
- import { findAreaAttributesInDimension } from "../data/areaTransformation.js";
4
+ import { findAreaAttributesInDimension } from "../data/transformation.js";
5
5
  /**
6
6
  * Color strategy for GeoAreaChart
7
7
  *
@@ -80,4 +80,4 @@ export function getAreaColorStrategy(colorPalette, colorMapping, geoData, dv) {
80
80
  };
81
81
  return new AreaColorStrategy(colorPalette, colorMapping, areaAttributeHeader, segmentByAttribute, dv);
82
82
  }
83
- //# sourceMappingURL=areaColorStrategy.js.map
83
+ //# sourceMappingURL=colorStrategy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorStrategy.js","sourceRoot":"","sources":["../../../../../src/next/layers/area/coloring/colorStrategy.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIjC,OAAO,EACH,sBAAsB,EACtB,aAAa,EAIb,mBAAmB,EACnB,kBAAkB,GACrB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAA8B,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAEtG;;;;;;;;GAQG;AACH,MAAM,iBAAkB,SAAQ,aAAa;IACzC;;;;;;OAMG;IACO,qBAAqB,CAC3B,YAA2B,EAC3B,YAA6B,EAC7B,aAAmC,EACnC,kBAA+C,EAC/C,EAAkB;QAElB,oCAAoC;QACpC,IAAI,kBAAkB,EAA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yB;QAC9C,eAAe,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC;KAChD,CAAC;IAEF,OAAO,IAAI,iBAAiB,CAAC,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAC1G,CAAC"}
@@ -25,4 +25,4 @@ export interface IAreaAreaColor {
25
25
  * @alpha
26
26
  */
27
27
  export declare function getAreaAreaColors(colorData: number[], segmentData: string[], colorStrategy: IColorStrategy | null): IAreaAreaColor[];
28
- //# sourceMappingURL=areaPalette.d.ts.map
28
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/area/coloring/palette.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAM9D;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAYD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,MAAM,EAAE,EACnB,WAAW,EAAE,MAAM,EAAE,EACrB,aAAa,EAAE,cAAc,GAAG,IAAI,GACrC,cAAc,EAAE,CAiBlB"}
@@ -1,12 +1,12 @@
1
1
  // (C) 2025 GoodData Corporation
2
- import { getPushpinColors } from "./palette.js";
3
- const DEFAULT_AREA_COLOR = "#20B2E2";
2
+ import { getPushpinColors } from "../../pushpin/coloring/palette.js";
3
+ import { DEFAULT_AREA_FILL_COLOR } from "../constants.js";
4
4
  function mapPushpinColorsToAreas(pushpinColors) {
5
5
  if (pushpinColors.length === 0) {
6
- return [{ fill: DEFAULT_AREA_COLOR }];
6
+ return [{ fill: DEFAULT_AREA_FILL_COLOR }];
7
7
  }
8
8
  return pushpinColors.map((pushpinColor) => ({
9
- fill: pushpinColor.background ?? DEFAULT_AREA_COLOR,
9
+ fill: pushpinColor.background ?? DEFAULT_AREA_FILL_COLOR,
10
10
  }));
11
11
  }
12
12
  /**
@@ -25,7 +25,7 @@ function mapPushpinColorsToAreas(pushpinColors) {
25
25
  */
26
26
  export function getAreaAreaColors(colorData, segmentData, colorStrategy) {
27
27
  if (!colorStrategy) {
28
- return [{ fill: DEFAULT_AREA_COLOR }];
28
+ return [{ fill: DEFAULT_AREA_FILL_COLOR }];
29
29
  }
30
30
  if (segmentData.length > 0) {
31
31
  // Segment-based coloring should provide a stable color per category.
@@ -36,6 +36,6 @@ export function getAreaAreaColors(colorData, segmentData, colorStrategy) {
36
36
  const pushpinColors = getPushpinColors(colorData, [], colorStrategy);
37
37
  return mapPushpinColorsToAreas(pushpinColors);
38
38
  }
39
- return [{ fill: DEFAULT_AREA_COLOR }];
39
+ return [{ fill: DEFAULT_AREA_FILL_COLOR }];
40
40
  }
41
- //# sourceMappingURL=areaPalette.js.map
41
+ //# sourceMappingURL=palette.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.js","sourceRoot":"","sources":["../../../../../src/next/layers/area/coloring/palette.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAKhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAc1D,SAAS,uBAAuB,CAAC,aAA8B;IAC3D,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;QACxC,IAAI,EAAE,YAAY,CAAC,UAAU,IAAI,uBAAuB;KAC3D,CAAC,CAAC,CAAC;AACR,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,iBAAiB,CAC7B,SAAmB,EACnB,WAAqB,EACrB,aAAoC;IAEpC,IAAI,CAAC,aAAa,EAAE,CAAC;QACjB,OAAO,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzB,qEAAqE;QACrE,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAE,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;QACvE,OAAO,uBAAuB,CAAC,aAAa,CAAC,CAAC;IAClD,CAAC;IAED,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,aAAa,GAAG,gBAAgB,CAAC,SAAS,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC;QACrE,OAAO,uBAAuB,CAAC,aAAa,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAC/C,CAAC"}