@gooddata/sdk-ui-pivot 10.36.0 → 10.37.0

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 (289) hide show
  1. package/esm/impl/cell/cellRenderer.d.ts +2 -1
  2. package/esm/impl/cell/cellRenderer.d.ts.map +1 -1
  3. package/esm/impl/cell/cellRenderer.js.map +1 -1
  4. package/esm/impl/structure/headers/AggregationsSubMenu.d.ts +2 -2
  5. package/esm/impl/structure/headers/AggregationsSubMenu.d.ts.map +1 -1
  6. package/esm/impl/structure/headers/AggregationsSubMenu.js +1 -1
  7. package/esm/impl/structure/headers/AggregationsSubMenu.js.map +1 -1
  8. package/esm/impl/structure/headers/AggregationsSubMenuItems.d.ts +2 -2
  9. package/esm/impl/structure/headers/AggregationsSubMenuItems.d.ts.map +1 -1
  10. package/esm/impl/structure/headers/AggregationsSubMenuItems.js +1 -1
  11. package/esm/impl/structure/headers/AggregationsSubMenuItems.js.map +1 -1
  12. package/esm/next/PivotTableNext.d.ts +6 -5
  13. package/esm/next/PivotTableNext.d.ts.map +1 -1
  14. package/esm/next/PivotTableNext.js +50 -43
  15. package/esm/next/PivotTableNext.js.map +1 -1
  16. package/esm/next/constants/agGrid.d.ts +2 -2
  17. package/esm/next/constants/agGrid.d.ts.map +1 -1
  18. package/esm/next/constants/agGrid.js +5 -16
  19. package/esm/next/constants/agGrid.js.map +1 -1
  20. package/esm/next/constants/internal.d.ts +10 -1
  21. package/esm/next/constants/internal.d.ts.map +1 -1
  22. package/esm/next/constants/internal.js +9 -1
  23. package/esm/next/constants/internal.js.map +1 -1
  24. package/esm/next/context/PivotTablePropsContext.d.ts +25 -0
  25. package/esm/next/context/PivotTablePropsContext.d.ts.map +1 -0
  26. package/esm/next/context/PivotTablePropsContext.js +44 -0
  27. package/esm/next/context/PivotTablePropsContext.js.map +1 -0
  28. package/esm/next/features/columnDefs/agGridColumnDefsApi.d.ts +8 -0
  29. package/esm/next/features/columnDefs/agGridColumnDefsApi.d.ts.map +1 -0
  30. package/esm/next/features/columnDefs/agGridColumnDefsApi.js +8 -0
  31. package/esm/next/features/columnDefs/agGridColumnDefsApi.js.map +1 -0
  32. package/esm/next/features/columnDefs/columnDefinitionToColDef.d.ts +8 -0
  33. package/esm/next/features/columnDefs/columnDefinitionToColDef.d.ts.map +1 -0
  34. package/esm/next/features/columnDefs/columnDefinitionToColDef.js +52 -0
  35. package/esm/next/features/columnDefs/columnDefinitionToColDef.js.map +1 -0
  36. package/esm/next/features/columnDefs/columnDefinitionToColId.d.ts +11 -0
  37. package/esm/next/features/columnDefs/columnDefinitionToColId.d.ts.map +1 -0
  38. package/esm/next/features/columnDefs/columnDefinitionToColId.js +71 -0
  39. package/esm/next/features/columnDefs/columnDefinitionToColId.js.map +1 -0
  40. package/esm/next/features/columnDefs/columnScopeToColumnLocators.d.ts +7 -0
  41. package/esm/next/features/columnDefs/columnScopeToColumnLocators.d.ts.map +1 -0
  42. package/esm/next/features/columnDefs/columnScopeToColumnLocators.js +31 -0
  43. package/esm/next/features/columnDefs/columnScopeToColumnLocators.js.map +1 -0
  44. package/esm/next/features/columnDefs/createAttributeColumnDef.d.ts +7 -0
  45. package/esm/next/features/columnDefs/createAttributeColumnDef.d.ts.map +1 -0
  46. package/esm/next/features/columnDefs/createAttributeColumnDef.js +41 -0
  47. package/esm/next/features/columnDefs/createAttributeColumnDef.js.map +1 -0
  48. package/esm/next/features/columnDefs/createAttributeColumnDefWithTransposition.d.ts +8 -0
  49. package/esm/next/features/columnDefs/createAttributeColumnDefWithTransposition.d.ts.map +1 -0
  50. package/esm/next/features/columnDefs/createAttributeColumnDefWithTransposition.js +23 -0
  51. package/esm/next/features/columnDefs/createAttributeColumnDefWithTransposition.js.map +1 -0
  52. package/esm/next/features/columnDefs/createAttributeTotalColumnDefWithTransposition.d.ts +8 -0
  53. package/esm/next/features/columnDefs/createAttributeTotalColumnDefWithTransposition.d.ts.map +1 -0
  54. package/esm/next/features/columnDefs/createAttributeTotalColumnDefWithTransposition.js +19 -0
  55. package/esm/next/features/columnDefs/createAttributeTotalColumnDefWithTransposition.js.map +1 -0
  56. package/esm/next/features/columnDefs/createColumnDefs.d.ts +10 -0
  57. package/esm/next/features/columnDefs/createColumnDefs.d.ts.map +1 -0
  58. package/esm/next/features/columnDefs/createColumnDefs.js +23 -0
  59. package/esm/next/features/columnDefs/createColumnDefs.js.map +1 -0
  60. package/esm/next/features/columnDefs/createMeasureColumnDef.d.ts +8 -0
  61. package/esm/next/features/columnDefs/createMeasureColumnDef.d.ts.map +1 -0
  62. package/esm/next/features/columnDefs/createMeasureColumnDef.js +25 -0
  63. package/esm/next/features/columnDefs/createMeasureColumnDef.js.map +1 -0
  64. package/esm/next/features/columnDefs/createMeasureGroupHeaderColumnDef.d.ts +7 -0
  65. package/esm/next/features/columnDefs/createMeasureGroupHeaderColumnDef.d.ts.map +1 -0
  66. package/esm/next/features/columnDefs/createMeasureGroupHeaderColumnDef.js +22 -0
  67. package/esm/next/features/columnDefs/createMeasureGroupHeaderColumnDef.js.map +1 -0
  68. package/esm/next/features/columnDefs/createMeasureGroupHeaderColumnDefWithTransposition.d.ts +7 -0
  69. package/esm/next/features/columnDefs/createMeasureGroupHeaderColumnDefWithTransposition.d.ts.map +1 -0
  70. package/esm/next/features/columnDefs/createMeasureGroupHeaderColumnDefWithTransposition.js +18 -0
  71. package/esm/next/features/columnDefs/createMeasureGroupHeaderColumnDefWithTransposition.js.map +1 -0
  72. package/esm/next/features/columnDefs/createMeasureGroupValueColumnDef.d.ts +7 -0
  73. package/esm/next/features/columnDefs/createMeasureGroupValueColumnDef.d.ts.map +1 -0
  74. package/esm/next/features/columnDefs/createMeasureGroupValueColumnDef.js +22 -0
  75. package/esm/next/features/columnDefs/createMeasureGroupValueColumnDef.js.map +1 -0
  76. package/esm/next/features/columnDefs/shared.d.ts +6 -0
  77. package/esm/next/features/columnDefs/shared.d.ts.map +1 -0
  78. package/esm/next/features/columnDefs/shared.js +13 -0
  79. package/esm/next/features/columnDefs/shared.js.map +1 -0
  80. package/esm/next/features/columnDefs/useGetAgGridColumns.d.ts +6 -0
  81. package/esm/next/features/columnDefs/useGetAgGridColumns.d.ts.map +1 -0
  82. package/esm/next/features/columnDefs/useGetAgGridColumns.js +19 -0
  83. package/esm/next/features/columnDefs/useGetAgGridColumns.js.map +1 -0
  84. package/esm/next/features/columnDefs/useUpdateAgGridColumnDefs.d.ts +6 -0
  85. package/esm/next/features/columnDefs/useUpdateAgGridColumnDefs.d.ts.map +1 -0
  86. package/esm/next/features/columnDefs/useUpdateAgGridColumnDefs.js +27 -0
  87. package/esm/next/features/columnDefs/useUpdateAgGridColumnDefs.js.map +1 -0
  88. package/esm/next/features/columnSizing/agGridColumnSizingApi.d.ts +17 -0
  89. package/esm/next/features/columnSizing/agGridColumnSizingApi.d.ts.map +1 -0
  90. package/esm/next/features/columnSizing/agGridColumnSizingApi.js +31 -0
  91. package/esm/next/features/columnSizing/agGridColumnSizingApi.js.map +1 -0
  92. package/esm/next/features/columnSizing/applyColumnWidthToColDef.d.ts +7 -0
  93. package/esm/next/features/columnSizing/applyColumnWidthToColDef.d.ts.map +1 -0
  94. package/esm/next/features/columnSizing/applyColumnWidthToColDef.js +74 -0
  95. package/esm/next/features/columnSizing/applyColumnWidthToColDef.js.map +1 -0
  96. package/esm/next/features/columnSizing/useColumnSizingDefault.d.ts +6 -0
  97. package/esm/next/features/columnSizing/useColumnSizingDefault.d.ts.map +1 -0
  98. package/esm/next/features/columnSizing/useColumnSizingDefault.js +13 -0
  99. package/esm/next/features/columnSizing/useColumnSizingDefault.js.map +1 -0
  100. package/esm/next/features/columnSizing/useColumnSizingForAutoResize.d.ts +6 -0
  101. package/esm/next/features/columnSizing/useColumnSizingForAutoResize.d.ts.map +1 -0
  102. package/esm/next/features/columnSizing/useColumnSizingForAutoResize.js +47 -0
  103. package/esm/next/features/columnSizing/useColumnSizingForAutoResize.js.map +1 -0
  104. package/esm/next/features/columnSizing/useColumnSizingForFullHorizontalSpace.d.ts +6 -0
  105. package/esm/next/features/columnSizing/useColumnSizingForFullHorizontalSpace.d.ts.map +1 -0
  106. package/esm/next/features/columnSizing/useColumnSizingForFullHorizontalSpace.js +51 -0
  107. package/esm/next/features/columnSizing/useColumnSizingForFullHorizontalSpace.js.map +1 -0
  108. package/esm/next/features/columnSizing/useColumnSizingForFullHorizontalSpaceAndAutoResize.d.ts +6 -0
  109. package/esm/next/features/columnSizing/useColumnSizingForFullHorizontalSpaceAndAutoResize.d.ts.map +1 -0
  110. package/esm/next/features/columnSizing/useColumnSizingForFullHorizontalSpaceAndAutoResize.js +52 -0
  111. package/esm/next/features/columnSizing/useColumnSizingForFullHorizontalSpaceAndAutoResize.js.map +1 -0
  112. package/esm/next/features/columnSizing/useColumnSizingProps.d.ts +6 -0
  113. package/esm/next/features/columnSizing/useColumnSizingProps.d.ts.map +1 -0
  114. package/esm/next/features/columnSizing/useColumnSizingProps.js +31 -0
  115. package/esm/next/features/columnSizing/useColumnSizingProps.js.map +1 -0
  116. package/esm/next/features/dataLoading/createServerSideDataSource.d.ts +23 -0
  117. package/esm/next/features/dataLoading/createServerSideDataSource.d.ts.map +1 -0
  118. package/esm/next/features/dataLoading/createServerSideDataSource.js +74 -0
  119. package/esm/next/features/dataLoading/createServerSideDataSource.js.map +1 -0
  120. package/esm/next/features/dataLoading/dataViewToColumnDefs.d.ts +15 -0
  121. package/esm/next/features/dataLoading/dataViewToColumnDefs.d.ts.map +1 -0
  122. package/esm/next/features/dataLoading/dataViewToColumnDefs.js +22 -0
  123. package/esm/next/features/dataLoading/dataViewToColumnDefs.js.map +1 -0
  124. package/esm/next/features/dataLoading/dataViewToRowData.d.ts +17 -0
  125. package/esm/next/features/dataLoading/dataViewToRowData.d.ts.map +1 -0
  126. package/esm/next/features/dataLoading/dataViewToRowData.js +41 -0
  127. package/esm/next/features/dataLoading/dataViewToRowData.js.map +1 -0
  128. package/esm/next/{execution → features/dataLoading}/getExecution.d.ts +1 -1
  129. package/esm/next/features/dataLoading/getExecution.d.ts.map +1 -0
  130. package/esm/next/{execution → features/dataLoading}/getExecution.js +1 -1
  131. package/esm/next/features/dataLoading/getExecution.js.map +1 -0
  132. package/esm/next/features/dataLoading/useInitExecution.d.ts +27 -0
  133. package/esm/next/features/dataLoading/useInitExecution.d.ts.map +1 -0
  134. package/esm/next/features/dataLoading/useInitExecution.js +86 -0
  135. package/esm/next/features/dataLoading/useInitExecution.js.map +1 -0
  136. package/esm/next/features/dataLoading/useServerSideRowModelProps.d.ts +7 -0
  137. package/esm/next/features/dataLoading/useServerSideRowModelProps.d.ts.map +1 -0
  138. package/esm/next/features/dataLoading/useServerSideRowModelProps.js +61 -0
  139. package/esm/next/features/dataLoading/useServerSideRowModelProps.js.map +1 -0
  140. package/esm/next/features/drilling/applyDrillingStylesToColDef.d.ts +7 -0
  141. package/esm/next/features/drilling/applyDrillingStylesToColDef.d.ts.map +1 -0
  142. package/esm/next/features/drilling/applyDrillingStylesToColDef.js +13 -0
  143. package/esm/next/features/drilling/applyDrillingStylesToColDef.js.map +1 -0
  144. package/esm/next/{drill → features/drilling}/getAvailableDrillTargets.d.ts +1 -1
  145. package/esm/next/features/drilling/getAvailableDrillTargets.d.ts.map +1 -0
  146. package/esm/next/{drill → features/drilling}/getAvailableDrillTargets.js +1 -1
  147. package/esm/next/features/drilling/getAvailableDrillTargets.js.map +1 -0
  148. package/esm/next/features/drilling/headerMapping.d.ts.map +1 -0
  149. package/esm/next/features/drilling/headerMapping.js.map +1 -0
  150. package/esm/next/features/drilling/intersection.d.ts +12 -0
  151. package/esm/next/features/drilling/intersection.d.ts.map +1 -0
  152. package/esm/next/{drill → features/drilling}/intersection.js +2 -1
  153. package/esm/next/features/drilling/intersection.js.map +1 -0
  154. package/esm/next/{drill → features/drilling}/isDrillable.d.ts +4 -3
  155. package/esm/next/features/drilling/isDrillable.d.ts.map +1 -0
  156. package/esm/next/{drill → features/drilling}/isDrillable.js +5 -4
  157. package/esm/next/features/drilling/isDrillable.js.map +1 -0
  158. package/esm/next/features/drilling/useDrillingProps.d.ts +8 -0
  159. package/esm/next/features/drilling/useDrillingProps.d.ts.map +1 -0
  160. package/esm/next/{hooks/useDrilling.js → features/drilling/useDrillingProps.js} +22 -13
  161. package/esm/next/features/drilling/useDrillingProps.js.map +1 -0
  162. package/esm/next/features/exports/exports.d.ts +7 -0
  163. package/esm/next/features/exports/exports.d.ts.map +1 -0
  164. package/esm/next/features/exports/exports.js +9 -0
  165. package/esm/next/features/exports/exports.js.map +1 -0
  166. package/esm/next/features/pivoting/agGridPivotingApi.d.ts +9 -0
  167. package/esm/next/features/pivoting/agGridPivotingApi.d.ts.map +1 -0
  168. package/esm/next/features/pivoting/agGridPivotingApi.js +8 -0
  169. package/esm/next/features/pivoting/agGridPivotingApi.js.map +1 -0
  170. package/esm/next/features/pivoting/columnDefsToPivotGroups.d.ts +20 -0
  171. package/esm/next/features/pivoting/columnDefsToPivotGroups.d.ts.map +1 -0
  172. package/esm/next/features/pivoting/columnDefsToPivotGroups.js +64 -0
  173. package/esm/next/features/pivoting/columnDefsToPivotGroups.js.map +1 -0
  174. package/esm/next/features/sorting/agGridSortingApi.d.ts +9 -0
  175. package/esm/next/features/sorting/agGridSortingApi.d.ts.map +1 -0
  176. package/esm/next/features/sorting/agGridSortingApi.js +15 -0
  177. package/esm/next/features/sorting/agGridSortingApi.js.map +1 -0
  178. package/esm/next/features/sorting/applyInitialSortToColDef.d.ts +7 -0
  179. package/esm/next/features/sorting/applyInitialSortToColDef.d.ts.map +1 -0
  180. package/esm/next/features/sorting/applyInitialSortToColDef.js +12 -0
  181. package/esm/next/features/sorting/applyInitialSortToColDef.js.map +1 -0
  182. package/esm/next/features/sorting/sortModelToSortItems.d.ts +14 -0
  183. package/esm/next/features/sorting/sortModelToSortItems.d.ts.map +1 -0
  184. package/esm/next/features/sorting/sortModelToSortItems.js +82 -0
  185. package/esm/next/features/sorting/sortModelToSortItems.js.map +1 -0
  186. package/esm/next/features/sorting/useSortingProps.d.ts +9 -0
  187. package/esm/next/features/sorting/useSortingProps.d.ts.map +1 -0
  188. package/esm/next/features/sorting/useSortingProps.js +37 -0
  189. package/esm/next/features/sorting/useSortingProps.js.map +1 -0
  190. package/esm/next/features/styling/bem.d.ts +2 -0
  191. package/esm/next/features/styling/bem.d.ts.map +1 -0
  192. package/esm/next/features/styling/bem.js +4 -0
  193. package/esm/next/features/styling/bem.js.map +1 -0
  194. package/esm/next/{styling → features/styling}/cell.d.ts +2 -2
  195. package/esm/next/features/styling/cell.d.ts.map +1 -0
  196. package/esm/next/{styling → features/styling}/cell.js +10 -4
  197. package/esm/next/features/styling/cell.js.map +1 -0
  198. package/esm/next/features/styling/icons.d.ts +4 -0
  199. package/esm/next/features/styling/icons.d.ts.map +1 -0
  200. package/esm/next/features/styling/icons.js +19 -0
  201. package/esm/next/features/styling/icons.js.map +1 -0
  202. package/esm/next/features/styling/useThemeProps.d.ts +3 -0
  203. package/esm/next/features/styling/useThemeProps.d.ts.map +1 -0
  204. package/esm/next/features/styling/useThemeProps.js +29 -0
  205. package/esm/next/features/styling/useThemeProps.js.map +1 -0
  206. package/esm/next/features/textWrapping/agGridTextWrappingOptions.d.ts +10 -0
  207. package/esm/next/features/textWrapping/agGridTextWrappingOptions.d.ts.map +1 -0
  208. package/esm/next/features/textWrapping/agGridTextWrappingOptions.js +35 -0
  209. package/esm/next/features/textWrapping/agGridTextWrappingOptions.js.map +1 -0
  210. package/esm/next/features/textWrapping/useTextWrappingProps.d.ts +6 -0
  211. package/esm/next/features/textWrapping/useTextWrappingProps.d.ts.map +1 -0
  212. package/esm/next/features/textWrapping/useTextWrappingProps.js +21 -0
  213. package/esm/next/features/textWrapping/useTextWrappingProps.js.map +1 -0
  214. package/esm/next/features/totals/agGridTotalsApi.d.ts +9 -0
  215. package/esm/next/features/totals/agGridTotalsApi.d.ts.map +1 -0
  216. package/esm/next/features/totals/agGridTotalsApi.js +8 -0
  217. package/esm/next/features/totals/agGridTotalsApi.js.map +1 -0
  218. package/esm/next/index.d.ts +6 -2
  219. package/esm/next/index.d.ts.map +1 -1
  220. package/esm/next/index.js +3 -1
  221. package/esm/next/index.js.map +1 -1
  222. package/esm/next/types/agGrid.d.ts +34 -0
  223. package/esm/next/types/agGrid.d.ts.map +1 -0
  224. package/esm/next/types/agGrid.js +2 -0
  225. package/esm/next/types/agGrid.js.map +1 -0
  226. package/esm/next/types/internal.d.ts +29 -0
  227. package/esm/next/types/internal.d.ts.map +1 -1
  228. package/esm/next/types/public.d.ts +21 -21
  229. package/esm/next/types/public.d.ts.map +1 -1
  230. package/esm/next/types/sizing.d.ts +369 -0
  231. package/esm/next/types/sizing.d.ts.map +1 -0
  232. package/esm/next/types/sizing.js +255 -0
  233. package/esm/next/types/sizing.js.map +1 -0
  234. package/package.json +10 -10
  235. package/styles/css/main.css +23 -11
  236. package/styles/css/main.css.map +1 -1
  237. package/styles/css/pivotTableNext.css +23 -11
  238. package/styles/css/pivotTableNext.css.map +1 -1
  239. package/styles/scss/pivotTableNext.scss +29 -7
  240. package/esm/next/dataSource/createServerSideDataSource.d.ts +0 -21
  241. package/esm/next/dataSource/createServerSideDataSource.d.ts.map +0 -1
  242. package/esm/next/dataSource/createServerSideDataSource.js +0 -59
  243. package/esm/next/dataSource/createServerSideDataSource.js.map +0 -1
  244. package/esm/next/drill/getAvailableDrillTargets.d.ts.map +0 -1
  245. package/esm/next/drill/getAvailableDrillTargets.js.map +0 -1
  246. package/esm/next/drill/headerMapping.d.ts.map +0 -1
  247. package/esm/next/drill/headerMapping.js.map +0 -1
  248. package/esm/next/drill/intersection.d.ts +0 -12
  249. package/esm/next/drill/intersection.d.ts.map +0 -1
  250. package/esm/next/drill/intersection.js.map +0 -1
  251. package/esm/next/drill/isDrillable.d.ts.map +0 -1
  252. package/esm/next/drill/isDrillable.js.map +0 -1
  253. package/esm/next/execution/getExecution.d.ts.map +0 -1
  254. package/esm/next/execution/getExecution.js.map +0 -1
  255. package/esm/next/hooks/useDrilling.d.ts +0 -18
  256. package/esm/next/hooks/useDrilling.d.ts.map +0 -1
  257. package/esm/next/hooks/useDrilling.js.map +0 -1
  258. package/esm/next/hooks/useInitExecution.d.ts +0 -28
  259. package/esm/next/hooks/useInitExecution.d.ts.map +0 -1
  260. package/esm/next/hooks/useInitExecution.js +0 -84
  261. package/esm/next/hooks/useInitExecution.js.map +0 -1
  262. package/esm/next/hooks/useServerSideRowModel.d.ts +0 -8
  263. package/esm/next/hooks/useServerSideRowModel.d.ts.map +0 -1
  264. package/esm/next/hooks/useServerSideRowModel.js +0 -31
  265. package/esm/next/hooks/useServerSideRowModel.js.map +0 -1
  266. package/esm/next/hooks/useSorting.d.ts +0 -18
  267. package/esm/next/hooks/useSorting.d.ts.map +0 -1
  268. package/esm/next/hooks/useSorting.js +0 -34
  269. package/esm/next/hooks/useSorting.js.map +0 -1
  270. package/esm/next/mapProps/mapDataViewToAgGridRowData.d.ts +0 -27
  271. package/esm/next/mapProps/mapDataViewToAgGridRowData.d.ts.map +0 -1
  272. package/esm/next/mapProps/mapDataViewToAgGridRowData.js +0 -116
  273. package/esm/next/mapProps/mapDataViewToAgGridRowData.js.map +0 -1
  274. package/esm/next/mapProps/mapDimensionsToColDefs.d.ts +0 -6
  275. package/esm/next/mapProps/mapDimensionsToColDefs.d.ts.map +0 -1
  276. package/esm/next/mapProps/mapDimensionsToColDefs.js +0 -144
  277. package/esm/next/mapProps/mapDimensionsToColDefs.js.map +0 -1
  278. package/esm/next/mapProps/mapSortModelToSortItems.d.ts +0 -30
  279. package/esm/next/mapProps/mapSortModelToSortItems.d.ts.map +0 -1
  280. package/esm/next/mapProps/mapSortModelToSortItems.js +0 -133
  281. package/esm/next/mapProps/mapSortModelToSortItems.js.map +0 -1
  282. package/esm/next/mapProps/props.d.ts +0 -57
  283. package/esm/next/mapProps/props.d.ts.map +0 -1
  284. package/esm/next/mapProps/props.js +0 -95
  285. package/esm/next/mapProps/props.js.map +0 -1
  286. package/esm/next/styling/cell.d.ts.map +0 -1
  287. package/esm/next/styling/cell.js.map +0 -1
  288. /package/esm/next/{drill → features/drilling}/headerMapping.d.ts +0 -0
  289. /package/esm/next/{drill → features/drilling}/headerMapping.js +0 -0
