@gooddata/sdk-ui 9.0.0-alpha.3 → 9.0.0-alpha.31

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 (605) hide show
  1. package/esm/base/errors/GoodDataSdkError.js +1 -1
  2. package/esm/base/errors/GoodDataSdkError.js.map +1 -1
  3. package/esm/base/errors/errorHandling.d.ts +1 -1
  4. package/esm/base/errors/errorHandling.d.ts.map +1 -1
  5. package/esm/base/errors/errorHandling.js +2 -2
  6. package/esm/base/errors/errorHandling.js.map +1 -1
  7. package/esm/base/headerMatching/HeaderPredicate.d.ts +2 -2
  8. package/esm/base/headerMatching/HeaderPredicate.d.ts.map +1 -1
  9. package/esm/base/headerMatching/HeaderPredicateFactory.d.ts +1 -1
  10. package/esm/base/headerMatching/HeaderPredicateFactory.d.ts.map +1 -1
  11. package/esm/base/headerMatching/HeaderPredicateFactory.js +1 -1
  12. package/esm/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
  13. package/esm/base/headerMatching/MappingHeader.d.ts +4 -4
  14. package/esm/base/headerMatching/MappingHeader.d.ts.map +1 -1
  15. package/esm/base/headerMatching/MappingHeader.js +3 -3
  16. package/esm/base/headerMatching/MappingHeader.js.map +1 -1
  17. package/esm/base/index.d.ts +58 -57
  18. package/esm/base/index.d.ts.map +1 -1
  19. package/esm/base/index.js +48 -47
  20. package/esm/base/index.js.map +1 -1
  21. package/esm/base/localization/IntlStore.d.ts +1 -1
  22. package/esm/base/localization/IntlStore.d.ts.map +1 -1
  23. package/esm/base/localization/IntlStore.js +3 -3
  24. package/esm/base/localization/IntlStore.js.map +1 -1
  25. package/esm/base/localization/IntlWrapper.js +3 -3
  26. package/esm/base/localization/IntlWrapper.js.map +1 -1
  27. package/esm/base/localization/TranslationsCustomizationProvider/Context.js +2 -2
  28. package/esm/base/localization/TranslationsCustomizationProvider/Context.js.map +1 -1
  29. package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +4 -4
  30. package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
  31. package/esm/base/localization/TranslationsCustomizationProvider/index.d.ts +3 -3
  32. package/esm/base/localization/TranslationsCustomizationProvider/index.d.ts.map +1 -1
  33. package/esm/base/localization/TranslationsCustomizationProvider/index.js +3 -3
  34. package/esm/base/localization/TranslationsCustomizationProvider/index.js.map +1 -1
  35. package/esm/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +1 -1
  36. package/esm/base/localization/TranslationsCustomizationProvider/utils.js +6 -1
  37. package/esm/base/localization/TranslationsCustomizationProvider/utils.js.map +1 -1
  38. package/esm/base/localization/TranslationsProvider.js +2 -2
  39. package/esm/base/localization/TranslationsProvider.js.map +1 -1
  40. package/esm/base/localization/bundles/de-DE.json +3 -0
  41. package/esm/base/localization/bundles/en-US.json +1 -1
  42. package/esm/base/localization/bundles/es-ES.json +3 -0
  43. package/esm/base/localization/bundles/fr-FR.json +3 -0
  44. package/esm/base/localization/bundles/ja-JP.json +3 -0
  45. package/esm/base/localization/bundles/nl-NL.json +3 -0
  46. package/esm/base/localization/bundles/pt-BR.json +3 -0
  47. package/esm/base/localization/bundles/pt-PT.json +3 -0
  48. package/esm/base/localization/bundles/ru-RU.json +3 -0
  49. package/esm/base/localization/bundles/zh-Hans.json +3 -0
  50. package/esm/base/localization/intlUtils.d.ts +2 -2
  51. package/esm/base/localization/intlUtils.d.ts.map +1 -1
  52. package/esm/base/localization/intlUtils.js +3 -3
  53. package/esm/base/localization/intlUtils.js.map +1 -1
  54. package/esm/base/measureFormats/fillMissingFormats.js +1 -1
  55. package/esm/base/measureFormats/fillMissingFormats.js.map +1 -1
  56. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +2 -2
  57. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +1 -1
  58. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js +2 -2
  59. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +1 -1
  60. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +2 -2
  61. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +1 -1
  62. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +3 -3
  63. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +1 -1
  64. package/esm/base/measureTitles/fillMissingTitles.d.ts +1 -1
  65. package/esm/base/measureTitles/fillMissingTitles.d.ts.map +1 -1
  66. package/esm/base/measureTitles/fillMissingTitles.js +3 -3
  67. package/esm/base/measureTitles/fillMissingTitles.js.map +1 -1
  68. package/esm/base/react/BackendContext.js +2 -2
  69. package/esm/base/react/BackendContext.js.map +1 -1
  70. package/esm/base/react/CancelablePromise.js +1 -1
  71. package/esm/base/react/CancelablePromise.js.map +1 -1
  72. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +3 -3
  73. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
  74. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +6 -6
  75. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
  76. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +1 -1
  77. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +1 -1
  78. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +2 -2
  79. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +1 -1
  80. package/esm/base/react/PromiseCache.js +2 -2
  81. package/esm/base/react/PromiseCache.js.map +1 -1
  82. package/esm/base/react/WorkspaceContext.js +2 -2
  83. package/esm/base/react/WorkspaceContext.js.map +1 -1
  84. package/esm/base/react/legacy/availableDrillTargets.d.ts +2 -2
  85. package/esm/base/react/legacy/availableDrillTargets.d.ts.map +1 -1
  86. package/esm/base/react/legacy/availableDrillTargets.js +2 -2
  87. package/esm/base/react/legacy/availableDrillTargets.js.map +1 -1
  88. package/esm/base/react/legacy/withEntireDataView.d.ts +2 -2
  89. package/esm/base/react/legacy/withEntireDataView.d.ts.map +1 -1
  90. package/esm/base/react/legacy/withEntireDataView.js +8 -8
  91. package/esm/base/react/legacy/withEntireDataView.js.map +1 -1
  92. package/esm/base/react/placeholders/aliases.d.ts +1 -1
  93. package/esm/base/react/placeholders/aliases.d.ts.map +1 -1
  94. package/esm/base/react/placeholders/base.js +1 -1
  95. package/esm/base/react/placeholders/base.js.map +1 -1
  96. package/esm/base/react/placeholders/context.d.ts +1 -1
  97. package/esm/base/react/placeholders/context.d.ts.map +1 -1
  98. package/esm/base/react/placeholders/context.js +1 -1
  99. package/esm/base/react/placeholders/context.js.map +1 -1
  100. package/esm/base/react/placeholders/factory.d.ts +1 -1
  101. package/esm/base/react/placeholders/factory.d.ts.map +1 -1
  102. package/esm/base/react/placeholders/factory.js +2 -2
  103. package/esm/base/react/placeholders/factory.js.map +1 -1
  104. package/esm/base/react/placeholders/hooks.d.ts +1 -1
  105. package/esm/base/react/placeholders/hooks.d.ts.map +1 -1
  106. package/esm/base/react/placeholders/hooks.js +4 -4
  107. package/esm/base/react/placeholders/hooks.js.map +1 -1
  108. package/esm/base/react/placeholders/resolve.d.ts +2 -2
  109. package/esm/base/react/placeholders/resolve.d.ts.map +1 -1
  110. package/esm/base/react/placeholders/resolve.js +2 -2
  111. package/esm/base/react/placeholders/resolve.js.map +1 -1
  112. package/esm/base/react/useCancelablePromise.js +4 -4
  113. package/esm/base/react/useCancelablePromise.js.map +1 -1
  114. package/esm/base/react/useCancelablePromiseUtils.d.ts +1 -1
  115. package/esm/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
  116. package/esm/base/react/useCancelablePromiseUtils.js +2 -2
  117. package/esm/base/react/useCancelablePromiseUtils.js.map +1 -1
  118. package/esm/base/react/usePagedResource.js +1 -1
  119. package/esm/base/react/usePagedResource.js.map +1 -1
  120. package/esm/base/react/usePromiseCache.js +1 -1
  121. package/esm/base/react/usePromiseCache.js.map +1 -1
  122. package/esm/base/react/withContexts.js +4 -4
  123. package/esm/base/react/withContexts.js.map +1 -1
  124. package/esm/base/results/dataAccess.d.ts +10 -11
  125. package/esm/base/results/dataAccess.d.ts.map +1 -1
  126. package/esm/base/results/dataAccessConfig.d.ts +3 -3
  127. package/esm/base/results/dataAccessConfig.d.ts.map +1 -1
  128. package/esm/base/results/dataAccessConfig.js +6 -6
  129. package/esm/base/results/dataAccessConfig.js.map +1 -1
  130. package/esm/base/results/facade.d.ts +5 -5
  131. package/esm/base/results/facade.d.ts.map +1 -1
  132. package/esm/base/results/facade.js +4 -4
  133. package/esm/base/results/facade.js.map +1 -1
  134. package/esm/base/results/internal/dataAccessDigest.js +2 -2
  135. package/esm/base/results/internal/dataAccessDigest.js.map +1 -1
  136. package/esm/base/results/internal/dataAccessImpl.d.ts +3 -3
  137. package/esm/base/results/internal/dataAccessImpl.d.ts.map +1 -1
  138. package/esm/base/results/internal/dataAccessImpl.js +10 -7
  139. package/esm/base/results/internal/dataAccessImpl.js.map +1 -1
  140. package/esm/base/results/internal/dataAccessMethods.d.ts +2 -2
  141. package/esm/base/results/internal/dataAccessMethods.d.ts.map +1 -1
  142. package/esm/base/results/internal/dataAccessMethods.js +2 -2
  143. package/esm/base/results/internal/dataAccessMethods.js.map +1 -1
  144. package/esm/base/results/internal/definitionMethods.js +1 -1
  145. package/esm/base/results/internal/definitionMethods.js.map +1 -1
  146. package/esm/base/results/internal/lazyInitArray.js +1 -1
  147. package/esm/base/results/internal/lazyInitArray.js.map +1 -1
  148. package/esm/base/results/internal/resultDataMethods.js +2 -2
  149. package/esm/base/results/internal/resultDataMethods.js.map +1 -1
  150. package/esm/base/results/internal/resultMetaMethods.d.ts.map +1 -1
  151. package/esm/base/results/internal/resultMetaMethods.js +4 -4
  152. package/esm/base/results/internal/resultMetaMethods.js.map +1 -1
  153. package/esm/base/results/internal/utils.d.ts +8 -1
  154. package/esm/base/results/internal/utils.d.ts.map +1 -1
  155. package/esm/base/results/internal/utils.js +11 -0
  156. package/esm/base/results/internal/utils.js.map +1 -1
  157. package/esm/base/vis/DrillEvents.d.ts +2 -2
  158. package/esm/base/vis/DrillEvents.d.ts.map +1 -1
  159. package/esm/base/vis/DrillEvents.js +2 -2
  160. package/esm/base/vis/DrillEvents.js.map +1 -1
  161. package/esm/base/vis/Events.d.ts +11 -2
  162. package/esm/base/vis/Events.d.ts.map +1 -1
  163. package/esm/base/vis/VisualizationProps.d.ts +4 -4
  164. package/esm/base/vis/VisualizationProps.d.ts.map +1 -1
  165. package/esm/base/vis/drilling.d.ts +4 -4
  166. package/esm/base/vis/drilling.d.ts.map +1 -1
  167. package/esm/base/vis/drilling.js +3 -3
  168. package/esm/base/vis/drilling.js.map +1 -1
  169. package/esm/base/vis/export.d.ts +2 -2
  170. package/esm/base/vis/export.d.ts.map +1 -1
  171. package/esm/execution/DataViewLoader.d.ts +2 -2
  172. package/esm/execution/DataViewLoader.d.ts.map +1 -1
  173. package/esm/execution/DataViewLoader.js +3 -3
  174. package/esm/execution/DataViewLoader.js.map +1 -1
  175. package/esm/execution/Execute.d.ts +3 -3
  176. package/esm/execution/Execute.d.ts.map +1 -1
  177. package/esm/execution/Execute.js +4 -4
  178. package/esm/execution/Execute.js.map +1 -1
  179. package/esm/execution/ExecuteInsight.d.ts +2 -2
  180. package/esm/execution/ExecuteInsight.d.ts.map +1 -1
  181. package/esm/execution/ExecuteInsight.js +4 -4
  182. package/esm/execution/ExecuteInsight.js.map +1 -1
  183. package/esm/execution/RawExecute.d.ts +2 -2
  184. package/esm/execution/RawExecute.d.ts.map +1 -1
  185. package/esm/execution/RawExecute.js +2 -2
  186. package/esm/execution/RawExecute.js.map +1 -1
  187. package/esm/execution/createExecution.js +3 -3
  188. package/esm/execution/createExecution.js.map +1 -1
  189. package/esm/execution/index.d.ts +10 -10
  190. package/esm/execution/index.d.ts.map +1 -1
  191. package/esm/execution/index.js +9 -9
  192. package/esm/execution/index.js.map +1 -1
  193. package/esm/execution/interfaces.d.ts +1 -1
  194. package/esm/execution/interfaces.d.ts.map +1 -1
  195. package/esm/execution/useDataExport.d.ts +1 -1
  196. package/esm/execution/useDataExport.d.ts.map +1 -1
  197. package/esm/execution/useDataExport.js +1 -1
  198. package/esm/execution/useDataExport.js.map +1 -1
  199. package/esm/execution/useExecutionDataView.d.ts +2 -2
  200. package/esm/execution/useExecutionDataView.d.ts.map +1 -1
  201. package/esm/execution/useExecutionDataView.js +3 -3
  202. package/esm/execution/useExecutionDataView.js.map +1 -1
  203. package/esm/execution/useInsight.d.ts +1 -1
  204. package/esm/execution/useInsight.d.ts.map +1 -1
  205. package/esm/execution/useInsight.js +1 -1
  206. package/esm/execution/useInsight.js.map +1 -1
  207. package/esm/execution/useInsightDataView.d.ts +2 -2
  208. package/esm/execution/useInsightDataView.d.ts.map +1 -1
  209. package/esm/execution/useInsightDataView.js +3 -3
  210. package/esm/execution/useInsightDataView.js.map +1 -1
  211. package/esm/execution/withExecution.d.ts +1 -1
  212. package/esm/execution/withExecution.d.ts.map +1 -1
  213. package/esm/execution/withExecution.js +2 -2
  214. package/esm/execution/withExecution.js.map +1 -1
  215. package/esm/execution/withExecutionLoading.d.ts +1 -1
  216. package/esm/execution/withExecutionLoading.d.ts.map +1 -1
  217. package/esm/execution/withExecutionLoading.js +2 -2
  218. package/esm/execution/withExecutionLoading.js.map +1 -1
  219. package/esm/index.d.ts +3 -3
  220. package/esm/index.d.ts.map +1 -1
  221. package/esm/index.js +3 -3
  222. package/esm/index.js.map +1 -1
  223. package/esm/kpi/FormattedNumber.d.ts +2 -2
  224. package/esm/kpi/FormattedNumber.d.ts.map +1 -1
  225. package/esm/kpi/FormattedNumber.js +3 -3
  226. package/esm/kpi/FormattedNumber.js.map +1 -1
  227. package/esm/kpi/Kpi.d.ts +4 -4
  228. package/esm/kpi/Kpi.d.ts.map +1 -1
  229. package/esm/kpi/Kpi.js +7 -7
  230. package/esm/kpi/Kpi.js.map +1 -1
  231. package/esm/kpi/KpiError.d.ts +1 -1
  232. package/esm/kpi/KpiError.d.ts.map +1 -1
  233. package/esm/kpi/index.d.ts +1 -1
  234. package/esm/kpi/index.d.ts.map +1 -1
  235. package/esm/kpi/index.js +1 -1
  236. package/esm/kpi/index.js.map +1 -1
  237. package/{dist → esm}/sdk-ui.d.ts +35 -18
  238. package/esm/tsdoc-metadata.json +1 -1
  239. package/package.json +29 -39
  240. package/dist/base/constants/bucketNames.d.ts +0 -33
  241. package/dist/base/constants/bucketNames.d.ts.map +0 -1
  242. package/dist/base/constants/bucketNames.js +0 -47
  243. package/dist/base/constants/bucketNames.js.map +0 -1
  244. package/dist/base/constants/colorPalette.d.ts +0 -7
  245. package/dist/base/constants/colorPalette.d.ts.map +0 -1
  246. package/dist/base/constants/colorPalette.js +0 -90
  247. package/dist/base/constants/colorPalette.js.map +0 -1
  248. package/dist/base/errors/GoodDataSdkError.d.ts +0 -245
  249. package/dist/base/errors/GoodDataSdkError.d.ts.map +0 -1
  250. package/dist/base/errors/GoodDataSdkError.js +0 -346
  251. package/dist/base/errors/GoodDataSdkError.js.map +0 -1
  252. package/dist/base/errors/errorHandling.d.ts +0 -46
  253. package/dist/base/errors/errorHandling.d.ts.map +0 -1
  254. package/dist/base/errors/errorHandling.js +0 -115
  255. package/dist/base/errors/errorHandling.js.map +0 -1
  256. package/dist/base/headerMatching/HeaderPredicate.d.ts +0 -26
  257. package/dist/base/headerMatching/HeaderPredicate.d.ts.map +0 -1
  258. package/dist/base/headerMatching/HeaderPredicate.js +0 -12
  259. package/dist/base/headerMatching/HeaderPredicate.js.map +0 -1
  260. package/dist/base/headerMatching/HeaderPredicateFactory.d.ts +0 -79
  261. package/dist/base/headerMatching/HeaderPredicateFactory.d.ts.map +0 -1
  262. package/dist/base/headerMatching/HeaderPredicateFactory.js +0 -276
  263. package/dist/base/headerMatching/HeaderPredicateFactory.js.map +0 -1
  264. package/dist/base/headerMatching/MappingHeader.d.ts +0 -55
  265. package/dist/base/headerMatching/MappingHeader.d.ts.map +0 -1
  266. package/dist/base/headerMatching/MappingHeader.js +0 -125
  267. package/dist/base/headerMatching/MappingHeader.js.map +0 -1
  268. package/dist/base/helpers/logging.d.ts +0 -5
  269. package/dist/base/helpers/logging.d.ts.map +0 -1
  270. package/dist/base/helpers/logging.js +0 -12
  271. package/dist/base/helpers/logging.js.map +0 -1
  272. package/dist/base/index.d.ts +0 -58
  273. package/dist/base/index.d.ts.map +0 -1
  274. package/dist/base/index.js +0 -217
  275. package/dist/base/index.js.map +0 -1
  276. package/dist/base/interfaces/OverTimeComparison.d.ts +0 -13
  277. package/dist/base/interfaces/OverTimeComparison.d.ts.map +0 -1
  278. package/dist/base/interfaces/OverTimeComparison.js +0 -13
  279. package/dist/base/interfaces/OverTimeComparison.js.map +0 -1
  280. package/dist/base/localization/IntlStore.d.ts +0 -21
  281. package/dist/base/localization/IntlStore.d.ts.map +0 -1
  282. package/dist/base/localization/IntlStore.js +0 -46
  283. package/dist/base/localization/IntlStore.js.map +0 -1
  284. package/dist/base/localization/IntlWrapper.d.ts +0 -13
  285. package/dist/base/localization/IntlWrapper.d.ts.map +0 -1
  286. package/dist/base/localization/IntlWrapper.js +0 -25
  287. package/dist/base/localization/IntlWrapper.js.map +0 -1
  288. package/dist/base/localization/Locale.d.ts +0 -25
  289. package/dist/base/localization/Locale.d.ts.map +0 -1
  290. package/dist/base/localization/Locale.js +0 -37
  291. package/dist/base/localization/Locale.js.map +0 -1
  292. package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts +0 -27
  293. package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts.map +0 -1
  294. package/dist/base/localization/TranslationsCustomizationProvider/Context.js +0 -40
  295. package/dist/base/localization/TranslationsCustomizationProvider/Context.js.map +0 -1
  296. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +0 -54
  297. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +0 -1
  298. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +0 -49
  299. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +0 -1
  300. package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts +0 -4
  301. package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts.map +0 -1
  302. package/dist/base/localization/TranslationsCustomizationProvider/index.js +0 -16
  303. package/dist/base/localization/TranslationsCustomizationProvider/index.js.map +0 -1
  304. package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts +0 -24
  305. package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +0 -1
  306. package/dist/base/localization/TranslationsCustomizationProvider/utils.js +0 -74
  307. package/dist/base/localization/TranslationsCustomizationProvider/utils.js.map +0 -1
  308. package/dist/base/localization/TranslationsProvider.d.ts +0 -33
  309. package/dist/base/localization/TranslationsProvider.d.ts.map +0 -1
  310. package/dist/base/localization/TranslationsProvider.js +0 -31
  311. package/dist/base/localization/TranslationsProvider.js.map +0 -1
  312. package/dist/base/localization/bundles/de-DE.json +0 -371
  313. package/dist/base/localization/bundles/en-US.json +0 -1964
  314. package/dist/base/localization/bundles/es-ES.json +0 -371
  315. package/dist/base/localization/bundles/fr-FR.json +0 -371
  316. package/dist/base/localization/bundles/ja-JP.json +0 -371
  317. package/dist/base/localization/bundles/nl-NL.json +0 -371
  318. package/dist/base/localization/bundles/pt-BR.json +0 -371
  319. package/dist/base/localization/bundles/pt-PT.json +0 -371
  320. package/dist/base/localization/bundles/ru-RU.json +0 -371
  321. package/dist/base/localization/bundles/zh-Hans.json +0 -371
  322. package/dist/base/localization/intlUtils.d.ts +0 -33
  323. package/dist/base/localization/intlUtils.d.ts.map +0 -1
  324. package/dist/base/localization/intlUtils.js +0 -65
  325. package/dist/base/localization/intlUtils.js.map +0 -1
  326. package/dist/base/localization/messagesMap.d.ts +0 -13
  327. package/dist/base/localization/messagesMap.d.ts.map +0 -1
  328. package/dist/base/localization/messagesMap.js +0 -32
  329. package/dist/base/localization/messagesMap.js.map +0 -1
  330. package/dist/base/measureFormats/fillMissingFormat.d.ts +0 -12
  331. package/dist/base/measureFormats/fillMissingFormat.d.ts.map +0 -1
  332. package/dist/base/measureFormats/fillMissingFormat.js +0 -27
  333. package/dist/base/measureFormats/fillMissingFormat.js.map +0 -1
  334. package/dist/base/measureFormats/fillMissingFormats.d.ts +0 -12
  335. package/dist/base/measureFormats/fillMissingFormats.d.ts.map +0 -1
  336. package/dist/base/measureFormats/fillMissingFormats.js +0 -20
  337. package/dist/base/measureFormats/fillMissingFormats.js.map +0 -1
  338. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +0 -32
  339. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +0 -1
  340. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js +0 -69
  341. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +0 -1
  342. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +0 -28
  343. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +0 -1
  344. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +0 -49
  345. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +0 -1
  346. package/dist/base/measureTitles/MeasureTitle.d.ts +0 -21
  347. package/dist/base/measureTitles/MeasureTitle.d.ts.map +0 -1
  348. package/dist/base/measureTitles/MeasureTitle.js +0 -3
  349. package/dist/base/measureTitles/MeasureTitle.js.map +0 -1
  350. package/dist/base/measureTitles/fillMissingTitles.d.ts +0 -23
  351. package/dist/base/measureTitles/fillMissingTitles.d.ts.map +0 -1
  352. package/dist/base/measureTitles/fillMissingTitles.js +0 -157
  353. package/dist/base/measureTitles/fillMissingTitles.js.map +0 -1
  354. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts +0 -14
  355. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts.map +0 -1
  356. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js +0 -32
  357. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js.map +0 -1
  358. package/dist/base/react/BackendContext.d.ts +0 -78
  359. package/dist/base/react/BackendContext.d.ts.map +0 -1
  360. package/dist/base/react/BackendContext.js +0 -89
  361. package/dist/base/react/BackendContext.js.map +0 -1
  362. package/dist/base/react/CancelablePromise.d.ts +0 -38
  363. package/dist/base/react/CancelablePromise.d.ts.map +0 -1
  364. package/dist/base/react/CancelablePromise.js +0 -82
  365. package/dist/base/react/CancelablePromise.js.map +0 -1
  366. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +0 -116
  367. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +0 -1
  368. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +0 -134
  369. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +0 -1
  370. package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts +0 -35
  371. package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts.map +0 -1
  372. package/dist/base/react/ClientWorkspaceContext/interfaces.js +0 -4
  373. package/dist/base/react/ClientWorkspaceContext/interfaces.js.map +0 -1
  374. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +0 -17
  375. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +0 -1
  376. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +0 -76
  377. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +0 -1
  378. package/dist/base/react/ErrorComponent.d.ts +0 -35
  379. package/dist/base/react/ErrorComponent.d.ts.map +0 -1
  380. package/dist/base/react/ErrorComponent.js +0 -90
  381. package/dist/base/react/ErrorComponent.js.map +0 -1
  382. package/dist/base/react/LoadingComponent.d.ts +0 -28
  383. package/dist/base/react/LoadingComponent.d.ts.map +0 -1
  384. package/dist/base/react/LoadingComponent.js +0 -81
  385. package/dist/base/react/LoadingComponent.js.map +0 -1
  386. package/dist/base/react/PromiseCache.d.ts +0 -21
  387. package/dist/base/react/PromiseCache.d.ts.map +0 -1
  388. package/dist/base/react/PromiseCache.js +0 -66
  389. package/dist/base/react/PromiseCache.js.map +0 -1
  390. package/dist/base/react/WorkspaceContext.d.ts +0 -77
  391. package/dist/base/react/WorkspaceContext.d.ts.map +0 -1
  392. package/dist/base/react/WorkspaceContext.js +0 -89
  393. package/dist/base/react/WorkspaceContext.js.map +0 -1
  394. package/dist/base/react/legacy/availableDrillTargets.d.ts +0 -12
  395. package/dist/base/react/legacy/availableDrillTargets.d.ts.map +0 -1
  396. package/dist/base/react/legacy/availableDrillTargets.js +0 -49
  397. package/dist/base/react/legacy/availableDrillTargets.js.map +0 -1
  398. package/dist/base/react/legacy/withEntireDataView.d.ts +0 -51
  399. package/dist/base/react/legacy/withEntireDataView.d.ts.map +0 -1
  400. package/dist/base/react/legacy/withEntireDataView.js +0 -171
  401. package/dist/base/react/legacy/withEntireDataView.js.map +0 -1
  402. package/dist/base/react/placeholders/aliases.d.ts +0 -92
  403. package/dist/base/react/placeholders/aliases.d.ts.map +0 -1
  404. package/dist/base/react/placeholders/aliases.js +0 -3
  405. package/dist/base/react/placeholders/aliases.js.map +0 -1
  406. package/dist/base/react/placeholders/base.d.ts +0 -279
  407. package/dist/base/react/placeholders/base.d.ts.map +0 -1
  408. package/dist/base/react/placeholders/base.js +0 -33
  409. package/dist/base/react/placeholders/base.js.map +0 -1
  410. package/dist/base/react/placeholders/context.d.ts +0 -36
  411. package/dist/base/react/placeholders/context.d.ts.map +0 -1
  412. package/dist/base/react/placeholders/context.js +0 -47
  413. package/dist/base/react/placeholders/context.js.map +0 -1
  414. package/dist/base/react/placeholders/factory.d.ts +0 -34
  415. package/dist/base/react/placeholders/factory.d.ts.map +0 -1
  416. package/dist/base/react/placeholders/factory.js +0 -45
  417. package/dist/base/react/placeholders/factory.js.map +0 -1
  418. package/dist/base/react/placeholders/hooks.d.ts +0 -70
  419. package/dist/base/react/placeholders/hooks.d.ts.map +0 -1
  420. package/dist/base/react/placeholders/hooks.js +0 -150
  421. package/dist/base/react/placeholders/hooks.js.map +0 -1
  422. package/dist/base/react/placeholders/resolve.d.ts +0 -30
  423. package/dist/base/react/placeholders/resolve.d.ts.map +0 -1
  424. package/dist/base/react/placeholders/resolve.js +0 -82
  425. package/dist/base/react/placeholders/resolve.js.map +0 -1
  426. package/dist/base/react/safeSerialize.d.ts +0 -9
  427. package/dist/base/react/safeSerialize.d.ts.map +0 -1
  428. package/dist/base/react/safeSerialize.js +0 -21
  429. package/dist/base/react/safeSerialize.js.map +0 -1
  430. package/dist/base/react/useCancelablePromise.d.ts +0 -99
  431. package/dist/base/react/useCancelablePromise.d.ts.map +0 -1
  432. package/dist/base/react/useCancelablePromise.js +0 -112
  433. package/dist/base/react/useCancelablePromise.js.map +0 -1
  434. package/dist/base/react/useCancelablePromiseUtils.d.ts +0 -48
  435. package/dist/base/react/useCancelablePromiseUtils.d.ts.map +0 -1
  436. package/dist/base/react/useCancelablePromiseUtils.js +0 -107
  437. package/dist/base/react/useCancelablePromiseUtils.js.map +0 -1
  438. package/dist/base/react/usePagedResource.d.ts +0 -21
  439. package/dist/base/react/usePagedResource.d.ts.map +0 -1
  440. package/dist/base/react/usePagedResource.js +0 -44
  441. package/dist/base/react/usePagedResource.js.map +0 -1
  442. package/dist/base/react/usePrevious.d.ts +0 -8
  443. package/dist/base/react/usePrevious.d.ts.map +0 -1
  444. package/dist/base/react/usePrevious.js +0 -20
  445. package/dist/base/react/usePrevious.js.map +0 -1
  446. package/dist/base/react/usePromiseCache.d.ts +0 -18
  447. package/dist/base/react/usePromiseCache.d.ts.map +0 -1
  448. package/dist/base/react/usePromiseCache.js +0 -61
  449. package/dist/base/react/usePromiseCache.js.map +0 -1
  450. package/dist/base/react/withContexts.d.ts +0 -11
  451. package/dist/base/react/withContexts.d.ts.map +0 -1
  452. package/dist/base/react/withContexts.js +0 -18
  453. package/dist/base/react/withContexts.js.map +0 -1
  454. package/dist/base/react/wrapDisplayName.d.ts +0 -7
  455. package/dist/base/react/wrapDisplayName.d.ts.map +0 -1
  456. package/dist/base/react/wrapDisplayName.js +0 -24
  457. package/dist/base/react/wrapDisplayName.js.map +0 -1
  458. package/dist/base/results/dataAccess.d.ts +0 -373
  459. package/dist/base/results/dataAccess.d.ts.map +0 -1
  460. package/dist/base/results/dataAccess.js +0 -3
  461. package/dist/base/results/dataAccess.js.map +0 -1
  462. package/dist/base/results/dataAccessConfig.d.ts +0 -42
  463. package/dist/base/results/dataAccessConfig.d.ts.map +0 -1
  464. package/dist/base/results/dataAccessConfig.js +0 -38
  465. package/dist/base/results/dataAccessConfig.js.map +0 -1
  466. package/dist/base/results/facade.d.ts +0 -95
  467. package/dist/base/results/facade.d.ts.map +0 -1
  468. package/dist/base/results/facade.js +0 -158
  469. package/dist/base/results/facade.js.map +0 -1
  470. package/dist/base/results/internal/dataAccessDigest.d.ts +0 -113
  471. package/dist/base/results/internal/dataAccessDigest.d.ts.map +0 -1
  472. package/dist/base/results/internal/dataAccessDigest.js +0 -143
  473. package/dist/base/results/internal/dataAccessDigest.js.map +0 -1
  474. package/dist/base/results/internal/dataAccessImpl.d.ts +0 -37
  475. package/dist/base/results/internal/dataAccessImpl.d.ts.map +0 -1
  476. package/dist/base/results/internal/dataAccessImpl.js +0 -381
  477. package/dist/base/results/internal/dataAccessImpl.js.map +0 -1
  478. package/dist/base/results/internal/dataAccessMethods.d.ts +0 -8
  479. package/dist/base/results/internal/dataAccessMethods.d.ts.map +0 -1
  480. package/dist/base/results/internal/dataAccessMethods.js +0 -122
  481. package/dist/base/results/internal/dataAccessMethods.js.map +0 -1
  482. package/dist/base/results/internal/definitionMethods.d.ts +0 -90
  483. package/dist/base/results/internal/definitionMethods.d.ts.map +0 -1
  484. package/dist/base/results/internal/definitionMethods.js +0 -82
  485. package/dist/base/results/internal/definitionMethods.js.map +0 -1
  486. package/dist/base/results/internal/lazyInitArray.d.ts +0 -15
  487. package/dist/base/results/internal/lazyInitArray.d.ts.map +0 -1
  488. package/dist/base/results/internal/lazyInitArray.js +0 -48
  489. package/dist/base/results/internal/lazyInitArray.js.map +0 -1
  490. package/dist/base/results/internal/resultDataMethods.d.ts +0 -82
  491. package/dist/base/results/internal/resultDataMethods.d.ts.map +0 -1
  492. package/dist/base/results/internal/resultDataMethods.js +0 -85
  493. package/dist/base/results/internal/resultDataMethods.js.map +0 -1
  494. package/dist/base/results/internal/resultMetaMethods.d.ts +0 -89
  495. package/dist/base/results/internal/resultMetaMethods.d.ts.map +0 -1
  496. package/dist/base/results/internal/resultMetaMethods.js +0 -145
  497. package/dist/base/results/internal/resultMetaMethods.js.map +0 -1
  498. package/dist/base/results/internal/utils.d.ts +0 -23
  499. package/dist/base/results/internal/utils.d.ts.map +0 -1
  500. package/dist/base/results/internal/utils.js +0 -42
  501. package/dist/base/results/internal/utils.js.map +0 -1
  502. package/dist/base/typings/subtract.d.ts +0 -5
  503. package/dist/base/typings/subtract.d.ts.map +0 -1
  504. package/dist/base/typings/subtract.js +0 -3
  505. package/dist/base/typings/subtract.js.map +0 -1
  506. package/dist/base/vis/DrillEvents.d.ts +0 -191
  507. package/dist/base/vis/DrillEvents.d.ts.map +0 -1
  508. package/dist/base/vis/DrillEvents.js +0 -42
  509. package/dist/base/vis/DrillEvents.js.map +0 -1
  510. package/dist/base/vis/Events.d.ts +0 -85
  511. package/dist/base/vis/Events.d.ts.map +0 -1
  512. package/dist/base/vis/Events.js +0 -3
  513. package/dist/base/vis/Events.js.map +0 -1
  514. package/dist/base/vis/VisualizationProps.d.ts +0 -94
  515. package/dist/base/vis/VisualizationProps.d.ts.map +0 -1
  516. package/dist/base/vis/VisualizationProps.js +0 -4
  517. package/dist/base/vis/VisualizationProps.js.map +0 -1
  518. package/dist/base/vis/drilling.d.ts +0 -30
  519. package/dist/base/vis/drilling.d.ts.map +0 -1
  520. package/dist/base/vis/drilling.js +0 -102
  521. package/dist/base/vis/drilling.js.map +0 -1
  522. package/dist/base/vis/export.d.ts +0 -21
  523. package/dist/base/vis/export.d.ts.map +0 -1
  524. package/dist/base/vis/export.js +0 -47
  525. package/dist/base/vis/export.js.map +0 -1
  526. package/dist/base/vis/visualizationTypes.d.ts +0 -76
  527. package/dist/base/vis/visualizationTypes.d.ts.map +0 -1
  528. package/dist/base/vis/visualizationTypes.js +0 -46
  529. package/dist/base/vis/visualizationTypes.js.map +0 -1
  530. package/dist/execution/DataViewLoader.d.ts +0 -70
  531. package/dist/execution/DataViewLoader.d.ts.map +0 -1
  532. package/dist/execution/DataViewLoader.js +0 -102
  533. package/dist/execution/DataViewLoader.js.map +0 -1
  534. package/dist/execution/Execute.d.ts +0 -134
  535. package/dist/execution/Execute.d.ts.map +0 -1
  536. package/dist/execution/Execute.js +0 -99
  537. package/dist/execution/Execute.js.map +0 -1
  538. package/dist/execution/ExecuteInsight.d.ts +0 -136
  539. package/dist/execution/ExecuteInsight.d.ts.map +0 -1
  540. package/dist/execution/ExecuteInsight.js +0 -99
  541. package/dist/execution/ExecuteInsight.js.map +0 -1
  542. package/dist/execution/RawExecute.d.ts +0 -86
  543. package/dist/execution/RawExecute.d.ts.map +0 -1
  544. package/dist/execution/RawExecute.js +0 -76
  545. package/dist/execution/RawExecute.js.map +0 -1
  546. package/dist/execution/createExecution.d.ts +0 -61
  547. package/dist/execution/createExecution.d.ts.map +0 -1
  548. package/dist/execution/createExecution.js +0 -57
  549. package/dist/execution/createExecution.js.map +0 -1
  550. package/dist/execution/index.d.ts +0 -11
  551. package/dist/execution/index.d.ts.map +0 -1
  552. package/dist/execution/index.js +0 -23
  553. package/dist/execution/index.js.map +0 -1
  554. package/dist/execution/interfaces.d.ts +0 -23
  555. package/dist/execution/interfaces.d.ts.map +0 -1
  556. package/dist/execution/interfaces.js +0 -3
  557. package/dist/execution/interfaces.js.map +0 -1
  558. package/dist/execution/useDataExport.d.ts +0 -27
  559. package/dist/execution/useDataExport.d.ts.map +0 -1
  560. package/dist/execution/useDataExport.js +0 -35
  561. package/dist/execution/useDataExport.js.map +0 -1
  562. package/dist/execution/useExecutionDataView.d.ts +0 -94
  563. package/dist/execution/useExecutionDataView.d.ts.map +0 -1
  564. package/dist/execution/useExecutionDataView.js +0 -79
  565. package/dist/execution/useExecutionDataView.js.map +0 -1
  566. package/dist/execution/useInsight.d.ts +0 -32
  567. package/dist/execution/useInsight.d.ts.map +0 -1
  568. package/dist/execution/useInsight.js +0 -22
  569. package/dist/execution/useInsight.js.map +0 -1
  570. package/dist/execution/useInsightDataView.d.ts +0 -88
  571. package/dist/execution/useInsightDataView.d.ts.map +0 -1
  572. package/dist/execution/useInsightDataView.js +0 -54
  573. package/dist/execution/useInsightDataView.js.map +0 -1
  574. package/dist/execution/withExecution.d.ts +0 -59
  575. package/dist/execution/withExecution.d.ts.map +0 -1
  576. package/dist/execution/withExecution.js +0 -46
  577. package/dist/execution/withExecution.js.map +0 -1
  578. package/dist/execution/withExecutionLoading.d.ts +0 -145
  579. package/dist/execution/withExecutionLoading.d.ts.map +0 -1
  580. package/dist/execution/withExecutionLoading.js +0 -157
  581. package/dist/execution/withExecutionLoading.js.map +0 -1
  582. package/dist/index.d.ts +0 -22
  583. package/dist/index.d.ts.map +0 -1
  584. package/dist/index.js +0 -22
  585. package/dist/index.js.map +0 -1
  586. package/dist/kpi/FormattedNumber.d.ts +0 -16
  587. package/dist/kpi/FormattedNumber.d.ts.map +0 -1
  588. package/dist/kpi/FormattedNumber.js +0 -18
  589. package/dist/kpi/FormattedNumber.js.map +0 -1
  590. package/dist/kpi/Kpi.d.ts +0 -65
  591. package/dist/kpi/Kpi.d.ts.map +0 -1
  592. package/dist/kpi/Kpi.js +0 -72
  593. package/dist/kpi/Kpi.js.map +0 -1
  594. package/dist/kpi/KpiError.d.ts +0 -7
  595. package/dist/kpi/KpiError.d.ts.map +0 -1
  596. package/dist/kpi/KpiError.js +0 -23
  597. package/dist/kpi/KpiError.js.map +0 -1
  598. package/dist/kpi/index.d.ts +0 -2
  599. package/dist/kpi/index.d.ts.map +0 -1
  600. package/dist/kpi/index.js +0 -7
  601. package/dist/kpi/index.js.map +0 -1
  602. package/dist/locales.d.ts +0 -3
  603. package/dist/locales.d.ts.map +0 -1
  604. package/dist/locales.js +0 -22
  605. package/dist/locales.js.map +0 -1
