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

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 (604) 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/es-ES.json +3 -0
  42. package/esm/base/localization/bundles/fr-FR.json +3 -0
  43. package/esm/base/localization/bundles/ja-JP.json +3 -0
  44. package/esm/base/localization/bundles/nl-NL.json +3 -0
  45. package/esm/base/localization/bundles/pt-BR.json +3 -0
  46. package/esm/base/localization/bundles/pt-PT.json +3 -0
  47. package/esm/base/localization/bundles/ru-RU.json +3 -0
  48. package/esm/base/localization/bundles/zh-Hans.json +3 -0
  49. package/esm/base/localization/intlUtils.d.ts +2 -2
  50. package/esm/base/localization/intlUtils.d.ts.map +1 -1
  51. package/esm/base/localization/intlUtils.js +3 -3
  52. package/esm/base/localization/intlUtils.js.map +1 -1
  53. package/esm/base/measureFormats/fillMissingFormats.js +1 -1
  54. package/esm/base/measureFormats/fillMissingFormats.js.map +1 -1
  55. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +2 -2
  56. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +1 -1
  57. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js +2 -2
  58. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +1 -1
  59. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +2 -2
  60. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +1 -1
  61. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +3 -3
  62. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +1 -1
  63. package/esm/base/measureTitles/fillMissingTitles.d.ts +1 -1
  64. package/esm/base/measureTitles/fillMissingTitles.d.ts.map +1 -1
  65. package/esm/base/measureTitles/fillMissingTitles.js +3 -3
  66. package/esm/base/measureTitles/fillMissingTitles.js.map +1 -1
  67. package/esm/base/react/BackendContext.js +2 -2
  68. package/esm/base/react/BackendContext.js.map +1 -1
  69. package/esm/base/react/CancelablePromise.js +1 -1
  70. package/esm/base/react/CancelablePromise.js.map +1 -1
  71. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +3 -3
  72. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
  73. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +6 -6
  74. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
  75. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +1 -1
  76. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +1 -1
  77. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +2 -2
  78. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +1 -1
  79. package/esm/base/react/PromiseCache.js +2 -2
  80. package/esm/base/react/PromiseCache.js.map +1 -1
  81. package/esm/base/react/WorkspaceContext.js +2 -2
  82. package/esm/base/react/WorkspaceContext.js.map +1 -1
  83. package/esm/base/react/legacy/availableDrillTargets.d.ts +2 -2
  84. package/esm/base/react/legacy/availableDrillTargets.d.ts.map +1 -1
  85. package/esm/base/react/legacy/availableDrillTargets.js +2 -2
  86. package/esm/base/react/legacy/availableDrillTargets.js.map +1 -1
  87. package/esm/base/react/legacy/withEntireDataView.d.ts +2 -2
  88. package/esm/base/react/legacy/withEntireDataView.d.ts.map +1 -1
  89. package/esm/base/react/legacy/withEntireDataView.js +8 -8
  90. package/esm/base/react/legacy/withEntireDataView.js.map +1 -1
  91. package/esm/base/react/placeholders/aliases.d.ts +1 -1
  92. package/esm/base/react/placeholders/aliases.d.ts.map +1 -1
  93. package/esm/base/react/placeholders/base.js +1 -1
  94. package/esm/base/react/placeholders/base.js.map +1 -1
  95. package/esm/base/react/placeholders/context.d.ts +1 -1
  96. package/esm/base/react/placeholders/context.d.ts.map +1 -1
  97. package/esm/base/react/placeholders/context.js +1 -1
  98. package/esm/base/react/placeholders/context.js.map +1 -1
  99. package/esm/base/react/placeholders/factory.d.ts +1 -1
  100. package/esm/base/react/placeholders/factory.d.ts.map +1 -1
  101. package/esm/base/react/placeholders/factory.js +2 -2
  102. package/esm/base/react/placeholders/factory.js.map +1 -1
  103. package/esm/base/react/placeholders/hooks.d.ts +1 -1
  104. package/esm/base/react/placeholders/hooks.d.ts.map +1 -1
  105. package/esm/base/react/placeholders/hooks.js +4 -4
  106. package/esm/base/react/placeholders/hooks.js.map +1 -1
  107. package/esm/base/react/placeholders/resolve.d.ts +2 -2
  108. package/esm/base/react/placeholders/resolve.d.ts.map +1 -1
  109. package/esm/base/react/placeholders/resolve.js +2 -2
  110. package/esm/base/react/placeholders/resolve.js.map +1 -1
  111. package/esm/base/react/useCancelablePromise.js +4 -4
  112. package/esm/base/react/useCancelablePromise.js.map +1 -1
  113. package/esm/base/react/useCancelablePromiseUtils.d.ts +1 -1
  114. package/esm/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
  115. package/esm/base/react/useCancelablePromiseUtils.js +2 -2
  116. package/esm/base/react/useCancelablePromiseUtils.js.map +1 -1
  117. package/esm/base/react/usePagedResource.js +1 -1
  118. package/esm/base/react/usePagedResource.js.map +1 -1
  119. package/esm/base/react/usePromiseCache.js +1 -1
  120. package/esm/base/react/usePromiseCache.js.map +1 -1
  121. package/esm/base/react/withContexts.js +4 -4
  122. package/esm/base/react/withContexts.js.map +1 -1
  123. package/esm/base/results/dataAccess.d.ts +10 -11
  124. package/esm/base/results/dataAccess.d.ts.map +1 -1
  125. package/esm/base/results/dataAccessConfig.d.ts +3 -3
  126. package/esm/base/results/dataAccessConfig.d.ts.map +1 -1
  127. package/esm/base/results/dataAccessConfig.js +6 -6
  128. package/esm/base/results/dataAccessConfig.js.map +1 -1
  129. package/esm/base/results/facade.d.ts +5 -5
  130. package/esm/base/results/facade.d.ts.map +1 -1
  131. package/esm/base/results/facade.js +4 -4
  132. package/esm/base/results/facade.js.map +1 -1
  133. package/esm/base/results/internal/dataAccessDigest.js +2 -2
  134. package/esm/base/results/internal/dataAccessDigest.js.map +1 -1
  135. package/esm/base/results/internal/dataAccessImpl.d.ts +3 -3
  136. package/esm/base/results/internal/dataAccessImpl.d.ts.map +1 -1
  137. package/esm/base/results/internal/dataAccessImpl.js +10 -7
  138. package/esm/base/results/internal/dataAccessImpl.js.map +1 -1
  139. package/esm/base/results/internal/dataAccessMethods.d.ts +2 -2
  140. package/esm/base/results/internal/dataAccessMethods.d.ts.map +1 -1
  141. package/esm/base/results/internal/dataAccessMethods.js +2 -2
  142. package/esm/base/results/internal/dataAccessMethods.js.map +1 -1
  143. package/esm/base/results/internal/definitionMethods.js +1 -1
  144. package/esm/base/results/internal/definitionMethods.js.map +1 -1
  145. package/esm/base/results/internal/lazyInitArray.js +1 -1
  146. package/esm/base/results/internal/lazyInitArray.js.map +1 -1
  147. package/esm/base/results/internal/resultDataMethods.js +2 -2
  148. package/esm/base/results/internal/resultDataMethods.js.map +1 -1
  149. package/esm/base/results/internal/resultMetaMethods.d.ts.map +1 -1
  150. package/esm/base/results/internal/resultMetaMethods.js +4 -4
  151. package/esm/base/results/internal/resultMetaMethods.js.map +1 -1
  152. package/esm/base/results/internal/utils.d.ts +8 -1
  153. package/esm/base/results/internal/utils.d.ts.map +1 -1
  154. package/esm/base/results/internal/utils.js +11 -0
  155. package/esm/base/results/internal/utils.js.map +1 -1
  156. package/esm/base/vis/DrillEvents.d.ts +2 -2
  157. package/esm/base/vis/DrillEvents.d.ts.map +1 -1
  158. package/esm/base/vis/DrillEvents.js +2 -2
  159. package/esm/base/vis/DrillEvents.js.map +1 -1
  160. package/esm/base/vis/Events.d.ts +11 -2
  161. package/esm/base/vis/Events.d.ts.map +1 -1
  162. package/esm/base/vis/VisualizationProps.d.ts +4 -4
  163. package/esm/base/vis/VisualizationProps.d.ts.map +1 -1
  164. package/esm/base/vis/drilling.d.ts +4 -4
  165. package/esm/base/vis/drilling.d.ts.map +1 -1
  166. package/esm/base/vis/drilling.js +3 -3
  167. package/esm/base/vis/drilling.js.map +1 -1
  168. package/esm/base/vis/export.d.ts +2 -2
  169. package/esm/base/vis/export.d.ts.map +1 -1
  170. package/esm/execution/DataViewLoader.d.ts +2 -2
  171. package/esm/execution/DataViewLoader.d.ts.map +1 -1
  172. package/esm/execution/DataViewLoader.js +3 -3
  173. package/esm/execution/DataViewLoader.js.map +1 -1
  174. package/esm/execution/Execute.d.ts +3 -3
  175. package/esm/execution/Execute.d.ts.map +1 -1
  176. package/esm/execution/Execute.js +4 -4
  177. package/esm/execution/Execute.js.map +1 -1
  178. package/esm/execution/ExecuteInsight.d.ts +2 -2
  179. package/esm/execution/ExecuteInsight.d.ts.map +1 -1
  180. package/esm/execution/ExecuteInsight.js +4 -4
  181. package/esm/execution/ExecuteInsight.js.map +1 -1
  182. package/esm/execution/RawExecute.d.ts +2 -2
  183. package/esm/execution/RawExecute.d.ts.map +1 -1
  184. package/esm/execution/RawExecute.js +2 -2
  185. package/esm/execution/RawExecute.js.map +1 -1
  186. package/esm/execution/createExecution.js +3 -3
  187. package/esm/execution/createExecution.js.map +1 -1
  188. package/esm/execution/index.d.ts +10 -10
  189. package/esm/execution/index.d.ts.map +1 -1
  190. package/esm/execution/index.js +9 -9
  191. package/esm/execution/index.js.map +1 -1
  192. package/esm/execution/interfaces.d.ts +1 -1
  193. package/esm/execution/interfaces.d.ts.map +1 -1
  194. package/esm/execution/useDataExport.d.ts +1 -1
  195. package/esm/execution/useDataExport.d.ts.map +1 -1
  196. package/esm/execution/useDataExport.js +1 -1
  197. package/esm/execution/useDataExport.js.map +1 -1
  198. package/esm/execution/useExecutionDataView.d.ts +2 -2
  199. package/esm/execution/useExecutionDataView.d.ts.map +1 -1
  200. package/esm/execution/useExecutionDataView.js +3 -3
  201. package/esm/execution/useExecutionDataView.js.map +1 -1
  202. package/esm/execution/useInsight.d.ts +1 -1
  203. package/esm/execution/useInsight.d.ts.map +1 -1
  204. package/esm/execution/useInsight.js +1 -1
  205. package/esm/execution/useInsight.js.map +1 -1
  206. package/esm/execution/useInsightDataView.d.ts +2 -2
  207. package/esm/execution/useInsightDataView.d.ts.map +1 -1
  208. package/esm/execution/useInsightDataView.js +3 -3
  209. package/esm/execution/useInsightDataView.js.map +1 -1
  210. package/esm/execution/withExecution.d.ts +1 -1
  211. package/esm/execution/withExecution.d.ts.map +1 -1
  212. package/esm/execution/withExecution.js +2 -2
  213. package/esm/execution/withExecution.js.map +1 -1
  214. package/esm/execution/withExecutionLoading.d.ts +1 -1
  215. package/esm/execution/withExecutionLoading.d.ts.map +1 -1
  216. package/esm/execution/withExecutionLoading.js +2 -2
  217. package/esm/execution/withExecutionLoading.js.map +1 -1
  218. package/esm/index.d.ts +3 -3
  219. package/esm/index.d.ts.map +1 -1
  220. package/esm/index.js +3 -3
  221. package/esm/index.js.map +1 -1
  222. package/esm/kpi/FormattedNumber.d.ts +2 -2
  223. package/esm/kpi/FormattedNumber.d.ts.map +1 -1
  224. package/esm/kpi/FormattedNumber.js +3 -3
  225. package/esm/kpi/FormattedNumber.js.map +1 -1
  226. package/esm/kpi/Kpi.d.ts +4 -4
  227. package/esm/kpi/Kpi.d.ts.map +1 -1
  228. package/esm/kpi/Kpi.js +7 -7
  229. package/esm/kpi/Kpi.js.map +1 -1
  230. package/esm/kpi/KpiError.d.ts +1 -1
  231. package/esm/kpi/KpiError.d.ts.map +1 -1
  232. package/esm/kpi/index.d.ts +1 -1
  233. package/esm/kpi/index.d.ts.map +1 -1
  234. package/esm/kpi/index.js +1 -1
  235. package/esm/kpi/index.js.map +1 -1
  236. package/{dist → esm}/sdk-ui.d.ts +35 -18
  237. package/esm/tsdoc-metadata.json +1 -1
  238. package/package.json +29 -39
  239. package/dist/base/constants/bucketNames.d.ts +0 -33
  240. package/dist/base/constants/bucketNames.d.ts.map +0 -1
  241. package/dist/base/constants/bucketNames.js +0 -47
  242. package/dist/base/constants/bucketNames.js.map +0 -1
  243. package/dist/base/constants/colorPalette.d.ts +0 -7
  244. package/dist/base/constants/colorPalette.d.ts.map +0 -1
  245. package/dist/base/constants/colorPalette.js +0 -90
  246. package/dist/base/constants/colorPalette.js.map +0 -1
  247. package/dist/base/errors/GoodDataSdkError.d.ts +0 -245
  248. package/dist/base/errors/GoodDataSdkError.d.ts.map +0 -1
  249. package/dist/base/errors/GoodDataSdkError.js +0 -346
  250. package/dist/base/errors/GoodDataSdkError.js.map +0 -1
  251. package/dist/base/errors/errorHandling.d.ts +0 -46
  252. package/dist/base/errors/errorHandling.d.ts.map +0 -1
  253. package/dist/base/errors/errorHandling.js +0 -115
  254. package/dist/base/errors/errorHandling.js.map +0 -1
  255. package/dist/base/headerMatching/HeaderPredicate.d.ts +0 -26
  256. package/dist/base/headerMatching/HeaderPredicate.d.ts.map +0 -1
  257. package/dist/base/headerMatching/HeaderPredicate.js +0 -12
  258. package/dist/base/headerMatching/HeaderPredicate.js.map +0 -1
  259. package/dist/base/headerMatching/HeaderPredicateFactory.d.ts +0 -79
  260. package/dist/base/headerMatching/HeaderPredicateFactory.d.ts.map +0 -1
  261. package/dist/base/headerMatching/HeaderPredicateFactory.js +0 -276
  262. package/dist/base/headerMatching/HeaderPredicateFactory.js.map +0 -1
  263. package/dist/base/headerMatching/MappingHeader.d.ts +0 -55
  264. package/dist/base/headerMatching/MappingHeader.d.ts.map +0 -1
  265. package/dist/base/headerMatching/MappingHeader.js +0 -125
  266. package/dist/base/headerMatching/MappingHeader.js.map +0 -1
  267. package/dist/base/helpers/logging.d.ts +0 -5
  268. package/dist/base/helpers/logging.d.ts.map +0 -1
  269. package/dist/base/helpers/logging.js +0 -12
  270. package/dist/base/helpers/logging.js.map +0 -1
  271. package/dist/base/index.d.ts +0 -58
  272. package/dist/base/index.d.ts.map +0 -1
  273. package/dist/base/index.js +0 -217
  274. package/dist/base/index.js.map +0 -1
  275. package/dist/base/interfaces/OverTimeComparison.d.ts +0 -13
  276. package/dist/base/interfaces/OverTimeComparison.d.ts.map +0 -1
  277. package/dist/base/interfaces/OverTimeComparison.js +0 -13
  278. package/dist/base/interfaces/OverTimeComparison.js.map +0 -1
  279. package/dist/base/localization/IntlStore.d.ts +0 -21
  280. package/dist/base/localization/IntlStore.d.ts.map +0 -1
  281. package/dist/base/localization/IntlStore.js +0 -46
  282. package/dist/base/localization/IntlStore.js.map +0 -1
  283. package/dist/base/localization/IntlWrapper.d.ts +0 -13
  284. package/dist/base/localization/IntlWrapper.d.ts.map +0 -1
  285. package/dist/base/localization/IntlWrapper.js +0 -25
  286. package/dist/base/localization/IntlWrapper.js.map +0 -1
  287. package/dist/base/localization/Locale.d.ts +0 -25
  288. package/dist/base/localization/Locale.d.ts.map +0 -1
  289. package/dist/base/localization/Locale.js +0 -37
  290. package/dist/base/localization/Locale.js.map +0 -1
  291. package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts +0 -27
  292. package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts.map +0 -1
  293. package/dist/base/localization/TranslationsCustomizationProvider/Context.js +0 -40
  294. package/dist/base/localization/TranslationsCustomizationProvider/Context.js.map +0 -1
  295. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +0 -54
  296. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +0 -1
  297. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +0 -49
  298. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +0 -1
  299. package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts +0 -4
  300. package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts.map +0 -1
  301. package/dist/base/localization/TranslationsCustomizationProvider/index.js +0 -16
  302. package/dist/base/localization/TranslationsCustomizationProvider/index.js.map +0 -1
  303. package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts +0 -24
  304. package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +0 -1
  305. package/dist/base/localization/TranslationsCustomizationProvider/utils.js +0 -74
  306. package/dist/base/localization/TranslationsCustomizationProvider/utils.js.map +0 -1
  307. package/dist/base/localization/TranslationsProvider.d.ts +0 -33
  308. package/dist/base/localization/TranslationsProvider.d.ts.map +0 -1
  309. package/dist/base/localization/TranslationsProvider.js +0 -31
  310. package/dist/base/localization/TranslationsProvider.js.map +0 -1
  311. package/dist/base/localization/bundles/de-DE.json +0 -371
  312. package/dist/base/localization/bundles/en-US.json +0 -1964
  313. package/dist/base/localization/bundles/es-ES.json +0 -371
  314. package/dist/base/localization/bundles/fr-FR.json +0 -371
  315. package/dist/base/localization/bundles/ja-JP.json +0 -371
  316. package/dist/base/localization/bundles/nl-NL.json +0 -371
  317. package/dist/base/localization/bundles/pt-BR.json +0 -371
  318. package/dist/base/localization/bundles/pt-PT.json +0 -371
  319. package/dist/base/localization/bundles/ru-RU.json +0 -371
  320. package/dist/base/localization/bundles/zh-Hans.json +0 -371
  321. package/dist/base/localization/intlUtils.d.ts +0 -33
  322. package/dist/base/localization/intlUtils.d.ts.map +0 -1
  323. package/dist/base/localization/intlUtils.js +0 -65
  324. package/dist/base/localization/intlUtils.js.map +0 -1
  325. package/dist/base/localization/messagesMap.d.ts +0 -13
  326. package/dist/base/localization/messagesMap.d.ts.map +0 -1
  327. package/dist/base/localization/messagesMap.js +0 -32
  328. package/dist/base/localization/messagesMap.js.map +0 -1
  329. package/dist/base/measureFormats/fillMissingFormat.d.ts +0 -12
  330. package/dist/base/measureFormats/fillMissingFormat.d.ts.map +0 -1
  331. package/dist/base/measureFormats/fillMissingFormat.js +0 -27
  332. package/dist/base/measureFormats/fillMissingFormat.js.map +0 -1
  333. package/dist/base/measureFormats/fillMissingFormats.d.ts +0 -12
  334. package/dist/base/measureFormats/fillMissingFormats.d.ts.map +0 -1
  335. package/dist/base/measureFormats/fillMissingFormats.js +0 -20
  336. package/dist/base/measureFormats/fillMissingFormats.js.map +0 -1
  337. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +0 -32
  338. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +0 -1
  339. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js +0 -69
  340. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +0 -1
  341. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +0 -28
  342. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +0 -1
  343. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +0 -49
  344. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +0 -1
  345. package/dist/base/measureTitles/MeasureTitle.d.ts +0 -21
  346. package/dist/base/measureTitles/MeasureTitle.d.ts.map +0 -1
  347. package/dist/base/measureTitles/MeasureTitle.js +0 -3
  348. package/dist/base/measureTitles/MeasureTitle.js.map +0 -1
  349. package/dist/base/measureTitles/fillMissingTitles.d.ts +0 -23
  350. package/dist/base/measureTitles/fillMissingTitles.d.ts.map +0 -1
  351. package/dist/base/measureTitles/fillMissingTitles.js +0 -157
  352. package/dist/base/measureTitles/fillMissingTitles.js.map +0 -1
  353. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts +0 -14
  354. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts.map +0 -1
  355. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js +0 -32
  356. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js.map +0 -1
  357. package/dist/base/react/BackendContext.d.ts +0 -78
  358. package/dist/base/react/BackendContext.d.ts.map +0 -1
  359. package/dist/base/react/BackendContext.js +0 -89
  360. package/dist/base/react/BackendContext.js.map +0 -1
  361. package/dist/base/react/CancelablePromise.d.ts +0 -38
  362. package/dist/base/react/CancelablePromise.d.ts.map +0 -1
  363. package/dist/base/react/CancelablePromise.js +0 -82
  364. package/dist/base/react/CancelablePromise.js.map +0 -1
  365. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +0 -116
  366. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +0 -1
  367. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +0 -134
  368. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +0 -1
  369. package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts +0 -35
  370. package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts.map +0 -1
  371. package/dist/base/react/ClientWorkspaceContext/interfaces.js +0 -4
  372. package/dist/base/react/ClientWorkspaceContext/interfaces.js.map +0 -1
  373. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +0 -17
  374. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +0 -1
  375. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +0 -76
  376. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +0 -1
  377. package/dist/base/react/ErrorComponent.d.ts +0 -35
  378. package/dist/base/react/ErrorComponent.d.ts.map +0 -1
  379. package/dist/base/react/ErrorComponent.js +0 -90
  380. package/dist/base/react/ErrorComponent.js.map +0 -1
  381. package/dist/base/react/LoadingComponent.d.ts +0 -28
  382. package/dist/base/react/LoadingComponent.d.ts.map +0 -1
  383. package/dist/base/react/LoadingComponent.js +0 -81
  384. package/dist/base/react/LoadingComponent.js.map +0 -1
  385. package/dist/base/react/PromiseCache.d.ts +0 -21
  386. package/dist/base/react/PromiseCache.d.ts.map +0 -1
  387. package/dist/base/react/PromiseCache.js +0 -66
  388. package/dist/base/react/PromiseCache.js.map +0 -1
  389. package/dist/base/react/WorkspaceContext.d.ts +0 -77
  390. package/dist/base/react/WorkspaceContext.d.ts.map +0 -1
  391. package/dist/base/react/WorkspaceContext.js +0 -89
  392. package/dist/base/react/WorkspaceContext.js.map +0 -1
  393. package/dist/base/react/legacy/availableDrillTargets.d.ts +0 -12
  394. package/dist/base/react/legacy/availableDrillTargets.d.ts.map +0 -1
  395. package/dist/base/react/legacy/availableDrillTargets.js +0 -49
  396. package/dist/base/react/legacy/availableDrillTargets.js.map +0 -1
  397. package/dist/base/react/legacy/withEntireDataView.d.ts +0 -51
  398. package/dist/base/react/legacy/withEntireDataView.d.ts.map +0 -1
  399. package/dist/base/react/legacy/withEntireDataView.js +0 -171
  400. package/dist/base/react/legacy/withEntireDataView.js.map +0 -1
  401. package/dist/base/react/placeholders/aliases.d.ts +0 -92
  402. package/dist/base/react/placeholders/aliases.d.ts.map +0 -1
  403. package/dist/base/react/placeholders/aliases.js +0 -3
  404. package/dist/base/react/placeholders/aliases.js.map +0 -1
  405. package/dist/base/react/placeholders/base.d.ts +0 -279
  406. package/dist/base/react/placeholders/base.d.ts.map +0 -1
  407. package/dist/base/react/placeholders/base.js +0 -33
  408. package/dist/base/react/placeholders/base.js.map +0 -1
  409. package/dist/base/react/placeholders/context.d.ts +0 -36
  410. package/dist/base/react/placeholders/context.d.ts.map +0 -1
  411. package/dist/base/react/placeholders/context.js +0 -47
  412. package/dist/base/react/placeholders/context.js.map +0 -1
  413. package/dist/base/react/placeholders/factory.d.ts +0 -34
  414. package/dist/base/react/placeholders/factory.d.ts.map +0 -1
  415. package/dist/base/react/placeholders/factory.js +0 -45
  416. package/dist/base/react/placeholders/factory.js.map +0 -1
  417. package/dist/base/react/placeholders/hooks.d.ts +0 -70
  418. package/dist/base/react/placeholders/hooks.d.ts.map +0 -1
  419. package/dist/base/react/placeholders/hooks.js +0 -150
  420. package/dist/base/react/placeholders/hooks.js.map +0 -1
  421. package/dist/base/react/placeholders/resolve.d.ts +0 -30
  422. package/dist/base/react/placeholders/resolve.d.ts.map +0 -1
  423. package/dist/base/react/placeholders/resolve.js +0 -82
  424. package/dist/base/react/placeholders/resolve.js.map +0 -1
  425. package/dist/base/react/safeSerialize.d.ts +0 -9
  426. package/dist/base/react/safeSerialize.d.ts.map +0 -1
  427. package/dist/base/react/safeSerialize.js +0 -21
  428. package/dist/base/react/safeSerialize.js.map +0 -1
  429. package/dist/base/react/useCancelablePromise.d.ts +0 -99
  430. package/dist/base/react/useCancelablePromise.d.ts.map +0 -1
  431. package/dist/base/react/useCancelablePromise.js +0 -112
  432. package/dist/base/react/useCancelablePromise.js.map +0 -1
  433. package/dist/base/react/useCancelablePromiseUtils.d.ts +0 -48
  434. package/dist/base/react/useCancelablePromiseUtils.d.ts.map +0 -1
  435. package/dist/base/react/useCancelablePromiseUtils.js +0 -107
  436. package/dist/base/react/useCancelablePromiseUtils.js.map +0 -1
  437. package/dist/base/react/usePagedResource.d.ts +0 -21
  438. package/dist/base/react/usePagedResource.d.ts.map +0 -1
  439. package/dist/base/react/usePagedResource.js +0 -44
  440. package/dist/base/react/usePagedResource.js.map +0 -1
  441. package/dist/base/react/usePrevious.d.ts +0 -8
  442. package/dist/base/react/usePrevious.d.ts.map +0 -1
  443. package/dist/base/react/usePrevious.js +0 -20
  444. package/dist/base/react/usePrevious.js.map +0 -1
  445. package/dist/base/react/usePromiseCache.d.ts +0 -18
  446. package/dist/base/react/usePromiseCache.d.ts.map +0 -1
  447. package/dist/base/react/usePromiseCache.js +0 -61
  448. package/dist/base/react/usePromiseCache.js.map +0 -1
  449. package/dist/base/react/withContexts.d.ts +0 -11
  450. package/dist/base/react/withContexts.d.ts.map +0 -1
  451. package/dist/base/react/withContexts.js +0 -18
  452. package/dist/base/react/withContexts.js.map +0 -1
  453. package/dist/base/react/wrapDisplayName.d.ts +0 -7
  454. package/dist/base/react/wrapDisplayName.d.ts.map +0 -1
  455. package/dist/base/react/wrapDisplayName.js +0 -24
  456. package/dist/base/react/wrapDisplayName.js.map +0 -1
  457. package/dist/base/results/dataAccess.d.ts +0 -373
  458. package/dist/base/results/dataAccess.d.ts.map +0 -1
  459. package/dist/base/results/dataAccess.js +0 -3
  460. package/dist/base/results/dataAccess.js.map +0 -1
  461. package/dist/base/results/dataAccessConfig.d.ts +0 -42
  462. package/dist/base/results/dataAccessConfig.d.ts.map +0 -1
  463. package/dist/base/results/dataAccessConfig.js +0 -38
  464. package/dist/base/results/dataAccessConfig.js.map +0 -1
  465. package/dist/base/results/facade.d.ts +0 -95
  466. package/dist/base/results/facade.d.ts.map +0 -1
  467. package/dist/base/results/facade.js +0 -158
  468. package/dist/base/results/facade.js.map +0 -1
  469. package/dist/base/results/internal/dataAccessDigest.d.ts +0 -113
  470. package/dist/base/results/internal/dataAccessDigest.d.ts.map +0 -1
  471. package/dist/base/results/internal/dataAccessDigest.js +0 -143
  472. package/dist/base/results/internal/dataAccessDigest.js.map +0 -1
  473. package/dist/base/results/internal/dataAccessImpl.d.ts +0 -37
  474. package/dist/base/results/internal/dataAccessImpl.d.ts.map +0 -1
  475. package/dist/base/results/internal/dataAccessImpl.js +0 -381
  476. package/dist/base/results/internal/dataAccessImpl.js.map +0 -1
  477. package/dist/base/results/internal/dataAccessMethods.d.ts +0 -8
  478. package/dist/base/results/internal/dataAccessMethods.d.ts.map +0 -1
  479. package/dist/base/results/internal/dataAccessMethods.js +0 -122
  480. package/dist/base/results/internal/dataAccessMethods.js.map +0 -1
  481. package/dist/base/results/internal/definitionMethods.d.ts +0 -90
  482. package/dist/base/results/internal/definitionMethods.d.ts.map +0 -1
  483. package/dist/base/results/internal/definitionMethods.js +0 -82
  484. package/dist/base/results/internal/definitionMethods.js.map +0 -1
  485. package/dist/base/results/internal/lazyInitArray.d.ts +0 -15
  486. package/dist/base/results/internal/lazyInitArray.d.ts.map +0 -1
  487. package/dist/base/results/internal/lazyInitArray.js +0 -48
  488. package/dist/base/results/internal/lazyInitArray.js.map +0 -1
  489. package/dist/base/results/internal/resultDataMethods.d.ts +0 -82
  490. package/dist/base/results/internal/resultDataMethods.d.ts.map +0 -1
  491. package/dist/base/results/internal/resultDataMethods.js +0 -85
  492. package/dist/base/results/internal/resultDataMethods.js.map +0 -1
  493. package/dist/base/results/internal/resultMetaMethods.d.ts +0 -89
  494. package/dist/base/results/internal/resultMetaMethods.d.ts.map +0 -1
  495. package/dist/base/results/internal/resultMetaMethods.js +0 -145
  496. package/dist/base/results/internal/resultMetaMethods.js.map +0 -1
  497. package/dist/base/results/internal/utils.d.ts +0 -23
  498. package/dist/base/results/internal/utils.d.ts.map +0 -1
  499. package/dist/base/results/internal/utils.js +0 -42
  500. package/dist/base/results/internal/utils.js.map +0 -1
  501. package/dist/base/typings/subtract.d.ts +0 -5
  502. package/dist/base/typings/subtract.d.ts.map +0 -1
  503. package/dist/base/typings/subtract.js +0 -3
  504. package/dist/base/typings/subtract.js.map +0 -1
  505. package/dist/base/vis/DrillEvents.d.ts +0 -191
  506. package/dist/base/vis/DrillEvents.d.ts.map +0 -1
  507. package/dist/base/vis/DrillEvents.js +0 -42
  508. package/dist/base/vis/DrillEvents.js.map +0 -1
  509. package/dist/base/vis/Events.d.ts +0 -85
  510. package/dist/base/vis/Events.d.ts.map +0 -1
  511. package/dist/base/vis/Events.js +0 -3
  512. package/dist/base/vis/Events.js.map +0 -1
  513. package/dist/base/vis/VisualizationProps.d.ts +0 -94
  514. package/dist/base/vis/VisualizationProps.d.ts.map +0 -1
  515. package/dist/base/vis/VisualizationProps.js +0 -4
  516. package/dist/base/vis/VisualizationProps.js.map +0 -1
  517. package/dist/base/vis/drilling.d.ts +0 -30
  518. package/dist/base/vis/drilling.d.ts.map +0 -1
  519. package/dist/base/vis/drilling.js +0 -102
  520. package/dist/base/vis/drilling.js.map +0 -1
  521. package/dist/base/vis/export.d.ts +0 -21
  522. package/dist/base/vis/export.d.ts.map +0 -1
  523. package/dist/base/vis/export.js +0 -47
  524. package/dist/base/vis/export.js.map +0 -1
  525. package/dist/base/vis/visualizationTypes.d.ts +0 -76
  526. package/dist/base/vis/visualizationTypes.d.ts.map +0 -1
  527. package/dist/base/vis/visualizationTypes.js +0 -46
  528. package/dist/base/vis/visualizationTypes.js.map +0 -1
  529. package/dist/execution/DataViewLoader.d.ts +0 -70
  530. package/dist/execution/DataViewLoader.d.ts.map +0 -1
  531. package/dist/execution/DataViewLoader.js +0 -102
  532. package/dist/execution/DataViewLoader.js.map +0 -1
  533. package/dist/execution/Execute.d.ts +0 -134
  534. package/dist/execution/Execute.d.ts.map +0 -1
  535. package/dist/execution/Execute.js +0 -99
  536. package/dist/execution/Execute.js.map +0 -1
  537. package/dist/execution/ExecuteInsight.d.ts +0 -136
  538. package/dist/execution/ExecuteInsight.d.ts.map +0 -1
  539. package/dist/execution/ExecuteInsight.js +0 -99
  540. package/dist/execution/ExecuteInsight.js.map +0 -1
  541. package/dist/execution/RawExecute.d.ts +0 -86
  542. package/dist/execution/RawExecute.d.ts.map +0 -1
  543. package/dist/execution/RawExecute.js +0 -76
  544. package/dist/execution/RawExecute.js.map +0 -1
  545. package/dist/execution/createExecution.d.ts +0 -61
  546. package/dist/execution/createExecution.d.ts.map +0 -1
  547. package/dist/execution/createExecution.js +0 -57
  548. package/dist/execution/createExecution.js.map +0 -1
  549. package/dist/execution/index.d.ts +0 -11
  550. package/dist/execution/index.d.ts.map +0 -1
  551. package/dist/execution/index.js +0 -23
  552. package/dist/execution/index.js.map +0 -1
  553. package/dist/execution/interfaces.d.ts +0 -23
  554. package/dist/execution/interfaces.d.ts.map +0 -1
  555. package/dist/execution/interfaces.js +0 -3
  556. package/dist/execution/interfaces.js.map +0 -1
  557. package/dist/execution/useDataExport.d.ts +0 -27
  558. package/dist/execution/useDataExport.d.ts.map +0 -1
  559. package/dist/execution/useDataExport.js +0 -35
  560. package/dist/execution/useDataExport.js.map +0 -1
  561. package/dist/execution/useExecutionDataView.d.ts +0 -94
  562. package/dist/execution/useExecutionDataView.d.ts.map +0 -1
  563. package/dist/execution/useExecutionDataView.js +0 -79
  564. package/dist/execution/useExecutionDataView.js.map +0 -1
  565. package/dist/execution/useInsight.d.ts +0 -32
  566. package/dist/execution/useInsight.d.ts.map +0 -1
  567. package/dist/execution/useInsight.js +0 -22
  568. package/dist/execution/useInsight.js.map +0 -1
  569. package/dist/execution/useInsightDataView.d.ts +0 -88
  570. package/dist/execution/useInsightDataView.d.ts.map +0 -1
  571. package/dist/execution/useInsightDataView.js +0 -54
  572. package/dist/execution/useInsightDataView.js.map +0 -1
  573. package/dist/execution/withExecution.d.ts +0 -59
  574. package/dist/execution/withExecution.d.ts.map +0 -1
  575. package/dist/execution/withExecution.js +0 -46
  576. package/dist/execution/withExecution.js.map +0 -1
  577. package/dist/execution/withExecutionLoading.d.ts +0 -145
  578. package/dist/execution/withExecutionLoading.d.ts.map +0 -1
  579. package/dist/execution/withExecutionLoading.js +0 -157
  580. package/dist/execution/withExecutionLoading.js.map +0 -1
  581. package/dist/index.d.ts +0 -22
  582. package/dist/index.d.ts.map +0 -1
  583. package/dist/index.js +0 -22
  584. package/dist/index.js.map +0 -1
  585. package/dist/kpi/FormattedNumber.d.ts +0 -16
  586. package/dist/kpi/FormattedNumber.d.ts.map +0 -1
  587. package/dist/kpi/FormattedNumber.js +0 -18
  588. package/dist/kpi/FormattedNumber.js.map +0 -1
  589. package/dist/kpi/Kpi.d.ts +0 -65
  590. package/dist/kpi/Kpi.d.ts.map +0 -1
  591. package/dist/kpi/Kpi.js +0 -72
  592. package/dist/kpi/Kpi.js.map +0 -1
  593. package/dist/kpi/KpiError.d.ts +0 -7
  594. package/dist/kpi/KpiError.d.ts.map +0 -1
  595. package/dist/kpi/KpiError.js +0 -23
  596. package/dist/kpi/KpiError.js.map +0 -1
  597. package/dist/kpi/index.d.ts +0 -2
  598. package/dist/kpi/index.d.ts.map +0 -1
  599. package/dist/kpi/index.js +0 -7
  600. package/dist/kpi/index.js.map +0 -1
  601. package/dist/locales.d.ts +0 -3
  602. package/dist/locales.d.ts.map +0 -1
  603. package/dist/locales.js +0 -22
  604. package/dist/locales.js.map +0 -1
