@gooddata/sdk-ui 9.0.0-alpha.8 → 9.0.0-beta.0
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 -58
- package/esm/base/index.d.ts.map +1 -1
- package/esm/base/index.js +48 -48
- 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/en-US.json +1 -1
- 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 +2 -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 +7 -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.js +2 -2
- package/esm/base/results/internal/resultMetaMethods.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 +19 -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 -59
- package/dist/base/index.d.ts.map +0 -1
- package/dist/base/index.js +0 -219
- 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 -374
- package/dist/base/localization/bundles/en-US.json +0 -1964
- package/dist/base/localization/bundles/es-ES.json +0 -374
- package/dist/base/localization/bundles/fr-FR.json +0 -374
- package/dist/base/localization/bundles/ja-JP.json +0 -374
- package/dist/base/localization/bundles/nl-NL.json +0 -374
- package/dist/base/localization/bundles/pt-BR.json +0 -374
- package/dist/base/localization/bundles/pt-PT.json +0 -374
- package/dist/base/localization/bundles/ru-RU.json +0 -374
- package/dist/base/localization/bundles/zh-Hans.json +0 -374
- 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 -381
- 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 -384
- 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 -30
- package/dist/base/results/internal/utils.d.ts.map +0 -1
- package/dist/base/results/internal/utils.js +0 -54
- 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,35 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Props of the {@link ErrorComponent}.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface IErrorProps {
|
|
7
|
-
code?: string;
|
|
8
|
-
icon?: string;
|
|
9
|
-
message: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
style?: object;
|
|
13
|
-
width?: any;
|
|
14
|
-
/**
|
|
15
|
-
* Size of the error component.
|
|
16
|
-
*/
|
|
17
|
-
height?: any;
|
|
18
|
-
/**
|
|
19
|
-
* Size of the visualisation content when custom size layouting is enabled.
|
|
20
|
-
*/
|
|
21
|
-
clientHeight?: any;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Component that renders a default error message.
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* See {@link https://sdk.gooddata.com/gooddata-ui/docs/error_component.html | ErrorComponent}
|
|
28
|
-
*
|
|
29
|
-
* @public
|
|
30
|
-
*/
|
|
31
|
-
export declare class ErrorComponent extends React.Component<IErrorProps> {
|
|
32
|
-
static defaultProps: Partial<IErrorProps>;
|
|
33
|
-
render(): JSX.Element;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=ErrorComponent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorComponent.d.ts","sourceRoot":"","sources":["../../../src/base/react/ErrorComponent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AA6B1B;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE,GAAG,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,qBAAa,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;IAC5D,OAAc,YAAY,EAAE,OAAO,CAAC,WAAW,CAAC,CAe9C;IAEK,MAAM;CA6DhB"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ErrorComponent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// (C) 2007-2022 GoodData Corporation
|
|
6
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
-
/**
|
|
8
|
-
* With custom size layouting enable it needs to be aware of the widget size to update
|
|
9
|
-
* its content accordingly.
|
|
10
|
-
*/
|
|
11
|
-
const SMALL_CLIENT_HEIGHT = 140;
|
|
12
|
-
const MEDIUM_CLIENT_HEIGHT = 160;
|
|
13
|
-
const NORMAL_CLIENT_HEIGHT = 180;
|
|
14
|
-
const LARGE_CLIENT_HEIGHT = 200;
|
|
15
|
-
const LARGEST_CLIENT_HEIGHT = 220;
|
|
16
|
-
const SMALL_CUSTOM_HEIGHT = 44;
|
|
17
|
-
const NORMAL_CUSTOM_HEIGHT = 64;
|
|
18
|
-
const getCustomHeight = (clientHeight) => {
|
|
19
|
-
if (clientHeight) {
|
|
20
|
-
if (clientHeight <= SMALL_CLIENT_HEIGHT) {
|
|
21
|
-
return SMALL_CUSTOM_HEIGHT;
|
|
22
|
-
}
|
|
23
|
-
else if (clientHeight < NORMAL_CLIENT_HEIGHT) {
|
|
24
|
-
return NORMAL_CUSTOM_HEIGHT;
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return undefined;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Component that renders a default error message.
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* See {@link https://sdk.gooddata.com/gooddata-ui/docs/error_component.html | ErrorComponent}
|
|
37
|
-
*
|
|
38
|
-
* @public
|
|
39
|
-
*/
|
|
40
|
-
class ErrorComponent extends react_1.default.Component {
|
|
41
|
-
render() {
|
|
42
|
-
const { className, style, width, height, message, description, icon, clientHeight } = this.props;
|
|
43
|
-
const customHeight = getCustomHeight(clientHeight);
|
|
44
|
-
const wrapperStyle = Object.assign(Object.assign({}, style), { width,
|
|
45
|
-
height });
|
|
46
|
-
return (react_1.default.createElement("div", { className: className, style: wrapperStyle },
|
|
47
|
-
react_1.default.createElement("div", { className: "info-label", style: {
|
|
48
|
-
fontSize: "14px",
|
|
49
|
-
fontWeight: 400,
|
|
50
|
-
lineHeight: "normal",
|
|
51
|
-
color: "var(--gd-palette-complementary-6, #94a1ad)",
|
|
52
|
-
textAlign: "center",
|
|
53
|
-
height: customHeight,
|
|
54
|
-
width: "100%",
|
|
55
|
-
overflow: "hidden",
|
|
56
|
-
} },
|
|
57
|
-
icon ? (react_1.default.createElement("div", { className: `info-label-icon ${icon}`, style: clientHeight && clientHeight < LARGEST_CLIENT_HEIGHT
|
|
58
|
-
? undefined
|
|
59
|
-
: { fontSize: "40px" } })) : null,
|
|
60
|
-
react_1.default.createElement("div", { style: {
|
|
61
|
-
fontWeight: 400,
|
|
62
|
-
fontSize: clientHeight && clientHeight < MEDIUM_CLIENT_HEIGHT ? undefined : "20px",
|
|
63
|
-
textTransform: "uppercase",
|
|
64
|
-
} }, message),
|
|
65
|
-
react_1.default.createElement("div", { style: {
|
|
66
|
-
margin: "3px 0",
|
|
67
|
-
textOverflow: "ellipsis",
|
|
68
|
-
overflow: "hidden",
|
|
69
|
-
whiteSpace: clientHeight && clientHeight < LARGE_CLIENT_HEIGHT ? "nowrap" : undefined,
|
|
70
|
-
} }, description))));
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
ErrorComponent.defaultProps = {
|
|
74
|
-
icon: "gd-icon-warning",
|
|
75
|
-
className: "Error s-error",
|
|
76
|
-
width: undefined,
|
|
77
|
-
height: "100%",
|
|
78
|
-
style: {
|
|
79
|
-
display: "flex",
|
|
80
|
-
flex: "1 0 auto",
|
|
81
|
-
flexDirection: "column",
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
justifyContent: "center",
|
|
84
|
-
whiteSpace: "normal",
|
|
85
|
-
lineHeight: "normal",
|
|
86
|
-
fontFamily: "gdcustomfont, avenir, Helvetica Neue, arial, sans-serif",
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
exports.ErrorComponent = ErrorComponent;
|
|
90
|
-
//# sourceMappingURL=ErrorComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorComponent.js","sourceRoot":"","sources":["../../../src/base/react/ErrorComponent.tsx"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,0DAA0B;AAE1B;;;GAGG;AACH,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAElC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC,MAAM,eAAe,GAAG,CAAC,YAAqB,EAAE,EAAE;IAC9C,IAAI,YAAY,EAAE;QACd,IAAI,YAAY,IAAI,mBAAmB,EAAE;YACrC,OAAO,mBAAmB,CAAC;SAC9B;aAAM,IAAI,YAAY,GAAG,oBAAoB,EAAE;YAC5C,OAAO,oBAAoB,CAAC;SAC/B;aAAM;YACH,OAAO,SAAS,CAAC;SACpB;KACJ;IAED,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AAwBF;;;;;;;GAOG;AACH,MAAa,cAAe,SAAQ,eAAK,CAAC,SAAsB;IAkBrD,MAAM;QACT,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEjG,MAAM,YAAY,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;QACnD,MAAM,YAAY,mCACX,KAAK,KACR,KAAK;YACL,MAAM,GACT,CAAC;QAEF,OAAO,CACH,uCAAK,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY;YAC1C,uCACI,SAAS,EAAC,YAAY,EACtB,KAAK,EAAE;oBACH,QAAQ,EAAE,MAAM;oBAChB,UAAU,EAAE,GAAG;oBACf,UAAU,EAAE,QAAQ;oBACpB,KAAK,EAAE,4CAA4C;oBACnD,SAAS,EAAE,QAAQ;oBACnB,MAAM,EAAE,YAAY;oBACpB,KAAK,EAAE,MAAM;oBACb,QAAQ,EAAE,QAAQ;iBACrB;gBAEA,IAAI,CAAC,CAAC,CAAC,CACJ,uCACI,SAAS,EAAE,mBAAmB,IAAI,EAAE,EACpC,KAAK,EACD,YAAY,IAAI,YAAY,GAAG,qBAAqB;wBAChD,CAAC,CAAC,SAAS;wBACX,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,GAEhC,CACL,CAAC,CAAC,CAAC,IAAI;gBAER,uCACI,KAAK,EAAE;wBACH,UAAU,EAAE,GAAG;wBACf,QAAQ,EACJ,YAAY,IAAI,YAAY,GAAG,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;wBAC5E,aAAa,EAAE,WAAW;qBAC7B,IAEA,OAAO,CACN;gBACN,uCACI,KAAK,EAAE;wBACH,MAAM,EAAE,OAAO;wBACf,YAAY,EAAE,UAAU;wBACxB,QAAQ,EAAE,QAAQ;wBAClB,UAAU,EACN,YAAY,IAAI,YAAY,GAAG,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;qBAChF,IAEA,WAAW,CACV,CACJ,CACJ,CACT,CAAC;IACN,CAAC;;AA7Ea,2BAAY,GAAyB;IAC/C,IAAI,EAAE,iBAAiB;IACvB,SAAS,EAAE,eAAe;IAC1B,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,MAAM;IACd,KAAK,EAAE;QACH,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,UAAU;QAChB,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,UAAU,EAAE,QAAQ;QACpB,UAAU,EAAE,yDAAyD;KACxE;CACJ,CAAC;AAhBO,wCAAc"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Props of the {@link LoadingComponent}.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface ILoadingProps {
|
|
7
|
-
className?: string;
|
|
8
|
-
color?: string;
|
|
9
|
-
speed?: number;
|
|
10
|
-
inline?: boolean;
|
|
11
|
-
height?: any;
|
|
12
|
-
width?: any;
|
|
13
|
-
imageHeight?: any;
|
|
14
|
-
imageWidth?: any;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Component that renders a default loading indicator.
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* See {@link https://sdk.gooddata.com/gooddata-ui/docs/loading_component.html | LoadingComponent }
|
|
21
|
-
*
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
24
|
-
export declare class LoadingComponent extends React.Component<ILoadingProps> {
|
|
25
|
-
static defaultProps: Partial<ILoadingProps>;
|
|
26
|
-
render(): JSX.Element;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=LoadingComponent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingComponent.d.ts","sourceRoot":"","sources":["../../../src/base/react/LoadingComponent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,CAAC,EAAE,GAAG,CAAC;CACpB;AAID;;;;;;;GAOG;AACH,qBAAa,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IAChE,OAAc,YAAY,EAAE,OAAO,CAAC,aAAa,CAAC,CAShD;IAEK,MAAM;CAsEhB"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoadingComponent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// (C) 2007-2022 GoodData Corporation
|
|
6
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
-
const baseAnimationDuration = 1.4;
|
|
8
|
-
/**
|
|
9
|
-
* Component that renders a default loading indicator.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* See {@link https://sdk.gooddata.com/gooddata-ui/docs/loading_component.html | LoadingComponent }
|
|
13
|
-
*
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
class LoadingComponent extends react_1.default.Component {
|
|
17
|
-
render() {
|
|
18
|
-
const { inline, width, height, imageWidth, imageHeight, color, speed = 1, className } = this.props;
|
|
19
|
-
const duration = baseAnimationDuration / speed;
|
|
20
|
-
const delay = duration / -5;
|
|
21
|
-
const dotStyles = {
|
|
22
|
-
transformOrigin: "4px 4px",
|
|
23
|
-
animation: `GDC-pop ${duration}s infinite`,
|
|
24
|
-
animationDelay: `${delay * 2}s`,
|
|
25
|
-
fill: color,
|
|
26
|
-
};
|
|
27
|
-
const wrapperStyles = {
|
|
28
|
-
textAlign: "center",
|
|
29
|
-
display: inline ? "inline-flex" : "flex",
|
|
30
|
-
verticalAlign: "middle",
|
|
31
|
-
flexDirection: "column",
|
|
32
|
-
alignContent: "center",
|
|
33
|
-
justifyContent: "center",
|
|
34
|
-
flex: "1 0 auto",
|
|
35
|
-
height,
|
|
36
|
-
width,
|
|
37
|
-
};
|
|
38
|
-
const svgStyles = {
|
|
39
|
-
maxHeight: "100%",
|
|
40
|
-
maxWidth: "100%",
|
|
41
|
-
flex: "0 1 auto",
|
|
42
|
-
width: imageWidth,
|
|
43
|
-
height: imageHeight,
|
|
44
|
-
};
|
|
45
|
-
const dot1Styles = dotStyles;
|
|
46
|
-
const dot2Styles = Object.assign(Object.assign({}, dotStyles), { transformOrigin: "18px 4px", animationDelay: `${delay}s` });
|
|
47
|
-
const dot3Styles = Object.assign(Object.assign({}, dotStyles), { transformOrigin: "32px 4px", animationDelay: "0" });
|
|
48
|
-
return (react_1.default.createElement("div", { className: className, style: wrapperStyles },
|
|
49
|
-
react_1.default.createElement("svg", { style: svgStyles, version: "1.1", x: "0px", y: "0px", viewBox: "0 0 36 8" },
|
|
50
|
-
react_1.default.createElement("style", null, `
|
|
51
|
-
@keyframes GDC-pop {
|
|
52
|
-
0%,
|
|
53
|
-
80%,
|
|
54
|
-
100% {
|
|
55
|
-
transform: scale(0);
|
|
56
|
-
}
|
|
57
|
-
40% {
|
|
58
|
-
transform: scale(1);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
`),
|
|
62
|
-
react_1.default.createElement("g", { style: dot1Styles },
|
|
63
|
-
react_1.default.createElement("circle", { cx: "4", cy: "4", r: "4" })),
|
|
64
|
-
react_1.default.createElement("g", { style: dot2Styles },
|
|
65
|
-
react_1.default.createElement("circle", { cx: "18", cy: "4", r: "4" })),
|
|
66
|
-
react_1.default.createElement("g", { style: dot3Styles },
|
|
67
|
-
react_1.default.createElement("circle", { cx: "32", cy: "4", r: "4" })))));
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
LoadingComponent.defaultProps = {
|
|
71
|
-
className: "s-loading",
|
|
72
|
-
color: "var(--gd-palette-complementary-6, #94a1ad)",
|
|
73
|
-
speed: 1,
|
|
74
|
-
inline: false,
|
|
75
|
-
height: "100%",
|
|
76
|
-
width: undefined,
|
|
77
|
-
imageHeight: 8,
|
|
78
|
-
imageWidth: undefined,
|
|
79
|
-
};
|
|
80
|
-
exports.LoadingComponent = LoadingComponent;
|
|
81
|
-
//# sourceMappingURL=LoadingComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingComponent.js","sourceRoot":"","sources":["../../../src/base/react/LoadingComponent.tsx"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,0DAA6C;AAiB7C,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAElC;;;;;;;GAOG;AACH,MAAa,gBAAiB,SAAQ,eAAK,CAAC,SAAwB;IAYzD,MAAM;QACT,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACnG,MAAM,QAAQ,GAAG,qBAAqB,GAAG,KAAK,CAAC;QAC/C,MAAM,KAAK,GAAG,QAAQ,GAAG,CAAC,CAAC,CAAC;QAE5B,MAAM,SAAS,GAAkB;YAC7B,eAAe,EAAE,SAAS;YAC1B,SAAS,EAAE,WAAW,QAAQ,YAAY;YAC1C,cAAc,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG;YAC/B,IAAI,EAAE,KAAK;SACd,CAAC;QAEF,MAAM,aAAa,GAAkB;YACjC,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM;YACxC,aAAa,EAAE,QAAQ;YACvB,aAAa,EAAE,QAAQ;YACvB,YAAY,EAAE,QAAQ;YACtB,cAAc,EAAE,QAAQ;YACxB,IAAI,EAAE,UAAU;YAChB,MAAM;YACN,KAAK;SACR,CAAC;QACF,MAAM,SAAS,GAAkB;YAC7B,SAAS,EAAE,MAAM;YACjB,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,WAAW;SACtB,CAAC;QACF,MAAM,UAAU,GAAkB,SAAS,CAAC;QAC5C,MAAM,UAAU,mCACT,SAAS,KACZ,eAAe,EAAE,UAAU,EAC3B,cAAc,EAAE,GAAG,KAAK,GAAG,GAC9B,CAAC;QACF,MAAM,UAAU,mCACT,SAAS,KACZ,eAAe,EAAE,UAAU,EAC3B,cAAc,EAAE,GAAG,GACtB,CAAC;QAEF,OAAO,CACH,uCAAK,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa;YAC3C,uCAAK,KAAK,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,EAAC,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,KAAK,EAAC,OAAO,EAAC,UAAU;gBACnE,6CAAQ;;;;;;;;;;;qBAWP,CAAS;gBACV,qCAAG,KAAK,EAAE,UAAU;oBAChB,0CAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,GAAG,CAC9B;gBACJ,qCAAG,KAAK,EAAE,UAAU;oBAChB,0CAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,GAAG,CAC/B;gBACJ,qCAAG,KAAK,EAAE,UAAU;oBAChB,0CAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,GAAG,CAC/B,CACF,CACJ,CACT,CAAC;IACN,CAAC;;AAhFa,6BAAY,GAA2B;IACjD,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,4CAA4C;IACnD,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,CAAC;IACd,UAAU,EAAE,SAAS;CACxB,CAAC;AAVO,4CAAgB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Simple promise cache, that allows promise canceling
|
|
3
|
-
* After reset() call, it cancels pending promises
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare class PromiseCache<TParams, TResult, TError = any> {
|
|
7
|
-
private readonly handler;
|
|
8
|
-
private readonly getCacheKey;
|
|
9
|
-
private promises;
|
|
10
|
-
private params;
|
|
11
|
-
private results;
|
|
12
|
-
private errors;
|
|
13
|
-
constructor(handler: (params: TParams) => Promise<TResult>, getCacheKey?: (params: TParams) => string);
|
|
14
|
-
getResult: (params: TParams) => TResult | undefined;
|
|
15
|
-
getError: (params: TParams) => TError | undefined;
|
|
16
|
-
getPromise: (params: TParams) => Promise<TResult> | undefined;
|
|
17
|
-
reset: () => void;
|
|
18
|
-
cancel: (params: TParams) => void;
|
|
19
|
-
load: (params: TParams) => Promise<TResult>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=PromiseCache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PromiseCache.d.ts","sourceRoot":"","sources":["../../../src/base/react/PromiseCache.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,qBAAa,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,GAAG;IAehD,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAfhC,OAAO,CAAC,QAAQ,CAET;IACP,OAAO,CAAC,MAAM,CAEP;IACP,OAAO,CAAC,OAAO,CAER;IACP,OAAO,CAAC,MAAM,CAEP;gBAGc,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,EAC9C,WAAW,GAAE,CAAC,MAAM,EAAE,OAAO,KAAK,MAAuB;IAGvE,SAAS,WAAY,OAAO,KAAG,OAAO,GAAG,SAAS,CAGvD;IAEK,QAAQ,WAAY,OAAO,KAAG,MAAM,GAAG,SAAS,CAGrD;IAEK,UAAU,WAAY,OAAO,KAAG,QAAQ,OAAO,CAAC,GAAG,SAAS,CAMjE;IAEK,KAAK,QAAO,IAAI,CAMrB;IAEK,MAAM,WAAY,OAAO,KAAG,IAAI,CAMrC;IAEK,IAAI,WAAY,OAAO,KAAG,QAAQ,OAAO,CAAC,CAa/C;CACL"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PromiseCache = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// (C) 2007-2020 GoodData Corporation
|
|
6
|
-
const CancelablePromise_1 = require("./CancelablePromise");
|
|
7
|
-
const values_1 = tslib_1.__importDefault(require("lodash/values"));
|
|
8
|
-
/**
|
|
9
|
-
* Simple promise cache, that allows promise canceling
|
|
10
|
-
* After reset() call, it cancels pending promises
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
class PromiseCache {
|
|
14
|
-
constructor(handler, getCacheKey = JSON.stringify) {
|
|
15
|
-
this.handler = handler;
|
|
16
|
-
this.getCacheKey = getCacheKey;
|
|
17
|
-
this.promises = {};
|
|
18
|
-
this.params = {};
|
|
19
|
-
this.results = {};
|
|
20
|
-
this.errors = {};
|
|
21
|
-
this.getResult = (params) => {
|
|
22
|
-
const cacheKey = this.getCacheKey(params);
|
|
23
|
-
return this.results[cacheKey];
|
|
24
|
-
};
|
|
25
|
-
this.getError = (params) => {
|
|
26
|
-
const cacheKey = this.getCacheKey(params);
|
|
27
|
-
return this.errors[cacheKey];
|
|
28
|
-
};
|
|
29
|
-
this.getPromise = (params) => {
|
|
30
|
-
const cacheKey = this.getCacheKey(params);
|
|
31
|
-
const cachedPromise = this.promises[cacheKey];
|
|
32
|
-
if (cachedPromise) {
|
|
33
|
-
return cachedPromise.promise;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
this.reset = () => {
|
|
37
|
-
(0, values_1.default)(this.params).forEach(this.cancel);
|
|
38
|
-
this.params = {};
|
|
39
|
-
this.promises = {};
|
|
40
|
-
this.results = {};
|
|
41
|
-
this.errors = {};
|
|
42
|
-
};
|
|
43
|
-
this.cancel = (params) => {
|
|
44
|
-
const cacheKey = this.getCacheKey(params);
|
|
45
|
-
const cancelablePromise = this.promises[cacheKey];
|
|
46
|
-
if (cancelablePromise) {
|
|
47
|
-
cancelablePromise.cancel();
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
this.load = (params) => {
|
|
51
|
-
const cacheKey = this.getCacheKey(params);
|
|
52
|
-
const cachedPromise = this.promises[cacheKey];
|
|
53
|
-
if (cachedPromise) {
|
|
54
|
-
return cachedPromise.promise;
|
|
55
|
-
}
|
|
56
|
-
const cancelablePromise = (0, CancelablePromise_1.makeCancelable)(this.handler(params));
|
|
57
|
-
cancelablePromise.promise
|
|
58
|
-
.then((result) => (this.results[cacheKey] = result))
|
|
59
|
-
.catch((error) => (this.errors[cacheKey] = error));
|
|
60
|
-
this.promises[cacheKey] = cancelablePromise;
|
|
61
|
-
return cancelablePromise.promise;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.PromiseCache = PromiseCache;
|
|
66
|
-
//# sourceMappingURL=PromiseCache.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PromiseCache.js","sourceRoot":"","sources":["../../../src/base/react/PromiseCache.ts"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,2DAAyE;AACzE,mEAAmC;AAEnC;;;;GAIG;AACH,MAAa,YAAY;IAcrB,YACqB,OAA8C,EAC9C,cAA2C,IAAI,CAAC,SAAS;QADzD,YAAO,GAAP,OAAO,CAAuC;QAC9C,gBAAW,GAAX,WAAW,CAA8C;QAftE,aAAQ,GAEZ,EAAE,CAAC;QACC,WAAM,GAEV,EAAE,CAAC;QACC,YAAO,GAEX,EAAE,CAAC;QACC,WAAM,GAEV,EAAE,CAAC;QAOA,cAAS,GAAG,CAAC,MAAe,EAAuB,EAAE;YACxD,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC,CAAC;QAEK,aAAQ,GAAG,CAAC,MAAe,EAAsB,EAAE;YACtD,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAC1C,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC,CAAC;QAEK,eAAU,GAAG,CAAC,MAAe,EAAgC,EAAE;YAClE,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAC1C,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAC9C,IAAI,aAAa,EAAE;gBACf,OAAO,aAAa,CAAC,OAAO,CAAC;aAChC;QACL,CAAC,CAAC;QAEK,UAAK,GAAG,GAAS,EAAE;YACtB,IAAA,gBAAM,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACzC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;YACjB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;YACnB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;YAClB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACrB,CAAC,CAAC;QAEK,WAAM,GAAG,CAAC,MAAe,EAAQ,EAAE;YACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAC1C,MAAM,iBAAiB,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAClD,IAAI,iBAAiB,EAAE;gBACnB,iBAAiB,CAAC,MAAM,EAAE,CAAC;aAC9B;QACL,CAAC,CAAC;QAEK,SAAI,GAAG,CAAC,MAAe,EAAoB,EAAE;YAChD,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAC1C,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAC9C,IAAI,aAAa,EAAE;gBACf,OAAO,aAAa,CAAC,OAAO,CAAC;aAChC;YACD,MAAM,iBAAiB,GAAG,IAAA,kCAAc,EAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;YAC/D,iBAAiB,CAAC,OAAO;iBACpB,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,CAAC;iBACnD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;YAEvD,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC;YAC5C,OAAO,iBAAiB,CAAC,OAAO,CAAC;QACrC,CAAC,CAAC;IAjDC,CAAC;CAkDP;AAnED,oCAmEC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Props of the {@link WorkspaceProvider} component.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface IWorkspaceProviderProps {
|
|
7
|
-
/**
|
|
8
|
-
* Workspace with which the components should work with.
|
|
9
|
-
*/
|
|
10
|
-
workspace: string;
|
|
11
|
-
/**
|
|
12
|
-
* React children
|
|
13
|
-
*/
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* WorkspaceProvider can be used to inject analytical workspace instance to all ui-sdk components in your app.
|
|
18
|
-
*
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
|
-
export declare const WorkspaceProvider: React.FC<IWorkspaceProviderProps>;
|
|
22
|
-
/**
|
|
23
|
-
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* You can set a workspace override that will be returned if defined.
|
|
27
|
-
* This makes the usage more ergonomic (see the following example).
|
|
28
|
-
*
|
|
29
|
-
* Note: For a better TypeScript experience without the hassle of undefined values, you can use the {@link useWorkspaceStrict} hook.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```
|
|
33
|
-
* // instead of
|
|
34
|
-
* const fromContext = useWorkspace();
|
|
35
|
-
* const effectiveWorkspace = fromArguments ?? fromContext.
|
|
36
|
-
* // you can write
|
|
37
|
-
* const workspace = useWorkspace(fromArguments);
|
|
38
|
-
*```
|
|
39
|
-
*
|
|
40
|
-
* @param workspace - workspace to use instead of context value. If undefined, the context value is used.
|
|
41
|
-
* @public
|
|
42
|
-
*/
|
|
43
|
-
export declare const useWorkspace: (workspace?: string) => string | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
46
|
-
*
|
|
47
|
-
* @remarks
|
|
48
|
-
* You can set a workspace override that will be returned if defined.
|
|
49
|
-
* This makes the usage more ergonomic (see the following example).
|
|
50
|
-
*
|
|
51
|
-
* Note: Note: If you do not provide a workspace identifier to {@link WorkspaceProvider} or as a parameter for this hook,
|
|
52
|
-
* an invariant error is raised.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```
|
|
56
|
-
* // instead of
|
|
57
|
-
* const fromContext = useWorkspaceStrict();
|
|
58
|
-
* const effectiveWorkspace = fromArguments ?? fromContext.
|
|
59
|
-
* // you can write
|
|
60
|
-
* const workspace = useWorkspaceStrict(fromArguments);
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @param workspace - workspace to use instead of context value. If undefined, the context value is used.
|
|
64
|
-
* @param context - provide context to improve error message in raised invariant (e.g. parent hook name).
|
|
65
|
-
* @public
|
|
66
|
-
*/
|
|
67
|
-
export declare const useWorkspaceStrict: (workspace?: string, context?: string) => string;
|
|
68
|
-
/**
|
|
69
|
-
* Wraps component into a WorkspaceContext consumer - injecting an instance of workspace from context into the
|
|
70
|
-
* workspace prop.
|
|
71
|
-
*
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
|
-
export declare function withWorkspace<T extends {
|
|
75
|
-
workspace?: string;
|
|
76
|
-
}>(Component: React.ComponentType<T>): React.ComponentType<T>;
|
|
77
|
-
//# sourceMappingURL=WorkspaceContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceContext.d.ts","sourceRoot":"","sources":["../../../src/base/react/WorkspaceContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAE/D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,eAAgB,MAAM,KAAG,MAAM,GAAG,SAG1D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,kBAAkB,eAAgB,MAAM,uBAAmC,MAQvF,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,EAC1D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAClC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAUxB"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withWorkspace = exports.useWorkspaceStrict = exports.useWorkspace = exports.WorkspaceProvider = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// (C) 2019-2022 GoodData Corporation
|
|
6
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
-
const wrapDisplayName_1 = require("./wrapDisplayName");
|
|
8
|
-
const ts_invariant_1 = tslib_1.__importDefault(require("ts-invariant"));
|
|
9
|
-
const WorkspaceContext = react_1.default.createContext(undefined);
|
|
10
|
-
WorkspaceContext.displayName = "WorkspaceContext";
|
|
11
|
-
/**
|
|
12
|
-
* WorkspaceProvider can be used to inject analytical workspace instance to all ui-sdk components in your app.
|
|
13
|
-
*
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
const WorkspaceProvider = ({ children, workspace }) => {
|
|
17
|
-
return react_1.default.createElement(WorkspaceContext.Provider, { value: workspace }, children);
|
|
18
|
-
};
|
|
19
|
-
exports.WorkspaceProvider = WorkspaceProvider;
|
|
20
|
-
/**
|
|
21
|
-
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* You can set a workspace override that will be returned if defined.
|
|
25
|
-
* This makes the usage more ergonomic (see the following example).
|
|
26
|
-
*
|
|
27
|
-
* Note: For a better TypeScript experience without the hassle of undefined values, you can use the {@link useWorkspaceStrict} hook.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```
|
|
31
|
-
* // instead of
|
|
32
|
-
* const fromContext = useWorkspace();
|
|
33
|
-
* const effectiveWorkspace = fromArguments ?? fromContext.
|
|
34
|
-
* // you can write
|
|
35
|
-
* const workspace = useWorkspace(fromArguments);
|
|
36
|
-
*```
|
|
37
|
-
*
|
|
38
|
-
* @param workspace - workspace to use instead of context value. If undefined, the context value is used.
|
|
39
|
-
* @public
|
|
40
|
-
*/
|
|
41
|
-
const useWorkspace = (workspace) => {
|
|
42
|
-
const workspaceFromContext = react_1.default.useContext(WorkspaceContext);
|
|
43
|
-
return workspace !== null && workspace !== void 0 ? workspace : workspaceFromContext;
|
|
44
|
-
};
|
|
45
|
-
exports.useWorkspace = useWorkspace;
|
|
46
|
-
/**
|
|
47
|
-
* Hook to get workspace instance provided to {@link WorkspaceProvider}.
|
|
48
|
-
*
|
|
49
|
-
* @remarks
|
|
50
|
-
* You can set a workspace override that will be returned if defined.
|
|
51
|
-
* This makes the usage more ergonomic (see the following example).
|
|
52
|
-
*
|
|
53
|
-
* Note: Note: If you do not provide a workspace identifier to {@link WorkspaceProvider} or as a parameter for this hook,
|
|
54
|
-
* an invariant error is raised.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```
|
|
58
|
-
* // instead of
|
|
59
|
-
* const fromContext = useWorkspaceStrict();
|
|
60
|
-
* const effectiveWorkspace = fromArguments ?? fromContext.
|
|
61
|
-
* // you can write
|
|
62
|
-
* const workspace = useWorkspaceStrict(fromArguments);
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* @param workspace - workspace to use instead of context value. If undefined, the context value is used.
|
|
66
|
-
* @param context - provide context to improve error message in raised invariant (e.g. parent hook name).
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
const useWorkspaceStrict = (workspace, context = "useWorkspaceStrict") => {
|
|
70
|
-
const workspaceFromContext = react_1.default.useContext(WorkspaceContext);
|
|
71
|
-
const effectiveWorkspace = workspace !== null && workspace !== void 0 ? workspace : workspaceFromContext;
|
|
72
|
-
(0, ts_invariant_1.default)(effectiveWorkspace, `${context}: workspace must be defined. Either pass it as a parameter or make sure there is a WorkspaceProvider up the component tree.`);
|
|
73
|
-
return effectiveWorkspace;
|
|
74
|
-
};
|
|
75
|
-
exports.useWorkspaceStrict = useWorkspaceStrict;
|
|
76
|
-
/**
|
|
77
|
-
* Wraps component into a WorkspaceContext consumer - injecting an instance of workspace from context into the
|
|
78
|
-
* workspace prop.
|
|
79
|
-
*
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
82
|
-
function withWorkspace(Component) {
|
|
83
|
-
const ComponentWithInjectedWorkspace = (props) => {
|
|
84
|
-
return (react_1.default.createElement(WorkspaceContext.Consumer, null, (workspace) => { var _a; return react_1.default.createElement(Component, Object.assign({}, props, { workspace: (_a = props.workspace) !== null && _a !== void 0 ? _a : workspace })); }));
|
|
85
|
-
};
|
|
86
|
-
return (0, wrapDisplayName_1.wrapDisplayName)("withWorkspace", Component)(ComponentWithInjectedWorkspace);
|
|
87
|
-
}
|
|
88
|
-
exports.withWorkspace = withWorkspace;
|
|
89
|
-
//# sourceMappingURL=WorkspaceContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceContext.js","sourceRoot":"","sources":["../../../src/base/react/WorkspaceContext.tsx"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,0DAA0B;AAC1B,uDAAoD;AACpD,wEAAqC;AAErC,MAAM,gBAAgB,GAAG,eAAK,CAAC,aAAa,CAAqB,SAAS,CAAC,CAAC;AAC5E,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAkBlD;;;;GAIG;AACI,MAAM,iBAAiB,GAAsC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;IAC5F,OAAO,8BAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,SAAS,IAAG,QAAQ,CAA6B,CAAC;AAC/F,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACI,MAAM,YAAY,GAAG,CAAC,SAAkB,EAAsB,EAAE;IACnE,MAAM,oBAAoB,GAAG,eAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAChE,OAAO,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,oBAAoB,CAAC;AAC7C,CAAC,CAAC;AAHW,QAAA,YAAY,gBAGvB;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACI,MAAM,kBAAkB,GAAG,CAAC,SAAkB,EAAE,OAAO,GAAG,oBAAoB,EAAU,EAAE;IAC7F,MAAM,oBAAoB,GAAG,eAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAChE,MAAM,kBAAkB,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,oBAAoB,CAAC;IAC7D,IAAA,sBAAS,EACL,kBAAkB,EAClB,GAAG,OAAO,6HAA6H,CAC1I,CAAC;IACF,OAAO,kBAAkB,CAAC;AAC9B,CAAC,CAAC;AARW,QAAA,kBAAkB,sBAQ7B;AAEF;;;;;GAKG;AACH,SAAgB,aAAa,CACzB,SAAiC;IAEjC,MAAM,8BAA8B,GAAgB,CAAC,KAAK,EAAE,EAAE;QAC1D,OAAO,CACH,8BAAC,gBAAgB,CAAC,QAAQ,QACrB,CAAC,SAAS,EAAE,EAAE,WAAC,OAAA,8BAAC,SAAS,oBAAK,KAAK,IAAE,SAAS,EAAE,MAAA,KAAK,CAAC,SAAS,mCAAI,SAAS,IAAI,CAAA,EAAA,CACzD,CAC/B,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,IAAA,iCAAe,EAAC,eAAe,EAAE,SAAS,CAAC,CAAC,8BAA8B,CAAC,CAAC;AACvF,CAAC;AAZD,sCAYC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IAttributeDescriptor } from "@gooddata/sdk-model";
|
|
2
|
-
import { IAvailableDrillTargets } from "../../vis/Events";
|
|
3
|
-
import { DataViewFacade } from "../../results/facade";
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
* Provides the subset of attributes which consist from all attributes before given attribute and attribute itself.
|
|
7
|
-
* @param fromAttribute - attribute to which we want to get relevant intersection's attributes
|
|
8
|
-
* @param attributes - all attributes from the same dimension as fromAttribute
|
|
9
|
-
*/
|
|
10
|
-
export declare function getIntersectionAttributes(fromAttribute: IAttributeDescriptor, attributes: IAttributeDescriptor[]): IAttributeDescriptor[];
|
|
11
|
-
export declare function getAvailableDrillTargets(dv: DataViewFacade): IAvailableDrillTargets;
|
|
12
|
-
//# sourceMappingURL=availableDrillTargets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"availableDrillTargets.d.ts","sourceRoot":"","sources":["../../../../src/base/react/legacy/availableDrillTargets.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAGH,sBAAsB,EACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACrC,aAAa,EAAE,oBAAoB,EACnC,UAAU,EAAE,oBAAoB,EAAE,GACnC,oBAAoB,EAAE,CAQxB;AAmBD,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,cAAc,GAAG,sBAAsB,CAiBnF"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAvailableDrillTargets = exports.getIntersectionAttributes = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// (C) 2021-2022 GoodData Corporation
|
|
6
|
-
const uniqBy_1 = tslib_1.__importDefault(require("lodash/fp/uniqBy"));
|
|
7
|
-
const flatten_1 = tslib_1.__importDefault(require("lodash/flatten"));
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
* Provides the subset of attributes which consist from all attributes before given attribute and attribute itself.
|
|
11
|
-
* @param fromAttribute - attribute to which we want to get relevant intersection's attributes
|
|
12
|
-
* @param attributes - all attributes from the same dimension as fromAttribute
|
|
13
|
-
*/
|
|
14
|
-
function getIntersectionAttributes(fromAttribute, attributes) {
|
|
15
|
-
const indexOfFromAttribute = attributes.findIndex((attribute) =>
|
|
16
|
-
// to handle duplicated attributes in the same dimension
|
|
17
|
-
attribute.attributeHeader.localIdentifier === fromAttribute.attributeHeader.localIdentifier);
|
|
18
|
-
return attributes.slice(0, indexOfFromAttribute + 1);
|
|
19
|
-
}
|
|
20
|
-
exports.getIntersectionAttributes = getIntersectionAttributes;
|
|
21
|
-
function getAvailableDrillAttributes(dv) {
|
|
22
|
-
return (0, flatten_1.default)(dv
|
|
23
|
-
.meta()
|
|
24
|
-
.dimensions()
|
|
25
|
-
.map((_dimension, index) => {
|
|
26
|
-
return dv
|
|
27
|
-
.meta()
|
|
28
|
-
.attributeDescriptorsForDim(index)
|
|
29
|
-
.map((attribute, _index, attributes) => ({
|
|
30
|
-
attribute,
|
|
31
|
-
intersectionAttributes: getIntersectionAttributes(attribute, attributes),
|
|
32
|
-
}));
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
function getAvailableDrillTargets(dv) {
|
|
36
|
-
const attributes = (0, uniqBy_1.default)((attributeDescriptor) => attributeDescriptor.attributeHeader.formOf.identifier, dv.meta().attributeDescriptors());
|
|
37
|
-
return {
|
|
38
|
-
measures: dv
|
|
39
|
-
.meta()
|
|
40
|
-
.measureDescriptors()
|
|
41
|
-
.map((measure) => ({
|
|
42
|
-
measure,
|
|
43
|
-
attributes,
|
|
44
|
-
})),
|
|
45
|
-
attributes: getAvailableDrillAttributes(dv),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
exports.getAvailableDrillTargets = getAvailableDrillTargets;
|
|
49
|
-
//# sourceMappingURL=availableDrillTargets.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"availableDrillTargets.js","sourceRoot":"","sources":["../../../../src/base/react/legacy/availableDrillTargets.ts"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,sEAAsC;AACtC,qEAAqC;AASrC;;;;;GAKG;AACH,SAAgB,yBAAyB,CACrC,aAAmC,EACnC,UAAkC;IAElC,MAAM,oBAAoB,GAAG,UAAU,CAAC,SAAS,CAC7C,CAAC,SAAS,EAAE,EAAE;IACV,wDAAwD;IACxD,SAAS,CAAC,eAAe,CAAC,eAAe,KAAK,aAAa,CAAC,eAAe,CAAC,eAAe,CAClG,CAAC;IAEF,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,oBAAoB,GAAG,CAAC,CAAC,CAAC;AACzD,CAAC;AAXD,8DAWC;AAED,SAAS,2BAA2B,CAAC,EAAkB;IACnD,OAAO,IAAA,iBAAO,EACV,EAAE;SACG,IAAI,EAAE;SACN,UAAU,EAAE;SACZ,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE;QACvB,OAAO,EAAE;aACJ,IAAI,EAAE;aACN,0BAA0B,CAAC,KAAK,CAAC;aACjC,GAAG,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;YACrC,SAAS;YACT,sBAAsB,EAAE,yBAAyB,CAAC,SAAS,EAAE,UAAU,CAAC;SAC3E,CAAC,CAAC,CAAC;IACZ,CAAC,CAAC,CACT,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,EAAkB;IACvD,MAAM,UAAU,GAAG,IAAA,gBAAM,EACrB,CAAC,mBAAmB,EAAE,EAAE,CAAC,mBAAmB,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,EAC9E,EAAE,CAAC,IAAI,EAAE,CAAC,oBAAoB,EAAE,CACnC,CAAC;IACF,OAAO;QACH,QAAQ,EAAE,EAAE;aACP,IAAI,EAAE;aACN,kBAAkB,EAAE;aACpB,GAAG,CACA,CAAC,OAA2B,EAAgC,EAAE,CAAC,CAAC;YAC5D,OAAO;YACP,UAAU;SACb,CAAC,CACL;QACL,UAAU,EAAE,2BAA2B,CAAC,EAAE,CAAC;KAC9C,CAAC;AACN,CAAC;AAjBD,4DAiBC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { IDataView } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { IntlShape } from "react-intl";
|
|
4
|
-
import { IExportFunction } from "../../vis/Events";
|
|
5
|
-
import { IDataVisualizationProps } from "../../vis/VisualizationProps";
|
|
6
|
-
/**
|
|
7
|
-
* These props are injected by withEntireDataView HOC. This HOC takes care of driving the execution and obtaining
|
|
8
|
-
* the data view to visualize. Oh and by the way, the HOC also provides internationalization context :/
|
|
9
|
-
*
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
export interface ILoadingInjectedProps {
|
|
13
|
-
/**
|
|
14
|
-
* If the data is loading, then this prop contains true. Otherwise, if the loading finished with either
|
|
15
|
-
* success or failure, this prop contains false.
|
|
16
|
-
*/
|
|
17
|
-
isLoading: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* If loading succeeds, then this prop contains the data to visualize. Otherwise is undefined.
|
|
20
|
-
*/
|
|
21
|
-
dataView?: IDataView;
|
|
22
|
-
/**
|
|
23
|
-
* If loading fails, then this prop contains description of the error. Otherwise is undefined.
|
|
24
|
-
*/
|
|
25
|
-
error?: string;
|
|
26
|
-
intl: IntlShape;
|
|
27
|
-
/**
|
|
28
|
-
* Callback to trigger when export is ready
|
|
29
|
-
*/
|
|
30
|
-
onExportReady(exportFunction: IExportFunction): void;
|
|
31
|
-
/**
|
|
32
|
-
* Callback to trigger if the chart cannot visualize the data because it is too large.
|
|
33
|
-
*/
|
|
34
|
-
onDataTooLarge(): void;
|
|
35
|
-
/**
|
|
36
|
-
* Callback to trigger if the chart cannot visualize the data because it contains negative values.
|
|
37
|
-
*/
|
|
38
|
-
onNegativeValues(): void;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* A HOC to wrap data visualization components with loading / error handling.
|
|
42
|
-
*
|
|
43
|
-
* Note: this is a legacy HOC with a long history. In v7 we had VisualizationLoadingHOC - that one was used for
|
|
44
|
-
* all components and was linked to AFM and the paging and everything. We took this and gutted it out, changed to
|
|
45
|
-
* work with executions and to only support reading all the data.
|
|
46
|
-
*
|
|
47
|
-
* @param InnerComponent - component to wrap
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
50
|
-
export declare function withEntireDataView<T extends IDataVisualizationProps>(InnerComponent: React.ComponentClass<T & ILoadingInjectedProps>): React.ComponentClass<T>;
|
|
51
|
-
//# sourceMappingURL=withEntireDataView.d.ts.map
|