@gooddata/sdk-ui 9.0.0-alpha.8 → 9.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (591) 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 -58
  18. package/esm/base/index.d.ts.map +1 -1
  19. package/esm/base/index.js +48 -48
  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/en-US.json +1 -1
  41. package/esm/base/localization/intlUtils.d.ts +2 -2
  42. package/esm/base/localization/intlUtils.d.ts.map +1 -1
  43. package/esm/base/localization/intlUtils.js +3 -3
  44. package/esm/base/localization/intlUtils.js.map +1 -1
  45. package/esm/base/measureFormats/fillMissingFormats.js +1 -1
  46. package/esm/base/measureFormats/fillMissingFormats.js.map +1 -1
  47. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +2 -2
  48. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +1 -1
  49. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js +2 -2
  50. package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +1 -1
  51. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +2 -2
  52. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +1 -1
  53. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +3 -3
  54. package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +1 -1
  55. package/esm/base/measureTitles/fillMissingTitles.d.ts +1 -1
  56. package/esm/base/measureTitles/fillMissingTitles.d.ts.map +1 -1
  57. package/esm/base/measureTitles/fillMissingTitles.js +3 -3
  58. package/esm/base/measureTitles/fillMissingTitles.js.map +1 -1
  59. package/esm/base/react/BackendContext.js +2 -2
  60. package/esm/base/react/BackendContext.js.map +1 -1
  61. package/esm/base/react/CancelablePromise.js +1 -1
  62. package/esm/base/react/CancelablePromise.js.map +1 -1
  63. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +3 -3
  64. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
  65. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +6 -6
  66. package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
  67. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +1 -1
  68. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +1 -1
  69. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +2 -2
  70. package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +1 -1
  71. package/esm/base/react/PromiseCache.js +2 -2
  72. package/esm/base/react/PromiseCache.js.map +1 -1
  73. package/esm/base/react/WorkspaceContext.js +2 -2
  74. package/esm/base/react/WorkspaceContext.js.map +1 -1
  75. package/esm/base/react/legacy/availableDrillTargets.d.ts +2 -2
  76. package/esm/base/react/legacy/availableDrillTargets.d.ts.map +1 -1
  77. package/esm/base/react/legacy/availableDrillTargets.js +2 -2
  78. package/esm/base/react/legacy/availableDrillTargets.js.map +1 -1
  79. package/esm/base/react/legacy/withEntireDataView.d.ts +2 -2
  80. package/esm/base/react/legacy/withEntireDataView.d.ts.map +1 -1
  81. package/esm/base/react/legacy/withEntireDataView.js +8 -8
  82. package/esm/base/react/legacy/withEntireDataView.js.map +1 -1
  83. package/esm/base/react/placeholders/aliases.d.ts +1 -1
  84. package/esm/base/react/placeholders/aliases.d.ts.map +1 -1
  85. package/esm/base/react/placeholders/base.js +1 -1
  86. package/esm/base/react/placeholders/base.js.map +1 -1
  87. package/esm/base/react/placeholders/context.d.ts +1 -1
  88. package/esm/base/react/placeholders/context.d.ts.map +1 -1
  89. package/esm/base/react/placeholders/context.js +1 -1
  90. package/esm/base/react/placeholders/context.js.map +1 -1
  91. package/esm/base/react/placeholders/factory.d.ts +1 -1
  92. package/esm/base/react/placeholders/factory.d.ts.map +1 -1
  93. package/esm/base/react/placeholders/factory.js +2 -2
  94. package/esm/base/react/placeholders/factory.js.map +1 -1
  95. package/esm/base/react/placeholders/hooks.d.ts +1 -1
  96. package/esm/base/react/placeholders/hooks.d.ts.map +1 -1
  97. package/esm/base/react/placeholders/hooks.js +4 -4
  98. package/esm/base/react/placeholders/hooks.js.map +1 -1
  99. package/esm/base/react/placeholders/resolve.d.ts +2 -2
  100. package/esm/base/react/placeholders/resolve.d.ts.map +1 -1
  101. package/esm/base/react/placeholders/resolve.js +2 -2
  102. package/esm/base/react/placeholders/resolve.js.map +1 -1
  103. package/esm/base/react/useCancelablePromise.js +4 -4
  104. package/esm/base/react/useCancelablePromise.js.map +1 -1
  105. package/esm/base/react/useCancelablePromiseUtils.d.ts +1 -1
  106. package/esm/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
  107. package/esm/base/react/useCancelablePromiseUtils.js +2 -2
  108. package/esm/base/react/useCancelablePromiseUtils.js.map +1 -1
  109. package/esm/base/react/usePagedResource.js +1 -1
  110. package/esm/base/react/usePagedResource.js.map +1 -1
  111. package/esm/base/react/usePromiseCache.js +1 -1
  112. package/esm/base/react/usePromiseCache.js.map +1 -1
  113. package/esm/base/react/withContexts.js +4 -4
  114. package/esm/base/react/withContexts.js.map +1 -1
  115. package/esm/base/results/dataAccess.d.ts +2 -11
  116. package/esm/base/results/dataAccess.d.ts.map +1 -1
  117. package/esm/base/results/dataAccessConfig.d.ts +3 -3
  118. package/esm/base/results/dataAccessConfig.d.ts.map +1 -1
  119. package/esm/base/results/dataAccessConfig.js +6 -6
  120. package/esm/base/results/dataAccessConfig.js.map +1 -1
  121. package/esm/base/results/facade.d.ts +5 -5
  122. package/esm/base/results/facade.d.ts.map +1 -1
  123. package/esm/base/results/facade.js +4 -4
  124. package/esm/base/results/facade.js.map +1 -1
  125. package/esm/base/results/internal/dataAccessDigest.js +2 -2
  126. package/esm/base/results/internal/dataAccessDigest.js.map +1 -1
  127. package/esm/base/results/internal/dataAccessImpl.d.ts +3 -3
  128. package/esm/base/results/internal/dataAccessImpl.d.ts.map +1 -1
  129. package/esm/base/results/internal/dataAccessImpl.js +7 -7
  130. package/esm/base/results/internal/dataAccessImpl.js.map +1 -1
  131. package/esm/base/results/internal/dataAccessMethods.d.ts +2 -2
  132. package/esm/base/results/internal/dataAccessMethods.d.ts.map +1 -1
  133. package/esm/base/results/internal/dataAccessMethods.js +2 -2
  134. package/esm/base/results/internal/dataAccessMethods.js.map +1 -1
  135. package/esm/base/results/internal/definitionMethods.js +1 -1
  136. package/esm/base/results/internal/definitionMethods.js.map +1 -1
  137. package/esm/base/results/internal/lazyInitArray.js +1 -1
  138. package/esm/base/results/internal/lazyInitArray.js.map +1 -1
  139. package/esm/base/results/internal/resultDataMethods.js +2 -2
  140. package/esm/base/results/internal/resultDataMethods.js.map +1 -1
  141. package/esm/base/results/internal/resultMetaMethods.js +2 -2
  142. package/esm/base/results/internal/resultMetaMethods.js.map +1 -1
  143. package/esm/base/vis/DrillEvents.d.ts +2 -2
  144. package/esm/base/vis/DrillEvents.d.ts.map +1 -1
  145. package/esm/base/vis/DrillEvents.js +2 -2
  146. package/esm/base/vis/DrillEvents.js.map +1 -1
  147. package/esm/base/vis/Events.d.ts +11 -2
  148. package/esm/base/vis/Events.d.ts.map +1 -1
  149. package/esm/base/vis/VisualizationProps.d.ts +4 -4
  150. package/esm/base/vis/VisualizationProps.d.ts.map +1 -1
  151. package/esm/base/vis/drilling.d.ts +4 -4
  152. package/esm/base/vis/drilling.d.ts.map +1 -1
  153. package/esm/base/vis/drilling.js +3 -3
  154. package/esm/base/vis/drilling.js.map +1 -1
  155. package/esm/base/vis/export.d.ts +2 -2
  156. package/esm/base/vis/export.d.ts.map +1 -1
  157. package/esm/execution/DataViewLoader.d.ts +2 -2
  158. package/esm/execution/DataViewLoader.d.ts.map +1 -1
  159. package/esm/execution/DataViewLoader.js +3 -3
  160. package/esm/execution/DataViewLoader.js.map +1 -1
  161. package/esm/execution/Execute.d.ts +3 -3
  162. package/esm/execution/Execute.d.ts.map +1 -1
  163. package/esm/execution/Execute.js +4 -4
  164. package/esm/execution/Execute.js.map +1 -1
  165. package/esm/execution/ExecuteInsight.d.ts +2 -2
  166. package/esm/execution/ExecuteInsight.d.ts.map +1 -1
  167. package/esm/execution/ExecuteInsight.js +4 -4
  168. package/esm/execution/ExecuteInsight.js.map +1 -1
  169. package/esm/execution/RawExecute.d.ts +2 -2
  170. package/esm/execution/RawExecute.d.ts.map +1 -1
  171. package/esm/execution/RawExecute.js +2 -2
  172. package/esm/execution/RawExecute.js.map +1 -1
  173. package/esm/execution/createExecution.js +3 -3
  174. package/esm/execution/createExecution.js.map +1 -1
  175. package/esm/execution/index.d.ts +10 -10
  176. package/esm/execution/index.d.ts.map +1 -1
  177. package/esm/execution/index.js +9 -9
  178. package/esm/execution/index.js.map +1 -1
  179. package/esm/execution/interfaces.d.ts +1 -1
  180. package/esm/execution/interfaces.d.ts.map +1 -1
  181. package/esm/execution/useDataExport.d.ts +1 -1
  182. package/esm/execution/useDataExport.d.ts.map +1 -1
  183. package/esm/execution/useDataExport.js +1 -1
  184. package/esm/execution/useDataExport.js.map +1 -1
  185. package/esm/execution/useExecutionDataView.d.ts +2 -2
  186. package/esm/execution/useExecutionDataView.d.ts.map +1 -1
  187. package/esm/execution/useExecutionDataView.js +3 -3
  188. package/esm/execution/useExecutionDataView.js.map +1 -1
  189. package/esm/execution/useInsight.d.ts +1 -1
  190. package/esm/execution/useInsight.d.ts.map +1 -1
  191. package/esm/execution/useInsight.js +1 -1
  192. package/esm/execution/useInsight.js.map +1 -1
  193. package/esm/execution/useInsightDataView.d.ts +2 -2
  194. package/esm/execution/useInsightDataView.d.ts.map +1 -1
  195. package/esm/execution/useInsightDataView.js +3 -3
  196. package/esm/execution/useInsightDataView.js.map +1 -1
  197. package/esm/execution/withExecution.d.ts +1 -1
  198. package/esm/execution/withExecution.d.ts.map +1 -1
  199. package/esm/execution/withExecution.js +2 -2
  200. package/esm/execution/withExecution.js.map +1 -1
  201. package/esm/execution/withExecutionLoading.d.ts +1 -1
  202. package/esm/execution/withExecutionLoading.d.ts.map +1 -1
  203. package/esm/execution/withExecutionLoading.js +2 -2
  204. package/esm/execution/withExecutionLoading.js.map +1 -1
  205. package/esm/index.d.ts +3 -3
  206. package/esm/index.d.ts.map +1 -1
  207. package/esm/index.js +3 -3
  208. package/esm/index.js.map +1 -1
  209. package/esm/kpi/FormattedNumber.d.ts +2 -2
  210. package/esm/kpi/FormattedNumber.d.ts.map +1 -1
  211. package/esm/kpi/FormattedNumber.js +3 -3
  212. package/esm/kpi/FormattedNumber.js.map +1 -1
  213. package/esm/kpi/Kpi.d.ts +4 -4
  214. package/esm/kpi/Kpi.d.ts.map +1 -1
  215. package/esm/kpi/Kpi.js +7 -7
  216. package/esm/kpi/Kpi.js.map +1 -1
  217. package/esm/kpi/KpiError.d.ts +1 -1
  218. package/esm/kpi/KpiError.d.ts.map +1 -1
  219. package/esm/kpi/index.d.ts +1 -1
  220. package/esm/kpi/index.d.ts.map +1 -1
  221. package/esm/kpi/index.js +1 -1
  222. package/esm/kpi/index.js.map +1 -1
  223. package/{dist → esm}/sdk-ui.d.ts +19 -18
  224. package/esm/tsdoc-metadata.json +1 -1
  225. package/package.json +29 -39
  226. package/dist/base/constants/bucketNames.d.ts +0 -33
  227. package/dist/base/constants/bucketNames.d.ts.map +0 -1
  228. package/dist/base/constants/bucketNames.js +0 -47
  229. package/dist/base/constants/bucketNames.js.map +0 -1
  230. package/dist/base/constants/colorPalette.d.ts +0 -7
  231. package/dist/base/constants/colorPalette.d.ts.map +0 -1
  232. package/dist/base/constants/colorPalette.js +0 -90
  233. package/dist/base/constants/colorPalette.js.map +0 -1
  234. package/dist/base/errors/GoodDataSdkError.d.ts +0 -245
  235. package/dist/base/errors/GoodDataSdkError.d.ts.map +0 -1
  236. package/dist/base/errors/GoodDataSdkError.js +0 -346
  237. package/dist/base/errors/GoodDataSdkError.js.map +0 -1
  238. package/dist/base/errors/errorHandling.d.ts +0 -46
  239. package/dist/base/errors/errorHandling.d.ts.map +0 -1
  240. package/dist/base/errors/errorHandling.js +0 -115
  241. package/dist/base/errors/errorHandling.js.map +0 -1
  242. package/dist/base/headerMatching/HeaderPredicate.d.ts +0 -26
  243. package/dist/base/headerMatching/HeaderPredicate.d.ts.map +0 -1
  244. package/dist/base/headerMatching/HeaderPredicate.js +0 -12
  245. package/dist/base/headerMatching/HeaderPredicate.js.map +0 -1
  246. package/dist/base/headerMatching/HeaderPredicateFactory.d.ts +0 -79
  247. package/dist/base/headerMatching/HeaderPredicateFactory.d.ts.map +0 -1
  248. package/dist/base/headerMatching/HeaderPredicateFactory.js +0 -276
  249. package/dist/base/headerMatching/HeaderPredicateFactory.js.map +0 -1
  250. package/dist/base/headerMatching/MappingHeader.d.ts +0 -55
  251. package/dist/base/headerMatching/MappingHeader.d.ts.map +0 -1
  252. package/dist/base/headerMatching/MappingHeader.js +0 -125
  253. package/dist/base/headerMatching/MappingHeader.js.map +0 -1
  254. package/dist/base/helpers/logging.d.ts +0 -5
  255. package/dist/base/helpers/logging.d.ts.map +0 -1
  256. package/dist/base/helpers/logging.js +0 -12
  257. package/dist/base/helpers/logging.js.map +0 -1
  258. package/dist/base/index.d.ts +0 -59
  259. package/dist/base/index.d.ts.map +0 -1
  260. package/dist/base/index.js +0 -219
  261. package/dist/base/index.js.map +0 -1
  262. package/dist/base/interfaces/OverTimeComparison.d.ts +0 -13
  263. package/dist/base/interfaces/OverTimeComparison.d.ts.map +0 -1
  264. package/dist/base/interfaces/OverTimeComparison.js +0 -13
  265. package/dist/base/interfaces/OverTimeComparison.js.map +0 -1
  266. package/dist/base/localization/IntlStore.d.ts +0 -21
  267. package/dist/base/localization/IntlStore.d.ts.map +0 -1
  268. package/dist/base/localization/IntlStore.js +0 -46
  269. package/dist/base/localization/IntlStore.js.map +0 -1
  270. package/dist/base/localization/IntlWrapper.d.ts +0 -13
  271. package/dist/base/localization/IntlWrapper.d.ts.map +0 -1
  272. package/dist/base/localization/IntlWrapper.js +0 -25
  273. package/dist/base/localization/IntlWrapper.js.map +0 -1
  274. package/dist/base/localization/Locale.d.ts +0 -25
  275. package/dist/base/localization/Locale.d.ts.map +0 -1
  276. package/dist/base/localization/Locale.js +0 -37
  277. package/dist/base/localization/Locale.js.map +0 -1
  278. package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts +0 -27
  279. package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts.map +0 -1
  280. package/dist/base/localization/TranslationsCustomizationProvider/Context.js +0 -40
  281. package/dist/base/localization/TranslationsCustomizationProvider/Context.js.map +0 -1
  282. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +0 -54
  283. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +0 -1
  284. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +0 -49
  285. package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +0 -1
  286. package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts +0 -4
  287. package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts.map +0 -1
  288. package/dist/base/localization/TranslationsCustomizationProvider/index.js +0 -16
  289. package/dist/base/localization/TranslationsCustomizationProvider/index.js.map +0 -1
  290. package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts +0 -24
  291. package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +0 -1
  292. package/dist/base/localization/TranslationsCustomizationProvider/utils.js +0 -74
  293. package/dist/base/localization/TranslationsCustomizationProvider/utils.js.map +0 -1
  294. package/dist/base/localization/TranslationsProvider.d.ts +0 -33
  295. package/dist/base/localization/TranslationsProvider.d.ts.map +0 -1
  296. package/dist/base/localization/TranslationsProvider.js +0 -31
  297. package/dist/base/localization/TranslationsProvider.js.map +0 -1
  298. package/dist/base/localization/bundles/de-DE.json +0 -374
  299. package/dist/base/localization/bundles/en-US.json +0 -1964
  300. package/dist/base/localization/bundles/es-ES.json +0 -374
  301. package/dist/base/localization/bundles/fr-FR.json +0 -374
  302. package/dist/base/localization/bundles/ja-JP.json +0 -374
  303. package/dist/base/localization/bundles/nl-NL.json +0 -374
  304. package/dist/base/localization/bundles/pt-BR.json +0 -374
  305. package/dist/base/localization/bundles/pt-PT.json +0 -374
  306. package/dist/base/localization/bundles/ru-RU.json +0 -374
  307. package/dist/base/localization/bundles/zh-Hans.json +0 -374
  308. package/dist/base/localization/intlUtils.d.ts +0 -33
  309. package/dist/base/localization/intlUtils.d.ts.map +0 -1
  310. package/dist/base/localization/intlUtils.js +0 -65
  311. package/dist/base/localization/intlUtils.js.map +0 -1
  312. package/dist/base/localization/messagesMap.d.ts +0 -13
  313. package/dist/base/localization/messagesMap.d.ts.map +0 -1
  314. package/dist/base/localization/messagesMap.js +0 -32
  315. package/dist/base/localization/messagesMap.js.map +0 -1
  316. package/dist/base/measureFormats/fillMissingFormat.d.ts +0 -12
  317. package/dist/base/measureFormats/fillMissingFormat.d.ts.map +0 -1
  318. package/dist/base/measureFormats/fillMissingFormat.js +0 -27
  319. package/dist/base/measureFormats/fillMissingFormat.js.map +0 -1
  320. package/dist/base/measureFormats/fillMissingFormats.d.ts +0 -12
  321. package/dist/base/measureFormats/fillMissingFormats.d.ts.map +0 -1
  322. package/dist/base/measureFormats/fillMissingFormats.js +0 -20
  323. package/dist/base/measureFormats/fillMissingFormats.js.map +0 -1
  324. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +0 -32
  325. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +0 -1
  326. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js +0 -69
  327. package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +0 -1
  328. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +0 -28
  329. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +0 -1
  330. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +0 -49
  331. package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +0 -1
  332. package/dist/base/measureTitles/MeasureTitle.d.ts +0 -21
  333. package/dist/base/measureTitles/MeasureTitle.d.ts.map +0 -1
  334. package/dist/base/measureTitles/MeasureTitle.js +0 -3
  335. package/dist/base/measureTitles/MeasureTitle.js.map +0 -1
  336. package/dist/base/measureTitles/fillMissingTitles.d.ts +0 -23
  337. package/dist/base/measureTitles/fillMissingTitles.d.ts.map +0 -1
  338. package/dist/base/measureTitles/fillMissingTitles.js +0 -157
  339. package/dist/base/measureTitles/fillMissingTitles.js.map +0 -1
  340. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts +0 -14
  341. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts.map +0 -1
  342. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js +0 -32
  343. package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js.map +0 -1
  344. package/dist/base/react/BackendContext.d.ts +0 -78
  345. package/dist/base/react/BackendContext.d.ts.map +0 -1
  346. package/dist/base/react/BackendContext.js +0 -89
  347. package/dist/base/react/BackendContext.js.map +0 -1
  348. package/dist/base/react/CancelablePromise.d.ts +0 -38
  349. package/dist/base/react/CancelablePromise.d.ts.map +0 -1
  350. package/dist/base/react/CancelablePromise.js +0 -82
  351. package/dist/base/react/CancelablePromise.js.map +0 -1
  352. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +0 -116
  353. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +0 -1
  354. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +0 -134
  355. package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +0 -1
  356. package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts +0 -35
  357. package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts.map +0 -1
  358. package/dist/base/react/ClientWorkspaceContext/interfaces.js +0 -4
  359. package/dist/base/react/ClientWorkspaceContext/interfaces.js.map +0 -1
  360. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +0 -17
  361. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +0 -1
  362. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +0 -76
  363. package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +0 -1
  364. package/dist/base/react/ErrorComponent.d.ts +0 -35
  365. package/dist/base/react/ErrorComponent.d.ts.map +0 -1
  366. package/dist/base/react/ErrorComponent.js +0 -90
  367. package/dist/base/react/ErrorComponent.js.map +0 -1
  368. package/dist/base/react/LoadingComponent.d.ts +0 -28
  369. package/dist/base/react/LoadingComponent.d.ts.map +0 -1
  370. package/dist/base/react/LoadingComponent.js +0 -81
  371. package/dist/base/react/LoadingComponent.js.map +0 -1
  372. package/dist/base/react/PromiseCache.d.ts +0 -21
  373. package/dist/base/react/PromiseCache.d.ts.map +0 -1
  374. package/dist/base/react/PromiseCache.js +0 -66
  375. package/dist/base/react/PromiseCache.js.map +0 -1
  376. package/dist/base/react/WorkspaceContext.d.ts +0 -77
  377. package/dist/base/react/WorkspaceContext.d.ts.map +0 -1
  378. package/dist/base/react/WorkspaceContext.js +0 -89
  379. package/dist/base/react/WorkspaceContext.js.map +0 -1
  380. package/dist/base/react/legacy/availableDrillTargets.d.ts +0 -12
  381. package/dist/base/react/legacy/availableDrillTargets.d.ts.map +0 -1
  382. package/dist/base/react/legacy/availableDrillTargets.js +0 -49
  383. package/dist/base/react/legacy/availableDrillTargets.js.map +0 -1
  384. package/dist/base/react/legacy/withEntireDataView.d.ts +0 -51
  385. package/dist/base/react/legacy/withEntireDataView.d.ts.map +0 -1
  386. package/dist/base/react/legacy/withEntireDataView.js +0 -171
  387. package/dist/base/react/legacy/withEntireDataView.js.map +0 -1
  388. package/dist/base/react/placeholders/aliases.d.ts +0 -92
  389. package/dist/base/react/placeholders/aliases.d.ts.map +0 -1
  390. package/dist/base/react/placeholders/aliases.js +0 -3
  391. package/dist/base/react/placeholders/aliases.js.map +0 -1
  392. package/dist/base/react/placeholders/base.d.ts +0 -279
  393. package/dist/base/react/placeholders/base.d.ts.map +0 -1
  394. package/dist/base/react/placeholders/base.js +0 -33
  395. package/dist/base/react/placeholders/base.js.map +0 -1
  396. package/dist/base/react/placeholders/context.d.ts +0 -36
  397. package/dist/base/react/placeholders/context.d.ts.map +0 -1
  398. package/dist/base/react/placeholders/context.js +0 -47
  399. package/dist/base/react/placeholders/context.js.map +0 -1
  400. package/dist/base/react/placeholders/factory.d.ts +0 -34
  401. package/dist/base/react/placeholders/factory.d.ts.map +0 -1
  402. package/dist/base/react/placeholders/factory.js +0 -45
  403. package/dist/base/react/placeholders/factory.js.map +0 -1
  404. package/dist/base/react/placeholders/hooks.d.ts +0 -70
  405. package/dist/base/react/placeholders/hooks.d.ts.map +0 -1
  406. package/dist/base/react/placeholders/hooks.js +0 -150
  407. package/dist/base/react/placeholders/hooks.js.map +0 -1
  408. package/dist/base/react/placeholders/resolve.d.ts +0 -30
  409. package/dist/base/react/placeholders/resolve.d.ts.map +0 -1
  410. package/dist/base/react/placeholders/resolve.js +0 -82
  411. package/dist/base/react/placeholders/resolve.js.map +0 -1
  412. package/dist/base/react/safeSerialize.d.ts +0 -9
  413. package/dist/base/react/safeSerialize.d.ts.map +0 -1
  414. package/dist/base/react/safeSerialize.js +0 -21
  415. package/dist/base/react/safeSerialize.js.map +0 -1
  416. package/dist/base/react/useCancelablePromise.d.ts +0 -99
  417. package/dist/base/react/useCancelablePromise.d.ts.map +0 -1
  418. package/dist/base/react/useCancelablePromise.js +0 -112
  419. package/dist/base/react/useCancelablePromise.js.map +0 -1
  420. package/dist/base/react/useCancelablePromiseUtils.d.ts +0 -48
  421. package/dist/base/react/useCancelablePromiseUtils.d.ts.map +0 -1
  422. package/dist/base/react/useCancelablePromiseUtils.js +0 -107
  423. package/dist/base/react/useCancelablePromiseUtils.js.map +0 -1
  424. package/dist/base/react/usePagedResource.d.ts +0 -21
  425. package/dist/base/react/usePagedResource.d.ts.map +0 -1
  426. package/dist/base/react/usePagedResource.js +0 -44
  427. package/dist/base/react/usePagedResource.js.map +0 -1
  428. package/dist/base/react/usePrevious.d.ts +0 -8
  429. package/dist/base/react/usePrevious.d.ts.map +0 -1
  430. package/dist/base/react/usePrevious.js +0 -20
  431. package/dist/base/react/usePrevious.js.map +0 -1
  432. package/dist/base/react/usePromiseCache.d.ts +0 -18
  433. package/dist/base/react/usePromiseCache.d.ts.map +0 -1
  434. package/dist/base/react/usePromiseCache.js +0 -61
  435. package/dist/base/react/usePromiseCache.js.map +0 -1
  436. package/dist/base/react/withContexts.d.ts +0 -11
  437. package/dist/base/react/withContexts.d.ts.map +0 -1
  438. package/dist/base/react/withContexts.js +0 -18
  439. package/dist/base/react/withContexts.js.map +0 -1
  440. package/dist/base/react/wrapDisplayName.d.ts +0 -7
  441. package/dist/base/react/wrapDisplayName.d.ts.map +0 -1
  442. package/dist/base/react/wrapDisplayName.js +0 -24
  443. package/dist/base/react/wrapDisplayName.js.map +0 -1
  444. package/dist/base/results/dataAccess.d.ts +0 -381
  445. package/dist/base/results/dataAccess.d.ts.map +0 -1
  446. package/dist/base/results/dataAccess.js +0 -3
  447. package/dist/base/results/dataAccess.js.map +0 -1
  448. package/dist/base/results/dataAccessConfig.d.ts +0 -42
  449. package/dist/base/results/dataAccessConfig.d.ts.map +0 -1
  450. package/dist/base/results/dataAccessConfig.js +0 -38
  451. package/dist/base/results/dataAccessConfig.js.map +0 -1
  452. package/dist/base/results/facade.d.ts +0 -95
  453. package/dist/base/results/facade.d.ts.map +0 -1
  454. package/dist/base/results/facade.js +0 -158
  455. package/dist/base/results/facade.js.map +0 -1
  456. package/dist/base/results/internal/dataAccessDigest.d.ts +0 -113
  457. package/dist/base/results/internal/dataAccessDigest.d.ts.map +0 -1
  458. package/dist/base/results/internal/dataAccessDigest.js +0 -143
  459. package/dist/base/results/internal/dataAccessDigest.js.map +0 -1
  460. package/dist/base/results/internal/dataAccessImpl.d.ts +0 -37
  461. package/dist/base/results/internal/dataAccessImpl.d.ts.map +0 -1
  462. package/dist/base/results/internal/dataAccessImpl.js +0 -384
  463. package/dist/base/results/internal/dataAccessImpl.js.map +0 -1
  464. package/dist/base/results/internal/dataAccessMethods.d.ts +0 -8
  465. package/dist/base/results/internal/dataAccessMethods.d.ts.map +0 -1
  466. package/dist/base/results/internal/dataAccessMethods.js +0 -122
  467. package/dist/base/results/internal/dataAccessMethods.js.map +0 -1
  468. package/dist/base/results/internal/definitionMethods.d.ts +0 -90
  469. package/dist/base/results/internal/definitionMethods.d.ts.map +0 -1
  470. package/dist/base/results/internal/definitionMethods.js +0 -82
  471. package/dist/base/results/internal/definitionMethods.js.map +0 -1
  472. package/dist/base/results/internal/lazyInitArray.d.ts +0 -15
  473. package/dist/base/results/internal/lazyInitArray.d.ts.map +0 -1
  474. package/dist/base/results/internal/lazyInitArray.js +0 -48
  475. package/dist/base/results/internal/lazyInitArray.js.map +0 -1
  476. package/dist/base/results/internal/resultDataMethods.d.ts +0 -82
  477. package/dist/base/results/internal/resultDataMethods.d.ts.map +0 -1
  478. package/dist/base/results/internal/resultDataMethods.js +0 -85
  479. package/dist/base/results/internal/resultDataMethods.js.map +0 -1
  480. package/dist/base/results/internal/resultMetaMethods.d.ts +0 -89
  481. package/dist/base/results/internal/resultMetaMethods.d.ts.map +0 -1
  482. package/dist/base/results/internal/resultMetaMethods.js +0 -145
  483. package/dist/base/results/internal/resultMetaMethods.js.map +0 -1
  484. package/dist/base/results/internal/utils.d.ts +0 -30
  485. package/dist/base/results/internal/utils.d.ts.map +0 -1
  486. package/dist/base/results/internal/utils.js +0 -54
  487. package/dist/base/results/internal/utils.js.map +0 -1
  488. package/dist/base/typings/subtract.d.ts +0 -5
  489. package/dist/base/typings/subtract.d.ts.map +0 -1
  490. package/dist/base/typings/subtract.js +0 -3
  491. package/dist/base/typings/subtract.js.map +0 -1
  492. package/dist/base/vis/DrillEvents.d.ts +0 -191
  493. package/dist/base/vis/DrillEvents.d.ts.map +0 -1
  494. package/dist/base/vis/DrillEvents.js +0 -42
  495. package/dist/base/vis/DrillEvents.js.map +0 -1
  496. package/dist/base/vis/Events.d.ts +0 -85
  497. package/dist/base/vis/Events.d.ts.map +0 -1
  498. package/dist/base/vis/Events.js +0 -3
  499. package/dist/base/vis/Events.js.map +0 -1
  500. package/dist/base/vis/VisualizationProps.d.ts +0 -94
  501. package/dist/base/vis/VisualizationProps.d.ts.map +0 -1
  502. package/dist/base/vis/VisualizationProps.js +0 -4
  503. package/dist/base/vis/VisualizationProps.js.map +0 -1
  504. package/dist/base/vis/drilling.d.ts +0 -30
  505. package/dist/base/vis/drilling.d.ts.map +0 -1
  506. package/dist/base/vis/drilling.js +0 -102
  507. package/dist/base/vis/drilling.js.map +0 -1
  508. package/dist/base/vis/export.d.ts +0 -21
  509. package/dist/base/vis/export.d.ts.map +0 -1
  510. package/dist/base/vis/export.js +0 -47
  511. package/dist/base/vis/export.js.map +0 -1
  512. package/dist/base/vis/visualizationTypes.d.ts +0 -76
  513. package/dist/base/vis/visualizationTypes.d.ts.map +0 -1
  514. package/dist/base/vis/visualizationTypes.js +0 -46
  515. package/dist/base/vis/visualizationTypes.js.map +0 -1
  516. package/dist/execution/DataViewLoader.d.ts +0 -70
  517. package/dist/execution/DataViewLoader.d.ts.map +0 -1
  518. package/dist/execution/DataViewLoader.js +0 -102
  519. package/dist/execution/DataViewLoader.js.map +0 -1
  520. package/dist/execution/Execute.d.ts +0 -134
  521. package/dist/execution/Execute.d.ts.map +0 -1
  522. package/dist/execution/Execute.js +0 -99
  523. package/dist/execution/Execute.js.map +0 -1
  524. package/dist/execution/ExecuteInsight.d.ts +0 -136
  525. package/dist/execution/ExecuteInsight.d.ts.map +0 -1
  526. package/dist/execution/ExecuteInsight.js +0 -99
  527. package/dist/execution/ExecuteInsight.js.map +0 -1
  528. package/dist/execution/RawExecute.d.ts +0 -86
  529. package/dist/execution/RawExecute.d.ts.map +0 -1
  530. package/dist/execution/RawExecute.js +0 -76
  531. package/dist/execution/RawExecute.js.map +0 -1
  532. package/dist/execution/createExecution.d.ts +0 -61
  533. package/dist/execution/createExecution.d.ts.map +0 -1
  534. package/dist/execution/createExecution.js +0 -57
  535. package/dist/execution/createExecution.js.map +0 -1
  536. package/dist/execution/index.d.ts +0 -11
  537. package/dist/execution/index.d.ts.map +0 -1
  538. package/dist/execution/index.js +0 -23
  539. package/dist/execution/index.js.map +0 -1
  540. package/dist/execution/interfaces.d.ts +0 -23
  541. package/dist/execution/interfaces.d.ts.map +0 -1
  542. package/dist/execution/interfaces.js +0 -3
  543. package/dist/execution/interfaces.js.map +0 -1
  544. package/dist/execution/useDataExport.d.ts +0 -27
  545. package/dist/execution/useDataExport.d.ts.map +0 -1
  546. package/dist/execution/useDataExport.js +0 -35
  547. package/dist/execution/useDataExport.js.map +0 -1
  548. package/dist/execution/useExecutionDataView.d.ts +0 -94
  549. package/dist/execution/useExecutionDataView.d.ts.map +0 -1
  550. package/dist/execution/useExecutionDataView.js +0 -79
  551. package/dist/execution/useExecutionDataView.js.map +0 -1
  552. package/dist/execution/useInsight.d.ts +0 -32
  553. package/dist/execution/useInsight.d.ts.map +0 -1
  554. package/dist/execution/useInsight.js +0 -22
  555. package/dist/execution/useInsight.js.map +0 -1
  556. package/dist/execution/useInsightDataView.d.ts +0 -88
  557. package/dist/execution/useInsightDataView.d.ts.map +0 -1
  558. package/dist/execution/useInsightDataView.js +0 -54
  559. package/dist/execution/useInsightDataView.js.map +0 -1
  560. package/dist/execution/withExecution.d.ts +0 -59
  561. package/dist/execution/withExecution.d.ts.map +0 -1
  562. package/dist/execution/withExecution.js +0 -46
  563. package/dist/execution/withExecution.js.map +0 -1
  564. package/dist/execution/withExecutionLoading.d.ts +0 -145
  565. package/dist/execution/withExecutionLoading.d.ts.map +0 -1
  566. package/dist/execution/withExecutionLoading.js +0 -157
  567. package/dist/execution/withExecutionLoading.js.map +0 -1
  568. package/dist/index.d.ts +0 -22
  569. package/dist/index.d.ts.map +0 -1
  570. package/dist/index.js +0 -22
  571. package/dist/index.js.map +0 -1
  572. package/dist/kpi/FormattedNumber.d.ts +0 -16
  573. package/dist/kpi/FormattedNumber.d.ts.map +0 -1
  574. package/dist/kpi/FormattedNumber.js +0 -18
  575. package/dist/kpi/FormattedNumber.js.map +0 -1
  576. package/dist/kpi/Kpi.d.ts +0 -65
  577. package/dist/kpi/Kpi.d.ts.map +0 -1
  578. package/dist/kpi/Kpi.js +0 -72
  579. package/dist/kpi/Kpi.js.map +0 -1
  580. package/dist/kpi/KpiError.d.ts +0 -7
  581. package/dist/kpi/KpiError.d.ts.map +0 -1
  582. package/dist/kpi/KpiError.js +0 -23
  583. package/dist/kpi/KpiError.js.map +0 -1
  584. package/dist/kpi/index.d.ts +0 -2
  585. package/dist/kpi/index.d.ts.map +0 -1
  586. package/dist/kpi/index.js +0 -7
  587. package/dist/kpi/index.js.map +0 -1
  588. package/dist/locales.d.ts +0 -3
  589. package/dist/locales.d.ts.map +0 -1
  590. package/dist/locales.js +0 -22
  591. 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.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ASG;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":";;;;AAAA,qCAAqC;AACrC,0DAA0B;AAC1B,mDAAgD;AAIhD,qEAAqC;AACrC,kCAAuC;AAEvC,wEAAqC;AA+IrC,MAAM,WAAW,GAAoB,CAAC,KAAY,EAAE,EAAE;IAClD,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,aAAa,CAAC,KAA2B;IAC9C,OAAO,KAAK,CAAC,aAAa,IAAI,gBAAgB,CAAC;AACnD,CAAC;AAED,SAAS,WAAW,CAAC,KAA2B;IAC5C,OAAO,KAAK,CAAC,WAAW,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;AACrD,CAAC;AAED;;;;GAIG;AACU,QAAA,cAAc,GAAG,IAAA,mBAAY,EACtC,IAAA,6BAAa,EAAuB;IAChC,WAAW;IACX,SAAS,EAAE,KAAK,EAAE,KAAK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AA2B,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM;CACxD,CAAC,CAAC,WAAW,CAAC,CAClB,CAAC"}
@@ -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,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AAE,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,I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C;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":""}