@@ -1,136 +0,0 @@
1
- import React from "react";
2
- import { DataViewWindow, IWithLoadingEvents, WithLoadingResult } from "./withExecutionLoading";
3
- import { IDimension, IExecutionDefinition, INullableFilter, ISortItem, ObjRef } from "@gooddata/sdk-model";
4
- import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
5
- import { IExecuteErrorComponent, IExecuteLoadingComponent } from "./interfaces";
6
- /**
7
- * Props of the {@link ExecuteInsight} component.
8
- * @public
9
- */
10
- export interface IExecuteInsightProps extends IWithLoadingEvents<IExecuteInsightProps> {
11
- /**
12
- * Backend to execute against.
13
- *
14
- * @remarks
15
- * Note: the backend must come either from this property or from BackendContext. If you do not specify
16
- * backend here, then the executor MUST be rendered within an existing BackendContext.
17
- */
18
- backend?: IAnalyticalBackend;
19
- /**
20
- * Workspace in whose context to perform the execution.
21
- *
22
- * @remarks
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
- * Reference to the insight for which you want to get the data view.
29
- */
30
- insight: ObjRef;
31
- /**
32
- * Modify sorts on prepared insight execution, before it's executed.
33
- */
34
- sorts?: ISortItem[] | ((def: IExecutionDefinition, props: IExecuteInsightProps) => ISortItem[]);
35
- /**
36
- * Modify dimensions on prepared insight execution, before it's executed.
37
- */
38
- dimensions?: IDimension[] | ((def: IExecutionDefinition, props: IExecuteInsightProps) => IDimension[]);
39
- /**
40
- * Modify date formatting on prepared insight execution, before it's executed.
41
- */
42
- dateFormat?: string | ((def: IExecutionDefinition, props: IExecuteInsightProps) => string);
43
- /**
44
- * Filters to apply on server side.
45
- */
46
- filters?: INullableFilter[];
47
- /**
48
- * Name to use for files exported from this component.
49
- *
50
- * @remarks
51
- * If you do not specify this, then the componentName will be used instead.
52
- *
53
- * Note: it is also possible to pass custom name to the export function that will be sent via the
54
- * onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
55
- * fashion.
56
- */
57
- exportTitle?: string;
58
- /**
59
- * Informative name of the component.
60
- *
61
- * @remarks
62
- * This value is sent as telemetry information together with the actual execution request. We recommend to set this
63
- * because it can be useful for diagnostic purposes.
64
- *
65
- * Defaults 'Execute'.
66
- */
67
- componentName?: string;
68
- /**
69
- * Specifies whether `Execute` should trigger execution and loading right after it is
70
- * mounted.
71
- *
72
- * @remarks
73
- * If not specified defaults to `true`.
74
- *
75
- * If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
76
- * to trigger the execution and loading.
77
- */
78
- loadOnMount?: boolean;
79
- /**
80
- * Specifies whether `Execute` should load all data from backend or just a particular window - specified by
81
- * offset and size of the window.
82
- *
83
- * @remarks
84
- * If not specified, all data will be loaded.
85
- */
86
- window?: DataViewWindow;
87
- /**
88
- * Indicates that the execution to obtain the data for the insight should be an 'execution by reference'.
89
- *
90
- * Execution by reference means that the ExecuteInsight will ask analytical backend to compute results for an insight
91
- * which is stored on the backend by specifying link to the insight, additional filters and description how
92
- * to organize the data.
93
- *
94
- * Otherwise, a freeform execution is done, in which the InsightView will send to backend the full execution
95
- * definition of what to compute.
96
- *
97
- * This distinction is in place because some backends MAY want to prohibit users from doing freeform executions
98
- * and only allow computing data for set of insights created by admins.
99
- *
100
- * Note: the need for execute by reference is rare. You will typically be notified by the solution admin to use
101
- * this mode.
102
- */
103
- executeByReference?: boolean;
104
- /**
105
- * Child component to which rendering is delegated.
106
- *
107
- * @remarks
108
- * This is a function that will be called every time state of execution and data loading changes.
109
- *
110
- * @param executionResult - execution result, indicating state and/or results
111
- */
112
- children: (executionResult: WithLoadingResult) => React.ReactElement | null;
113
- /**
114
- * Provide component for rendering of the loading state.
115
- *
116
- * @remarks
117
- * Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
118
- * will be called only with a successful result.
119
- */
120
- LoadingComponent?: IExecuteLoadingComponent;
121
- /**
122
- * Provide component for rendering of the error state.
123
- *
124
- * @remarks
125
- * Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
126
- * will be called only with a successful result.
127
- */
128
- ErrorComponent?: IExecuteErrorComponent;
129
- }
130
- /**
131
- * Gets data for a specific stored insight.
132
- *
133
- * @public
134
- */
135
- export declare const ExecuteInsight: React.ComponentType<IExecuteInsightProps>;
136
- //# sourceMappingURL=ExecuteInsight.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExecuteInsight.d.ts","sourceRoot":"","sources":["../../src/execution/ExecuteInsight.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC3G,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAG/D,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAGhF;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB,CAAC,oBAAoB,CAAC;IAClF;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,oBAAoB,KAAK,SAAS,EAAE,CAAC,CAAC;IAEhG;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,oBAAoB,KAAK,UAAU,EAAE,CAAC,CAAC;IAEvG;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,oBAAoB,KAAK,MAAM,CAAC,CAAC;IAE3F;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAE5B;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,eAAe,EAAE,iBAAiB,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAE5E;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;IAE5C;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;CAC3C;AAmCD;;;;GAIG;AACH,eAAO,MAAM,cAAc,2CA4F1B,CAAC"}
@@ -1,99 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExecuteInsight = void 0;
4
- const tslib_1 = require("tslib");
5
- // (C) 2019-2022 GoodData Corporation
6
- const react_1 = tslib_1.__importDefault(require("react"));
7
- const withExecution_1 = require("./withExecution");
8
- const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
9
- const base_1 = require("../base");
10
- const ts_invariant_1 = tslib_1.__importDefault(require("ts-invariant"));
11
- const CoreExecute = (props) => {
12
- const { children, error, isLoading, reload, result, LoadingComponent, ErrorComponent } = props;
13
- if (ErrorComponent && error) {
14
- return react_1.default.createElement(ErrorComponent, { error: error });
15
- }
16
- if (LoadingComponent && isLoading) {
17
- return react_1.default.createElement(LoadingComponent, null);
18
- }
19
- if (LoadingComponent && ErrorComponent && !result) {
20
- return null;
21
- }
22
- return children({
23
- error,
24
- isLoading,
25
- reload,
26
- result,
27
- });
28
- };
29
- function componentName(props) {
30
- return props.componentName || "ExecuteInsight";
31
- }
32
- function exportTitle(props) {
33
- return props.exportTitle || componentName(props);
34
- }
35
- /**
36
- * Gets data for a specific stored insight.
37
- *
38
- * @public
39
- */
40
- exports.ExecuteInsight = (0, base_1.withContexts)((0, withExecution_1.withExecution)({
41
- exportTitle,
42
- execution: async (props) => {
43
- const { insight: insightRef, filters, sorts, dimensions, dateFormat, backend, workspace, executeByReference, } = props;
44
- (0, ts_invariant_1.default)(backend, "The backend in ExecuteInsight must be defined. Either pass it as a prop or make sure there is a BackendProvider up the component tree.");
45
- (0, ts_invariant_1.default)(workspace, "The workspace in ExecuteInsight must be defined. Either pass it as a prop or make sure there is a WorkspaceProvider up the component tree.");
46
- const insight = await backend.workspace(workspace).insights().getInsight(insightRef);
47
- const executionFactory = backend.workspace(workspace).execution();
48
- const executeFn = (executeByReference ? executionFactory.forInsightByRef : executionFactory.forInsight).bind(executionFactory);
49
- let insightExecution = executeFn(insight, filters);
50
- if (sorts) {
51
- const resolvedSorts = typeof sorts === "function" ? sorts(insightExecution.definition, props) : sorts;
52
- insightExecution = insightExecution.withSorting(...resolvedSorts);
53
- }
54
- if (dimensions) {
55
- const resolvedDimensions = typeof dimensions === "function"
56
- ? dimensions(insightExecution.definition, props)
57
- : dimensions;
58
- insightExecution = insightExecution.withDimensions(...resolvedDimensions);
59
- }
60
- if (dateFormat) {
61
- const resolvedDateFormat = typeof dateFormat === "function"
62
- ? dateFormat(insightExecution.definition, props)
63
- : dateFormat;
64
- insightExecution = insightExecution.withDateFormat(resolvedDateFormat);
65
- }
66
- return insightExecution;
67
- },
68
- events: (props) => {
69
- const { onError, onLoadingChanged, onLoadingFinish, onLoadingStart, onExportReady } = props;
70
- return {
71
- onError,
72
- onLoadingChanged,
73
- onLoadingFinish,
74
- onLoadingStart,
75
- onExportReady,
76
- };
77
- },
78
- shouldRefetch: (prevProps, nextProps) => {
79
- const relevantProps = [
80
- "onError",
81
- "onLoadingChanged",
82
- "onLoadingFinish",
83
- "onLoadingStart",
84
- ];
85
- const relevantPropsDeepEqual = [
86
- "insight",
87
- "filters",
88
- "window",
89
- ];
90
- return (relevantProps.some((propName) => prevProps[propName] !== nextProps[propName]) ||
91
- relevantPropsDeepEqual.some((propName) => !(0, isEqual_1.default)(prevProps[propName], nextProps[propName])));
92
- },
93
- loadOnMount: (props) => {
94
- const { loadOnMount = true } = props !== null && props !== void 0 ? props : {};
95
- return loadOnMount;
96
- },
97
- window: (props) => props.window,
98
- })(CoreExecute));
99
- //# sourceMappingURL=ExecuteInsight.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExecuteInsight.js","sourceRoot":"","sources":["../../src/execution/ExecuteInsight.tsx"],"names":[],"mappings":"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"}
@@ -1,86 +0,0 @@
1
- import React from "react";
2
- import { IPreparedExecution } from "@gooddata/sdk-backend-spi";
3
- import { WithLoadingResult, IWithLoadingEvents, DataViewWindow } from "./withExecutionLoading";
4
- import { IExecuteErrorComponent, IExecuteLoadingComponent } from "./interfaces";
5
- /**
6
- * Props of the {@link RawExecute} component.
7
- * @public
8
- */
9
- export interface IRawExecuteProps extends IWithLoadingEvents<IRawExecuteProps> {
10
- /**
11
- * Prepared execution which the executor will drive to completion and will obtain data from.
12
- */
13
- execution: IPreparedExecution;
14
- /**
15
- * Specifies whether {@link RawExecute} should load all data from backend or just a particular window - specified by
16
- * offset and size of the window.
17
- *
18
- * @remarks
19
- * If not specified, all data will be loaded.
20
- */
21
- window?: DataViewWindow;
22
- /**
23
- * Name to use for files exported from this component.
24
- *
25
- * @remarks
26
- * If you do not specify this, then the 'RawExecute' will be used instead.
27
- *
28
- * Note: it is also possible to pass custom name to the export function that will be sent via the
29
- * onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
30
- * fashion.
31
- */
32
- exportTitle?: string;
33
- /**
34
- * Indicates whether the executor should trigger execution and loading right after it is
35
- * mounted.
36
- *
37
- * @remarks
38
- * If not specified defaults to `true`.
39
- *
40
- * If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
41
- * to trigger the execution and loading.
42
- */
43
- loadOnMount?: boolean;
44
- /**
45
- * Child component to which rendering is delegated.
46
- *
47
- * @remarks
48
- * This is a function that will be called every time state of execution and data loading changes.
49
- *
50
- * @param executionResult - execution result, indicating state and/or results
51
- */
52
- children: (executionResult: WithLoadingResult) => React.ReactElement | null;
53
- /**
54
- * Provide component for rendering of the loading state.
55
- *
56
- * @remarks
57
- * Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
58
- * will be called only with a successful result.
59
- */
60
- LoadingComponent?: IExecuteLoadingComponent;
61
- /**
62
- * Provide component for rendering of the error state.
63
- *
64
- * @remarks
65
- * Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
66
- * will be called only with a successful result.
67
- */
68
- ErrorComponent?: IExecuteErrorComponent;
69
- }
70
- /**
71
- * Raw executor is the most basic React component to drive custom executions to obtain
72
- * data from backends.
73
- *
74
- * @remarks
75
- * The component accepts an instance of prepared execution and drives all the necessary
76
- * APIs and boilerplate needed to obtain a {@link DataViewFacade}.
77
- * Note that if the resulting data is empty this will NOT throw a {@link @gooddata/sdk-backend-spi#NoDataError}.
78
- * It is the responsibility of the child component to handle that if they need to.
79
- *
80
- * The rendering is delegated to a child component. This will be called every time the
81
- * state of the loading changes.
82
- *
83
- * @public
84
- */
85
- export declare const RawExecute: React.ComponentClass<IRawExecuteProps, any>;
86
- //# sourceMappingURL=RawExecute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RawExecute.d.ts","sourceRoot":"","sources":["../../src/execution/RawExecute.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE/F,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAEhF;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB,CAAC,gBAAgB,CAAC;IAC1E;;OAEG;IACH,SAAS,EAAE,kBAAkB,CAAC;IAE9B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,eAAe,EAAE,iBAAiB,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAE5E;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;IAE5C;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;CAC3C;AA+BD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,6CAoCP,CAAC"}
@@ -1,76 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RawExecute = void 0;
4
- const tslib_1 = require("tslib");
5
- // (C) 2019-2022 GoodData Corporation
6
- const react_1 = tslib_1.__importDefault(require("react"));
7
- const withExecution_1 = require("./withExecution");
8
- const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
9
- const CoreExecutor = (props) => {
10
- const { children, error, isLoading, reload, result, LoadingComponent, ErrorComponent } = props;
11
- if (ErrorComponent && error) {
12
- return react_1.default.createElement(ErrorComponent, { error: error });
13
- }
14
- if (LoadingComponent && isLoading) {
15
- return react_1.default.createElement(LoadingComponent, null);
16
- }
17
- if (LoadingComponent && ErrorComponent && !result) {
18
- return null;
19
- }
20
- return children({
21
- error,
22
- isLoading,
23
- reload,
24
- result,
25
- });
26
- };
27
- function exportTitle(props) {
28
- return props.exportTitle || "RawExecute";
29
- }
30
- /**
31
- * Raw executor is the most basic React component to drive custom executions to obtain
32
- * data from backends.
33
- *
34
- * @remarks
35
- * The component accepts an instance of prepared execution and drives all the necessary
36
- * APIs and boilerplate needed to obtain a {@link DataViewFacade}.
37
- * Note that if the resulting data is empty this will NOT throw a {@link @gooddata/sdk-backend-spi#NoDataError}.
38
- * It is the responsibility of the child component to handle that if they need to.
39
- *
40
- * The rendering is delegated to a child component. This will be called every time the
41
- * state of the loading changes.
42
- *
43
- * @public
44
- */
45
- exports.RawExecute = (0, withExecution_1.withExecution)({
46
- exportTitle,
47
- execution: (props) => props.execution,
48
- events: (props) => {
49
- const { onError, onLoadingChanged, onLoadingFinish, onLoadingStart, onExportReady } = props;
50
- return {
51
- onError,
52
- onLoadingChanged,
53
- onLoadingFinish,
54
- onLoadingStart,
55
- onExportReady,
56
- };
57
- },
58
- shouldRefetch: (prevProps, nextProps) => {
59
- const relevantProps = [
60
- "onError",
61
- "onLoadingChanged",
62
- "onLoadingFinish",
63
- "onLoadingStart",
64
- ];
65
- const relevantPropsDeepEqual = ["window"];
66
- return (relevantProps.some((propName) => prevProps[propName] !== nextProps[propName]) ||
67
- relevantPropsDeepEqual.some((propName) => !(0, isEqual_1.default)(prevProps[propName], nextProps[propName])) ||
68
- prevProps.execution.fingerprint() !== nextProps.execution.fingerprint());
69
- },
70
- loadOnMount: (props) => {
71
- const { loadOnMount = true } = props;
72
- return loadOnMount;
73
- },
74
- window: (props) => props.window,
75
- })(CoreExecutor);
76
- //# sourceMappingURL=RawExecute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RawExecute.js","sourceRoot":"","sources":["../../src/execution/RawExecute.tsx"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,0DAA0B;AAE1B,mDAAgD;AAEhD,qEAAqC;AA6ErC,MAAM,YAAY,GAAoB,CAAC,KAAY,EAAE,EAAE;IACnD,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAE/F,IAAI,cAAc,IAAI,KAAK,EAAE;QACzB,OAAO,8BAAC,cAAc,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;KAC3C;IAED,IAAI,gBAAgB,IAAI,SAAS,EAAE;QAC/B,OAAO,8BAAC,gBAAgB,OAAG,CAAC;KAC/B;IAED,IAAI,gBAAgB,IAAI,cAAc,IAAI,CAAC,MAAM,EAAE;QAC/C,OAAO,IAAI,CAAC;KACf;IAED,OAAO,QAAQ,CAAC;QACZ,KAAK;QACL,SAAS;QACT,MAAM;QACN,MAAM;KACT,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,SAAS,WAAW,CAAC,KAAuB;IACxC,OAAO,KAAK,CAAC,WAAW,IAAI,YAAY,CAAC;AAC7C,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACU,QAAA,UAAU,GAAG,IAAA,6BAAa,EAAmB;IACtD,WAAW;IACX,SAAS,EAAE,CAAC,KAAuB,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS;IACvD,MAAM,EAAE,CAAC,KAAuB,EAAE,EAAE;QAChC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;QAE5F,OAAO;YACH,OAAO;YACP,gBAAgB;YAChB,eAAe;YACf,cAAc;YACd,aAAa;SAChB,CAAC;IACN,CAAC;IACD,aAAa,EAAE,CAAC,SAA2B,EAAE,SAA2B,EAAE,EAAE;QACxE,MAAM,aAAa,GAAkC;YACjD,SAAS;YACT,kBAAkB;YAClB,iBAAiB;YACjB,gBAAgB;SACnB,CAAC;QAEF,MAAM,sBAAsB,GAAkC,CAAC,QAAQ,CAAC,CAAC;QAEzE,OAAO,CACH,aAAa,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,SAAS,CAAC,QAAQ,CAAC,CAAC;YAC7E,sBAAsB,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,IAAA,iBAAO,EAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC7F,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,KAAK,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAC1E,CAAC;IACN,CAAC;IACD,WAAW,EAAE,CAAC,KAAuB,EAAE,EAAE;QACrC,MAAM,EAAE,WAAW,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;QAErC,OAAO,WAAW,CAAC;IACvB,CAAC;IACD,MAAM,EAAE,CAAC,KAAuB,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM;CACpD,CAAC,CAAC,YAAY,CAAC,CAAC"}
@@ -1,61 +0,0 @@
1
- import { IAttribute, IAttributeOrMeasure, INullableFilter, ISortItem, ITotal } from "@gooddata/sdk-model";
2
- import { IAnalyticalBackend, IPreparedExecution } from "@gooddata/sdk-backend-spi";
3
- /**
4
- * @internal
5
- */
6
- export type CreateExecutionOptions = {
7
- /**
8
- * Backend to execute against.
9
- *
10
- * Note: the backend must come either from this property or from BackendContext. If you do not specify
11
- * backend here, then the executor MUST be rendered within an existing BackendContext.
12
- */
13
- backend?: IAnalyticalBackend;
14
- /**
15
- * Workspace in whose context to perform the execution.
16
- *
17
- * Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
18
- * workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
19
- */
20
- workspace?: string;
21
- /**
22
- * Data series will be built using the provided measures that are further scoped for
23
- * elements of the specified attributes.
24
- */
25
- seriesBy?: IAttributeOrMeasure[];
26
- /**
27
- * Slice all data series by elements of these attributes.
28
- */
29
- slicesBy?: IAttribute[];
30
- /**
31
- * Include these totals among the data slices.
32
- */
33
- totals?: ITotal[];
34
- /**
35
- * Filters to apply on server side.
36
- */
37
- filters?: INullableFilter[];
38
- /**
39
- * Sorting to apply on server side.
40
- */
41
- sortBy?: ISortItem[];
42
- /**
43
- * Informative name of the component.
44
- *
45
- * @remarks
46
- * This value is sent as telemetry information together
47
- * with the actual execution request. We recommend to set this because it can be useful for diagnostic
48
- * purposes.
49
- *
50
- * Defaults 'Execute'.
51
- */
52
- componentName?: string;
53
- };
54
- /**
55
- * Given execute props, this will prepare execution to send to backend.
56
- *
57
- * @param options - create execution options
58
- * @internal
59
- */
60
- export declare function createExecution(options: CreateExecutionOptions): IPreparedExecution;
61
- //# sourceMappingURL=createExecution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createExecution.d.ts","sourceRoot":"","sources":["../../src/execution/createExecution.ts"],"names":[],"mappings":"AACA,OAAO,EACH,UAAU,EACV,mBAAmB,EAEnB,eAAe,EAGf,SAAS,EACT,MAAM,EAIT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAKnF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAEjC;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAE5B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IAErB;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAuCF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,kBAAkB,CA2BnF"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createExecution = void 0;
4
- const tslib_1 = require("tslib");
5
- // (C) 2019-2022 GoodData Corporation
6
- const sdk_model_1 = require("@gooddata/sdk-model");
7
- const compact_1 = tslib_1.__importDefault(require("lodash/compact"));
8
- const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
9
- const ts_invariant_1 = tslib_1.__importDefault(require("ts-invariant"));
10
- /**
11
- * When caller desires just data series and no slicing, create a single-dim result.
12
- */
13
- function seriesOnlyDim(seriesBy) {
14
- return [
15
- (0, sdk_model_1.newDimension)((0, compact_1.default)([
16
- ...seriesBy.filter(sdk_model_1.isAttribute),
17
- // only include MeasureGroupIdentifier if there are some measures, otherwise the execution will always fail on the backend
18
- seriesBy.some(sdk_model_1.isMeasure) && sdk_model_1.MeasureGroupIdentifier,
19
- ])),
20
- ];
21
- }
22
- /**
23
- * When caller desires data series to be sliced further by some attributes (and perhaps with totals as well)
24
- * then create two-dim result resembling a pivot table:
25
- *
26
- * - slices are in rows (first dim)
27
- * - measures & scoping attributes will be in columns (second dim)
28
- */
29
- function seriesAndSlicesDim(seriesBy, slices, totals) {
30
- return (0, sdk_model_1.newTwoDimensional)([...slices, ...totals], (0, compact_1.default)([
31
- ...seriesBy.filter(sdk_model_1.isAttribute),
32
- // only include MeasureGroupIdentifier if there are some measures, otherwise the execution will always fail on the backend
33
- seriesBy.some(sdk_model_1.isMeasure) && sdk_model_1.MeasureGroupIdentifier,
34
- ]));
35
- }
36
- /**
37
- * Given execute props, this will prepare execution to send to backend.
38
- *
39
- * @param options - create execution options
40
- * @internal
41
- */
42
- function createExecution(options) {
43
- const { backend, workspace, seriesBy = [], slicesBy = [], filters = [], sortBy = [], totals = [], componentName = "Execution", } = options;
44
- (0, ts_invariant_1.default)(backend && workspace, "backend and workspace must be either specified explicitly or be provided by context");
45
- const dimensions = (0, isEmpty_1.default)(slicesBy)
46
- ? seriesOnlyDim(seriesBy)
47
- : seriesAndSlicesDim(seriesBy, slicesBy, totals);
48
- return backend
49
- .withTelemetry(componentName, options)
50
- .workspace(workspace)
51
- .execution()
52
- .forItems(seriesBy.concat(slicesBy), filters)
53
- .withSorting(...sortBy)
54
- .withDimensions(...dimensions);
55
- }
56
- exports.createExecution = createExecution;
57
- //# sourceMappingURL=createExecution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createExecution.js","sourceRoot":"","sources":["../../src/execution/createExecution.ts"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,mDAY6B;AAE7B,qEAAqC;AACrC,qEAAqC;AACrC,wEAAqC;AA6DrC;;GAEG;AACH,SAAS,aAAa,CAAC,QAA+B;IAClD,OAAO;QACH,IAAA,wBAAY,EACR,IAAA,iBAAO,EAAC;YACJ,GAAG,QAAQ,CAAC,MAAM,CAAC,uBAAW,CAAC;YAC/B,0HAA0H;YAC1H,QAAQ,CAAC,IAAI,CAAC,qBAAS,CAAC,IAAI,kCAAsB;SACrD,CAAC,CACL;KACJ,CAAC;AACN,CAAC;AAED;;;;;;GAMG;AACH,SAAS,kBAAkB,CACvB,QAA+B,EAC/B,MAAoB,EACpB,MAAgB;IAEhB,OAAO,IAAA,6BAAiB,EACpB,CAAC,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,EACtB,IAAA,iBAAO,EAAC;QACJ,GAAG,QAAQ,CAAC,MAAM,CAAC,uBAAW,CAAC;QAC/B,0HAA0H;QAC1H,QAAQ,CAAC,IAAI,CAAC,qBAAS,CAAC,IAAI,kCAAsB;KACrD,CAAC,CACL,CAAC;AACN,CAAC;AAED;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,OAA+B;IAC3D,MAAM,EACF,OAAO,EACP,SAAS,EACT,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,EAAE,EACb,OAAO,GAAG,EAAE,EACZ,MAAM,GAAG,EAAE,EACX,MAAM,GAAG,EAAE,EACX,aAAa,GAAG,WAAW,GAC9B,GAAG,OAAO,CAAC;IACZ,IAAA,sBAAS,EACL,OAAO,IAAI,SAAS,EACpB,qFAAqF,CACxF,CAAC;IAEF,MAAM,UAAU,GAAG,IAAA,iBAAO,EAAC,QAAQ,CAAC;QAChC,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC;QACzB,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAErD,OAAO,OAAO;SACT,aAAa,CAAC,aAAa,EAAE,OAAO,CAAC;SACrC,SAAS,CAAC,SAAS,CAAC;SACpB,SAAS,EAAE;SACX,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;SAC5C,WAAW,CAAC,GAAG,MAAM,CAAC;SACtB,cAAc,CAAC,GAAG,UAAU,CAAC,CAAC;AACvC,CAAC;AA3BD,0CA2BC"}
@@ -1,11 +0,0 @@
1
- export { withExecution, IWithExecution } from "./withExecution";
2
- export { withExecutionLoading, IWithExecutionLoading, IWithLoadingEvents, WithLoadingResult, DataViewWindow, } from "./withExecutionLoading";
3
- export { RawExecute, IRawExecuteProps } from "./RawExecute";
4
- export { Execute, IExecuteProps } from "./Execute";
5
- export { useDataExport, UseDataExportCallbacks, UseDataExportState } from "./useDataExport";
6
- export { IExecutionConfiguration, IUseExecutionDataViewConfig, UseExecutionDataViewCallbacks, useExecutionDataView, } from "./useExecutionDataView";
7
- export { IUseInsightDataViewConfig, UseInsightDataViewCallbacks, useInsightDataView, } from "./useInsightDataView";
8
- export { ExecuteInsight, IExecuteInsightProps } from "./ExecuteInsight";
9
- export { IExecuteErrorComponent, IExecuteErrorComponentProps, IExecuteLoadingComponent } from "./interfaces";
10
- export { DataViewLoader } from "./DataViewLoader";
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/execution/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EACH,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EACH,uBAAuB,EACvB,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACH,yBAAyB,EACzB,2BAA2B,EAC3B,kBAAkB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAC7G,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- // (C) 2020-2022 GoodData Corporation
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.DataViewLoader = exports.ExecuteInsight = exports.useInsightDataView = exports.useExecutionDataView = exports.useDataExport = exports.Execute = exports.RawExecute = exports.withExecutionLoading = exports.withExecution = void 0;
5
- var withExecution_1 = require("./withExecution");
6
- Object.defineProperty(exports, "withExecution", { enumerable: true, get: function () { return withExecution_1.withExecution; } });
7
- var withExecutionLoading_1 = require("./withExecutionLoading");
8
- Object.defineProperty(exports, "withExecutionLoading", { enumerable: true, get: function () { return withExecutionLoading_1.withExecutionLoading; } });
9
- var RawExecute_1 = require("./RawExecute");
10
- Object.defineProperty(exports, "RawExecute", { enumerable: true, get: function () { return RawExecute_1.RawExecute; } });
11
- var Execute_1 = require("./Execute");
12
- Object.defineProperty(exports, "Execute", { enumerable: true, get: function () { return Execute_1.Execute; } });
13
- var useDataExport_1 = require("./useDataExport");
14
- Object.defineProperty(exports, "useDataExport", { enumerable: true, get: function () { return useDataExport_1.useDataExport; } });
15
- var useExecutionDataView_1 = require("./useExecutionDataView");
16
- Object.defineProperty(exports, "useExecutionDataView", { enumerable: true, get: function () { return useExecutionDataView_1.useExecutionDataView; } });
17
- var useInsightDataView_1 = require("./useInsightDataView");
18
- Object.defineProperty(exports, "useInsightDataView", { enumerable: true, get: function () { return useInsightDataView_1.useInsightDataView; } });
19
- var ExecuteInsight_1 = require("./ExecuteInsight");
20
- Object.defineProperty(exports, "ExecuteInsight", { enumerable: true, get: function () { return ExecuteInsight_1.ExecuteInsight; } });
21
- var DataViewLoader_1 = require("./DataViewLoader");
22
- Object.defineProperty(exports, "DataViewLoader", { enumerable: true, get: function () { return DataViewLoader_1.DataViewLoader; } });
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/execution/index.ts"],"names":[],"mappings":";AAAA,qCAAqC;;;AAErC,iDAAgE;AAAvD,8GAAA,aAAa,OAAA;AACtB,+DAMgC;AAL5B,4HAAA,oBAAoB,OAAA;AAMxB,2CAA4D;AAAnD,wGAAA,UAAU,OAAA;AACnB,qCAAmD;AAA1C,kGAAA,OAAO,OAAA;AAChB,iDAA4F;AAAnF,8GAAA,aAAa,OAAA;AACtB,+DAKgC;AAD5B,4HAAA,oBAAoB,OAAA;AAExB,2DAI8B;AAD1B,wHAAA,kBAAkB,OAAA;AAEtB,mDAAwE;AAA/D,gHAAA,cAAc,OAAA;AAEvB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA"}
@@ -1,23 +0,0 @@
1
- import { ComponentType } from "react";
2
- import { GoodDataSdkError } from "../base";
3
- /**
4
- * Properties of the error component provided to Execute or RawExecute components
5
- * @public
6
- */
7
- export interface IExecuteErrorComponentProps {
8
- /**
9
- * Original error
10
- */
11
- error: GoodDataSdkError;
12
- }
13
- /**
14
- * Represents a loading component provided to Execute or RawExecute components
15
- * @public
16
- */
17
- export type IExecuteLoadingComponent = ComponentType;
18
- /**
19
- * Represents an error component provided to Execute or RawExecute components
20
- * @public
21
- */
22
- export type IExecuteErrorComponent = ComponentType<IExecuteErrorComponentProps>;
23
- //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/execution/interfaces.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,KAAK,EAAE,gBAAgB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,2BAA2B,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/execution/interfaces.ts"],"names":[],"mappings":""}