@gooddata/sdk-ui 8.10.0-alpha.9 → 8.10.0-alpha.90
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.
- package/README.md +3 -3
- package/dist/base/errors/GoodDataSdkError.d.ts +4 -1
- package/dist/base/errors/GoodDataSdkError.d.ts.map +1 -1
- package/dist/base/errors/GoodDataSdkError.js +5 -2
- package/dist/base/errors/GoodDataSdkError.js.map +1 -1
- package/dist/base/errors/errorHandling.d.ts +5 -3
- package/dist/base/errors/errorHandling.d.ts.map +1 -1
- package/dist/base/errors/errorHandling.js +6 -4
- package/dist/base/errors/errorHandling.js.map +1 -1
- package/dist/base/headerMatching/HeaderPredicate.d.ts +5 -1
- package/dist/base/headerMatching/HeaderPredicate.d.ts.map +1 -1
- package/dist/base/headerMatching/HeaderPredicate.js.map +1 -1
- package/dist/base/headerMatching/HeaderPredicateFactory.d.ts +1 -0
- package/dist/base/headerMatching/HeaderPredicateFactory.d.ts.map +1 -1
- package/dist/base/headerMatching/HeaderPredicateFactory.js +6 -6
- package/dist/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
- package/dist/base/headerMatching/MappingHeader.d.ts +3 -1
- package/dist/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/dist/base/headerMatching/MappingHeader.js +13 -13
- package/dist/base/headerMatching/MappingHeader.js.map +1 -1
- package/dist/base/helpers/CatalogHelper.d.ts +5 -3
- package/dist/base/helpers/CatalogHelper.d.ts.map +1 -1
- package/dist/base/helpers/CatalogHelper.js +5 -3
- package/dist/base/helpers/CatalogHelper.js.map +1 -1
- package/dist/base/index.d.ts +4 -2
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.js +9 -1
- package/dist/base/index.js.map +1 -1
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +4 -0
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +1 -1
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +2 -0
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
- package/dist/base/localization/bundles/de-DE.json +41 -3
- package/dist/base/localization/bundles/en-US.json +317 -11
- package/dist/base/localization/bundles/es-ES.json +50 -12
- package/dist/base/localization/bundles/fr-FR.json +40 -2
- package/dist/base/localization/bundles/ja-JP.json +40 -2
- package/dist/base/localization/bundles/nl-NL.json +40 -2
- package/dist/base/localization/bundles/pt-BR.json +40 -2
- package/dist/base/localization/bundles/pt-PT.json +40 -2
- package/dist/base/localization/bundles/ru-RU.json +40 -2
- package/dist/base/localization/bundles/zh-Hans.json +41 -3
- package/dist/base/measureFormats/fillMissingFormat.d.ts +12 -0
- package/dist/base/measureFormats/fillMissingFormat.d.ts.map +1 -0
- package/dist/base/measureFormats/fillMissingFormat.js +27 -0
- package/dist/base/measureFormats/fillMissingFormat.js.map +1 -0
- package/dist/base/measureFormats/fillMissingFormats.d.ts +12 -0
- package/dist/base/measureFormats/fillMissingFormats.d.ts.map +1 -0
- package/dist/base/measureFormats/fillMissingFormats.js +20 -0
- package/dist/base/measureFormats/fillMissingFormats.js.map +1 -0
- package/dist/base/measureTitles/fillMissingTitles.d.ts.map +1 -1
- package/dist/base/measureTitles/fillMissingTitles.js +4 -13
- package/dist/base/measureTitles/fillMissingTitles.js.map +1 -1
- package/dist/base/react/BackendContext.d.ts +7 -3
- package/dist/base/react/BackendContext.d.ts.map +1 -1
- package/dist/base/react/BackendContext.js +8 -4
- package/dist/base/react/BackendContext.js.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +12 -3
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +14 -3
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts +6 -0
- package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/interfaces.js +1 -1
- package/dist/base/react/ErrorComponent.d.ts +4 -2
- package/dist/base/react/ErrorComponent.d.ts.map +1 -1
- package/dist/base/react/ErrorComponent.js +5 -3
- package/dist/base/react/ErrorComponent.js.map +1 -1
- package/dist/base/react/LoadingComponent.d.ts +4 -2
- package/dist/base/react/LoadingComponent.d.ts.map +1 -1
- package/dist/base/react/LoadingComponent.js +5 -3
- package/dist/base/react/LoadingComponent.js.map +1 -1
- package/dist/base/react/WorkspaceContext.d.ts +7 -3
- package/dist/base/react/WorkspaceContext.d.ts.map +1 -1
- package/dist/base/react/WorkspaceContext.js +8 -4
- package/dist/base/react/WorkspaceContext.js.map +1 -1
- package/dist/base/react/legacy/availableDrillTargets.d.ts +1 -1
- package/dist/base/react/legacy/availableDrillTargets.d.ts.map +1 -1
- package/dist/base/react/legacy/availableDrillTargets.js +1 -1
- package/dist/base/react/legacy/availableDrillTargets.js.map +1 -1
- package/dist/base/react/placeholders/base.d.ts +76 -42
- package/dist/base/react/placeholders/base.d.ts.map +1 -1
- package/dist/base/react/placeholders/base.js +1 -1
- package/dist/base/react/placeholders/base.js.map +1 -1
- package/dist/base/react/placeholders/factory.d.ts +4 -2
- package/dist/base/react/placeholders/factory.d.ts.map +1 -1
- package/dist/base/react/placeholders/factory.js +1 -1
- package/dist/base/react/placeholders/factory.js.map +1 -1
- package/dist/base/react/placeholders/hooks.d.ts +13 -3
- package/dist/base/react/placeholders/hooks.d.ts.map +1 -1
- package/dist/base/react/placeholders/hooks.js +14 -4
- package/dist/base/react/placeholders/hooks.js.map +1 -1
- package/dist/base/react/placeholders/resolve.d.ts.map +1 -1
- package/dist/base/react/placeholders/resolve.js +5 -3
- package/dist/base/react/placeholders/resolve.js.map +1 -1
- package/dist/base/react/useCancelablePromise.d.ts +17 -11
- package/dist/base/react/useCancelablePromise.d.ts.map +1 -1
- package/dist/base/react/useCancelablePromise.js +9 -3
- package/dist/base/react/useCancelablePromise.js.map +1 -1
- package/dist/base/react/useCancelablePromiseUtils.d.ts +5 -3
- package/dist/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
- package/dist/base/react/useCancelablePromiseUtils.js +6 -4
- package/dist/base/react/useCancelablePromiseUtils.js.map +1 -1
- package/dist/base/results/dataAccess.d.ts +32 -12
- package/dist/base/results/dataAccess.d.ts.map +1 -1
- package/dist/base/results/dataAccessConfig.d.ts +5 -2
- package/dist/base/results/dataAccessConfig.d.ts.map +1 -1
- package/dist/base/results/dataAccessConfig.js +4 -1
- package/dist/base/results/dataAccessConfig.js.map +1 -1
- package/dist/base/results/facade.d.ts +10 -8
- package/dist/base/results/facade.d.ts.map +1 -1
- package/dist/base/results/facade.js +9 -7
- package/dist/base/results/facade.js.map +1 -1
- package/dist/base/results/internal/dataAccessDigest.d.ts +2 -2
- package/dist/base/results/internal/dataAccessDigest.d.ts.map +1 -1
- package/dist/base/results/internal/dataAccessDigest.js +5 -7
- package/dist/base/results/internal/dataAccessDigest.js.map +1 -1
- package/dist/base/results/internal/dataAccessImpl.d.ts.map +1 -1
- package/dist/base/results/internal/dataAccessImpl.js +6 -6
- package/dist/base/results/internal/dataAccessImpl.js.map +1 -1
- package/dist/base/results/internal/dataAccessMethods.d.ts.map +1 -1
- package/dist/base/results/internal/dataAccessMethods.js +1 -1
- package/dist/base/results/internal/dataAccessMethods.js.map +1 -1
- package/dist/base/results/internal/definitionMethods.d.ts +1 -1
- package/dist/base/results/internal/definitionMethods.js +1 -1
- package/dist/base/results/internal/resultDataMethods.d.ts +3 -2
- package/dist/base/results/internal/resultDataMethods.d.ts.map +1 -1
- package/dist/base/results/internal/resultDataMethods.js.map +1 -1
- package/dist/base/results/internal/resultMetaMethods.d.ts +3 -3
- package/dist/base/results/internal/resultMetaMethods.d.ts.map +1 -1
- package/dist/base/results/internal/resultMetaMethods.js +9 -10
- package/dist/base/results/internal/resultMetaMethods.js.map +1 -1
- package/dist/base/results/internal/utils.d.ts +2 -1
- package/dist/base/results/internal/utils.d.ts.map +1 -1
- package/dist/base/results/internal/utils.js +1 -1
- package/dist/base/vis/DrillEvents.d.ts +4 -1
- package/dist/base/vis/DrillEvents.d.ts.map +1 -1
- package/dist/base/vis/DrillEvents.js.map +1 -1
- package/dist/base/vis/Events.d.ts +2 -2
- package/dist/base/vis/Events.d.ts.map +1 -1
- package/dist/base/vis/VisualizationProps.d.ts +11 -4
- package/dist/base/vis/VisualizationProps.d.ts.map +1 -1
- package/dist/base/vis/VisualizationProps.js +1 -1
- package/dist/base/vis/drilling.js +6 -6
- package/dist/base/vis/drilling.js.map +1 -1
- package/dist/base/vis/export.d.ts +1 -1
- package/dist/base/vis/export.js +3 -3
- package/dist/base/vis/export.js.map +1 -1
- package/dist/execution/DataViewLoader.d.ts +70 -0
- package/dist/execution/DataViewLoader.d.ts.map +1 -0
- package/dist/execution/DataViewLoader.js +146 -0
- package/dist/execution/DataViewLoader.js.map +1 -0
- package/dist/execution/Execute.d.ts +36 -20
- package/dist/execution/Execute.d.ts.map +1 -1
- package/dist/execution/Execute.js +7 -5
- package/dist/execution/Execute.js.map +1 -1
- package/dist/execution/ExecuteInsight.d.ts +47 -16
- package/dist/execution/ExecuteInsight.d.ts.map +1 -1
- package/dist/execution/ExecuteInsight.js +7 -5
- package/dist/execution/ExecuteInsight.js.map +1 -1
- package/dist/execution/RawExecute.d.ts +19 -7
- package/dist/execution/RawExecute.d.ts.map +1 -1
- package/dist/execution/RawExecute.js +2 -1
- package/dist/execution/RawExecute.js.map +1 -1
- package/dist/execution/createExecution.d.ts +9 -6
- package/dist/execution/createExecution.d.ts.map +1 -1
- package/dist/execution/createExecution.js.map +1 -1
- package/dist/execution/index.d.ts +3 -2
- package/dist/execution/index.d.ts.map +1 -1
- package/dist/execution/index.js +4 -2
- package/dist/execution/index.js.map +1 -1
- package/dist/execution/useDataExport.d.ts +5 -3
- package/dist/execution/useDataExport.d.ts.map +1 -1
- package/dist/execution/useDataExport.js +3 -1
- package/dist/execution/useDataExport.js.map +1 -1
- package/dist/execution/useDataView.d.ts +5 -0
- package/dist/execution/useDataView.d.ts.map +1 -1
- package/dist/execution/useDataView.js +3 -0
- package/dist/execution/useDataView.js.map +1 -1
- package/dist/execution/useExecution.d.ts +17 -9
- package/dist/execution/useExecution.d.ts.map +1 -1
- package/dist/execution/useExecution.js +3 -0
- package/dist/execution/useExecution.js.map +1 -1
- package/dist/execution/useExecutionDataView.d.ts +32 -15
- package/dist/execution/useExecutionDataView.d.ts.map +1 -1
- package/dist/execution/useExecutionDataView.js +3 -3
- package/dist/execution/useExecutionDataView.js.map +1 -1
- package/dist/execution/useInsightDataView.d.ts +39 -9
- package/dist/execution/useInsightDataView.d.ts.map +1 -1
- package/dist/execution/useInsightDataView.js +10 -4
- package/dist/execution/useInsightDataView.js.map +1 -1
- package/dist/execution/withExecution.d.ts +5 -4
- package/dist/execution/withExecution.d.ts.map +1 -1
- package/dist/execution/withExecution.js +1 -1
- package/dist/execution/withExecution.js.map +1 -1
- package/dist/execution/withExecutionLoading.d.ts +12 -7
- package/dist/execution/withExecutionLoading.d.ts.map +1 -1
- package/dist/execution/withExecutionLoading.js +1 -1
- package/dist/execution/withExecutionLoading.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/kpi/Kpi.d.ts +13 -9
- package/dist/kpi/Kpi.d.ts.map +1 -1
- package/dist/kpi/Kpi.js +5 -3
- package/dist/kpi/Kpi.js.map +1 -1
- package/dist/polyfills.d.ts.map +1 -1
- package/dist/polyfills.js +3 -1
- package/dist/polyfills.js.map +1 -1
- package/dist/sdk-ui.d.ts +573 -215
- package/esm/base/errors/GoodDataSdkError.d.ts +4 -1
- package/esm/base/errors/GoodDataSdkError.d.ts.map +1 -1
- package/esm/base/errors/GoodDataSdkError.js +5 -2
- package/esm/base/errors/GoodDataSdkError.js.map +1 -1
- package/esm/base/errors/errorHandling.d.ts +5 -3
- package/esm/base/errors/errorHandling.d.ts.map +1 -1
- package/esm/base/errors/errorHandling.js +6 -4
- package/esm/base/errors/errorHandling.js.map +1 -1
- package/esm/base/headerMatching/HeaderPredicate.d.ts +5 -1
- package/esm/base/headerMatching/HeaderPredicate.d.ts.map +1 -1
- package/esm/base/headerMatching/HeaderPredicate.js.map +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.d.ts +1 -0
- package/esm/base/headerMatching/HeaderPredicateFactory.d.ts.map +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.js +2 -2
- package/esm/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
- package/esm/base/headerMatching/MappingHeader.d.ts +3 -1
- package/esm/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/esm/base/headerMatching/MappingHeader.js +2 -2
- package/esm/base/headerMatching/MappingHeader.js.map +1 -1
- package/esm/base/helpers/CatalogHelper.d.ts +5 -3
- package/esm/base/helpers/CatalogHelper.d.ts.map +1 -1
- package/esm/base/helpers/CatalogHelper.js +5 -3
- package/esm/base/helpers/CatalogHelper.js.map +1 -1
- package/esm/base/index.d.ts +4 -2
- package/esm/base/index.d.ts.map +1 -1
- package/esm/base/index.js +6 -1
- package/esm/base/index.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +4 -0
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +2 -0
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
- package/esm/base/localization/bundles/de-DE.json +41 -3
- package/esm/base/localization/bundles/en-US.json +317 -11
- package/esm/base/localization/bundles/es-ES.json +50 -12
- package/esm/base/localization/bundles/fr-FR.json +40 -2
- package/esm/base/localization/bundles/ja-JP.json +40 -2
- package/esm/base/localization/bundles/nl-NL.json +40 -2
- package/esm/base/localization/bundles/pt-BR.json +40 -2
- package/esm/base/localization/bundles/pt-PT.json +40 -2
- package/esm/base/localization/bundles/ru-RU.json +40 -2
- package/esm/base/localization/bundles/zh-Hans.json +41 -3
- package/esm/base/measureFormats/fillMissingFormat.d.ts +12 -0
- package/esm/base/measureFormats/fillMissingFormat.d.ts.map +1 -0
- package/esm/base/measureFormats/fillMissingFormat.js +23 -0
- package/esm/base/measureFormats/fillMissingFormat.js.map +1 -0
- package/esm/base/measureFormats/fillMissingFormats.d.ts +12 -0
- package/esm/base/measureFormats/fillMissingFormats.d.ts.map +1 -0
- package/esm/base/measureFormats/fillMissingFormats.js +16 -0
- package/esm/base/measureFormats/fillMissingFormats.js.map +1 -0
- package/esm/base/measureTitles/fillMissingTitles.d.ts.map +1 -1
- package/esm/base/measureTitles/fillMissingTitles.js +5 -14
- package/esm/base/measureTitles/fillMissingTitles.js.map +1 -1
- package/esm/base/react/BackendContext.d.ts +7 -3
- package/esm/base/react/BackendContext.d.ts.map +1 -1
- package/esm/base/react/BackendContext.js +8 -4
- package/esm/base/react/BackendContext.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +12 -3
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +14 -2
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/interfaces.d.ts +6 -0
- package/esm/base/react/ClientWorkspaceContext/interfaces.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/interfaces.js +1 -1
- package/esm/base/react/ErrorComponent.d.ts +4 -2
- package/esm/base/react/ErrorComponent.d.ts.map +1 -1
- package/esm/base/react/ErrorComponent.js +5 -3
- package/esm/base/react/ErrorComponent.js.map +1 -1
- package/esm/base/react/LoadingComponent.d.ts +4 -2
- package/esm/base/react/LoadingComponent.d.ts.map +1 -1
- package/esm/base/react/LoadingComponent.js +5 -3
- package/esm/base/react/LoadingComponent.js.map +1 -1
- package/esm/base/react/WorkspaceContext.d.ts +7 -3
- package/esm/base/react/WorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/WorkspaceContext.js +8 -4
- package/esm/base/react/WorkspaceContext.js.map +1 -1
- package/esm/base/react/legacy/availableDrillTargets.d.ts +1 -1
- package/esm/base/react/legacy/availableDrillTargets.d.ts.map +1 -1
- package/esm/base/react/legacy/availableDrillTargets.js +1 -1
- package/esm/base/react/legacy/availableDrillTargets.js.map +1 -1
- package/esm/base/react/placeholders/base.d.ts +76 -42
- package/esm/base/react/placeholders/base.d.ts.map +1 -1
- package/esm/base/react/placeholders/base.js +1 -1
- package/esm/base/react/placeholders/base.js.map +1 -1
- package/esm/base/react/placeholders/factory.d.ts +4 -2
- package/esm/base/react/placeholders/factory.d.ts.map +1 -1
- package/esm/base/react/placeholders/factory.js +1 -1
- package/esm/base/react/placeholders/factory.js.map +1 -1
- package/esm/base/react/placeholders/hooks.d.ts +13 -3
- package/esm/base/react/placeholders/hooks.d.ts.map +1 -1
- package/esm/base/react/placeholders/hooks.js +14 -4
- package/esm/base/react/placeholders/hooks.js.map +1 -1
- package/esm/base/react/placeholders/resolve.d.ts.map +1 -1
- package/esm/base/react/placeholders/resolve.js +5 -3
- package/esm/base/react/placeholders/resolve.js.map +1 -1
- package/esm/base/react/useCancelablePromise.d.ts +17 -11
- package/esm/base/react/useCancelablePromise.d.ts.map +1 -1
- package/esm/base/react/useCancelablePromise.js +9 -3
- package/esm/base/react/useCancelablePromise.js.map +1 -1
- package/esm/base/react/useCancelablePromiseUtils.d.ts +5 -3
- package/esm/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
- package/esm/base/react/useCancelablePromiseUtils.js +6 -4
- package/esm/base/react/useCancelablePromiseUtils.js.map +1 -1
- package/esm/base/results/dataAccess.d.ts +32 -12
- package/esm/base/results/dataAccess.d.ts.map +1 -1
- package/esm/base/results/dataAccessConfig.d.ts +5 -2
- package/esm/base/results/dataAccessConfig.d.ts.map +1 -1
- package/esm/base/results/dataAccessConfig.js +4 -1
- package/esm/base/results/dataAccessConfig.js.map +1 -1
- package/esm/base/results/facade.d.ts +10 -8
- package/esm/base/results/facade.d.ts.map +1 -1
- package/esm/base/results/facade.js +9 -7
- package/esm/base/results/facade.js.map +1 -1
- package/esm/base/results/internal/dataAccessDigest.d.ts +2 -2
- package/esm/base/results/internal/dataAccessDigest.d.ts.map +1 -1
- package/esm/base/results/internal/dataAccessDigest.js +1 -3
- package/esm/base/results/internal/dataAccessDigest.js.map +1 -1
- package/esm/base/results/internal/dataAccessImpl.d.ts.map +1 -1
- package/esm/base/results/internal/dataAccessImpl.js +1 -1
- package/esm/base/results/internal/dataAccessImpl.js.map +1 -1
- package/esm/base/results/internal/dataAccessMethods.d.ts.map +1 -1
- package/esm/base/results/internal/dataAccessMethods.js +2 -2
- package/esm/base/results/internal/dataAccessMethods.js.map +1 -1
- package/esm/base/results/internal/definitionMethods.d.ts +1 -1
- package/esm/base/results/internal/definitionMethods.js +1 -1
- package/esm/base/results/internal/resultDataMethods.d.ts +3 -2
- package/esm/base/results/internal/resultDataMethods.d.ts.map +1 -1
- package/esm/base/results/internal/resultDataMethods.js.map +1 -1
- package/esm/base/results/internal/resultMetaMethods.d.ts +3 -3
- package/esm/base/results/internal/resultMetaMethods.d.ts.map +1 -1
- package/esm/base/results/internal/resultMetaMethods.js +3 -4
- package/esm/base/results/internal/resultMetaMethods.js.map +1 -1
- package/esm/base/results/internal/utils.d.ts +2 -1
- package/esm/base/results/internal/utils.d.ts.map +1 -1
- package/esm/base/results/internal/utils.js +1 -1
- package/esm/base/vis/DrillEvents.d.ts +4 -1
- package/esm/base/vis/DrillEvents.d.ts.map +1 -1
- package/esm/base/vis/DrillEvents.js.map +1 -1
- package/esm/base/vis/Events.d.ts +2 -2
- package/esm/base/vis/Events.d.ts.map +1 -1
- package/esm/base/vis/VisualizationProps.d.ts +11 -4
- package/esm/base/vis/VisualizationProps.d.ts.map +1 -1
- package/esm/base/vis/VisualizationProps.js +1 -1
- package/esm/base/vis/drilling.js +3 -3
- package/esm/base/vis/drilling.js.map +1 -1
- package/esm/base/vis/export.d.ts +1 -1
- package/esm/base/vis/export.js +3 -3
- package/esm/base/vis/export.js.map +1 -1
- package/esm/execution/DataViewLoader.d.ts +70 -0
- package/esm/execution/DataViewLoader.d.ts.map +1 -0
- package/esm/execution/DataViewLoader.js +143 -0
- package/esm/execution/DataViewLoader.js.map +1 -0
- package/esm/execution/Execute.d.ts +36 -20
- package/esm/execution/Execute.d.ts.map +1 -1
- package/esm/execution/Execute.js +7 -5
- package/esm/execution/Execute.js.map +1 -1
- package/esm/execution/ExecuteInsight.d.ts +47 -16
- package/esm/execution/ExecuteInsight.d.ts.map +1 -1
- package/esm/execution/ExecuteInsight.js +7 -5
- package/esm/execution/ExecuteInsight.js.map +1 -1
- package/esm/execution/RawExecute.d.ts +19 -7
- package/esm/execution/RawExecute.d.ts.map +1 -1
- package/esm/execution/RawExecute.js +2 -1
- package/esm/execution/RawExecute.js.map +1 -1
- package/esm/execution/createExecution.d.ts +9 -6
- package/esm/execution/createExecution.d.ts.map +1 -1
- package/esm/execution/createExecution.js.map +1 -1
- package/esm/execution/index.d.ts +3 -2
- package/esm/execution/index.d.ts.map +1 -1
- package/esm/execution/index.js +3 -2
- package/esm/execution/index.js.map +1 -1
- package/esm/execution/useDataExport.d.ts +5 -3
- package/esm/execution/useDataExport.d.ts.map +1 -1
- package/esm/execution/useDataExport.js +3 -1
- package/esm/execution/useDataExport.js.map +1 -1
- package/esm/execution/useDataView.d.ts +5 -0
- package/esm/execution/useDataView.d.ts.map +1 -1
- package/esm/execution/useDataView.js +3 -0
- package/esm/execution/useDataView.js.map +1 -1
- package/esm/execution/useExecution.d.ts +17 -9
- package/esm/execution/useExecution.d.ts.map +1 -1
- package/esm/execution/useExecution.js +3 -0
- package/esm/execution/useExecution.js.map +1 -1
- package/esm/execution/useExecutionDataView.d.ts +32 -15
- package/esm/execution/useExecutionDataView.d.ts.map +1 -1
- package/esm/execution/useExecutionDataView.js +3 -3
- package/esm/execution/useExecutionDataView.js.map +1 -1
- package/esm/execution/useInsightDataView.d.ts +39 -9
- package/esm/execution/useInsightDataView.d.ts.map +1 -1
- package/esm/execution/useInsightDataView.js +10 -4
- package/esm/execution/useInsightDataView.js.map +1 -1
- package/esm/execution/withExecution.d.ts +5 -4
- package/esm/execution/withExecution.d.ts.map +1 -1
- package/esm/execution/withExecution.js +1 -1
- package/esm/execution/withExecution.js.map +1 -1
- package/esm/execution/withExecutionLoading.d.ts +12 -7
- package/esm/execution/withExecutionLoading.d.ts.map +1 -1
- package/esm/execution/withExecutionLoading.js +1 -1
- package/esm/execution/withExecutionLoading.js.map +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -1
- package/esm/index.js.map +1 -1
- package/esm/kpi/Kpi.d.ts +13 -9
- package/esm/kpi/Kpi.d.ts.map +1 -1
- package/esm/kpi/Kpi.js +5 -3
- package/esm/kpi/Kpi.js.map +1 -1
- package/esm/polyfills.d.ts.map +1 -1
- package/esm/polyfills.js +3 -1
- package/esm/polyfills.js.map +1 -1
- package/esm/tsdoc-metadata.json +1 -1
- package/package.json +10 -10
package/dist/sdk-ui.d.ts
CHANGED
|
@@ -17,22 +17,23 @@
|
|
|
17
17
|
import { AuthenticationFlow } from '@gooddata/sdk-backend-spi';
|
|
18
18
|
import { ComponentClass } from 'react';
|
|
19
19
|
import { ComponentType } from 'react';
|
|
20
|
-
import { DataValue } from '@gooddata/sdk-
|
|
20
|
+
import { DataValue } from '@gooddata/sdk-model';
|
|
21
21
|
import { DependencyList } from 'react';
|
|
22
22
|
import { FunctionComponent } from 'react';
|
|
23
23
|
import { IAbsoluteDateFilter } from '@gooddata/sdk-model';
|
|
24
24
|
import { IAnalyticalBackend } from '@gooddata/sdk-backend-spi';
|
|
25
25
|
import { IAttribute } from '@gooddata/sdk-model';
|
|
26
|
-
import { IAttributeDescriptor } from '@gooddata/sdk-
|
|
26
|
+
import { IAttributeDescriptor } from '@gooddata/sdk-model';
|
|
27
27
|
import { IAttributeFilter } from '@gooddata/sdk-model';
|
|
28
|
+
import { IAttributeOrMeasure } from '@gooddata/sdk-model';
|
|
28
29
|
import { IBucket } from '@gooddata/sdk-model';
|
|
29
30
|
import { IColor } from '@gooddata/sdk-model';
|
|
30
31
|
import { IColorPalette } from '@gooddata/sdk-model';
|
|
31
32
|
import { IDataView } from '@gooddata/sdk-backend-spi';
|
|
32
33
|
import { IDateFilter } from '@gooddata/sdk-model';
|
|
33
34
|
import { IDimension } from '@gooddata/sdk-model';
|
|
34
|
-
import { IDimensionDescriptor } from '@gooddata/sdk-
|
|
35
|
-
import { IDimensionItemDescriptor } from '@gooddata/sdk-
|
|
35
|
+
import { IDimensionDescriptor } from '@gooddata/sdk-model';
|
|
36
|
+
import { IDimensionItemDescriptor } from '@gooddata/sdk-model';
|
|
36
37
|
import { IExecutionDefinition } from '@gooddata/sdk-model';
|
|
37
38
|
import { IExecutionResult } from '@gooddata/sdk-backend-spi';
|
|
38
39
|
import { IExportConfig } from '@gooddata/sdk-backend-spi';
|
|
@@ -41,9 +42,9 @@ import { IFilter } from '@gooddata/sdk-model';
|
|
|
41
42
|
import { IInsightDefinition } from '@gooddata/sdk-model';
|
|
42
43
|
import { IMeasure } from '@gooddata/sdk-model';
|
|
43
44
|
import { IMeasureDefinitionType } from '@gooddata/sdk-model';
|
|
44
|
-
import { IMeasureDescriptor } from '@gooddata/sdk-
|
|
45
|
+
import { IMeasureDescriptor } from '@gooddata/sdk-model';
|
|
45
46
|
import { IMeasureFilter } from '@gooddata/sdk-model';
|
|
46
|
-
import { IMeasureGroupDescriptor } from '@gooddata/sdk-
|
|
47
|
+
import { IMeasureGroupDescriptor } from '@gooddata/sdk-model';
|
|
47
48
|
import { IMeasureValueFilter } from '@gooddata/sdk-model';
|
|
48
49
|
import { INegativeAttributeFilter } from '@gooddata/sdk-model';
|
|
49
50
|
import { IntlShape } from 'react-intl';
|
|
@@ -53,16 +54,16 @@ import { IPositiveAttributeFilter } from '@gooddata/sdk-model';
|
|
|
53
54
|
import { IPreparedExecution } from '@gooddata/sdk-backend-spi';
|
|
54
55
|
import { IRankingFilter } from '@gooddata/sdk-model';
|
|
55
56
|
import { IRelativeDateFilter } from '@gooddata/sdk-model';
|
|
56
|
-
import { IResultAttributeHeader } from '@gooddata/sdk-
|
|
57
|
-
import { IResultHeader } from '@gooddata/sdk-
|
|
58
|
-
import { IResultMeasureHeader } from '@gooddata/sdk-
|
|
59
|
-
import { IResultTotalHeader } from '@gooddata/sdk-
|
|
60
|
-
import { IResultWarning } from '@gooddata/sdk-
|
|
61
|
-
import { ISeparators } from '@gooddata/sdk-
|
|
57
|
+
import { IResultAttributeHeader } from '@gooddata/sdk-model';
|
|
58
|
+
import { IResultHeader } from '@gooddata/sdk-model';
|
|
59
|
+
import { IResultMeasureHeader } from '@gooddata/sdk-model';
|
|
60
|
+
import { IResultTotalHeader } from '@gooddata/sdk-model';
|
|
61
|
+
import { IResultWarning } from '@gooddata/sdk-model';
|
|
62
|
+
import { ISeparators } from '@gooddata/sdk-model';
|
|
62
63
|
import { ISeparators as ISeparators_2 } from '@gooddata/numberjs';
|
|
63
64
|
import { ISortItem } from '@gooddata/sdk-model';
|
|
64
65
|
import { ITotal } from '@gooddata/sdk-model';
|
|
65
|
-
import { ITotalDescriptor } from '@gooddata/sdk-
|
|
66
|
+
import { ITotalDescriptor } from '@gooddata/sdk-model';
|
|
66
67
|
import { IWorkspaceSettings } from '@gooddata/sdk-backend-spi';
|
|
67
68
|
import { ObjRef } from '@gooddata/sdk-model';
|
|
68
69
|
import { default as React_2 } from 'react';
|
|
@@ -73,8 +74,10 @@ import { WrappedComponentProps } from 'react-intl';
|
|
|
73
74
|
/**
|
|
74
75
|
* Generate all possible combinations of arrays signatures for the union type.
|
|
75
76
|
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```
|
|
79
|
+
* IAttribute | IMeasure is resolved as IAttribute[] | IMeasure[] | (IAttribute | IMeasure)[]
|
|
80
|
+
* ```
|
|
78
81
|
*
|
|
79
82
|
* @public
|
|
80
83
|
*/
|
|
@@ -96,10 +99,12 @@ export declare type AnyPlaceholder<T = any> = IPlaceholder<T> | IComposedPlaceho
|
|
|
96
99
|
/**
|
|
97
100
|
* Generate all possible combinations of placeholder signatures for the union type.
|
|
98
101
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```
|
|
104
|
+
* IAttribute | IMeasure
|
|
105
|
+
* is resolved as
|
|
106
|
+
* AnyPlaceholder\<IAttribute\> | AnyPlaceholder\<IMeasure\> | AnyPlaceholder\<IAttribute | IMeasure\>
|
|
107
|
+
* ```
|
|
103
108
|
* @public
|
|
104
109
|
*/
|
|
105
110
|
export declare type AnyPlaceholderOf<T> = AnyPlaceholder<T> | PlaceholderOf<T>;
|
|
@@ -137,9 +142,10 @@ export declare class ArithmeticMeasureTitleFactory {
|
|
|
137
142
|
/**
|
|
138
143
|
* Wrap each member of union type in the array.
|
|
139
144
|
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```
|
|
147
|
+
* IAttribute | IMeasure | IFilter is resolved as IAttribute[] | IMeasure[] | IFilter[]
|
|
148
|
+
* ```
|
|
143
149
|
* @public
|
|
144
150
|
*/
|
|
145
151
|
export declare type ArrayOf<T> = T extends any ? T[] : never;
|
|
@@ -252,11 +258,13 @@ export declare class CancelledSdkError extends GoodDataSdkError {
|
|
|
252
258
|
}
|
|
253
259
|
|
|
254
260
|
/**
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
* example
|
|
261
|
+
* Tool that exposes API that to look up measures, attributes, visualizations and other metadata elements
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* ```
|
|
258
265
|
* import catalog from './catalog.json';
|
|
259
266
|
* const C = new CatalogHelper(catalog);
|
|
267
|
+
* ```
|
|
260
268
|
*
|
|
261
269
|
* @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
|
|
262
270
|
* @public
|
|
@@ -339,8 +347,10 @@ export declare function composedFromUri(uri: string): IHeaderPredicate;
|
|
|
339
347
|
/**
|
|
340
348
|
* Get composed placeholder resolution context type.
|
|
341
349
|
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
350
|
+
* @example
|
|
351
|
+
* ```
|
|
352
|
+
* IComposedPlaceholder\<any, any, IResolutionContext\> is resolved as IResolutionContext
|
|
353
|
+
* ```
|
|
344
354
|
*
|
|
345
355
|
* @public
|
|
346
356
|
*/
|
|
@@ -352,9 +362,11 @@ export declare type ComposedPlaceholderResolutionContext<T> = T extends ICompose
|
|
|
352
362
|
export declare function convertDrillableItemsToPredicates(drillableItems: ExplicitDrill[]): IHeaderPredicate[];
|
|
353
363
|
|
|
354
364
|
/**
|
|
355
|
-
* Converts any error into an instance of {@link GoodDataSdkError}.
|
|
356
|
-
*
|
|
357
|
-
*
|
|
365
|
+
* Converts any error into an instance of {@link GoodDataSdkError}.
|
|
366
|
+
*
|
|
367
|
+
* @remarks
|
|
368
|
+
* The conversion logic right now focuses mostly on errors that are contractually specified in Analytical Backend SPI.
|
|
369
|
+
* All other unexpected errors are wrapped into an exception with the generic 'UNKNOWN_ERROR' code.
|
|
358
370
|
*
|
|
359
371
|
* Instances of GoodDataSdkError are returned as-is and are not subject to any processing.
|
|
360
372
|
*
|
|
@@ -378,7 +390,7 @@ export declare function createExportErrorFunction(error: GoodDataSdkError): IExp
|
|
|
378
390
|
* components via the onExportReady callback.
|
|
379
391
|
*
|
|
380
392
|
* @param result - data view that will be exported
|
|
381
|
-
* @param exportTitle -
|
|
393
|
+
* @param exportTitle - specify title
|
|
382
394
|
* @internal
|
|
383
395
|
*/
|
|
384
396
|
export declare function createExportFunction(result: IExecutionResult, exportTitle?: string): IExportFunction;
|
|
@@ -390,7 +402,10 @@ export declare function createIntlMock(customMessages?: {}, locale?: string): In
|
|
|
390
402
|
|
|
391
403
|
/**
|
|
392
404
|
* Creates value formatter that uses `@gooddata/numberjs` to format raw measure values according
|
|
393
|
-
* to the format string.
|
|
405
|
+
* to the format string.
|
|
406
|
+
*
|
|
407
|
+
* @remarks
|
|
408
|
+
* By default, the format will strip away all the coloring information and
|
|
394
409
|
* just return the value as string.
|
|
395
410
|
*
|
|
396
411
|
* @param separators - number separators to use. if not specified then `numberjs` defaults will be used
|
|
@@ -416,6 +431,7 @@ export declare type DataAccessConfig = {
|
|
|
416
431
|
* Data Point represents a value computed for particular data series, possibly sliced for additional
|
|
417
432
|
* set of attribute elements OR possibly being a total.
|
|
418
433
|
*
|
|
434
|
+
* @remarks
|
|
419
435
|
* Technically, DataPoint is the raw data value stored in the data view decorated with all the metadata
|
|
420
436
|
* there exists about that value.
|
|
421
437
|
*
|
|
@@ -569,8 +585,11 @@ export declare type DataSliceDescriptorMethods = {
|
|
|
569
585
|
};
|
|
570
586
|
|
|
571
587
|
/**
|
|
572
|
-
* Data slice name is specified using the result headers.
|
|
573
|
-
*
|
|
588
|
+
* Data slice name is specified using the result headers.
|
|
589
|
+
*
|
|
590
|
+
* @remarks
|
|
591
|
+
* The headers describe attribute elements (title+ID) for the slice. The slice MAY be for a total calculation,
|
|
592
|
+
* in which case the last header will be for the
|
|
574
593
|
* total.
|
|
575
594
|
*
|
|
576
595
|
* @public
|
|
@@ -611,7 +630,10 @@ export declare class DataTooLargeToDisplaySdkError extends GoodDataSdkError {
|
|
|
611
630
|
}
|
|
612
631
|
|
|
613
632
|
/**
|
|
614
|
-
*
|
|
633
|
+
* Wrapper for {@link @gooddata/sdk-backend-spi#IDataView}.
|
|
634
|
+
*
|
|
635
|
+
* @remarks
|
|
636
|
+
* This provides various convenience methods to work with data and metadata stored inside
|
|
615
637
|
* the provided instance of {@link @gooddata/sdk-backend-spi#IDataView}.
|
|
616
638
|
*
|
|
617
639
|
* The facade keeps an ephemeral state - such as calculated indexes on top of the headers in the {@link @gooddata/sdk-backend-spi#IDataView} -
|
|
@@ -620,10 +642,6 @@ export declare class DataTooLargeToDisplaySdkError extends GoodDataSdkError {
|
|
|
620
642
|
* The facade is part of the public API and we strongly recommend to use it whenever client code needs to work with
|
|
621
643
|
* data view; ideally, single instance of data view facade
|
|
622
644
|
*
|
|
623
|
-
* Note: the facade is currently in alpha quality - mix-match of various functions we found useful so far; consolidation
|
|
624
|
-
* and further enhancements will happen, the methods will be removed, renamed and added in the future. The public
|
|
625
|
-
* API WILL break.
|
|
626
|
-
*
|
|
627
645
|
* @public
|
|
628
646
|
*/
|
|
629
647
|
export declare class DataViewFacade {
|
|
@@ -642,7 +660,10 @@ export declare class DataViewFacade {
|
|
|
642
660
|
*/
|
|
643
661
|
static for(dataView: IDataView): DataViewFacade;
|
|
644
662
|
/**
|
|
645
|
-
* Creates a DataViewFacade with provided execution result.
|
|
663
|
+
* Creates a DataViewFacade with provided execution result.
|
|
664
|
+
*
|
|
665
|
+
* @remarks
|
|
666
|
+
* Only use this when execution result is unable to load data and some
|
|
646
667
|
* form of DataViewFacade is still needed. Beware that the calculated data view is empty after the creation. Only execution
|
|
647
668
|
* definition and result is defined.
|
|
648
669
|
*
|
|
@@ -688,6 +709,72 @@ export declare class DataViewFacade {
|
|
|
688
709
|
rawData(): IResultDataMethods;
|
|
689
710
|
}
|
|
690
711
|
|
|
712
|
+
/**
|
|
713
|
+
* DataViewLoader allows you to speficy, load and access data results with convenient series and slices API.
|
|
714
|
+
*
|
|
715
|
+
* @alpha
|
|
716
|
+
*/
|
|
717
|
+
export declare class DataViewLoader {
|
|
718
|
+
private readonly backend;
|
|
719
|
+
private readonly workspace;
|
|
720
|
+
private readonly options;
|
|
721
|
+
private constructor();
|
|
722
|
+
/**
|
|
723
|
+
* Creates a new instance of the DataViewLoader for particular backend and workspace.
|
|
724
|
+
*
|
|
725
|
+
* @alpha
|
|
726
|
+
*/
|
|
727
|
+
static for(backend: IAnalyticalBackend, workspace: string): DataViewLoader;
|
|
728
|
+
/**
|
|
729
|
+
* Data series will be built using the provided measures that are further scoped for
|
|
730
|
+
* elements of the specified attributes.
|
|
731
|
+
*
|
|
732
|
+
* @remarks
|
|
733
|
+
* You must define at least 1 measure for the series.
|
|
734
|
+
*
|
|
735
|
+
* @alpha
|
|
736
|
+
*/
|
|
737
|
+
seriesFrom: (...measuresAndScopingAttributes: IAttributeOrMeasure[]) => DataViewLoader;
|
|
738
|
+
/**
|
|
739
|
+
* Slice all data series by elements of these attributes.
|
|
740
|
+
*
|
|
741
|
+
* @alpha
|
|
742
|
+
*/
|
|
743
|
+
slicesFrom: (...attributes: IAttribute[]) => DataViewLoader;
|
|
744
|
+
/**
|
|
745
|
+
* Filters to apply on server side.
|
|
746
|
+
*
|
|
747
|
+
* @alpha
|
|
748
|
+
*/
|
|
749
|
+
filterBy: (...filters: INullableFilter[]) => DataViewLoader;
|
|
750
|
+
/**
|
|
751
|
+
* Sorting to apply on server side.
|
|
752
|
+
*
|
|
753
|
+
* @alpha
|
|
754
|
+
*/
|
|
755
|
+
sortBy: (...sorts: ISortItem[]) => DataViewLoader;
|
|
756
|
+
/**
|
|
757
|
+
* Include these totals among the data slices.
|
|
758
|
+
*
|
|
759
|
+
* @alpha
|
|
760
|
+
*/
|
|
761
|
+
withTotals: (...totals: ITotal[]) => DataViewLoader;
|
|
762
|
+
/**
|
|
763
|
+
* Loads subset of the result data and wraps them in {@link DataViewFacade}.
|
|
764
|
+
*
|
|
765
|
+
* @alpha
|
|
766
|
+
*/
|
|
767
|
+
loadWindow: (dataWindow: DataViewWindow) => Promise<DataViewFacade>;
|
|
768
|
+
/**
|
|
769
|
+
* Loads all the result data and wraps them in {@link DataViewFacade}.
|
|
770
|
+
*
|
|
771
|
+
* @alpha
|
|
772
|
+
*/
|
|
773
|
+
loadAll: () => Promise<DataViewFacade>;
|
|
774
|
+
private loadResult;
|
|
775
|
+
private newLoaderWithOptions;
|
|
776
|
+
}
|
|
777
|
+
|
|
691
778
|
/**
|
|
692
779
|
* Structure specifying a particular portion of data.
|
|
693
780
|
* @public
|
|
@@ -793,8 +880,10 @@ export declare const ErrorCodes: {
|
|
|
793
880
|
};
|
|
794
881
|
|
|
795
882
|
/**
|
|
796
|
-
*
|
|
797
|
-
*
|
|
883
|
+
* Component that renders a default error message.
|
|
884
|
+
*
|
|
885
|
+
* @remarks
|
|
886
|
+
* See {@link http://sdk.gooddata.com/gooddata-ui/docs/error_component.html | ErrorComponent}
|
|
798
887
|
*
|
|
799
888
|
* @public
|
|
800
889
|
*/
|
|
@@ -804,16 +893,18 @@ export declare class ErrorComponent extends React_2.Component<IErrorProps> {
|
|
|
804
893
|
}
|
|
805
894
|
|
|
806
895
|
/**
|
|
807
|
-
* The executor provides a more curated experience to obtain and work with data from backends.
|
|
808
|
-
*
|
|
809
|
-
*
|
|
896
|
+
* The executor provides a more curated experience to obtain and work with data from backends.
|
|
897
|
+
*
|
|
898
|
+
* @remarks
|
|
899
|
+
* It is aligned with the `DataAccess` infrastructure which exposes the underlying data as data series that can be
|
|
900
|
+
* sliced by additional attributes.
|
|
810
901
|
*
|
|
811
902
|
* Once the executor finishes, the {@link DataViewFacade.data} method will expose the data as series and
|
|
812
903
|
* slices according to the specification to the executor.
|
|
813
904
|
* Note that if the resulting data is empty this will NOT throw a NoDataError. It is the responsibility
|
|
814
905
|
* of the child component to handle that if they need to.
|
|
815
906
|
*
|
|
816
|
-
*
|
|
907
|
+
* See {@link IDataAccessMethods} for additional documentation
|
|
817
908
|
* @public
|
|
818
909
|
*/
|
|
819
910
|
export declare const Execute: (props: IExecuteProps) => JSX.Element;
|
|
@@ -821,12 +912,14 @@ export declare const Execute: (props: IExecuteProps) => JSX.Element;
|
|
|
821
912
|
/**
|
|
822
913
|
* Gets data for a specific stored insight.
|
|
823
914
|
*
|
|
824
|
-
* @
|
|
915
|
+
* @public
|
|
825
916
|
*/
|
|
826
917
|
export declare const ExecuteInsight: React_2.ComponentType<IExecuteInsightProps>;
|
|
827
918
|
|
|
828
919
|
/**
|
|
829
920
|
* Drillable item reference or predicate that enables insight / kpi drilling if it matches some attribute or measure of the insight / kpi.
|
|
921
|
+
*
|
|
922
|
+
* @remarks
|
|
830
923
|
* You can use {@link @gooddata/sdk-ui#HeaderPredicates} factory functions to create predicates,
|
|
831
924
|
* or specify reference to the identifier / uri of the target attribute / measure using {@link @gooddata/sdk-ui#IDrillableItem} definition.
|
|
832
925
|
*
|
|
@@ -834,6 +927,28 @@ export declare const ExecuteInsight: React_2.ComponentType<IExecuteInsightProps>
|
|
|
834
927
|
*/
|
|
835
928
|
export declare type ExplicitDrill = IDrillableItem | IHeaderPredicate;
|
|
836
929
|
|
|
930
|
+
/**
|
|
931
|
+
* The function fills the format of the measure bucket item that does not have it set.
|
|
932
|
+
*
|
|
933
|
+
* @param item - bucket attribute or measure
|
|
934
|
+
*
|
|
935
|
+
* @returns a copy of bucket item with auto-generated format for measure
|
|
936
|
+
*
|
|
937
|
+
* @internal
|
|
938
|
+
*/
|
|
939
|
+
export declare function fillMissingFormat(item: IAttributeOrMeasure): IAttributeOrMeasure;
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* The function fills the format of the measures that does not have it set.
|
|
943
|
+
*
|
|
944
|
+
* @param insight - insight or insight definition that must be processed.
|
|
945
|
+
*
|
|
946
|
+
* @returns a copy of insight with auto-generated format for measures
|
|
947
|
+
*
|
|
948
|
+
* @internal
|
|
949
|
+
*/
|
|
950
|
+
export declare function fillMissingFormats<T extends IInsightDefinition>(insight: T): T;
|
|
951
|
+
|
|
837
952
|
/**
|
|
838
953
|
* The function fills the titles of the measures that does not have it set.
|
|
839
954
|
*
|
|
@@ -887,14 +1002,17 @@ export declare function fireDrillEvent(drillEventFunction: IDrillEventCallback,
|
|
|
887
1002
|
|
|
888
1003
|
/**
|
|
889
1004
|
* Flatten array type.
|
|
1005
|
+
*
|
|
1006
|
+
* @remarks
|
|
890
1007
|
* If the type is not an array, return the same type.
|
|
891
1008
|
* Works only for 1 level, nested array types are not recursively flattened.
|
|
892
1009
|
*
|
|
893
|
-
*
|
|
894
|
-
*
|
|
895
|
-
*
|
|
896
|
-
*
|
|
897
|
-
*
|
|
1010
|
+
* @example
|
|
1011
|
+
* ```
|
|
1012
|
+
* number[] is resolved as number
|
|
1013
|
+
* string[][] is resolved as string[]
|
|
1014
|
+
* string is resolved as string
|
|
1015
|
+
* ```
|
|
898
1016
|
* @public
|
|
899
1017
|
*/
|
|
900
1018
|
export declare type Flatten<T> = T extends Array<infer A> ? A : T;
|
|
@@ -998,7 +1116,10 @@ export declare abstract class GoodDataSdkError extends Error {
|
|
|
998
1116
|
*/
|
|
999
1117
|
getCause(): any | undefined;
|
|
1000
1118
|
/**
|
|
1001
|
-
* Error code for this exception.
|
|
1119
|
+
* Error code for this exception.
|
|
1120
|
+
*
|
|
1121
|
+
* @remarks
|
|
1122
|
+
* This can be used to identify exact type of exception.
|
|
1002
1123
|
*/
|
|
1003
1124
|
getErrorCode(): string;
|
|
1004
1125
|
}
|
|
@@ -1162,8 +1283,9 @@ export declare interface IClientWorkspaceIdentifiers {
|
|
|
1162
1283
|
*/
|
|
1163
1284
|
export declare interface IClientWorkspaceProviderCoreProps {
|
|
1164
1285
|
/**
|
|
1165
|
-
*
|
|
1286
|
+
* Specify an instance of the analytical backend instance to work with.
|
|
1166
1287
|
*
|
|
1288
|
+
* @remarks
|
|
1167
1289
|
* Note: if you do not have a BackendProvider above in the component tree, then you MUST specify the backend.
|
|
1168
1290
|
*/
|
|
1169
1291
|
backend?: IAnalyticalBackend;
|
|
@@ -1186,6 +1308,7 @@ export declare interface IClientWorkspaceProviderWithClientAndDataProductProps e
|
|
|
1186
1308
|
/**
|
|
1187
1309
|
* Specify the data product identifier to use to obtain the LCM context.
|
|
1188
1310
|
*
|
|
1311
|
+
* @remarks
|
|
1189
1312
|
* Note: another option is to specify workspace prop, and then data product identifier will be resolved from it.
|
|
1190
1313
|
*/
|
|
1191
1314
|
dataProduct: string;
|
|
@@ -1204,11 +1327,19 @@ export declare interface IClientWorkspaceProviderWithWorkspaceProps extends ICli
|
|
|
1204
1327
|
/**
|
|
1205
1328
|
* Specify the workspace to use to obtain the LCM context.
|
|
1206
1329
|
*
|
|
1330
|
+
* @remarks
|
|
1207
1331
|
* Note: another option is to specify dataProduct and client props, and then workspace will be resolved from them.
|
|
1208
1332
|
*/
|
|
1209
1333
|
workspace: string;
|
|
1210
1334
|
}
|
|
1211
1335
|
|
|
1336
|
+
/**
|
|
1337
|
+
* @internal
|
|
1338
|
+
*/
|
|
1339
|
+
export declare interface IClientWorkspaceStatus {
|
|
1340
|
+
isInitialized: boolean;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1212
1343
|
/**
|
|
1213
1344
|
* @internal
|
|
1214
1345
|
*/
|
|
@@ -1227,10 +1358,12 @@ export declare interface IColorsData {
|
|
|
1227
1358
|
|
|
1228
1359
|
/**
|
|
1229
1360
|
* Represents placeholder composed from other placeholders.
|
|
1361
|
+
*
|
|
1362
|
+
* @remarks
|
|
1230
1363
|
* You can perform computation on top of resolved placeholder values.
|
|
1231
1364
|
* Composed placeholders accepts also other composed placeholders as an input.
|
|
1232
1365
|
*
|
|
1233
|
-
* You can
|
|
1366
|
+
* You can provide custom resolution context to the composed placeholders,
|
|
1234
1367
|
* and use it in your computation, but be aware that this context is shared across all composed placeholders in the call tree
|
|
1235
1368
|
* (e.g. when you are calling composed placeholder composed from other composed placeholders,
|
|
1236
1369
|
* each composed placeholder will be called with the same resolution context).
|
|
@@ -1245,8 +1378,11 @@ export declare interface IComposedPlaceholder<TReturn, TValue extends any[], TCo
|
|
|
1245
1378
|
}
|
|
1246
1379
|
|
|
1247
1380
|
/**
|
|
1248
|
-
* Defines methods to access data in the data view.
|
|
1249
|
-
*
|
|
1381
|
+
* Defines methods to access data in the data view.
|
|
1382
|
+
*
|
|
1383
|
+
* @remarks
|
|
1384
|
+
* These methods and types are recommended in favor of directly accessing the underlying data,
|
|
1385
|
+
* headers and descriptors.
|
|
1250
1386
|
*
|
|
1251
1387
|
* @public
|
|
1252
1388
|
*/
|
|
@@ -1262,9 +1398,10 @@ export declare interface IDataAccessMethods {
|
|
|
1262
1398
|
}
|
|
1263
1399
|
|
|
1264
1400
|
/**
|
|
1265
|
-
* Data series is a sequence of data points that are all computed from a single measure,
|
|
1401
|
+
* Data series is a sequence of data points that are all computed from a single measure, scoped for
|
|
1266
1402
|
* particular attribute elements.
|
|
1267
1403
|
*
|
|
1404
|
+
* @remarks
|
|
1268
1405
|
* In other words, data series allows iterating over two dimensional data view _along_ the dimension which contains
|
|
1269
1406
|
* the measures (via inclusion of MeasureGroupIdentifier).
|
|
1270
1407
|
*
|
|
@@ -1296,9 +1433,12 @@ export declare interface IDataSeries extends DataSeriesDescriptorMethods, Iterab
|
|
|
1296
1433
|
}
|
|
1297
1434
|
|
|
1298
1435
|
/**
|
|
1299
|
-
* An iterable collection of data series.
|
|
1436
|
+
* An iterable collection of data series.
|
|
1437
|
+
*
|
|
1438
|
+
* @remarks
|
|
1439
|
+
* The collection additionally includes basic information about the
|
|
1300
1440
|
* origin of the data series that can be iterated - their number, measures they were calculated from and
|
|
1301
|
-
*
|
|
1441
|
+
* the scoping attributes.
|
|
1302
1442
|
*
|
|
1303
1443
|
* @public
|
|
1304
1444
|
*/
|
|
@@ -1310,6 +1450,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1310
1450
|
/**
|
|
1311
1451
|
* Descriptors of measures that are used in the data series.
|
|
1312
1452
|
*
|
|
1453
|
+
* @remarks
|
|
1313
1454
|
* Note that the number of measures MAY differ from number of data series - that is because the data series may be
|
|
1314
1455
|
* created for multiple scopes of each measure (e.g. measure X calculated for attribute element A, then same
|
|
1315
1456
|
* measure calculated for attribute element B etc)
|
|
@@ -1318,6 +1459,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1318
1459
|
/**
|
|
1319
1460
|
* Definitions of measures which were sent to execution and resulted in the data series.
|
|
1320
1461
|
*
|
|
1462
|
+
* @remarks
|
|
1321
1463
|
* Order of appearance matches the order of appearance in the `fromMeasures` array.
|
|
1322
1464
|
*/
|
|
1323
1465
|
readonly fromMeasuresDef: IMeasure[];
|
|
@@ -1329,6 +1471,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1329
1471
|
* Definitions of attributes which were sent to execution and resulted in the data series with scoped
|
|
1330
1472
|
* measure values.
|
|
1331
1473
|
*
|
|
1474
|
+
* @remarks
|
|
1332
1475
|
* Order of apperance matches the order of appreance in the `scopingAttributes` array.
|
|
1333
1476
|
*/
|
|
1334
1477
|
readonly scopingAttributesDef?: IAttribute[];
|
|
@@ -1340,8 +1483,10 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1340
1483
|
*/
|
|
1341
1484
|
allForMeasure(localIdOrMeasure: string | IMeasure): Iterable<IDataSeries>;
|
|
1342
1485
|
/**
|
|
1343
|
-
* Returns first-found data series for the provided measure.
|
|
1344
|
-
*
|
|
1486
|
+
* Returns first-found data series for the provided measure.
|
|
1487
|
+
*
|
|
1488
|
+
* @remarks
|
|
1489
|
+
* This is a 'get-or-die' method and will throw in case data series from the provided measure is not located.
|
|
1345
1490
|
*
|
|
1346
1491
|
* @param localIdOrMeasure - local id of measure or measure object to get local id from
|
|
1347
1492
|
* @returns data series
|
|
@@ -1351,6 +1496,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1351
1496
|
/**
|
|
1352
1497
|
* Returns all data series in an array.
|
|
1353
1498
|
*
|
|
1499
|
+
* @remarks
|
|
1354
1500
|
* Note: if you are looking for a subset of measures, always prefer using the first-class methods
|
|
1355
1501
|
* {@link IDataSeriesCollection#allForMeasure} and {@link IDataSeriesCollection#firstForMeasure} in favor of getting the array and filtering yourself.
|
|
1356
1502
|
*
|
|
@@ -1373,6 +1519,7 @@ export declare interface IDataSet {
|
|
|
1373
1519
|
* Data slice is a sequence of data points that are all computed for a particular attribute elements and/or totals but
|
|
1374
1520
|
* different data series.
|
|
1375
1521
|
*
|
|
1522
|
+
* @remarks
|
|
1376
1523
|
* In other words, data slice allows iterating over two dimension data view _across_ the dimension which contains
|
|
1377
1524
|
* the measures.
|
|
1378
1525
|
*
|
|
@@ -1404,7 +1551,10 @@ export declare interface IDataSlice extends DataSliceDescriptorMethods, Iterable
|
|
|
1404
1551
|
}
|
|
1405
1552
|
|
|
1406
1553
|
/**
|
|
1407
|
-
* An iterable collection of data slices.
|
|
1554
|
+
* An iterable collection of data slices.
|
|
1555
|
+
*
|
|
1556
|
+
* @remarks
|
|
1557
|
+
* The collection additionally includes basic information about the
|
|
1408
1558
|
* origin of the data slices that can be iterated - their number and attributes or totals that were used
|
|
1409
1559
|
* for slicing.
|
|
1410
1560
|
*
|
|
@@ -1433,6 +1583,7 @@ export declare interface IDataSliceCollection extends Iterable<IDataSlice> {
|
|
|
1433
1583
|
/**
|
|
1434
1584
|
* Common props for visualization of data computed by the analytical backend.
|
|
1435
1585
|
*
|
|
1586
|
+
* @remarks
|
|
1436
1587
|
* Data visualization contains prepared execution which will return data that needs to be visualized.
|
|
1437
1588
|
*
|
|
1438
1589
|
* @public
|
|
@@ -1665,12 +1816,13 @@ export declare interface IExecuteErrorComponentProps {
|
|
|
1665
1816
|
|
|
1666
1817
|
/**
|
|
1667
1818
|
* Props of the {@link ExecuteInsight} component.
|
|
1668
|
-
* @
|
|
1819
|
+
* @public
|
|
1669
1820
|
*/
|
|
1670
1821
|
export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecuteInsightProps> {
|
|
1671
1822
|
/**
|
|
1672
1823
|
* Backend to execute against.
|
|
1673
1824
|
*
|
|
1825
|
+
* @remarks
|
|
1674
1826
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
1675
1827
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
1676
1828
|
*/
|
|
@@ -1678,6 +1830,7 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1678
1830
|
/**
|
|
1679
1831
|
* Workspace in whose context to perform the execution.
|
|
1680
1832
|
*
|
|
1833
|
+
* @remarks
|
|
1681
1834
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
1682
1835
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
1683
1836
|
*/
|
|
@@ -1687,24 +1840,26 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1687
1840
|
*/
|
|
1688
1841
|
insight: ObjRef;
|
|
1689
1842
|
/**
|
|
1690
|
-
*
|
|
1843
|
+
* Modify sorts on prepared insight execution, before it's executed.
|
|
1691
1844
|
*/
|
|
1692
1845
|
sorts?: ISortItem[] | ((def: IExecutionDefinition, props: IExecuteInsightProps) => ISortItem[]);
|
|
1693
1846
|
/**
|
|
1694
|
-
*
|
|
1847
|
+
* Modify dimensions on prepared insight execution, before it's executed.
|
|
1695
1848
|
*/
|
|
1696
1849
|
dimensions?: IDimension[] | ((def: IExecutionDefinition, props: IExecuteInsightProps) => IDimension[]);
|
|
1697
1850
|
/**
|
|
1698
|
-
*
|
|
1851
|
+
* Modify date formatting on prepared insight execution, before it's executed.
|
|
1699
1852
|
*/
|
|
1700
1853
|
dateFormat?: string | ((def: IExecutionDefinition, props: IExecuteInsightProps) => string);
|
|
1701
1854
|
/**
|
|
1702
|
-
*
|
|
1855
|
+
* Filters to apply on server side.
|
|
1703
1856
|
*/
|
|
1704
1857
|
filters?: INullableFilter[];
|
|
1705
1858
|
/**
|
|
1706
|
-
*
|
|
1707
|
-
*
|
|
1859
|
+
* Name to use for files exported from this component.
|
|
1860
|
+
*
|
|
1861
|
+
* @remarks
|
|
1862
|
+
* If you do not specify this, then the componentName will be used instead.
|
|
1708
1863
|
*
|
|
1709
1864
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
1710
1865
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -1712,16 +1867,21 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1712
1867
|
*/
|
|
1713
1868
|
exportTitle?: string;
|
|
1714
1869
|
/**
|
|
1715
|
-
*
|
|
1716
|
-
*
|
|
1717
|
-
*
|
|
1870
|
+
* Informative name of the component.
|
|
1871
|
+
*
|
|
1872
|
+
* @remarks
|
|
1873
|
+
* This value is sent as telemetry information together with the actual execution request. We recommend to set this
|
|
1874
|
+
* because it can be useful for diagnostic purposes.
|
|
1718
1875
|
*
|
|
1719
1876
|
* Defaults 'Execute'.
|
|
1720
1877
|
*/
|
|
1721
1878
|
componentName?: string;
|
|
1722
1879
|
/**
|
|
1723
1880
|
* Specifies whether `Execute` should trigger execution and loading right after it is
|
|
1724
|
-
* mounted.
|
|
1881
|
+
* mounted.
|
|
1882
|
+
*
|
|
1883
|
+
* @remarks
|
|
1884
|
+
* If not specified defaults to `true`.
|
|
1725
1885
|
*
|
|
1726
1886
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
1727
1887
|
* to trigger the execution and loading.
|
|
@@ -1731,26 +1891,48 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1731
1891
|
* Specifies whether `Execute` should load all data from backend or just a particular window - specified by
|
|
1732
1892
|
* offset and size of the window.
|
|
1733
1893
|
*
|
|
1894
|
+
* @remarks
|
|
1734
1895
|
* If not specified, all data will be loaded.
|
|
1735
1896
|
*/
|
|
1736
1897
|
window?: DataViewWindow;
|
|
1737
1898
|
/**
|
|
1738
|
-
*
|
|
1739
|
-
*
|
|
1899
|
+
* Indicates that the execution to obtain the data for the insight should be an 'execution by reference'.
|
|
1900
|
+
*
|
|
1901
|
+
* Execution by reference means that the ExecuteInsight will ask analytical backend to compute results for an insight
|
|
1902
|
+
* which is stored on the backend by specifying link to the insight, additional filters and description how
|
|
1903
|
+
* to organize the data.
|
|
1904
|
+
*
|
|
1905
|
+
* Otherwise, a freeform execution is done, in which the InsightView will send to backend the full execution
|
|
1906
|
+
* definition of what to compute.
|
|
1907
|
+
*
|
|
1908
|
+
* This distinction is in place because some backends MAY want to prohibit users from doing freeform executions
|
|
1909
|
+
* and only allow computing data for set of insights created by admins.
|
|
1910
|
+
*
|
|
1911
|
+
* Note: the need for execute by reference is rare. You will typically be notified by the solution admin to use
|
|
1912
|
+
* this mode.
|
|
1913
|
+
*/
|
|
1914
|
+
executeByReference?: boolean;
|
|
1915
|
+
/**
|
|
1916
|
+
* Child component to which rendering is delegated.
|
|
1917
|
+
*
|
|
1918
|
+
* @remarks
|
|
1919
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
1740
1920
|
*
|
|
1741
1921
|
* @param executionResult - execution result, indicating state and/or results
|
|
1742
1922
|
*/
|
|
1743
1923
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
1744
1924
|
/**
|
|
1745
|
-
*
|
|
1925
|
+
* Provide component for rendering of the loading state.
|
|
1746
1926
|
*
|
|
1927
|
+
* @remarks
|
|
1747
1928
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1748
1929
|
* will be called only with a successful result.
|
|
1749
1930
|
*/
|
|
1750
1931
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
1751
1932
|
/**
|
|
1752
|
-
*
|
|
1933
|
+
* Provide component for rendering of the error state.
|
|
1753
1934
|
*
|
|
1935
|
+
* @remarks
|
|
1754
1936
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1755
1937
|
* will be called only with a successful result.
|
|
1756
1938
|
*/
|
|
@@ -1771,6 +1953,7 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1771
1953
|
/**
|
|
1772
1954
|
* Backend to execute against.
|
|
1773
1955
|
*
|
|
1956
|
+
* @remarks
|
|
1774
1957
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
1775
1958
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
1776
1959
|
*/
|
|
@@ -1778,38 +1961,41 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1778
1961
|
/**
|
|
1779
1962
|
* Workspace in whose context to perform the execution.
|
|
1780
1963
|
*
|
|
1964
|
+
* @remarks
|
|
1781
1965
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
1782
1966
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
1783
1967
|
*/
|
|
1784
1968
|
workspace?: string;
|
|
1785
1969
|
/**
|
|
1786
|
-
* Data series will be built using the provided measures that are
|
|
1970
|
+
* Data series will be built using the provided measures that are further scoped for
|
|
1787
1971
|
* elements of the specified attributes.
|
|
1788
1972
|
*/
|
|
1789
1973
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
1790
1974
|
/**
|
|
1791
|
-
*
|
|
1975
|
+
* Slice all data series by elements of these attributes.
|
|
1792
1976
|
*/
|
|
1793
1977
|
slicesBy?: AttributesOrPlaceholders;
|
|
1794
1978
|
/**
|
|
1795
|
-
*
|
|
1979
|
+
* Include these totals among the data slices.
|
|
1796
1980
|
*/
|
|
1797
1981
|
totals?: TotalsOrPlaceholders;
|
|
1798
1982
|
/**
|
|
1799
|
-
*
|
|
1983
|
+
* Filters to apply on server side.
|
|
1800
1984
|
*/
|
|
1801
1985
|
filters?: NullableFiltersOrPlaceholders;
|
|
1802
1986
|
/**
|
|
1803
|
-
*
|
|
1987
|
+
* Sorting to apply on server side.
|
|
1804
1988
|
*/
|
|
1805
1989
|
sortBy?: SortsOrPlaceholders;
|
|
1806
1990
|
/**
|
|
1807
|
-
*
|
|
1991
|
+
* Resolution context for composed placeholders.
|
|
1808
1992
|
*/
|
|
1809
1993
|
placeholdersResolutionContext?: any;
|
|
1810
1994
|
/**
|
|
1811
|
-
*
|
|
1812
|
-
*
|
|
1995
|
+
* Name to use for files exported from this component.
|
|
1996
|
+
*
|
|
1997
|
+
* @remarks
|
|
1998
|
+
* If you do not specify this, then the componentName will be used instead.
|
|
1813
1999
|
*
|
|
1814
2000
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
1815
2001
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -1817,16 +2003,21 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1817
2003
|
*/
|
|
1818
2004
|
exportTitle?: string;
|
|
1819
2005
|
/**
|
|
1820
|
-
*
|
|
1821
|
-
*
|
|
1822
|
-
*
|
|
2006
|
+
* Informative name of the component.
|
|
2007
|
+
*
|
|
2008
|
+
* @remarks
|
|
2009
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
2010
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
1823
2011
|
*
|
|
1824
2012
|
* Defaults 'Execute'.
|
|
1825
2013
|
*/
|
|
1826
2014
|
componentName?: string;
|
|
1827
2015
|
/**
|
|
1828
2016
|
* Specifies whether {@link Execute} should trigger execution and loading right after it is
|
|
1829
|
-
* mounted.
|
|
2017
|
+
* mounted.
|
|
2018
|
+
*
|
|
2019
|
+
* @remarks
|
|
2020
|
+
* If not specified defaults to `true`.
|
|
1830
2021
|
*
|
|
1831
2022
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
1832
2023
|
* to trigger the execution and loading.
|
|
@@ -1836,26 +2027,31 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1836
2027
|
* Specifies whether {@link Execute} should load all data from backend or just a particular window - specified by
|
|
1837
2028
|
* offset and size of the window.
|
|
1838
2029
|
*
|
|
2030
|
+
* @remarks
|
|
1839
2031
|
* If not specified, all data will be loaded.
|
|
1840
2032
|
*/
|
|
1841
2033
|
window?: DataViewWindow;
|
|
1842
2034
|
/**
|
|
1843
|
-
* Child component to which rendering is delegated.
|
|
1844
|
-
*
|
|
2035
|
+
* Child component to which rendering is delegated.
|
|
2036
|
+
*
|
|
2037
|
+
* @remarks
|
|
2038
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
1845
2039
|
*
|
|
1846
2040
|
* @param executionResult - execution result, indicating state and/or results
|
|
1847
2041
|
*/
|
|
1848
2042
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
1849
2043
|
/**
|
|
1850
|
-
*
|
|
2044
|
+
* Provide component for rendering of the loading state.
|
|
1851
2045
|
*
|
|
2046
|
+
* @remarks
|
|
1852
2047
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1853
2048
|
* will be called only with a successful result.
|
|
1854
2049
|
*/
|
|
1855
2050
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
1856
2051
|
/**
|
|
1857
|
-
*
|
|
2052
|
+
* Provide component for rendering of the error state.
|
|
1858
2053
|
*
|
|
2054
|
+
* @remarks
|
|
1859
2055
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1860
2056
|
* will be called only with a successful result.
|
|
1861
2057
|
*/
|
|
@@ -1863,38 +2059,42 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1863
2059
|
}
|
|
1864
2060
|
|
|
1865
2061
|
/**
|
|
1866
|
-
*
|
|
2062
|
+
* Convenient interfance to define execution by series and slices.
|
|
2063
|
+
*
|
|
2064
|
+
* @public
|
|
1867
2065
|
*/
|
|
1868
2066
|
export declare interface IExecutionConfiguration {
|
|
1869
2067
|
/**
|
|
1870
|
-
* Data series will be built using the provided measures that are
|
|
2068
|
+
* Data series will be built using the provided measures that are further scoped for
|
|
1871
2069
|
* elements of the specified attributes.
|
|
1872
2070
|
*/
|
|
1873
2071
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
1874
2072
|
/**
|
|
1875
|
-
*
|
|
2073
|
+
* Slice all data series by elements of these attributes.
|
|
1876
2074
|
*/
|
|
1877
2075
|
slicesBy?: AttributesOrPlaceholders;
|
|
1878
2076
|
/**
|
|
1879
|
-
*
|
|
2077
|
+
* Include these totals among the data slices.
|
|
1880
2078
|
*/
|
|
1881
2079
|
totals?: TotalsOrPlaceholders;
|
|
1882
2080
|
/**
|
|
1883
|
-
*
|
|
2081
|
+
* Filters to apply on server side.
|
|
1884
2082
|
*/
|
|
1885
2083
|
filters?: NullableFiltersOrPlaceholders;
|
|
1886
2084
|
/**
|
|
1887
|
-
*
|
|
2085
|
+
* Sorting to apply on server side.
|
|
1888
2086
|
*/
|
|
1889
2087
|
sortBy?: SortsOrPlaceholders;
|
|
1890
2088
|
/**
|
|
1891
|
-
*
|
|
2089
|
+
* Resolution context for composed placeholders.
|
|
1892
2090
|
*/
|
|
1893
2091
|
placeholdersResolutionContext?: any;
|
|
1894
2092
|
/**
|
|
1895
|
-
*
|
|
1896
|
-
*
|
|
1897
|
-
*
|
|
2093
|
+
* Informative name of the component.
|
|
2094
|
+
*
|
|
2095
|
+
* @remarks
|
|
2096
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
2097
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
1898
2098
|
*
|
|
1899
2099
|
* Defaults 'Execute'.
|
|
1900
2100
|
*/
|
|
@@ -1904,7 +2104,7 @@ export declare interface IExecutionConfiguration {
|
|
|
1904
2104
|
/**
|
|
1905
2105
|
* Methods to work with execution definition.
|
|
1906
2106
|
*
|
|
1907
|
-
* @
|
|
2107
|
+
* @internal
|
|
1908
2108
|
*/
|
|
1909
2109
|
export declare interface IExecutionDefinitionMethods {
|
|
1910
2110
|
/**
|
|
@@ -2015,8 +2215,12 @@ export declare interface IExtendedExportConfig extends IExportConfig {
|
|
|
2015
2215
|
export declare function ignoreTitlesForSimpleMeasures<T extends IInsightDefinition>(insight: T): T;
|
|
2016
2216
|
|
|
2017
2217
|
/**
|
|
2018
|
-
* A function called for {@link IMappingHeader} instances.
|
|
2218
|
+
* A function called for {@link IMappingHeader} instances.
|
|
2219
|
+
*
|
|
2220
|
+
* @remarks
|
|
2221
|
+
* When the function returns true, it means the IMappingHeader is matched.
|
|
2019
2222
|
* See {@link https://sdk.gooddata.com/gooddata-ui/docs/ht_create_predicates.html | documentation} for more information.
|
|
2223
|
+
*
|
|
2020
2224
|
* @public
|
|
2021
2225
|
*/
|
|
2022
2226
|
export declare type IHeaderPredicate = (header: IMappingHeader, context: IHeaderPredicateContext) => boolean;
|
|
@@ -2068,14 +2272,16 @@ export declare interface IIntlWrapperProps {
|
|
|
2068
2272
|
*/
|
|
2069
2273
|
export declare interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps> {
|
|
2070
2274
|
/**
|
|
2071
|
-
*
|
|
2275
|
+
* Specify an instance of analytical backend instance to work with.
|
|
2072
2276
|
*
|
|
2277
|
+
* @remarks
|
|
2073
2278
|
* Note: if you do not have a BackendProvider above in the component tree, then you MUST specify the backend.
|
|
2074
2279
|
*/
|
|
2075
2280
|
backend?: IAnalyticalBackend;
|
|
2076
2281
|
/**
|
|
2077
|
-
*
|
|
2282
|
+
* Specify workspace to work with.
|
|
2078
2283
|
*
|
|
2284
|
+
* @remarks
|
|
2079
2285
|
* Note: if you do not have a WorkspaceProvider above in the component tree, then you MUST specify the workspace.
|
|
2080
2286
|
*/
|
|
2081
2287
|
workspace?: string;
|
|
@@ -2084,24 +2290,24 @@ export declare interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps>
|
|
|
2084
2290
|
*/
|
|
2085
2291
|
measure: IMeasure;
|
|
2086
2292
|
/**
|
|
2087
|
-
*
|
|
2293
|
+
* Specify filters to apply during calculation
|
|
2088
2294
|
*/
|
|
2089
2295
|
filters?: INullableFilter[];
|
|
2090
2296
|
/**
|
|
2091
|
-
*
|
|
2297
|
+
* Specify number separators to use when rendering (segment delimiters, decimal point character)
|
|
2092
2298
|
*/
|
|
2093
2299
|
separators?: ISeparators_2;
|
|
2094
2300
|
/**
|
|
2095
|
-
*
|
|
2301
|
+
* Specify locale to use for strings that the Kpi component may render (for instance when encountering
|
|
2096
2302
|
* errors).
|
|
2097
2303
|
*/
|
|
2098
2304
|
locale?: string;
|
|
2099
2305
|
/**
|
|
2100
|
-
*
|
|
2306
|
+
* Specify react component to render while the data is loading.
|
|
2101
2307
|
*/
|
|
2102
2308
|
LoadingComponent?: React_2.ComponentType<ILoadingProps>;
|
|
2103
2309
|
/**
|
|
2104
|
-
*
|
|
2310
|
+
* Specify react component to render if execution fails.
|
|
2105
2311
|
*/
|
|
2106
2312
|
ErrorComponent?: React_2.ComponentType<IErrorProps>;
|
|
2107
2313
|
}
|
|
@@ -2171,7 +2377,9 @@ export declare interface ILoadingState {
|
|
|
2171
2377
|
export declare type ILocale = "en-US" | "de-DE" | "es-ES" | "fr-FR" | "ja-JP" | "nl-NL" | "pt-BR" | "pt-PT" | "zh-Hans" | "ru-RU";
|
|
2172
2378
|
|
|
2173
2379
|
/**
|
|
2380
|
+
* @privateRemarks
|
|
2174
2381
|
* TODO: SDK8: remove this, replace with something more meaningful
|
|
2382
|
+
*
|
|
2175
2383
|
* @public
|
|
2176
2384
|
*/
|
|
2177
2385
|
export declare type IMappingHeader = IAttributeDescriptor | IResultAttributeHeader | IMeasureDescriptor | ITotalDescriptor;
|
|
@@ -2201,9 +2409,11 @@ export declare const IntlWrapper: React_2.FC<IIntlWrapperProps>;
|
|
|
2201
2409
|
|
|
2202
2410
|
/**
|
|
2203
2411
|
* Placeholder represents a reference to a specific part of the execution - attribute(s), measure(s), filter(s), sort(s) or total(s),
|
|
2204
|
-
* that may change the value at runtime.
|
|
2205
|
-
*
|
|
2206
|
-
*
|
|
2412
|
+
* that may change the value at runtime.
|
|
2413
|
+
*
|
|
2414
|
+
* @remarks
|
|
2415
|
+
* You can provide it to visualizations instead of the attributes/measures/filters/sorts/totals themselves,
|
|
2416
|
+
* placeholders will be replaced with the actual values on the background.
|
|
2207
2417
|
*
|
|
2208
2418
|
* This allows you:
|
|
2209
2419
|
* - share a reference to the same execution elements across multiple components.
|
|
@@ -2213,9 +2423,13 @@ export declare const IntlWrapper: React_2.FC<IIntlWrapperProps>;
|
|
|
2213
2423
|
*
|
|
2214
2424
|
* Placeholder values are living in React context and you can obtain/set their values by the following hooks:
|
|
2215
2425
|
* - {@link usePlaceholder}
|
|
2426
|
+
*
|
|
2216
2427
|
* - {@link usePlaceholders}
|
|
2428
|
+
*
|
|
2217
2429
|
* - {@link useComposedPlaceholder}
|
|
2430
|
+
*
|
|
2218
2431
|
* - {@link useResolveValueWithPlaceholders}
|
|
2432
|
+
*
|
|
2219
2433
|
* - {@link useResolveValuesWithPlaceholders}
|
|
2220
2434
|
*
|
|
2221
2435
|
* Note:
|
|
@@ -2240,12 +2454,14 @@ export declare type IPlaceholder<T> = {
|
|
|
2240
2454
|
export declare interface IPlaceholderOptions<T> {
|
|
2241
2455
|
/**
|
|
2242
2456
|
* By default, each placeholder has a unique generated id.
|
|
2243
|
-
*
|
|
2457
|
+
*
|
|
2458
|
+
* @remarks
|
|
2459
|
+
* You can provide id of the placeholder which can be useful for debugging.
|
|
2244
2460
|
* Please note that the id should be unique for all your placeholders.
|
|
2245
2461
|
*/
|
|
2246
2462
|
id?: string;
|
|
2247
2463
|
/**
|
|
2248
|
-
*
|
|
2464
|
+
* Provide function to validate the placeholder value.
|
|
2249
2465
|
*/
|
|
2250
2466
|
validate?: (value?: T) => void;
|
|
2251
2467
|
}
|
|
@@ -2289,12 +2505,15 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2289
2505
|
* Specifies whether {@link RawExecute} should load all data from backend or just a particular window - specified by
|
|
2290
2506
|
* offset and size of the window.
|
|
2291
2507
|
*
|
|
2508
|
+
* @remarks
|
|
2292
2509
|
* If not specified, all data will be loaded.
|
|
2293
2510
|
*/
|
|
2294
2511
|
window?: DataViewWindow;
|
|
2295
2512
|
/**
|
|
2296
|
-
*
|
|
2297
|
-
*
|
|
2513
|
+
* Name to use for files exported from this component.
|
|
2514
|
+
*
|
|
2515
|
+
* @remarks
|
|
2516
|
+
* If you do not specify this, then the 'RawExecute' will be used instead.
|
|
2298
2517
|
*
|
|
2299
2518
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
2300
2519
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -2303,28 +2522,36 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2303
2522
|
exportTitle?: string;
|
|
2304
2523
|
/**
|
|
2305
2524
|
* Indicates whether the executor should trigger execution and loading right after it is
|
|
2306
|
-
* mounted.
|
|
2525
|
+
* mounted.
|
|
2526
|
+
*
|
|
2527
|
+
* @remarks
|
|
2528
|
+
* If not specified defaults to `true`.
|
|
2307
2529
|
*
|
|
2308
2530
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
2309
2531
|
* to trigger the execution and loading.
|
|
2310
2532
|
*/
|
|
2311
2533
|
loadOnMount?: boolean;
|
|
2312
2534
|
/**
|
|
2313
|
-
* Child component to which rendering is delegated.
|
|
2314
|
-
*
|
|
2535
|
+
* Child component to which rendering is delegated.
|
|
2536
|
+
*
|
|
2537
|
+
* @remarks
|
|
2538
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
2315
2539
|
*
|
|
2316
2540
|
* @param executionResult - execution result, indicating state and/or results
|
|
2317
2541
|
*/
|
|
2318
2542
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
2319
2543
|
/**
|
|
2320
|
-
*
|
|
2544
|
+
* Provide component for rendering of the loading state.
|
|
2321
2545
|
*
|
|
2546
|
+
* @remarks
|
|
2322
2547
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
2323
2548
|
* will be called only with a successful result.
|
|
2324
2549
|
*/
|
|
2325
2550
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
2326
2551
|
/**
|
|
2327
|
-
*
|
|
2552
|
+
* Provide component for rendering of the error state.
|
|
2553
|
+
*
|
|
2554
|
+
* @remarks
|
|
2328
2555
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
2329
2556
|
* will be called only with a successful result.
|
|
2330
2557
|
*/
|
|
@@ -2334,7 +2561,7 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2334
2561
|
/**
|
|
2335
2562
|
* Methods to access data and totals in a result.
|
|
2336
2563
|
*
|
|
2337
|
-
* @
|
|
2564
|
+
* @internal
|
|
2338
2565
|
*/
|
|
2339
2566
|
export declare interface IResultDataMethods {
|
|
2340
2567
|
/**
|
|
@@ -2389,7 +2616,7 @@ export declare interface IResultDataMethods {
|
|
|
2389
2616
|
/**
|
|
2390
2617
|
* Methods to access result metadata - dimension descriptors and result headers.
|
|
2391
2618
|
*
|
|
2392
|
-
* @
|
|
2619
|
+
* @internal
|
|
2393
2620
|
*/
|
|
2394
2621
|
export declare interface IResultMetaMethods {
|
|
2395
2622
|
/**
|
|
@@ -2680,6 +2907,7 @@ export declare interface ITranslationsCustomizationProviderProps {
|
|
|
2680
2907
|
/**
|
|
2681
2908
|
* Analytical backend, from which the ThemeProvider will obtain selected theme object
|
|
2682
2909
|
*
|
|
2910
|
+
* @remarks
|
|
2683
2911
|
* If you do not specify instance of analytical backend using this prop, then you MUST have
|
|
2684
2912
|
* BackendProvider up in the component tree.
|
|
2685
2913
|
*/
|
|
@@ -2687,6 +2915,7 @@ export declare interface ITranslationsCustomizationProviderProps {
|
|
|
2687
2915
|
/**
|
|
2688
2916
|
* Identifier of analytical workspace, from which the ThemeProvider will obtain the selected theme identifier
|
|
2689
2917
|
*
|
|
2918
|
+
* @remarks
|
|
2690
2919
|
* If you do not specify workspace identifier, then you MUST have WorkspaceProvider up in the
|
|
2691
2920
|
* component tree.
|
|
2692
2921
|
*/
|
|
@@ -2712,38 +2941,41 @@ export declare type ITranslationsProviderProps = ITranslationsProviderOwnProps &
|
|
|
2712
2941
|
export declare type IUseComposedPlaceholderHook<T extends IComposedPlaceholder<any, any, any>> = (resolutionContext: ComposedPlaceholderResolutionContext<T>) => PlaceholderResolvedValue<T>;
|
|
2713
2942
|
|
|
2714
2943
|
/**
|
|
2944
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
2715
2945
|
* @beta
|
|
2716
2946
|
*/
|
|
2717
2947
|
export declare interface IUseExecutionConfig {
|
|
2718
2948
|
/**
|
|
2719
|
-
* Data series will be built using the provided measures that are
|
|
2949
|
+
* Data series will be built using the provided measures that are further scoped for
|
|
2720
2950
|
* elements of the specified attributes.
|
|
2721
2951
|
*/
|
|
2722
2952
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
2723
2953
|
/**
|
|
2724
|
-
*
|
|
2954
|
+
* Slice all data series by elements of these attributes.
|
|
2725
2955
|
*/
|
|
2726
2956
|
slicesBy?: AttributesOrPlaceholders;
|
|
2727
2957
|
/**
|
|
2728
|
-
*
|
|
2958
|
+
* Include these totals among the data slices.
|
|
2729
2959
|
*/
|
|
2730
2960
|
totals?: TotalsOrPlaceholders;
|
|
2731
2961
|
/**
|
|
2732
|
-
*
|
|
2962
|
+
* Filters to apply on server side.
|
|
2733
2963
|
*/
|
|
2734
2964
|
filters?: NullableFiltersOrPlaceholders;
|
|
2735
2965
|
/**
|
|
2736
|
-
*
|
|
2966
|
+
* Sorting to apply on server side.
|
|
2737
2967
|
*/
|
|
2738
2968
|
sortBy?: SortsOrPlaceholders;
|
|
2739
2969
|
/**
|
|
2740
|
-
*
|
|
2970
|
+
* Resolution context for composed placeholders.
|
|
2741
2971
|
*/
|
|
2742
2972
|
placeholdersResolutionContext?: any;
|
|
2743
2973
|
/**
|
|
2744
|
-
*
|
|
2745
|
-
*
|
|
2746
|
-
*
|
|
2974
|
+
* Informative name of the component.
|
|
2975
|
+
*
|
|
2976
|
+
* @remarks
|
|
2977
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
2978
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
2747
2979
|
*
|
|
2748
2980
|
* Defaults 'Execute'.
|
|
2749
2981
|
*/
|
|
@@ -2751,6 +2983,7 @@ export declare interface IUseExecutionConfig {
|
|
|
2751
2983
|
/**
|
|
2752
2984
|
* Backend to work with.
|
|
2753
2985
|
*
|
|
2986
|
+
* @remarks
|
|
2754
2987
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2755
2988
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2756
2989
|
*/
|
|
@@ -2758,6 +2991,7 @@ export declare interface IUseExecutionConfig {
|
|
|
2758
2991
|
/**
|
|
2759
2992
|
* Workspace where execution should be executed.
|
|
2760
2993
|
*
|
|
2994
|
+
* @remarks
|
|
2761
2995
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2762
2996
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2763
2997
|
*/
|
|
@@ -2765,7 +2999,10 @@ export declare interface IUseExecutionConfig {
|
|
|
2765
2999
|
}
|
|
2766
3000
|
|
|
2767
3001
|
/**
|
|
2768
|
-
* @
|
|
3002
|
+
* Configuration for {@link useExecutionDataView} hook.
|
|
3003
|
+
* See also {@link UseExecutionDataViewCallbacks}.
|
|
3004
|
+
*
|
|
3005
|
+
* @public
|
|
2769
3006
|
*/
|
|
2770
3007
|
export declare interface IUseExecutionDataViewConfig {
|
|
2771
3008
|
/**
|
|
@@ -2773,13 +3010,16 @@ export declare interface IUseExecutionDataViewConfig {
|
|
|
2773
3010
|
*/
|
|
2774
3011
|
execution?: IPreparedExecution | IExecutionConfiguration;
|
|
2775
3012
|
/**
|
|
2776
|
-
*
|
|
3013
|
+
* You can define only a specific "window" of data to load.
|
|
3014
|
+
*
|
|
3015
|
+
* @remarks
|
|
2777
3016
|
* This is useful if you want to page data.
|
|
2778
3017
|
*/
|
|
2779
3018
|
window?: DataViewWindow;
|
|
2780
3019
|
/**
|
|
2781
3020
|
* Backend to work with.
|
|
2782
3021
|
*
|
|
3022
|
+
* @remarks
|
|
2783
3023
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2784
3024
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2785
3025
|
*/
|
|
@@ -2787,6 +3027,7 @@ export declare interface IUseExecutionDataViewConfig {
|
|
|
2787
3027
|
/**
|
|
2788
3028
|
* Workspace where execution should be executed.
|
|
2789
3029
|
*
|
|
3030
|
+
* @remarks
|
|
2790
3031
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2791
3032
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2792
3033
|
*/
|
|
@@ -2794,39 +3035,62 @@ export declare interface IUseExecutionDataViewConfig {
|
|
|
2794
3035
|
}
|
|
2795
3036
|
|
|
2796
3037
|
/**
|
|
2797
|
-
* @
|
|
3038
|
+
* Configuration for {@link useInsightDataView} hook.
|
|
3039
|
+
*
|
|
3040
|
+
* @public
|
|
2798
3041
|
*/
|
|
2799
3042
|
export declare interface IUseInsightDataViewConfig {
|
|
2800
3043
|
/**
|
|
2801
3044
|
* Reference to the insight for which you want to get the data view.
|
|
2802
3045
|
*
|
|
3046
|
+
* @remarks
|
|
2803
3047
|
* Note: When the reference or identifier is not provided, hook is locked in a "pending" state.
|
|
2804
3048
|
*/
|
|
2805
3049
|
insight?: ObjRef;
|
|
2806
3050
|
/**
|
|
2807
|
-
*
|
|
3051
|
+
* Modify sorts on prepared insight execution, before it's executed.
|
|
2808
3052
|
*/
|
|
2809
3053
|
sorts?: ISortItem[] | ((def: IExecutionDefinition) => ISortItem[]);
|
|
2810
3054
|
/**
|
|
2811
|
-
*
|
|
3055
|
+
* Modify dimensions on prepared insight execution, before it's executed.
|
|
2812
3056
|
*/
|
|
2813
3057
|
dimensions?: IDimension[] | ((def: IExecutionDefinition) => IDimension[]);
|
|
2814
3058
|
/**
|
|
2815
|
-
*
|
|
3059
|
+
* Modify date formatting on prepared insight execution, before it's executed.
|
|
2816
3060
|
*/
|
|
2817
3061
|
dateFormat?: string | ((def: IExecutionDefinition) => string);
|
|
2818
3062
|
/**
|
|
2819
|
-
*
|
|
3063
|
+
* Specify filters to merge with filters already defined in the insight.
|
|
2820
3064
|
*/
|
|
2821
3065
|
filters?: INullableFilter[];
|
|
2822
3066
|
/**
|
|
2823
|
-
*
|
|
3067
|
+
* You can define only a specific "window" of data to load.
|
|
3068
|
+
*
|
|
3069
|
+
* @remarks
|
|
2824
3070
|
* This is useful if you want to page data.
|
|
2825
3071
|
*/
|
|
2826
3072
|
window?: DataViewWindow;
|
|
3073
|
+
/**
|
|
3074
|
+
* Indicates that the execution to obtain the data for the insight should be an 'execution by reference'.
|
|
3075
|
+
*
|
|
3076
|
+
* Execution by reference means that the useInsightDataView will ask analytical backend to compute results for an insight
|
|
3077
|
+
* which is stored on the backend by specifying link to the insight, additional filters and description how
|
|
3078
|
+
* to organize the data.
|
|
3079
|
+
*
|
|
3080
|
+
* Otherwise, a freeform execution is done, in which the InsightView will send to backend the full execution
|
|
3081
|
+
* definition of what to compute.
|
|
3082
|
+
*
|
|
3083
|
+
* This distinction is in place because some backends MAY want to prohibit users from doing freeform executions
|
|
3084
|
+
* and only allow computing data for set of insights created by admins.
|
|
3085
|
+
*
|
|
3086
|
+
* Note: the need for execute by reference is rare. You will typically be notified by the solution admin to use
|
|
3087
|
+
* this mode.
|
|
3088
|
+
*/
|
|
3089
|
+
executeByReference?: boolean;
|
|
2827
3090
|
/**
|
|
2828
3091
|
* Backend to work with.
|
|
2829
3092
|
*
|
|
3093
|
+
* @remarks
|
|
2830
3094
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2831
3095
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2832
3096
|
*/
|
|
@@ -2834,6 +3098,7 @@ export declare interface IUseInsightDataViewConfig {
|
|
|
2834
3098
|
/**
|
|
2835
3099
|
* Workspace where execution should be executed.
|
|
2836
3100
|
*
|
|
3101
|
+
* @remarks
|
|
2837
3102
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2838
3103
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2839
3104
|
*/
|
|
@@ -2865,8 +3130,10 @@ PlaceholderValue<T> | undefined,
|
|
|
2865
3130
|
];
|
|
2866
3131
|
|
|
2867
3132
|
/**
|
|
2868
|
-
* Super-interface for all visualization callbacks
|
|
2869
|
-
*
|
|
3133
|
+
* Super-interface for all visualization callbacks.
|
|
3134
|
+
*
|
|
3135
|
+
* @remarks
|
|
3136
|
+
* All visualizations SHOULD have at least these callbacks defined.
|
|
2870
3137
|
*
|
|
2871
3138
|
* @public
|
|
2872
3139
|
*/
|
|
@@ -2898,8 +3165,10 @@ export declare interface IVisualizationCallbacks {
|
|
|
2898
3165
|
}
|
|
2899
3166
|
|
|
2900
3167
|
/**
|
|
2901
|
-
* Super-interface for all visualization props
|
|
2902
|
-
*
|
|
3168
|
+
* Super-interface for all visualization props.
|
|
3169
|
+
*
|
|
3170
|
+
* @remarks
|
|
3171
|
+
* Charts, tables or anything else - all should have these basic props.
|
|
2903
3172
|
*
|
|
2904
3173
|
* @public
|
|
2905
3174
|
*/
|
|
@@ -2907,12 +3176,14 @@ export declare interface IVisualizationProps {
|
|
|
2907
3176
|
/**
|
|
2908
3177
|
* Set Locale for visualization localization.
|
|
2909
3178
|
*
|
|
3179
|
+
* @remarks
|
|
2910
3180
|
* Note: This locale will be used for everything EXCEPT the data being visualized.
|
|
2911
3181
|
*/
|
|
2912
3182
|
locale?: string;
|
|
2913
3183
|
/**
|
|
2914
3184
|
* Set title to use for exported files.
|
|
2915
3185
|
*
|
|
3186
|
+
* @remarks
|
|
2916
3187
|
* Note: you can also specify export file name as parameters to the export function which you
|
|
2917
3188
|
* receive in the onExportReady. If you do not specify title here and neither as input to export function,
|
|
2918
3189
|
* the the name will default to name of the visualization component.
|
|
@@ -2954,24 +3225,25 @@ export declare interface IWithExecution<T> {
|
|
|
2954
3225
|
*/
|
|
2955
3226
|
exportTitle: string | ((props: T) => string);
|
|
2956
3227
|
/**
|
|
2957
|
-
*
|
|
3228
|
+
* Customize data window to load.
|
|
2958
3229
|
*
|
|
2959
3230
|
* By default the HOC loads all the data available in the execution's result.
|
|
2960
3231
|
*/
|
|
2961
3232
|
window?: DataViewWindow | ((props: T) => DataViewWindow | undefined);
|
|
2962
3233
|
/**
|
|
2963
|
-
*
|
|
3234
|
+
* Specify event callbacks which the HOC will trigger in different situations.
|
|
2964
3235
|
*/
|
|
2965
3236
|
events?: IWithLoadingEvents<T> | ((props: T) => IWithLoadingEvents<T>);
|
|
2966
3237
|
/**
|
|
2967
|
-
*
|
|
3238
|
+
* Customize, whether execution & data loading should start as soon as component is mounted.
|
|
2968
3239
|
*
|
|
3240
|
+
* @remarks
|
|
2969
3241
|
* Default is true. When not loading on mount, the wrapped component can trigger the load by calling the
|
|
2970
3242
|
* reload() function which the HOC injects into its props.
|
|
2971
3243
|
*/
|
|
2972
3244
|
loadOnMount?: boolean | ((props: T) => boolean);
|
|
2973
3245
|
/**
|
|
2974
|
-
*
|
|
3246
|
+
* Specify function that will be called during component prop updates and will be used to
|
|
2975
3247
|
* determine whether execution should be re-run and data reloaded.
|
|
2976
3248
|
*
|
|
2977
3249
|
* @param prevProps - previous props
|
|
@@ -2981,8 +3253,11 @@ export declare interface IWithExecution<T> {
|
|
|
2981
3253
|
}
|
|
2982
3254
|
|
|
2983
3255
|
/**
|
|
2984
|
-
* Configuration for the
|
|
2985
|
-
*
|
|
3256
|
+
* Configuration for the {@link withExecutionLoading} HOC.
|
|
3257
|
+
*
|
|
3258
|
+
* @remarks
|
|
3259
|
+
* All configuration parameters can be either actual parameter values or functions to obtain them
|
|
3260
|
+
* from the wrapped component props.
|
|
2986
3261
|
*
|
|
2987
3262
|
* If functions are specified, the HOC will call them with the wrapped component props as parameter and then use
|
|
2988
3263
|
* the resulting values as if they were passed directly.
|
|
@@ -3007,23 +3282,25 @@ export declare interface IWithExecutionLoading<TProps> {
|
|
|
3007
3282
|
*/
|
|
3008
3283
|
promiseFactory: (props: TProps, window?: DataViewWindow) => Promise<DataViewFacade>;
|
|
3009
3284
|
/**
|
|
3010
|
-
*
|
|
3011
|
-
*
|
|
3285
|
+
* Specify data view window to retrieve from backend.
|
|
3286
|
+
*
|
|
3287
|
+
* @remarks
|
|
3288
|
+
* If specified as function, the function can return undefined in case all data must be retrieved.
|
|
3012
3289
|
*/
|
|
3013
3290
|
window?: DataViewWindow | ((props: TProps) => DataViewWindow | undefined);
|
|
3014
3291
|
/**
|
|
3015
|
-
*
|
|
3292
|
+
* Specify event callbacks which the HOC will trigger in different situations.
|
|
3016
3293
|
*/
|
|
3017
3294
|
events?: IWithLoadingEvents<TProps> | ((props: TProps) => IWithLoadingEvents<TProps>);
|
|
3018
3295
|
/**
|
|
3019
|
-
*
|
|
3296
|
+
* Customize, whether execution & data loading should start as soon as component is mounted.
|
|
3020
3297
|
*
|
|
3021
3298
|
* Default is true. When not loading on mount, the wrapped component can trigger the load by calling the
|
|
3022
3299
|
* reload() function which the HOC injects into its props.
|
|
3023
3300
|
*/
|
|
3024
3301
|
loadOnMount?: boolean | ((props: TProps) => boolean);
|
|
3025
3302
|
/**
|
|
3026
|
-
*
|
|
3303
|
+
* Specify function that will be called during component prop updates and will be used to
|
|
3027
3304
|
* determine whether execution should be re-run and data reloaded.
|
|
3028
3305
|
*
|
|
3029
3306
|
* @param prevProps - previous props
|
|
@@ -3085,8 +3362,10 @@ export declare interface IWorkspaceProviderProps {
|
|
|
3085
3362
|
}
|
|
3086
3363
|
|
|
3087
3364
|
/**
|
|
3088
|
-
* Kpi is a simple component which calculates and renders a single formatted measure value.
|
|
3089
|
-
*
|
|
3365
|
+
* Kpi is a simple component which calculates and renders a single formatted measure value.
|
|
3366
|
+
*
|
|
3367
|
+
* @remarks
|
|
3368
|
+
* The the value is rendered inside a <span> element.
|
|
3090
3369
|
*
|
|
3091
3370
|
* Kpi component is useful for instance for embedding data values into text paragraphs.
|
|
3092
3371
|
*
|
|
@@ -3097,8 +3376,10 @@ export declare interface IWorkspaceProviderProps {
|
|
|
3097
3376
|
export declare const Kpi: React_2.ComponentType<IKpiProps>;
|
|
3098
3377
|
|
|
3099
3378
|
/**
|
|
3100
|
-
*
|
|
3101
|
-
*
|
|
3379
|
+
* Component that renders a default loading indicator.
|
|
3380
|
+
*
|
|
3381
|
+
* @remarks
|
|
3382
|
+
* See {@link http://sdk.gooddata.com/gooddata-ui/docs/loading_component.html | LoadingComponent }
|
|
3102
3383
|
*
|
|
3103
3384
|
* @public
|
|
3104
3385
|
*/
|
|
@@ -3132,7 +3413,7 @@ export declare function makeCancelable<T>(promise: Promise<T>): ICancelablePromi
|
|
|
3132
3413
|
/**
|
|
3133
3414
|
* Generate union of measures from union of measure definitions.
|
|
3134
3415
|
*
|
|
3135
|
-
*
|
|
3416
|
+
* @example
|
|
3136
3417
|
* - IMeasureDefinition | IArithmeticMeasureDefinition is resolved as
|
|
3137
3418
|
* IMeasure\<IMeasureDefinition\> | IMeasure\<IArithmeticMeasureDefinition\>
|
|
3138
3419
|
*
|
|
@@ -3232,6 +3513,7 @@ export declare type NullableFiltersOrPlaceholders = Array<FilterOrMultiValuePlac
|
|
|
3232
3513
|
* Creates a new predicate that returns true for any header that belongs to either attribute or measure matching
|
|
3233
3514
|
* the provided object.
|
|
3234
3515
|
*
|
|
3516
|
+
* @remarks
|
|
3235
3517
|
* If the object is empty or is not attribute, simple measure or object reference, the function returns predicate
|
|
3236
3518
|
* that is always falsy.
|
|
3237
3519
|
*
|
|
@@ -3302,8 +3584,10 @@ export declare const pickCorrectWording: (translations: Record<string, string>,
|
|
|
3302
3584
|
/**
|
|
3303
3585
|
* Wrap each member of the union type in AnyPlaceholder.
|
|
3304
3586
|
*
|
|
3305
|
-
*
|
|
3306
|
-
*
|
|
3587
|
+
* @example
|
|
3588
|
+
* ```
|
|
3589
|
+
* IAttribute | IMeasure is resolved as AnyPlaceholder\<IAttribute\> | AnyPlaceholder\<IMeasure\>
|
|
3590
|
+
* ```
|
|
3307
3591
|
*
|
|
3308
3592
|
* @public
|
|
3309
3593
|
*/
|
|
@@ -3311,15 +3595,19 @@ export declare type PlaceholderOf<T> = T extends any ? AnyPlaceholder<T> : never
|
|
|
3311
3595
|
|
|
3312
3596
|
/**
|
|
3313
3597
|
* Convert any value that may contain placeholders to its resolved value type.
|
|
3598
|
+
*
|
|
3599
|
+
* @remarks
|
|
3314
3600
|
* Nested array placeholders resolved value types are flattened.
|
|
3315
3601
|
* If the type is not a placeholder, return the same type.
|
|
3316
3602
|
*
|
|
3317
|
-
*
|
|
3318
|
-
*
|
|
3319
|
-
*
|
|
3320
|
-
*
|
|
3321
|
-
*
|
|
3322
|
-
*
|
|
3603
|
+
* @example
|
|
3604
|
+
* ```
|
|
3605
|
+
* IPlaceholder\<IAttribute\> is resolved as IAttribute
|
|
3606
|
+
* IPlaceholder\<IAttribute\>[] is resolved as IAttribute[]
|
|
3607
|
+
* IPlaceholder\<IAttribute[]\> is resolved as IAttribute[]
|
|
3608
|
+
* [IPlaceholder\<IAttribute[]\>, IPlaceholder\<IMeasure[]\>] is resolved as (IAttribute | IMeasure)[]
|
|
3609
|
+
* null is resolved as null
|
|
3610
|
+
* ```
|
|
3323
3611
|
*
|
|
3324
3612
|
* @public
|
|
3325
3613
|
*/
|
|
@@ -3336,10 +3624,13 @@ export declare function PlaceholdersProvider(props: IPlaceholdersProviderProps):
|
|
|
3336
3624
|
/**
|
|
3337
3625
|
* Convert tuple of values that may contain placeholders to tuple of their respective resolved value types.
|
|
3338
3626
|
*
|
|
3339
|
-
*
|
|
3340
|
-
*
|
|
3341
|
-
*
|
|
3627
|
+
* @example
|
|
3628
|
+
* ```
|
|
3629
|
+
* [IPlaceholder\<IAttribute\>, IPlaceholder\<IAttribute[]\>] is resolved as [IAttribute, IAttribute[]]
|
|
3630
|
+
* [IPlaceholder\<IMeasure\>, IMeasure] is resolved as [IMeasure, IMeasure]
|
|
3631
|
+
* ```
|
|
3342
3632
|
*
|
|
3633
|
+
* @remarks
|
|
3343
3634
|
* Check mapped tuple types for more details:
|
|
3344
3635
|
* https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-1.html#mapped-types-on-tuples-and-arrays
|
|
3345
3636
|
*
|
|
@@ -3352,9 +3643,10 @@ export declare type PlaceholdersResolvedValues<Tuple extends any[]> = {
|
|
|
3352
3643
|
/**
|
|
3353
3644
|
* Convert tuple of placeholders to tuple of their respective value types.
|
|
3354
3645
|
*
|
|
3355
|
-
*
|
|
3356
|
-
*
|
|
3646
|
+
* @example
|
|
3647
|
+
* [IPlaceholder\<IAttribute\>, IPlaceholder\<IAttribute[]\>] is resolved as [IAttribute, IAttribute[]]
|
|
3357
3648
|
*
|
|
3649
|
+
* @remarks
|
|
3358
3650
|
* Check mapped tuple types for more details:
|
|
3359
3651
|
* https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-1.html#mapped-types-on-tuples-and-arrays
|
|
3360
3652
|
*
|
|
@@ -3366,13 +3658,17 @@ export declare type PlaceholdersValues<Tuple extends [...any[]]> = {
|
|
|
3366
3658
|
|
|
3367
3659
|
/**
|
|
3368
3660
|
* Get placeholder value type.
|
|
3661
|
+
*
|
|
3662
|
+
* @remarks
|
|
3369
3663
|
* If the type is not a placeholder, return the same type.
|
|
3370
3664
|
*
|
|
3371
|
-
*
|
|
3372
|
-
*
|
|
3373
|
-
*
|
|
3374
|
-
*
|
|
3375
|
-
*
|
|
3665
|
+
* @example
|
|
3666
|
+
* ```
|
|
3667
|
+
* IPlaceholder\<IAttribute\> is resolved as IAttribute
|
|
3668
|
+
* IPlaceholder\<IAttribute[]\> is resolved as IAttribute[]
|
|
3669
|
+
* IComposedPlaceholder\<IMeasure\> is resolved as IMeasure
|
|
3670
|
+
* null is resolved as null
|
|
3671
|
+
* ```
|
|
3376
3672
|
*
|
|
3377
3673
|
* @public
|
|
3378
3674
|
*/
|
|
@@ -3392,6 +3688,7 @@ export declare class ProtectedReportSdkError extends GoodDataSdkError {
|
|
|
3392
3688
|
* Raw executor is the most basic React component to drive custom executions to obtain
|
|
3393
3689
|
* data from backends.
|
|
3394
3690
|
*
|
|
3691
|
+
* @remarks
|
|
3395
3692
|
* The component accepts an instance of prepared execution and drives all the necessary
|
|
3396
3693
|
* APIs and boilerplate needed to obtain a {@link DataViewFacade}.
|
|
3397
3694
|
* Note that if the resulting data is empty this will NOT throw a {@link @gooddata/sdk-backend-spi#NoDataError}.
|
|
@@ -3449,18 +3746,20 @@ export declare function resolveLCMWorkspaceIdentifiers(backend: any, clientWorks
|
|
|
3449
3746
|
/**
|
|
3450
3747
|
* Resolve error of multiple {@link useCancelablePromise} hooks - gets first error in the sequence of cancelable promise states.
|
|
3451
3748
|
*
|
|
3749
|
+
* @remarks
|
|
3452
3750
|
* This is useful for useCancelablePromise composition - when you want to wrap multiple useCancelablePromise hooks in another hook,
|
|
3453
3751
|
* and keep the return value shape of the hook same as for useCancelablePromise.
|
|
3454
3752
|
*
|
|
3455
3753
|
* @param states - cancelable promise states (useCancelablePromise return values)
|
|
3456
3754
|
* @returns first error
|
|
3457
|
-
* @
|
|
3755
|
+
* @public
|
|
3458
3756
|
*/
|
|
3459
3757
|
export declare function resolveUseCancelablePromisesError<TError>(states: UseCancelablePromiseState<unknown, TError>[]): TError | undefined;
|
|
3460
3758
|
|
|
3461
3759
|
/**
|
|
3462
3760
|
* Resolve status of multiple {@link useCancelablePromise} hooks.
|
|
3463
3761
|
*
|
|
3762
|
+
* @remarks
|
|
3464
3763
|
* This is useful for useCancelablePromise composition - when you want to wrap multiple useCancelablePromise hooks in another hook,
|
|
3465
3764
|
* and keep the return value shape of the hook same as for useCancelablePromise.
|
|
3466
3765
|
*
|
|
@@ -3476,9 +3775,9 @@ export declare function resolveUseCancelablePromisesError<TError>(states: UseCan
|
|
|
3476
3775
|
* - ["success", "success"] will be resolved to "success"
|
|
3477
3776
|
*
|
|
3478
3777
|
* @param states - cancelable promise states (useCancelablePromise return values)
|
|
3479
|
-
* @param options -
|
|
3778
|
+
* @param options - specify options for resolving the status
|
|
3480
3779
|
* @returns resolved status
|
|
3481
|
-
* @
|
|
3780
|
+
* @public
|
|
3482
3781
|
*/
|
|
3483
3782
|
export declare function resolveUseCancelablePromisesStatus(cancelablePromisesStates: UseCancelablePromiseState<unknown, unknown>[], options?: {
|
|
3484
3783
|
strategy?: "serial" | "parallel";
|
|
@@ -3525,6 +3824,8 @@ export declare const TranslationsCustomizationContextProvider: React_2.FC<ITrans
|
|
|
3525
3824
|
|
|
3526
3825
|
/**
|
|
3527
3826
|
* This provider is here because of the need for customization of translations.
|
|
3827
|
+
*
|
|
3828
|
+
* @remarks
|
|
3528
3829
|
* If you need to change translations based on some setting flag,
|
|
3529
3830
|
* use this provider at the top of you your react tree.
|
|
3530
3831
|
*
|
|
@@ -3565,9 +3866,11 @@ export declare class UnexpectedSdkError extends GoodDataSdkError {
|
|
|
3565
3866
|
/**
|
|
3566
3867
|
* Convert union type to intersection type.
|
|
3567
3868
|
*
|
|
3568
|
-
*
|
|
3569
|
-
*
|
|
3570
|
-
*
|
|
3869
|
+
* @example
|
|
3870
|
+
* ```
|
|
3871
|
+
* number | string | boolean is resolved as number & string & boolean
|
|
3872
|
+
* Type1 | Type2 | Type3 is resolved as Type1 & Type2 & Type3
|
|
3873
|
+
* ```
|
|
3571
3874
|
*
|
|
3572
3875
|
* @public
|
|
3573
3876
|
*/
|
|
@@ -3583,7 +3886,9 @@ export declare function uriMatch(uri: string): IHeaderPredicate;
|
|
|
3583
3886
|
|
|
3584
3887
|
/**
|
|
3585
3888
|
* Hook to get analytical backend instance provided to {@link BackendProvider}.
|
|
3586
|
-
*
|
|
3889
|
+
*
|
|
3890
|
+
* @remarks
|
|
3891
|
+
* You can set a backend override that will be returned if defined.
|
|
3587
3892
|
* This makes the usage more ergonomic (see the following example).
|
|
3588
3893
|
*
|
|
3589
3894
|
* Note: For a better TypeScript experience without the hassle of undefined values, you can use the {@link useBackendStrict} hook.
|
|
@@ -3604,7 +3909,9 @@ export declare const useBackend: (backend?: IAnalyticalBackend | undefined) => I
|
|
|
3604
3909
|
|
|
3605
3910
|
/**
|
|
3606
3911
|
* Hook to get analytical backend instance provided to {@link BackendProvider}.
|
|
3607
|
-
*
|
|
3912
|
+
*
|
|
3913
|
+
* @remarks
|
|
3914
|
+
* You can set a backend override that will be returned if defined.
|
|
3608
3915
|
* This makes the usage more ergonomic (see the following example).
|
|
3609
3916
|
*
|
|
3610
3917
|
* Note: If you do not provide an {@link @gooddata/sdk-backend-spi#IAnalyticalBackend} instance to {@link BackendProvider} or as a parameter for this hook,
|
|
@@ -3620,26 +3927,32 @@ export declare const useBackend: (backend?: IAnalyticalBackend | undefined) => I
|
|
|
3620
3927
|
*```
|
|
3621
3928
|
*
|
|
3622
3929
|
* @param backend - backend to use instead of context value. If undefined, the context value is used.
|
|
3623
|
-
* @param context -
|
|
3930
|
+
* @param context - provide context to improve error message in raised invariant (e.g. parent hook name).
|
|
3624
3931
|
* @public
|
|
3625
3932
|
*/
|
|
3626
3933
|
export declare const useBackendStrict: (backend?: IAnalyticalBackend | undefined, context?: string) => IAnalyticalBackend;
|
|
3627
3934
|
|
|
3628
3935
|
/**
|
|
3629
|
-
* This hook provides easy way to work with
|
|
3936
|
+
* This hook provides easy way to work with Promises in React components.
|
|
3937
|
+
*
|
|
3938
|
+
* @remarks
|
|
3630
3939
|
* You can:
|
|
3631
3940
|
* - watch it's status (pending/loading/success/error)
|
|
3632
3941
|
* - get it's result/error when the Promise is resolved/rejected,
|
|
3633
3942
|
* - attach convenient callbacks to it
|
|
3634
3943
|
* - be sure, that when the dependency list changes, result will be still relevant (if previous Promise is still running, it's "canceled").
|
|
3635
3944
|
*
|
|
3636
|
-
*
|
|
3945
|
+
* Note that it's not recommended to use this hook for storing data on the backend
|
|
3946
|
+
* as it does not cancel requests wrapped in these promises
|
|
3947
|
+
* and you have no guarantee about the resolution order of the fired requests.
|
|
3948
|
+
*
|
|
3949
|
+
* @public
|
|
3637
3950
|
*/
|
|
3638
3951
|
export declare function useCancelablePromise<TResult, TError = any>(options: UseCancelablePromiseOptions<TResult, TError>, deps?: DependencyList): UseCancelablePromiseState<TResult, TError>;
|
|
3639
3952
|
|
|
3640
3953
|
/**
|
|
3641
3954
|
* Callbacks for {@link useCancelablePromise} hook
|
|
3642
|
-
* @
|
|
3955
|
+
* @public
|
|
3643
3956
|
*/
|
|
3644
3957
|
export declare type UseCancelablePromiseCallbacks<TResult, TError> = {
|
|
3645
3958
|
/**
|
|
@@ -3655,7 +3968,7 @@ export declare type UseCancelablePromiseCallbacks<TResult, TError> = {
|
|
|
3655
3968
|
*/
|
|
3656
3969
|
onCancel?: () => void;
|
|
3657
3970
|
/**
|
|
3658
|
-
*
|
|
3971
|
+
* onSuccess is fired whenever the promise is fulfilled
|
|
3659
3972
|
*/
|
|
3660
3973
|
onSuccess?: (result: TResult) => void;
|
|
3661
3974
|
/**
|
|
@@ -3666,7 +3979,7 @@ export declare type UseCancelablePromiseCallbacks<TResult, TError> = {
|
|
|
3666
3979
|
|
|
3667
3980
|
/**
|
|
3668
3981
|
* Indicates error state for {@link useCancelablePromise} hook
|
|
3669
|
-
* @
|
|
3982
|
+
* @public
|
|
3670
3983
|
*/
|
|
3671
3984
|
export declare type UseCancelablePromiseErrorState<TError> = {
|
|
3672
3985
|
result: undefined;
|
|
@@ -3676,7 +3989,7 @@ export declare type UseCancelablePromiseErrorState<TError> = {
|
|
|
3676
3989
|
|
|
3677
3990
|
/**
|
|
3678
3991
|
* Indicates loading state for {@link useCancelablePromise} hook
|
|
3679
|
-
* @
|
|
3992
|
+
* @public
|
|
3680
3993
|
*/
|
|
3681
3994
|
export declare type UseCancelablePromiseLoadingState = {
|
|
3682
3995
|
result: undefined;
|
|
@@ -3687,7 +4000,7 @@ export declare type UseCancelablePromiseLoadingState = {
|
|
|
3687
4000
|
/**
|
|
3688
4001
|
* Options for the {@link useCancelablePromise} hook.
|
|
3689
4002
|
*
|
|
3690
|
-
* @
|
|
4003
|
+
* @public
|
|
3691
4004
|
*/
|
|
3692
4005
|
export declare type UseCancelablePromiseOptions<TResult, TError> = UseCancelablePromiseCallbacks<TResult, TError> & {
|
|
3693
4006
|
promise: (() => Promise<TResult>) | undefined | null;
|
|
@@ -3695,7 +4008,7 @@ export declare type UseCancelablePromiseOptions<TResult, TError> = UseCancelable
|
|
|
3695
4008
|
|
|
3696
4009
|
/**
|
|
3697
4010
|
* Indicates pending state for {@link useCancelablePromise} hook
|
|
3698
|
-
* @
|
|
4011
|
+
* @public
|
|
3699
4012
|
*/
|
|
3700
4013
|
export declare type UseCancelablePromisePendingState = {
|
|
3701
4014
|
result: undefined;
|
|
@@ -3705,19 +4018,19 @@ export declare type UseCancelablePromisePendingState = {
|
|
|
3705
4018
|
|
|
3706
4019
|
/**
|
|
3707
4020
|
* Indicates the current state of {@link useCancelablePromise} hook
|
|
3708
|
-
* @
|
|
4021
|
+
* @public
|
|
3709
4022
|
*/
|
|
3710
4023
|
export declare type UseCancelablePromiseState<TResult, TError> = UseCancelablePromisePendingState | UseCancelablePromiseLoadingState | UseCancelablePromiseErrorState<TError> | UseCancelablePromiseSuccessState<TResult>;
|
|
3711
4024
|
|
|
3712
4025
|
/**
|
|
3713
4026
|
* Indicates the current state of the promise inside {@link useCancelablePromise} hook
|
|
3714
|
-
* @
|
|
4027
|
+
* @public
|
|
3715
4028
|
*/
|
|
3716
4029
|
export declare type UseCancelablePromiseStatus = "success" | "error" | "loading" | "pending";
|
|
3717
4030
|
|
|
3718
4031
|
/**
|
|
3719
4032
|
* Indicates success state for {@link useCancelablePromise} hook
|
|
3720
|
-
* @
|
|
4033
|
+
* @public
|
|
3721
4034
|
*/
|
|
3722
4035
|
export declare type UseCancelablePromiseSuccessState<TResult> = {
|
|
3723
4036
|
result: TResult;
|
|
@@ -3737,6 +4050,13 @@ export declare const useClientWorkspaceError: () => GoodDataSdkError | undefined
|
|
|
3737
4050
|
*/
|
|
3738
4051
|
export declare const useClientWorkspaceIdentifiers: () => IClientWorkspaceIdentifiers;
|
|
3739
4052
|
|
|
4053
|
+
/**
|
|
4054
|
+
* Hook to check if client workspace is initialized.
|
|
4055
|
+
*
|
|
4056
|
+
* @alpha
|
|
4057
|
+
*/
|
|
4058
|
+
export declare const useClientWorkspaceInitialized: () => boolean;
|
|
4059
|
+
|
|
3740
4060
|
/**
|
|
3741
4061
|
* Hook to obtain loading status of the {@link ClientWorkspaceProvider} - "success", "error", "loading" or "pending".
|
|
3742
4062
|
* @alpha
|
|
@@ -3745,7 +4065,9 @@ export declare const useClientWorkspaceStatus: () => UseCancelablePromiseStatus;
|
|
|
3745
4065
|
|
|
3746
4066
|
/**
|
|
3747
4067
|
* React hook to obtain composed placeholder value.
|
|
3748
|
-
*
|
|
4068
|
+
*
|
|
4069
|
+
* @remarks
|
|
4070
|
+
* You can provide custom context for the composed placeholders resolution.
|
|
3749
4071
|
* See {@link IComposedPlaceholder}.
|
|
3750
4072
|
*
|
|
3751
4073
|
* @public
|
|
@@ -3754,10 +4076,12 @@ export declare function useComposedPlaceholder<TContext, TPlaceholder extends IC
|
|
|
3754
4076
|
|
|
3755
4077
|
/**
|
|
3756
4078
|
* This hook provides easy way to export data in your preferred format (csv/xlsx/raw) for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
|
|
4079
|
+
*
|
|
4080
|
+
* @remarks
|
|
3757
4081
|
* As a result, you will receive a string with uri, so you can easily create a download link.
|
|
3758
4082
|
* Be aware that execution is re-executed only on dependency list change, not on execution/exportConfig/callbacks change.
|
|
3759
4083
|
*
|
|
3760
|
-
* @
|
|
4084
|
+
* @public
|
|
3761
4085
|
*/
|
|
3762
4086
|
export declare function useDataExport({ execution, exportConfig, onCancel, onError, onLoading, onPending, onSuccess, }: {
|
|
3763
4087
|
execution: IPreparedExecution | undefined | null;
|
|
@@ -3766,21 +4090,24 @@ export declare function useDataExport({ execution, exportConfig, onCancel, onErr
|
|
|
3766
4090
|
|
|
3767
4091
|
/**
|
|
3768
4092
|
* Callbacks for useDataExport hook
|
|
3769
|
-
* @
|
|
4093
|
+
* @public
|
|
3770
4094
|
*/
|
|
3771
4095
|
export declare type UseDataExportCallbacks = UseCancelablePromiseCallbacks<string, GoodDataSdkError>;
|
|
3772
4096
|
|
|
3773
4097
|
/**
|
|
3774
4098
|
* Indicates current state of useDataExport hook
|
|
3775
|
-
* @
|
|
4099
|
+
* @public
|
|
3776
4100
|
*/
|
|
3777
4101
|
export declare type UseDataExportState = UseCancelablePromiseState<string, GoodDataSdkError>;
|
|
3778
4102
|
|
|
3779
4103
|
/**
|
|
3780
4104
|
* This hook provides easy way to get data for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
|
|
4105
|
+
*
|
|
4106
|
+
* @remarks
|
|
3781
4107
|
* You can use it to create custom visualizations on top of GoodData platform.
|
|
3782
4108
|
* Be aware that execution is re-executed only on dependency list change, not on execution/window/callbacks change.
|
|
3783
4109
|
*
|
|
4110
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3784
4111
|
* @beta
|
|
3785
4112
|
*/
|
|
3786
4113
|
export declare function useDataView({ execution, window, onCancel, onError, onLoading, onPending, onSuccess, }: {
|
|
@@ -3790,20 +4117,25 @@ export declare function useDataView({ execution, window, onCancel, onError, onLo
|
|
|
3790
4117
|
|
|
3791
4118
|
/**
|
|
3792
4119
|
* Callbacks for useDataView hook
|
|
4120
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3793
4121
|
* @beta
|
|
3794
4122
|
*/
|
|
3795
4123
|
export declare type UseDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
|
|
3796
4124
|
|
|
3797
4125
|
/**
|
|
3798
4126
|
* Indicates current state of useDataView hook
|
|
4127
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3799
4128
|
* @beta
|
|
3800
4129
|
*/
|
|
3801
4130
|
export declare type UseDataViewState = UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
3802
4131
|
|
|
3803
4132
|
/**
|
|
3804
4133
|
* This hook provides a simplified interface for creating executions.
|
|
4134
|
+
*
|
|
4135
|
+
* @remarks
|
|
3805
4136
|
* It builds the execution on top of the backend passed to the BackendProvider, and workspace passed to the WorkspaceProvider.
|
|
3806
4137
|
*
|
|
4138
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3807
4139
|
* @beta
|
|
3808
4140
|
*/
|
|
3809
4141
|
export declare function useExecution(config: IUseExecutionConfig): IPreparedExecution;
|
|
@@ -3811,16 +4143,30 @@ export declare function useExecution(config: IUseExecutionConfig): IPreparedExec
|
|
|
3811
4143
|
/**
|
|
3812
4144
|
* React hook to get data for a specific execution.
|
|
3813
4145
|
*
|
|
3814
|
-
* @
|
|
4146
|
+
* @public
|
|
4147
|
+
*/
|
|
4148
|
+
export declare function useExecutionDataView(config: IUseExecutionDataViewConfig & UseExecutionDataViewCallbacks, deps?: React.DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
4149
|
+
|
|
4150
|
+
/**
|
|
4151
|
+
* Callbacks for {@link useExecutionDataView} hook.
|
|
4152
|
+
*
|
|
4153
|
+
* @public
|
|
3815
4154
|
*/
|
|
3816
|
-
export declare
|
|
4155
|
+
export declare type UseExecutionDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
|
|
3817
4156
|
|
|
3818
4157
|
/**
|
|
3819
4158
|
* React hook to get data for a specific insight.
|
|
3820
4159
|
*
|
|
3821
|
-
* @
|
|
4160
|
+
* @public
|
|
3822
4161
|
*/
|
|
3823
|
-
export declare function useInsightDataView(config: IUseInsightDataViewConfig, deps?: React.DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
4162
|
+
export declare function useInsightDataView(config: IUseInsightDataViewConfig & UseInsightDataViewCallbacks, deps?: React.DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
4163
|
+
|
|
4164
|
+
/**
|
|
4165
|
+
* Callbacks for {@link useInsightDataView} hook.
|
|
4166
|
+
*
|
|
4167
|
+
* @public
|
|
4168
|
+
*/
|
|
4169
|
+
export declare type UseInsightDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
|
|
3824
4170
|
|
|
3825
4171
|
/**
|
|
3826
4172
|
* Hook for getting data from paged resource
|
|
@@ -3830,6 +4176,8 @@ export declare function usePagedResource<TParams, TItem>(resourceFactory: (param
|
|
|
3830
4176
|
|
|
3831
4177
|
/**
|
|
3832
4178
|
* React hook to obtain/set placeholder value.
|
|
4179
|
+
*
|
|
4180
|
+
* @remarks
|
|
3833
4181
|
* See {@link IPlaceholder}.
|
|
3834
4182
|
*
|
|
3835
4183
|
* Note: When placeholder is not provided, setting its value will result in the error.
|
|
@@ -3843,6 +4191,8 @@ PlaceholderValue<T> | undefined,
|
|
|
3843
4191
|
|
|
3844
4192
|
/**
|
|
3845
4193
|
* React hook to obtain/set multiple placeholder values at once.
|
|
4194
|
+
*
|
|
4195
|
+
* @remarks
|
|
3846
4196
|
* This is useful to perform placeholders atomic change.
|
|
3847
4197
|
* See {@link IPlaceholder}.
|
|
3848
4198
|
* @public
|
|
@@ -3859,7 +4209,9 @@ export declare const usePrevious: <T>(props: T) => T;
|
|
|
3859
4209
|
|
|
3860
4210
|
/**
|
|
3861
4211
|
* React hook that resolves multiple value(s) that can possibly contain also placeholder(s) to actual value(s).
|
|
3862
|
-
*
|
|
4212
|
+
*
|
|
4213
|
+
* @remarks
|
|
4214
|
+
* You can provide custom context for the composed placeholders resolution.
|
|
3863
4215
|
*
|
|
3864
4216
|
* @public
|
|
3865
4217
|
*/
|
|
@@ -3867,7 +4219,9 @@ export declare function useResolveValuesWithPlaceholders<T extends any[], C>(val
|
|
|
3867
4219
|
|
|
3868
4220
|
/**
|
|
3869
4221
|
* React hook that resolves any value(s) that can possibly contain also placeholder(s) to actual value(s).
|
|
3870
|
-
*
|
|
4222
|
+
*
|
|
4223
|
+
* @remarks
|
|
4224
|
+
* You can provide custom context for the composed placeholders resolution.
|
|
3871
4225
|
*
|
|
3872
4226
|
* @public
|
|
3873
4227
|
*/
|
|
@@ -3875,7 +4229,9 @@ export declare function useResolveValueWithPlaceholders<T, C>(value: T, resoluti
|
|
|
3875
4229
|
|
|
3876
4230
|
/**
|
|
3877
4231
|
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
3878
|
-
*
|
|
4232
|
+
*
|
|
4233
|
+
* @remarks
|
|
4234
|
+
* You can set a workspace override that will be returned if defined.
|
|
3879
4235
|
* This makes the usage more ergonomic (see the following example).
|
|
3880
4236
|
*
|
|
3881
4237
|
* Note: For a better TypeScript experience without the hassle of undefined values, you can use the {@link useWorkspaceStrict} hook.
|
|
@@ -3896,7 +4252,9 @@ export declare const useWorkspace: (workspace?: string | undefined) => string |
|
|
|
3896
4252
|
|
|
3897
4253
|
/**
|
|
3898
4254
|
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
3899
|
-
*
|
|
4255
|
+
*
|
|
4256
|
+
* @remarks
|
|
4257
|
+
* You can set a workspace override that will be returned if defined.
|
|
3900
4258
|
* This makes the usage more ergonomic (see the following example).
|
|
3901
4259
|
*
|
|
3902
4260
|
* Note: Note: If you do not provide a workspace identifier to {@link WorkspaceProvider} or as a parameter for this hook,
|
|
@@ -3912,7 +4270,7 @@ export declare const useWorkspace: (workspace?: string | undefined) => string |
|
|
|
3912
4270
|
* ```
|
|
3913
4271
|
*
|
|
3914
4272
|
* @param workspace - workspace to use instead of context value. If undefined, the context value is used.
|
|
3915
|
-
* @param context -
|
|
4273
|
+
* @param context - provide context to improve error message in raised invariant (e.g. parent hook name).
|
|
3916
4274
|
* @public
|
|
3917
4275
|
*/
|
|
3918
4276
|
export declare const useWorkspaceStrict: (workspace?: string | undefined, context?: string) => string;
|