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