@gooddata/sdk-ui 9.0.0-alpha.3 → 9.0.0-alpha.31
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/esm/base/errors/GoodDataSdkError.js +1 -1
- package/esm/base/errors/GoodDataSdkError.js.map +1 -1
- package/esm/base/errors/errorHandling.d.ts +1 -1
- package/esm/base/errors/errorHandling.d.ts.map +1 -1
- package/esm/base/errors/errorHandling.js +2 -2
- package/esm/base/errors/errorHandling.js.map +1 -1
- package/esm/base/headerMatching/HeaderPredicate.d.ts +2 -2
- package/esm/base/headerMatching/HeaderPredicate.d.ts.map +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.d.ts +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.d.ts.map +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.js +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
- package/esm/base/headerMatching/MappingHeader.d.ts +4 -4
- package/esm/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/esm/base/headerMatching/MappingHeader.js +3 -3
- package/esm/base/headerMatching/MappingHeader.js.map +1 -1
- package/esm/base/index.d.ts +58 -57
- package/esm/base/index.d.ts.map +1 -1
- package/esm/base/index.js +48 -47
- package/esm/base/index.js.map +1 -1
- package/esm/base/localization/IntlStore.d.ts +1 -1
- package/esm/base/localization/IntlStore.d.ts.map +1 -1
- package/esm/base/localization/IntlStore.js +3 -3
- package/esm/base/localization/IntlStore.js.map +1 -1
- package/esm/base/localization/IntlWrapper.js +3 -3
- package/esm/base/localization/IntlWrapper.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/Context.js +2 -2
- package/esm/base/localization/TranslationsCustomizationProvider/Context.js.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/TranslationsCustomizationProvider/index.d.ts +3 -3
- package/esm/base/localization/TranslationsCustomizationProvider/index.d.ts.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/index.js +3 -3
- package/esm/base/localization/TranslationsCustomizationProvider/index.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/utils.js +6 -1
- package/esm/base/localization/TranslationsCustomizationProvider/utils.js.map +1 -1
- package/esm/base/localization/TranslationsProvider.js +2 -2
- package/esm/base/localization/TranslationsProvider.js.map +1 -1
- package/esm/base/localization/bundles/de-DE.json +3 -0
- package/esm/base/localization/bundles/en-US.json +1 -1
- package/esm/base/localization/bundles/es-ES.json +3 -0
- package/esm/base/localization/bundles/fr-FR.json +3 -0
- package/esm/base/localization/bundles/ja-JP.json +3 -0
- package/esm/base/localization/bundles/nl-NL.json +3 -0
- package/esm/base/localization/bundles/pt-BR.json +3 -0
- package/esm/base/localization/bundles/pt-PT.json +3 -0
- package/esm/base/localization/bundles/ru-RU.json +3 -0
- package/esm/base/localization/bundles/zh-Hans.json +3 -0
- package/esm/base/localization/intlUtils.d.ts +2 -2
- package/esm/base/localization/intlUtils.d.ts.map +1 -1
- package/esm/base/localization/intlUtils.js +3 -3
- package/esm/base/localization/intlUtils.js.map +1 -1
- package/esm/base/measureFormats/fillMissingFormats.js +1 -1
- package/esm/base/measureFormats/fillMissingFormats.js.map +1 -1
- package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +2 -2
- package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +1 -1
- package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js +2 -2
- package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +1 -1
- package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +2 -2
- package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +1 -1
- package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +3 -3
- package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +1 -1
- package/esm/base/measureTitles/fillMissingTitles.d.ts +1 -1
- package/esm/base/measureTitles/fillMissingTitles.d.ts.map +1 -1
- package/esm/base/measureTitles/fillMissingTitles.js +3 -3
- package/esm/base/measureTitles/fillMissingTitles.js.map +1 -1
- package/esm/base/react/BackendContext.js +2 -2
- package/esm/base/react/BackendContext.js.map +1 -1
- package/esm/base/react/CancelablePromise.js +1 -1
- package/esm/base/react/CancelablePromise.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +3 -3
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +6 -6
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +1 -1
- package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +2 -2
- package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +1 -1
- package/esm/base/react/PromiseCache.js +2 -2
- package/esm/base/react/PromiseCache.js.map +1 -1
- package/esm/base/react/WorkspaceContext.js +2 -2
- package/esm/base/react/WorkspaceContext.js.map +1 -1
- package/esm/base/react/legacy/availableDrillTargets.d.ts +2 -2
- package/esm/base/react/legacy/availableDrillTargets.d.ts.map +1 -1
- package/esm/base/react/legacy/availableDrillTargets.js +2 -2
- package/esm/base/react/legacy/availableDrillTargets.js.map +1 -1
- package/esm/base/react/legacy/withEntireDataView.d.ts +2 -2
- package/esm/base/react/legacy/withEntireDataView.d.ts.map +1 -1
- package/esm/base/react/legacy/withEntireDataView.js +8 -8
- package/esm/base/react/legacy/withEntireDataView.js.map +1 -1
- package/esm/base/react/placeholders/aliases.d.ts +1 -1
- package/esm/base/react/placeholders/aliases.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/context.d.ts +1 -1
- package/esm/base/react/placeholders/context.d.ts.map +1 -1
- package/esm/base/react/placeholders/context.js +1 -1
- package/esm/base/react/placeholders/context.js.map +1 -1
- package/esm/base/react/placeholders/factory.d.ts +1 -1
- package/esm/base/react/placeholders/factory.d.ts.map +1 -1
- package/esm/base/react/placeholders/factory.js +2 -2
- package/esm/base/react/placeholders/factory.js.map +1 -1
- package/esm/base/react/placeholders/hooks.d.ts +1 -1
- package/esm/base/react/placeholders/hooks.d.ts.map +1 -1
- package/esm/base/react/placeholders/hooks.js +4 -4
- package/esm/base/react/placeholders/hooks.js.map +1 -1
- package/esm/base/react/placeholders/resolve.d.ts +2 -2
- package/esm/base/react/placeholders/resolve.d.ts.map +1 -1
- package/esm/base/react/placeholders/resolve.js +2 -2
- package/esm/base/react/placeholders/resolve.js.map +1 -1
- package/esm/base/react/useCancelablePromise.js +4 -4
- package/esm/base/react/useCancelablePromise.js.map +1 -1
- package/esm/base/react/useCancelablePromiseUtils.d.ts +1 -1
- package/esm/base/react/useCancelablePromiseUtils.d.ts.map +1 -1
- package/esm/base/react/useCancelablePromiseUtils.js +2 -2
- package/esm/base/react/useCancelablePromiseUtils.js.map +1 -1
- package/esm/base/react/usePagedResource.js +1 -1
- package/esm/base/react/usePagedResource.js.map +1 -1
- package/esm/base/react/usePromiseCache.js +1 -1
- package/esm/base/react/usePromiseCache.js.map +1 -1
- package/esm/base/react/withContexts.js +4 -4
- package/esm/base/react/withContexts.js.map +1 -1
- package/esm/base/results/dataAccess.d.ts +10 -11
- package/esm/base/results/dataAccess.d.ts.map +1 -1
- package/esm/base/results/dataAccessConfig.d.ts +3 -3
- package/esm/base/results/dataAccessConfig.d.ts.map +1 -1
- package/esm/base/results/dataAccessConfig.js +6 -6
- package/esm/base/results/dataAccessConfig.js.map +1 -1
- package/esm/base/results/facade.d.ts +5 -5
- package/esm/base/results/facade.d.ts.map +1 -1
- package/esm/base/results/facade.js +4 -4
- package/esm/base/results/facade.js.map +1 -1
- package/esm/base/results/internal/dataAccessDigest.js +2 -2
- package/esm/base/results/internal/dataAccessDigest.js.map +1 -1
- package/esm/base/results/internal/dataAccessImpl.d.ts +3 -3
- package/esm/base/results/internal/dataAccessImpl.d.ts.map +1 -1
- package/esm/base/results/internal/dataAccessImpl.js +10 -7
- package/esm/base/results/internal/dataAccessImpl.js.map +1 -1
- package/esm/base/results/internal/dataAccessMethods.d.ts +2 -2
- 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.js +1 -1
- package/esm/base/results/internal/definitionMethods.js.map +1 -1
- package/esm/base/results/internal/lazyInitArray.js +1 -1
- package/esm/base/results/internal/lazyInitArray.js.map +1 -1
- package/esm/base/results/internal/resultDataMethods.js +2 -2
- package/esm/base/results/internal/resultDataMethods.js.map +1 -1
- package/esm/base/results/internal/resultMetaMethods.d.ts.map +1 -1
- package/esm/base/results/internal/resultMetaMethods.js +4 -4
- package/esm/base/results/internal/resultMetaMethods.js.map +1 -1
- package/esm/base/results/internal/utils.d.ts +8 -1
- package/esm/base/results/internal/utils.d.ts.map +1 -1
- package/esm/base/results/internal/utils.js +11 -0
- package/esm/base/results/internal/utils.js.map +1 -1
- package/esm/base/vis/DrillEvents.d.ts +2 -2
- package/esm/base/vis/DrillEvents.d.ts.map +1 -1
- package/esm/base/vis/DrillEvents.js +2 -2
- package/esm/base/vis/DrillEvents.js.map +1 -1
- package/esm/base/vis/Events.d.ts +11 -2
- package/esm/base/vis/Events.d.ts.map +1 -1
- package/esm/base/vis/VisualizationProps.d.ts +4 -4
- package/esm/base/vis/VisualizationProps.d.ts.map +1 -1
- package/esm/base/vis/drilling.d.ts +4 -4
- package/esm/base/vis/drilling.d.ts.map +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 +2 -2
- package/esm/base/vis/export.d.ts.map +1 -1
- package/esm/execution/DataViewLoader.d.ts +2 -2
- package/esm/execution/DataViewLoader.d.ts.map +1 -1
- package/esm/execution/DataViewLoader.js +3 -3
- package/esm/execution/DataViewLoader.js.map +1 -1
- package/esm/execution/Execute.d.ts +3 -3
- package/esm/execution/Execute.d.ts.map +1 -1
- package/esm/execution/Execute.js +4 -4
- package/esm/execution/Execute.js.map +1 -1
- package/esm/execution/ExecuteInsight.d.ts +2 -2
- package/esm/execution/ExecuteInsight.d.ts.map +1 -1
- package/esm/execution/ExecuteInsight.js +4 -4
- package/esm/execution/ExecuteInsight.js.map +1 -1
- package/esm/execution/RawExecute.d.ts +2 -2
- package/esm/execution/RawExecute.d.ts.map +1 -1
- package/esm/execution/RawExecute.js +2 -2
- package/esm/execution/RawExecute.js.map +1 -1
- package/esm/execution/createExecution.js +3 -3
- package/esm/execution/createExecution.js.map +1 -1
- package/esm/execution/index.d.ts +10 -10
- package/esm/execution/index.d.ts.map +1 -1
- package/esm/execution/index.js +9 -9
- package/esm/execution/index.js.map +1 -1
- package/esm/execution/interfaces.d.ts +1 -1
- package/esm/execution/interfaces.d.ts.map +1 -1
- package/esm/execution/useDataExport.d.ts +1 -1
- package/esm/execution/useDataExport.d.ts.map +1 -1
- package/esm/execution/useDataExport.js +1 -1
- package/esm/execution/useDataExport.js.map +1 -1
- package/esm/execution/useExecutionDataView.d.ts +2 -2
- 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/useInsight.d.ts +1 -1
- package/esm/execution/useInsight.d.ts.map +1 -1
- package/esm/execution/useInsight.js +1 -1
- package/esm/execution/useInsight.js.map +1 -1
- package/esm/execution/useInsightDataView.d.ts +2 -2
- package/esm/execution/useInsightDataView.d.ts.map +1 -1
- package/esm/execution/useInsightDataView.js +3 -3
- package/esm/execution/useInsightDataView.js.map +1 -1
- package/esm/execution/withExecution.d.ts +1 -1
- package/esm/execution/withExecution.d.ts.map +1 -1
- package/esm/execution/withExecution.js +2 -2
- package/esm/execution/withExecution.js.map +1 -1
- package/esm/execution/withExecutionLoading.d.ts +1 -1
- package/esm/execution/withExecutionLoading.d.ts.map +1 -1
- package/esm/execution/withExecutionLoading.js +2 -2
- package/esm/execution/withExecutionLoading.js.map +1 -1
- package/esm/index.d.ts +3 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +3 -3
- package/esm/index.js.map +1 -1
- package/esm/kpi/FormattedNumber.d.ts +2 -2
- package/esm/kpi/FormattedNumber.d.ts.map +1 -1
- package/esm/kpi/FormattedNumber.js +3 -3
- package/esm/kpi/FormattedNumber.js.map +1 -1
- package/esm/kpi/Kpi.d.ts +4 -4
- package/esm/kpi/Kpi.d.ts.map +1 -1
- package/esm/kpi/Kpi.js +7 -7
- package/esm/kpi/Kpi.js.map +1 -1
- package/esm/kpi/KpiError.d.ts +1 -1
- package/esm/kpi/KpiError.d.ts.map +1 -1
- package/esm/kpi/index.d.ts +1 -1
- package/esm/kpi/index.d.ts.map +1 -1
- package/esm/kpi/index.js +1 -1
- package/esm/kpi/index.js.map +1 -1
- package/{dist → esm}/sdk-ui.d.ts +35 -18
- package/esm/tsdoc-metadata.json +1 -1
- package/package.json +29 -39
- package/dist/base/constants/bucketNames.d.ts +0 -33
- package/dist/base/constants/bucketNames.d.ts.map +0 -1
- package/dist/base/constants/bucketNames.js +0 -47
- package/dist/base/constants/bucketNames.js.map +0 -1
- package/dist/base/constants/colorPalette.d.ts +0 -7
- package/dist/base/constants/colorPalette.d.ts.map +0 -1
- package/dist/base/constants/colorPalette.js +0 -90
- package/dist/base/constants/colorPalette.js.map +0 -1
- package/dist/base/errors/GoodDataSdkError.d.ts +0 -245
- package/dist/base/errors/GoodDataSdkError.d.ts.map +0 -1
- package/dist/base/errors/GoodDataSdkError.js +0 -346
- package/dist/base/errors/GoodDataSdkError.js.map +0 -1
- package/dist/base/errors/errorHandling.d.ts +0 -46
- package/dist/base/errors/errorHandling.d.ts.map +0 -1
- package/dist/base/errors/errorHandling.js +0 -115
- package/dist/base/errors/errorHandling.js.map +0 -1
- package/dist/base/headerMatching/HeaderPredicate.d.ts +0 -26
- package/dist/base/headerMatching/HeaderPredicate.d.ts.map +0 -1
- package/dist/base/headerMatching/HeaderPredicate.js +0 -12
- package/dist/base/headerMatching/HeaderPredicate.js.map +0 -1
- package/dist/base/headerMatching/HeaderPredicateFactory.d.ts +0 -79
- package/dist/base/headerMatching/HeaderPredicateFactory.d.ts.map +0 -1
- package/dist/base/headerMatching/HeaderPredicateFactory.js +0 -276
- package/dist/base/headerMatching/HeaderPredicateFactory.js.map +0 -1
- package/dist/base/headerMatching/MappingHeader.d.ts +0 -55
- package/dist/base/headerMatching/MappingHeader.d.ts.map +0 -1
- package/dist/base/headerMatching/MappingHeader.js +0 -125
- package/dist/base/headerMatching/MappingHeader.js.map +0 -1
- package/dist/base/helpers/logging.d.ts +0 -5
- package/dist/base/helpers/logging.d.ts.map +0 -1
- package/dist/base/helpers/logging.js +0 -12
- package/dist/base/helpers/logging.js.map +0 -1
- package/dist/base/index.d.ts +0 -58
- package/dist/base/index.d.ts.map +0 -1
- package/dist/base/index.js +0 -217
- package/dist/base/index.js.map +0 -1
- package/dist/base/interfaces/OverTimeComparison.d.ts +0 -13
- package/dist/base/interfaces/OverTimeComparison.d.ts.map +0 -1
- package/dist/base/interfaces/OverTimeComparison.js +0 -13
- package/dist/base/interfaces/OverTimeComparison.js.map +0 -1
- package/dist/base/localization/IntlStore.d.ts +0 -21
- package/dist/base/localization/IntlStore.d.ts.map +0 -1
- package/dist/base/localization/IntlStore.js +0 -46
- package/dist/base/localization/IntlStore.js.map +0 -1
- package/dist/base/localization/IntlWrapper.d.ts +0 -13
- package/dist/base/localization/IntlWrapper.d.ts.map +0 -1
- package/dist/base/localization/IntlWrapper.js +0 -25
- package/dist/base/localization/IntlWrapper.js.map +0 -1
- package/dist/base/localization/Locale.d.ts +0 -25
- package/dist/base/localization/Locale.d.ts.map +0 -1
- package/dist/base/localization/Locale.js +0 -37
- package/dist/base/localization/Locale.js.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts +0 -27
- package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/Context.js +0 -40
- package/dist/base/localization/TranslationsCustomizationProvider/Context.js.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +0 -54
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +0 -49
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts +0 -4
- package/dist/base/localization/TranslationsCustomizationProvider/index.d.ts.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/index.js +0 -16
- package/dist/base/localization/TranslationsCustomizationProvider/index.js.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts +0 -24
- package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +0 -1
- package/dist/base/localization/TranslationsCustomizationProvider/utils.js +0 -74
- package/dist/base/localization/TranslationsCustomizationProvider/utils.js.map +0 -1
- package/dist/base/localization/TranslationsProvider.d.ts +0 -33
- package/dist/base/localization/TranslationsProvider.d.ts.map +0 -1
- package/dist/base/localization/TranslationsProvider.js +0 -31
- package/dist/base/localization/TranslationsProvider.js.map +0 -1
- package/dist/base/localization/bundles/de-DE.json +0 -371
- package/dist/base/localization/bundles/en-US.json +0 -1964
- package/dist/base/localization/bundles/es-ES.json +0 -371
- package/dist/base/localization/bundles/fr-FR.json +0 -371
- package/dist/base/localization/bundles/ja-JP.json +0 -371
- package/dist/base/localization/bundles/nl-NL.json +0 -371
- package/dist/base/localization/bundles/pt-BR.json +0 -371
- package/dist/base/localization/bundles/pt-PT.json +0 -371
- package/dist/base/localization/bundles/ru-RU.json +0 -371
- package/dist/base/localization/bundles/zh-Hans.json +0 -371
- package/dist/base/localization/intlUtils.d.ts +0 -33
- package/dist/base/localization/intlUtils.d.ts.map +0 -1
- package/dist/base/localization/intlUtils.js +0 -65
- package/dist/base/localization/intlUtils.js.map +0 -1
- package/dist/base/localization/messagesMap.d.ts +0 -13
- package/dist/base/localization/messagesMap.d.ts.map +0 -1
- package/dist/base/localization/messagesMap.js +0 -32
- package/dist/base/localization/messagesMap.js.map +0 -1
- package/dist/base/measureFormats/fillMissingFormat.d.ts +0 -12
- package/dist/base/measureFormats/fillMissingFormat.d.ts.map +0 -1
- package/dist/base/measureFormats/fillMissingFormat.js +0 -27
- package/dist/base/measureFormats/fillMissingFormat.js.map +0 -1
- package/dist/base/measureFormats/fillMissingFormats.d.ts +0 -12
- package/dist/base/measureFormats/fillMissingFormats.d.ts.map +0 -1
- package/dist/base/measureFormats/fillMissingFormats.js +0 -20
- package/dist/base/measureFormats/fillMissingFormats.js.map +0 -1
- package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts +0 -32
- package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +0 -1
- package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js +0 -69
- package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +0 -1
- package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts +0 -28
- package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +0 -1
- package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +0 -49
- package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +0 -1
- package/dist/base/measureTitles/MeasureTitle.d.ts +0 -21
- package/dist/base/measureTitles/MeasureTitle.d.ts.map +0 -1
- package/dist/base/measureTitles/MeasureTitle.js +0 -3
- package/dist/base/measureTitles/MeasureTitle.js.map +0 -1
- package/dist/base/measureTitles/fillMissingTitles.d.ts +0 -23
- package/dist/base/measureTitles/fillMissingTitles.d.ts.map +0 -1
- package/dist/base/measureTitles/fillMissingTitles.js +0 -157
- package/dist/base/measureTitles/fillMissingTitles.js.map +0 -1
- package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts +0 -14
- package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.d.ts.map +0 -1
- package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js +0 -32
- package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js.map +0 -1
- package/dist/base/react/BackendContext.d.ts +0 -78
- package/dist/base/react/BackendContext.d.ts.map +0 -1
- package/dist/base/react/BackendContext.js +0 -89
- package/dist/base/react/BackendContext.js.map +0 -1
- package/dist/base/react/CancelablePromise.d.ts +0 -38
- package/dist/base/react/CancelablePromise.d.ts.map +0 -1
- package/dist/base/react/CancelablePromise.js +0 -82
- package/dist/base/react/CancelablePromise.js.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +0 -116
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +0 -134
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts +0 -35
- package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/interfaces.js +0 -4
- package/dist/base/react/ClientWorkspaceContext/interfaces.js.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts +0 -17
- package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.d.ts.map +0 -1
- package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +0 -76
- package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +0 -1
- package/dist/base/react/ErrorComponent.d.ts +0 -35
- package/dist/base/react/ErrorComponent.d.ts.map +0 -1
- package/dist/base/react/ErrorComponent.js +0 -90
- package/dist/base/react/ErrorComponent.js.map +0 -1
- package/dist/base/react/LoadingComponent.d.ts +0 -28
- package/dist/base/react/LoadingComponent.d.ts.map +0 -1
- package/dist/base/react/LoadingComponent.js +0 -81
- package/dist/base/react/LoadingComponent.js.map +0 -1
- package/dist/base/react/PromiseCache.d.ts +0 -21
- package/dist/base/react/PromiseCache.d.ts.map +0 -1
- package/dist/base/react/PromiseCache.js +0 -66
- package/dist/base/react/PromiseCache.js.map +0 -1
- package/dist/base/react/WorkspaceContext.d.ts +0 -77
- package/dist/base/react/WorkspaceContext.d.ts.map +0 -1
- package/dist/base/react/WorkspaceContext.js +0 -89
- package/dist/base/react/WorkspaceContext.js.map +0 -1
- package/dist/base/react/legacy/availableDrillTargets.d.ts +0 -12
- package/dist/base/react/legacy/availableDrillTargets.d.ts.map +0 -1
- package/dist/base/react/legacy/availableDrillTargets.js +0 -49
- package/dist/base/react/legacy/availableDrillTargets.js.map +0 -1
- package/dist/base/react/legacy/withEntireDataView.d.ts +0 -51
- package/dist/base/react/legacy/withEntireDataView.d.ts.map +0 -1
- package/dist/base/react/legacy/withEntireDataView.js +0 -171
- package/dist/base/react/legacy/withEntireDataView.js.map +0 -1
- package/dist/base/react/placeholders/aliases.d.ts +0 -92
- package/dist/base/react/placeholders/aliases.d.ts.map +0 -1
- package/dist/base/react/placeholders/aliases.js +0 -3
- package/dist/base/react/placeholders/aliases.js.map +0 -1
- package/dist/base/react/placeholders/base.d.ts +0 -279
- package/dist/base/react/placeholders/base.d.ts.map +0 -1
- package/dist/base/react/placeholders/base.js +0 -33
- package/dist/base/react/placeholders/base.js.map +0 -1
- package/dist/base/react/placeholders/context.d.ts +0 -36
- package/dist/base/react/placeholders/context.d.ts.map +0 -1
- package/dist/base/react/placeholders/context.js +0 -47
- package/dist/base/react/placeholders/context.js.map +0 -1
- package/dist/base/react/placeholders/factory.d.ts +0 -34
- package/dist/base/react/placeholders/factory.d.ts.map +0 -1
- package/dist/base/react/placeholders/factory.js +0 -45
- package/dist/base/react/placeholders/factory.js.map +0 -1
- package/dist/base/react/placeholders/hooks.d.ts +0 -70
- package/dist/base/react/placeholders/hooks.d.ts.map +0 -1
- package/dist/base/react/placeholders/hooks.js +0 -150
- package/dist/base/react/placeholders/hooks.js.map +0 -1
- package/dist/base/react/placeholders/resolve.d.ts +0 -30
- package/dist/base/react/placeholders/resolve.d.ts.map +0 -1
- package/dist/base/react/placeholders/resolve.js +0 -82
- package/dist/base/react/placeholders/resolve.js.map +0 -1
- package/dist/base/react/safeSerialize.d.ts +0 -9
- package/dist/base/react/safeSerialize.d.ts.map +0 -1
- package/dist/base/react/safeSerialize.js +0 -21
- package/dist/base/react/safeSerialize.js.map +0 -1
- package/dist/base/react/useCancelablePromise.d.ts +0 -99
- package/dist/base/react/useCancelablePromise.d.ts.map +0 -1
- package/dist/base/react/useCancelablePromise.js +0 -112
- package/dist/base/react/useCancelablePromise.js.map +0 -1
- package/dist/base/react/useCancelablePromiseUtils.d.ts +0 -48
- package/dist/base/react/useCancelablePromiseUtils.d.ts.map +0 -1
- package/dist/base/react/useCancelablePromiseUtils.js +0 -107
- package/dist/base/react/useCancelablePromiseUtils.js.map +0 -1
- package/dist/base/react/usePagedResource.d.ts +0 -21
- package/dist/base/react/usePagedResource.d.ts.map +0 -1
- package/dist/base/react/usePagedResource.js +0 -44
- package/dist/base/react/usePagedResource.js.map +0 -1
- package/dist/base/react/usePrevious.d.ts +0 -8
- package/dist/base/react/usePrevious.d.ts.map +0 -1
- package/dist/base/react/usePrevious.js +0 -20
- package/dist/base/react/usePrevious.js.map +0 -1
- package/dist/base/react/usePromiseCache.d.ts +0 -18
- package/dist/base/react/usePromiseCache.d.ts.map +0 -1
- package/dist/base/react/usePromiseCache.js +0 -61
- package/dist/base/react/usePromiseCache.js.map +0 -1
- package/dist/base/react/withContexts.d.ts +0 -11
- package/dist/base/react/withContexts.d.ts.map +0 -1
- package/dist/base/react/withContexts.js +0 -18
- package/dist/base/react/withContexts.js.map +0 -1
- package/dist/base/react/wrapDisplayName.d.ts +0 -7
- package/dist/base/react/wrapDisplayName.d.ts.map +0 -1
- package/dist/base/react/wrapDisplayName.js +0 -24
- package/dist/base/react/wrapDisplayName.js.map +0 -1
- package/dist/base/results/dataAccess.d.ts +0 -373
- package/dist/base/results/dataAccess.d.ts.map +0 -1
- package/dist/base/results/dataAccess.js +0 -3
- package/dist/base/results/dataAccess.js.map +0 -1
- package/dist/base/results/dataAccessConfig.d.ts +0 -42
- package/dist/base/results/dataAccessConfig.d.ts.map +0 -1
- package/dist/base/results/dataAccessConfig.js +0 -38
- package/dist/base/results/dataAccessConfig.js.map +0 -1
- package/dist/base/results/facade.d.ts +0 -95
- package/dist/base/results/facade.d.ts.map +0 -1
- package/dist/base/results/facade.js +0 -158
- package/dist/base/results/facade.js.map +0 -1
- package/dist/base/results/internal/dataAccessDigest.d.ts +0 -113
- package/dist/base/results/internal/dataAccessDigest.d.ts.map +0 -1
- package/dist/base/results/internal/dataAccessDigest.js +0 -143
- package/dist/base/results/internal/dataAccessDigest.js.map +0 -1
- package/dist/base/results/internal/dataAccessImpl.d.ts +0 -37
- package/dist/base/results/internal/dataAccessImpl.d.ts.map +0 -1
- package/dist/base/results/internal/dataAccessImpl.js +0 -381
- package/dist/base/results/internal/dataAccessImpl.js.map +0 -1
- package/dist/base/results/internal/dataAccessMethods.d.ts +0 -8
- package/dist/base/results/internal/dataAccessMethods.d.ts.map +0 -1
- package/dist/base/results/internal/dataAccessMethods.js +0 -122
- package/dist/base/results/internal/dataAccessMethods.js.map +0 -1
- package/dist/base/results/internal/definitionMethods.d.ts +0 -90
- package/dist/base/results/internal/definitionMethods.d.ts.map +0 -1
- package/dist/base/results/internal/definitionMethods.js +0 -82
- package/dist/base/results/internal/definitionMethods.js.map +0 -1
- package/dist/base/results/internal/lazyInitArray.d.ts +0 -15
- package/dist/base/results/internal/lazyInitArray.d.ts.map +0 -1
- package/dist/base/results/internal/lazyInitArray.js +0 -48
- package/dist/base/results/internal/lazyInitArray.js.map +0 -1
- package/dist/base/results/internal/resultDataMethods.d.ts +0 -82
- package/dist/base/results/internal/resultDataMethods.d.ts.map +0 -1
- package/dist/base/results/internal/resultDataMethods.js +0 -85
- package/dist/base/results/internal/resultDataMethods.js.map +0 -1
- package/dist/base/results/internal/resultMetaMethods.d.ts +0 -89
- package/dist/base/results/internal/resultMetaMethods.d.ts.map +0 -1
- package/dist/base/results/internal/resultMetaMethods.js +0 -145
- package/dist/base/results/internal/resultMetaMethods.js.map +0 -1
- package/dist/base/results/internal/utils.d.ts +0 -23
- package/dist/base/results/internal/utils.d.ts.map +0 -1
- package/dist/base/results/internal/utils.js +0 -42
- package/dist/base/results/internal/utils.js.map +0 -1
- package/dist/base/typings/subtract.d.ts +0 -5
- package/dist/base/typings/subtract.d.ts.map +0 -1
- package/dist/base/typings/subtract.js +0 -3
- package/dist/base/typings/subtract.js.map +0 -1
- package/dist/base/vis/DrillEvents.d.ts +0 -191
- package/dist/base/vis/DrillEvents.d.ts.map +0 -1
- package/dist/base/vis/DrillEvents.js +0 -42
- package/dist/base/vis/DrillEvents.js.map +0 -1
- package/dist/base/vis/Events.d.ts +0 -85
- package/dist/base/vis/Events.d.ts.map +0 -1
- package/dist/base/vis/Events.js +0 -3
- package/dist/base/vis/Events.js.map +0 -1
- package/dist/base/vis/VisualizationProps.d.ts +0 -94
- package/dist/base/vis/VisualizationProps.d.ts.map +0 -1
- package/dist/base/vis/VisualizationProps.js +0 -4
- package/dist/base/vis/VisualizationProps.js.map +0 -1
- package/dist/base/vis/drilling.d.ts +0 -30
- package/dist/base/vis/drilling.d.ts.map +0 -1
- package/dist/base/vis/drilling.js +0 -102
- package/dist/base/vis/drilling.js.map +0 -1
- package/dist/base/vis/export.d.ts +0 -21
- package/dist/base/vis/export.d.ts.map +0 -1
- package/dist/base/vis/export.js +0 -47
- package/dist/base/vis/export.js.map +0 -1
- package/dist/base/vis/visualizationTypes.d.ts +0 -76
- package/dist/base/vis/visualizationTypes.d.ts.map +0 -1
- package/dist/base/vis/visualizationTypes.js +0 -46
- package/dist/base/vis/visualizationTypes.js.map +0 -1
- package/dist/execution/DataViewLoader.d.ts +0 -70
- package/dist/execution/DataViewLoader.d.ts.map +0 -1
- package/dist/execution/DataViewLoader.js +0 -102
- package/dist/execution/DataViewLoader.js.map +0 -1
- package/dist/execution/Execute.d.ts +0 -134
- package/dist/execution/Execute.d.ts.map +0 -1
- package/dist/execution/Execute.js +0 -99
- package/dist/execution/Execute.js.map +0 -1
- package/dist/execution/ExecuteInsight.d.ts +0 -136
- package/dist/execution/ExecuteInsight.d.ts.map +0 -1
- package/dist/execution/ExecuteInsight.js +0 -99
- package/dist/execution/ExecuteInsight.js.map +0 -1
- package/dist/execution/RawExecute.d.ts +0 -86
- package/dist/execution/RawExecute.d.ts.map +0 -1
- package/dist/execution/RawExecute.js +0 -76
- package/dist/execution/RawExecute.js.map +0 -1
- package/dist/execution/createExecution.d.ts +0 -61
- package/dist/execution/createExecution.d.ts.map +0 -1
- package/dist/execution/createExecution.js +0 -57
- package/dist/execution/createExecution.js.map +0 -1
- package/dist/execution/index.d.ts +0 -11
- package/dist/execution/index.d.ts.map +0 -1
- package/dist/execution/index.js +0 -23
- package/dist/execution/index.js.map +0 -1
- package/dist/execution/interfaces.d.ts +0 -23
- package/dist/execution/interfaces.d.ts.map +0 -1
- package/dist/execution/interfaces.js +0 -3
- package/dist/execution/interfaces.js.map +0 -1
- package/dist/execution/useDataExport.d.ts +0 -27
- package/dist/execution/useDataExport.d.ts.map +0 -1
- package/dist/execution/useDataExport.js +0 -35
- package/dist/execution/useDataExport.js.map +0 -1
- package/dist/execution/useExecutionDataView.d.ts +0 -94
- package/dist/execution/useExecutionDataView.d.ts.map +0 -1
- package/dist/execution/useExecutionDataView.js +0 -79
- package/dist/execution/useExecutionDataView.js.map +0 -1
- package/dist/execution/useInsight.d.ts +0 -32
- package/dist/execution/useInsight.d.ts.map +0 -1
- package/dist/execution/useInsight.js +0 -22
- package/dist/execution/useInsight.js.map +0 -1
- package/dist/execution/useInsightDataView.d.ts +0 -88
- package/dist/execution/useInsightDataView.d.ts.map +0 -1
- package/dist/execution/useInsightDataView.js +0 -54
- package/dist/execution/useInsightDataView.js.map +0 -1
- package/dist/execution/withExecution.d.ts +0 -59
- package/dist/execution/withExecution.d.ts.map +0 -1
- package/dist/execution/withExecution.js +0 -46
- package/dist/execution/withExecution.js.map +0 -1
- package/dist/execution/withExecutionLoading.d.ts +0 -145
- package/dist/execution/withExecutionLoading.d.ts.map +0 -1
- package/dist/execution/withExecutionLoading.js +0 -157
- package/dist/execution/withExecutionLoading.js.map +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -22
- package/dist/index.js.map +0 -1
- package/dist/kpi/FormattedNumber.d.ts +0 -16
- package/dist/kpi/FormattedNumber.d.ts.map +0 -1
- package/dist/kpi/FormattedNumber.js +0 -18
- package/dist/kpi/FormattedNumber.js.map +0 -1
- package/dist/kpi/Kpi.d.ts +0 -65
- package/dist/kpi/Kpi.d.ts.map +0 -1
- package/dist/kpi/Kpi.js +0 -72
- package/dist/kpi/Kpi.js.map +0 -1
- package/dist/kpi/KpiError.d.ts +0 -7
- package/dist/kpi/KpiError.d.ts.map +0 -1
- package/dist/kpi/KpiError.js +0 -23
- package/dist/kpi/KpiError.js.map +0 -1
- package/dist/kpi/index.d.ts +0 -2
- package/dist/kpi/index.d.ts.map +0 -1
- package/dist/kpi/index.js +0 -7
- package/dist/kpi/index.js.map +0 -1
- package/dist/locales.d.ts +0 -3
- package/dist/locales.d.ts.map +0 -1
- package/dist/locales.js +0 -22
- package/dist/locales.js.map +0 -1
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { DependencyList } from "react";
|
|
2
|
-
import { IExportConfig, IPreparedExecution } from "@gooddata/sdk-backend-spi";
|
|
3
|
-
import { GoodDataSdkError, UseCancelablePromiseCallbacks, UseCancelablePromiseState } from "../base";
|
|
4
|
-
/**
|
|
5
|
-
* Indicates current state of useDataExport hook
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type UseDataExportState = UseCancelablePromiseState<string, GoodDataSdkError>;
|
|
9
|
-
/**
|
|
10
|
-
* Callbacks for useDataExport hook
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
export type UseDataExportCallbacks = UseCancelablePromiseCallbacks<string, GoodDataSdkError>;
|
|
14
|
-
/**
|
|
15
|
-
* This hook provides easy way to export data in your preferred format (csv/xlsx/raw) for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* As a result, you will receive a string with uri, so you can easily create a download link.
|
|
19
|
-
* Be aware that execution is re-executed only on dependency list change, not on execution/exportConfig/callbacks change.
|
|
20
|
-
*
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
export declare function useDataExport({ execution, exportConfig, onCancel, onError, onLoading, onPending, onSuccess, }: {
|
|
24
|
-
execution: IPreparedExecution | undefined | null;
|
|
25
|
-
exportConfig?: IExportConfig;
|
|
26
|
-
} & UseDataExportCallbacks, deps?: DependencyList): UseDataExportState;
|
|
27
|
-
//# sourceMappingURL=useDataExport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDataExport.d.ts","sourceRoot":"","sources":["../../src/execution/useDataExport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAEH,gBAAgB,EAEhB,6BAA6B,EAC7B,yBAAyB,EAC5B,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAErF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,6BAA6B,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAE7F;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CACzB,EACI,SAAS,EACT,YAAiB,EACjB,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,GACZ,EAAE;IACC,SAAS,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI,CAAC;IACjD,YAAY,CAAC,EAAE,aAAa,CAAC;CAChC,GAAG,sBAAsB,EAC1B,IAAI,CAAC,EAAE,cAAc,GACtB,kBAAkB,CAuBpB"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useDataExport = void 0;
|
|
4
|
-
const base_1 = require("../base");
|
|
5
|
-
/**
|
|
6
|
-
* This hook provides easy way to export data in your preferred format (csv/xlsx/raw) for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* As a result, you will receive a string with uri, so you can easily create a download link.
|
|
10
|
-
* Be aware that execution is re-executed only on dependency list change, not on execution/exportConfig/callbacks change.
|
|
11
|
-
*
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
function useDataExport({ execution, exportConfig = {}, onCancel, onError, onLoading, onPending, onSuccess, }, deps) {
|
|
15
|
-
return (0, base_1.useCancelablePromise)({
|
|
16
|
-
promise: execution
|
|
17
|
-
? () => execution
|
|
18
|
-
.execute()
|
|
19
|
-
.then((executionResult) => executionResult.export(exportConfig))
|
|
20
|
-
.then((exportResult) => {
|
|
21
|
-
return exportResult.uri;
|
|
22
|
-
})
|
|
23
|
-
.catch((error) => {
|
|
24
|
-
throw (0, base_1.convertError)(error);
|
|
25
|
-
})
|
|
26
|
-
: null,
|
|
27
|
-
onCancel,
|
|
28
|
-
onError,
|
|
29
|
-
onLoading,
|
|
30
|
-
onPending,
|
|
31
|
-
onSuccess,
|
|
32
|
-
}, deps);
|
|
33
|
-
}
|
|
34
|
-
exports.useDataExport = useDataExport;
|
|
35
|
-
//# sourceMappingURL=useDataExport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDataExport.js","sourceRoot":"","sources":["../../src/execution/useDataExport.ts"],"names":[],"mappings":";;;AAGA,kCAMiB;AAcjB;;;;;;;;GAQG;AACH,SAAgB,aAAa,CACzB,EACI,SAAS,EACT,YAAY,GAAG,EAAE,EACjB,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,GAIa,EAC1B,IAAqB;IAErB,OAAO,IAAA,2BAAoB,EACvB;QACI,OAAO,EAAE,SAAS;YACd,CAAC,CAAC,GAAG,EAAE,CACD,SAAS;iBACJ,OAAO,EAAE;iBACT,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;iBAC/D,IAAI,CAAC,CAAC,YAAY,EAAE,EAAE;gBACnB,OAAO,YAAY,CAAC,GAAG,CAAC;YAC5B,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBACb,MAAM,IAAA,mBAAY,EAAC,KAAK,CAAC,CAAC;YAC9B,CAAC,CAAC;YACZ,CAAC,CAAC,IAAI;QACV,QAAQ;QACR,OAAO;QACP,SAAS;QACT,SAAS;QACT,SAAS;KACZ,EACD,IAAI,CACP,CAAC;AACN,CAAC;AArCD,sCAqCC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IAnalyticalBackend, IPreparedExecution } from "@gooddata/sdk-backend-spi";
|
|
3
|
-
import { DataViewWindow } from "./withExecutionLoading";
|
|
4
|
-
import { DataViewFacade, GoodDataSdkError, UseCancelablePromiseState, AttributesMeasuresOrPlaceholders, AttributesOrPlaceholders, NullableFiltersOrPlaceholders, SortsOrPlaceholders, TotalsOrPlaceholders, UseCancelablePromiseCallbacks } from "../base";
|
|
5
|
-
/**
|
|
6
|
-
* Convenient interface to define execution by series and slices.
|
|
7
|
-
*
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
export interface IExecutionConfiguration {
|
|
11
|
-
/**
|
|
12
|
-
* Data series will be built using the provided measures that are further scoped for
|
|
13
|
-
* elements of the specified attributes.
|
|
14
|
-
*/
|
|
15
|
-
seriesBy: AttributesMeasuresOrPlaceholders;
|
|
16
|
-
/**
|
|
17
|
-
* Slice all data series by elements of these attributes.
|
|
18
|
-
*/
|
|
19
|
-
slicesBy?: AttributesOrPlaceholders;
|
|
20
|
-
/**
|
|
21
|
-
* Include these totals among the data slices.
|
|
22
|
-
*/
|
|
23
|
-
totals?: TotalsOrPlaceholders;
|
|
24
|
-
/**
|
|
25
|
-
* Filters to apply on server side.
|
|
26
|
-
*/
|
|
27
|
-
filters?: NullableFiltersOrPlaceholders;
|
|
28
|
-
/**
|
|
29
|
-
* Sorting to apply on server side.
|
|
30
|
-
*/
|
|
31
|
-
sortBy?: SortsOrPlaceholders;
|
|
32
|
-
/**
|
|
33
|
-
* Resolution context for composed placeholders.
|
|
34
|
-
*/
|
|
35
|
-
placeholdersResolutionContext?: any;
|
|
36
|
-
/**
|
|
37
|
-
* Informative name of the component.
|
|
38
|
-
*
|
|
39
|
-
* @remarks
|
|
40
|
-
* This value is sent as telemetry information together with the actual execution request.
|
|
41
|
-
* We recommend to set this because it can be useful for diagnostic purposes.
|
|
42
|
-
*
|
|
43
|
-
* Defaults 'Execute'.
|
|
44
|
-
*/
|
|
45
|
-
componentName?: string;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Configuration for {@link useExecutionDataView} hook.
|
|
49
|
-
* See also {@link UseExecutionDataViewCallbacks}.
|
|
50
|
-
*
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
export interface IUseExecutionDataViewConfig {
|
|
54
|
-
/**
|
|
55
|
-
* Prepared execution, or execution configuration for which you want to get the data view.
|
|
56
|
-
*/
|
|
57
|
-
execution?: IPreparedExecution | IExecutionConfiguration;
|
|
58
|
-
/**
|
|
59
|
-
* You can define only a specific "window" of data to load.
|
|
60
|
-
*
|
|
61
|
-
* @remarks
|
|
62
|
-
* This is useful if you want to page data.
|
|
63
|
-
*/
|
|
64
|
-
window?: DataViewWindow;
|
|
65
|
-
/**
|
|
66
|
-
* Backend to work with.
|
|
67
|
-
*
|
|
68
|
-
* @remarks
|
|
69
|
-
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
70
|
-
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
71
|
-
*/
|
|
72
|
-
backend?: IAnalyticalBackend;
|
|
73
|
-
/**
|
|
74
|
-
* Workspace where execution should be executed.
|
|
75
|
-
*
|
|
76
|
-
* @remarks
|
|
77
|
-
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
78
|
-
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
79
|
-
*/
|
|
80
|
-
workspace?: string;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Callbacks for {@link useExecutionDataView} hook.
|
|
84
|
-
*
|
|
85
|
-
* @public
|
|
86
|
-
*/
|
|
87
|
-
export type UseExecutionDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
|
|
88
|
-
/**
|
|
89
|
-
* React hook to get data for a specific execution.
|
|
90
|
-
*
|
|
91
|
-
* @public
|
|
92
|
-
*/
|
|
93
|
-
export declare function useExecutionDataView(config: IUseExecutionDataViewConfig & UseExecutionDataViewCallbacks, deps?: React.DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
94
|
-
//# sourceMappingURL=useExecutionDataView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExecutionDataView.d.ts","sourceRoot":"","sources":["../../src/execution/useExecutionDataView.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EACH,cAAc,EACd,gBAAgB,EAGhB,yBAAyB,EAEzB,gCAAgC,EAChC,wBAAwB,EACxB,6BAA6B,EAC7B,mBAAmB,EACnB,oBAAoB,EACpB,6BAA6B,EAGhC,MAAM,SAAS,CAAC;AAIjB;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;OAGG;IACH,QAAQ,EAAE,gCAAgC,CAAC;IAE3C;;OAEG;IACH,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IAEpC;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAE9B;;OAEG;IACH,OAAO,CAAC,EAAE,6BAA6B,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAE7B;;OAEG;IACH,6BAA6B,CAAC,EAAE,GAAG,CAAC;IAEpC;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AASD;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,GAAG,uBAAuB,CAAC;IAEzD;;;;;OAKG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG,6BAA6B,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAE5G;;;;GAIG;AACH,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,2BAA2B,GAAG,6BAA6B,EACnE,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,GAC5B,yBAAyB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAgE7D"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useExecutionDataView = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const base_1 = require("../base");
|
|
6
|
-
const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
|
|
7
|
-
const createExecution_1 = require("./createExecution");
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
function isExecutionConfiguration(obj) {
|
|
12
|
-
return !(0, isEmpty_1.default)(obj) && !!(obj === null || obj === void 0 ? void 0 : obj.seriesBy);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* React hook to get data for a specific execution.
|
|
16
|
-
*
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
|
-
function useExecutionDataView(config, deps) {
|
|
20
|
-
var _a, _b, _c;
|
|
21
|
-
const { execution, window, onCancel, onError, onLoading, onPending, onSuccess } = config;
|
|
22
|
-
const backend = (0, base_1.useBackendStrict)(config.backend, "useExecutionDataView");
|
|
23
|
-
const workspace = (0, base_1.useWorkspaceStrict)(config.workspace, "useExecutionDataView");
|
|
24
|
-
const effectiveDeps = deps !== null && deps !== void 0 ? deps : [];
|
|
25
|
-
const propsToResolve = getExecutionConfigurationProps(config.execution);
|
|
26
|
-
const [seriesBy, slicesBy, totals, filters, sortBy] = (0, base_1.useResolveValuesWithPlaceholders)([
|
|
27
|
-
propsToResolve.seriesBy,
|
|
28
|
-
propsToResolve.slicesBy,
|
|
29
|
-
propsToResolve.totals,
|
|
30
|
-
propsToResolve.filters,
|
|
31
|
-
propsToResolve.sortBy,
|
|
32
|
-
], propsToResolve.placeholdersResolutionContext);
|
|
33
|
-
const preparedExecution = isExecutionConfiguration(execution)
|
|
34
|
-
? (0, createExecution_1.createExecution)(Object.assign(Object.assign({}, execution), { seriesBy: seriesBy, slicesBy,
|
|
35
|
-
totals,
|
|
36
|
-
filters,
|
|
37
|
-
sortBy,
|
|
38
|
-
backend,
|
|
39
|
-
workspace }))
|
|
40
|
-
: execution;
|
|
41
|
-
return (0, base_1.useCancelablePromise)({
|
|
42
|
-
promise: preparedExecution
|
|
43
|
-
? () => preparedExecution
|
|
44
|
-
.execute()
|
|
45
|
-
.then((executionResult) => window
|
|
46
|
-
? executionResult.readWindow(window.offset, window.size)
|
|
47
|
-
: executionResult.readAll())
|
|
48
|
-
.then((dataView) => {
|
|
49
|
-
return base_1.DataViewFacade.for(dataView);
|
|
50
|
-
})
|
|
51
|
-
.catch((error) => {
|
|
52
|
-
throw (0, base_1.convertError)(error);
|
|
53
|
-
})
|
|
54
|
-
: null,
|
|
55
|
-
onCancel,
|
|
56
|
-
onError,
|
|
57
|
-
onLoading,
|
|
58
|
-
onPending,
|
|
59
|
-
onSuccess,
|
|
60
|
-
}, [
|
|
61
|
-
backend,
|
|
62
|
-
workspace,
|
|
63
|
-
(_a = preparedExecution === null || preparedExecution === void 0 ? void 0 : preparedExecution.fingerprint()) !== null && _a !== void 0 ? _a : "__executionFingerprint__",
|
|
64
|
-
(_b = window === null || window === void 0 ? void 0 : window.offset) !== null && _b !== void 0 ? _b : "__offset__",
|
|
65
|
-
(_c = window === null || window === void 0 ? void 0 : window.size) !== null && _c !== void 0 ? _c : "__size__",
|
|
66
|
-
...effectiveDeps,
|
|
67
|
-
]);
|
|
68
|
-
}
|
|
69
|
-
exports.useExecutionDataView = useExecutionDataView;
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
function getExecutionConfigurationProps(execution) {
|
|
74
|
-
if (isExecutionConfiguration(execution)) {
|
|
75
|
-
return execution;
|
|
76
|
-
}
|
|
77
|
-
return {};
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=useExecutionDataView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExecutionDataView.js","sourceRoot":"","sources":["../../src/execution/useExecutionDataView.ts"],"names":[],"mappings":";;;;AAGA,kCAeiB;AACjB,qEAAqC;AACrC,uDAAoD;AAmDpD;;GAEG;AACH,SAAS,wBAAwB,CAAC,GAAY;IAC1C,OAAO,CAAC,IAAA,iBAAO,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,GAA+B,aAA/B,GAAG,uBAAH,GAAG,CAA8B,QAAQ,CAAA,CAAC;AACzE,CAAC;AAgDD;;;;GAIG;AACH,SAAgB,oBAAoB,CAChC,MAAmE,EACnE,IAA2B;;IAE3B,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IACzF,MAAM,OAAO,GAAG,IAAA,uBAAgB,EAAC,MAAM,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC;IACzE,MAAM,SAAS,GAAG,IAAA,yBAAkB,EAAC,MAAM,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC;IAC/E,MAAM,aAAa,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,8BAA8B,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACxE,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,IAAA,uCAAgC,EAClF;QACI,cAAc,CAAC,QAAQ;QACvB,cAAc,CAAC,QAAQ;QACvB,cAAc,CAAC,MAAM;QACrB,cAAc,CAAC,OAAO;QACtB,cAAc,CAAC,MAAM;KACxB,EACD,cAAc,CAAC,6BAA6B,CAC/C,CAAC;IAEF,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,SAAS,CAAC;QACzD,CAAC,CAAC,IAAA,iCAAe,kCACR,SAAS,KACZ,QAAQ,EAAE,QAAS,EACnB,QAAQ;YACR,MAAM;YACN,OAAO;YACP,MAAM;YACN,OAAO;YACP,SAAS,IACX;QACJ,CAAC,CAAC,SAAS,CAAC;IAEhB,OAAO,IAAA,2BAAoB,EACvB;QACI,OAAO,EAAE,iBAAiB;YACtB,CAAC,CAAC,GAAG,EAAE,CACD,iBAAiB;iBACZ,OAAO,EAAE;iBACT,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE,CACtB,MAAM;gBACF,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC;gBACxD,CAAC,CAAC,eAAe,CAAC,OAAO,EAAE,CAClC;iBACA,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACf,OAAO,qBAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACxC,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBACb,MAAM,IAAA,mBAAY,EAAC,KAAK,CAAC,CAAC;YAC9B,CAAC,CAAC;YACZ,CAAC,CAAC,IAAI;QACV,QAAQ;QACR,OAAO;QACP,SAAS;QACT,SAAS;QACT,SAAS;KACZ,EACD;QACI,OAAO;QACP,SAAS;QACT,MAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,EAAE,mCAAI,0BAA0B;QAC9D,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,mCAAI,YAAY;QAC9B,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,mCAAI,UAAU;QAC1B,GAAG,aAAa;KACnB,CACJ,CAAC;AACN,CAAC;AAnED,oDAmEC;AAED;;GAEG;AACH,SAAS,8BAA8B,CACnC,SAAwD;IAExD,IAAI,wBAAwB,CAAC,SAAS,CAAC,EAAE;QACrC,OAAO,SAAS,CAAC;KACpB;IAED,OAAO,EAAE,CAAC;AACd,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
3
|
-
import { IInsight, ObjRef } from "@gooddata/sdk-model";
|
|
4
|
-
import { UseCancelablePromiseState, GoodDataSdkError } from "../base";
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export interface IUseInsightConfig {
|
|
9
|
-
/**
|
|
10
|
-
* Insight reference - when the reference is not provided, hook is locked in a "pending" state.
|
|
11
|
-
*/
|
|
12
|
-
insight?: ObjRef;
|
|
13
|
-
/**
|
|
14
|
-
* Backend to work with.
|
|
15
|
-
*
|
|
16
|
-
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
17
|
-
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
18
|
-
*/
|
|
19
|
-
backend?: IAnalyticalBackend;
|
|
20
|
-
/**
|
|
21
|
-
* Workspace where execution should be executed.
|
|
22
|
-
*
|
|
23
|
-
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
24
|
-
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
25
|
-
*/
|
|
26
|
-
workspace?: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
export declare function useInsight(config: IUseInsightConfig, deps?: React.DependencyList): UseCancelablePromiseState<IInsight, GoodDataSdkError>;
|
|
32
|
-
//# sourceMappingURL=useInsight.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useInsight.d.ts","sourceRoot":"","sources":["../../src/execution/useInsight.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAkB,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAIH,yBAAyB,EACzB,gBAAgB,EACnB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,UAAU,CACtB,MAAM,EAAE,iBAAiB,EACzB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,GAC5B,yBAAyB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAYvD"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useInsight = void 0;
|
|
4
|
-
const sdk_model_1 = require("@gooddata/sdk-model");
|
|
5
|
-
const base_1 = require("../base");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
function useInsight(config, deps) {
|
|
10
|
-
const { insight } = config;
|
|
11
|
-
const backend = (0, base_1.useBackendStrict)(config.backend, "useInsight");
|
|
12
|
-
const workspace = (0, base_1.useWorkspaceStrict)(config.workspace, "useInsight");
|
|
13
|
-
const promise = insight ? () => backend.workspace(workspace).insights().getInsight(insight) : null;
|
|
14
|
-
return (0, base_1.useCancelablePromise)({ promise }, [
|
|
15
|
-
backend,
|
|
16
|
-
workspace,
|
|
17
|
-
insight ? (0, sdk_model_1.objRefToString)(insight) : "__insightRef__",
|
|
18
|
-
...(deps !== null && deps !== void 0 ? deps : []),
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
exports.useInsight = useInsight;
|
|
22
|
-
//# sourceMappingURL=useInsight.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useInsight.js","sourceRoot":"","sources":["../../src/execution/useInsight.ts"],"names":[],"mappings":";;;AAEA,mDAAuE;AACvE,kCAMiB;AA4BjB;;GAEG;AACH,SAAgB,UAAU,CACtB,MAAyB,EACzB,IAA2B;IAE3B,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC3B,MAAM,OAAO,GAAG,IAAA,uBAAgB,EAAC,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAG,IAAA,yBAAkB,EAAC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;IACrE,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAEnG,OAAO,IAAA,2BAAoB,EAAC,EAAE,OAAO,EAAE,EAAE;QACrC,OAAO;QACP,SAAS;QACT,OAAO,CAAC,CAAC,CAAC,IAAA,0BAAc,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,gBAAgB;QACpD,GAAG,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;KAClB,CAAC,CAAC;AACP,CAAC;AAfD,gCAeC"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
3
|
-
import { IDimension, IExecutionDefinition, INullableFilter, ISortItem, ObjRef } from "@gooddata/sdk-model";
|
|
4
|
-
import { UseCancelablePromiseState, DataViewFacade, GoodDataSdkError, UseCancelablePromiseCallbacks } from "../base";
|
|
5
|
-
import { DataViewWindow } from "./withExecutionLoading";
|
|
6
|
-
/**
|
|
7
|
-
* Configuration for {@link useInsightDataView} hook.
|
|
8
|
-
*
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
export interface IUseInsightDataViewConfig {
|
|
12
|
-
/**
|
|
13
|
-
* Reference to the insight for which you want to get the data view.
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* Note: When the reference or identifier is not provided, hook is locked in a "pending" state.
|
|
17
|
-
*/
|
|
18
|
-
insight?: ObjRef;
|
|
19
|
-
/**
|
|
20
|
-
* Modify sorts on prepared insight execution, before it's executed.
|
|
21
|
-
*/
|
|
22
|
-
sorts?: ISortItem[] | ((def: IExecutionDefinition) => ISortItem[]);
|
|
23
|
-
/**
|
|
24
|
-
* Modify dimensions on prepared insight execution, before it's executed.
|
|
25
|
-
*/
|
|
26
|
-
dimensions?: IDimension[] | ((def: IExecutionDefinition) => IDimension[]);
|
|
27
|
-
/**
|
|
28
|
-
* Modify date formatting on prepared insight execution, before it's executed.
|
|
29
|
-
*/
|
|
30
|
-
dateFormat?: string | ((def: IExecutionDefinition) => string);
|
|
31
|
-
/**
|
|
32
|
-
* Specify filters to merge with filters already defined in the insight.
|
|
33
|
-
*/
|
|
34
|
-
filters?: INullableFilter[];
|
|
35
|
-
/**
|
|
36
|
-
* You can define only a specific "window" of data to load.
|
|
37
|
-
*
|
|
38
|
-
* @remarks
|
|
39
|
-
* This is useful if you want to page data.
|
|
40
|
-
*/
|
|
41
|
-
window?: DataViewWindow;
|
|
42
|
-
/**
|
|
43
|
-
* Indicates that the execution to obtain the data for the insight should be an 'execution by reference'.
|
|
44
|
-
*
|
|
45
|
-
* Execution by reference means that the useInsightDataView will ask analytical backend to compute results for an insight
|
|
46
|
-
* which is stored on the backend by specifying link to the insight, additional filters and description how
|
|
47
|
-
* to organize the data.
|
|
48
|
-
*
|
|
49
|
-
* Otherwise, a freeform execution is done, in which the InsightView will send to backend the full execution
|
|
50
|
-
* definition of what to compute.
|
|
51
|
-
*
|
|
52
|
-
* This distinction is in place because some backends MAY want to prohibit users from doing freeform executions
|
|
53
|
-
* and only allow computing data for set of insights created by admins.
|
|
54
|
-
*
|
|
55
|
-
* Note: the need for execute by reference is rare. You will typically be notified by the solution admin to use
|
|
56
|
-
* this mode.
|
|
57
|
-
*/
|
|
58
|
-
executeByReference?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Backend to work with.
|
|
61
|
-
*
|
|
62
|
-
* @remarks
|
|
63
|
-
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
64
|
-
* backend here, then the executor MUST be rendered within an existing BackendContext.
|
|
65
|
-
*/
|
|
66
|
-
backend?: IAnalyticalBackend;
|
|
67
|
-
/**
|
|
68
|
-
* Workspace where execution should be executed.
|
|
69
|
-
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
72
|
-
* workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
|
|
73
|
-
*/
|
|
74
|
-
workspace?: string;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Callbacks for {@link useInsightDataView} hook.
|
|
78
|
-
*
|
|
79
|
-
* @public
|
|
80
|
-
*/
|
|
81
|
-
export type UseInsightDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
|
|
82
|
-
/**
|
|
83
|
-
* React hook to get data for a specific insight.
|
|
84
|
-
*
|
|
85
|
-
* @public
|
|
86
|
-
*/
|
|
87
|
-
export declare function useInsightDataView(config: IUseInsightDataViewConfig & UseInsightDataViewCallbacks, deps?: React.DependencyList): UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
|
|
88
|
-
//# sourceMappingURL=useInsightDataView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightDataView.d.ts","sourceRoot":"","sources":["../../src/execution/useInsightDataView.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC3G,OAAO,EAKH,yBAAyB,EACzB,cAAc,EACd,gBAAgB,EAChB,6BAA6B,EAChC,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGxD;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,KAAK,SAAS,EAAE,CAAC,CAAC;IAEnE;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,KAAK,UAAU,EAAE,CAAC,CAAC;IAE1E;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,oBAAoB,KAAK,MAAM,CAAC,CAAC;IAE9D;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAE5B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,6BAA6B,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAE1G;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,yBAAyB,GAAG,2BAA2B,EAC/D,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,GAC5B,yBAAyB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAoE7D"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useInsightDataView = void 0;
|
|
4
|
-
const base_1 = require("../base");
|
|
5
|
-
const useExecutionDataView_1 = require("./useExecutionDataView");
|
|
6
|
-
const useInsight_1 = require("./useInsight");
|
|
7
|
-
/**
|
|
8
|
-
* React hook to get data for a specific insight.
|
|
9
|
-
*
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
function useInsightDataView(config, deps) {
|
|
13
|
-
const { insight: insightRef, sorts, dateFormat, dimensions, filters, window, executeByReference, onCancel, onError, onLoading, onPending, onSuccess, } = config;
|
|
14
|
-
const backend = (0, base_1.useBackendStrict)(config.backend, "useInsightDataView");
|
|
15
|
-
const workspace = (0, base_1.useWorkspaceStrict)(config.workspace, "useInsightDataView");
|
|
16
|
-
const effectiveDeps = deps !== null && deps !== void 0 ? deps : [];
|
|
17
|
-
const insightPromise = (0, useInsight_1.useInsight)({ insight: insightRef, backend, workspace }, effectiveDeps);
|
|
18
|
-
const executionFactory = backend.workspace(workspace).execution();
|
|
19
|
-
const executeFn = (executeByReference ? executionFactory.forInsightByRef : executionFactory.forInsight).bind(executionFactory);
|
|
20
|
-
let insightExecution = insightPromise.result && executeFn(insightPromise.result, filters);
|
|
21
|
-
if (insightExecution) {
|
|
22
|
-
if (sorts) {
|
|
23
|
-
const resolvedSorts = typeof sorts === "function" ? sorts(insightExecution.definition) : sorts;
|
|
24
|
-
insightExecution = insightExecution.withSorting(...resolvedSorts);
|
|
25
|
-
}
|
|
26
|
-
if (dimensions) {
|
|
27
|
-
const resolvedDimensions = typeof dimensions === "function" ? dimensions(insightExecution.definition) : dimensions;
|
|
28
|
-
insightExecution = insightExecution.withDimensions(...resolvedDimensions);
|
|
29
|
-
}
|
|
30
|
-
if (dateFormat) {
|
|
31
|
-
const resolvedDateFormat = typeof dateFormat === "function" ? dateFormat(insightExecution.definition) : dateFormat;
|
|
32
|
-
insightExecution = insightExecution.withDateFormat(resolvedDateFormat);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
const executionDataViewPromise = (0, useExecutionDataView_1.useExecutionDataView)({
|
|
36
|
-
execution: insightExecution,
|
|
37
|
-
window,
|
|
38
|
-
backend,
|
|
39
|
-
workspace,
|
|
40
|
-
onCancel,
|
|
41
|
-
onError,
|
|
42
|
-
onLoading,
|
|
43
|
-
onPending,
|
|
44
|
-
onSuccess,
|
|
45
|
-
}, deps);
|
|
46
|
-
const cancelablePromises = [insightPromise, executionDataViewPromise];
|
|
47
|
-
return {
|
|
48
|
-
result: executionDataViewPromise.result,
|
|
49
|
-
error: (0, base_1.resolveUseCancelablePromisesError)(cancelablePromises),
|
|
50
|
-
status: (0, base_1.resolveUseCancelablePromisesStatus)(cancelablePromises),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
exports.useInsightDataView = useInsightDataView;
|
|
54
|
-
//# sourceMappingURL=useInsightDataView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightDataView.js","sourceRoot":"","sources":["../../src/execution/useInsightDataView.ts"],"names":[],"mappings":";;;AAGA,kCASiB;AACjB,iEAA8D;AAE9D,6CAA0C;AAwF1C;;;;GAIG;AACH,SAAgB,kBAAkB,CAC9B,MAA+D,EAC/D,IAA2B;IAE3B,MAAM,EACF,OAAO,EAAE,UAAU,EACnB,KAAK,EACL,UAAU,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACN,kBAAkB,EAClB,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,GACZ,GAAG,MAAM,CAAC;IACX,MAAM,OAAO,GAAG,IAAA,uBAAgB,EAAC,MAAM,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;IACvE,MAAM,SAAS,GAAG,IAAA,yBAAkB,EAAC,MAAM,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;IAC7E,MAAM,aAAa,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,IAAA,uBAAU,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,aAAa,CAAC,CAAC;IAE9F,MAAM,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,EAAE,CAAC;IAElE,MAAM,SAAS,GAAG,CACd,kBAAkB,CAAC,CAAC,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,gBAAgB,CAAC,UAAU,CACtF,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAEzB,IAAI,gBAAgB,GAAG,cAAc,CAAC,MAAM,IAAI,SAAS,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE1F,IAAI,gBAAgB,EAAE;QAClB,IAAI,KAAK,EAAE;YACP,MAAM,aAAa,GAAG,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YAC/F,gBAAgB,GAAG,gBAAgB,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC,CAAC;SACrE;QACD,IAAI,UAAU,EAAE;YACZ,MAAM,kBAAkB,GACpB,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;YAC5F,gBAAgB,GAAG,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC,CAAC;SAC7E;QACD,IAAI,UAAU,EAAE;YACZ,MAAM,kBAAkB,GACpB,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;YAC5F,gBAAgB,GAAG,gBAAgB,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC;SAC1E;KACJ;IAED,MAAM,wBAAwB,GAAG,IAAA,2CAAoB,EACjD;QACI,SAAS,EAAE,gBAAgB;QAC3B,MAAM;QACN,OAAO;QACP,SAAS;QACT,QAAQ;QACR,OAAO;QACP,SAAS;QACT,SAAS;QACT,SAAS;KACZ,EACD,IAAI,CACP,CAAC;IAEF,MAAM,kBAAkB,GAAG,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;IAEtE,OAAO;QACH,MAAM,EAAE,wBAAwB,CAAC,MAAM;QACvC,KAAK,EAAE,IAAA,wCAAiC,EAAC,kBAAkB,CAAC;QAC5D,MAAM,EAAE,IAAA,yCAAkC,EAAC,kBAAkB,CAAC;KACF,CAAC;AACrE,CAAC;AAvED,gDAuEC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IPreparedExecution } from "@gooddata/sdk-backend-spi";
|
|
3
|
-
import { IWithLoadingEvents, WithLoadingResult, DataViewWindow } from "./withExecutionLoading";
|
|
4
|
-
/**
|
|
5
|
-
* Configuration for the withExecution HOC. All configuration parameters can be either actual parameter values
|
|
6
|
-
* or functions to obtain them from the wrapped component props.
|
|
7
|
-
*
|
|
8
|
-
* If functions are specified, the HOC will call them with the wrapped component props as parameter and then use
|
|
9
|
-
* the resulting values as if they were passed directly.
|
|
10
|
-
*
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export interface IWithExecution<T> {
|
|
14
|
-
/**
|
|
15
|
-
* Specify execution that the HOC will drive.
|
|
16
|
-
*/
|
|
17
|
-
execution: IPreparedExecution | ((props: T) => IPreparedExecution) | ((props: T) => Promise<IPreparedExecution>);
|
|
18
|
-
/**
|
|
19
|
-
* Specify export title that will be used unless the export function caller sends their own custom title.
|
|
20
|
-
*
|
|
21
|
-
* @param props - props to retrieve export title from
|
|
22
|
-
*/
|
|
23
|
-
exportTitle: string | ((props: T) => string);
|
|
24
|
-
/**
|
|
25
|
-
* Customize data window to load.
|
|
26
|
-
*
|
|
27
|
-
* By default the HOC loads all the data available in the execution's result.
|
|
28
|
-
*/
|
|
29
|
-
window?: DataViewWindow | ((props: T) => DataViewWindow | undefined);
|
|
30
|
-
/**
|
|
31
|
-
* Specify event callbacks which the HOC will trigger in different situations.
|
|
32
|
-
*/
|
|
33
|
-
events?: IWithLoadingEvents<T> | ((props: T) => IWithLoadingEvents<T>);
|
|
34
|
-
/**
|
|
35
|
-
* Customize, whether execution & data loading should start as soon as component is mounted.
|
|
36
|
-
*
|
|
37
|
-
* @remarks
|
|
38
|
-
* Default is true. When not loading on mount, the wrapped component can trigger the load by calling the
|
|
39
|
-
* reload() function which the HOC injects into its props.
|
|
40
|
-
*/
|
|
41
|
-
loadOnMount?: boolean | ((props: T) => boolean);
|
|
42
|
-
/**
|
|
43
|
-
* Specify function that will be called during component prop updates and will be used to
|
|
44
|
-
* determine whether execution should be re-run and data reloaded.
|
|
45
|
-
*
|
|
46
|
-
* @param prevProps - previous props
|
|
47
|
-
* @param nextProps - next props
|
|
48
|
-
*/
|
|
49
|
-
shouldRefetch?: (prevProps: T, nextProps: T) => boolean;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* A React HOC that for driving an execution to get data view that can be visualized.
|
|
53
|
-
*
|
|
54
|
-
* Note that if the resulting data is empty this will NOT throw a NoDataError.
|
|
55
|
-
*
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
export declare function withExecution<T>(params: IWithExecution<T>): (WrappedComponent: React.ComponentType<T & WithLoadingResult>) => React.ComponentClass<T, any>;
|
|
59
|
-
//# sourceMappingURL=withExecution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withExecution.d.ts","sourceRoot":"","sources":["../../src/execution/withExecution.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAiB,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAEH,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACjB,MAAM,wBAAwB,CAAC;AAGhC;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC7B;;OAEG;IACH,SAAS,EACH,kBAAkB,GAClB,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,kBAAkB,CAAC,GAClC,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAElD;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;IAE7C;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,cAAc,GAAG,SAAS,CAAC,CAAC;IAErE;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IAEvE;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC;IAEhD;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,OAAO,CAAC;CAC3D;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC3B,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GAC1B,CAAC,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,iBAAiB,CAAC,KAAK,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,GAAG,CAAC,CAgChG"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withExecution = void 0;
|
|
4
|
-
// (C) 2019-2022 GoodData Corporation
|
|
5
|
-
const sdk_backend_spi_1 = require("@gooddata/sdk-backend-spi");
|
|
6
|
-
const withExecutionLoading_1 = require("./withExecutionLoading");
|
|
7
|
-
const base_1 = require("../base");
|
|
8
|
-
/**
|
|
9
|
-
* A React HOC that for driving an execution to get data view that can be visualized.
|
|
10
|
-
*
|
|
11
|
-
* Note that if the resulting data is empty this will NOT throw a NoDataError.
|
|
12
|
-
*
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
function withExecution(params) {
|
|
16
|
-
const { execution, events, loadOnMount, shouldRefetch, window, exportTitle } = params;
|
|
17
|
-
return (WrappedComponent) => {
|
|
18
|
-
const withLoadingParams = {
|
|
19
|
-
promiseFactory: async (props, window) => {
|
|
20
|
-
const _execution = typeof execution === "function" ? await execution(props) : execution;
|
|
21
|
-
const executionResult = await _execution.execute();
|
|
22
|
-
try {
|
|
23
|
-
const dataView = !window
|
|
24
|
-
? await executionResult.readAll()
|
|
25
|
-
: await executionResult.readWindow(window.offset, window.size);
|
|
26
|
-
return base_1.DataViewFacade.for(dataView);
|
|
27
|
-
}
|
|
28
|
-
catch (err) {
|
|
29
|
-
// do not treat no data as error here to give the user a chance to decide if no data is ok or not
|
|
30
|
-
if ((0, sdk_backend_spi_1.isNoDataError)(err) && err.dataView) {
|
|
31
|
-
return base_1.DataViewFacade.for(err.dataView);
|
|
32
|
-
}
|
|
33
|
-
throw err;
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
exportTitle,
|
|
37
|
-
loadOnMount,
|
|
38
|
-
events,
|
|
39
|
-
shouldRefetch,
|
|
40
|
-
window,
|
|
41
|
-
};
|
|
42
|
-
return (0, withExecutionLoading_1.withExecutionLoading)(withLoadingParams)(WrappedComponent);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.withExecution = withExecution;
|
|
46
|
-
//# sourceMappingURL=withExecution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withExecution.js","sourceRoot":"","sources":["../../src/execution/withExecution.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AACrC,+DAA8E;AAC9E,iEAKgC;AAChC,kCAAyC;AA0DzC;;;;;;GAMG;AACH,SAAgB,aAAa,CACzB,MAAyB;IAEzB,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAEtF,OAAO,CAAC,gBAA4D,EAAE,EAAE;QACpE,MAAM,iBAAiB,GAAG;YACtB,cAAc,EAAE,KAAK,EAAE,KAAQ,EAAE,MAAuB,EAAE,EAAE;gBACxD,MAAM,UAAU,GAAG,OAAO,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;gBACxF,MAAM,eAAe,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC;gBACnD,IAAI;oBACA,MAAM,QAAQ,GAAG,CAAC,MAAM;wBACpB,CAAC,CAAC,MAAM,eAAe,CAAC,OAAO,EAAE;wBACjC,CAAC,CAAC,MAAM,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;oBAEnE,OAAO,qBAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;iBACvC;gBAAC,OAAO,GAAG,EAAE;oBACV,iGAAiG;oBACjG,IAAI,IAAA,+BAAa,EAAC,GAAG,CAAC,IAAI,GAAG,CAAC,QAAQ,EAAE;wBACpC,OAAO,qBAAc,CAAC,GAAG,CAAC,GAAG,CAAC,QAAS,CAAC,CAAC;qBAC5C;oBAED,MAAM,GAAG,CAAC;iBACb;YACL,CAAC;YACD,WAAW;YACX,WAAW;YACX,MAAM;YACN,aAAa;YACb,MAAM;SACT,CAAC;QAEF,OAAO,IAAA,2CAAoB,EAAC,iBAAiB,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACrE,CAAC,CAAC;AACN,CAAC;AAlCD,sCAkCC"}
|