@gooddata/sdk-ui 8.10.0-alpha.7 → 8.10.0-alpha.70
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/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 +14 -33
- 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 +2 -2
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.js +2 -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 +40 -3
- package/dist/base/localization/bundles/en-US.json +194 -9
- package/dist/base/localization/bundles/es-ES.json +49 -12
- package/dist/base/localization/bundles/fr-FR.json +39 -2
- package/dist/base/localization/bundles/ja-JP.json +40 -2
- package/dist/base/localization/bundles/nl-NL.json +39 -2
- package/dist/base/localization/bundles/pt-BR.json +39 -2
- package/dist/base/localization/bundles/pt-PT.json +39 -2
- package/dist/base/localization/bundles/ru-RU.json +39 -2
- package/dist/base/localization/bundles/zh-Hans.json +40 -3
- 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/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 -4
- package/dist/base/results/facade.d.ts.map +1 -1
- package/dist/base/results/facade.js +9 -3
- 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/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 +2 -2
- package/dist/execution/index.d.ts.map +1 -1
- package/dist/execution/index.js +1 -1
- 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 +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/sdk-ui.d.ts +484 -211
- 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 +10 -29
- 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 +2 -2
- package/esm/base/index.d.ts.map +1 -1
- package/esm/base/index.js +1 -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 +40 -3
- package/esm/base/localization/bundles/en-US.json +194 -9
- package/esm/base/localization/bundles/es-ES.json +49 -12
- package/esm/base/localization/bundles/fr-FR.json +39 -2
- package/esm/base/localization/bundles/ja-JP.json +40 -2
- package/esm/base/localization/bundles/nl-NL.json +39 -2
- package/esm/base/localization/bundles/pt-BR.json +39 -2
- package/esm/base/localization/bundles/pt-PT.json +39 -2
- package/esm/base/localization/bundles/ru-RU.json +39 -2
- package/esm/base/localization/bundles/zh-Hans.json +40 -3
- 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/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 -4
- package/esm/base/results/facade.d.ts.map +1 -1
- package/esm/base/results/facade.js +9 -3
- 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/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 +2 -2
- package/esm/execution/index.d.ts.map +1 -1
- package/esm/execution/index.js +2 -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 +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/tsdoc-metadata.json +1 -1
- package/package.json +9 -9
package/dist/sdk-ui.d.ts
CHANGED
|
@@ -17,13 +17,13 @@
|
|
|
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
28
|
import { IBucket } from '@gooddata/sdk-model';
|
|
29
29
|
import { IColor } from '@gooddata/sdk-model';
|
|
@@ -31,8 +31,8 @@ import { IColorPalette } from '@gooddata/sdk-model';
|
|
|
31
31
|
import { IDataView } from '@gooddata/sdk-backend-spi';
|
|
32
32
|
import { IDateFilter } from '@gooddata/sdk-model';
|
|
33
33
|
import { IDimension } from '@gooddata/sdk-model';
|
|
34
|
-
import { IDimensionDescriptor } from '@gooddata/sdk-
|
|
35
|
-
import { IDimensionItemDescriptor } from '@gooddata/sdk-
|
|
34
|
+
import { IDimensionDescriptor } from '@gooddata/sdk-model';
|
|
35
|
+
import { IDimensionItemDescriptor } from '@gooddata/sdk-model';
|
|
36
36
|
import { IExecutionDefinition } from '@gooddata/sdk-model';
|
|
37
37
|
import { IExecutionResult } from '@gooddata/sdk-backend-spi';
|
|
38
38
|
import { IExportConfig } from '@gooddata/sdk-backend-spi';
|
|
@@ -41,9 +41,9 @@ import { IFilter } from '@gooddata/sdk-model';
|
|
|
41
41
|
import { IInsightDefinition } from '@gooddata/sdk-model';
|
|
42
42
|
import { IMeasure } from '@gooddata/sdk-model';
|
|
43
43
|
import { IMeasureDefinitionType } from '@gooddata/sdk-model';
|
|
44
|
-
import { IMeasureDescriptor } from '@gooddata/sdk-
|
|
44
|
+
import { IMeasureDescriptor } from '@gooddata/sdk-model';
|
|
45
45
|
import { IMeasureFilter } from '@gooddata/sdk-model';
|
|
46
|
-
import { IMeasureGroupDescriptor } from '@gooddata/sdk-
|
|
46
|
+
import { IMeasureGroupDescriptor } from '@gooddata/sdk-model';
|
|
47
47
|
import { IMeasureValueFilter } from '@gooddata/sdk-model';
|
|
48
48
|
import { INegativeAttributeFilter } from '@gooddata/sdk-model';
|
|
49
49
|
import { IntlShape } from 'react-intl';
|
|
@@ -53,16 +53,16 @@ import { IPositiveAttributeFilter } from '@gooddata/sdk-model';
|
|
|
53
53
|
import { IPreparedExecution } from '@gooddata/sdk-backend-spi';
|
|
54
54
|
import { IRankingFilter } from '@gooddata/sdk-model';
|
|
55
55
|
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-
|
|
56
|
+
import { IResultAttributeHeader } from '@gooddata/sdk-model';
|
|
57
|
+
import { IResultHeader } from '@gooddata/sdk-model';
|
|
58
|
+
import { IResultMeasureHeader } from '@gooddata/sdk-model';
|
|
59
|
+
import { IResultTotalHeader } from '@gooddata/sdk-model';
|
|
60
|
+
import { IResultWarning } from '@gooddata/sdk-model';
|
|
61
|
+
import { ISeparators } from '@gooddata/sdk-model';
|
|
62
62
|
import { ISeparators as ISeparators_2 } from '@gooddata/numberjs';
|
|
63
63
|
import { ISortItem } from '@gooddata/sdk-model';
|
|
64
64
|
import { ITotal } from '@gooddata/sdk-model';
|
|
65
|
-
import { ITotalDescriptor } from '@gooddata/sdk-
|
|
65
|
+
import { ITotalDescriptor } from '@gooddata/sdk-model';
|
|
66
66
|
import { IWorkspaceSettings } from '@gooddata/sdk-backend-spi';
|
|
67
67
|
import { ObjRef } from '@gooddata/sdk-model';
|
|
68
68
|
import { default as React_2 } from 'react';
|
|
@@ -73,8 +73,10 @@ import { WrappedComponentProps } from 'react-intl';
|
|
|
73
73
|
/**
|
|
74
74
|
* Generate all possible combinations of arrays signatures for the union type.
|
|
75
75
|
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```
|
|
78
|
+
* IAttribute | IMeasure is resolved as IAttribute[] | IMeasure[] | (IAttribute | IMeasure)[]
|
|
79
|
+
* ```
|
|
78
80
|
*
|
|
79
81
|
* @public
|
|
80
82
|
*/
|
|
@@ -96,10 +98,12 @@ export declare type AnyPlaceholder<T = any> = IPlaceholder<T> | IComposedPlaceho
|
|
|
96
98
|
/**
|
|
97
99
|
* Generate all possible combinations of placeholder signatures for the union type.
|
|
98
100
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```
|
|
103
|
+
* IAttribute | IMeasure
|
|
104
|
+
* is resolved as
|
|
105
|
+
* AnyPlaceholder\<IAttribute\> | AnyPlaceholder\<IMeasure\> | AnyPlaceholder\<IAttribute | IMeasure\>
|
|
106
|
+
* ```
|
|
103
107
|
* @public
|
|
104
108
|
*/
|
|
105
109
|
export declare type AnyPlaceholderOf<T> = AnyPlaceholder<T> | PlaceholderOf<T>;
|
|
@@ -137,9 +141,10 @@ export declare class ArithmeticMeasureTitleFactory {
|
|
|
137
141
|
/**
|
|
138
142
|
* Wrap each member of union type in the array.
|
|
139
143
|
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```
|
|
146
|
+
* IAttribute | IMeasure | IFilter is resolved as IAttribute[] | IMeasure[] | IFilter[]
|
|
147
|
+
* ```
|
|
143
148
|
* @public
|
|
144
149
|
*/
|
|
145
150
|
export declare type ArrayOf<T> = T extends any ? T[] : never;
|
|
@@ -252,11 +257,13 @@ export declare class CancelledSdkError extends GoodDataSdkError {
|
|
|
252
257
|
}
|
|
253
258
|
|
|
254
259
|
/**
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
* example
|
|
260
|
+
* Tool that exposes API that to look up measures, attributes, visualizations and other metadata elements
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* ```
|
|
258
264
|
* import catalog from './catalog.json';
|
|
259
265
|
* const C = new CatalogHelper(catalog);
|
|
266
|
+
* ```
|
|
260
267
|
*
|
|
261
268
|
* @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
|
|
262
269
|
* @public
|
|
@@ -339,8 +346,10 @@ export declare function composedFromUri(uri: string): IHeaderPredicate;
|
|
|
339
346
|
/**
|
|
340
347
|
* Get composed placeholder resolution context type.
|
|
341
348
|
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
349
|
+
* @example
|
|
350
|
+
* ```
|
|
351
|
+
* IComposedPlaceholder\<any, any, IResolutionContext\> is resolved as IResolutionContext
|
|
352
|
+
* ```
|
|
344
353
|
*
|
|
345
354
|
* @public
|
|
346
355
|
*/
|
|
@@ -352,9 +361,11 @@ export declare type ComposedPlaceholderResolutionContext<T> = T extends ICompose
|
|
|
352
361
|
export declare function convertDrillableItemsToPredicates(drillableItems: ExplicitDrill[]): IHeaderPredicate[];
|
|
353
362
|
|
|
354
363
|
/**
|
|
355
|
-
* Converts any error into an instance of {@link GoodDataSdkError}.
|
|
356
|
-
*
|
|
357
|
-
*
|
|
364
|
+
* Converts any error into an instance of {@link GoodDataSdkError}.
|
|
365
|
+
*
|
|
366
|
+
* @remarks
|
|
367
|
+
* The conversion logic right now focuses mostly on errors that are contractually specified in Analytical Backend SPI.
|
|
368
|
+
* All other unexpected errors are wrapped into an exception with the generic 'UNKNOWN_ERROR' code.
|
|
358
369
|
*
|
|
359
370
|
* Instances of GoodDataSdkError are returned as-is and are not subject to any processing.
|
|
360
371
|
*
|
|
@@ -378,7 +389,7 @@ export declare function createExportErrorFunction(error: GoodDataSdkError): IExp
|
|
|
378
389
|
* components via the onExportReady callback.
|
|
379
390
|
*
|
|
380
391
|
* @param result - data view that will be exported
|
|
381
|
-
* @param exportTitle -
|
|
392
|
+
* @param exportTitle - specify title
|
|
382
393
|
* @internal
|
|
383
394
|
*/
|
|
384
395
|
export declare function createExportFunction(result: IExecutionResult, exportTitle?: string): IExportFunction;
|
|
@@ -390,7 +401,10 @@ export declare function createIntlMock(customMessages?: {}, locale?: string): In
|
|
|
390
401
|
|
|
391
402
|
/**
|
|
392
403
|
* Creates value formatter that uses `@gooddata/numberjs` to format raw measure values according
|
|
393
|
-
* to the format string.
|
|
404
|
+
* to the format string.
|
|
405
|
+
*
|
|
406
|
+
* @remarks
|
|
407
|
+
* By default, the format will strip away all the coloring information and
|
|
394
408
|
* just return the value as string.
|
|
395
409
|
*
|
|
396
410
|
* @param separators - number separators to use. if not specified then `numberjs` defaults will be used
|
|
@@ -416,6 +430,7 @@ export declare type DataAccessConfig = {
|
|
|
416
430
|
* Data Point represents a value computed for particular data series, possibly sliced for additional
|
|
417
431
|
* set of attribute elements OR possibly being a total.
|
|
418
432
|
*
|
|
433
|
+
* @remarks
|
|
419
434
|
* Technically, DataPoint is the raw data value stored in the data view decorated with all the metadata
|
|
420
435
|
* there exists about that value.
|
|
421
436
|
*
|
|
@@ -569,8 +584,11 @@ export declare type DataSliceDescriptorMethods = {
|
|
|
569
584
|
};
|
|
570
585
|
|
|
571
586
|
/**
|
|
572
|
-
* Data slice name is specified using the result headers.
|
|
573
|
-
*
|
|
587
|
+
* Data slice name is specified using the result headers.
|
|
588
|
+
*
|
|
589
|
+
* @remarks
|
|
590
|
+
* The headers describe attribute elements (title+ID) for the slice. The slice MAY be for a total calculation,
|
|
591
|
+
* in which case the last header will be for the
|
|
574
592
|
* total.
|
|
575
593
|
*
|
|
576
594
|
* @public
|
|
@@ -611,7 +629,10 @@ export declare class DataTooLargeToDisplaySdkError extends GoodDataSdkError {
|
|
|
611
629
|
}
|
|
612
630
|
|
|
613
631
|
/**
|
|
614
|
-
*
|
|
632
|
+
* Wrapper for {@link @gooddata/sdk-backend-spi#IDataView}.
|
|
633
|
+
*
|
|
634
|
+
* @remarks
|
|
635
|
+
* This provides various convenience methods to work with data and metadata stored inside
|
|
615
636
|
* the provided instance of {@link @gooddata/sdk-backend-spi#IDataView}.
|
|
616
637
|
*
|
|
617
638
|
* The facade keeps an ephemeral state - such as calculated indexes on top of the headers in the {@link @gooddata/sdk-backend-spi#IDataView} -
|
|
@@ -642,7 +663,10 @@ export declare class DataViewFacade {
|
|
|
642
663
|
*/
|
|
643
664
|
static for(dataView: IDataView): DataViewFacade;
|
|
644
665
|
/**
|
|
645
|
-
* Creates a DataViewFacade with provided execution result.
|
|
666
|
+
* Creates a DataViewFacade with provided execution result.
|
|
667
|
+
*
|
|
668
|
+
* @remarks
|
|
669
|
+
* Only use this when execution result is unable to load data and some
|
|
646
670
|
* form of DataViewFacade is still needed. Beware that the calculated data view is empty after the creation. Only execution
|
|
647
671
|
* definition and result is defined.
|
|
648
672
|
*
|
|
@@ -793,8 +817,10 @@ export declare const ErrorCodes: {
|
|
|
793
817
|
};
|
|
794
818
|
|
|
795
819
|
/**
|
|
796
|
-
*
|
|
797
|
-
*
|
|
820
|
+
* Component that renders a default error message.
|
|
821
|
+
*
|
|
822
|
+
* @remarks
|
|
823
|
+
* See {@link http://sdk.gooddata.com/gooddata-ui/docs/error_component.html | ErrorComponent}
|
|
798
824
|
*
|
|
799
825
|
* @public
|
|
800
826
|
*/
|
|
@@ -804,16 +830,18 @@ export declare class ErrorComponent extends React_2.Component<IErrorProps> {
|
|
|
804
830
|
}
|
|
805
831
|
|
|
806
832
|
/**
|
|
807
|
-
* The executor provides a more curated experience to obtain and work with data from backends.
|
|
808
|
-
*
|
|
809
|
-
*
|
|
833
|
+
* The executor provides a more curated experience to obtain and work with data from backends.
|
|
834
|
+
*
|
|
835
|
+
* @remarks
|
|
836
|
+
* It is aligned with the `DataAccess` infrastructure which exposes the underlying data as data series that can be
|
|
837
|
+
* sliced by additional attributes.
|
|
810
838
|
*
|
|
811
839
|
* Once the executor finishes, the {@link DataViewFacade.data} method will expose the data as series and
|
|
812
840
|
* slices according to the specification to the executor.
|
|
813
841
|
* Note that if the resulting data is empty this will NOT throw a NoDataError. It is the responsibility
|
|
814
842
|
* of the child component to handle that if they need to.
|
|
815
843
|
*
|
|
816
|
-
*
|
|
844
|
+
* See {@link IDataAccessMethods} for additional documentation
|
|
817
845
|
* @public
|
|
818
846
|
*/
|
|
819
847
|
export declare const Execute: (props: IExecuteProps) => JSX.Element;
|
|
@@ -821,12 +849,14 @@ export declare const Execute: (props: IExecuteProps) => JSX.Element;
|
|
|
821
849
|
/**
|
|
822
850
|
* Gets data for a specific stored insight.
|
|
823
851
|
*
|
|
824
|
-
* @
|
|
852
|
+
* @public
|
|
825
853
|
*/
|
|
826
854
|
export declare const ExecuteInsight: React_2.ComponentType<IExecuteInsightProps>;
|
|
827
855
|
|
|
828
856
|
/**
|
|
829
857
|
* Drillable item reference or predicate that enables insight / kpi drilling if it matches some attribute or measure of the insight / kpi.
|
|
858
|
+
*
|
|
859
|
+
* @remarks
|
|
830
860
|
* You can use {@link @gooddata/sdk-ui#HeaderPredicates} factory functions to create predicates,
|
|
831
861
|
* or specify reference to the identifier / uri of the target attribute / measure using {@link @gooddata/sdk-ui#IDrillableItem} definition.
|
|
832
862
|
*
|
|
@@ -887,14 +917,17 @@ export declare function fireDrillEvent(drillEventFunction: IDrillEventCallback,
|
|
|
887
917
|
|
|
888
918
|
/**
|
|
889
919
|
* Flatten array type.
|
|
920
|
+
*
|
|
921
|
+
* @remarks
|
|
890
922
|
* If the type is not an array, return the same type.
|
|
891
923
|
* Works only for 1 level, nested array types are not recursively flattened.
|
|
892
924
|
*
|
|
893
|
-
*
|
|
894
|
-
*
|
|
895
|
-
*
|
|
896
|
-
*
|
|
897
|
-
*
|
|
925
|
+
* @example
|
|
926
|
+
* ```
|
|
927
|
+
* number[] is resolved as number
|
|
928
|
+
* string[][] is resolved as string[]
|
|
929
|
+
* string is resolved as string
|
|
930
|
+
* ```
|
|
898
931
|
* @public
|
|
899
932
|
*/
|
|
900
933
|
export declare type Flatten<T> = T extends Array<infer A> ? A : T;
|
|
@@ -998,7 +1031,10 @@ export declare abstract class GoodDataSdkError extends Error {
|
|
|
998
1031
|
*/
|
|
999
1032
|
getCause(): any | undefined;
|
|
1000
1033
|
/**
|
|
1001
|
-
* Error code for this exception.
|
|
1034
|
+
* Error code for this exception.
|
|
1035
|
+
*
|
|
1036
|
+
* @remarks
|
|
1037
|
+
* This can be used to identify exact type of exception.
|
|
1002
1038
|
*/
|
|
1003
1039
|
getErrorCode(): string;
|
|
1004
1040
|
}
|
|
@@ -1162,8 +1198,9 @@ export declare interface IClientWorkspaceIdentifiers {
|
|
|
1162
1198
|
*/
|
|
1163
1199
|
export declare interface IClientWorkspaceProviderCoreProps {
|
|
1164
1200
|
/**
|
|
1165
|
-
*
|
|
1201
|
+
* Specify an instance of the analytical backend instance to work with.
|
|
1166
1202
|
*
|
|
1203
|
+
* @remarks
|
|
1167
1204
|
* Note: if you do not have a BackendProvider above in the component tree, then you MUST specify the backend.
|
|
1168
1205
|
*/
|
|
1169
1206
|
backend?: IAnalyticalBackend;
|
|
@@ -1186,6 +1223,7 @@ export declare interface IClientWorkspaceProviderWithClientAndDataProductProps e
|
|
|
1186
1223
|
/**
|
|
1187
1224
|
* Specify the data product identifier to use to obtain the LCM context.
|
|
1188
1225
|
*
|
|
1226
|
+
* @remarks
|
|
1189
1227
|
* Note: another option is to specify workspace prop, and then data product identifier will be resolved from it.
|
|
1190
1228
|
*/
|
|
1191
1229
|
dataProduct: string;
|
|
@@ -1204,11 +1242,19 @@ export declare interface IClientWorkspaceProviderWithWorkspaceProps extends ICli
|
|
|
1204
1242
|
/**
|
|
1205
1243
|
* Specify the workspace to use to obtain the LCM context.
|
|
1206
1244
|
*
|
|
1245
|
+
* @remarks
|
|
1207
1246
|
* Note: another option is to specify dataProduct and client props, and then workspace will be resolved from them.
|
|
1208
1247
|
*/
|
|
1209
1248
|
workspace: string;
|
|
1210
1249
|
}
|
|
1211
1250
|
|
|
1251
|
+
/**
|
|
1252
|
+
* @internal
|
|
1253
|
+
*/
|
|
1254
|
+
export declare interface IClientWorkspaceStatus {
|
|
1255
|
+
isInitialized: boolean;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1212
1258
|
/**
|
|
1213
1259
|
* @internal
|
|
1214
1260
|
*/
|
|
@@ -1227,10 +1273,12 @@ export declare interface IColorsData {
|
|
|
1227
1273
|
|
|
1228
1274
|
/**
|
|
1229
1275
|
* Represents placeholder composed from other placeholders.
|
|
1276
|
+
*
|
|
1277
|
+
* @remarks
|
|
1230
1278
|
* You can perform computation on top of resolved placeholder values.
|
|
1231
1279
|
* Composed placeholders accepts also other composed placeholders as an input.
|
|
1232
1280
|
*
|
|
1233
|
-
* You can
|
|
1281
|
+
* You can provide custom resolution context to the composed placeholders,
|
|
1234
1282
|
* and use it in your computation, but be aware that this context is shared across all composed placeholders in the call tree
|
|
1235
1283
|
* (e.g. when you are calling composed placeholder composed from other composed placeholders,
|
|
1236
1284
|
* each composed placeholder will be called with the same resolution context).
|
|
@@ -1245,8 +1293,11 @@ export declare interface IComposedPlaceholder<TReturn, TValue extends any[], TCo
|
|
|
1245
1293
|
}
|
|
1246
1294
|
|
|
1247
1295
|
/**
|
|
1248
|
-
* Defines methods to access data in the data view.
|
|
1249
|
-
*
|
|
1296
|
+
* Defines methods to access data in the data view.
|
|
1297
|
+
*
|
|
1298
|
+
* @remarks
|
|
1299
|
+
* These methods and types are recommended in favor of directly accessing the underlying data,
|
|
1300
|
+
* headers and descriptors.
|
|
1250
1301
|
*
|
|
1251
1302
|
* @public
|
|
1252
1303
|
*/
|
|
@@ -1262,9 +1313,10 @@ export declare interface IDataAccessMethods {
|
|
|
1262
1313
|
}
|
|
1263
1314
|
|
|
1264
1315
|
/**
|
|
1265
|
-
* Data series is a sequence of data points that are all computed from a single measure,
|
|
1316
|
+
* Data series is a sequence of data points that are all computed from a single measure, scoped for
|
|
1266
1317
|
* particular attribute elements.
|
|
1267
1318
|
*
|
|
1319
|
+
* @remarks
|
|
1268
1320
|
* In other words, data series allows iterating over two dimensional data view _along_ the dimension which contains
|
|
1269
1321
|
* the measures (via inclusion of MeasureGroupIdentifier).
|
|
1270
1322
|
*
|
|
@@ -1296,9 +1348,12 @@ export declare interface IDataSeries extends DataSeriesDescriptorMethods, Iterab
|
|
|
1296
1348
|
}
|
|
1297
1349
|
|
|
1298
1350
|
/**
|
|
1299
|
-
* An iterable collection of data series.
|
|
1351
|
+
* An iterable collection of data series.
|
|
1352
|
+
*
|
|
1353
|
+
* @remarks
|
|
1354
|
+
* The collection additionally includes basic information about the
|
|
1300
1355
|
* origin of the data series that can be iterated - their number, measures they were calculated from and
|
|
1301
|
-
*
|
|
1356
|
+
* the scoping attributes.
|
|
1302
1357
|
*
|
|
1303
1358
|
* @public
|
|
1304
1359
|
*/
|
|
@@ -1310,6 +1365,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1310
1365
|
/**
|
|
1311
1366
|
* Descriptors of measures that are used in the data series.
|
|
1312
1367
|
*
|
|
1368
|
+
* @remarks
|
|
1313
1369
|
* Note that the number of measures MAY differ from number of data series - that is because the data series may be
|
|
1314
1370
|
* created for multiple scopes of each measure (e.g. measure X calculated for attribute element A, then same
|
|
1315
1371
|
* measure calculated for attribute element B etc)
|
|
@@ -1318,6 +1374,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1318
1374
|
/**
|
|
1319
1375
|
* Definitions of measures which were sent to execution and resulted in the data series.
|
|
1320
1376
|
*
|
|
1377
|
+
* @remarks
|
|
1321
1378
|
* Order of appearance matches the order of appearance in the `fromMeasures` array.
|
|
1322
1379
|
*/
|
|
1323
1380
|
readonly fromMeasuresDef: IMeasure[];
|
|
@@ -1329,6 +1386,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1329
1386
|
* Definitions of attributes which were sent to execution and resulted in the data series with scoped
|
|
1330
1387
|
* measure values.
|
|
1331
1388
|
*
|
|
1389
|
+
* @remarks
|
|
1332
1390
|
* Order of apperance matches the order of appreance in the `scopingAttributes` array.
|
|
1333
1391
|
*/
|
|
1334
1392
|
readonly scopingAttributesDef?: IAttribute[];
|
|
@@ -1340,8 +1398,10 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1340
1398
|
*/
|
|
1341
1399
|
allForMeasure(localIdOrMeasure: string | IMeasure): Iterable<IDataSeries>;
|
|
1342
1400
|
/**
|
|
1343
|
-
* Returns first-found data series for the provided measure.
|
|
1344
|
-
*
|
|
1401
|
+
* Returns first-found data series for the provided measure.
|
|
1402
|
+
*
|
|
1403
|
+
* @remarks
|
|
1404
|
+
* This is a 'get-or-die' method and will throw in case data series from the provided measure is not located.
|
|
1345
1405
|
*
|
|
1346
1406
|
* @param localIdOrMeasure - local id of measure or measure object to get local id from
|
|
1347
1407
|
* @returns data series
|
|
@@ -1351,6 +1411,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1351
1411
|
/**
|
|
1352
1412
|
* Returns all data series in an array.
|
|
1353
1413
|
*
|
|
1414
|
+
* @remarks
|
|
1354
1415
|
* Note: if you are looking for a subset of measures, always prefer using the first-class methods
|
|
1355
1416
|
* {@link IDataSeriesCollection#allForMeasure} and {@link IDataSeriesCollection#firstForMeasure} in favor of getting the array and filtering yourself.
|
|
1356
1417
|
*
|
|
@@ -1373,6 +1434,7 @@ export declare interface IDataSet {
|
|
|
1373
1434
|
* Data slice is a sequence of data points that are all computed for a particular attribute elements and/or totals but
|
|
1374
1435
|
* different data series.
|
|
1375
1436
|
*
|
|
1437
|
+
* @remarks
|
|
1376
1438
|
* In other words, data slice allows iterating over two dimension data view _across_ the dimension which contains
|
|
1377
1439
|
* the measures.
|
|
1378
1440
|
*
|
|
@@ -1404,7 +1466,10 @@ export declare interface IDataSlice extends DataSliceDescriptorMethods, Iterable
|
|
|
1404
1466
|
}
|
|
1405
1467
|
|
|
1406
1468
|
/**
|
|
1407
|
-
* An iterable collection of data slices.
|
|
1469
|
+
* An iterable collection of data slices.
|
|
1470
|
+
*
|
|
1471
|
+
* @remarks
|
|
1472
|
+
* The collection additionally includes basic information about the
|
|
1408
1473
|
* origin of the data slices that can be iterated - their number and attributes or totals that were used
|
|
1409
1474
|
* for slicing.
|
|
1410
1475
|
*
|
|
@@ -1433,6 +1498,7 @@ export declare interface IDataSliceCollection extends Iterable<IDataSlice> {
|
|
|
1433
1498
|
/**
|
|
1434
1499
|
* Common props for visualization of data computed by the analytical backend.
|
|
1435
1500
|
*
|
|
1501
|
+
* @remarks
|
|
1436
1502
|
* Data visualization contains prepared execution which will return data that needs to be visualized.
|
|
1437
1503
|
*
|
|
1438
1504
|
* @public
|
|
@@ -1665,12 +1731,13 @@ export declare interface IExecuteErrorComponentProps {
|
|
|
1665
1731
|
|
|
1666
1732
|
/**
|
|
1667
1733
|
* Props of the {@link ExecuteInsight} component.
|
|
1668
|
-
* @
|
|
1734
|
+
* @public
|
|
1669
1735
|
*/
|
|
1670
1736
|
export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecuteInsightProps> {
|
|
1671
1737
|
/**
|
|
1672
1738
|
* Backend to execute against.
|
|
1673
1739
|
*
|
|
1740
|
+
* @remarks
|
|
1674
1741
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
1675
1742
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
1676
1743
|
*/
|
|
@@ -1678,6 +1745,7 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1678
1745
|
/**
|
|
1679
1746
|
* Workspace in whose context to perform the execution.
|
|
1680
1747
|
*
|
|
1748
|
+
* @remarks
|
|
1681
1749
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
1682
1750
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
1683
1751
|
*/
|
|
@@ -1687,24 +1755,26 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1687
1755
|
*/
|
|
1688
1756
|
insight: ObjRef;
|
|
1689
1757
|
/**
|
|
1690
|
-
*
|
|
1758
|
+
* Modify sorts on prepared insight execution, before it's executed.
|
|
1691
1759
|
*/
|
|
1692
1760
|
sorts?: ISortItem[] | ((def: IExecutionDefinition, props: IExecuteInsightProps) => ISortItem[]);
|
|
1693
1761
|
/**
|
|
1694
|
-
*
|
|
1762
|
+
* Modify dimensions on prepared insight execution, before it's executed.
|
|
1695
1763
|
*/
|
|
1696
1764
|
dimensions?: IDimension[] | ((def: IExecutionDefinition, props: IExecuteInsightProps) => IDimension[]);
|
|
1697
1765
|
/**
|
|
1698
|
-
*
|
|
1766
|
+
* Modify date formatting on prepared insight execution, before it's executed.
|
|
1699
1767
|
*/
|
|
1700
1768
|
dateFormat?: string | ((def: IExecutionDefinition, props: IExecuteInsightProps) => string);
|
|
1701
1769
|
/**
|
|
1702
|
-
*
|
|
1770
|
+
* Filters to apply on server side.
|
|
1703
1771
|
*/
|
|
1704
1772
|
filters?: INullableFilter[];
|
|
1705
1773
|
/**
|
|
1706
|
-
*
|
|
1707
|
-
*
|
|
1774
|
+
* Name to use for files exported from this component.
|
|
1775
|
+
*
|
|
1776
|
+
* @remarks
|
|
1777
|
+
* If you do not specify this, then the componentName will be used instead.
|
|
1708
1778
|
*
|
|
1709
1779
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
1710
1780
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -1712,16 +1782,21 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1712
1782
|
*/
|
|
1713
1783
|
exportTitle?: string;
|
|
1714
1784
|
/**
|
|
1715
|
-
*
|
|
1716
|
-
*
|
|
1717
|
-
*
|
|
1785
|
+
* Informative name of the component.
|
|
1786
|
+
*
|
|
1787
|
+
* @remarks
|
|
1788
|
+
* This value is sent as telemetry information together with the actual execution request. We recommend to set this
|
|
1789
|
+
* because it can be useful for diagnostic purposes.
|
|
1718
1790
|
*
|
|
1719
1791
|
* Defaults 'Execute'.
|
|
1720
1792
|
*/
|
|
1721
1793
|
componentName?: string;
|
|
1722
1794
|
/**
|
|
1723
1795
|
* Specifies whether `Execute` should trigger execution and loading right after it is
|
|
1724
|
-
* mounted.
|
|
1796
|
+
* mounted.
|
|
1797
|
+
*
|
|
1798
|
+
* @remarks
|
|
1799
|
+
* If not specified defaults to `true`.
|
|
1725
1800
|
*
|
|
1726
1801
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
1727
1802
|
* to trigger the execution and loading.
|
|
@@ -1731,26 +1806,48 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1731
1806
|
* Specifies whether `Execute` should load all data from backend or just a particular window - specified by
|
|
1732
1807
|
* offset and size of the window.
|
|
1733
1808
|
*
|
|
1809
|
+
* @remarks
|
|
1734
1810
|
* If not specified, all data will be loaded.
|
|
1735
1811
|
*/
|
|
1736
1812
|
window?: DataViewWindow;
|
|
1737
1813
|
/**
|
|
1738
|
-
*
|
|
1739
|
-
*
|
|
1814
|
+
* Indicates that the execution to obtain the data for the insight should be an 'execution by reference'.
|
|
1815
|
+
*
|
|
1816
|
+
* Execution by reference means that the ExecuteInsight will ask analytical backend to compute results for an insight
|
|
1817
|
+
* which is stored on the backend by specifying link to the insight, additional filters and description how
|
|
1818
|
+
* to organize the data.
|
|
1819
|
+
*
|
|
1820
|
+
* Otherwise, a freeform execution is done, in which the InsightView will send to backend the full execution
|
|
1821
|
+
* definition of what to compute.
|
|
1822
|
+
*
|
|
1823
|
+
* This distinction is in place because some backends MAY want to prohibit users from doing freeform executions
|
|
1824
|
+
* and only allow computing data for set of insights created by admins.
|
|
1825
|
+
*
|
|
1826
|
+
* Note: the need for execute by reference is rare. You will typically be notified by the solution admin to use
|
|
1827
|
+
* this mode.
|
|
1828
|
+
*/
|
|
1829
|
+
executeByReference?: boolean;
|
|
1830
|
+
/**
|
|
1831
|
+
* Child component to which rendering is delegated.
|
|
1832
|
+
*
|
|
1833
|
+
* @remarks
|
|
1834
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
1740
1835
|
*
|
|
1741
1836
|
* @param executionResult - execution result, indicating state and/or results
|
|
1742
1837
|
*/
|
|
1743
1838
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
1744
1839
|
/**
|
|
1745
|
-
*
|
|
1840
|
+
* Provide component for rendering of the loading state.
|
|
1746
1841
|
*
|
|
1842
|
+
* @remarks
|
|
1747
1843
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1748
1844
|
* will be called only with a successful result.
|
|
1749
1845
|
*/
|
|
1750
1846
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
1751
1847
|
/**
|
|
1752
|
-
*
|
|
1848
|
+
* Provide component for rendering of the error state.
|
|
1753
1849
|
*
|
|
1850
|
+
* @remarks
|
|
1754
1851
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1755
1852
|
* will be called only with a successful result.
|
|
1756
1853
|
*/
|
|
@@ -1771,6 +1868,7 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1771
1868
|
/**
|
|
1772
1869
|
* Backend to execute against.
|
|
1773
1870
|
*
|
|
1871
|
+
* @remarks
|
|
1774
1872
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
1775
1873
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
1776
1874
|
*/
|
|
@@ -1778,38 +1876,41 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1778
1876
|
/**
|
|
1779
1877
|
* Workspace in whose context to perform the execution.
|
|
1780
1878
|
*
|
|
1879
|
+
* @remarks
|
|
1781
1880
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
1782
1881
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
1783
1882
|
*/
|
|
1784
1883
|
workspace?: string;
|
|
1785
1884
|
/**
|
|
1786
|
-
* Data series will be built using the provided measures that are
|
|
1885
|
+
* Data series will be built using the provided measures that are further scoped for
|
|
1787
1886
|
* elements of the specified attributes.
|
|
1788
1887
|
*/
|
|
1789
1888
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
1790
1889
|
/**
|
|
1791
|
-
*
|
|
1890
|
+
* Slice all data series by elements of these attributes.
|
|
1792
1891
|
*/
|
|
1793
1892
|
slicesBy?: AttributesOrPlaceholders;
|
|
1794
1893
|
/**
|
|
1795
|
-
*
|
|
1894
|
+
* Include these totals among the data slices.
|
|
1796
1895
|
*/
|
|
1797
1896
|
totals?: TotalsOrPlaceholders;
|
|
1798
1897
|
/**
|
|
1799
|
-
*
|
|
1898
|
+
* Filters to apply on server side.
|
|
1800
1899
|
*/
|
|
1801
1900
|
filters?: NullableFiltersOrPlaceholders;
|
|
1802
1901
|
/**
|
|
1803
|
-
*
|
|
1902
|
+
* Sorting to apply on server side.
|
|
1804
1903
|
*/
|
|
1805
1904
|
sortBy?: SortsOrPlaceholders;
|
|
1806
1905
|
/**
|
|
1807
|
-
*
|
|
1906
|
+
* Resolution context for composed placeholders.
|
|
1808
1907
|
*/
|
|
1809
1908
|
placeholdersResolutionContext?: any;
|
|
1810
1909
|
/**
|
|
1811
|
-
*
|
|
1812
|
-
*
|
|
1910
|
+
* Name to use for files exported from this component.
|
|
1911
|
+
*
|
|
1912
|
+
* @remarks
|
|
1913
|
+
* If you do not specify this, then the componentName will be used instead.
|
|
1813
1914
|
*
|
|
1814
1915
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
1815
1916
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -1817,16 +1918,21 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1817
1918
|
*/
|
|
1818
1919
|
exportTitle?: string;
|
|
1819
1920
|
/**
|
|
1820
|
-
*
|
|
1821
|
-
*
|
|
1822
|
-
*
|
|
1921
|
+
* Informative name of the component.
|
|
1922
|
+
*
|
|
1923
|
+
* @remarks
|
|
1924
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
1925
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
1823
1926
|
*
|
|
1824
1927
|
* Defaults 'Execute'.
|
|
1825
1928
|
*/
|
|
1826
1929
|
componentName?: string;
|
|
1827
1930
|
/**
|
|
1828
1931
|
* Specifies whether {@link Execute} should trigger execution and loading right after it is
|
|
1829
|
-
* mounted.
|
|
1932
|
+
* mounted.
|
|
1933
|
+
*
|
|
1934
|
+
* @remarks
|
|
1935
|
+
* If not specified defaults to `true`.
|
|
1830
1936
|
*
|
|
1831
1937
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
1832
1938
|
* to trigger the execution and loading.
|
|
@@ -1836,26 +1942,31 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1836
1942
|
* Specifies whether {@link Execute} should load all data from backend or just a particular window - specified by
|
|
1837
1943
|
* offset and size of the window.
|
|
1838
1944
|
*
|
|
1945
|
+
* @remarks
|
|
1839
1946
|
* If not specified, all data will be loaded.
|
|
1840
1947
|
*/
|
|
1841
1948
|
window?: DataViewWindow;
|
|
1842
1949
|
/**
|
|
1843
|
-
* Child component to which rendering is delegated.
|
|
1844
|
-
*
|
|
1950
|
+
* Child component to which rendering is delegated.
|
|
1951
|
+
*
|
|
1952
|
+
* @remarks
|
|
1953
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
1845
1954
|
*
|
|
1846
1955
|
* @param executionResult - execution result, indicating state and/or results
|
|
1847
1956
|
*/
|
|
1848
1957
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
1849
1958
|
/**
|
|
1850
|
-
*
|
|
1959
|
+
* Provide component for rendering of the loading state.
|
|
1851
1960
|
*
|
|
1961
|
+
* @remarks
|
|
1852
1962
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1853
1963
|
* will be called only with a successful result.
|
|
1854
1964
|
*/
|
|
1855
1965
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
1856
1966
|
/**
|
|
1857
|
-
*
|
|
1967
|
+
* Provide component for rendering of the error state.
|
|
1858
1968
|
*
|
|
1969
|
+
* @remarks
|
|
1859
1970
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1860
1971
|
* will be called only with a successful result.
|
|
1861
1972
|
*/
|
|
@@ -1863,38 +1974,42 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1863
1974
|
}
|
|
1864
1975
|
|
|
1865
1976
|
/**
|
|
1866
|
-
*
|
|
1977
|
+
* Convenient interfance to define execution by series and slices.
|
|
1978
|
+
*
|
|
1979
|
+
* @public
|
|
1867
1980
|
*/
|
|
1868
1981
|
export declare interface IExecutionConfiguration {
|
|
1869
1982
|
/**
|
|
1870
|
-
* Data series will be built using the provided measures that are
|
|
1983
|
+
* Data series will be built using the provided measures that are further scoped for
|
|
1871
1984
|
* elements of the specified attributes.
|
|
1872
1985
|
*/
|
|
1873
1986
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
1874
1987
|
/**
|
|
1875
|
-
*
|
|
1988
|
+
* Slice all data series by elements of these attributes.
|
|
1876
1989
|
*/
|
|
1877
1990
|
slicesBy?: AttributesOrPlaceholders;
|
|
1878
1991
|
/**
|
|
1879
|
-
*
|
|
1992
|
+
* Include these totals among the data slices.
|
|
1880
1993
|
*/
|
|
1881
1994
|
totals?: TotalsOrPlaceholders;
|
|
1882
1995
|
/**
|
|
1883
|
-
*
|
|
1996
|
+
* Filters to apply on server side.
|
|
1884
1997
|
*/
|
|
1885
1998
|
filters?: NullableFiltersOrPlaceholders;
|
|
1886
1999
|
/**
|
|
1887
|
-
*
|
|
2000
|
+
* Sorting to apply on server side.
|
|
1888
2001
|
*/
|
|
1889
2002
|
sortBy?: SortsOrPlaceholders;
|
|
1890
2003
|
/**
|
|
1891
|
-
*
|
|
2004
|
+
* Resolution context for composed placeholders.
|
|
1892
2005
|
*/
|
|
1893
2006
|
placeholdersResolutionContext?: any;
|
|
1894
2007
|
/**
|
|
1895
|
-
*
|
|
1896
|
-
*
|
|
1897
|
-
*
|
|
2008
|
+
* Informative name of the component.
|
|
2009
|
+
*
|
|
2010
|
+
* @remarks
|
|
2011
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
2012
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
1898
2013
|
*
|
|
1899
2014
|
* Defaults 'Execute'.
|
|
1900
2015
|
*/
|
|
@@ -1904,7 +2019,7 @@ export declare interface IExecutionConfiguration {
|
|
|
1904
2019
|
/**
|
|
1905
2020
|
* Methods to work with execution definition.
|
|
1906
2021
|
*
|
|
1907
|
-
* @
|
|
2022
|
+
* @public
|
|
1908
2023
|
*/
|
|
1909
2024
|
export declare interface IExecutionDefinitionMethods {
|
|
1910
2025
|
/**
|
|
@@ -2015,8 +2130,12 @@ export declare interface IExtendedExportConfig extends IExportConfig {
|
|
|
2015
2130
|
export declare function ignoreTitlesForSimpleMeasures<T extends IInsightDefinition>(insight: T): T;
|
|
2016
2131
|
|
|
2017
2132
|
/**
|
|
2018
|
-
* A function called for {@link IMappingHeader} instances.
|
|
2133
|
+
* A function called for {@link IMappingHeader} instances.
|
|
2134
|
+
*
|
|
2135
|
+
* @remarks
|
|
2136
|
+
* When the function returns true, it means the IMappingHeader is matched.
|
|
2019
2137
|
* See {@link https://sdk.gooddata.com/gooddata-ui/docs/ht_create_predicates.html | documentation} for more information.
|
|
2138
|
+
*
|
|
2020
2139
|
* @public
|
|
2021
2140
|
*/
|
|
2022
2141
|
export declare type IHeaderPredicate = (header: IMappingHeader, context: IHeaderPredicateContext) => boolean;
|
|
@@ -2068,14 +2187,16 @@ export declare interface IIntlWrapperProps {
|
|
|
2068
2187
|
*/
|
|
2069
2188
|
export declare interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps> {
|
|
2070
2189
|
/**
|
|
2071
|
-
*
|
|
2190
|
+
* Specify an instance of analytical backend instance to work with.
|
|
2072
2191
|
*
|
|
2192
|
+
* @remarks
|
|
2073
2193
|
* Note: if you do not have a BackendProvider above in the component tree, then you MUST specify the backend.
|
|
2074
2194
|
*/
|
|
2075
2195
|
backend?: IAnalyticalBackend;
|
|
2076
2196
|
/**
|
|
2077
|
-
*
|
|
2197
|
+
* Specify workspace to work with.
|
|
2078
2198
|
*
|
|
2199
|
+
* @remarks
|
|
2079
2200
|
* Note: if you do not have a WorkspaceProvider above in the component tree, then you MUST specify the workspace.
|
|
2080
2201
|
*/
|
|
2081
2202
|
workspace?: string;
|
|
@@ -2084,24 +2205,24 @@ export declare interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps>
|
|
|
2084
2205
|
*/
|
|
2085
2206
|
measure: IMeasure;
|
|
2086
2207
|
/**
|
|
2087
|
-
*
|
|
2208
|
+
* Specify filters to apply during calculation
|
|
2088
2209
|
*/
|
|
2089
2210
|
filters?: INullableFilter[];
|
|
2090
2211
|
/**
|
|
2091
|
-
*
|
|
2212
|
+
* Specify number separators to use when rendering (segment delimiters, decimal point character)
|
|
2092
2213
|
*/
|
|
2093
2214
|
separators?: ISeparators_2;
|
|
2094
2215
|
/**
|
|
2095
|
-
*
|
|
2216
|
+
* Specify locale to use for strings that the Kpi component may render (for instance when encountering
|
|
2096
2217
|
* errors).
|
|
2097
2218
|
*/
|
|
2098
2219
|
locale?: string;
|
|
2099
2220
|
/**
|
|
2100
|
-
*
|
|
2221
|
+
* Specify react component to render while the data is loading.
|
|
2101
2222
|
*/
|
|
2102
2223
|
LoadingComponent?: React_2.ComponentType<ILoadingProps>;
|
|
2103
2224
|
/**
|
|
2104
|
-
*
|
|
2225
|
+
* Specify react component to render if execution fails.
|
|
2105
2226
|
*/
|
|
2106
2227
|
ErrorComponent?: React_2.ComponentType<IErrorProps>;
|
|
2107
2228
|
}
|
|
@@ -2171,7 +2292,9 @@ export declare interface ILoadingState {
|
|
|
2171
2292
|
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
2293
|
|
|
2173
2294
|
/**
|
|
2295
|
+
* @privateRemarks
|
|
2174
2296
|
* TODO: SDK8: remove this, replace with something more meaningful
|
|
2297
|
+
*
|
|
2175
2298
|
* @public
|
|
2176
2299
|
*/
|
|
2177
2300
|
export declare type IMappingHeader = IAttributeDescriptor | IResultAttributeHeader | IMeasureDescriptor | ITotalDescriptor;
|
|
@@ -2201,9 +2324,11 @@ export declare const IntlWrapper: React_2.FC<IIntlWrapperProps>;
|
|
|
2201
2324
|
|
|
2202
2325
|
/**
|
|
2203
2326
|
* 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
|
-
*
|
|
2327
|
+
* that may change the value at runtime.
|
|
2328
|
+
*
|
|
2329
|
+
* @remarks
|
|
2330
|
+
* You can provide it to visualizations instead of the attributes/measures/filters/sorts/totals themselves,
|
|
2331
|
+
* placeholders will be replaced with the actual values on the background.
|
|
2207
2332
|
*
|
|
2208
2333
|
* This allows you:
|
|
2209
2334
|
* - share a reference to the same execution elements across multiple components.
|
|
@@ -2213,9 +2338,13 @@ export declare const IntlWrapper: React_2.FC<IIntlWrapperProps>;
|
|
|
2213
2338
|
*
|
|
2214
2339
|
* Placeholder values are living in React context and you can obtain/set their values by the following hooks:
|
|
2215
2340
|
* - {@link usePlaceholder}
|
|
2341
|
+
*
|
|
2216
2342
|
* - {@link usePlaceholders}
|
|
2343
|
+
*
|
|
2217
2344
|
* - {@link useComposedPlaceholder}
|
|
2345
|
+
*
|
|
2218
2346
|
* - {@link useResolveValueWithPlaceholders}
|
|
2347
|
+
*
|
|
2219
2348
|
* - {@link useResolveValuesWithPlaceholders}
|
|
2220
2349
|
*
|
|
2221
2350
|
* Note:
|
|
@@ -2240,12 +2369,14 @@ export declare type IPlaceholder<T> = {
|
|
|
2240
2369
|
export declare interface IPlaceholderOptions<T> {
|
|
2241
2370
|
/**
|
|
2242
2371
|
* By default, each placeholder has a unique generated id.
|
|
2243
|
-
*
|
|
2372
|
+
*
|
|
2373
|
+
* @remarks
|
|
2374
|
+
* You can provide id of the placeholder which can be useful for debugging.
|
|
2244
2375
|
* Please note that the id should be unique for all your placeholders.
|
|
2245
2376
|
*/
|
|
2246
2377
|
id?: string;
|
|
2247
2378
|
/**
|
|
2248
|
-
*
|
|
2379
|
+
* Provide function to validate the placeholder value.
|
|
2249
2380
|
*/
|
|
2250
2381
|
validate?: (value?: T) => void;
|
|
2251
2382
|
}
|
|
@@ -2289,12 +2420,15 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2289
2420
|
* Specifies whether {@link RawExecute} should load all data from backend or just a particular window - specified by
|
|
2290
2421
|
* offset and size of the window.
|
|
2291
2422
|
*
|
|
2423
|
+
* @remarks
|
|
2292
2424
|
* If not specified, all data will be loaded.
|
|
2293
2425
|
*/
|
|
2294
2426
|
window?: DataViewWindow;
|
|
2295
2427
|
/**
|
|
2296
|
-
*
|
|
2297
|
-
*
|
|
2428
|
+
* Name to use for files exported from this component.
|
|
2429
|
+
*
|
|
2430
|
+
* @remarks
|
|
2431
|
+
* If you do not specify this, then the 'RawExecute' will be used instead.
|
|
2298
2432
|
*
|
|
2299
2433
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
2300
2434
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -2303,28 +2437,36 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2303
2437
|
exportTitle?: string;
|
|
2304
2438
|
/**
|
|
2305
2439
|
* Indicates whether the executor should trigger execution and loading right after it is
|
|
2306
|
-
* mounted.
|
|
2440
|
+
* mounted.
|
|
2441
|
+
*
|
|
2442
|
+
* @remarks
|
|
2443
|
+
* If not specified defaults to `true`.
|
|
2307
2444
|
*
|
|
2308
2445
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
2309
2446
|
* to trigger the execution and loading.
|
|
2310
2447
|
*/
|
|
2311
2448
|
loadOnMount?: boolean;
|
|
2312
2449
|
/**
|
|
2313
|
-
* Child component to which rendering is delegated.
|
|
2314
|
-
*
|
|
2450
|
+
* Child component to which rendering is delegated.
|
|
2451
|
+
*
|
|
2452
|
+
* @remarks
|
|
2453
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
2315
2454
|
*
|
|
2316
2455
|
* @param executionResult - execution result, indicating state and/or results
|
|
2317
2456
|
*/
|
|
2318
2457
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
2319
2458
|
/**
|
|
2320
|
-
*
|
|
2459
|
+
* Provide component for rendering of the loading state.
|
|
2321
2460
|
*
|
|
2461
|
+
* @remarks
|
|
2322
2462
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
2323
2463
|
* will be called only with a successful result.
|
|
2324
2464
|
*/
|
|
2325
2465
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
2326
2466
|
/**
|
|
2327
|
-
*
|
|
2467
|
+
* Provide component for rendering of the error state.
|
|
2468
|
+
*
|
|
2469
|
+
* @remarks
|
|
2328
2470
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
2329
2471
|
* will be called only with a successful result.
|
|
2330
2472
|
*/
|
|
@@ -2334,7 +2476,7 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2334
2476
|
/**
|
|
2335
2477
|
* Methods to access data and totals in a result.
|
|
2336
2478
|
*
|
|
2337
|
-
* @
|
|
2479
|
+
* @public
|
|
2338
2480
|
*/
|
|
2339
2481
|
export declare interface IResultDataMethods {
|
|
2340
2482
|
/**
|
|
@@ -2389,7 +2531,7 @@ export declare interface IResultDataMethods {
|
|
|
2389
2531
|
/**
|
|
2390
2532
|
* Methods to access result metadata - dimension descriptors and result headers.
|
|
2391
2533
|
*
|
|
2392
|
-
* @
|
|
2534
|
+
* @public
|
|
2393
2535
|
*/
|
|
2394
2536
|
export declare interface IResultMetaMethods {
|
|
2395
2537
|
/**
|
|
@@ -2680,6 +2822,7 @@ export declare interface ITranslationsCustomizationProviderProps {
|
|
|
2680
2822
|
/**
|
|
2681
2823
|
* Analytical backend, from which the ThemeProvider will obtain selected theme object
|
|
2682
2824
|
*
|
|
2825
|
+
* @remarks
|
|
2683
2826
|
* If you do not specify instance of analytical backend using this prop, then you MUST have
|
|
2684
2827
|
* BackendProvider up in the component tree.
|
|
2685
2828
|
*/
|
|
@@ -2687,6 +2830,7 @@ export declare interface ITranslationsCustomizationProviderProps {
|
|
|
2687
2830
|
/**
|
|
2688
2831
|
* Identifier of analytical workspace, from which the ThemeProvider will obtain the selected theme identifier
|
|
2689
2832
|
*
|
|
2833
|
+
* @remarks
|
|
2690
2834
|
* If you do not specify workspace identifier, then you MUST have WorkspaceProvider up in the
|
|
2691
2835
|
* component tree.
|
|
2692
2836
|
*/
|
|
@@ -2712,38 +2856,41 @@ export declare type ITranslationsProviderProps = ITranslationsProviderOwnProps &
|
|
|
2712
2856
|
export declare type IUseComposedPlaceholderHook<T extends IComposedPlaceholder<any, any, any>> = (resolutionContext: ComposedPlaceholderResolutionContext<T>) => PlaceholderResolvedValue<T>;
|
|
2713
2857
|
|
|
2714
2858
|
/**
|
|
2859
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
2715
2860
|
* @beta
|
|
2716
2861
|
*/
|
|
2717
2862
|
export declare interface IUseExecutionConfig {
|
|
2718
2863
|
/**
|
|
2719
|
-
* Data series will be built using the provided measures that are
|
|
2864
|
+
* Data series will be built using the provided measures that are further scoped for
|
|
2720
2865
|
* elements of the specified attributes.
|
|
2721
2866
|
*/
|
|
2722
2867
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
2723
2868
|
/**
|
|
2724
|
-
*
|
|
2869
|
+
* Slice all data series by elements of these attributes.
|
|
2725
2870
|
*/
|
|
2726
2871
|
slicesBy?: AttributesOrPlaceholders;
|
|
2727
2872
|
/**
|
|
2728
|
-
*
|
|
2873
|
+
* Include these totals among the data slices.
|
|
2729
2874
|
*/
|
|
2730
2875
|
totals?: TotalsOrPlaceholders;
|
|
2731
2876
|
/**
|
|
2732
|
-
*
|
|
2877
|
+
* Filters to apply on server side.
|
|
2733
2878
|
*/
|
|
2734
2879
|
filters?: NullableFiltersOrPlaceholders;
|
|
2735
2880
|
/**
|
|
2736
|
-
*
|
|
2881
|
+
* Sorting to apply on server side.
|
|
2737
2882
|
*/
|
|
2738
2883
|
sortBy?: SortsOrPlaceholders;
|
|
2739
2884
|
/**
|
|
2740
|
-
*
|
|
2885
|
+
* Resolution context for composed placeholders.
|
|
2741
2886
|
*/
|
|
2742
2887
|
placeholdersResolutionContext?: any;
|
|
2743
2888
|
/**
|
|
2744
|
-
*
|
|
2745
|
-
*
|
|
2746
|
-
*
|
|
2889
|
+
* Informative name of the component.
|
|
2890
|
+
*
|
|
2891
|
+
* @remarks
|
|
2892
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
2893
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
2747
2894
|
*
|
|
2748
2895
|
* Defaults 'Execute'.
|
|
2749
2896
|
*/
|
|
@@ -2751,6 +2898,7 @@ export declare interface IUseExecutionConfig {
|
|
|
2751
2898
|
/**
|
|
2752
2899
|
* Backend to work with.
|
|
2753
2900
|
*
|
|
2901
|
+
* @remarks
|
|
2754
2902
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2755
2903
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2756
2904
|
*/
|
|
@@ -2758,6 +2906,7 @@ export declare interface IUseExecutionConfig {
|
|
|
2758
2906
|
/**
|
|
2759
2907
|
* Workspace where execution should be executed.
|
|
2760
2908
|
*
|
|
2909
|
+
* @remarks
|
|
2761
2910
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2762
2911
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2763
2912
|
*/
|
|
@@ -2765,7 +2914,10 @@ export declare interface IUseExecutionConfig {
|
|
|
2765
2914
|
}
|
|
2766
2915
|
|
|
2767
2916
|
/**
|
|
2768
|
-
* @
|
|
2917
|
+
* Configuration for {@link useExecutionDataView} hook.
|
|
2918
|
+
* See also {@link UseExecutionDataViewCallbacks}.
|
|
2919
|
+
*
|
|
2920
|
+
* @public
|
|
2769
2921
|
*/
|
|
2770
2922
|
export declare interface IUseExecutionDataViewConfig {
|
|
2771
2923
|
/**
|
|
@@ -2773,13 +2925,16 @@ export declare interface IUseExecutionDataViewConfig {
|
|
|
2773
2925
|
*/
|
|
2774
2926
|
execution?: IPreparedExecution | IExecutionConfiguration;
|
|
2775
2927
|
/**
|
|
2776
|
-
*
|
|
2928
|
+
* You can define only a specific "window" of data to load.
|
|
2929
|
+
*
|
|
2930
|
+
* @remarks
|
|
2777
2931
|
* This is useful if you want to page data.
|
|
2778
2932
|
*/
|
|
2779
2933
|
window?: DataViewWindow;
|
|
2780
2934
|
/**
|
|
2781
2935
|
* Backend to work with.
|
|
2782
2936
|
*
|
|
2937
|
+
* @remarks
|
|
2783
2938
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2784
2939
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2785
2940
|
*/
|
|
@@ -2787,6 +2942,7 @@ export declare interface IUseExecutionDataViewConfig {
|
|
|
2787
2942
|
/**
|
|
2788
2943
|
* Workspace where execution should be executed.
|
|
2789
2944
|
*
|
|
2945
|
+
* @remarks
|
|
2790
2946
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2791
2947
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2792
2948
|
*/
|
|
@@ -2794,39 +2950,62 @@ export declare interface IUseExecutionDataViewConfig {
|
|
|
2794
2950
|
}
|
|
2795
2951
|
|
|
2796
2952
|
/**
|
|
2797
|
-
* @
|
|
2953
|
+
* Configuration for {@link useInsightDataView} hook.
|
|
2954
|
+
*
|
|
2955
|
+
* @public
|
|
2798
2956
|
*/
|
|
2799
2957
|
export declare interface IUseInsightDataViewConfig {
|
|
2800
2958
|
/**
|
|
2801
2959
|
* Reference to the insight for which you want to get the data view.
|
|
2802
2960
|
*
|
|
2961
|
+
* @remarks
|
|
2803
2962
|
* Note: When the reference or identifier is not provided, hook is locked in a "pending" state.
|
|
2804
2963
|
*/
|
|
2805
2964
|
insight?: ObjRef;
|
|
2806
2965
|
/**
|
|
2807
|
-
*
|
|
2966
|
+
* Modify sorts on prepared insight execution, before it's executed.
|
|
2808
2967
|
*/
|
|
2809
2968
|
sorts?: ISortItem[] | ((def: IExecutionDefinition) => ISortItem[]);
|
|
2810
2969
|
/**
|
|
2811
|
-
*
|
|
2970
|
+
* Modify dimensions on prepared insight execution, before it's executed.
|
|
2812
2971
|
*/
|
|
2813
2972
|
dimensions?: IDimension[] | ((def: IExecutionDefinition) => IDimension[]);
|
|
2814
2973
|
/**
|
|
2815
|
-
*
|
|
2974
|
+
* Modify date formatting on prepared insight execution, before it's executed.
|
|
2816
2975
|
*/
|
|
2817
2976
|
dateFormat?: string | ((def: IExecutionDefinition) => string);
|
|
2818
2977
|
/**
|
|
2819
|
-
*
|
|
2978
|
+
* Specify filters to merge with filters already defined in the insight.
|
|
2820
2979
|
*/
|
|
2821
2980
|
filters?: INullableFilter[];
|
|
2822
2981
|
/**
|
|
2823
|
-
*
|
|
2982
|
+
* You can define only a specific "window" of data to load.
|
|
2983
|
+
*
|
|
2984
|
+
* @remarks
|
|
2824
2985
|
* This is useful if you want to page data.
|
|
2825
2986
|
*/
|
|
2826
2987
|
window?: DataViewWindow;
|
|
2988
|
+
/**
|
|
2989
|
+
* Indicates that the execution to obtain the data for the insight should be an 'execution by reference'.
|
|
2990
|
+
*
|
|
2991
|
+
* Execution by reference means that the useInsightDataView will ask analytical backend to compute results for an insight
|
|
2992
|
+
* which is stored on the backend by specifying link to the insight, additional filters and description how
|
|
2993
|
+
* to organize the data.
|
|
2994
|
+
*
|
|
2995
|
+
* Otherwise, a freeform execution is done, in which the InsightView will send to backend the full execution
|
|
2996
|
+
* definition of what to compute.
|
|
2997
|
+
*
|
|
2998
|
+
* This distinction is in place because some backends MAY want to prohibit users from doing freeform executions
|
|
2999
|
+
* and only allow computing data for set of insights created by admins.
|
|
3000
|
+
*
|
|
3001
|
+
* Note: the need for execute by reference is rare. You will typically be notified by the solution admin to use
|
|
3002
|
+
* this mode.
|
|
3003
|
+
*/
|
|
3004
|
+
executeByReference?: boolean;
|
|
2827
3005
|
/**
|
|
2828
3006
|
* Backend to work with.
|
|
2829
3007
|
*
|
|
3008
|
+
* @remarks
|
|
2830
3009
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2831
3010
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2832
3011
|
*/
|
|
@@ -2834,6 +3013,7 @@ export declare interface IUseInsightDataViewConfig {
|
|
|
2834
3013
|
/**
|
|
2835
3014
|
* Workspace where execution should be executed.
|
|
2836
3015
|
*
|
|
3016
|
+
* @remarks
|
|
2837
3017
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2838
3018
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2839
3019
|
*/
|
|
@@ -2865,8 +3045,10 @@ PlaceholderValue<T> | undefined,
|
|
|
2865
3045
|
];
|
|
2866
3046
|
|
|
2867
3047
|
/**
|
|
2868
|
-
* Super-interface for all visualization callbacks
|
|
2869
|
-
*
|
|
3048
|
+
* Super-interface for all visualization callbacks.
|
|
3049
|
+
*
|
|
3050
|
+
* @remarks
|
|
3051
|
+
* All visualizations SHOULD have at least these callbacks defined.
|
|
2870
3052
|
*
|
|
2871
3053
|
* @public
|
|
2872
3054
|
*/
|
|
@@ -2898,8 +3080,10 @@ export declare interface IVisualizationCallbacks {
|
|
|
2898
3080
|
}
|
|
2899
3081
|
|
|
2900
3082
|
/**
|
|
2901
|
-
* Super-interface for all visualization props
|
|
2902
|
-
*
|
|
3083
|
+
* Super-interface for all visualization props.
|
|
3084
|
+
*
|
|
3085
|
+
* @remarks
|
|
3086
|
+
* Charts, tables or anything else - all should have these basic props.
|
|
2903
3087
|
*
|
|
2904
3088
|
* @public
|
|
2905
3089
|
*/
|
|
@@ -2907,12 +3091,14 @@ export declare interface IVisualizationProps {
|
|
|
2907
3091
|
/**
|
|
2908
3092
|
* Set Locale for visualization localization.
|
|
2909
3093
|
*
|
|
3094
|
+
* @remarks
|
|
2910
3095
|
* Note: This locale will be used for everything EXCEPT the data being visualized.
|
|
2911
3096
|
*/
|
|
2912
3097
|
locale?: string;
|
|
2913
3098
|
/**
|
|
2914
3099
|
* Set title to use for exported files.
|
|
2915
3100
|
*
|
|
3101
|
+
* @remarks
|
|
2916
3102
|
* Note: you can also specify export file name as parameters to the export function which you
|
|
2917
3103
|
* receive in the onExportReady. If you do not specify title here and neither as input to export function,
|
|
2918
3104
|
* the the name will default to name of the visualization component.
|
|
@@ -2954,24 +3140,25 @@ export declare interface IWithExecution<T> {
|
|
|
2954
3140
|
*/
|
|
2955
3141
|
exportTitle: string | ((props: T) => string);
|
|
2956
3142
|
/**
|
|
2957
|
-
*
|
|
3143
|
+
* Customize data window to load.
|
|
2958
3144
|
*
|
|
2959
3145
|
* By default the HOC loads all the data available in the execution's result.
|
|
2960
3146
|
*/
|
|
2961
3147
|
window?: DataViewWindow | ((props: T) => DataViewWindow | undefined);
|
|
2962
3148
|
/**
|
|
2963
|
-
*
|
|
3149
|
+
* Specify event callbacks which the HOC will trigger in different situations.
|
|
2964
3150
|
*/
|
|
2965
3151
|
events?: IWithLoadingEvents<T> | ((props: T) => IWithLoadingEvents<T>);
|
|
2966
3152
|
/**
|
|
2967
|
-
*
|
|
3153
|
+
* Customize, whether execution & data loading should start as soon as component is mounted.
|
|
2968
3154
|
*
|
|
3155
|
+
* @remarks
|
|
2969
3156
|
* Default is true. When not loading on mount, the wrapped component can trigger the load by calling the
|
|
2970
3157
|
* reload() function which the HOC injects into its props.
|
|
2971
3158
|
*/
|
|
2972
3159
|
loadOnMount?: boolean | ((props: T) => boolean);
|
|
2973
3160
|
/**
|
|
2974
|
-
*
|
|
3161
|
+
* Specify function that will be called during component prop updates and will be used to
|
|
2975
3162
|
* determine whether execution should be re-run and data reloaded.
|
|
2976
3163
|
*
|
|
2977
3164
|
* @param prevProps - previous props
|
|
@@ -2981,8 +3168,11 @@ export declare interface IWithExecution<T> {
|
|
|
2981
3168
|
}
|
|
2982
3169
|
|
|
2983
3170
|
/**
|
|
2984
|
-
* Configuration for the
|
|
2985
|
-
*
|
|
3171
|
+
* Configuration for the {@link withExecutionLoading} HOC.
|
|
3172
|
+
*
|
|
3173
|
+
* @remarks
|
|
3174
|
+
* All configuration parameters can be either actual parameter values or functions to obtain them
|
|
3175
|
+
* from the wrapped component props.
|
|
2986
3176
|
*
|
|
2987
3177
|
* If functions are specified, the HOC will call them with the wrapped component props as parameter and then use
|
|
2988
3178
|
* the resulting values as if they were passed directly.
|
|
@@ -3007,23 +3197,25 @@ export declare interface IWithExecutionLoading<TProps> {
|
|
|
3007
3197
|
*/
|
|
3008
3198
|
promiseFactory: (props: TProps, window?: DataViewWindow) => Promise<DataViewFacade>;
|
|
3009
3199
|
/**
|
|
3010
|
-
*
|
|
3011
|
-
*
|
|
3200
|
+
* Specify data view window to retrieve from backend.
|
|
3201
|
+
*
|
|
3202
|
+
* @remarks
|
|
3203
|
+
* If specified as function, the function can return undefined in case all data must be retrieved.
|
|
3012
3204
|
*/
|
|
3013
3205
|
window?: DataViewWindow | ((props: TProps) => DataViewWindow | undefined);
|
|
3014
3206
|
/**
|
|
3015
|
-
*
|
|
3207
|
+
* Specify event callbacks which the HOC will trigger in different situations.
|
|
3016
3208
|
*/
|
|
3017
3209
|
events?: IWithLoadingEvents<TProps> | ((props: TProps) => IWithLoadingEvents<TProps>);
|
|
3018
3210
|
/**
|
|
3019
|
-
*
|
|
3211
|
+
* Customize, whether execution & data loading should start as soon as component is mounted.
|
|
3020
3212
|
*
|
|
3021
3213
|
* Default is true. When not loading on mount, the wrapped component can trigger the load by calling the
|
|
3022
3214
|
* reload() function which the HOC injects into its props.
|
|
3023
3215
|
*/
|
|
3024
3216
|
loadOnMount?: boolean | ((props: TProps) => boolean);
|
|
3025
3217
|
/**
|
|
3026
|
-
*
|
|
3218
|
+
* Specify function that will be called during component prop updates and will be used to
|
|
3027
3219
|
* determine whether execution should be re-run and data reloaded.
|
|
3028
3220
|
*
|
|
3029
3221
|
* @param prevProps - previous props
|
|
@@ -3085,8 +3277,10 @@ export declare interface IWorkspaceProviderProps {
|
|
|
3085
3277
|
}
|
|
3086
3278
|
|
|
3087
3279
|
/**
|
|
3088
|
-
* Kpi is a simple component which calculates and renders a single formatted measure value.
|
|
3089
|
-
*
|
|
3280
|
+
* Kpi is a simple component which calculates and renders a single formatted measure value.
|
|
3281
|
+
*
|
|
3282
|
+
* @remarks
|
|
3283
|
+
* The the value is rendered inside a <span> element.
|
|
3090
3284
|
*
|
|
3091
3285
|
* Kpi component is useful for instance for embedding data values into text paragraphs.
|
|
3092
3286
|
*
|
|
@@ -3097,8 +3291,10 @@ export declare interface IWorkspaceProviderProps {
|
|
|
3097
3291
|
export declare const Kpi: React_2.ComponentType<IKpiProps>;
|
|
3098
3292
|
|
|
3099
3293
|
/**
|
|
3100
|
-
*
|
|
3101
|
-
*
|
|
3294
|
+
* Component that renders a default loading indicator.
|
|
3295
|
+
*
|
|
3296
|
+
* @remarks
|
|
3297
|
+
* See {@link http://sdk.gooddata.com/gooddata-ui/docs/loading_component.html | LoadingComponent }
|
|
3102
3298
|
*
|
|
3103
3299
|
* @public
|
|
3104
3300
|
*/
|
|
@@ -3132,7 +3328,7 @@ export declare function makeCancelable<T>(promise: Promise<T>): ICancelablePromi
|
|
|
3132
3328
|
/**
|
|
3133
3329
|
* Generate union of measures from union of measure definitions.
|
|
3134
3330
|
*
|
|
3135
|
-
*
|
|
3331
|
+
* @example
|
|
3136
3332
|
* - IMeasureDefinition | IArithmeticMeasureDefinition is resolved as
|
|
3137
3333
|
* IMeasure\<IMeasureDefinition\> | IMeasure\<IArithmeticMeasureDefinition\>
|
|
3138
3334
|
*
|
|
@@ -3232,6 +3428,7 @@ export declare type NullableFiltersOrPlaceholders = Array<FilterOrMultiValuePlac
|
|
|
3232
3428
|
* Creates a new predicate that returns true for any header that belongs to either attribute or measure matching
|
|
3233
3429
|
* the provided object.
|
|
3234
3430
|
*
|
|
3431
|
+
* @remarks
|
|
3235
3432
|
* If the object is empty or is not attribute, simple measure or object reference, the function returns predicate
|
|
3236
3433
|
* that is always falsy.
|
|
3237
3434
|
*
|
|
@@ -3302,8 +3499,10 @@ export declare const pickCorrectWording: (translations: Record<string, string>,
|
|
|
3302
3499
|
/**
|
|
3303
3500
|
* Wrap each member of the union type in AnyPlaceholder.
|
|
3304
3501
|
*
|
|
3305
|
-
*
|
|
3306
|
-
*
|
|
3502
|
+
* @example
|
|
3503
|
+
* ```
|
|
3504
|
+
* IAttribute | IMeasure is resolved as AnyPlaceholder\<IAttribute\> | AnyPlaceholder\<IMeasure\>
|
|
3505
|
+
* ```
|
|
3307
3506
|
*
|
|
3308
3507
|
* @public
|
|
3309
3508
|
*/
|
|
@@ -3311,15 +3510,19 @@ export declare type PlaceholderOf<T> = T extends any ? AnyPlaceholder<T> : never
|
|
|
3311
3510
|
|
|
3312
3511
|
/**
|
|
3313
3512
|
* Convert any value that may contain placeholders to its resolved value type.
|
|
3513
|
+
*
|
|
3514
|
+
* @remarks
|
|
3314
3515
|
* Nested array placeholders resolved value types are flattened.
|
|
3315
3516
|
* If the type is not a placeholder, return the same type.
|
|
3316
3517
|
*
|
|
3317
|
-
*
|
|
3318
|
-
*
|
|
3319
|
-
*
|
|
3320
|
-
*
|
|
3321
|
-
*
|
|
3322
|
-
*
|
|
3518
|
+
* @example
|
|
3519
|
+
* ```
|
|
3520
|
+
* IPlaceholder\<IAttribute\> is resolved as IAttribute
|
|
3521
|
+
* IPlaceholder\<IAttribute\>[] is resolved as IAttribute[]
|
|
3522
|
+
* IPlaceholder\<IAttribute[]\> is resolved as IAttribute[]
|
|
3523
|
+
* [IPlaceholder\<IAttribute[]\>, IPlaceholder\<IMeasure[]\>] is resolved as (IAttribute | IMeasure)[]
|
|
3524
|
+
* null is resolved as null
|
|
3525
|
+
* ```
|
|
3323
3526
|
*
|
|
3324
3527
|
* @public
|
|
3325
3528
|
*/
|
|
@@ -3336,10 +3539,13 @@ export declare function PlaceholdersProvider(props: IPlaceholdersProviderProps):
|
|
|
3336
3539
|
/**
|
|
3337
3540
|
* Convert tuple of values that may contain placeholders to tuple of their respective resolved value types.
|
|
3338
3541
|
*
|
|
3339
|
-
*
|
|
3340
|
-
*
|
|
3341
|
-
*
|
|
3542
|
+
* @example
|
|
3543
|
+
* ```
|
|
3544
|
+
* [IPlaceholder\<IAttribute\>, IPlaceholder\<IAttribute[]\>] is resolved as [IAttribute, IAttribute[]]
|
|
3545
|
+
* [IPlaceholder\<IMeasure\>, IMeasure] is resolved as [IMeasure, IMeasure]
|
|
3546
|
+
* ```
|
|
3342
3547
|
*
|
|
3548
|
+
* @remarks
|
|
3343
3549
|
* Check mapped tuple types for more details:
|
|
3344
3550
|
* https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-1.html#mapped-types-on-tuples-and-arrays
|
|
3345
3551
|
*
|
|
@@ -3352,9 +3558,10 @@ export declare type PlaceholdersResolvedValues<Tuple extends any[]> = {
|
|
|
3352
3558
|
/**
|
|
3353
3559
|
* Convert tuple of placeholders to tuple of their respective value types.
|
|
3354
3560
|
*
|
|
3355
|
-
*
|
|
3356
|
-
*
|
|
3561
|
+
* @example
|
|
3562
|
+
* [IPlaceholder\<IAttribute\>, IPlaceholder\<IAttribute[]\>] is resolved as [IAttribute, IAttribute[]]
|
|
3357
3563
|
*
|
|
3564
|
+
* @remarks
|
|
3358
3565
|
* Check mapped tuple types for more details:
|
|
3359
3566
|
* https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-1.html#mapped-types-on-tuples-and-arrays
|
|
3360
3567
|
*
|
|
@@ -3366,13 +3573,17 @@ export declare type PlaceholdersValues<Tuple extends [...any[]]> = {
|
|
|
3366
3573
|
|
|
3367
3574
|
/**
|
|
3368
3575
|
* Get placeholder value type.
|
|
3576
|
+
*
|
|
3577
|
+
* @remarks
|
|
3369
3578
|
* If the type is not a placeholder, return the same type.
|
|
3370
3579
|
*
|
|
3371
|
-
*
|
|
3372
|
-
*
|
|
3373
|
-
*
|
|
3374
|
-
*
|
|
3375
|
-
*
|
|
3580
|
+
* @example
|
|
3581
|
+
* ```
|
|
3582
|
+
* IPlaceholder\<IAttribute\> is resolved as IAttribute
|
|
3583
|
+
* IPlaceholder\<IAttribute[]\> is resolved as IAttribute[]
|
|
3584
|
+
* IComposedPlaceholder\<IMeasure\> is resolved as IMeasure
|
|
3585
|
+
* null is resolved as null
|
|
3586
|
+
* ```
|
|
3376
3587
|
*
|
|
3377
3588
|
* @public
|
|
3378
3589
|
*/
|
|
@@ -3392,6 +3603,7 @@ export declare class ProtectedReportSdkError extends GoodDataSdkError {
|
|
|
3392
3603
|
* Raw executor is the most basic React component to drive custom executions to obtain
|
|
3393
3604
|
* data from backends.
|
|
3394
3605
|
*
|
|
3606
|
+
* @remarks
|
|
3395
3607
|
* The component accepts an instance of prepared execution and drives all the necessary
|
|
3396
3608
|
* APIs and boilerplate needed to obtain a {@link DataViewFacade}.
|
|
3397
3609
|
* Note that if the resulting data is empty this will NOT throw a {@link @gooddata/sdk-backend-spi#NoDataError}.
|
|
@@ -3449,18 +3661,20 @@ export declare function resolveLCMWorkspaceIdentifiers(backend: any, clientWorks
|
|
|
3449
3661
|
/**
|
|
3450
3662
|
* Resolve error of multiple {@link useCancelablePromise} hooks - gets first error in the sequence of cancelable promise states.
|
|
3451
3663
|
*
|
|
3664
|
+
* @remarks
|
|
3452
3665
|
* This is useful for useCancelablePromise composition - when you want to wrap multiple useCancelablePromise hooks in another hook,
|
|
3453
3666
|
* and keep the return value shape of the hook same as for useCancelablePromise.
|
|
3454
3667
|
*
|
|
3455
3668
|
* @param states - cancelable promise states (useCancelablePromise return values)
|
|
3456
3669
|
* @returns first error
|
|
3457
|
-
* @
|
|
3670
|
+
* @public
|
|
3458
3671
|
*/
|
|
3459
3672
|
export declare function resolveUseCancelablePromisesError<TError>(states: UseCancelablePromiseState<unknown, TError>[]): TError | undefined;
|
|
3460
3673
|
|
|
3461
3674
|
/**
|
|
3462
3675
|
* Resolve status of multiple {@link useCancelablePromise} hooks.
|
|
3463
3676
|
*
|
|
3677
|
+
* @remarks
|
|
3464
3678
|
* This is useful for useCancelablePromise composition - when you want to wrap multiple useCancelablePromise hooks in another hook,
|
|
3465
3679
|
* and keep the return value shape of the hook same as for useCancelablePromise.
|
|
3466
3680
|
*
|
|
@@ -3476,9 +3690,9 @@ export declare function resolveUseCancelablePromisesError<TError>(states: UseCan
|
|
|
3476
3690
|
* - ["success", "success"] will be resolved to "success"
|
|
3477
3691
|
*
|
|
3478
3692
|
* @param states - cancelable promise states (useCancelablePromise return values)
|
|
3479
|
-
* @param options -
|
|
3693
|
+
* @param options - specify options for resolving the status
|
|
3480
3694
|
* @returns resolved status
|
|
3481
|
-
* @
|
|
3695
|
+
* @public
|
|
3482
3696
|
*/
|
|
3483
3697
|
export declare function resolveUseCancelablePromisesStatus(cancelablePromisesStates: UseCancelablePromiseState<unknown, unknown>[], options?: {
|
|
3484
3698
|
strategy?: "serial" | "parallel";
|
|
@@ -3525,6 +3739,8 @@ export declare const TranslationsCustomizationContextProvider: React_2.FC<ITrans
|
|
|
3525
3739
|
|
|
3526
3740
|
/**
|
|
3527
3741
|
* This provider is here because of the need for customization of translations.
|
|
3742
|
+
*
|
|
3743
|
+
* @remarks
|
|
3528
3744
|
* If you need to change translations based on some setting flag,
|
|
3529
3745
|
* use this provider at the top of you your react tree.
|
|
3530
3746
|
*
|
|
@@ -3565,9 +3781,11 @@ export declare class UnexpectedSdkError extends GoodDataSdkError {
|
|
|
3565
3781
|
/**
|
|
3566
3782
|
* Convert union type to intersection type.
|
|
3567
3783
|
*
|
|
3568
|
-
*
|
|
3569
|
-
*
|
|
3570
|
-
*
|
|
3784
|
+
* @example
|
|
3785
|
+
* ```
|
|
3786
|
+
* number | string | boolean is resolved as number & string & boolean
|
|
3787
|
+
* Type1 | Type2 | Type3 is resolved as Type1 & Type2 & Type3
|
|
3788
|
+
* ```
|
|
3571
3789
|
*
|
|
3572
3790
|
* @public
|
|
3573
3791
|
*/
|
|
@@ -3583,7 +3801,9 @@ export declare function uriMatch(uri: string): IHeaderPredicate;
|
|
|
3583
3801
|
|
|
3584
3802
|
/**
|
|
3585
3803
|
* Hook to get analytical backend instance provided to {@link BackendProvider}.
|
|
3586
|
-
*
|
|
3804
|
+
*
|
|
3805
|
+
* @remarks
|
|
3806
|
+
* You can set a backend override that will be returned if defined.
|
|
3587
3807
|
* This makes the usage more ergonomic (see the following example).
|
|
3588
3808
|
*
|
|
3589
3809
|
* Note: For a better TypeScript experience without the hassle of undefined values, you can use the {@link useBackendStrict} hook.
|
|
@@ -3604,7 +3824,9 @@ export declare const useBackend: (backend?: IAnalyticalBackend | undefined) => I
|
|
|
3604
3824
|
|
|
3605
3825
|
/**
|
|
3606
3826
|
* Hook to get analytical backend instance provided to {@link BackendProvider}.
|
|
3607
|
-
*
|
|
3827
|
+
*
|
|
3828
|
+
* @remarks
|
|
3829
|
+
* You can set a backend override that will be returned if defined.
|
|
3608
3830
|
* This makes the usage more ergonomic (see the following example).
|
|
3609
3831
|
*
|
|
3610
3832
|
* 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 +3842,32 @@ export declare const useBackend: (backend?: IAnalyticalBackend | undefined) => I
|
|
|
3620
3842
|
*```
|
|
3621
3843
|
*
|
|
3622
3844
|
* @param backend - backend to use instead of context value. If undefined, the context value is used.
|
|
3623
|
-
* @param context -
|
|
3845
|
+
* @param context - provide context to improve error message in raised invariant (e.g. parent hook name).
|
|
3624
3846
|
* @public
|
|
3625
3847
|
*/
|
|
3626
3848
|
export declare const useBackendStrict: (backend?: IAnalyticalBackend | undefined, context?: string) => IAnalyticalBackend;
|
|
3627
3849
|
|
|
3628
3850
|
/**
|
|
3629
|
-
* This hook provides easy way to work with
|
|
3851
|
+
* This hook provides easy way to work with Promises in React components.
|
|
3852
|
+
*
|
|
3853
|
+
* @remarks
|
|
3630
3854
|
* You can:
|
|
3631
3855
|
* - watch it's status (pending/loading/success/error)
|
|
3632
3856
|
* - get it's result/error when the Promise is resolved/rejected,
|
|
3633
3857
|
* - attach convenient callbacks to it
|
|
3634
3858
|
* - be sure, that when the dependency list changes, result will be still relevant (if previous Promise is still running, it's "canceled").
|
|
3635
3859
|
*
|
|
3636
|
-
*
|
|
3860
|
+
* Note that it's not recommended to use this hook for storing data on the backend
|
|
3861
|
+
* as it does not cancel requests wrapped in these promises
|
|
3862
|
+
* and you have no guarantee about the resolution order of the fired requests.
|
|
3863
|
+
*
|
|
3864
|
+
* @public
|
|
3637
3865
|
*/
|
|
3638
3866
|
export declare function useCancelablePromise<TResult, TError = any>(options: UseCancelablePromiseOptions<TResult, TError>, deps?: DependencyList): UseCancelablePromiseState<TResult, TError>;
|
|
3639
3867
|
|
|
3640
3868
|
/**
|
|
3641
3869
|
* Callbacks for {@link useCancelablePromise} hook
|
|
3642
|
-
* @
|
|
3870
|
+
* @public
|
|
3643
3871
|
*/
|
|
3644
3872
|
export declare type UseCancelablePromiseCallbacks<TResult, TError> = {
|
|
3645
3873
|
/**
|
|
@@ -3655,7 +3883,7 @@ export declare type UseCancelablePromiseCallbacks<TResult, TError> = {
|
|
|
3655
3883
|
*/
|
|
3656
3884
|
onCancel?: () => void;
|
|
3657
3885
|
/**
|
|
3658
|
-
*
|
|
3886
|
+
* onSuccess is fired whenever the promise is fulfilled
|
|
3659
3887
|
*/
|
|
3660
3888
|
onSuccess?: (result: TResult) => void;
|
|
3661
3889
|
/**
|
|
@@ -3666,7 +3894,7 @@ export declare type UseCancelablePromiseCallbacks<TResult, TError> = {
|
|
|
3666
3894
|
|
|
3667
3895
|
/**
|
|
3668
3896
|
* Indicates error state for {@link useCancelablePromise} hook
|
|
3669
|
-
* @
|
|
3897
|
+
* @public
|
|
3670
3898
|
*/
|
|
3671
3899
|
export declare type UseCancelablePromiseErrorState<TError> = {
|
|
3672
3900
|
result: undefined;
|
|
@@ -3676,7 +3904,7 @@ export declare type UseCancelablePromiseErrorState<TError> = {
|
|
|
3676
3904
|
|
|
3677
3905
|
/**
|
|
3678
3906
|
* Indicates loading state for {@link useCancelablePromise} hook
|
|
3679
|
-
* @
|
|
3907
|
+
* @public
|
|
3680
3908
|
*/
|
|
3681
3909
|
export declare type UseCancelablePromiseLoadingState = {
|
|
3682
3910
|
result: undefined;
|
|
@@ -3687,7 +3915,7 @@ export declare type UseCancelablePromiseLoadingState = {
|
|
|
3687
3915
|
/**
|
|
3688
3916
|
* Options for the {@link useCancelablePromise} hook.
|
|
3689
3917
|
*
|
|
3690
|
-
* @
|
|
3918
|
+
* @public
|
|
3691
3919
|
*/
|
|
3692
3920
|
export declare type UseCancelablePromiseOptions<TResult, TError> = UseCancelablePromiseCallbacks<TResult, TError> & {
|
|
3693
3921
|
promise: (() => Promise<TResult>) | undefined | null;
|
|
@@ -3695,7 +3923,7 @@ export declare type UseCancelablePromiseOptions<TResult, TError> = UseCancelable
|
|
|
3695
3923
|
|
|
3696
3924
|
/**
|
|
3697
3925
|
* Indicates pending state for {@link useCancelablePromise} hook
|
|
3698
|
-
* @
|
|
3926
|
+
* @public
|
|
3699
3927
|
*/
|
|
3700
3928
|
export declare type UseCancelablePromisePendingState = {
|
|
3701
3929
|
result: undefined;
|
|
@@ -3705,19 +3933,19 @@ export declare type UseCancelablePromisePendingState = {
|
|
|
3705
3933
|
|
|
3706
3934
|
/**
|
|
3707
3935
|
* Indicates the current state of {@link useCancelablePromise} hook
|
|
3708
|
-
* @
|
|
3936
|
+
* @public
|
|
3709
3937
|
*/
|
|
3710
3938
|
export declare type UseCancelablePromiseState<TResult, TError> = UseCancelablePromisePendingState | UseCancelablePromiseLoadingState | UseCancelablePromiseErrorState<TError> | UseCancelablePromiseSuccessState<TResult>;
|
|
3711
3939
|
|
|
3712
3940
|
/**
|
|
3713
3941
|
* Indicates the current state of the promise inside {@link useCancelablePromise} hook
|
|
3714
|
-
* @
|
|
3942
|
+
* @public
|
|
3715
3943
|
*/
|
|
3716
3944
|
export declare type UseCancelablePromiseStatus = "success" | "error" | "loading" | "pending";
|
|
3717
3945
|
|
|
3718
3946
|
/**
|
|
3719
3947
|
* Indicates success state for {@link useCancelablePromise} hook
|
|
3720
|
-
* @
|
|
3948
|
+
* @public
|
|
3721
3949
|
*/
|
|
3722
3950
|
export declare type UseCancelablePromiseSuccessState<TResult> = {
|
|
3723
3951
|
result: TResult;
|
|
@@ -3737,6 +3965,13 @@ export declare const useClientWorkspaceError: () => GoodDataSdkError | undefined
|
|
|
3737
3965
|
*/
|
|
3738
3966
|
export declare const useClientWorkspaceIdentifiers: () => IClientWorkspaceIdentifiers;
|
|
3739
3967
|
|
|
3968
|
+
/**
|
|
3969
|
+
* Hook to check if client workspace is initialized.
|
|
3970
|
+
*
|
|
3971
|
+
* @alpha
|
|
3972
|
+
*/
|
|
3973
|
+
export declare const useClientWorkspaceInitialized: () => boolean;
|
|
3974
|
+
|
|
3740
3975
|
/**
|
|
3741
3976
|
* Hook to obtain loading status of the {@link ClientWorkspaceProvider} - "success", "error", "loading" or "pending".
|
|
3742
3977
|
* @alpha
|
|
@@ -3745,7 +3980,9 @@ export declare const useClientWorkspaceStatus: () => UseCancelablePromiseStatus;
|
|
|
3745
3980
|
|
|
3746
3981
|
/**
|
|
3747
3982
|
* React hook to obtain composed placeholder value.
|
|
3748
|
-
*
|
|
3983
|
+
*
|
|
3984
|
+
* @remarks
|
|
3985
|
+
* You can provide custom context for the composed placeholders resolution.
|
|
3749
3986
|
* See {@link IComposedPlaceholder}.
|
|
3750
3987
|
*
|
|
3751
3988
|
* @public
|
|
@@ -3754,10 +3991,12 @@ export declare function useComposedPlaceholder<TContext, TPlaceholder extends IC
|
|
|
3754
3991
|
|
|
3755
3992
|
/**
|
|
3756
3993
|
* This hook provides easy way to export data in your preferred format (csv/xlsx/raw) for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
|
|
3994
|
+
*
|
|
3995
|
+
* @remarks
|
|
3757
3996
|
* As a result, you will receive a string with uri, so you can easily create a download link.
|
|
3758
3997
|
* Be aware that execution is re-executed only on dependency list change, not on execution/exportConfig/callbacks change.
|
|
3759
3998
|
*
|
|
3760
|
-
* @
|
|
3999
|
+
* @public
|
|
3761
4000
|
*/
|
|
3762
4001
|
export declare function useDataExport({ execution, exportConfig, onCancel, onError, onLoading, onPending, onSuccess, }: {
|
|
3763
4002
|
execution: IPreparedExecution | undefined | null;
|
|
@@ -3766,21 +4005,24 @@ export declare function useDataExport({ execution, exportConfig, onCancel, onErr
|
|
|
3766
4005
|
|
|
3767
4006
|
/**
|
|
3768
4007
|
* Callbacks for useDataExport hook
|
|
3769
|
-
* @
|
|
4008
|
+
* @public
|
|
3770
4009
|
*/
|
|
3771
4010
|
export declare type UseDataExportCallbacks = UseCancelablePromiseCallbacks<string, GoodDataSdkError>;
|
|
3772
4011
|
|
|
3773
4012
|
/**
|
|
3774
4013
|
* Indicates current state of useDataExport hook
|
|
3775
|
-
* @
|
|
4014
|
+
* @public
|
|
3776
4015
|
*/
|
|
3777
4016
|
export declare type UseDataExportState = UseCancelablePromiseState<string, GoodDataSdkError>;
|
|
3778
4017
|
|
|
3779
4018
|
/**
|
|
3780
4019
|
* This hook provides easy way to get data for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
|
|
4020
|
+
*
|
|
4021
|
+
* @remarks
|
|
3781
4022
|
* You can use it to create custom visualizations on top of GoodData platform.
|
|
3782
4023
|
* Be aware that execution is re-executed only on dependency list change, not on execution/window/callbacks change.
|
|
3783
4024
|
*
|
|
4025
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3784
4026
|
* @beta
|
|
3785
4027
|
*/
|
|
3786
4028
|
export declare function useDataView({ execution, window, onCancel, onError, onLoading, onPending, onSuccess, }: {
|
|
@@ -3790,20 +4032,25 @@ export declare function useDataView({ execution, window, onCancel, onError, onLo
|
|
|
3790
4032
|
|
|
3791
4033
|
/**
|
|
3792
4034
|
* Callbacks for useDataView hook
|
|
4035
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3793
4036
|
* @beta
|
|
3794
4037
|
*/
|
|
3795
4038
|
export declare type UseDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
|
|
3796
4039
|
|
|
3797
4040
|
/**
|
|
3798
4041
|
* Indicates current state of useDataView hook
|
|
4042
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3799
4043
|
* @beta
|
|
3800
4044
|
*/
|
|
3801
4045
|
export declare type UseDataViewState = UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
3802
4046
|
|
|
3803
4047
|
/**
|
|
3804
4048
|
* This hook provides a simplified interface for creating executions.
|
|
4049
|
+
*
|
|
4050
|
+
* @remarks
|
|
3805
4051
|
* It builds the execution on top of the backend passed to the BackendProvider, and workspace passed to the WorkspaceProvider.
|
|
3806
4052
|
*
|
|
4053
|
+
* @deprecated use {@link useExecutionDataView} instead
|
|
3807
4054
|
* @beta
|
|
3808
4055
|
*/
|
|
3809
4056
|
export declare function useExecution(config: IUseExecutionConfig): IPreparedExecution;
|
|
@@ -3811,16 +4058,30 @@ export declare function useExecution(config: IUseExecutionConfig): IPreparedExec
|
|
|
3811
4058
|
/**
|
|
3812
4059
|
* React hook to get data for a specific execution.
|
|
3813
4060
|
*
|
|
3814
|
-
* @
|
|
4061
|
+
* @public
|
|
4062
|
+
*/
|
|
4063
|
+
export declare function useExecutionDataView(config: IUseExecutionDataViewConfig & UseExecutionDataViewCallbacks, deps?: React.DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
4064
|
+
|
|
4065
|
+
/**
|
|
4066
|
+
* Callbacks for {@link useExecutionDataView} hook.
|
|
4067
|
+
*
|
|
4068
|
+
* @public
|
|
3815
4069
|
*/
|
|
3816
|
-
export declare
|
|
4070
|
+
export declare type UseExecutionDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
|
|
3817
4071
|
|
|
3818
4072
|
/**
|
|
3819
4073
|
* React hook to get data for a specific insight.
|
|
3820
4074
|
*
|
|
3821
|
-
* @
|
|
4075
|
+
* @public
|
|
4076
|
+
*/
|
|
4077
|
+
export declare function useInsightDataView(config: IUseInsightDataViewConfig & UseInsightDataViewCallbacks, deps?: React.DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
4078
|
+
|
|
4079
|
+
/**
|
|
4080
|
+
* Callbacks for {@link useInsightDataView} hook.
|
|
4081
|
+
*
|
|
4082
|
+
* @public
|
|
3822
4083
|
*/
|
|
3823
|
-
export declare
|
|
4084
|
+
export declare type UseInsightDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
|
|
3824
4085
|
|
|
3825
4086
|
/**
|
|
3826
4087
|
* Hook for getting data from paged resource
|
|
@@ -3830,6 +4091,8 @@ export declare function usePagedResource<TParams, TItem>(resourceFactory: (param
|
|
|
3830
4091
|
|
|
3831
4092
|
/**
|
|
3832
4093
|
* React hook to obtain/set placeholder value.
|
|
4094
|
+
*
|
|
4095
|
+
* @remarks
|
|
3833
4096
|
* See {@link IPlaceholder}.
|
|
3834
4097
|
*
|
|
3835
4098
|
* Note: When placeholder is not provided, setting its value will result in the error.
|
|
@@ -3843,6 +4106,8 @@ PlaceholderValue<T> | undefined,
|
|
|
3843
4106
|
|
|
3844
4107
|
/**
|
|
3845
4108
|
* React hook to obtain/set multiple placeholder values at once.
|
|
4109
|
+
*
|
|
4110
|
+
* @remarks
|
|
3846
4111
|
* This is useful to perform placeholders atomic change.
|
|
3847
4112
|
* See {@link IPlaceholder}.
|
|
3848
4113
|
* @public
|
|
@@ -3859,7 +4124,9 @@ export declare const usePrevious: <T>(props: T) => T;
|
|
|
3859
4124
|
|
|
3860
4125
|
/**
|
|
3861
4126
|
* React hook that resolves multiple value(s) that can possibly contain also placeholder(s) to actual value(s).
|
|
3862
|
-
*
|
|
4127
|
+
*
|
|
4128
|
+
* @remarks
|
|
4129
|
+
* You can provide custom context for the composed placeholders resolution.
|
|
3863
4130
|
*
|
|
3864
4131
|
* @public
|
|
3865
4132
|
*/
|
|
@@ -3867,7 +4134,9 @@ export declare function useResolveValuesWithPlaceholders<T extends any[], C>(val
|
|
|
3867
4134
|
|
|
3868
4135
|
/**
|
|
3869
4136
|
* React hook that resolves any value(s) that can possibly contain also placeholder(s) to actual value(s).
|
|
3870
|
-
*
|
|
4137
|
+
*
|
|
4138
|
+
* @remarks
|
|
4139
|
+
* You can provide custom context for the composed placeholders resolution.
|
|
3871
4140
|
*
|
|
3872
4141
|
* @public
|
|
3873
4142
|
*/
|
|
@@ -3875,7 +4144,9 @@ export declare function useResolveValueWithPlaceholders<T, C>(value: T, resoluti
|
|
|
3875
4144
|
|
|
3876
4145
|
/**
|
|
3877
4146
|
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
3878
|
-
*
|
|
4147
|
+
*
|
|
4148
|
+
* @remarks
|
|
4149
|
+
* You can set a workspace override that will be returned if defined.
|
|
3879
4150
|
* This makes the usage more ergonomic (see the following example).
|
|
3880
4151
|
*
|
|
3881
4152
|
* Note: For a better TypeScript experience without the hassle of undefined values, you can use the {@link useWorkspaceStrict} hook.
|
|
@@ -3896,7 +4167,9 @@ export declare const useWorkspace: (workspace?: string | undefined) => string |
|
|
|
3896
4167
|
|
|
3897
4168
|
/**
|
|
3898
4169
|
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
3899
|
-
*
|
|
4170
|
+
*
|
|
4171
|
+
* @remarks
|
|
4172
|
+
* You can set a workspace override that will be returned if defined.
|
|
3900
4173
|
* This makes the usage more ergonomic (see the following example).
|
|
3901
4174
|
*
|
|
3902
4175
|
* Note: Note: If you do not provide a workspace identifier to {@link WorkspaceProvider} or as a parameter for this hook,
|
|
@@ -3912,7 +4185,7 @@ export declare const useWorkspace: (workspace?: string | undefined) => string |
|
|
|
3912
4185
|
* ```
|
|
3913
4186
|
*
|
|
3914
4187
|
* @param workspace - workspace to use instead of context value. If undefined, the context value is used.
|
|
3915
|
-
* @param context -
|
|
4188
|
+
* @param context - provide context to improve error message in raised invariant (e.g. parent hook name).
|
|
3916
4189
|
* @public
|
|
3917
4190
|
*/
|
|
3918
4191
|
export declare const useWorkspaceStrict: (workspace?: string | undefined, context?: string) => string;
|