@@ -1,27 +0,0 @@
1
- import { DependencyList } from "react";
2
- import { IExportConfig, IPreparedExecution } from "@gooddata/sdk-backend-spi";
3
- import { GoodDataSdkError, UseCancelablePromiseCallbacks, UseCancelablePromiseState } from "../base";
4
- /**
5
- * Indicates current state of useDataExport hook
6
- * @public
7
- */
8
- export type UseDataExportState = UseCancelablePromiseState<string, GoodDataSdkError>;
9
- /**
10
- * Callbacks for useDataExport hook
11
- * @public
12
- */
13
- export type UseDataExportCallbacks = UseCancelablePromiseCallbacks<string, GoodDataSdkError>;
14
- /**
15
- * This hook provides easy way to export data in your preferred format (csv/xlsx/raw) for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
16
- *
17
- * @remarks
18
- * As a result, you will receive a string with uri, so you can easily create a download link.
19
- * Be aware that execution is re-executed only on dependency list change, not on execution/exportConfig/callbacks change.
20
- *
21
- * @public
22
- */
23
- export declare function useDataExport({ execution, exportConfig, onCancel, onError, onLoading, onPending, onSuccess, }: {
24
- execution: IPreparedExecution | undefined | null;
25
- exportConfig?: IExportConfig;
26
- } & UseDataExportCallbacks, deps?: DependencyList): UseDataExportState;
27
- //# sourceMappingURL=useDataExport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDataExport.d.ts","sourceRoot":"","sources":["../../src/execution/useDataExport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAEH,gBAAgB,EAEhB,6BAA6B,EAC7B,yBAAyB,EAC5B,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAErF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,6BAA6B,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAE7F;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CACzB,EACI,SAAS,EACT,YAAiB,EACjB,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,GACZ,EAAE;IACC,SAAS,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI,CAAC;IACjD,YAAY,CAAC,EAAE,aAAa,CAAC;CAChC,GAAG,sBAAsB,EAC1B,IAAI,CAAC,EAAE,cAAc,GACtB,kBAAkB,CAuBpB"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useDataExport = void 0;
4
- const base_1 = require("../base");
5
- /**
6
- * This hook provides easy way to export data in your preferred format (csv/xlsx/raw) for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
7
- *
8
- * @remarks
9
- * As a result, you will receive a string with uri, so you can easily create a download link.
10
- * Be aware that execution is re-executed only on dependency list change, not on execution/exportConfig/callbacks change.
11
- *
12
- * @public
13
- */
14
- function useDataExport({ execution, exportConfig = {}, onCancel, onError, onLoading, onPending, onSuccess, }, deps) {
15
- return (0, base_1.useCancelablePromise)({
16
- promise: execution
17
- ? () => execution
18
- .execute()
19
- .then((executionResult) => executionResult.export(exportConfig))
20
- .then((exportResult) => {
21
- return exportResult.uri;
22
- })
23
- .catch((error) => {
24
- throw (0, base_1.convertError)(error);
25
- })
26
- : null,
27
- onCancel,
28
- onError,
29
- onLoading,
30
- onPending,
31
- onSuccess,
32
- }, deps);
33
- }
34
- exports.useDataExport = useDataExport;
35
- //# sourceMappingURL=useDataExport.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDataExport.js","sourceRoot":"","sources":["../../src/execution/useDataExport.ts"],"names":[],"mappings":";;;AAGA,kCAMiB;AAcjB;;;;;;;;GAQG;AACH,SAAgB,aAAa,CACzB,EACI,SAAS,EACT,YAAY,GAAG,EAAE,EACjB,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,GAIa,EAC1B,IAAqB;IAErB,OAAO,IAAA,2BAAoB,EACvB;QACI,OAAO,EAAE,SAAS;YACd,CAAC,CAAC,GAAG,EAAE,CACD,SAAS;iBACJ,OAAO,EAAE;iBACT,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;iBAC/D,IAAI,CAAC,CAAC,YAAY,EAAE,EAAE;gBACnB,OAAO,YAAY,CAAC,GAAG,CAAC;YAC5B,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBACb,MAAM,IAAA,mBAAY,EAAC,KAAK,CAAC,CAAC;YAC9B,CAAC,CAAC;YACZ,CAAC,CAAC,IAAI;QACV,QAAQ;QACR,OAAO;QACP,SAAS;QACT,SAAS;QACT,SAAS;KACZ,EACD,IAAI,CACP,CAAC;AACN,CAAC;AArCD,sCAqCC"}
@@ -1,94 +0,0 @@
1
- /// <reference types="react" />
2
- import { IAnalyticalBackend, IPreparedExecution } from "@gooddata/sdk-backend-spi";
3
- import { DataViewWindow } from "./withExecutionLoading";
4
- import { DataViewFacade, GoodDataSdkError, UseCancelablePromiseState, AttributesMeasuresOrPlaceholders, AttributesOrPlaceholders, NullableFiltersOrPlaceholders, SortsOrPlaceholders, TotalsOrPlaceholders, UseCancelablePromiseCallbacks } from "../base";
5
- /**
6
- * Convenient interface to define execution by series and slices.
7
- *
8
- * @public
9
- */
10
- export interface IExecutionConfiguration {
11
- /**
12
- * Data series will be built using the provided measures that are further scoped for
13
- * elements of the specified attributes.
14
- */
15
- seriesBy: AttributesMeasuresOrPlaceholders;
16
- /**
17
- * Slice all data series by elements of these attributes.
18
- */
19
- slicesBy?: AttributesOrPlaceholders;
20
- /**
21
- * Include these totals among the data slices.
22
- */
23
- totals?: TotalsOrPlaceholders;
24
- /**
25
- * Filters to apply on server side.
26
- */
27
- filters?: NullableFiltersOrPlaceholders;
28
- /**
29
- * Sorting to apply on server side.
30
- */
31
- sortBy?: SortsOrPlaceholders;
32
- /**
33
- * Resolution context for composed placeholders.
34
- */
35
- placeholdersResolutionContext?: any;
36
- /**
37
- * Informative name of the component.
38
- *
39
- * @remarks
40
- * This value is sent as telemetry information together with the actual execution request.
41
- * We recommend to set this because it can be useful for diagnostic purposes.
42
- *
43
- * Defaults 'Execute'.
44
- */
45
- componentName?: string;
46
- }
47
- /**
48
- * Configuration for {@link useExecutionDataView} hook.
49
- * See also {@link UseExecutionDataViewCallbacks}.
50
- *
51
- * @public
52
- */
53
- export interface IUseExecutionDataViewConfig {
54
- /**
55
- * Prepared execution, or execution configuration for which you want to get the data view.
56
- */
57
- execution?: IPreparedExecution | IExecutionConfiguration;
58
- /**
59
- * You can define only a specific "window" of data to load.
60
- *
61
- * @remarks
62
- * This is useful if you want to page data.
63
- */
64
- window?: DataViewWindow;
65
- /**
66
- * Backend to work with.
67
- *
68
- * @remarks
69
- * Note: the backend must come either from this property or from BackendContext. If you do not specify
70
- * backend here, then the executor MUST be rendered within an existing BackendContext.
71
- */
72
- backend?: IAnalyticalBackend;
73
- /**
74
- * Workspace where execution should be executed.
75
- *
76
- * @remarks
77
- * Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
78
- * workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
79
- */
80
- workspace?: string;
81
- }
82
- /**
83
- * Callbacks for {@link useExecutionDataView} hook.
84
- *
85
- * @public
86
- */
87
- export type UseExecutionDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
88
- /**
89
- * React hook to get data for a specific execution.
90
- *
91
- * @public
92
- */
93
- export declare function useExecutionDataView(config: IUseExecutionDataViewConfig & UseExecutionDataViewCallbacks, deps?: React.DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
94
- //# sourceMappingURL=useExecutionDataView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useExecutionDataView.d.ts","sourceRoot":"","sources":["../../src/execution/useExecutionDataView.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EACH,cAAc,EACd,gBAAgB,EAGhB,yBAAyB,EAEzB,gCAAgC,EAChC,wBAAwB,EACxB,6BAA6B,EAC7B,mBAAmB,EACnB,oBAAoB,EACpB,6BAA6B,EAGhC,MAAM,SAAS,CAAC;AAIjB;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;OAGG;IACH,QAAQ,EAAE,gCAAgC,CAAC;IAE3C;;OAEG;IACH,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IAEpC;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAE9B;;OAEG;IACH,OAAO,CAAC,EAAE,6BAA6B,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAE7B;;OAEG;IACH,6BAA6B,CAAC,EAAE,GAAG,CAAC;IAEpC;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AASD;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,GAAG,uBAAuB,CAAC;IAEzD;;;;;OAKG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG,6BAA6B,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAE5G;;;;GAIG;AACH,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,2BAA2B,GAAG,6BAA6B,EACnE,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,GAC5B,yBAAyB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAgE7D"}
@@ -1,79 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useExecutionDataView = void 0;
4
- const tslib_1 = require("tslib");
5
- const base_1 = require("../base");
6
- const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
7
- const createExecution_1 = require("./createExecution");
8
- /**
9
- * @internal
10
- */
11
- function isExecutionConfiguration(obj) {
12
- return !(0, isEmpty_1.default)(obj) && !!(obj === null || obj === void 0 ? void 0 : obj.seriesBy);
13
- }
14
- /**
15
- * React hook to get data for a specific execution.
16
- *
17
- * @public
18
- */
19
- function useExecutionDataView(config, deps) {
20
- var _a, _b, _c;
21
- const { execution, window, onCancel, onError, onLoading, onPending, onSuccess } = config;
22
- const backend = (0, base_1.useBackendStrict)(config.backend, "useExecutionDataView");
23
- const workspace = (0, base_1.useWorkspaceStrict)(config.workspace, "useExecutionDataView");
24
- const effectiveDeps = deps !== null && deps !== void 0 ? deps : [];
25
- const propsToResolve = getExecutionConfigurationProps(config.execution);
26
- const [seriesBy, slicesBy, totals, filters, sortBy] = (0, base_1.useResolveValuesWithPlaceholders)([
27
- propsToResolve.seriesBy,
28
- propsToResolve.slicesBy,
29
- propsToResolve.totals,
30
- propsToResolve.filters,
31
- propsToResolve.sortBy,
32
- ], propsToResolve.placeholdersResolutionContext);
33
- const preparedExecution = isExecutionConfiguration(execution)
34
- ? (0, createExecution_1.createExecution)(Object.assign(Object.assign({}, execution), { seriesBy: seriesBy, slicesBy,
35
- totals,
36
- filters,
37
- sortBy,
38
- backend,
39
- workspace }))
40
- : execution;
41
- return (0, base_1.useCancelablePromise)({
42
- promise: preparedExecution
43
- ? () => preparedExecution
44
- .execute()
45
- .then((executionResult) => window
46
- ? executionResult.readWindow(window.offset, window.size)
47
- : executionResult.readAll())
48
- .then((dataView) => {
49
- return base_1.DataViewFacade.for(dataView);
50
- })
51
- .catch((error) => {
52
- throw (0, base_1.convertError)(error);
53
- })
54
- : null,
55
- onCancel,
56
- onError,
57
- onLoading,
58
- onPending,
59
- onSuccess,
60
- }, [
61
- backend,
62
- workspace,
63
- (_a = preparedExecution === null || preparedExecution === void 0 ? void 0 : preparedExecution.fingerprint()) !== null && _a !== void 0 ? _a : "__executionFingerprint__",
64
- (_b = window === null || window === void 0 ? void 0 : window.offset) !== null && _b !== void 0 ? _b : "__offset__",
65
- (_c = window === null || window === void 0 ? void 0 : window.size) !== null && _c !== void 0 ? _c : "__size__",
66
- ...effectiveDeps,
67
- ]);
68
- }
69
- exports.useExecutionDataView = useExecutionDataView;
70
- /**
71
- * @internal
72
- */
73
- function getExecutionConfigurationProps(execution) {
74
- if (isExecutionConfiguration(execution)) {
75
- return execution;
76
- }
77
- return {};
78
- }
79
- //# sourceMappingURL=useExecutionDataView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useExecutionDataView.js","sourceRoot":"","sources":["../../src/execution/useExecutionDataView.ts"],"names":[],"mappings":";;;;AAGA,kCAeiB;AACjB,qEAAqC;AACrC,uDAAoD;AAmDpD;;GAEG;AACH,SAAS,wBAAwB,CAAC,GAAY;IAC1C,OAAO,CAAC,IAAA,iBAAO,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,GAA+B,aAA/B,GAAG,uBAAH,GAAG,CAA8B,QAAQ,CAAA,CAAC;AACzE,CAAC;AAgDD;;;;GAIG;AACH,SAAgB,oBAAoB,CAChC,MAAmE,EACnE,IAA2B;;IAE3B,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IACzF,MAAM,OAAO,GAAG,IAAA,uBAAgB,EAAC,MAAM,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC;IACzE,MAAM,SAAS,GAAG,IAAA,yBAAkB,EAAC,MAAM,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC;IAC/E,MAAM,aAAa,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,8BAA8B,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACxE,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,IAAA,uCAAgC,EAClF;QACI,cAAc,CAAC,QAAQ;QACvB,cAAc,CAAC,QAAQ;QACvB,cAAc,CAAC,MAAM;QACrB,cAAc,CAAC,OAAO;QACtB,cAAc,CAAC,MAAM;KACxB,EACD,cAAc,CAAC,6BAA6B,CAC/C,CAAC;IAEF,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,SAAS,CAAC;QACzD,CAAC,CAAC,IAAA,iCAAe,kCACR,SAAS,KACZ,QAAQ,EAAE,QAAS,EACnB,QAAQ;YACR,MAAM;YACN,OAAO;YACP,MAAM;YACN,OAAO;YACP,SAAS,IACX;QACJ,CAAC,CAAC,SAAS,CAAC;IAEhB,OAAO,IAAA,2BAAoB,EACvB;QACI,OAAO,EAAE,iBAAiB;YACtB,CAAC,CAAC,GAAG,EAAE,CACD,iBAAiB;iBACZ,OAAO,EAAE;iBACT,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE,CACtB,MAAM;gBACF,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC;gBACxD,CAAC,CAAC,eAAe,CAAC,OAAO,EAAE,CAClC;iBACA,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACf,OAAO,qBAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACxC,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBACb,MAAM,IAAA,mBAAY,EAAC,KAAK,CAAC,CAAC;YAC9B,CAAC,CAAC;YACZ,CAAC,CAAC,IAAI;QACV,QAAQ;QACR,OAAO;QACP,SAAS;QACT,SAAS;QACT,SAAS;KACZ,EACD;QACI,OAAO;QACP,SAAS;QACT,MAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,EAAE,mCAAI,0BAA0B;QAC9D,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,mCAAI,YAAY;QAC9B,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,mCAAI,UAAU;QAC1B,GAAG,aAAa;KACnB,CACJ,CAAC;AACN,CAAC;AAnED,oDAmEC;AAED;;GAEG;AACH,SAAS,8BAA8B,CACnC,SAAwD;IAExD,IAAI,wBAAwB,CAAC,SAAS,CAAC,EAAE;QACrC,OAAO,SAAS,CAAC;KACpB;IAED,OAAO,EAAE,CAAC;AACd,CAAC"}
@@ -1,32 +0,0 @@
1
- /// <reference types="react" />
2
- import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
3
- import { IInsight, ObjRef } from "@gooddata/sdk-model";
4
- import { UseCancelablePromiseState, GoodDataSdkError } from "../base";
5
- /**
6
- * @internal
7
- */
8
- export interface IUseInsightConfig {
9
- /**
10
- * Insight reference - when the reference is not provided, hook is locked in a "pending" state.
11
- */
12
- insight?: ObjRef;
13
- /**
14
- * Backend to work with.
15
- *
16
- * Note: the backend must come either from this property or from BackendContext. If you do not specify
17
- * backend here, then the executor MUST be rendered within an existing BackendContext.
18
- */
19
- backend?: IAnalyticalBackend;
20
- /**
21
- * Workspace where execution should be executed.
22
- *
23
- * Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
24
- * workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
25
- */
26
- workspace?: string;
27
- }
28
- /**
29
- * @internal
30
- */
31
- export declare function useInsight(config: IUseInsightConfig, deps?: React.DependencyList): UseCancelablePromiseState<IInsight, GoodDataSdkError>;
32
- //# sourceMappingURL=useInsight.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useInsight.d.ts","sourceRoot":"","sources":["../../src/execution/useInsight.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAkB,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAIH,yBAAyB,EACzB,gBAAgB,EACnB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,UAAU,CACtB,MAAM,EAAE,iBAAiB,EACzB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,GAC5B,yBAAyB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAYvD"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useInsight = void 0;
4
- const sdk_model_1 = require("@gooddata/sdk-model");
5
- const base_1 = require("../base");
6
- /**
7
- * @internal
8
- */
9
- function useInsight(config, deps) {
10
- const { insight } = config;
11
- const backend = (0, base_1.useBackendStrict)(config.backend, "useInsight");
12
- const workspace = (0, base_1.useWorkspaceStrict)(config.workspace, "useInsight");
13
- const promise = insight ? () => backend.workspace(workspace).insights().getInsight(insight) : null;
14
- return (0, base_1.useCancelablePromise)({ promise }, [
15
- backend,
16
- workspace,
17
- insight ? (0, sdk_model_1.objRefToString)(insight) : "__insightRef__",
18
- ...(deps !== null && deps !== void 0 ? deps : []),
19
- ]);
20
- }
21
- exports.useInsight = useInsight;
22
- //# sourceMappingURL=useInsight.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useInsight.js","sourceRoot":"","sources":["../../src/execution/useInsight.ts"],"names":[],"mappings":";;;AAEA,mDAAuE;AACvE,kCAMiB;AA4BjB;;GAEG;AACH,SAAgB,UAAU,CACtB,MAAyB,EACzB,IAA2B;IAE3B,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC3B,MAAM,OAAO,GAAG,IAAA,uBAAgB,EAAC,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAG,IAAA,yBAAkB,EAAC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;IACrE,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAEnG,OAAO,IAAA,2BAAoB,EAAC,EAAE,OAAO,EAAE,EAAE;QACrC,OAAO;QACP,SAAS;QACT,OAAO,CAAC,CAAC,CAAC,IAAA,0BAAc,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,gBAAgB;QACpD,GAAG,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;KAClB,CAAC,CAAC;AACP,CAAC;AAfD,gCAeC"}
@@ -1,88 +0,0 @@
1
- /// <reference types="react" />
2
- import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
3
- import { IDimension, IExecutionDefinition, INullableFilter, ISortItem, ObjRef } from "@gooddata/sdk-model";
4
- import { UseCancelablePromiseState, DataViewFacade, GoodDataSdkError, UseCancelablePromiseCallbacks } from "../base";
5
- import { DataViewWindow } from "./withExecutionLoading";
6
- /**
7
- * Configuration for {@link useInsightDataView} hook.
8
- *
9
- * @public
10
- */
11
- export interface IUseInsightDataViewConfig {
12
- /**
13
- * Reference to the insight for which you want to get the data view.
14
- *
15
- * @remarks
16
- * Note: When the reference or identifier is not provided, hook is locked in a "pending" state.
17
- */
18
- insight?: ObjRef;
19
- /**
20
- * Modify sorts on prepared insight execution, before it's executed.
21
- */
22
- sorts?: ISortItem[] | ((def: IExecutionDefinition) => ISortItem[]);
23
- /**
24
- * Modify dimensions on prepared insight execution, before it's executed.
25
- */
26
- dimensions?: IDimension[] | ((def: IExecutionDefinition) => IDimension[]);
27
- /**
28
- * Modify date formatting on prepared insight execution, before it's executed.
29
- */
30
- dateFormat?: string | ((def: IExecutionDefinition) => string);
31
- /**
32
- * Specify filters to merge with filters already defined in the insight.
33
- */
34
- filters?: INullableFilter[];
35
- /**
36
- * You can define only a specific "window" of data to load.
37
- *
38
- * @remarks
39
- * This is useful if you want to page data.
40
- */
41
- window?: DataViewWindow;
42
- /**
43
- * Indicates that the execution to obtain the data for the insight should be an 'execution by reference'.
44
- *
45
- * Execution by reference means that the useInsightDataView will ask analytical backend to compute results for an insight
46
- * which is stored on the backend by specifying link to the insight, additional filters and description how
47
- * to organize the data.
48
- *
49
- * Otherwise, a freeform execution is done, in which the InsightView will send to backend the full execution
50
- * definition of what to compute.
51
- *
52
- * This distinction is in place because some backends MAY want to prohibit users from doing freeform executions
53
- * and only allow computing data for set of insights created by admins.
54
- *
55
- * Note: the need for execute by reference is rare. You will typically be notified by the solution admin to use
56
- * this mode.
57
- */
58
- executeByReference?: boolean;
59
- /**
60
- * Backend to work with.
61
- *
62
- * @remarks
63
- * Note: the backend must come either from this property or from BackendContext. If you do not specify
64
- * backend here, then the executor MUST be rendered within an existing BackendContext.
65
- */
66
- backend?: IAnalyticalBackend;
67
- /**
68
- * Workspace where execution should be executed.
69
- *
70
- * @remarks
71
- * Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
72
- * workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
73
- */
74
- workspace?: string;
75
- }
76
- /**
77
- * Callbacks for {@link useInsightDataView} hook.
78
- *
79
- * @public
80
- */
81
- export type UseInsightDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
82
- /**
83
- * React hook to get data for a specific insight.
84
- *
85
- * @public
86
- */
87
- export declare function useInsightDataView(config: IUseInsightDataViewConfig & UseInsightDataViewCallbacks, deps?: React.DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
88
- //# sourceMappingURL=useInsightDataView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useInsightDataView.d.ts","sourceRoot":"","sources":["../../src/execution/useInsightDataView.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC3G,OAAO,EAKH,yBAAyB,EACzB,cAAc,EACd,gBAAgB,EAChB,6BAA6B,EAChC,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGxD;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,KAAK,SAAS,EAAE,CAAC,CAAC;IAEnE;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,KAAK,UAAU,EAAE,CAAC,CAAC;IAE1E;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,KAAK,MAAM,CAAC,CAAC;IAE9D;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAE5B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,6BAA6B,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAE1G;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,yBAAyB,GAAG,2BAA2B,EAC/D,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,GAC5B,yBAAyB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAoE7D"}
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useInsightDataView = void 0;
4
- const base_1 = require("../base");
5
- const useExecutionDataView_1 = require("./useExecutionDataView");
6
- const useInsight_1 = require("./useInsight");
7
- /**
8
- * React hook to get data for a specific insight.
9
- *
10
- * @public
11
- */
12
- function useInsightDataView(config, deps) {
13
- const { insight: insightRef, sorts, dateFormat, dimensions, filters, window, executeByReference, onCancel, onError, onLoading, onPending, onSuccess, } = config;
14
- const backend = (0, base_1.useBackendStrict)(config.backend, "useInsightDataView");
15
- const workspace = (0, base_1.useWorkspaceStrict)(config.workspace, "useInsightDataView");
16
- const effectiveDeps = deps !== null && deps !== void 0 ? deps : [];
17
- const insightPromise = (0, useInsight_1.useInsight)({ insight: insightRef, backend, workspace }, effectiveDeps);
18
- const executionFactory = backend.workspace(workspace).execution();
19
- const executeFn = (executeByReference ? executionFactory.forInsightByRef : executionFactory.forInsight).bind(executionFactory);
20
- let insightExecution = insightPromise.result && executeFn(insightPromise.result, filters);
21
- if (insightExecution) {
22
- if (sorts) {
23
- const resolvedSorts = typeof sorts === "function" ? sorts(insightExecution.definition) : sorts;
24
- insightExecution = insightExecution.withSorting(...resolvedSorts);
25
- }
26
- if (dimensions) {
27
- const resolvedDimensions = typeof dimensions === "function" ? dimensions(insightExecution.definition) : dimensions;
28
- insightExecution = insightExecution.withDimensions(...resolvedDimensions);
29
- }
30
- if (dateFormat) {
31
- const resolvedDateFormat = typeof dateFormat === "function" ? dateFormat(insightExecution.definition) : dateFormat;
32
- insightExecution = insightExecution.withDateFormat(resolvedDateFormat);
33
- }
34
- }
35
- const executionDataViewPromise = (0, useExecutionDataView_1.useExecutionDataView)({
36
- execution: insightExecution,
37
- window,
38
- backend,
39
- workspace,
40
- onCancel,
41
- onError,
42
- onLoading,
43
- onPending,
44
- onSuccess,
45
- }, deps);
46
- const cancelablePromises = [insightPromise, executionDataViewPromise];
47
- return {
48
- result: executionDataViewPromise.result,
49
- error: (0, base_1.resolveUseCancelablePromisesError)(cancelablePromises),
50
- status: (0, base_1.resolveUseCancelablePromisesStatus)(cancelablePromises),
51
- };
52
- }
53
- exports.useInsightDataView = useInsightDataView;
54
- //# sourceMappingURL=useInsightDataView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useInsightDataView.js","sourceRoot":"","sources":["../../src/execution/useInsightDataView.ts"],"names":[],"mappings":";;;AAGA,kCASiB;AACjB,iEAA8D;AAE9D,6CAA0C;AAwF1C;;;;GAIG;AACH,SAAgB,kBAAkB,CAC9B,MAA+D,EAC/D,IAA2B;IAE3B,MAAM,EACF,OAAO,EAAE,UAAU,EACnB,KAAK,EACL,UAAU,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACN,kBAAkB,EAClB,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,GACZ,GAAG,MAAM,CAAC;IACX,MAAM,OAAO,GAAG,IAAA,uBAAgB,EAAC,MAAM,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;IACvE,MAAM,SAAS,GAAG,IAAA,yBAAkB,EAAC,MAAM,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;IAC7E,MAAM,aAAa,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,IAAA,uBAAU,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,aAAa,CAAC,CAAC;IAE9F,MAAM,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,EAAE,CAAC;IAElE,MAAM,SAAS,GAAG,CACd,kBAAkB,CAAC,CAAC,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,gBAAgB,CAAC,UAAU,CACtF,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAEzB,IAAI,gBAAgB,GAAG,cAAc,CAAC,MAAM,IAAI,SAAS,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE1F,IAAI,gBAAgB,EAAE;QAClB,IAAI,KAAK,EAAE;YACP,MAAM,aAAa,GAAG,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YAC/F,gBAAgB,GAAG,gBAAgB,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC,CAAC;SACrE;QACD,IAAI,UAAU,EAAE;YACZ,MAAM,kBAAkB,GACpB,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;YAC5F,gBAAgB,GAAG,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC,CAAC;SAC7E;QACD,IAAI,UAAU,EAAE;YACZ,MAAM,kBAAkB,GACpB,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;YAC5F,gBAAgB,GAAG,gBAAgB,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC;SAC1E;KACJ;IAED,MAAM,wBAAwB,GAAG,IAAA,2CAAoB,EACjD;QACI,SAAS,EAAE,gBAAgB;QAC3B,MAAM;QACN,OAAO;QACP,SAAS;QACT,QAAQ;QACR,OAAO;QACP,SAAS;QACT,SAAS;QACT,SAAS;KACZ,EACD,IAAI,CACP,CAAC;IAEF,MAAM,kBAAkB,GAAG,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;IAEtE,OAAO;QACH,MAAM,EAAE,wBAAwB,CAAC,MAAM;QACvC,KAAK,EAAE,IAAA,wCAAiC,EAAC,kBAAkB,CAAC;QAC5D,MAAM,EAAE,IAAA,yCAAkC,EAAC,kBAAkB,CAAC;KACF,CAAC;AACrE,CAAC;AAvED,gDAuEC"}
@@ -1,59 +0,0 @@
1
- /// <reference types="react" />
2
- import { IPreparedExecution } from "@gooddata/sdk-backend-spi";
3
- import { IWithLoadingEvents, WithLoadingResult, DataViewWindow } from "./withExecutionLoading";
4
- /**
5
- * Configuration for the withExecution HOC. All configuration parameters can be either actual parameter values
6
- * or functions to obtain them from the wrapped component props.
7
- *
8
- * If functions are specified, the HOC will call them with the wrapped component props as parameter and then use
9
- * the resulting values as if they were passed directly.
10
- *
11
- * @internal
12
- */
13
- export interface IWithExecution<T> {
14
- /**
15
- * Specify execution that the HOC will drive.
16
- */
17
- execution: IPreparedExecution | ((props: T) => IPreparedExecution) | ((props: T) => Promise<IPreparedExecution>);
18
- /**
19
- * Specify export title that will be used unless the export function caller sends their own custom title.
20
- *
21
- * @param props - props to retrieve export title from
22
- */
23
- exportTitle: string | ((props: T) => string);
24
- /**
25
- * Customize data window to load.
26
- *
27
- * By default the HOC loads all the data available in the execution's result.
28
- */
29
- window?: DataViewWindow | ((props: T) => DataViewWindow | undefined);
30
- /**
31
- * Specify event callbacks which the HOC will trigger in different situations.
32
- */
33
- events?: IWithLoadingEvents<T> | ((props: T) => IWithLoadingEvents<T>);
34
- /**
35
- * Customize, whether execution & data loading should start as soon as component is mounted.
36
- *
37
- * @remarks
38
- * Default is true. When not loading on mount, the wrapped component can trigger the load by calling the
39
- * reload() function which the HOC injects into its props.
40
- */
41
- loadOnMount?: boolean | ((props: T) => boolean);
42
- /**
43
- * Specify function that will be called during component prop updates and will be used to
44
- * determine whether execution should be re-run and data reloaded.
45
- *
46
- * @param prevProps - previous props
47
- * @param nextProps - next props
48
- */
49
- shouldRefetch?: (prevProps: T, nextProps: T) => boolean;
50
- }
51
- /**
52
- * A React HOC that for driving an execution to get data view that can be visualized.
53
- *
54
- * Note that if the resulting data is empty this will NOT throw a NoDataError.
55
- *
56
- * @internal
57
- */
58
- export declare function withExecution<T>(params: IWithExecution<T>): (WrappedComponent: React.ComponentType<T & WithLoadingResult>) => React.ComponentClass<T, any>;
59
- //# sourceMappingURL=withExecution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withExecution.d.ts","sourceRoot":"","sources":["../../src/execution/withExecution.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAiB,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAEH,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACjB,MAAM,wBAAwB,CAAC;AAGhC;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC7B;;OAEG;IACH,SAAS,EACH,kBAAkB,GAClB,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,kBAAkB,CAAC,GAClC,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAElD;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;IAE7C;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,cAAc,GAAG,SAAS,CAAC,CAAC;IAErE;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IAEvE;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC;IAEhD;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,OAAO,CAAC;CAC3D;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC3B,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GAC1B,CAAC,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,iBAAiB,CAAC,KAAK,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,GAAG,CAAC,CAgChG"}
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withExecution = void 0;
4
- // (C) 2019-2022 GoodData Corporation
5
- const sdk_backend_spi_1 = require("@gooddata/sdk-backend-spi");
6
- const withExecutionLoading_1 = require("./withExecutionLoading");
7
- const base_1 = require("../base");
8
- /**
9
- * A React HOC that for driving an execution to get data view that can be visualized.
10
- *
11
- * Note that if the resulting data is empty this will NOT throw a NoDataError.
12
- *
13
- * @internal
14
- */
15
- function withExecution(params) {
16
- const { execution, events, loadOnMount, shouldRefetch, window, exportTitle } = params;
17
- return (WrappedComponent) => {
18
- const withLoadingParams = {
19
- promiseFactory: async (props, window) => {
20
- const _execution = typeof execution === "function" ? await execution(props) : execution;
21
- const executionResult = await _execution.execute();
22
- try {
23
- const dataView = !window
24
- ? await executionResult.readAll()
25
- : await executionResult.readWindow(window.offset, window.size);
26
- return base_1.DataViewFacade.for(dataView);
27
- }
28
- catch (err) {
29
- // do not treat no data as error here to give the user a chance to decide if no data is ok or not
30
- if ((0, sdk_backend_spi_1.isNoDataError)(err) && err.dataView) {
31
- return base_1.DataViewFacade.for(err.dataView);
32
- }
33
- throw err;
34
- }
35
- },
36
- exportTitle,
37
- loadOnMount,
38
- events,
39
- shouldRefetch,
40
- window,
41
- };
42
- return (0, withExecutionLoading_1.withExecutionLoading)(withLoadingParams)(WrappedComponent);
43
- };
44
- }
45
- exports.withExecution = withExecution;
46
- //# sourceMappingURL=withExecution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withExecution.js","sourceRoot":"","sources":["../../src/execution/withExecution.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AACrC,+DAA8E;AAC9E,iEAKgC;AAChC,kCAAyC;AA0DzC;;;;;;GAMG;AACH,SAAgB,aAAa,CACzB,MAAyB;IAEzB,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAEtF,OAAO,CAAC,gBAA4D,EAAE,EAAE;QACpE,MAAM,iBAAiB,GAAG;YACtB,cAAc,EAAE,KAAK,EAAE,KAAQ,EAAE,MAAuB,EAAE,EAAE;gBACxD,MAAM,UAAU,GAAG,OAAO,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;gBACxF,MAAM,eAAe,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC;gBACnD,IAAI;oBACA,MAAM,QAAQ,GAAG,CAAC,MAAM;wBACpB,CAAC,CAAC,MAAM,eAAe,CAAC,OAAO,EAAE;wBACjC,CAAC,CAAC,MAAM,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;oBAEnE,OAAO,qBAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;iBACvC;gBAAC,OAAO,GAAG,EAAE;oBACV,iGAAiG;oBACjG,IAAI,IAAA,+BAAa,EAAC,GAAG,CAAC,IAAI,GAAG,CAAC,QAAQ,EAAE;wBACpC,OAAO,qBAAc,CAAC,GAAG,CAAC,GAAG,CAAC,QAAS,CAAC,CAAC;qBAC5C;oBAED,MAAM,GAAG,CAAC;iBACb;YACL,CAAC;YACD,WAAW;YACX,WAAW;YACX,MAAM;YACN,aAAa;YACb,MAAM;SACT,CAAC;QAEF,OAAO,IAAA,2CAAoB,EAAC,iBAAiB,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACrE,CAAC,CAAC;AACN,CAAC;AAlCD,sCAkCC"}