@gooddata/sdk-ui 8.10.0-alpha.3 → 8.10.0-alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/errors/GoodDataSdkError.d.ts +4 -1
- package/dist/base/errors/GoodDataSdkError.d.ts.map +1 -1
- package/dist/base/errors/GoodDataSdkError.js +5 -2
- package/dist/base/errors/GoodDataSdkError.js.map +1 -1
- package/dist/base/errors/errorHandling.d.ts +5 -3
- package/dist/base/errors/errorHandling.d.ts.map +1 -1
- package/dist/base/errors/errorHandling.js +6 -4
- package/dist/base/errors/errorHandling.js.map +1 -1
- package/dist/base/headerMatching/HeaderPredicate.d.ts +5 -1
- package/dist/base/headerMatching/HeaderPredicate.d.ts.map +1 -1
- package/dist/base/headerMatching/HeaderPredicate.js.map +1 -1
- package/dist/base/headerMatching/HeaderPredicateFactory.d.ts +1 -0
- package/dist/base/headerMatching/HeaderPredicateFactory.d.ts.map +1 -1
- package/dist/base/headerMatching/HeaderPredicateFactory.js +1 -0
- package/dist/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
- package/dist/base/headerMatching/MappingHeader.d.ts +2 -0
- package/dist/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/dist/base/headerMatching/MappingHeader.js +1 -1
- 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/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +4 -0
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +1 -1
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +2 -0
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
- package/dist/base/localization/bundles/de-DE.json +12 -1
- package/dist/base/localization/bundles/en-US.json +29 -9
- package/dist/base/localization/bundles/es-ES.json +12 -1
- package/dist/base/localization/bundles/fr-FR.json +12 -1
- package/dist/base/localization/bundles/ja-JP.json +12 -1
- package/dist/base/localization/bundles/nl-NL.json +12 -1
- package/dist/base/localization/bundles/pt-BR.json +12 -1
- package/dist/base/localization/bundles/pt-PT.json +12 -1
- package/dist/base/localization/bundles/ru-RU.json +12 -1
- package/dist/base/localization/bundles/zh-Hans.json +12 -1
- package/dist/base/react/BackendContext.d.ts +4 -0
- package/dist/base/react/BackendContext.d.ts.map +1 -1
- package/dist/base/react/BackendContext.js +5 -1
- package/dist/base/react/BackendContext.js.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +4 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +1 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +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 +4 -0
- package/dist/base/react/WorkspaceContext.d.ts.map +1 -1
- package/dist/base/react/WorkspaceContext.js +5 -1
- package/dist/base/react/WorkspaceContext.js.map +1 -1
- package/dist/base/react/placeholders/base.d.ts +75 -41
- package/dist/base/react/placeholders/base.d.ts.map +1 -1
- package/dist/base/react/placeholders/base.js +1 -1
- package/dist/base/react/placeholders/base.js.map +1 -1
- package/dist/base/react/placeholders/factory.d.ts +4 -2
- package/dist/base/react/placeholders/factory.d.ts.map +1 -1
- package/dist/base/react/placeholders/factory.js +1 -1
- package/dist/base/react/placeholders/factory.js.map +1 -1
- package/dist/base/react/placeholders/hooks.d.ts +8 -0
- package/dist/base/react/placeholders/hooks.d.ts.map +1 -1
- package/dist/base/react/placeholders/hooks.js +9 -1
- package/dist/base/react/placeholders/hooks.js.map +1 -1
- package/dist/base/react/useCancelablePromise.d.ts +2 -0
- package/dist/base/react/useCancelablePromise.d.ts.map +1 -1
- package/dist/base/react/useCancelablePromise.js +3 -1
- package/dist/base/react/useCancelablePromise.js.map +1 -1
- package/dist/base/react/useCancelablePromiseUtils.d.ts +2 -0
- package/dist/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
- package/dist/base/react/useCancelablePromiseUtils.js +3 -1
- package/dist/base/react/useCancelablePromiseUtils.js.map +1 -1
- package/dist/base/results/dataAccess.d.ts +29 -8
- package/dist/base/results/dataAccess.d.ts.map +1 -1
- package/dist/base/results/dataAccessConfig.d.ts +4 -1
- 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 +8 -2
- package/dist/base/results/facade.d.ts.map +1 -1
- package/dist/base/results/facade.js +9 -3
- package/dist/base/results/facade.js.map +1 -1
- package/dist/base/results/internal/dataAccessDigest.d.ts +1 -1
- package/dist/base/results/internal/dataAccessDigest.js +1 -1
- package/dist/base/results/internal/dataAccessImpl.d.ts +1 -1
- package/dist/base/results/internal/dataAccessImpl.js +2 -2
- package/dist/base/vis/DrillEvents.d.ts +2 -0
- package/dist/base/vis/DrillEvents.d.ts.map +1 -1
- package/dist/base/vis/DrillEvents.js.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/execution/Execute.d.ts +34 -18
- package/dist/execution/Execute.d.ts.map +1 -1
- package/dist/execution/Execute.js +6 -4
- package/dist/execution/Execute.js.map +1 -1
- package/dist/execution/ExecuteInsight.d.ts +28 -14
- package/dist/execution/ExecuteInsight.d.ts.map +1 -1
- package/dist/execution/ExecuteInsight.js +1 -1
- 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 +8 -5
- package/dist/execution/createExecution.d.ts.map +1 -1
- package/dist/execution/createExecution.js +3 -5
- package/dist/execution/createExecution.js.map +1 -1
- package/dist/execution/useDataExport.d.ts +2 -0
- package/dist/execution/useDataExport.d.ts.map +1 -1
- package/dist/execution/useDataExport.js +2 -0
- package/dist/execution/useDataExport.js.map +1 -1
- package/dist/execution/useDataView.d.ts +2 -0
- package/dist/execution/useDataView.d.ts.map +1 -1
- package/dist/execution/useDataView.js +2 -0
- package/dist/execution/useDataView.js.map +1 -1
- package/dist/execution/useExecution.d.ts +14 -8
- package/dist/execution/useExecution.d.ts.map +1 -1
- package/dist/execution/useExecution.js +2 -0
- package/dist/execution/useExecution.js.map +1 -1
- package/dist/execution/useExecutionDataView.d.ts +15 -9
- package/dist/execution/useExecutionDataView.d.ts.map +1 -1
- package/dist/execution/useExecutionDataView.js.map +1 -1
- package/dist/execution/useInsightDataView.d.ts +10 -5
- package/dist/execution/useInsightDataView.d.ts.map +1 -1
- 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/kpi/Kpi.d.ts +13 -9
- package/dist/kpi/Kpi.d.ts.map +1 -1
- package/dist/kpi/Kpi.js +5 -3
- package/dist/kpi/Kpi.js.map +1 -1
- package/dist/sdk-ui.d.ts +345 -152
- 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 +1 -0
- package/esm/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
- package/esm/base/headerMatching/MappingHeader.d.ts +2 -0
- package/esm/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/esm/base/headerMatching/MappingHeader.js +1 -1
- 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/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +4 -0
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +2 -0
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
- package/esm/base/localization/bundles/de-DE.json +12 -1
- package/esm/base/localization/bundles/en-US.json +29 -9
- package/esm/base/localization/bundles/es-ES.json +12 -1
- package/esm/base/localization/bundles/fr-FR.json +12 -1
- package/esm/base/localization/bundles/ja-JP.json +12 -1
- package/esm/base/localization/bundles/nl-NL.json +12 -1
- package/esm/base/localization/bundles/pt-BR.json +12 -1
- package/esm/base/localization/bundles/pt-PT.json +12 -1
- package/esm/base/localization/bundles/ru-RU.json +12 -1
- package/esm/base/localization/bundles/zh-Hans.json +12 -1
- package/esm/base/react/BackendContext.d.ts +4 -0
- package/esm/base/react/BackendContext.d.ts.map +1 -1
- package/esm/base/react/BackendContext.js +5 -1
- package/esm/base/react/BackendContext.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +4 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +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 +4 -0
- package/esm/base/react/WorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/WorkspaceContext.js +5 -1
- package/esm/base/react/WorkspaceContext.js.map +1 -1
- package/esm/base/react/placeholders/base.d.ts +75 -41
- package/esm/base/react/placeholders/base.d.ts.map +1 -1
- package/esm/base/react/placeholders/base.js +1 -1
- package/esm/base/react/placeholders/base.js.map +1 -1
- package/esm/base/react/placeholders/factory.d.ts +4 -2
- package/esm/base/react/placeholders/factory.d.ts.map +1 -1
- package/esm/base/react/placeholders/factory.js +1 -1
- package/esm/base/react/placeholders/factory.js.map +1 -1
- package/esm/base/react/placeholders/hooks.d.ts +8 -0
- package/esm/base/react/placeholders/hooks.d.ts.map +1 -1
- package/esm/base/react/placeholders/hooks.js +9 -1
- package/esm/base/react/placeholders/hooks.js.map +1 -1
- package/esm/base/react/useCancelablePromise.d.ts +2 -0
- package/esm/base/react/useCancelablePromise.d.ts.map +1 -1
- package/esm/base/react/useCancelablePromise.js +3 -1
- package/esm/base/react/useCancelablePromise.js.map +1 -1
- package/esm/base/react/useCancelablePromiseUtils.d.ts +2 -0
- package/esm/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
- package/esm/base/react/useCancelablePromiseUtils.js +3 -1
- package/esm/base/react/useCancelablePromiseUtils.js.map +1 -1
- package/esm/base/results/dataAccess.d.ts +29 -8
- package/esm/base/results/dataAccess.d.ts.map +1 -1
- package/esm/base/results/dataAccessConfig.d.ts +4 -1
- 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 +8 -2
- package/esm/base/results/facade.d.ts.map +1 -1
- package/esm/base/results/facade.js +9 -3
- package/esm/base/results/facade.js.map +1 -1
- package/esm/base/results/internal/dataAccessDigest.d.ts +1 -1
- package/esm/base/results/internal/dataAccessDigest.js +1 -1
- package/esm/base/results/internal/dataAccessImpl.d.ts +1 -1
- package/esm/base/results/internal/dataAccessImpl.js +2 -2
- package/esm/base/vis/DrillEvents.d.ts +2 -0
- package/esm/base/vis/DrillEvents.d.ts.map +1 -1
- package/esm/base/vis/DrillEvents.js.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/execution/Execute.d.ts +34 -18
- package/esm/execution/Execute.d.ts.map +1 -1
- package/esm/execution/Execute.js +6 -4
- package/esm/execution/Execute.js.map +1 -1
- package/esm/execution/ExecuteInsight.d.ts +28 -14
- package/esm/execution/ExecuteInsight.d.ts.map +1 -1
- package/esm/execution/ExecuteInsight.js +1 -1
- 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 +8 -5
- package/esm/execution/createExecution.d.ts.map +1 -1
- package/esm/execution/createExecution.js +4 -6
- package/esm/execution/createExecution.js.map +1 -1
- package/esm/execution/useDataExport.d.ts +2 -0
- package/esm/execution/useDataExport.d.ts.map +1 -1
- package/esm/execution/useDataExport.js +2 -0
- package/esm/execution/useDataExport.js.map +1 -1
- package/esm/execution/useDataView.d.ts +2 -0
- package/esm/execution/useDataView.d.ts.map +1 -1
- package/esm/execution/useDataView.js +2 -0
- package/esm/execution/useDataView.js.map +1 -1
- package/esm/execution/useExecution.d.ts +14 -8
- package/esm/execution/useExecution.d.ts.map +1 -1
- package/esm/execution/useExecution.js +2 -0
- package/esm/execution/useExecution.js.map +1 -1
- package/esm/execution/useExecutionDataView.d.ts +15 -9
- package/esm/execution/useExecutionDataView.d.ts.map +1 -1
- package/esm/execution/useExecutionDataView.js.map +1 -1
- package/esm/execution/useInsightDataView.d.ts +10 -5
- package/esm/execution/useInsightDataView.d.ts.map +1 -1
- 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/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/package.json +7 -7
package/dist/sdk-ui.d.ts
CHANGED
|
@@ -73,8 +73,10 @@ import { WrappedComponentProps } from 'react-intl';
|
|
|
73
73
|
/**
|
|
74
74
|
* Generate all possible combinations of arrays signatures for the union type.
|
|
75
75
|
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```
|
|
78
|
+
* IAttribute | IMeasure is resolved as IAttribute[] | IMeasure[] | (IAttribute | IMeasure)[]
|
|
79
|
+
* ```
|
|
78
80
|
*
|
|
79
81
|
* @public
|
|
80
82
|
*/
|
|
@@ -96,10 +98,12 @@ export declare type AnyPlaceholder<T = any> = IPlaceholder<T> | IComposedPlaceho
|
|
|
96
98
|
/**
|
|
97
99
|
* Generate all possible combinations of placeholder signatures for the union type.
|
|
98
100
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```
|
|
103
|
+
* IAttribute | IMeasure
|
|
104
|
+
* is resolved as
|
|
105
|
+
* AnyPlaceholder\<IAttribute\> | AnyPlaceholder\<IMeasure\> | AnyPlaceholder\<IAttribute | IMeasure\>
|
|
106
|
+
* ```
|
|
103
107
|
* @public
|
|
104
108
|
*/
|
|
105
109
|
export declare type AnyPlaceholderOf<T> = AnyPlaceholder<T> | PlaceholderOf<T>;
|
|
@@ -137,9 +141,10 @@ export declare class ArithmeticMeasureTitleFactory {
|
|
|
137
141
|
/**
|
|
138
142
|
* Wrap each member of union type in the array.
|
|
139
143
|
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```
|
|
146
|
+
* IAttribute | IMeasure | IFilter is resolved as IAttribute[] | IMeasure[] | IFilter[]
|
|
147
|
+
* ```
|
|
143
148
|
* @public
|
|
144
149
|
*/
|
|
145
150
|
export declare type ArrayOf<T> = T extends any ? T[] : never;
|
|
@@ -252,11 +257,13 @@ export declare class CancelledSdkError extends GoodDataSdkError {
|
|
|
252
257
|
}
|
|
253
258
|
|
|
254
259
|
/**
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
* example
|
|
260
|
+
* Tool that exposes API that to look up measures, attributes, visualizations and other metadata elements
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* ```
|
|
258
264
|
* import catalog from './catalog.json';
|
|
259
265
|
* const C = new CatalogHelper(catalog);
|
|
266
|
+
* ```
|
|
260
267
|
*
|
|
261
268
|
* @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
|
|
262
269
|
* @public
|
|
@@ -339,8 +346,10 @@ export declare function composedFromUri(uri: string): IHeaderPredicate;
|
|
|
339
346
|
/**
|
|
340
347
|
* Get composed placeholder resolution context type.
|
|
341
348
|
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
349
|
+
* @example
|
|
350
|
+
* ```
|
|
351
|
+
* IComposedPlaceholder\<any, any, IResolutionContext\> is resolved as IResolutionContext
|
|
352
|
+
* ```
|
|
344
353
|
*
|
|
345
354
|
* @public
|
|
346
355
|
*/
|
|
@@ -352,9 +361,11 @@ export declare type ComposedPlaceholderResolutionContext<T> = T extends ICompose
|
|
|
352
361
|
export declare function convertDrillableItemsToPredicates(drillableItems: ExplicitDrill[]): IHeaderPredicate[];
|
|
353
362
|
|
|
354
363
|
/**
|
|
355
|
-
* Converts any error into an instance of {@link GoodDataSdkError}.
|
|
356
|
-
*
|
|
357
|
-
*
|
|
364
|
+
* Converts any error into an instance of {@link GoodDataSdkError}.
|
|
365
|
+
*
|
|
366
|
+
* @remarks
|
|
367
|
+
* The conversion logic right now focuses mostly on errors that are contractually specified in Analytical Backend SPI.
|
|
368
|
+
* All other unexpected errors are wrapped into an exception with the generic 'UNKNOWN_ERROR' code.
|
|
358
369
|
*
|
|
359
370
|
* Instances of GoodDataSdkError are returned as-is and are not subject to any processing.
|
|
360
371
|
*
|
|
@@ -390,7 +401,10 @@ export declare function createIntlMock(customMessages?: {}, locale?: string): In
|
|
|
390
401
|
|
|
391
402
|
/**
|
|
392
403
|
* Creates value formatter that uses `@gooddata/numberjs` to format raw measure values according
|
|
393
|
-
* to the format string.
|
|
404
|
+
* to the format string.
|
|
405
|
+
*
|
|
406
|
+
* @remarks
|
|
407
|
+
* By default, the format will strip away all the coloring information and
|
|
394
408
|
* just return the value as string.
|
|
395
409
|
*
|
|
396
410
|
* @param separators - number separators to use. if not specified then `numberjs` defaults will be used
|
|
@@ -416,6 +430,7 @@ export declare type DataAccessConfig = {
|
|
|
416
430
|
* Data Point represents a value computed for particular data series, possibly sliced for additional
|
|
417
431
|
* set of attribute elements OR possibly being a total.
|
|
418
432
|
*
|
|
433
|
+
* @remarks
|
|
419
434
|
* Technically, DataPoint is the raw data value stored in the data view decorated with all the metadata
|
|
420
435
|
* there exists about that value.
|
|
421
436
|
*
|
|
@@ -569,8 +584,11 @@ export declare type DataSliceDescriptorMethods = {
|
|
|
569
584
|
};
|
|
570
585
|
|
|
571
586
|
/**
|
|
572
|
-
* Data slice name is specified using the result headers.
|
|
573
|
-
*
|
|
587
|
+
* Data slice name is specified using the result headers.
|
|
588
|
+
*
|
|
589
|
+
* @remarks
|
|
590
|
+
* The headers describe attribute elements (title+ID) for the slice. The slice MAY be for a total calculation,
|
|
591
|
+
* in which case the last header will be for the
|
|
574
592
|
* total.
|
|
575
593
|
*
|
|
576
594
|
* @public
|
|
@@ -611,7 +629,10 @@ export declare class DataTooLargeToDisplaySdkError extends GoodDataSdkError {
|
|
|
611
629
|
}
|
|
612
630
|
|
|
613
631
|
/**
|
|
614
|
-
*
|
|
632
|
+
* Wrapper for {@link @gooddata/sdk-backend-spi#IDataView}.
|
|
633
|
+
*
|
|
634
|
+
* @remarks
|
|
635
|
+
* This provides various convenience methods to work with data and metadata stored inside
|
|
615
636
|
* the provided instance of {@link @gooddata/sdk-backend-spi#IDataView}.
|
|
616
637
|
*
|
|
617
638
|
* The facade keeps an ephemeral state - such as calculated indexes on top of the headers in the {@link @gooddata/sdk-backend-spi#IDataView} -
|
|
@@ -642,7 +663,10 @@ export declare class DataViewFacade {
|
|
|
642
663
|
*/
|
|
643
664
|
static for(dataView: IDataView): DataViewFacade;
|
|
644
665
|
/**
|
|
645
|
-
* Creates a DataViewFacade with provided execution result.
|
|
666
|
+
* Creates a DataViewFacade with provided execution result.
|
|
667
|
+
*
|
|
668
|
+
* @remarks
|
|
669
|
+
* Only use this when execution result is unable to load data and some
|
|
646
670
|
* form of DataViewFacade is still needed. Beware that the calculated data view is empty after the creation. Only execution
|
|
647
671
|
* definition and result is defined.
|
|
648
672
|
*
|
|
@@ -793,8 +817,10 @@ export declare const ErrorCodes: {
|
|
|
793
817
|
};
|
|
794
818
|
|
|
795
819
|
/**
|
|
796
|
-
*
|
|
797
|
-
*
|
|
820
|
+
* Component that renders a default error message.
|
|
821
|
+
*
|
|
822
|
+
* @remarks
|
|
823
|
+
* See {@link http://sdk.gooddata.com/gooddata-ui/docs/error_component.html | ErrorComponent}
|
|
798
824
|
*
|
|
799
825
|
* @public
|
|
800
826
|
*/
|
|
@@ -804,8 +830,10 @@ export declare class ErrorComponent extends React_2.Component<IErrorProps> {
|
|
|
804
830
|
}
|
|
805
831
|
|
|
806
832
|
/**
|
|
807
|
-
* The executor provides a more curated experience to obtain and work with data from backends.
|
|
808
|
-
*
|
|
833
|
+
* The executor provides a more curated experience to obtain and work with data from backends.
|
|
834
|
+
*
|
|
835
|
+
* @remarks
|
|
836
|
+
* It is aligned with the `DataAccess` infrastructure which exposes the underlying data as data series that can be
|
|
809
837
|
* optionally sliced by additional attributes.
|
|
810
838
|
*
|
|
811
839
|
* Once the executor finishes, the {@link DataViewFacade.data} method will expose the data as series and
|
|
@@ -813,7 +841,7 @@ export declare class ErrorComponent extends React_2.Component<IErrorProps> {
|
|
|
813
841
|
* Note that if the resulting data is empty this will NOT throw a NoDataError. It is the responsibility
|
|
814
842
|
* of the child component to handle that if they need to.
|
|
815
843
|
*
|
|
816
|
-
*
|
|
844
|
+
* See {@link IDataAccessMethods} for additional documentation
|
|
817
845
|
* @public
|
|
818
846
|
*/
|
|
819
847
|
export declare const Execute: (props: IExecuteProps) => JSX.Element;
|
|
@@ -827,6 +855,8 @@ export declare const ExecuteInsight: React_2.ComponentType<IExecuteInsightProps>
|
|
|
827
855
|
|
|
828
856
|
/**
|
|
829
857
|
* Drillable item reference or predicate that enables insight / kpi drilling if it matches some attribute or measure of the insight / kpi.
|
|
858
|
+
*
|
|
859
|
+
* @remarks
|
|
830
860
|
* You can use {@link @gooddata/sdk-ui#HeaderPredicates} factory functions to create predicates,
|
|
831
861
|
* or specify reference to the identifier / uri of the target attribute / measure using {@link @gooddata/sdk-ui#IDrillableItem} definition.
|
|
832
862
|
*
|
|
@@ -887,14 +917,17 @@ export declare function fireDrillEvent(drillEventFunction: IDrillEventCallback,
|
|
|
887
917
|
|
|
888
918
|
/**
|
|
889
919
|
* Flatten array type.
|
|
920
|
+
*
|
|
921
|
+
* @remarks
|
|
890
922
|
* If the type is not an array, return the same type.
|
|
891
923
|
* Works only for 1 level, nested array types are not recursively flattened.
|
|
892
924
|
*
|
|
893
|
-
*
|
|
894
|
-
*
|
|
895
|
-
*
|
|
896
|
-
*
|
|
897
|
-
*
|
|
925
|
+
* @example
|
|
926
|
+
* ```
|
|
927
|
+
* number[] is resolved as number
|
|
928
|
+
* string[][] is resolved as string[]
|
|
929
|
+
* string is resolved as string
|
|
930
|
+
* ```
|
|
898
931
|
* @public
|
|
899
932
|
*/
|
|
900
933
|
export declare type Flatten<T> = T extends Array<infer A> ? A : T;
|
|
@@ -998,7 +1031,10 @@ export declare abstract class GoodDataSdkError extends Error {
|
|
|
998
1031
|
*/
|
|
999
1032
|
getCause(): any | undefined;
|
|
1000
1033
|
/**
|
|
1001
|
-
* Error code for this exception.
|
|
1034
|
+
* Error code for this exception.
|
|
1035
|
+
*
|
|
1036
|
+
* @remarks
|
|
1037
|
+
* This can be used to identify exact type of exception.
|
|
1002
1038
|
*/
|
|
1003
1039
|
getErrorCode(): string;
|
|
1004
1040
|
}
|
|
@@ -1162,8 +1198,9 @@ export declare interface IClientWorkspaceIdentifiers {
|
|
|
1162
1198
|
*/
|
|
1163
1199
|
export declare interface IClientWorkspaceProviderCoreProps {
|
|
1164
1200
|
/**
|
|
1165
|
-
*
|
|
1201
|
+
* Specify an instance of the analytical backend instance to work with.
|
|
1166
1202
|
*
|
|
1203
|
+
* @remarks
|
|
1167
1204
|
* Note: if you do not have a BackendProvider above in the component tree, then you MUST specify the backend.
|
|
1168
1205
|
*/
|
|
1169
1206
|
backend?: IAnalyticalBackend;
|
|
@@ -1186,6 +1223,7 @@ export declare interface IClientWorkspaceProviderWithClientAndDataProductProps e
|
|
|
1186
1223
|
/**
|
|
1187
1224
|
* Specify the data product identifier to use to obtain the LCM context.
|
|
1188
1225
|
*
|
|
1226
|
+
* @remarks
|
|
1189
1227
|
* Note: another option is to specify workspace prop, and then data product identifier will be resolved from it.
|
|
1190
1228
|
*/
|
|
1191
1229
|
dataProduct: string;
|
|
@@ -1204,6 +1242,7 @@ export declare interface IClientWorkspaceProviderWithWorkspaceProps extends ICli
|
|
|
1204
1242
|
/**
|
|
1205
1243
|
* Specify the workspace to use to obtain the LCM context.
|
|
1206
1244
|
*
|
|
1245
|
+
* @remarks
|
|
1207
1246
|
* Note: another option is to specify dataProduct and client props, and then workspace will be resolved from them.
|
|
1208
1247
|
*/
|
|
1209
1248
|
workspace: string;
|
|
@@ -1227,6 +1266,8 @@ export declare interface IColorsData {
|
|
|
1227
1266
|
|
|
1228
1267
|
/**
|
|
1229
1268
|
* Represents placeholder composed from other placeholders.
|
|
1269
|
+
*
|
|
1270
|
+
* @remarks
|
|
1230
1271
|
* You can perform computation on top of resolved placeholder values.
|
|
1231
1272
|
* Composed placeholders accepts also other composed placeholders as an input.
|
|
1232
1273
|
*
|
|
@@ -1245,8 +1286,11 @@ export declare interface IComposedPlaceholder<TReturn, TValue extends any[], TCo
|
|
|
1245
1286
|
}
|
|
1246
1287
|
|
|
1247
1288
|
/**
|
|
1248
|
-
* Defines methods to access data in the data view.
|
|
1249
|
-
*
|
|
1289
|
+
* Defines methods to access data in the data view.
|
|
1290
|
+
*
|
|
1291
|
+
* @remarks
|
|
1292
|
+
* These methods and types are recommended in favor of directly accessing the underlying data,
|
|
1293
|
+
* headers and descriptors.
|
|
1250
1294
|
*
|
|
1251
1295
|
* @public
|
|
1252
1296
|
*/
|
|
@@ -1265,6 +1309,7 @@ export declare interface IDataAccessMethods {
|
|
|
1265
1309
|
* Data series is a sequence of data points that are all computed from a single measure, optionally scoped for
|
|
1266
1310
|
* particular attribute elements.
|
|
1267
1311
|
*
|
|
1312
|
+
* @remarks
|
|
1268
1313
|
* In other words, data series allows iterating over two dimensional data view _along_ the dimension which contains
|
|
1269
1314
|
* the measures (via inclusion of MeasureGroupIdentifier).
|
|
1270
1315
|
*
|
|
@@ -1296,7 +1341,10 @@ export declare interface IDataSeries extends DataSeriesDescriptorMethods, Iterab
|
|
|
1296
1341
|
}
|
|
1297
1342
|
|
|
1298
1343
|
/**
|
|
1299
|
-
* An iterable collection of data series.
|
|
1344
|
+
* An iterable collection of data series.
|
|
1345
|
+
*
|
|
1346
|
+
* @remarks
|
|
1347
|
+
* The collection additionally includes basic information about the
|
|
1300
1348
|
* origin of the data series that can be iterated - their number, measures they were calculated from and
|
|
1301
1349
|
* optionally the scoping attributes.
|
|
1302
1350
|
*
|
|
@@ -1310,6 +1358,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1310
1358
|
/**
|
|
1311
1359
|
* Descriptors of measures that are used in the data series.
|
|
1312
1360
|
*
|
|
1361
|
+
* @remarks
|
|
1313
1362
|
* Note that the number of measures MAY differ from number of data series - that is because the data series may be
|
|
1314
1363
|
* created for multiple scopes of each measure (e.g. measure X calculated for attribute element A, then same
|
|
1315
1364
|
* measure calculated for attribute element B etc)
|
|
@@ -1318,6 +1367,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1318
1367
|
/**
|
|
1319
1368
|
* Definitions of measures which were sent to execution and resulted in the data series.
|
|
1320
1369
|
*
|
|
1370
|
+
* @remarks
|
|
1321
1371
|
* Order of appearance matches the order of appearance in the `fromMeasures` array.
|
|
1322
1372
|
*/
|
|
1323
1373
|
readonly fromMeasuresDef: IMeasure[];
|
|
@@ -1329,6 +1379,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1329
1379
|
* Definitions of attributes which were sent to execution and resulted in the data series with scoped
|
|
1330
1380
|
* measure values.
|
|
1331
1381
|
*
|
|
1382
|
+
* @remarks
|
|
1332
1383
|
* Order of apperance matches the order of appreance in the `scopingAttributes` array.
|
|
1333
1384
|
*/
|
|
1334
1385
|
readonly scopingAttributesDef?: IAttribute[];
|
|
@@ -1340,8 +1391,10 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1340
1391
|
*/
|
|
1341
1392
|
allForMeasure(localIdOrMeasure: string | IMeasure): Iterable<IDataSeries>;
|
|
1342
1393
|
/**
|
|
1343
|
-
* Returns first-found data series for the provided measure.
|
|
1344
|
-
*
|
|
1394
|
+
* Returns first-found data series for the provided measure.
|
|
1395
|
+
*
|
|
1396
|
+
* @remarks
|
|
1397
|
+
* This is a 'get-or-die' method and will throw in case data series from the provided measure is not located.
|
|
1345
1398
|
*
|
|
1346
1399
|
* @param localIdOrMeasure - local id of measure or measure object to get local id from
|
|
1347
1400
|
* @returns data series
|
|
@@ -1351,6 +1404,7 @@ export declare interface IDataSeriesCollection extends Iterable<IDataSeries> {
|
|
|
1351
1404
|
/**
|
|
1352
1405
|
* Returns all data series in an array.
|
|
1353
1406
|
*
|
|
1407
|
+
* @remarks
|
|
1354
1408
|
* Note: if you are looking for a subset of measures, always prefer using the first-class methods
|
|
1355
1409
|
* {@link IDataSeriesCollection#allForMeasure} and {@link IDataSeriesCollection#firstForMeasure} in favor of getting the array and filtering yourself.
|
|
1356
1410
|
*
|
|
@@ -1373,6 +1427,7 @@ export declare interface IDataSet {
|
|
|
1373
1427
|
* Data slice is a sequence of data points that are all computed for a particular attribute elements and/or totals but
|
|
1374
1428
|
* different data series.
|
|
1375
1429
|
*
|
|
1430
|
+
* @remarks
|
|
1376
1431
|
* In other words, data slice allows iterating over two dimension data view _across_ the dimension which contains
|
|
1377
1432
|
* the measures.
|
|
1378
1433
|
*
|
|
@@ -1404,7 +1459,10 @@ export declare interface IDataSlice extends DataSliceDescriptorMethods, Iterable
|
|
|
1404
1459
|
}
|
|
1405
1460
|
|
|
1406
1461
|
/**
|
|
1407
|
-
* An iterable collection of data slices.
|
|
1462
|
+
* An iterable collection of data slices.
|
|
1463
|
+
*
|
|
1464
|
+
* @remarks
|
|
1465
|
+
* The collection additionally includes basic information about the
|
|
1408
1466
|
* origin of the data slices that can be iterated - their number and attributes or totals that were used
|
|
1409
1467
|
* for slicing.
|
|
1410
1468
|
*
|
|
@@ -1433,6 +1491,7 @@ export declare interface IDataSliceCollection extends Iterable<IDataSlice> {
|
|
|
1433
1491
|
/**
|
|
1434
1492
|
* Common props for visualization of data computed by the analytical backend.
|
|
1435
1493
|
*
|
|
1494
|
+
* @remarks
|
|
1436
1495
|
* Data visualization contains prepared execution which will return data that needs to be visualized.
|
|
1437
1496
|
*
|
|
1438
1497
|
* @public
|
|
@@ -1671,6 +1730,7 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1671
1730
|
/**
|
|
1672
1731
|
* Backend to execute against.
|
|
1673
1732
|
*
|
|
1733
|
+
* @remarks
|
|
1674
1734
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
1675
1735
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
1676
1736
|
*/
|
|
@@ -1678,6 +1738,7 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1678
1738
|
/**
|
|
1679
1739
|
* Workspace in whose context to perform the execution.
|
|
1680
1740
|
*
|
|
1741
|
+
* @remarks
|
|
1681
1742
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
1682
1743
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
1683
1744
|
*/
|
|
@@ -1687,24 +1748,26 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1687
1748
|
*/
|
|
1688
1749
|
insight: ObjRef;
|
|
1689
1750
|
/**
|
|
1690
|
-
*
|
|
1751
|
+
* Modify sorts on prepared insight execution, before it's executed.
|
|
1691
1752
|
*/
|
|
1692
1753
|
sorts?: ISortItem[] | ((def: IExecutionDefinition, props: IExecuteInsightProps) => ISortItem[]);
|
|
1693
1754
|
/**
|
|
1694
|
-
*
|
|
1755
|
+
* Modify dimensions on prepared insight execution, before it's executed.
|
|
1695
1756
|
*/
|
|
1696
1757
|
dimensions?: IDimension[] | ((def: IExecutionDefinition, props: IExecuteInsightProps) => IDimension[]);
|
|
1697
1758
|
/**
|
|
1698
|
-
*
|
|
1759
|
+
* Modify date formatting on prepared insight execution, before it's executed.
|
|
1699
1760
|
*/
|
|
1700
1761
|
dateFormat?: string | ((def: IExecutionDefinition, props: IExecuteInsightProps) => string);
|
|
1701
1762
|
/**
|
|
1702
|
-
*
|
|
1763
|
+
* Filters to apply on server side.
|
|
1703
1764
|
*/
|
|
1704
1765
|
filters?: INullableFilter[];
|
|
1705
1766
|
/**
|
|
1706
|
-
*
|
|
1707
|
-
*
|
|
1767
|
+
* Name to use for files exported from this component.
|
|
1768
|
+
*
|
|
1769
|
+
* @remarks
|
|
1770
|
+
* If you do not specify this, then the componentName will be used instead.
|
|
1708
1771
|
*
|
|
1709
1772
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
1710
1773
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -1712,16 +1775,21 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1712
1775
|
*/
|
|
1713
1776
|
exportTitle?: string;
|
|
1714
1777
|
/**
|
|
1715
|
-
*
|
|
1716
|
-
*
|
|
1717
|
-
*
|
|
1778
|
+
* Informative name of the component.
|
|
1779
|
+
*
|
|
1780
|
+
* @remarks
|
|
1781
|
+
* This value is sent as telemetry information together with the actual execution request. We recommend to set this
|
|
1782
|
+
* because it can be useful for diagnostic purposes.
|
|
1718
1783
|
*
|
|
1719
1784
|
* Defaults 'Execute'.
|
|
1720
1785
|
*/
|
|
1721
1786
|
componentName?: string;
|
|
1722
1787
|
/**
|
|
1723
1788
|
* Specifies whether `Execute` should trigger execution and loading right after it is
|
|
1724
|
-
* mounted.
|
|
1789
|
+
* mounted.
|
|
1790
|
+
*
|
|
1791
|
+
* @remarks
|
|
1792
|
+
* If not specified defaults to `true`.
|
|
1725
1793
|
*
|
|
1726
1794
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
1727
1795
|
* to trigger the execution and loading.
|
|
@@ -1731,26 +1799,31 @@ export declare interface IExecuteInsightProps extends IWithLoadingEvents<IExecut
|
|
|
1731
1799
|
* Specifies whether `Execute` should load all data from backend or just a particular window - specified by
|
|
1732
1800
|
* offset and size of the window.
|
|
1733
1801
|
*
|
|
1802
|
+
* @remarks
|
|
1734
1803
|
* If not specified, all data will be loaded.
|
|
1735
1804
|
*/
|
|
1736
1805
|
window?: DataViewWindow;
|
|
1737
1806
|
/**
|
|
1738
|
-
* Child component to which rendering is delegated.
|
|
1739
|
-
*
|
|
1807
|
+
* Child component to which rendering is delegated.
|
|
1808
|
+
*
|
|
1809
|
+
* @remarks
|
|
1810
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
1740
1811
|
*
|
|
1741
1812
|
* @param executionResult - execution result, indicating state and/or results
|
|
1742
1813
|
*/
|
|
1743
1814
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
1744
1815
|
/**
|
|
1745
|
-
*
|
|
1816
|
+
* Provide component for rendering of the loading state.
|
|
1746
1817
|
*
|
|
1818
|
+
* @remarks
|
|
1747
1819
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1748
1820
|
* will be called only with a successful result.
|
|
1749
1821
|
*/
|
|
1750
1822
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
1751
1823
|
/**
|
|
1752
|
-
*
|
|
1824
|
+
* Provide component for rendering of the error state.
|
|
1753
1825
|
*
|
|
1826
|
+
* @remarks
|
|
1754
1827
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1755
1828
|
* will be called only with a successful result.
|
|
1756
1829
|
*/
|
|
@@ -1771,6 +1844,7 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1771
1844
|
/**
|
|
1772
1845
|
* Backend to execute against.
|
|
1773
1846
|
*
|
|
1847
|
+
* @remarks
|
|
1774
1848
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
1775
1849
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
1776
1850
|
*/
|
|
@@ -1778,6 +1852,7 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1778
1852
|
/**
|
|
1779
1853
|
* Workspace in whose context to perform the execution.
|
|
1780
1854
|
*
|
|
1855
|
+
* @remarks
|
|
1781
1856
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
1782
1857
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
1783
1858
|
*/
|
|
@@ -1788,28 +1863,30 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1788
1863
|
*/
|
|
1789
1864
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
1790
1865
|
/**
|
|
1791
|
-
*
|
|
1866
|
+
* Slice all data series by elements of these attributes.
|
|
1792
1867
|
*/
|
|
1793
1868
|
slicesBy?: AttributesOrPlaceholders;
|
|
1794
1869
|
/**
|
|
1795
|
-
*
|
|
1870
|
+
* Include these totals among the data slices.
|
|
1796
1871
|
*/
|
|
1797
1872
|
totals?: TotalsOrPlaceholders;
|
|
1798
1873
|
/**
|
|
1799
|
-
*
|
|
1874
|
+
* Filters to apply on server side.
|
|
1800
1875
|
*/
|
|
1801
1876
|
filters?: NullableFiltersOrPlaceholders;
|
|
1802
1877
|
/**
|
|
1803
|
-
*
|
|
1878
|
+
* Sorting to apply on server side.
|
|
1804
1879
|
*/
|
|
1805
1880
|
sortBy?: SortsOrPlaceholders;
|
|
1806
1881
|
/**
|
|
1807
|
-
*
|
|
1882
|
+
* Resolution context for composed placeholders.
|
|
1808
1883
|
*/
|
|
1809
1884
|
placeholdersResolutionContext?: any;
|
|
1810
1885
|
/**
|
|
1811
|
-
*
|
|
1812
|
-
*
|
|
1886
|
+
* Name to use for files exported from this component.
|
|
1887
|
+
*
|
|
1888
|
+
* @remarks
|
|
1889
|
+
* If you do not specify this, then the componentName will be used instead.
|
|
1813
1890
|
*
|
|
1814
1891
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
1815
1892
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -1817,16 +1894,21 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1817
1894
|
*/
|
|
1818
1895
|
exportTitle?: string;
|
|
1819
1896
|
/**
|
|
1820
|
-
*
|
|
1821
|
-
*
|
|
1822
|
-
*
|
|
1897
|
+
* Informative name of the component.
|
|
1898
|
+
*
|
|
1899
|
+
* @remarks
|
|
1900
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
1901
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
1823
1902
|
*
|
|
1824
1903
|
* Defaults 'Execute'.
|
|
1825
1904
|
*/
|
|
1826
1905
|
componentName?: string;
|
|
1827
1906
|
/**
|
|
1828
1907
|
* Specifies whether {@link Execute} should trigger execution and loading right after it is
|
|
1829
|
-
* mounted.
|
|
1908
|
+
* mounted.
|
|
1909
|
+
*
|
|
1910
|
+
* @remarks
|
|
1911
|
+
* If not specified defaults to `true`.
|
|
1830
1912
|
*
|
|
1831
1913
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
1832
1914
|
* to trigger the execution and loading.
|
|
@@ -1836,26 +1918,31 @@ export declare interface IExecuteProps extends IWithLoadingEvents<IExecuteProps>
|
|
|
1836
1918
|
* Specifies whether {@link Execute} should load all data from backend or just a particular window - specified by
|
|
1837
1919
|
* offset and size of the window.
|
|
1838
1920
|
*
|
|
1921
|
+
* @remarks
|
|
1839
1922
|
* If not specified, all data will be loaded.
|
|
1840
1923
|
*/
|
|
1841
1924
|
window?: DataViewWindow;
|
|
1842
1925
|
/**
|
|
1843
|
-
* Child component to which rendering is delegated.
|
|
1844
|
-
*
|
|
1926
|
+
* Child component to which rendering is delegated.
|
|
1927
|
+
*
|
|
1928
|
+
* @remarks
|
|
1929
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
1845
1930
|
*
|
|
1846
1931
|
* @param executionResult - execution result, indicating state and/or results
|
|
1847
1932
|
*/
|
|
1848
1933
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
1849
1934
|
/**
|
|
1850
|
-
*
|
|
1935
|
+
* Provide component for rendering of the loading state.
|
|
1851
1936
|
*
|
|
1937
|
+
* @remarks
|
|
1852
1938
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1853
1939
|
* will be called only with a successful result.
|
|
1854
1940
|
*/
|
|
1855
1941
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
1856
1942
|
/**
|
|
1857
|
-
*
|
|
1943
|
+
* Provide component for rendering of the error state.
|
|
1858
1944
|
*
|
|
1945
|
+
* @remarks
|
|
1859
1946
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
1860
1947
|
* will be called only with a successful result.
|
|
1861
1948
|
*/
|
|
@@ -1872,29 +1959,31 @@ export declare interface IExecutionConfiguration {
|
|
|
1872
1959
|
*/
|
|
1873
1960
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
1874
1961
|
/**
|
|
1875
|
-
*
|
|
1962
|
+
* Slice all data series by elements of these attributes.
|
|
1876
1963
|
*/
|
|
1877
1964
|
slicesBy?: AttributesOrPlaceholders;
|
|
1878
1965
|
/**
|
|
1879
|
-
*
|
|
1966
|
+
* Include these totals among the data slices.
|
|
1880
1967
|
*/
|
|
1881
1968
|
totals?: TotalsOrPlaceholders;
|
|
1882
1969
|
/**
|
|
1883
|
-
*
|
|
1970
|
+
* Filters to apply on server side.
|
|
1884
1971
|
*/
|
|
1885
1972
|
filters?: NullableFiltersOrPlaceholders;
|
|
1886
1973
|
/**
|
|
1887
|
-
*
|
|
1974
|
+
* Sorting to apply on server side.
|
|
1888
1975
|
*/
|
|
1889
1976
|
sortBy?: SortsOrPlaceholders;
|
|
1890
1977
|
/**
|
|
1891
|
-
*
|
|
1978
|
+
* Resolution context for composed placeholders.
|
|
1892
1979
|
*/
|
|
1893
1980
|
placeholdersResolutionContext?: any;
|
|
1894
1981
|
/**
|
|
1895
|
-
*
|
|
1896
|
-
*
|
|
1897
|
-
*
|
|
1982
|
+
* Informative name of the component.
|
|
1983
|
+
*
|
|
1984
|
+
* @remarks
|
|
1985
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
1986
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
1898
1987
|
*
|
|
1899
1988
|
* Defaults 'Execute'.
|
|
1900
1989
|
*/
|
|
@@ -2015,8 +2104,12 @@ export declare interface IExtendedExportConfig extends IExportConfig {
|
|
|
2015
2104
|
export declare function ignoreTitlesForSimpleMeasures<T extends IInsightDefinition>(insight: T): T;
|
|
2016
2105
|
|
|
2017
2106
|
/**
|
|
2018
|
-
* A function called for {@link IMappingHeader} instances.
|
|
2107
|
+
* A function called for {@link IMappingHeader} instances.
|
|
2108
|
+
*
|
|
2109
|
+
* @remarks
|
|
2110
|
+
* When the function returns true, it means the IMappingHeader is matched.
|
|
2019
2111
|
* See {@link https://sdk.gooddata.com/gooddata-ui/docs/ht_create_predicates.html | documentation} for more information.
|
|
2112
|
+
*
|
|
2020
2113
|
* @public
|
|
2021
2114
|
*/
|
|
2022
2115
|
export declare type IHeaderPredicate = (header: IMappingHeader, context: IHeaderPredicateContext) => boolean;
|
|
@@ -2068,14 +2161,16 @@ export declare interface IIntlWrapperProps {
|
|
|
2068
2161
|
*/
|
|
2069
2162
|
export declare interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps> {
|
|
2070
2163
|
/**
|
|
2071
|
-
*
|
|
2164
|
+
* Specify an instance of analytical backend instance to work with.
|
|
2072
2165
|
*
|
|
2166
|
+
* @remarks
|
|
2073
2167
|
* Note: if you do not have a BackendProvider above in the component tree, then you MUST specify the backend.
|
|
2074
2168
|
*/
|
|
2075
2169
|
backend?: IAnalyticalBackend;
|
|
2076
2170
|
/**
|
|
2077
|
-
*
|
|
2171
|
+
* Specify workspace to work with.
|
|
2078
2172
|
*
|
|
2173
|
+
* @remarks
|
|
2079
2174
|
* Note: if you do not have a WorkspaceProvider above in the component tree, then you MUST specify the workspace.
|
|
2080
2175
|
*/
|
|
2081
2176
|
workspace?: string;
|
|
@@ -2084,24 +2179,24 @@ export declare interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps>
|
|
|
2084
2179
|
*/
|
|
2085
2180
|
measure: IMeasure;
|
|
2086
2181
|
/**
|
|
2087
|
-
*
|
|
2182
|
+
* Specify filters to apply during calculation
|
|
2088
2183
|
*/
|
|
2089
2184
|
filters?: INullableFilter[];
|
|
2090
2185
|
/**
|
|
2091
|
-
*
|
|
2186
|
+
* Specify number separators to use when rendering (segment delimiters, decimal point character)
|
|
2092
2187
|
*/
|
|
2093
2188
|
separators?: ISeparators_2;
|
|
2094
2189
|
/**
|
|
2095
|
-
*
|
|
2190
|
+
* Specify locale to use for strings that the Kpi component may render (for instance when encountering
|
|
2096
2191
|
* errors).
|
|
2097
2192
|
*/
|
|
2098
2193
|
locale?: string;
|
|
2099
2194
|
/**
|
|
2100
|
-
*
|
|
2195
|
+
* Specify react component to render while the data is loading.
|
|
2101
2196
|
*/
|
|
2102
2197
|
LoadingComponent?: React_2.ComponentType<ILoadingProps>;
|
|
2103
2198
|
/**
|
|
2104
|
-
*
|
|
2199
|
+
* Specify react component to render if execution fails.
|
|
2105
2200
|
*/
|
|
2106
2201
|
ErrorComponent?: React_2.ComponentType<IErrorProps>;
|
|
2107
2202
|
}
|
|
@@ -2171,7 +2266,9 @@ export declare interface ILoadingState {
|
|
|
2171
2266
|
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
2267
|
|
|
2173
2268
|
/**
|
|
2269
|
+
* @privateRemarks
|
|
2174
2270
|
* TODO: SDK8: remove this, replace with something more meaningful
|
|
2271
|
+
*
|
|
2175
2272
|
* @public
|
|
2176
2273
|
*/
|
|
2177
2274
|
export declare type IMappingHeader = IAttributeDescriptor | IResultAttributeHeader | IMeasureDescriptor | ITotalDescriptor;
|
|
@@ -2201,9 +2298,11 @@ export declare const IntlWrapper: React_2.FC<IIntlWrapperProps>;
|
|
|
2201
2298
|
|
|
2202
2299
|
/**
|
|
2203
2300
|
* 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
|
-
*
|
|
2301
|
+
* that may change the value at runtime.
|
|
2302
|
+
*
|
|
2303
|
+
* @remarks
|
|
2304
|
+
* You can provide it to visualizations instead of the attributes/measures/filters/sorts/totals themselves,
|
|
2305
|
+
* placeholders will be replaced with the actual values on the background.
|
|
2207
2306
|
*
|
|
2208
2307
|
* This allows you:
|
|
2209
2308
|
* - share a reference to the same execution elements across multiple components.
|
|
@@ -2213,9 +2312,13 @@ export declare const IntlWrapper: React_2.FC<IIntlWrapperProps>;
|
|
|
2213
2312
|
*
|
|
2214
2313
|
* Placeholder values are living in React context and you can obtain/set their values by the following hooks:
|
|
2215
2314
|
* - {@link usePlaceholder}
|
|
2315
|
+
*
|
|
2216
2316
|
* - {@link usePlaceholders}
|
|
2317
|
+
*
|
|
2217
2318
|
* - {@link useComposedPlaceholder}
|
|
2319
|
+
*
|
|
2218
2320
|
* - {@link useResolveValueWithPlaceholders}
|
|
2321
|
+
*
|
|
2219
2322
|
* - {@link useResolveValuesWithPlaceholders}
|
|
2220
2323
|
*
|
|
2221
2324
|
* Note:
|
|
@@ -2240,12 +2343,14 @@ export declare type IPlaceholder<T> = {
|
|
|
2240
2343
|
export declare interface IPlaceholderOptions<T> {
|
|
2241
2344
|
/**
|
|
2242
2345
|
* By default, each placeholder has a unique generated id.
|
|
2243
|
-
*
|
|
2346
|
+
*
|
|
2347
|
+
* @remarks
|
|
2348
|
+
* You can provide id of the placeholder which can be useful for debugging.
|
|
2244
2349
|
* Please note that the id should be unique for all your placeholders.
|
|
2245
2350
|
*/
|
|
2246
2351
|
id?: string;
|
|
2247
2352
|
/**
|
|
2248
|
-
*
|
|
2353
|
+
* Provide function to validate the placeholder value.
|
|
2249
2354
|
*/
|
|
2250
2355
|
validate?: (value?: T) => void;
|
|
2251
2356
|
}
|
|
@@ -2289,12 +2394,15 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2289
2394
|
* Specifies whether {@link RawExecute} should load all data from backend or just a particular window - specified by
|
|
2290
2395
|
* offset and size of the window.
|
|
2291
2396
|
*
|
|
2397
|
+
* @remarks
|
|
2292
2398
|
* If not specified, all data will be loaded.
|
|
2293
2399
|
*/
|
|
2294
2400
|
window?: DataViewWindow;
|
|
2295
2401
|
/**
|
|
2296
|
-
*
|
|
2297
|
-
*
|
|
2402
|
+
* Name to use for files exported from this component.
|
|
2403
|
+
*
|
|
2404
|
+
* @remarks
|
|
2405
|
+
* If you do not specify this, then the 'RawExecute' will be used instead.
|
|
2298
2406
|
*
|
|
2299
2407
|
* Note: it is also possible to pass custom name to the export function that will be sent via the
|
|
2300
2408
|
* onExportReady callback. That approach is preferred if you need to assign the names in an ad-hoc
|
|
@@ -2303,28 +2411,36 @@ export declare interface IRawExecuteProps extends IWithLoadingEvents<IRawExecute
|
|
|
2303
2411
|
exportTitle?: string;
|
|
2304
2412
|
/**
|
|
2305
2413
|
* Indicates whether the executor should trigger execution and loading right after it is
|
|
2306
|
-
* mounted.
|
|
2414
|
+
* mounted.
|
|
2415
|
+
*
|
|
2416
|
+
* @remarks
|
|
2417
|
+
* If not specified defaults to `true`.
|
|
2307
2418
|
*
|
|
2308
2419
|
* If set to `false`, then the {@link WithLoadingResult#reload} function needs to be called
|
|
2309
2420
|
* to trigger the execution and loading.
|
|
2310
2421
|
*/
|
|
2311
2422
|
loadOnMount?: boolean;
|
|
2312
2423
|
/**
|
|
2313
|
-
* Child component to which rendering is delegated.
|
|
2314
|
-
*
|
|
2424
|
+
* Child component to which rendering is delegated.
|
|
2425
|
+
*
|
|
2426
|
+
* @remarks
|
|
2427
|
+
* This is a function that will be called every time state of execution and data loading changes.
|
|
2315
2428
|
*
|
|
2316
2429
|
* @param executionResult - execution result, indicating state and/or results
|
|
2317
2430
|
*/
|
|
2318
2431
|
children: (executionResult: WithLoadingResult) => React_2.ReactElement | null;
|
|
2319
2432
|
/**
|
|
2320
|
-
*
|
|
2433
|
+
* Provide component for rendering of the loading state.
|
|
2321
2434
|
*
|
|
2435
|
+
* @remarks
|
|
2322
2436
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
2323
2437
|
* will be called only with a successful result.
|
|
2324
2438
|
*/
|
|
2325
2439
|
LoadingComponent?: IExecuteLoadingComponent;
|
|
2326
2440
|
/**
|
|
2327
|
-
*
|
|
2441
|
+
* Provide component for rendering of the error state.
|
|
2442
|
+
*
|
|
2443
|
+
* @remarks
|
|
2328
2444
|
* Note: When you provide both LoadingComponent and ErrorComponent, the children function with the execution result
|
|
2329
2445
|
* will be called only with a successful result.
|
|
2330
2446
|
*/
|
|
@@ -2680,6 +2796,7 @@ export declare interface ITranslationsCustomizationProviderProps {
|
|
|
2680
2796
|
/**
|
|
2681
2797
|
* Analytical backend, from which the ThemeProvider will obtain selected theme object
|
|
2682
2798
|
*
|
|
2799
|
+
* @remarks
|
|
2683
2800
|
* If you do not specify instance of analytical backend using this prop, then you MUST have
|
|
2684
2801
|
* BackendProvider up in the component tree.
|
|
2685
2802
|
*/
|
|
@@ -2687,6 +2804,7 @@ export declare interface ITranslationsCustomizationProviderProps {
|
|
|
2687
2804
|
/**
|
|
2688
2805
|
* Identifier of analytical workspace, from which the ThemeProvider will obtain the selected theme identifier
|
|
2689
2806
|
*
|
|
2807
|
+
* @remarks
|
|
2690
2808
|
* If you do not specify workspace identifier, then you MUST have WorkspaceProvider up in the
|
|
2691
2809
|
* component tree.
|
|
2692
2810
|
*/
|
|
@@ -2721,29 +2839,31 @@ export declare interface IUseExecutionConfig {
|
|
|
2721
2839
|
*/
|
|
2722
2840
|
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
2723
2841
|
/**
|
|
2724
|
-
*
|
|
2842
|
+
* Slice all data series by elements of these attributes.
|
|
2725
2843
|
*/
|
|
2726
2844
|
slicesBy?: AttributesOrPlaceholders;
|
|
2727
2845
|
/**
|
|
2728
|
-
*
|
|
2846
|
+
* Include these totals among the data slices.
|
|
2729
2847
|
*/
|
|
2730
2848
|
totals?: TotalsOrPlaceholders;
|
|
2731
2849
|
/**
|
|
2732
|
-
*
|
|
2850
|
+
* Filters to apply on server side.
|
|
2733
2851
|
*/
|
|
2734
2852
|
filters?: NullableFiltersOrPlaceholders;
|
|
2735
2853
|
/**
|
|
2736
|
-
*
|
|
2854
|
+
* Sorting to apply on server side.
|
|
2737
2855
|
*/
|
|
2738
2856
|
sortBy?: SortsOrPlaceholders;
|
|
2739
2857
|
/**
|
|
2740
|
-
*
|
|
2858
|
+
* Resolution context for composed placeholders.
|
|
2741
2859
|
*/
|
|
2742
2860
|
placeholdersResolutionContext?: any;
|
|
2743
2861
|
/**
|
|
2744
|
-
*
|
|
2745
|
-
*
|
|
2746
|
-
*
|
|
2862
|
+
* Informative name of the component.
|
|
2863
|
+
*
|
|
2864
|
+
* @remarks
|
|
2865
|
+
* This value is sent as telemetry information together with the actual execution request.
|
|
2866
|
+
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
2747
2867
|
*
|
|
2748
2868
|
* Defaults 'Execute'.
|
|
2749
2869
|
*/
|
|
@@ -2751,6 +2871,7 @@ export declare interface IUseExecutionConfig {
|
|
|
2751
2871
|
/**
|
|
2752
2872
|
* Backend to work with.
|
|
2753
2873
|
*
|
|
2874
|
+
* @remarks
|
|
2754
2875
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2755
2876
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2756
2877
|
*/
|
|
@@ -2758,6 +2879,7 @@ export declare interface IUseExecutionConfig {
|
|
|
2758
2879
|
/**
|
|
2759
2880
|
* Workspace where execution should be executed.
|
|
2760
2881
|
*
|
|
2882
|
+
* @remarks
|
|
2761
2883
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2762
2884
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2763
2885
|
*/
|
|
@@ -2773,13 +2895,16 @@ export declare interface IUseExecutionDataViewConfig {
|
|
|
2773
2895
|
*/
|
|
2774
2896
|
execution?: IPreparedExecution | IExecutionConfiguration;
|
|
2775
2897
|
/**
|
|
2776
|
-
*
|
|
2898
|
+
* You can define only a specific "window" of data to load.
|
|
2899
|
+
*
|
|
2900
|
+
* @remarks
|
|
2777
2901
|
* This is useful if you want to page data.
|
|
2778
2902
|
*/
|
|
2779
2903
|
window?: DataViewWindow;
|
|
2780
2904
|
/**
|
|
2781
2905
|
* Backend to work with.
|
|
2782
2906
|
*
|
|
2907
|
+
* @remarks
|
|
2783
2908
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2784
2909
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2785
2910
|
*/
|
|
@@ -2787,6 +2912,7 @@ export declare interface IUseExecutionDataViewConfig {
|
|
|
2787
2912
|
/**
|
|
2788
2913
|
* Workspace where execution should be executed.
|
|
2789
2914
|
*
|
|
2915
|
+
* @remarks
|
|
2790
2916
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2791
2917
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2792
2918
|
*/
|
|
@@ -2800,33 +2926,37 @@ export declare interface IUseInsightDataViewConfig {
|
|
|
2800
2926
|
/**
|
|
2801
2927
|
* Reference to the insight for which you want to get the data view.
|
|
2802
2928
|
*
|
|
2929
|
+
* @remarks
|
|
2803
2930
|
* Note: When the reference or identifier is not provided, hook is locked in a "pending" state.
|
|
2804
2931
|
*/
|
|
2805
2932
|
insight?: ObjRef;
|
|
2806
2933
|
/**
|
|
2807
|
-
*
|
|
2934
|
+
* Modify sorts on prepared insight execution, before it's executed.
|
|
2808
2935
|
*/
|
|
2809
2936
|
sorts?: ISortItem[] | ((def: IExecutionDefinition) => ISortItem[]);
|
|
2810
2937
|
/**
|
|
2811
|
-
*
|
|
2938
|
+
* Modify dimensions on prepared insight execution, before it's executed.
|
|
2812
2939
|
*/
|
|
2813
2940
|
dimensions?: IDimension[] | ((def: IExecutionDefinition) => IDimension[]);
|
|
2814
2941
|
/**
|
|
2815
|
-
*
|
|
2942
|
+
* Modify date formatting on prepared insight execution, before it's executed.
|
|
2816
2943
|
*/
|
|
2817
2944
|
dateFormat?: string | ((def: IExecutionDefinition) => string);
|
|
2818
2945
|
/**
|
|
2819
|
-
*
|
|
2946
|
+
* Specify filters to merge with filters already defined in the insight.
|
|
2820
2947
|
*/
|
|
2821
2948
|
filters?: INullableFilter[];
|
|
2822
2949
|
/**
|
|
2823
|
-
*
|
|
2950
|
+
* You can define only a specific "window" of data to load.
|
|
2951
|
+
*
|
|
2952
|
+
* @remarks
|
|
2824
2953
|
* This is useful if you want to page data.
|
|
2825
2954
|
*/
|
|
2826
2955
|
window?: DataViewWindow;
|
|
2827
2956
|
/**
|
|
2828
2957
|
* Backend to work with.
|
|
2829
2958
|
*
|
|
2959
|
+
* @remarks
|
|
2830
2960
|
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
2831
2961
|
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
2832
2962
|
*/
|
|
@@ -2834,6 +2964,7 @@ export declare interface IUseInsightDataViewConfig {
|
|
|
2834
2964
|
/**
|
|
2835
2965
|
* Workspace where execution should be executed.
|
|
2836
2966
|
*
|
|
2967
|
+
* @remarks
|
|
2837
2968
|
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
2838
2969
|
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
2839
2970
|
*/
|
|
@@ -2865,8 +2996,10 @@ PlaceholderValue<T> | undefined,
|
|
|
2865
2996
|
];
|
|
2866
2997
|
|
|
2867
2998
|
/**
|
|
2868
|
-
* Super-interface for all visualization callbacks
|
|
2869
|
-
*
|
|
2999
|
+
* Super-interface for all visualization callbacks.
|
|
3000
|
+
*
|
|
3001
|
+
* @remarks
|
|
3002
|
+
* All visualizations SHOULD have at least these callbacks defined.
|
|
2870
3003
|
*
|
|
2871
3004
|
* @public
|
|
2872
3005
|
*/
|
|
@@ -2898,8 +3031,10 @@ export declare interface IVisualizationCallbacks {
|
|
|
2898
3031
|
}
|
|
2899
3032
|
|
|
2900
3033
|
/**
|
|
2901
|
-
* Super-interface for all visualization props
|
|
2902
|
-
*
|
|
3034
|
+
* Super-interface for all visualization props.
|
|
3035
|
+
*
|
|
3036
|
+
* @remarks
|
|
3037
|
+
* Charts, tables or anything else - all should have these basic props.
|
|
2903
3038
|
*
|
|
2904
3039
|
* @public
|
|
2905
3040
|
*/
|
|
@@ -2907,12 +3042,14 @@ export declare interface IVisualizationProps {
|
|
|
2907
3042
|
/**
|
|
2908
3043
|
* Set Locale for visualization localization.
|
|
2909
3044
|
*
|
|
3045
|
+
* @remarks
|
|
2910
3046
|
* Note: This locale will be used for everything EXCEPT the data being visualized.
|
|
2911
3047
|
*/
|
|
2912
3048
|
locale?: string;
|
|
2913
3049
|
/**
|
|
2914
3050
|
* Set title to use for exported files.
|
|
2915
3051
|
*
|
|
3052
|
+
* @remarks
|
|
2916
3053
|
* Note: you can also specify export file name as parameters to the export function which you
|
|
2917
3054
|
* receive in the onExportReady. If you do not specify title here and neither as input to export function,
|
|
2918
3055
|
* the the name will default to name of the visualization component.
|
|
@@ -2954,24 +3091,25 @@ export declare interface IWithExecution<T> {
|
|
|
2954
3091
|
*/
|
|
2955
3092
|
exportTitle: string | ((props: T) => string);
|
|
2956
3093
|
/**
|
|
2957
|
-
*
|
|
3094
|
+
* Customize data window to load.
|
|
2958
3095
|
*
|
|
2959
3096
|
* By default the HOC loads all the data available in the execution's result.
|
|
2960
3097
|
*/
|
|
2961
3098
|
window?: DataViewWindow | ((props: T) => DataViewWindow | undefined);
|
|
2962
3099
|
/**
|
|
2963
|
-
*
|
|
3100
|
+
* Specify event callbacks which the HOC will trigger in different situations.
|
|
2964
3101
|
*/
|
|
2965
3102
|
events?: IWithLoadingEvents<T> | ((props: T) => IWithLoadingEvents<T>);
|
|
2966
3103
|
/**
|
|
2967
|
-
*
|
|
3104
|
+
* Customize, whether execution & data loading should start as soon as component is mounted.
|
|
2968
3105
|
*
|
|
3106
|
+
* @remarks
|
|
2969
3107
|
* Default is true. When not loading on mount, the wrapped component can trigger the load by calling the
|
|
2970
3108
|
* reload() function which the HOC injects into its props.
|
|
2971
3109
|
*/
|
|
2972
3110
|
loadOnMount?: boolean | ((props: T) => boolean);
|
|
2973
3111
|
/**
|
|
2974
|
-
*
|
|
3112
|
+
* Specify function that will be called during component prop updates and will be used to
|
|
2975
3113
|
* determine whether execution should be re-run and data reloaded.
|
|
2976
3114
|
*
|
|
2977
3115
|
* @param prevProps - previous props
|
|
@@ -2981,8 +3119,11 @@ export declare interface IWithExecution<T> {
|
|
|
2981
3119
|
}
|
|
2982
3120
|
|
|
2983
3121
|
/**
|
|
2984
|
-
* Configuration for the
|
|
2985
|
-
*
|
|
3122
|
+
* Configuration for the {@link withExecutionLoading} HOC.
|
|
3123
|
+
*
|
|
3124
|
+
* @remarks
|
|
3125
|
+
* All configuration parameters can be either actual parameter values or functions to obtain them
|
|
3126
|
+
* from the wrapped component props.
|
|
2986
3127
|
*
|
|
2987
3128
|
* If functions are specified, the HOC will call them with the wrapped component props as parameter and then use
|
|
2988
3129
|
* the resulting values as if they were passed directly.
|
|
@@ -3007,23 +3148,25 @@ export declare interface IWithExecutionLoading<TProps> {
|
|
|
3007
3148
|
*/
|
|
3008
3149
|
promiseFactory: (props: TProps, window?: DataViewWindow) => Promise<DataViewFacade>;
|
|
3009
3150
|
/**
|
|
3010
|
-
*
|
|
3011
|
-
*
|
|
3151
|
+
* Specify data view window to retrieve from backend.
|
|
3152
|
+
*
|
|
3153
|
+
* @remarks
|
|
3154
|
+
* If specified as function, the function can return undefined in case all data must be retrieved.
|
|
3012
3155
|
*/
|
|
3013
3156
|
window?: DataViewWindow | ((props: TProps) => DataViewWindow | undefined);
|
|
3014
3157
|
/**
|
|
3015
|
-
*
|
|
3158
|
+
* Specify event callbacks which the HOC will trigger in different situations.
|
|
3016
3159
|
*/
|
|
3017
3160
|
events?: IWithLoadingEvents<TProps> | ((props: TProps) => IWithLoadingEvents<TProps>);
|
|
3018
3161
|
/**
|
|
3019
|
-
*
|
|
3162
|
+
* Customize, whether execution & data loading should start as soon as component is mounted.
|
|
3020
3163
|
*
|
|
3021
3164
|
* Default is true. When not loading on mount, the wrapped component can trigger the load by calling the
|
|
3022
3165
|
* reload() function which the HOC injects into its props.
|
|
3023
3166
|
*/
|
|
3024
3167
|
loadOnMount?: boolean | ((props: TProps) => boolean);
|
|
3025
3168
|
/**
|
|
3026
|
-
*
|
|
3169
|
+
* Specify function that will be called during component prop updates and will be used to
|
|
3027
3170
|
* determine whether execution should be re-run and data reloaded.
|
|
3028
3171
|
*
|
|
3029
3172
|
* @param prevProps - previous props
|
|
@@ -3085,8 +3228,10 @@ export declare interface IWorkspaceProviderProps {
|
|
|
3085
3228
|
}
|
|
3086
3229
|
|
|
3087
3230
|
/**
|
|
3088
|
-
* Kpi is a simple component which calculates and renders a single formatted measure value.
|
|
3089
|
-
*
|
|
3231
|
+
* Kpi is a simple component which calculates and renders a single formatted measure value.
|
|
3232
|
+
*
|
|
3233
|
+
* @remarks
|
|
3234
|
+
* The the value is rendered inside a <span> element.
|
|
3090
3235
|
*
|
|
3091
3236
|
* Kpi component is useful for instance for embedding data values into text paragraphs.
|
|
3092
3237
|
*
|
|
@@ -3097,8 +3242,10 @@ export declare interface IWorkspaceProviderProps {
|
|
|
3097
3242
|
export declare const Kpi: React_2.ComponentType<IKpiProps>;
|
|
3098
3243
|
|
|
3099
3244
|
/**
|
|
3100
|
-
*
|
|
3101
|
-
*
|
|
3245
|
+
* Component that renders a default loading indicator.
|
|
3246
|
+
*
|
|
3247
|
+
* @remarks
|
|
3248
|
+
* See {@link http://sdk.gooddata.com/gooddata-ui/docs/loading_component.html | LoadingComponent }
|
|
3102
3249
|
*
|
|
3103
3250
|
* @public
|
|
3104
3251
|
*/
|
|
@@ -3132,7 +3279,7 @@ export declare function makeCancelable<T>(promise: Promise<T>): ICancelablePromi
|
|
|
3132
3279
|
/**
|
|
3133
3280
|
* Generate union of measures from union of measure definitions.
|
|
3134
3281
|
*
|
|
3135
|
-
*
|
|
3282
|
+
* @example
|
|
3136
3283
|
* - IMeasureDefinition | IArithmeticMeasureDefinition is resolved as
|
|
3137
3284
|
* IMeasure\<IMeasureDefinition\> | IMeasure\<IArithmeticMeasureDefinition\>
|
|
3138
3285
|
*
|
|
@@ -3232,6 +3379,7 @@ export declare type NullableFiltersOrPlaceholders = Array<FilterOrMultiValuePlac
|
|
|
3232
3379
|
* Creates a new predicate that returns true for any header that belongs to either attribute or measure matching
|
|
3233
3380
|
* the provided object.
|
|
3234
3381
|
*
|
|
3382
|
+
* @remarks
|
|
3235
3383
|
* If the object is empty or is not attribute, simple measure or object reference, the function returns predicate
|
|
3236
3384
|
* that is always falsy.
|
|
3237
3385
|
*
|
|
@@ -3302,8 +3450,10 @@ export declare const pickCorrectWording: (translations: Record<string, string>,
|
|
|
3302
3450
|
/**
|
|
3303
3451
|
* Wrap each member of the union type in AnyPlaceholder.
|
|
3304
3452
|
*
|
|
3305
|
-
*
|
|
3306
|
-
*
|
|
3453
|
+
* @example
|
|
3454
|
+
* ```
|
|
3455
|
+
* IAttribute | IMeasure is resolved as AnyPlaceholder\<IAttribute\> | AnyPlaceholder\<IMeasure\>
|
|
3456
|
+
* ```
|
|
3307
3457
|
*
|
|
3308
3458
|
* @public
|
|
3309
3459
|
*/
|
|
@@ -3311,15 +3461,19 @@ export declare type PlaceholderOf<T> = T extends any ? AnyPlaceholder<T> : never
|
|
|
3311
3461
|
|
|
3312
3462
|
/**
|
|
3313
3463
|
* Convert any value that may contain placeholders to its resolved value type.
|
|
3464
|
+
*
|
|
3465
|
+
* @remarks
|
|
3314
3466
|
* Nested array placeholders resolved value types are flattened.
|
|
3315
3467
|
* If the type is not a placeholder, return the same type.
|
|
3316
3468
|
*
|
|
3317
|
-
*
|
|
3318
|
-
*
|
|
3319
|
-
*
|
|
3320
|
-
*
|
|
3321
|
-
*
|
|
3322
|
-
*
|
|
3469
|
+
* @example
|
|
3470
|
+
* ```
|
|
3471
|
+
* IPlaceholder\<IAttribute\> is resolved as IAttribute
|
|
3472
|
+
* IPlaceholder\<IAttribute\>[] is resolved as IAttribute[]
|
|
3473
|
+
* IPlaceholder\<IAttribute[]\> is resolved as IAttribute[]
|
|
3474
|
+
* [IPlaceholder\<IAttribute[]\>, IPlaceholder\<IMeasure[]\>] is resolved as (IAttribute | IMeasure)[]
|
|
3475
|
+
* null is resolved as null
|
|
3476
|
+
* ```
|
|
3323
3477
|
*
|
|
3324
3478
|
* @public
|
|
3325
3479
|
*/
|
|
@@ -3336,10 +3490,13 @@ export declare function PlaceholdersProvider(props: IPlaceholdersProviderProps):
|
|
|
3336
3490
|
/**
|
|
3337
3491
|
* Convert tuple of values that may contain placeholders to tuple of their respective resolved value types.
|
|
3338
3492
|
*
|
|
3339
|
-
*
|
|
3340
|
-
*
|
|
3341
|
-
*
|
|
3493
|
+
* @example
|
|
3494
|
+
* ```
|
|
3495
|
+
* [IPlaceholder\<IAttribute\>, IPlaceholder\<IAttribute[]\>] is resolved as [IAttribute, IAttribute[]]
|
|
3496
|
+
* [IPlaceholder\<IMeasure\>, IMeasure] is resolved as [IMeasure, IMeasure]
|
|
3497
|
+
* ```
|
|
3342
3498
|
*
|
|
3499
|
+
* @remarks
|
|
3343
3500
|
* Check mapped tuple types for more details:
|
|
3344
3501
|
* https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-1.html#mapped-types-on-tuples-and-arrays
|
|
3345
3502
|
*
|
|
@@ -3352,9 +3509,10 @@ export declare type PlaceholdersResolvedValues<Tuple extends any[]> = {
|
|
|
3352
3509
|
/**
|
|
3353
3510
|
* Convert tuple of placeholders to tuple of their respective value types.
|
|
3354
3511
|
*
|
|
3355
|
-
*
|
|
3356
|
-
*
|
|
3512
|
+
* @example
|
|
3513
|
+
* [IPlaceholder\<IAttribute\>, IPlaceholder\<IAttribute[]\>] is resolved as [IAttribute, IAttribute[]]
|
|
3357
3514
|
*
|
|
3515
|
+
* @remarks
|
|
3358
3516
|
* Check mapped tuple types for more details:
|
|
3359
3517
|
* https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-1.html#mapped-types-on-tuples-and-arrays
|
|
3360
3518
|
*
|
|
@@ -3366,13 +3524,17 @@ export declare type PlaceholdersValues<Tuple extends [...any[]]> = {
|
|
|
3366
3524
|
|
|
3367
3525
|
/**
|
|
3368
3526
|
* Get placeholder value type.
|
|
3527
|
+
*
|
|
3528
|
+
* @remarks
|
|
3369
3529
|
* If the type is not a placeholder, return the same type.
|
|
3370
3530
|
*
|
|
3371
|
-
*
|
|
3372
|
-
*
|
|
3373
|
-
*
|
|
3374
|
-
*
|
|
3375
|
-
*
|
|
3531
|
+
* @example
|
|
3532
|
+
* ```
|
|
3533
|
+
* IPlaceholder\<IAttribute\> is resolved as IAttribute
|
|
3534
|
+
* IPlaceholder\<IAttribute[]\> is resolved as IAttribute[]
|
|
3535
|
+
* IComposedPlaceholder\<IMeasure\> is resolved as IMeasure
|
|
3536
|
+
* null is resolved as null
|
|
3537
|
+
* ```
|
|
3376
3538
|
*
|
|
3377
3539
|
* @public
|
|
3378
3540
|
*/
|
|
@@ -3392,6 +3554,7 @@ export declare class ProtectedReportSdkError extends GoodDataSdkError {
|
|
|
3392
3554
|
* Raw executor is the most basic React component to drive custom executions to obtain
|
|
3393
3555
|
* data from backends.
|
|
3394
3556
|
*
|
|
3557
|
+
* @remarks
|
|
3395
3558
|
* The component accepts an instance of prepared execution and drives all the necessary
|
|
3396
3559
|
* APIs and boilerplate needed to obtain a {@link DataViewFacade}.
|
|
3397
3560
|
* Note that if the resulting data is empty this will NOT throw a {@link @gooddata/sdk-backend-spi#NoDataError}.
|
|
@@ -3449,6 +3612,7 @@ export declare function resolveLCMWorkspaceIdentifiers(backend: any, clientWorks
|
|
|
3449
3612
|
/**
|
|
3450
3613
|
* Resolve error of multiple {@link useCancelablePromise} hooks - gets first error in the sequence of cancelable promise states.
|
|
3451
3614
|
*
|
|
3615
|
+
* @remarks
|
|
3452
3616
|
* This is useful for useCancelablePromise composition - when you want to wrap multiple useCancelablePromise hooks in another hook,
|
|
3453
3617
|
* and keep the return value shape of the hook same as for useCancelablePromise.
|
|
3454
3618
|
*
|
|
@@ -3461,6 +3625,7 @@ export declare function resolveUseCancelablePromisesError<TError>(states: UseCan
|
|
|
3461
3625
|
/**
|
|
3462
3626
|
* Resolve status of multiple {@link useCancelablePromise} hooks.
|
|
3463
3627
|
*
|
|
3628
|
+
* @remarks
|
|
3464
3629
|
* This is useful for useCancelablePromise composition - when you want to wrap multiple useCancelablePromise hooks in another hook,
|
|
3465
3630
|
* and keep the return value shape of the hook same as for useCancelablePromise.
|
|
3466
3631
|
*
|
|
@@ -3525,6 +3690,8 @@ export declare const TranslationsCustomizationContextProvider: React_2.FC<ITrans
|
|
|
3525
3690
|
|
|
3526
3691
|
/**
|
|
3527
3692
|
* This provider is here because of the need for customization of translations.
|
|
3693
|
+
*
|
|
3694
|
+
* @remarks
|
|
3528
3695
|
* If you need to change translations based on some setting flag,
|
|
3529
3696
|
* use this provider at the top of you your react tree.
|
|
3530
3697
|
*
|
|
@@ -3565,9 +3732,11 @@ export declare class UnexpectedSdkError extends GoodDataSdkError {
|
|
|
3565
3732
|
/**
|
|
3566
3733
|
* Convert union type to intersection type.
|
|
3567
3734
|
*
|
|
3568
|
-
*
|
|
3569
|
-
*
|
|
3570
|
-
*
|
|
3735
|
+
* @example
|
|
3736
|
+
* ```
|
|
3737
|
+
* number | string | boolean is resolved as number & string & boolean
|
|
3738
|
+
* Type1 | Type2 | Type3 is resolved as Type1 & Type2 & Type3
|
|
3739
|
+
* ```
|
|
3571
3740
|
*
|
|
3572
3741
|
* @public
|
|
3573
3742
|
*/
|
|
@@ -3583,6 +3752,8 @@ export declare function uriMatch(uri: string): IHeaderPredicate;
|
|
|
3583
3752
|
|
|
3584
3753
|
/**
|
|
3585
3754
|
* Hook to get analytical backend instance provided to {@link BackendProvider}.
|
|
3755
|
+
*
|
|
3756
|
+
* @remarks
|
|
3586
3757
|
* You can optionally set a backend override that will be returned if defined.
|
|
3587
3758
|
* This makes the usage more ergonomic (see the following example).
|
|
3588
3759
|
*
|
|
@@ -3604,6 +3775,8 @@ export declare const useBackend: (backend?: IAnalyticalBackend | undefined) => I
|
|
|
3604
3775
|
|
|
3605
3776
|
/**
|
|
3606
3777
|
* Hook to get analytical backend instance provided to {@link BackendProvider}.
|
|
3778
|
+
*
|
|
3779
|
+
* @remarks
|
|
3607
3780
|
* You can optionally set a backend override that will be returned if defined.
|
|
3608
3781
|
* This makes the usage more ergonomic (see the following example).
|
|
3609
3782
|
*
|
|
@@ -3627,6 +3800,8 @@ export declare const useBackendStrict: (backend?: IAnalyticalBackend | undefined
|
|
|
3627
3800
|
|
|
3628
3801
|
/**
|
|
3629
3802
|
* This hook provides easy way to work with Promise.
|
|
3803
|
+
*
|
|
3804
|
+
* @remarks
|
|
3630
3805
|
* You can:
|
|
3631
3806
|
* - watch it's status (pending/loading/success/error)
|
|
3632
3807
|
* - get it's result/error when the Promise is resolved/rejected,
|
|
@@ -3754,6 +3929,8 @@ export declare function useComposedPlaceholder<TContext, TPlaceholder extends IC
|
|
|
3754
3929
|
|
|
3755
3930
|
/**
|
|
3756
3931
|
* This hook provides easy way to export data in your preferred format (csv/xlsx/raw) for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
|
|
3932
|
+
*
|
|
3933
|
+
* @remarks
|
|
3757
3934
|
* As a result, you will receive a string with uri, so you can easily create a download link.
|
|
3758
3935
|
* Be aware that execution is re-executed only on dependency list change, not on execution/exportConfig/callbacks change.
|
|
3759
3936
|
*
|
|
@@ -3778,6 +3955,8 @@ export declare type UseDataExportState = UseCancelablePromiseState<string, GoodD
|
|
|
3778
3955
|
|
|
3779
3956
|
/**
|
|
3780
3957
|
* This hook provides easy way to get data for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
|
|
3958
|
+
*
|
|
3959
|
+
* @remarks
|
|
3781
3960
|
* You can use it to create custom visualizations on top of GoodData platform.
|
|
3782
3961
|
* Be aware that execution is re-executed only on dependency list change, not on execution/window/callbacks change.
|
|
3783
3962
|
*
|
|
@@ -3802,6 +3981,8 @@ export declare type UseDataViewState = UseCancelablePromiseState<DataViewFacade,
|
|
|
3802
3981
|
|
|
3803
3982
|
/**
|
|
3804
3983
|
* This hook provides a simplified interface for creating executions.
|
|
3984
|
+
*
|
|
3985
|
+
* @remarks
|
|
3805
3986
|
* It builds the execution on top of the backend passed to the BackendProvider, and workspace passed to the WorkspaceProvider.
|
|
3806
3987
|
*
|
|
3807
3988
|
* @beta
|
|
@@ -3830,6 +4011,8 @@ export declare function usePagedResource<TParams, TItem>(resourceFactory: (param
|
|
|
3830
4011
|
|
|
3831
4012
|
/**
|
|
3832
4013
|
* React hook to obtain/set placeholder value.
|
|
4014
|
+
*
|
|
4015
|
+
* @remarks
|
|
3833
4016
|
* See {@link IPlaceholder}.
|
|
3834
4017
|
*
|
|
3835
4018
|
* Note: When placeholder is not provided, setting its value will result in the error.
|
|
@@ -3843,6 +4026,8 @@ PlaceholderValue<T> | undefined,
|
|
|
3843
4026
|
|
|
3844
4027
|
/**
|
|
3845
4028
|
* React hook to obtain/set multiple placeholder values at once.
|
|
4029
|
+
*
|
|
4030
|
+
* @remarks
|
|
3846
4031
|
* This is useful to perform placeholders atomic change.
|
|
3847
4032
|
* See {@link IPlaceholder}.
|
|
3848
4033
|
* @public
|
|
@@ -3859,6 +4044,8 @@ export declare const usePrevious: <T>(props: T) => T;
|
|
|
3859
4044
|
|
|
3860
4045
|
/**
|
|
3861
4046
|
* React hook that resolves multiple value(s) that can possibly contain also placeholder(s) to actual value(s).
|
|
4047
|
+
*
|
|
4048
|
+
* @remarks
|
|
3862
4049
|
* Optionally provide custom context for the composed placeholders resolution.
|
|
3863
4050
|
*
|
|
3864
4051
|
* @public
|
|
@@ -3867,6 +4054,8 @@ export declare function useResolveValuesWithPlaceholders<T extends any[], C>(val
|
|
|
3867
4054
|
|
|
3868
4055
|
/**
|
|
3869
4056
|
* React hook that resolves any value(s) that can possibly contain also placeholder(s) to actual value(s).
|
|
4057
|
+
*
|
|
4058
|
+
* @remarks
|
|
3870
4059
|
* Optionally provide custom context for the composed placeholders resolution.
|
|
3871
4060
|
*
|
|
3872
4061
|
* @public
|
|
@@ -3875,6 +4064,8 @@ export declare function useResolveValueWithPlaceholders<T, C>(value: T, resoluti
|
|
|
3875
4064
|
|
|
3876
4065
|
/**
|
|
3877
4066
|
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
4067
|
+
*
|
|
4068
|
+
* @remarks
|
|
3878
4069
|
* You can optionally set a workspace override that will be returned if defined.
|
|
3879
4070
|
* This makes the usage more ergonomic (see the following example).
|
|
3880
4071
|
*
|
|
@@ -3896,6 +4087,8 @@ export declare const useWorkspace: (workspace?: string | undefined) => string |
|
|
|
3896
4087
|
|
|
3897
4088
|
/**
|
|
3898
4089
|
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
4090
|
+
*
|
|
4091
|
+
* @remarks
|
|
3899
4092
|
* You can optionally set a workspace override that will be returned if defined.
|
|
3900
4093
|
* This makes the usage more ergonomic (see the following example).
|
|
3901
4094
|
*
|