@@ -0,0 +1,9 @@
1
+ import { createExportFunction } from "@gooddata/sdk-ui";
2
+ /**
3
+ * Handles export ready functionality by creating export function
4
+ */
5
+ export const handleExportReady = (result, onExportReady) => {
6
+ const exportFunction = createExportFunction(result, undefined);
7
+ onExportReady(exportFunction);
8
+ };
9
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../src/next/features/exports/exports.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEvE;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAAwB,EAAE,aAA4B,EAAQ,EAAE;IAC9F,MAAM,cAAc,GAAG,oBAAoB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC/D,aAAa,CAAC,cAAc,CAAC,CAAC;AAClC,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ColDef, ColGroupDef, GridApi } from "ag-grid-enterprise";
2
+ import { AgGridRowData } from "../../types/internal.js";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare function agGridSetPivotResultColumns(options: {
7
+ colDefs: (ColDef | ColGroupDef)[];
8
+ }, api: GridApi<AgGridRowData>): void;
9
+ //# sourceMappingURL=agGridPivotingApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agGridPivotingApi.d.ts","sourceRoot":"","sources":["../../../../src/next/features/pivoting/agGridPivotingApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;GAEG;AACH,wBAAgB,2BAA2B,CACvC,OAAO,EAAE;IAAE,OAAO,EAAE,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,CAAA;CAAE,EAC9C,GAAG,EAAE,OAAO,CAAC,aAAa,CAAC,QAI9B"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export function agGridSetPivotResultColumns(options, api) {
5
+ const { colDefs } = options;
6
+ api.setPivotResultColumns(colDefs);
7
+ }
8
+ //# sourceMappingURL=agGridPivotingApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agGridPivotingApi.js","sourceRoot":"","sources":["../../../../src/next/features/pivoting/agGridPivotingApi.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,UAAU,2BAA2B,CACvC,OAA8C,EAC9C,GAA2B;IAE3B,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC5B,GAAG,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { ColumnHeadersPosition } from "../../types/public.js";
2
+ import { AgGridColumnDef, AgGridColumnGroupDef } from "../../types/agGrid.js";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare function columnDefsToPivotGroups(columnDefinitions: AgGridColumnDef[], isTransposed: boolean, columnHeadersPosition: ColumnHeadersPosition): (AgGridColumnDef | AgGridColumnGroupDef)[];
7
+ /**
8
+ * @internal
9
+ */
10
+ interface IColumnDefinitionWithPath {
11
+ path: string[];
12
+ columnDef: AgGridColumnDef;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare function createColumnDefWithPath(columnDef: AgGridColumnDef, isTransposed: boolean, columnHeadersPosition: ColumnHeadersPosition): IColumnDefinitionWithPath;
18
+ export declare function createColumnDefsWithPaths(columnDefs: AgGridColumnDef[], isTransposed: boolean, columnHeadersPosition: ColumnHeadersPosition): IColumnDefinitionWithPath[];
19
+ export {};
20
+ //# sourceMappingURL=columnDefsToPivotGroups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columnDefsToPivotGroups.d.ts","sourceRoot":"","sources":["../../../../src/next/features/pivoting/columnDefsToPivotGroups.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAM9D,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE9E;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,iBAAiB,EAAE,eAAe,EAAE,EACpC,YAAY,EAAE,OAAO,EACrB,qBAAqB,EAAE,qBAAqB,GAC7C,CAAC,eAAe,GAAG,oBAAoB,CAAC,EAAE,CA2D5C;AAED;;GAEG;AACH,UAAU,yBAAyB;IAC/B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,eAAe,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,SAAS,EAAE,eAAe,EAC1B,YAAY,EAAE,OAAO,EACrB,qBAAqB,EAAE,qBAAqB,GAC7C,yBAAyB,CAW3B;AAED,wBAAgB,yBAAyB,CACrC,UAAU,EAAE,eAAe,EAAE,EAC7B,YAAY,EAAE,OAAO,EACrB,qBAAqB,EAAE,qBAAqB,GAC7C,yBAAyB,EAAE,CAI7B"}
@@ -0,0 +1,64 @@
1
+ import { AG_GRID_PIVOT_RESULT_FIELD_SEPARATOR } from "../../constants/agGrid.js";
2
+ import { columnDefinitionToColId, columnDefinitionToColumnPath, } from "../columnDefs/columnDefinitionToColId.js";
3
+ /**
4
+ * @internal
5
+ */
6
+ export function columnDefsToPivotGroups(columnDefinitions, isTransposed, columnHeadersPosition) {
7
+ const columnsDefinitionWithPaths = createColumnDefsWithPaths(columnDefinitions, isTransposed, columnHeadersPosition);
8
+ const root = [];
9
+ for (const item of columnsDefinitionWithPaths) {
10
+ let currentLevel = root;
11
+ const pathParts = [];
12
+ for (let i = 0; i < item.path.length; i++) {
13
+ const part = item.path[i];
14
+ const isLastPart = i === item.path.length - 1;
15
+ pathParts.push(part);
16
+ if (isLastPart) {
17
+ // For leaf nodes, find by field
18
+ const field = columnDefinitionToColId(item.columnDef.context.columnDefinition, isTransposed, columnHeadersPosition);
19
+ const existingNode = currentLevel.find((node) => {
20
+ return "field" in node && node.field === field;
21
+ });
22
+ if (!existingNode) {
23
+ currentLevel.push(item.columnDef);
24
+ }
25
+ }
26
+ else {
27
+ // For intermediate nodes, find by groupId
28
+ const groupId = pathParts.join(AG_GRID_PIVOT_RESULT_FIELD_SEPARATOR);
29
+ let existingNode = currentLevel.find((node) => {
30
+ return "groupId" in node && node.groupId === groupId;
31
+ });
32
+ if (!existingNode) {
33
+ // Create intermediate node (ColGroupDef)
34
+ const colGroupDef = {
35
+ groupId,
36
+ headerName: part,
37
+ children: [],
38
+ };
39
+ currentLevel.push(colGroupDef);
40
+ existingNode = colGroupDef;
41
+ }
42
+ // Move to next level (children)
43
+ if ("children" in existingNode && existingNode.children) {
44
+ currentLevel = existingNode.children;
45
+ }
46
+ }
47
+ }
48
+ }
49
+ return root;
50
+ }
51
+ /**
52
+ * @internal
53
+ */
54
+ export function createColumnDefWithPath(columnDef, isTransposed, columnHeadersPosition) {
55
+ const path = columnDefinitionToColumnPath(columnDef.context.columnDefinition, isTransposed, columnHeadersPosition);
56
+ return {
57
+ path,
58
+ columnDef,
59
+ };
60
+ }
61
+ export function createColumnDefsWithPaths(columnDefs, isTransposed, columnHeadersPosition) {
62
+ return columnDefs.map((columnDef) => createColumnDefWithPath(columnDef, isTransposed, columnHeadersPosition));
63
+ }
64
+ //# sourceMappingURL=columnDefsToPivotGroups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columnDefsToPivotGroups.js","sourceRoot":"","sources":["../../../../src/next/features/pivoting/columnDefsToPivotGroups.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ import { SortModelItem } from "ag-grid-enterprise";
2
+ import { AgGridApi } from "../../types/agGrid.js";
3
+ /**
4
+ * Get the current sort model from the grid API
5
+ *
6
+ * @alpha
7
+ */
8
+ export declare function getSortModel(gridApi: AgGridApi): SortModelItem[];
9
+ //# sourceMappingURL=agGridSortingApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agGridSortingApi.d.ts","sourceRoot":"","sources":["../../../../src/next/features/sorting/agGridSortingApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,GAAG,aAAa,EAAE,CAQhE"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Get the current sort model from the grid API
3
+ *
4
+ * @alpha
5
+ */
6
+ export function getSortModel(gridApi) {
7
+ return gridApi
8
+ .getColumnState()
9
+ .filter((col) => col.sort !== null)
10
+ .map((col) => ({
11
+ colId: col.colId,
12
+ sort: col.sort,
13
+ }));
14
+ }
15
+ //# sourceMappingURL=agGridSortingApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agGridSortingApi.js","sourceRoot":"","sources":["../../../../src/next/features/sorting/agGridSortingApi.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,OAAkB;IAC3C,OAAO,OAAO;SACT,cAAc,EAAE;SAChB,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC;SAClC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACX,KAAK,EAAE,GAAG,CAAC,KAAM;QACjB,IAAI,EAAE,GAAG,CAAC,IAAK;KAClB,CAAC,CAAC,CAAC;AACZ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ISortItem } from "@gooddata/sdk-model";
2
+ import { AgGridColumnDef } from "../../types/agGrid.js";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare function applyInitialSortToColDef(colDef: AgGridColumnDef, sortItem: ISortItem): AgGridColumnDef;
7
+ //# sourceMappingURL=applyInitialSortToColDef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applyInitialSortToColDef.d.ts","sourceRoot":"","sources":["../../../../src/next/features/sorting/applyInitialSortToColDef.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAiB,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,GAAG,eAAe,CAKtG"}
@@ -0,0 +1,12 @@
1
+ // (C) 2025 GoodData Corporation
2
+ import { sortDirection } from "@gooddata/sdk-model";
3
+ /**
4
+ * @internal
5
+ */
6
+ export function applyInitialSortToColDef(colDef, sortItem) {
7
+ return {
8
+ ...colDef,
9
+ sort: sortDirection(sortItem),
10
+ };
11
+ }
12
+ //# sourceMappingURL=applyInitialSortToColDef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applyInitialSortToColDef.js","sourceRoot":"","sources":["../../../../src/next/features/sorting/applyInitialSortToColDef.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAa,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAG/D;;GAEG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAuB,EAAE,QAAmB;IACjF,OAAO;QACH,GAAG,MAAM;QACT,IAAI,EAAE,aAAa,CAAC,QAAQ,CAAC;KAChC,CAAC;AACN,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { SortModelItem } from "ag-grid-enterprise";
2
+ import { ISortItem, SortDirection } from "@gooddata/sdk-model";
3
+ import { ITableColumnDefinition } from "@gooddata/sdk-ui";
4
+ import { ITableColumnDefinitionByColId } from "../../types/internal.js";
5
+ export declare function sortModelToSortItems(sortModel: SortModelItem[], columnDefinitionByColId: ITableColumnDefinitionByColId): ISortItem[];
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare function createSortForColumnDefinition(columnDefinition: ITableColumnDefinition, direction: SortDirection): ISortItem | undefined;
10
+ /**
11
+ * @internal
12
+ */
13
+ export declare function getSortForColumnDefinition(columnDefinition: ITableColumnDefinition, sortBy: ISortItem[]): ISortItem | undefined;
14
+ //# sourceMappingURL=sortModelToSortItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortModelToSortItems.d.ts","sourceRoot":"","sources":["../../../../src/next/features/sorting/sortModelToSortItems.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EACH,SAAS,EACT,aAAa,EAOhB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAyB,MAAM,kBAAkB,CAAC;AAEjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE,wBAAgB,oBAAoB,CAChC,SAAS,EAAE,aAAa,EAAE,EAC1B,uBAAuB,EAAE,6BAA6B,GACvD,SAAS,EAAE,CAab;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CACzC,gBAAgB,EAAE,sBAAsB,EACxC,SAAS,EAAE,aAAa,GACzB,SAAS,GAAG,SAAS,CAuBvB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,gBAAgB,EAAE,sBAAsB,EACxC,MAAM,EAAE,SAAS,EAAE,GACpB,SAAS,GAAG,SAAS,CAyBvB"}
@@ -0,0 +1,82 @@
1
+ import { newAttributeSort, newMeasureSortFromLocators, isAttributeSort, isMeasureSort, newAttributeLocator, } from "@gooddata/sdk-model";
2
+ import isEqual from "lodash/isEqual.js";
3
+ export function sortModelToSortItems(sortModel, columnDefinitionByColId) {
4
+ return sortModel.flatMap((sort) => {
5
+ const columnDefinition = columnDefinitionByColId[sort.colId];
6
+ const columnSort = columnDefinition
7
+ ? createSortForColumnDefinition(columnDefinition, sort.sort)
8
+ : undefined;
9
+ if (columnSort) {
10
+ return [columnSort];
11
+ }
12
+ return [];
13
+ });
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export function createSortForColumnDefinition(columnDefinition, direction) {
19
+ if (columnDefinition.type === "attribute") {
20
+ return newAttributeSort(columnDefinition.attributeDescriptor.attributeHeader.localIdentifier, direction);
21
+ }
22
+ if (columnDefinition.type === "value" ||
23
+ columnDefinition.type === "subtotal" ||
24
+ columnDefinition.type === "grandTotal") {
25
+ const locators = columnScopeToLocators(columnDefinition.columnScope);
26
+ if (locators.length === 0) {
27
+ return undefined;
28
+ }
29
+ return newMeasureSortFromLocators(locators, direction);
30
+ }
31
+ return undefined;
32
+ }
33
+ /**
34
+ * @internal
35
+ */
36
+ export function getSortForColumnDefinition(columnDefinition, sortBy) {
37
+ if (columnDefinition.type === "attribute") {
38
+ return sortBy.find((sort) => isAttributeSort(sort) &&
39
+ sort.attributeSortItem.attributeIdentifier ===
40
+ columnDefinition.attributeDescriptor.attributeHeader.localIdentifier);
41
+ }
42
+ if (columnDefinition.type === "value" ||
43
+ columnDefinition.type === "subtotal" ||
44
+ columnDefinition.type === "grandTotal") {
45
+ const locators = columnScopeToLocators(columnDefinition.columnScope);
46
+ if (locators.length === 0) {
47
+ return undefined;
48
+ }
49
+ return sortBy.find((sort) => isMeasureSort(sort) && isEqual(sort.measureSortItem.locators, locators));
50
+ }
51
+ return undefined;
52
+ }
53
+ function columnScopeToLocators(columnScope) {
54
+ return columnScope.flatMap((scope) => {
55
+ if (scope.type === "attributeScope" && scope.header.attributeHeaderItem.name) {
56
+ return [
57
+ newAttributeLocator(scope.descriptor.attributeHeader.localIdentifier, scope.header.attributeHeaderItem.name),
58
+ ];
59
+ }
60
+ if (scope.type === "attributeTotalScope") {
61
+ return [
62
+ {
63
+ totalLocatorItem: {
64
+ attributeIdentifier: scope.descriptor.attributeHeader.localIdentifier,
65
+ totalFunction: scope.header.totalHeaderItem.type,
66
+ },
67
+ },
68
+ ];
69
+ }
70
+ if (scope.type === "measureTotalScope" || scope.type === "measureScope") {
71
+ return [
72
+ {
73
+ measureLocatorItem: {
74
+ measureIdentifier: scope.descriptor.measureHeaderItem.localIdentifier,
75
+ },
76
+ },
77
+ ];
78
+ }
79
+ return [];
80
+ });
81
+ }
82
+ //# sourceMappingURL=sortModelToSortItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortModelToSortItems.js","sourceRoot":"","sources":["../../../../src/next/features/sorting/sortModelToSortItems.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ import { AgGridProps } from "../../types/agGrid.js";
2
+ import { ITableColumnDefinitionByColId } from "../../types/internal.js";
3
+ /**
4
+ * Hook that provides sorting handlers for the pivot table
5
+ *
6
+ * @alpha
7
+ */
8
+ export declare function useSortingProps(columnDefinitionByColId: ITableColumnDefinitionByColId): (agGridReactProps: AgGridProps) => AgGridProps;
9
+ //# sourceMappingURL=useSortingProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSortingProps.d.ts","sourceRoot":"","sources":["../../../../src/next/features/sorting/useSortingProps.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,uBAAuB,EAAE,6BAA6B,GACvD,CAAC,gBAAgB,EAAE,WAAW,KAAK,WAAW,CAmChD"}
@@ -0,0 +1,37 @@
1
+ // (C) 2025 GoodData Corporation
2
+ import { useCallback } from "react";
3
+ import { UnexpectedSdkError } from "@gooddata/sdk-ui";
4
+ import { sortModelToSortItems } from "./sortModelToSortItems.js";
5
+ import { usePivotTableProps } from "../../context/PivotTablePropsContext.js";
6
+ import { getSortModel } from "./agGridSortingApi.js";
7
+ /**
8
+ * Hook that provides sorting handlers for the pivot table
9
+ *
10
+ * @alpha
11
+ */
12
+ export function useSortingProps(columnDefinitionByColId) {
13
+ const { pushData } = usePivotTableProps();
14
+ const onSortChanged = useCallback((event) => {
15
+ if (!pushData) {
16
+ return;
17
+ }
18
+ // Get the current sort model from ag-grid
19
+ const sortModel = getSortModel(event.api);
20
+ const sortItems = sortModelToSortItems(sortModel, columnDefinitionByColId);
21
+ pushData({
22
+ properties: {
23
+ sortItems,
24
+ },
25
+ });
26
+ }, [pushData, columnDefinitionByColId]);
27
+ return useCallback((agGridReactProps) => {
28
+ if (agGridReactProps.onSortChanged) {
29
+ throw new UnexpectedSdkError("onSortChanged is already set");
30
+ }
31
+ return {
32
+ ...agGridReactProps,
33
+ onSortChanged,
34
+ };
35
+ }, [onSortChanged]);
36
+ }
37
+ //# sourceMappingURL=useSortingProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSortingProps.js","sourceRoot":"","sources":["../../../../src/next/features/sorting/useSortingProps.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAC3B,uBAAsD;IAEtD,MAAM,EAAE,QAAQ,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAE1C,MAAM,aAAa,GAAG,WAAW,CAC7B,CAAC,KAAuB,EAAE,EAAE;QACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;YACZ,OAAO;QACX,CAAC;QAED,0CAA0C;QAC1C,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC1C,MAAM,SAAS,GAAG,oBAAoB,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;QAE3E,QAAQ,CAAC;YACL,UAAU,EAAE;gBACR,SAAS;aACZ;SACJ,CAAC,CAAC;IACP,CAAC,EACD,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CACtC,CAAC;IAEF,OAAO,WAAW,CACd,CAAC,gBAA6B,EAAE,EAAE;QAC9B,IAAI,gBAAgB,CAAC,aAAa,EAAE,CAAC;YACjC,MAAM,IAAI,kBAAkB,CAAC,8BAA8B,CAAC,CAAC;QACjE,CAAC;QAED,OAAO;YACH,GAAG,gBAAgB;YACnB,aAAa;SAChB,CAAC;IACN,CAAC,EACD,CAAC,aAAa,CAAC,CAClB,CAAC;AACN,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const b: (props?: import("@gooddata/sdk-ui-kit").StyleProps) => string, e: (element: string, props?: import("@gooddata/sdk-ui-kit").StyleProps) => string;
2
+ //# sourceMappingURL=bem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bem.d.ts","sourceRoot":"","sources":["../../../../src/next/features/styling/bem.ts"],"names":[],"mappings":"AAGA,eAAO,MAAQ,CAAC,iEAAE,CAAC,gFAAsC,CAAC"}
@@ -0,0 +1,4 @@
1
+ // (C) 2025 GoodData Corporation
2
+ import { bemFactory } from "@gooddata/sdk-ui-kit";
3
+ export const { b, e } = bemFactory("gd-pivot-table-next");
4
+ //# sourceMappingURL=bem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bem.js","sourceRoot":"","sources":["../../../../src/next/features/styling/bem.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { CellClassParams } from "ag-grid-community";
1
+ import { CellClassParams } from "ag-grid-enterprise";
2
2
  import { DataViewFacade, ExplicitDrill } from "@gooddata/sdk-ui";
3
- import { AgGridRowData } from "../types/internal.js";
3
+ import { AgGridRowData } from "../../types/internal.js";
4
4
  /**
5
5
  * Returns a class name for a cell.
6
6
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../../src/next/features/styling/cell.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAKxD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GACzB,QAAQ,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC,EACrD,iBAAiB,aAAa,EAAE,EAChC,KAAK,cAAc,KACpB,MAsBF,CAAC"}
@@ -1,6 +1,6 @@
1
- // (C) 2007-2025 GoodData Corporation
2
1
  import cx from "classnames";
3
- import { isCellDrillable } from "../drill/isDrillable.js";
2
+ import { isCellDrillable } from "../drilling/isDrillable.js";
3
+ import { e } from "./bem.js";
4
4
  /**
5
5
  * Returns a class name for a cell.
6
6
  *
@@ -12,7 +12,7 @@ import { isCellDrillable } from "../drill/isDrillable.js";
12
12
  export const getCellClassName = (params, drillableItems, dv) => {
13
13
  const { colDef, data } = params;
14
14
  if (!colDef || !data) {
15
- return "gd-cell";
15
+ return e("cell");
16
16
  }
17
17
  const colId = colDef.colId ?? colDef.field;
18
18
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -20,6 +20,12 @@ export const getCellClassName = (params, drillableItems, dv) => {
20
20
  const colData = data.meta[colId];
21
21
  const isAttribute = colData?.type === "attributeHeader";
22
22
  const isDrillable = isCellDrillable(colDef, data, drillableItems ?? [], dv);
23
- return cx("gd-cell", { "gd-cell--drillable": isDrillable }, { "gd-cell--attribute": isAttribute }, { "gd-cell--metric": !isAttribute });
23
+ const isNull = !isAttribute && colData?.formattedValue === "";
24
+ return cx(e("cell", {
25
+ drillable: isDrillable,
26
+ attribute: isAttribute,
27
+ metric: !isAttribute,
28
+ null: isNull,
29
+ }));
24
30
  };
25
31
  //# sourceMappingURL=cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cell.js","sourceRoot":"","sources":["../../../../src/next/features/styling/cell.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,MAAqD,EACrD,cAAgC,EAChC,EAAmB,EACb,EAAE;IACR,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAChC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QACnB,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC;IAC3C,6DAA6D;IAC7D,mBAAmB;IACnB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAoB,CAAC;IACpD,MAAM,WAAW,GAAG,OAAO,EAAE,IAAI,KAAK,iBAAiB,CAAC;IACxD,MAAM,WAAW,GAAG,eAAe,CAAC,MAAyB,EAAE,IAAI,EAAE,cAAc,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/F,MAAM,MAAM,GAAG,CAAC,WAAW,IAAI,OAAO,EAAE,cAAc,KAAK,EAAE,CAAC;IAE9D,OAAO,EAAE,CACL,CAAC,CAAC,MAAM,EAAE;QACN,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;QACtB,MAAM,EAAE,CAAC,WAAW;QACpB,IAAI,EAAE,MAAM;KACf,CAAC,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const getAscSortIcon: (color: string) => string;
2
+ export declare const getDescSortIcon: (color: string) => string;
3
+ export declare const getMenuIcon: (color: string) => string;
4
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/next/features/styling/icons.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,WAI3C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,WAI5C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,WAMxC,CAAC"}
@@ -0,0 +1,19 @@
1
+ // (C) 2025 GoodData Corporation
2
+ export const getAscSortIcon = (color) => `
3
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
4
+ <path d="M7 4.50015L10.5 9.50015H3.5L7 4.50015Z" fill="${color}"/>
5
+ </svg>
6
+ `;
7
+ export const getDescSortIcon = (color) => `
8
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
9
+ <path d="M7 9.49985L10.5 4.49985H3.5L7 9.49985Z" fill="${color}"/>
10
+ </svg>
11
+ `;
12
+ export const getMenuIcon = (color) => `
13
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
14
+ <path d="M9 5.89499C8.37868 5.89499 7.875 5.39131 7.875 4.76999C7.875 4.14867 8.37868 3.64499 9 3.64499C9.62132 3.64499 10.125 4.14867 10.125 4.76999C10.125 5.39131 9.62132 5.89499 9 5.89499Z" fill="${color}"/>
15
+ <path d="M9 10.125C8.37868 10.125 7.875 9.62131 7.875 8.99999C7.875 8.37867 8.37868 7.87499 9 7.87499C9.62132 7.87499 10.125 8.37867 10.125 8.99999C10.125 9.62131 9.62132 10.125 9 10.125Z" fill="${color}"/>
16
+ <path d="M9 14.355C8.37868 14.355 7.875 13.8513 7.875 13.23C7.875 12.6087 8.37868 12.105 9 12.105C9.62132 12.105 10.125 12.6087 10.125 13.23C10.125 13.8513 9.62132 14.355 9 14.355Z" fill="${color}"/>
17
+ </svg>
18
+ `;
19
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../../src/next/features/styling/icons.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC;;iEAEgB,KAAK;;CAErE,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC;;iEAEe,KAAK;;CAErE,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC;;iNAEmK,KAAK;6MACT,KAAK;sMACZ,KAAK;;CAE1M,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { AgGridProps } from "../../types/agGrid.js";
2
+ export declare const useThemeProps: () => ((agGridReactProps: AgGridProps) => AgGridProps);
3
+ //# sourceMappingURL=useThemeProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useThemeProps.d.ts","sourceRoot":"","sources":["../../../../src/next/features/styling/useThemeProps.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,eAAO,MAAM,aAAa,QAAO,CAAC,CAAC,gBAAgB,EAAE,WAAW,KAAK,WAAW,CA6B/E,CAAC"}
@@ -0,0 +1,29 @@
1
+ // (C) 2025 GoodData Corporation
2
+ import { useCallback } from "react";
3
+ import { useTheme } from "@gooddata/sdk-ui-theme-provider";
4
+ import { themeBalham, iconOverrides } from "ag-grid-enterprise";
5
+ import { getAscSortIcon, getDescSortIcon, getMenuIcon } from "./icons.js";
6
+ export const useThemeProps = () => {
7
+ const gdTheme = useTheme();
8
+ return useCallback((agGridReactProps) => {
9
+ const iconColor = gdTheme?.palette?.complementary?.c8 || "#464E56";
10
+ const icons = iconOverrides({
11
+ type: "image",
12
+ mask: true,
13
+ icons: {
14
+ asc: {
15
+ svg: getAscSortIcon(iconColor),
16
+ },
17
+ desc: {
18
+ svg: getDescSortIcon(iconColor),
19
+ },
20
+ "menu-alt": {
21
+ svg: getMenuIcon(iconColor),
22
+ },
23
+ },
24
+ });
25
+ const agTheme = themeBalham.withPart(icons);
26
+ return { ...agGridReactProps, theme: agTheme };
27
+ }, [gdTheme]);
28
+ };
29
+ //# sourceMappingURL=useThemeProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useThemeProps.js","sourceRoot":"","sources":["../../../../src/next/features/styling/useThemeProps.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG1E,MAAM,CAAC,MAAM,aAAa,GAAG,GAAqD,EAAE;IAChF,MAAM,OAAO,GAAG,QAAQ,EAAE,CAAC;IAE3B,OAAO,WAAW,CACd,CAAC,gBAA6B,EAAE,EAAE;QAC9B,MAAM,SAAS,GAAG,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,IAAI,SAAS,CAAC;QAEnE,MAAM,KAAK,GAAG,aAAa,CAAC;YACxB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,IAAI;YACV,KAAK,EAAE;gBACH,GAAG,EAAE;oBACD,GAAG,EAAE,cAAc,CAAC,SAAS,CAAC;iBACjC;gBACD,IAAI,EAAE;oBACF,GAAG,EAAE,eAAe,CAAC,SAAS,CAAC;iBAClC;gBACD,UAAU,EAAE;oBACR,GAAG,EAAE,WAAW,CAAC,SAAS,CAAC;iBAC9B;aACJ;SACJ,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAE5C,OAAO,EAAE,GAAG,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;IACnD,CAAC,EACD,CAAC,OAAO,CAAC,CACZ,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { AgGridProps } from "../../types/agGrid.js";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare function enableDefaultTextWrappingForCells(options: AgGridProps): AgGridProps;
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare function enableDefaultTextWrappingForHeaders(options: AgGridProps): AgGridProps;
10
+ //# sourceMappingURL=agGridTextWrappingOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agGridTextWrappingOptions.d.ts","sourceRoot":"","sources":["../../../../src/next/features/textWrapping/agGridTextWrappingOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW,CAanF;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW,CAarF"}
@@ -0,0 +1,35 @@
1
+ // (C) 2025 GoodData Corporation
2
+ import { UnexpectedSdkError } from "@gooddata/sdk-ui";
3
+ /**
4
+ * @internal
5
+ */
6
+ export function enableDefaultTextWrappingForCells(options) {
7
+ // Ensure this option is set only once
8
+ if (options.defaultColDef?.wrapText) {
9
+ throw new UnexpectedSdkError("wrapText is already set");
10
+ }
11
+ return {
12
+ ...options,
13
+ defaultColDef: {
14
+ ...options.defaultColDef,
15
+ wrapText: true,
16
+ },
17
+ };
18
+ }
19
+ /**
20
+ * @internal
21
+ */
22
+ export function enableDefaultTextWrappingForHeaders(options) {
23
+ // Ensure this option is set only once
24
+ if (options.defaultColDef?.wrapHeaderText) {
25
+ throw new UnexpectedSdkError("wrapHeaderText is already set");
26
+ }
27
+ return {
28
+ ...options,
29
+ defaultColDef: {
30
+ ...options.defaultColDef,
31
+ wrapHeaderText: true,
32
+ },
33
+ };
34
+ }
35
+ //# sourceMappingURL=agGridTextWrappingOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agGridTextWrappingOptions.js","sourceRoot":"","sources":["../../../../src/next/features/textWrapping/agGridTextWrappingOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGtD;;GAEG;AACH,MAAM,UAAU,iCAAiC,CAAC,OAAoB;IAClE,sCAAsC;IACtC,IAAI,OAAO,CAAC,aAAa,EAAE,QAAQ,EAAE,CAAC;QAClC,MAAM,IAAI,kBAAkB,CAAC,yBAAyB,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO;QACH,GAAG,OAAO;QACV,aAAa,EAAE;YACX,GAAG,OAAO,CAAC,aAAa;YACxB,QAAQ,EAAE,IAAI;SACjB;KACJ,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mCAAmC,CAAC,OAAoB;IACpE,sCAAsC;IACtC,IAAI,OAAO,CAAC,aAAa,EAAE,cAAc,EAAE,CAAC;QACxC,MAAM,IAAI,kBAAkB,CAAC,+BAA+B,CAAC,CAAC;IAClE,CAAC;IAED,OAAO;QACH,GAAG,OAAO;QACV,aAAa,EAAE;YACX,GAAG,OAAO,CAAC,aAAa;YACxB,cAAc,EAAE,IAAI;SACvB;KACJ,CAAC;AACN,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { AgGridProps } from "../../types/agGrid.js";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare function useTextWrappingProps(): (agGridReactProps: AgGridProps) => AgGridProps;
6
+ //# sourceMappingURL=useTextWrappingProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTextWrappingProps.d.ts","sourceRoot":"","sources":["../../../../src/next/features/textWrapping/useTextWrappingProps.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD;;GAEG;AACH,wBAAgB,oBAAoB,uBAQT,WAAW,iBAerC"}
@@ -0,0 +1,21 @@
1
+ // (C) 2025 GoodData Corporation
2
+ import { useCallback } from "react";
3
+ import { enableDefaultTextWrappingForCells, enableDefaultTextWrappingForHeaders, } from "./agGridTextWrappingOptions.js";
4
+ import { usePivotTableProps } from "../../context/PivotTablePropsContext.js";
5
+ /**
6
+ * @internal
7
+ */
8
+ export function useTextWrappingProps() {
9
+ const { config: { textWrapping: { wrapHeaderText, wrapText }, }, } = usePivotTableProps();
10
+ return useCallback((agGridReactProps) => {
11
+ let mergedProps = agGridReactProps;
12
+ if (wrapHeaderText) {
13
+ mergedProps = enableDefaultTextWrappingForHeaders(agGridReactProps);
14
+ }
15
+ if (wrapText) {
16
+ mergedProps = enableDefaultTextWrappingForCells(agGridReactProps);
17
+ }
18
+ return mergedProps;
19
+ }, [wrapHeaderText, wrapText]);
20
+ }
21
+ //# sourceMappingURL=useTextWrappingProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTextWrappingProps.js","sourceRoot":"","sources":["../../../../src/next/features/textWrapping/useTextWrappingProps.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EACH,iCAAiC,EACjC,mCAAmC,GACtC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAG7E;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAChC,MAAM,EACF,MAAM,EAAE,EACJ,YAAY,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,GAC7C,GACJ,GAAG,kBAAkB,EAAE,CAAC;IAEzB,OAAO,WAAW,CACd,CAAC,gBAA6B,EAAE,EAAE;QAC9B,IAAI,WAAW,GAAG,gBAAgB,CAAC;QAEnC,IAAI,cAAc,EAAE,CAAC;YACjB,WAAW,GAAG,mCAAmC,CAAC,gBAAgB,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,QAAQ,EAAE,CAAC;YACX,WAAW,GAAG,iCAAiC,CAAC,gBAAgB,CAAC,CAAC;QACtE,CAAC;QAED,OAAO,WAAW,CAAC;IACvB,CAAC,EACD,CAAC,cAAc,EAAE,QAAQ,CAAC,CAC7B,CAAC;AACN,CAAC"}