@gooddata/sdk-ui 8.13.0-alpha.9 → 9.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/constants/bucketNames.d.ts +26 -16
- package/dist/base/constants/bucketNames.d.ts.map +1 -1
- package/dist/base/constants/bucketNames.js +37 -33
- package/dist/base/constants/bucketNames.js.map +1 -1
- package/dist/base/errors/GoodDataSdkError.d.ts +2 -1
- package/dist/base/errors/GoodDataSdkError.d.ts.map +1 -1
- package/dist/base/errors/GoodDataSdkError.js +82 -112
- package/dist/base/errors/GoodDataSdkError.js.map +1 -1
- package/dist/base/errors/errorHandling.d.ts.map +1 -1
- package/dist/base/errors/errorHandling.js +26 -23
- package/dist/base/errors/errorHandling.js.map +1 -1
- package/dist/base/headerMatching/HeaderPredicate.d.ts +1 -1
- package/dist/base/headerMatching/HeaderPredicate.d.ts.map +1 -1
- package/dist/base/headerMatching/HeaderPredicateFactory.js +62 -70
- package/dist/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
- package/dist/base/headerMatching/MappingHeader.d.ts +8 -2
- package/dist/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/dist/base/headerMatching/MappingHeader.js +35 -17
- package/dist/base/headerMatching/MappingHeader.js.map +1 -1
- package/dist/base/helpers/CatalogHelper.js +33 -34
- package/dist/base/helpers/CatalogHelper.js.map +1 -1
- package/dist/base/index.d.ts +2 -2
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.js +5 -2
- package/dist/base/index.js.map +1 -1
- package/dist/base/interfaces/OverTimeComparison.d.ts +1 -1
- package/dist/base/interfaces/OverTimeComparison.d.ts.map +1 -1
- package/dist/base/localization/IntlStore.d.ts +2 -4
- package/dist/base/localization/IntlStore.d.ts.map +1 -1
- package/dist/base/localization/IntlStore.js +15 -17
- package/dist/base/localization/IntlStore.js.map +1 -1
- package/dist/base/localization/IntlWrapper.d.ts +1 -0
- package/dist/base/localization/IntlWrapper.d.ts.map +1 -1
- package/dist/base/localization/IntlWrapper.js +10 -10
- package/dist/base/localization/IntlWrapper.js.map +1 -1
- package/dist/base/localization/Locale.d.ts +1 -1
- package/dist/base/localization/Locale.d.ts.map +1 -1
- package/dist/base/localization/Locale.js +2 -1
- package/dist/base/localization/Locale.js.map +1 -1
- package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts +4 -0
- package/dist/base/localization/TranslationsCustomizationProvider/Context.d.ts.map +1 -1
- package/dist/base/localization/TranslationsCustomizationProvider/Context.js +15 -15
- package/dist/base/localization/TranslationsCustomizationProvider/Context.js.map +1 -1
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +29 -38
- package/dist/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
- package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts +3 -3
- package/dist/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +1 -1
- package/dist/base/localization/TranslationsCustomizationProvider/utils.js +31 -38
- package/dist/base/localization/TranslationsCustomizationProvider/utils.js.map +1 -1
- package/dist/base/localization/TranslationsProvider.d.ts +1 -1
- package/dist/base/localization/TranslationsProvider.d.ts.map +1 -1
- package/dist/base/localization/TranslationsProvider.js +14 -21
- package/dist/base/localization/TranslationsProvider.js.map +1 -1
- package/dist/base/localization/bundles/de-DE.json +17 -7
- package/dist/base/localization/bundles/en-US.json +98 -27
- package/dist/base/localization/bundles/es-ES.json +17 -7
- package/dist/base/localization/bundles/fr-FR.json +17 -7
- package/dist/base/localization/bundles/ja-JP.json +17 -7
- package/dist/base/localization/bundles/nl-NL.json +17 -7
- package/dist/base/localization/bundles/pt-BR.json +17 -7
- package/dist/base/localization/bundles/pt-PT.json +17 -7
- package/dist/base/localization/bundles/ru-RU.json +17 -7
- package/dist/base/localization/bundles/zh-Hans.json +17 -7
- package/dist/base/localization/intlUtils.d.ts +6 -0
- package/dist/base/localization/intlUtils.d.ts.map +1 -1
- package/dist/base/localization/intlUtils.js +32 -29
- package/dist/base/localization/intlUtils.js.map +1 -1
- package/dist/base/localization/messagesMap.js +12 -12
- package/dist/base/localization/messagesMap.js.map +1 -1
- package/dist/base/measureFormats/fillMissingFormat.js +6 -6
- package/dist/base/measureFormats/fillMissingFormat.js.map +1 -1
- package/dist/base/measureFormats/fillMissingFormats.js +3 -3
- package/dist/base/measureFormats/fillMissingFormats.js.map +1 -1
- package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.d.ts.map +1 -1
- package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js +29 -30
- package/dist/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +1 -1
- package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +1 -1
- package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +16 -17
- package/dist/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +1 -1
- package/dist/base/measureTitles/fillMissingTitles.js +55 -56
- package/dist/base/measureTitles/fillMissingTitles.js.map +1 -1
- package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js +5 -5
- package/dist/base/measureTitles/ignoreTitlesForSimpleMeasures.js.map +1 -1
- package/dist/base/react/BackendContext.d.ts +6 -2
- package/dist/base/react/BackendContext.d.ts.map +1 -1
- package/dist/base/react/BackendContext.js +18 -17
- package/dist/base/react/BackendContext.js.map +1 -1
- package/dist/base/react/CancelablePromise.js +23 -25
- package/dist/base/react/CancelablePromise.js.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +2 -2
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +39 -33
- package/dist/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts +5 -0
- package/dist/base/react/ClientWorkspaceContext/interfaces.d.ts.map +1 -1
- package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +30 -82
- package/dist/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +1 -1
- package/dist/base/react/ErrorComponent.js +35 -40
- package/dist/base/react/ErrorComponent.js.map +1 -1
- package/dist/base/react/LoadingComponent.js +42 -36
- package/dist/base/react/LoadingComponent.js.map +1 -1
- package/dist/base/react/PromiseCache.js +31 -34
- package/dist/base/react/PromiseCache.js.map +1 -1
- package/dist/base/react/WorkspaceContext.d.ts +6 -2
- package/dist/base/react/WorkspaceContext.d.ts.map +1 -1
- package/dist/base/react/WorkspaceContext.js +18 -17
- package/dist/base/react/WorkspaceContext.js.map +1 -1
- package/dist/base/react/legacy/availableDrillTargets.js +16 -17
- package/dist/base/react/legacy/availableDrillTargets.js.map +1 -1
- package/dist/base/react/legacy/withEntireDataView.js +117 -141
- package/dist/base/react/legacy/withEntireDataView.js.map +1 -1
- package/dist/base/react/placeholders/aliases.d.ts +15 -15
- package/dist/base/react/placeholders/aliases.d.ts.map +1 -1
- package/dist/base/react/placeholders/base.d.ts +20 -20
- package/dist/base/react/placeholders/base.d.ts.map +1 -1
- package/dist/base/react/placeholders/base.js +6 -6
- package/dist/base/react/placeholders/base.js.map +1 -1
- package/dist/base/react/placeholders/context.d.ts +1 -1
- package/dist/base/react/placeholders/context.d.ts.map +1 -1
- package/dist/base/react/placeholders/context.js +17 -16
- package/dist/base/react/placeholders/context.js.map +1 -1
- package/dist/base/react/placeholders/factory.js +16 -18
- package/dist/base/react/placeholders/factory.js.map +1 -1
- package/dist/base/react/placeholders/hooks.js +41 -47
- package/dist/base/react/placeholders/hooks.js.map +1 -1
- package/dist/base/react/placeholders/resolve.js +15 -18
- package/dist/base/react/placeholders/resolve.js.map +1 -1
- package/dist/base/react/useCancelablePromise.d.ts +8 -8
- package/dist/base/react/useCancelablePromise.d.ts.map +1 -1
- package/dist/base/react/useCancelablePromise.js +24 -21
- package/dist/base/react/useCancelablePromise.js.map +1 -1
- package/dist/base/react/useCancelablePromiseUtils.js +16 -17
- package/dist/base/react/useCancelablePromiseUtils.js.map +1 -1
- package/dist/base/react/usePagedResource.js +25 -29
- package/dist/base/react/usePagedResource.js.map +1 -1
- package/dist/base/react/usePrevious.js +5 -4
- package/dist/base/react/usePrevious.js.map +1 -1
- package/dist/base/react/usePromiseCache.js +17 -18
- package/dist/base/react/usePromiseCache.js.map +1 -1
- package/dist/base/react/withContexts.js +6 -6
- package/dist/base/react/withContexts.js.map +1 -1
- package/dist/base/react/wrapDisplayName.d.ts +1 -1
- package/dist/base/react/wrapDisplayName.d.ts.map +1 -1
- package/dist/base/react/wrapDisplayName.js +6 -5
- package/dist/base/react/wrapDisplayName.js.map +1 -1
- package/dist/base/results/dataAccess.d.ts +10 -10
- package/dist/base/results/dataAccess.d.ts.map +1 -1
- package/dist/base/results/dataAccessConfig.d.ts +3 -3
- package/dist/base/results/dataAccessConfig.d.ts.map +1 -1
- package/dist/base/results/dataAccessConfig.js +10 -10
- package/dist/base/results/dataAccessConfig.js.map +1 -1
- package/dist/base/results/facade.js +39 -40
- package/dist/base/results/facade.js.map +1 -1
- package/dist/base/results/internal/dataAccessDigest.d.ts +6 -6
- package/dist/base/results/internal/dataAccessDigest.d.ts.map +1 -1
- package/dist/base/results/internal/dataAccessDigest.js +68 -81
- package/dist/base/results/internal/dataAccessDigest.js.map +1 -1
- package/dist/base/results/internal/dataAccessImpl.d.ts.map +1 -1
- package/dist/base/results/internal/dataAccessImpl.js +157 -159
- package/dist/base/results/internal/dataAccessImpl.js.map +1 -1
- package/dist/base/results/internal/dataAccessMethods.js +52 -58
- package/dist/base/results/internal/dataAccessMethods.js.map +1 -1
- package/dist/base/results/internal/definitionMethods.js +40 -41
- package/dist/base/results/internal/definitionMethods.js.map +1 -1
- package/dist/base/results/internal/lazyInitArray.d.ts +1 -1
- package/dist/base/results/internal/lazyInitArray.d.ts.map +1 -1
- package/dist/base/results/internal/lazyInitArray.js +20 -20
- package/dist/base/results/internal/lazyInitArray.js.map +1 -1
- package/dist/base/results/internal/resultDataMethods.d.ts +24 -0
- package/dist/base/results/internal/resultDataMethods.d.ts.map +1 -1
- package/dist/base/results/internal/resultDataMethods.js +59 -29
- package/dist/base/results/internal/resultDataMethods.js.map +1 -1
- package/dist/base/results/internal/resultMetaMethods.js +68 -76
- package/dist/base/results/internal/resultMetaMethods.js.map +1 -1
- package/dist/base/results/internal/utils.js +1 -1
- package/dist/base/results/internal/utils.js.map +1 -1
- package/dist/base/vis/DrillEvents.d.ts +5 -5
- package/dist/base/vis/DrillEvents.d.ts.map +1 -1
- package/dist/base/vis/DrillEvents.js +8 -8
- package/dist/base/vis/DrillEvents.js.map +1 -1
- package/dist/base/vis/Events.d.ts +6 -5
- package/dist/base/vis/Events.d.ts.map +1 -1
- package/dist/base/vis/drilling.d.ts.map +1 -1
- package/dist/base/vis/drilling.js +26 -31
- package/dist/base/vis/drilling.js.map +1 -1
- package/dist/base/vis/export.js +10 -10
- package/dist/base/vis/export.js.map +1 -1
- package/dist/base/vis/visualizationTypes.d.ts +13 -10
- package/dist/base/vis/visualizationTypes.d.ts.map +1 -1
- package/dist/base/vis/visualizationTypes.js +4 -1
- package/dist/base/vis/visualizationTypes.js.map +1 -1
- package/dist/execution/DataViewLoader.js +36 -80
- package/dist/execution/DataViewLoader.js.map +1 -1
- package/dist/execution/Execute.js +36 -35
- package/dist/execution/Execute.js.map +1 -1
- package/dist/execution/ExecuteInsight.js +55 -63
- package/dist/execution/ExecuteInsight.js.map +1 -1
- package/dist/execution/RawExecute.js +28 -28
- package/dist/execution/RawExecute.js.map +1 -1
- package/dist/execution/createExecution.d.ts +1 -1
- package/dist/execution/createExecution.d.ts.map +1 -1
- package/dist/execution/createExecution.js +18 -17
- package/dist/execution/createExecution.js.map +1 -1
- package/dist/execution/interfaces.d.ts +2 -2
- package/dist/execution/interfaces.d.ts.map +1 -1
- package/dist/execution/useDataExport.d.ts +2 -2
- package/dist/execution/useDataExport.d.ts.map +1 -1
- package/dist/execution/useDataExport.js +17 -20
- package/dist/execution/useDataExport.js.map +1 -1
- package/dist/execution/useDataView.d.ts +2 -2
- package/dist/execution/useDataView.d.ts.map +1 -1
- package/dist/execution/useDataView.js +19 -24
- package/dist/execution/useDataView.js.map +1 -1
- package/dist/execution/useExecution.js +12 -13
- package/dist/execution/useExecution.js.map +1 -1
- package/dist/execution/useExecutionDataView.d.ts +1 -1
- package/dist/execution/useExecutionDataView.d.ts.map +1 -1
- package/dist/execution/useExecutionDataView.js +24 -24
- package/dist/execution/useExecutionDataView.js.map +1 -1
- package/dist/execution/useInsight.js +10 -10
- package/dist/execution/useInsight.js.map +1 -1
- package/dist/execution/useInsightDataView.d.ts +1 -1
- package/dist/execution/useInsightDataView.d.ts.map +1 -1
- package/dist/execution/useInsightDataView.js +28 -29
- package/dist/execution/useInsightDataView.js.map +1 -1
- package/dist/execution/withExecution.js +28 -57
- package/dist/execution/withExecution.js.map +1 -1
- package/dist/execution/withExecutionLoading.d.ts +2 -2
- package/dist/execution/withExecutionLoading.d.ts.map +1 -1
- package/dist/execution/withExecutionLoading.js +90 -107
- package/dist/execution/withExecutionLoading.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/kpi/FormattedNumber.d.ts +1 -1
- package/dist/kpi/FormattedNumber.d.ts.map +1 -1
- package/dist/kpi/FormattedNumber.js +9 -9
- package/dist/kpi/FormattedNumber.js.map +1 -1
- package/dist/kpi/Kpi.d.ts.map +1 -1
- package/dist/kpi/Kpi.js +31 -31
- package/dist/kpi/Kpi.js.map +1 -1
- package/dist/kpi/KpiError.d.ts +1 -1
- package/dist/kpi/KpiError.d.ts.map +1 -1
- package/dist/kpi/KpiError.js +5 -4
- package/dist/kpi/KpiError.js.map +1 -1
- package/dist/locales.d.ts +2 -41
- package/dist/locales.d.ts.map +1 -1
- package/dist/locales.js +3 -3
- package/dist/locales.js.map +1 -1
- package/dist/sdk-ui.d.ts +95 -32
- package/esm/base/constants/bucketNames.d.ts +26 -16
- package/esm/base/constants/bucketNames.d.ts.map +1 -1
- package/esm/base/constants/bucketNames.js +38 -34
- package/esm/base/constants/bucketNames.js.map +1 -1
- package/esm/base/constants/colorPalette.js +1 -1
- package/esm/base/constants/colorPalette.js.map +1 -1
- package/esm/base/errors/GoodDataSdkError.d.ts +2 -1
- package/esm/base/errors/GoodDataSdkError.d.ts.map +1 -1
- package/esm/base/errors/GoodDataSdkError.js +67 -112
- package/esm/base/errors/GoodDataSdkError.js.map +1 -1
- package/esm/base/errors/errorHandling.d.ts.map +1 -1
- package/esm/base/errors/errorHandling.js +18 -15
- package/esm/base/errors/errorHandling.js.map +1 -1
- package/esm/base/headerMatching/HeaderPredicate.d.ts +1 -1
- package/esm/base/headerMatching/HeaderPredicate.d.ts.map +1 -1
- package/esm/base/headerMatching/HeaderPredicateFactory.js +49 -57
- package/esm/base/headerMatching/HeaderPredicateFactory.js.map +1 -1
- package/esm/base/headerMatching/MappingHeader.d.ts +8 -2
- package/esm/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/esm/base/headerMatching/MappingHeader.js +20 -3
- package/esm/base/headerMatching/MappingHeader.js.map +1 -1
- package/esm/base/helpers/CatalogHelper.js +33 -35
- package/esm/base/helpers/CatalogHelper.js.map +1 -1
- package/esm/base/index.d.ts +2 -2
- package/esm/base/index.d.ts.map +1 -1
- package/esm/base/index.js +2 -2
- package/esm/base/index.js.map +1 -1
- package/esm/base/interfaces/OverTimeComparison.d.ts +1 -1
- package/esm/base/interfaces/OverTimeComparison.d.ts.map +1 -1
- package/esm/base/interfaces/OverTimeComparison.js +1 -1
- package/esm/base/interfaces/OverTimeComparison.js.map +1 -1
- package/esm/base/localization/IntlStore.d.ts +2 -4
- package/esm/base/localization/IntlStore.d.ts.map +1 -1
- package/esm/base/localization/IntlStore.js +8 -11
- package/esm/base/localization/IntlStore.js.map +1 -1
- package/esm/base/localization/IntlWrapper.d.ts +1 -0
- package/esm/base/localization/IntlWrapper.d.ts.map +1 -1
- package/esm/base/localization/IntlWrapper.js +3 -4
- package/esm/base/localization/IntlWrapper.js.map +1 -1
- package/esm/base/localization/Locale.d.ts +1 -1
- package/esm/base/localization/Locale.d.ts.map +1 -1
- package/esm/base/localization/Locale.js +3 -3
- package/esm/base/localization/Locale.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/Context.d.ts +4 -0
- package/esm/base/localization/TranslationsCustomizationProvider/Context.d.ts.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/Context.js +7 -9
- package/esm/base/localization/TranslationsCustomizationProvider/Context.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js +22 -33
- package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/utils.d.ts +3 -3
- package/esm/base/localization/TranslationsCustomizationProvider/utils.d.ts.map +1 -1
- package/esm/base/localization/TranslationsCustomizationProvider/utils.js +24 -37
- package/esm/base/localization/TranslationsCustomizationProvider/utils.js.map +1 -1
- package/esm/base/localization/TranslationsProvider.d.ts +1 -1
- package/esm/base/localization/TranslationsProvider.d.ts.map +1 -1
- package/esm/base/localization/TranslationsProvider.js +8 -17
- package/esm/base/localization/TranslationsProvider.js.map +1 -1
- package/esm/base/localization/bundles/de-DE.json +17 -7
- package/esm/base/localization/bundles/en-US.json +98 -27
- package/esm/base/localization/bundles/es-ES.json +17 -7
- package/esm/base/localization/bundles/fr-FR.json +17 -7
- package/esm/base/localization/bundles/ja-JP.json +17 -7
- package/esm/base/localization/bundles/nl-NL.json +17 -7
- package/esm/base/localization/bundles/pt-BR.json +17 -7
- package/esm/base/localization/bundles/pt-PT.json +17 -7
- package/esm/base/localization/bundles/ru-RU.json +17 -7
- package/esm/base/localization/bundles/zh-Hans.json +17 -7
- package/esm/base/localization/intlUtils.d.ts +6 -0
- package/esm/base/localization/intlUtils.d.ts.map +1 -1
- package/esm/base/localization/intlUtils.js +20 -20
- package/esm/base/localization/intlUtils.js.map +1 -1
- package/esm/base/localization/messagesMap.js +1 -1
- package/esm/base/localization/messagesMap.js.map +1 -1
- package/esm/base/measureFormats/fillMissingFormat.js +4 -4
- package/esm/base/measureFormats/fillMissingFormat.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.map +1 -1
- package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js +26 -28
- package/esm/base/measureTitles/ArithmeticMeasureTitleFactory.js.map +1 -1
- package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.d.ts.map +1 -1
- package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js +12 -14
- package/esm/base/measureTitles/DerivedMeasureTitleSuffixFactory.js.map +1 -1
- package/esm/base/measureTitles/fillMissingTitles.js +44 -45
- package/esm/base/measureTitles/fillMissingTitles.js.map +1 -1
- package/esm/base/measureTitles/ignoreTitlesForSimpleMeasures.js +3 -3
- package/esm/base/measureTitles/ignoreTitlesForSimpleMeasures.js.map +1 -1
- package/esm/base/react/BackendContext.d.ts +6 -2
- package/esm/base/react/BackendContext.d.ts.map +1 -1
- package/esm/base/react/BackendContext.js +10 -13
- package/esm/base/react/BackendContext.js.map +1 -1
- package/esm/base/react/CancelablePromise.js +19 -24
- package/esm/base/react/CancelablePromise.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts +2 -2
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js +20 -21
- package/esm/base/react/ClientWorkspaceContext/ClientWorkspaceContext.js.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/interfaces.d.ts +5 -0
- package/esm/base/react/ClientWorkspaceContext/interfaces.d.ts.map +1 -1
- package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js +27 -80
- package/esm/base/react/ClientWorkspaceContext/resolveLCMWorkspaceIdentifiers.js.map +1 -1
- package/esm/base/react/ErrorComponent.js +33 -39
- package/esm/base/react/ErrorComponent.js.map +1 -1
- package/esm/base/react/LoadingComponent.js +40 -35
- package/esm/base/react/LoadingComponent.js.map +1 -1
- package/esm/base/react/PromiseCache.js +28 -32
- package/esm/base/react/PromiseCache.js.map +1 -1
- package/esm/base/react/WorkspaceContext.d.ts +6 -2
- package/esm/base/react/WorkspaceContext.d.ts.map +1 -1
- package/esm/base/react/WorkspaceContext.js +10 -13
- package/esm/base/react/WorkspaceContext.js.map +1 -1
- package/esm/base/react/legacy/availableDrillTargets.js +12 -13
- package/esm/base/react/legacy/availableDrillTargets.js.map +1 -1
- package/esm/base/react/legacy/withEntireDataView.js +102 -127
- package/esm/base/react/legacy/withEntireDataView.js.map +1 -1
- package/esm/base/react/placeholders/aliases.d.ts +15 -15
- package/esm/base/react/placeholders/aliases.d.ts.map +1 -1
- package/esm/base/react/placeholders/base.d.ts +20 -20
- package/esm/base/react/placeholders/base.d.ts.map +1 -1
- package/esm/base/react/placeholders/base.js +2 -2
- 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 +12 -13
- package/esm/base/react/placeholders/context.js.map +1 -1
- package/esm/base/react/placeholders/factory.js +11 -13
- package/esm/base/react/placeholders/factory.js.map +1 -1
- package/esm/base/react/placeholders/hooks.js +27 -33
- package/esm/base/react/placeholders/hooks.js.map +1 -1
- package/esm/base/react/placeholders/resolve.js +6 -10
- package/esm/base/react/placeholders/resolve.js.map +1 -1
- package/esm/base/react/useCancelablePromise.d.ts +8 -8
- package/esm/base/react/useCancelablePromise.d.ts.map +1 -1
- package/esm/base/react/useCancelablePromise.js +18 -16
- package/esm/base/react/useCancelablePromise.js.map +1 -1
- package/esm/base/react/useCancelablePromiseUtils.js +13 -15
- package/esm/base/react/useCancelablePromiseUtils.js.map +1 -1
- package/esm/base/react/usePagedResource.js +23 -27
- package/esm/base/react/usePagedResource.js.map +1 -1
- package/esm/base/react/usePrevious.js +3 -3
- package/esm/base/react/usePrevious.js.map +1 -1
- package/esm/base/react/usePromiseCache.js +15 -16
- package/esm/base/react/usePromiseCache.js.map +1 -1
- package/esm/base/react/wrapDisplayName.d.ts +1 -1
- package/esm/base/react/wrapDisplayName.d.ts.map +1 -1
- package/esm/base/react/wrapDisplayName.js +5 -5
- package/esm/base/react/wrapDisplayName.js.map +1 -1
- package/esm/base/results/dataAccess.d.ts +10 -10
- 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.js +30 -31
- package/esm/base/results/facade.js.map +1 -1
- package/esm/base/results/internal/dataAccessDigest.d.ts +6 -6
- package/esm/base/results/internal/dataAccessDigest.d.ts.map +1 -1
- package/esm/base/results/internal/dataAccessDigest.js +64 -78
- package/esm/base/results/internal/dataAccessDigest.js.map +1 -1
- package/esm/base/results/internal/dataAccessImpl.d.ts.map +1 -1
- package/esm/base/results/internal/dataAccessImpl.js +136 -139
- package/esm/base/results/internal/dataAccessImpl.js.map +1 -1
- package/esm/base/results/internal/dataAccessMethods.js +49 -55
- package/esm/base/results/internal/dataAccessMethods.js.map +1 -1
- package/esm/base/results/internal/definitionMethods.js +33 -34
- package/esm/base/results/internal/definitionMethods.js.map +1 -1
- package/esm/base/results/internal/lazyInitArray.d.ts +1 -1
- package/esm/base/results/internal/lazyInitArray.d.ts.map +1 -1
- package/esm/base/results/internal/lazyInitArray.js +18 -19
- package/esm/base/results/internal/lazyInitArray.js.map +1 -1
- package/esm/base/results/internal/resultDataMethods.d.ts +24 -0
- package/esm/base/results/internal/resultDataMethods.d.ts.map +1 -1
- package/esm/base/results/internal/resultDataMethods.js +54 -24
- package/esm/base/results/internal/resultDataMethods.js.map +1 -1
- package/esm/base/results/internal/resultMetaMethods.js +60 -68
- package/esm/base/results/internal/resultMetaMethods.js.map +1 -1
- package/esm/base/results/internal/utils.js +1 -1
- package/esm/base/results/internal/utils.js.map +1 -1
- package/esm/base/vis/DrillEvents.d.ts +5 -5
- 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 +6 -5
- package/esm/base/vis/Events.d.ts.map +1 -1
- package/esm/base/vis/drilling.d.ts.map +1 -1
- package/esm/base/vis/drilling.js +14 -20
- package/esm/base/vis/drilling.js.map +1 -1
- package/esm/base/vis/export.js +10 -10
- package/esm/base/vis/export.js.map +1 -1
- package/esm/base/vis/visualizationTypes.d.ts +13 -10
- package/esm/base/vis/visualizationTypes.d.ts.map +1 -1
- package/esm/base/vis/visualizationTypes.js +5 -2
- package/esm/base/vis/visualizationTypes.js.map +1 -1
- package/esm/execution/DataViewLoader.js +32 -78
- package/esm/execution/DataViewLoader.js.map +1 -1
- package/esm/execution/Execute.js +29 -30
- package/esm/execution/Execute.js.map +1 -1
- package/esm/execution/ExecuteInsight.js +49 -58
- package/esm/execution/ExecuteInsight.js.map +1 -1
- package/esm/execution/RawExecute.js +24 -24
- package/esm/execution/RawExecute.js.map +1 -1
- package/esm/execution/createExecution.d.ts +1 -1
- package/esm/execution/createExecution.d.ts.map +1 -1
- package/esm/execution/createExecution.js +12 -12
- package/esm/execution/createExecution.js.map +1 -1
- package/esm/execution/interfaces.d.ts +2 -2
- package/esm/execution/interfaces.d.ts.map +1 -1
- package/esm/execution/useDataExport.d.ts +2 -2
- package/esm/execution/useDataExport.d.ts.map +1 -1
- package/esm/execution/useDataExport.js +15 -18
- package/esm/execution/useDataExport.js.map +1 -1
- package/esm/execution/useDataView.d.ts +2 -2
- package/esm/execution/useDataView.d.ts.map +1 -1
- package/esm/execution/useDataView.js +17 -22
- package/esm/execution/useDataView.js.map +1 -1
- package/esm/execution/useExecution.js +10 -11
- package/esm/execution/useExecution.js.map +1 -1
- package/esm/execution/useExecutionDataView.d.ts +1 -1
- package/esm/execution/useExecutionDataView.d.ts.map +1 -1
- package/esm/execution/useExecutionDataView.js +19 -20
- package/esm/execution/useExecutionDataView.js.map +1 -1
- package/esm/execution/useInsight.js +8 -8
- package/esm/execution/useInsight.js.map +1 -1
- package/esm/execution/useInsightDataView.d.ts +1 -1
- package/esm/execution/useInsightDataView.d.ts.map +1 -1
- package/esm/execution/useInsightDataView.js +23 -24
- package/esm/execution/useInsightDataView.js.map +1 -1
- package/esm/execution/withExecution.js +24 -53
- package/esm/execution/withExecution.js.map +1 -1
- package/esm/execution/withExecutionLoading.d.ts +2 -2
- package/esm/execution/withExecutionLoading.d.ts.map +1 -1
- package/esm/execution/withExecutionLoading.js +82 -100
- package/esm/execution/withExecutionLoading.js.map +1 -1
- package/esm/index.d.ts +0 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -3
- package/esm/index.js.map +1 -1
- package/esm/kpi/FormattedNumber.d.ts +1 -1
- package/esm/kpi/FormattedNumber.d.ts.map +1 -1
- package/esm/kpi/FormattedNumber.js +5 -6
- package/esm/kpi/FormattedNumber.js.map +1 -1
- package/esm/kpi/Kpi.d.ts.map +1 -1
- package/esm/kpi/Kpi.js +20 -21
- 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/KpiError.js +2 -2
- package/esm/kpi/KpiError.js.map +1 -1
- package/esm/locales.d.ts +2 -41
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +2 -2
- package/esm/locales.js.map +1 -1
- package/esm/tsdoc-metadata.json +1 -1
- package/package.json +28 -31
- package/dist/polyfills.d.ts +0 -3
- package/dist/polyfills.d.ts.map +0 -1
- package/dist/polyfills.js +0 -8
- package/dist/polyfills.js.map +0 -1
- package/esm/polyfills.d.ts +0 -3
- package/esm/polyfills.d.ts.map +0 -1
- package/esm/polyfills.js +0 -6
- package/esm/polyfills.js.map +0 -1
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
// (C) 2019 GoodData Corporation
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.withEntireDataView = void 0;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const sdk_backend_spi_1 = require("@gooddata/sdk-backend-spi");
|
|
7
|
+
const sdk_model_1 = require("@gooddata/sdk-model");
|
|
8
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
9
|
+
const react_intl_1 = require("react-intl");
|
|
10
|
+
const noop_1 = tslib_1.__importDefault(require("lodash/noop"));
|
|
11
|
+
const omit_1 = tslib_1.__importDefault(require("lodash/omit"));
|
|
12
|
+
const GoodDataSdkError_1 = require("../../errors/GoodDataSdkError");
|
|
13
|
+
const export_1 = require("../../vis/export");
|
|
14
|
+
const facade_1 = require("../../results/facade");
|
|
15
|
+
const errorHandling_1 = require("../../errors/errorHandling");
|
|
16
|
+
const IntlWrapper_1 = require("../../localization/IntlWrapper");
|
|
17
|
+
const availableDrillTargets_1 = require("./availableDrillTargets");
|
|
18
18
|
/**
|
|
19
19
|
* A HOC to wrap data visualization components with loading / error handling.
|
|
20
20
|
*
|
|
@@ -26,170 +26,146 @@ var availableDrillTargets_1 = require("./availableDrillTargets");
|
|
|
26
26
|
* @internal
|
|
27
27
|
*/
|
|
28
28
|
function withEntireDataView(InnerComponent) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
_this.hasUnmounted = false;
|
|
29
|
+
class LoadingHOCWrapped extends react_1.default.Component {
|
|
30
|
+
constructor(props) {
|
|
31
|
+
super(props);
|
|
32
|
+
this.hasUnmounted = false;
|
|
34
33
|
/**
|
|
35
34
|
* Fingerprint of the last execution definition the initialize was called with.
|
|
36
35
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return omit_1.default(props, ["workspace"]);
|
|
36
|
+
this.lastInitRequestFingerprint = null;
|
|
37
|
+
this.stripWorkspace = (props) => {
|
|
38
|
+
return (0, omit_1.default)(props, ["workspace"]);
|
|
40
39
|
};
|
|
41
|
-
|
|
40
|
+
this.state = {
|
|
42
41
|
isLoading: false,
|
|
43
42
|
error: null,
|
|
44
43
|
executionResult: null,
|
|
45
44
|
dataView: null,
|
|
46
45
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return _this;
|
|
46
|
+
this.onLoadingChanged = this.onLoadingChanged.bind(this);
|
|
47
|
+
this.onDataTooLarge = this.onDataTooLarge.bind(this);
|
|
48
|
+
this.onNegativeValues = this.onNegativeValues.bind(this);
|
|
51
49
|
}
|
|
52
|
-
|
|
50
|
+
componentDidMount() {
|
|
53
51
|
this.initDataLoading(this.props.execution);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
const { isLoading, error, dataView } = this.state;
|
|
55
|
+
const { intl } = this.props;
|
|
58
56
|
// lower-level components do not need workspace
|
|
59
|
-
|
|
60
|
-
return (react_1.default.createElement(InnerComponent,
|
|
61
|
-
}
|
|
62
|
-
|
|
57
|
+
const props = this.stripWorkspace(this.props);
|
|
58
|
+
return (react_1.default.createElement(InnerComponent, Object.assign({}, props, { dataView: dataView, onDataTooLarge: this.onDataTooLarge, onNegativeValues: this.onNegativeValues, error: error, isLoading: isLoading, intl: intl })));
|
|
59
|
+
}
|
|
60
|
+
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
63
61
|
// we need strict equality here in case only the buckets changed (not measures or attributes)
|
|
64
62
|
if (!this.props.execution.equals(nextProps.execution)) {
|
|
65
63
|
this.initDataLoading(nextProps.execution);
|
|
66
64
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
65
|
+
}
|
|
66
|
+
componentWillUnmount() {
|
|
69
67
|
this.hasUnmounted = true;
|
|
70
68
|
this.onLoadingChanged = noop_1.default;
|
|
71
69
|
this.onError = noop_1.default;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
}
|
|
71
|
+
onLoadingChanged(loadingState) {
|
|
72
|
+
const { onLoadingChanged } = this.props;
|
|
75
73
|
onLoadingChanged === null || onLoadingChanged === void 0 ? void 0 : onLoadingChanged(loadingState);
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
const { isLoading } = loadingState;
|
|
75
|
+
const state = { isLoading };
|
|
78
76
|
if (isLoading) {
|
|
79
77
|
state.error = null;
|
|
80
78
|
}
|
|
81
79
|
this.setState(state);
|
|
82
|
-
}
|
|
83
|
-
|
|
80
|
+
}
|
|
81
|
+
onError(error) {
|
|
84
82
|
var _a, _b;
|
|
85
|
-
|
|
83
|
+
const { onExportReady } = this.props;
|
|
86
84
|
this.setState({ error: error.getMessage(), dataView: null });
|
|
87
85
|
this.onLoadingChanged({ isLoading: false });
|
|
88
86
|
if (onExportReady) {
|
|
89
|
-
onExportReady(export_1.createExportErrorFunction(error));
|
|
87
|
+
onExportReady((0, export_1.createExportErrorFunction)(error));
|
|
90
88
|
}
|
|
91
89
|
(_b = (_a = this.props).onError) === null || _b === void 0 ? void 0 : _b.call(_a, error);
|
|
92
|
-
}
|
|
93
|
-
|
|
90
|
+
}
|
|
91
|
+
onDataTooLarge() {
|
|
94
92
|
this.onError(new GoodDataSdkError_1.DataTooLargeToDisplaySdkError());
|
|
95
|
-
}
|
|
96
|
-
|
|
93
|
+
}
|
|
94
|
+
onNegativeValues() {
|
|
97
95
|
this.onError(new GoodDataSdkError_1.NegativeValuesSdkError());
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
return [4 /*yield*/, executionResult_1.readAll().catch(function (err) {
|
|
122
|
-
/**
|
|
123
|
-
* When execution result is received successfully,
|
|
124
|
-
* but data load fails with unexpected http response,
|
|
125
|
-
* we still want to push availableDrillTargets
|
|
126
|
-
*/
|
|
127
|
-
if (sdk_backend_spi_1.isUnexpectedResponseError(err) && pushData) {
|
|
128
|
-
var availableDrillTargets = availableDrillTargets_1.getAvailableDrillTargets(facade_1.DataViewFacade.forResult(executionResult_1));
|
|
129
|
-
pushData({ availableDrillTargets: availableDrillTargets });
|
|
130
|
-
}
|
|
131
|
-
throw err;
|
|
132
|
-
})];
|
|
133
|
-
case 3:
|
|
134
|
-
dataView = _b.sent();
|
|
135
|
-
if (this.hasUnmounted) {
|
|
136
|
-
return [2 /*return*/];
|
|
137
|
-
}
|
|
138
|
-
if (this.lastInitRequestFingerprint !== sdk_model_1.defFingerprint(dataView.definition)) {
|
|
139
|
-
/*
|
|
140
|
-
* Stop right now if the data are not relevant anymore because there was another
|
|
141
|
-
* initialize request in the meantime.
|
|
142
|
-
*/
|
|
143
|
-
return [2 /*return*/];
|
|
144
|
-
}
|
|
145
|
-
this.setState({ dataView: dataView, error: null, executionResult: executionResult_1 });
|
|
146
|
-
this.onLoadingChanged({ isLoading: false });
|
|
147
|
-
if (onExportReady) {
|
|
148
|
-
onExportReady(export_1.createExportFunction(dataView.result, exportTitle));
|
|
149
|
-
}
|
|
150
|
-
if (pushData) {
|
|
151
|
-
availableDrillTargets = availableDrillTargets_1.getAvailableDrillTargets(facade_1.DataViewFacade.for(dataView));
|
|
152
|
-
pushData({ dataView: dataView, availableDrillTargets: availableDrillTargets });
|
|
153
|
-
}
|
|
154
|
-
return [3 /*break*/, 5];
|
|
155
|
-
case 4:
|
|
156
|
-
error_1 = _b.sent();
|
|
157
|
-
if (this.lastInitRequestFingerprint !== sdk_model_1.defFingerprint(execution.definition)) {
|
|
158
|
-
return [2 /*return*/];
|
|
159
|
-
}
|
|
160
|
-
if (this.hasUnmounted) {
|
|
161
|
-
return [2 /*return*/];
|
|
162
|
-
}
|
|
163
|
-
/*
|
|
164
|
-
* There can be situations, where there is no data to visualize but the result / dataView contains
|
|
165
|
-
* metadata essential for setup of drilling. Look for that and if available push up.
|
|
166
|
-
*/
|
|
167
|
-
if (sdk_backend_spi_1.isNoDataError(error_1) && error_1.dataView && pushData) {
|
|
168
|
-
availableDrillTargets = availableDrillTargets_1.getAvailableDrillTargets(facade_1.DataViewFacade.for(error_1.dataView));
|
|
169
|
-
pushData({ availableDrillTargets: availableDrillTargets });
|
|
170
|
-
}
|
|
171
|
-
this.onError(errorHandling_1.convertError(error_1));
|
|
172
|
-
return [3 /*break*/, 5];
|
|
173
|
-
case 5: return [2 /*return*/];
|
|
96
|
+
}
|
|
97
|
+
async initDataLoading(execution) {
|
|
98
|
+
const { onExportReady, pushData, exportTitle } = this.props;
|
|
99
|
+
this.onLoadingChanged({ isLoading: true });
|
|
100
|
+
this.setState({ dataView: null });
|
|
101
|
+
this.lastInitRequestFingerprint = (0, sdk_model_1.defFingerprint)(execution.definition);
|
|
102
|
+
try {
|
|
103
|
+
const executionResult = await execution.execute();
|
|
104
|
+
if (this.lastInitRequestFingerprint !== (0, sdk_model_1.defFingerprint)(execution.definition)) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (this.hasUnmounted) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const dataView = await executionResult.readAll().catch((err) => {
|
|
111
|
+
/**
|
|
112
|
+
* When execution result is received successfully,
|
|
113
|
+
* but data load fails with unexpected http response,
|
|
114
|
+
* we still want to push availableDrillTargets
|
|
115
|
+
*/
|
|
116
|
+
if ((0, sdk_backend_spi_1.isUnexpectedResponseError)(err) && pushData) {
|
|
117
|
+
const availableDrillTargets = (0, availableDrillTargets_1.getAvailableDrillTargets)(facade_1.DataViewFacade.forResult(executionResult));
|
|
118
|
+
pushData({ availableDrillTargets });
|
|
174
119
|
}
|
|
120
|
+
throw err;
|
|
175
121
|
});
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
122
|
+
if (this.hasUnmounted) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (this.lastInitRequestFingerprint !== (0, sdk_model_1.defFingerprint)(dataView.definition)) {
|
|
126
|
+
/*
|
|
127
|
+
* Stop right now if the data are not relevant anymore because there was another
|
|
128
|
+
* initialize request in the meantime.
|
|
129
|
+
*/
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
this.setState({ dataView, error: null, executionResult });
|
|
133
|
+
this.onLoadingChanged({ isLoading: false });
|
|
134
|
+
if (onExportReady) {
|
|
135
|
+
onExportReady((0, export_1.createExportFunction)(dataView.result, exportTitle));
|
|
136
|
+
}
|
|
137
|
+
if (pushData) {
|
|
138
|
+
const availableDrillTargets = (0, availableDrillTargets_1.getAvailableDrillTargets)(facade_1.DataViewFacade.for(dataView));
|
|
139
|
+
pushData({ dataView, availableDrillTargets });
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
catch (error) {
|
|
143
|
+
if (this.lastInitRequestFingerprint !== (0, sdk_model_1.defFingerprint)(execution.definition)) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
if (this.hasUnmounted) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
/*
|
|
150
|
+
* There can be situations, where there is no data to visualize but the result / dataView contains
|
|
151
|
+
* metadata essential for setup of drilling. Look for that and if available push up.
|
|
152
|
+
*/
|
|
153
|
+
if ((0, sdk_backend_spi_1.isNoDataError)(error) && error.dataView && pushData) {
|
|
154
|
+
const availableDrillTargets = (0, availableDrillTargets_1.getAvailableDrillTargets)(facade_1.DataViewFacade.for(error.dataView));
|
|
155
|
+
pushData({ availableDrillTargets });
|
|
156
|
+
}
|
|
157
|
+
this.onError((0, errorHandling_1.convertError)(error));
|
|
158
|
+
}
|
|
186
159
|
}
|
|
187
|
-
|
|
160
|
+
}
|
|
161
|
+
LoadingHOCWrapped.defaultProps = InnerComponent.defaultProps || {};
|
|
162
|
+
const IntlLoadingHOC = (0, react_intl_1.injectIntl)(LoadingHOCWrapped);
|
|
163
|
+
return class LoadingHOC extends react_1.default.Component {
|
|
164
|
+
render() {
|
|
188
165
|
return (react_1.default.createElement(IntlWrapper_1.IntlWrapper, { locale: this.props.locale },
|
|
189
|
-
react_1.default.createElement(IntlLoadingHOC,
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
}(react_1.default.Component));
|
|
166
|
+
react_1.default.createElement(IntlLoadingHOC, Object.assign({}, this.props))));
|
|
167
|
+
}
|
|
168
|
+
};
|
|
193
169
|
}
|
|
194
170
|
exports.withEntireDataView = withEntireDataView;
|
|
195
171
|
//# sourceMappingURL=withEntireDataView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withEntireDataView.js","sourceRoot":"","sources":["../../../../src/base/react/legacy/withEntireDataView.tsx"],"names":[],"mappings":";AAAA,gCAAgC;;;;AAEhC
|
|
1
|
+
{"version":3,"file":"withEntireDataView.js","sourceRoot":"","sources":["../../../../src/base/react/legacy/withEntireDataView.tsx"],"names":[],"mappings":";AAAA,gCAAgC;;;;AAEhC,+DAMmC;AACnC,mDAAqD;AACrD,0DAA0B;AAC1B,2CAAmD;AACnD,+DAA+B;AAC/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C,KAAK,CAAC,QAAQ,CAAC,CACrC,CAAC;oBAEF,QAAQ,CAAC,EAAE,qBAAqB,EAAE,CAAC,CAAC;iBACvC;gBAED,IAAI,CAAC,OAAO,CAAC,IAAA,4BAAY,EAAC,KAAK,CAAC,CAAC,CAAC;aACrC;QACL,CAAC;;IAjLa,8BAAY,GAAG,cAAc,CAAC,YAAY,IAAI,EAAE,AAApC,CAAqC;IAwLnE,MAAM,cAAc,GAAG,IAAA,uBAAU,EAAoC,iBAAiB,CAAC,CAAC;IAExF,OAAO,MAAM,UAAW,SAAQ,eAAK,CAAC,SAAY;QACvC,MAAM;YACT,OAAO,CACH,8BAAC,yBAAW,IAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;gBAClC,8BAAC,cAAc,oBAAM,IAAI,CAAC,KAAa,EAAI,CACjC,CACjB,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC;AAvMD,gDAuMC"}
|
|
@@ -5,88 +5,88 @@ import { ValueOrPlaceholder, ValuesOrPlaceholders, AnyMeasure, ValueOrMultiValue
|
|
|
5
5
|
*
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type FilterOrPlaceholder = ValueOrPlaceholder<IFilter> | ValueOrPlaceholder<IDateFilter> | ValueOrPlaceholder<IMeasureFilter> | ValueOrPlaceholder<IAttributeFilter> | ValueOrPlaceholder<IAbsoluteDateFilter> | ValueOrPlaceholder<IRelativeDateFilter> | ValueOrPlaceholder<IPositiveAttributeFilter> | ValueOrPlaceholder<INegativeAttributeFilter> | ValueOrPlaceholder<IMeasureValueFilter> | ValueOrPlaceholder<IRankingFilter>;
|
|
9
9
|
/**
|
|
10
10
|
* Alias for all possible nullable filter or placeholder signatures.
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type NullableFilterOrPlaceholder = FilterOrPlaceholder | ValueOrPlaceholder<INullableFilter> | ValueOrPlaceholder<IFilter | null> | ValueOrPlaceholder<IDateFilter | null> | ValueOrPlaceholder<IMeasureFilter | null> | ValueOrPlaceholder<IAttributeFilter | null> | ValueOrPlaceholder<IAbsoluteDateFilter | null> | ValueOrPlaceholder<IRelativeDateFilter | null> | ValueOrPlaceholder<IPositiveAttributeFilter | null> | ValueOrPlaceholder<INegativeAttributeFilter | null> | ValueOrPlaceholder<IMeasureValueFilter | null> | ValueOrPlaceholder<IRankingFilter | null>;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @public
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export type FilterOrMultiValuePlaceholder = ValueOrMultiValuePlaceholder<IFilter> | ValueOrMultiValuePlaceholder<IDateFilter> | ValueOrMultiValuePlaceholder<IMeasureFilter> | ValueOrMultiValuePlaceholder<IAttributeFilter> | ValueOrMultiValuePlaceholder<IAbsoluteDateFilter> | ValueOrMultiValuePlaceholder<IRelativeDateFilter> | ValueOrMultiValuePlaceholder<IPositiveAttributeFilter> | ValueOrMultiValuePlaceholder<INegativeAttributeFilter> | ValueOrMultiValuePlaceholder<IMeasureValueFilter> | ValueOrMultiValuePlaceholder<IRankingFilter>;
|
|
20
20
|
/**
|
|
21
21
|
* Alias for all possible filters or their placeholder signatures.
|
|
22
22
|
*
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
|
-
export
|
|
25
|
+
export type FiltersOrPlaceholders = Array<FilterOrMultiValuePlaceholder>;
|
|
26
26
|
/**
|
|
27
27
|
* Alias for all possible nullable filters or their placeholder signatures.
|
|
28
28
|
*
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export type NullableFiltersOrPlaceholders = Array<FilterOrMultiValuePlaceholder | ValueOrMultiValuePlaceholder<INullableFilter> | ValueOrMultiValuePlaceholder<IFilter | null> | ValueOrMultiValuePlaceholder<IDateFilter | null> | ValueOrMultiValuePlaceholder<IMeasureFilter | null> | ValueOrMultiValuePlaceholder<IAttributeFilter | null> | ValueOrMultiValuePlaceholder<IAbsoluteDateFilter | null> | ValueOrMultiValuePlaceholder<IRelativeDateFilter | null> | ValueOrMultiValuePlaceholder<IPositiveAttributeFilter | null> | ValueOrMultiValuePlaceholder<INegativeAttributeFilter | null> | ValueOrMultiValuePlaceholder<IMeasureValueFilter | null> | ValueOrMultiValuePlaceholder<IRankingFilter | null>>;
|
|
32
32
|
/**
|
|
33
33
|
* Alias for all possible attribute filter or placeholder signatures.
|
|
34
34
|
*
|
|
35
35
|
* @public
|
|
36
36
|
*/
|
|
37
|
-
export
|
|
37
|
+
export type AttributeFilterOrPlaceholder = ValueOrPlaceholder<IAttributeFilter> | ValueOrPlaceholder<IPositiveAttributeFilter> | ValueOrPlaceholder<INegativeAttributeFilter>;
|
|
38
38
|
/**
|
|
39
39
|
* Alias for all possible attribute filters or their placeholder signatures.
|
|
40
40
|
*
|
|
41
41
|
* @public
|
|
42
42
|
*/
|
|
43
|
-
export
|
|
43
|
+
export type AttributeFiltersOrPlaceholders = Array<ValueOrMultiValuePlaceholder<IAttributeFilter> | ValueOrMultiValuePlaceholder<IPositiveAttributeFilter> | ValueOrMultiValuePlaceholder<INegativeAttributeFilter>>;
|
|
44
44
|
/**
|
|
45
45
|
* Alias for all possible attribute or placeholder signatures.
|
|
46
46
|
*
|
|
47
47
|
* @public
|
|
48
48
|
*/
|
|
49
|
-
export
|
|
49
|
+
export type AttributeOrPlaceholder = ValueOrPlaceholder<IAttribute>;
|
|
50
50
|
/**
|
|
51
51
|
* Alias for all possible attributes or their placeholder signatures.
|
|
52
52
|
*
|
|
53
53
|
* @public
|
|
54
54
|
*/
|
|
55
|
-
export
|
|
55
|
+
export type AttributesOrPlaceholders = ValuesOrPlaceholders<IAttribute>;
|
|
56
56
|
/**
|
|
57
57
|
* Alias for all possible measure or placeholder signatures.
|
|
58
58
|
*
|
|
59
59
|
* @public
|
|
60
60
|
*/
|
|
61
|
-
export
|
|
61
|
+
export type MeasureOrPlaceholder = ValueOrPlaceholder<AnyMeasure>;
|
|
62
62
|
/**
|
|
63
63
|
* Alias for all possible measures or their placeholder signatures.
|
|
64
64
|
*
|
|
65
65
|
* @public
|
|
66
66
|
*/
|
|
67
|
-
export
|
|
67
|
+
export type MeasuresOrPlaceholders = ValuesOrPlaceholders<AnyMeasure>;
|
|
68
68
|
/**
|
|
69
69
|
* Alias for all possible attribute, measure or placeholder signatures.
|
|
70
70
|
*
|
|
71
71
|
* @public
|
|
72
72
|
*/
|
|
73
|
-
export
|
|
73
|
+
export type AttributeMeasureOrPlaceholder = ValueOrPlaceholder<IAttribute | AnyMeasure> | ValueOrPlaceholder<IAttribute> | ValueOrPlaceholder<AnyMeasure>;
|
|
74
74
|
/**
|
|
75
75
|
* Alias for all possible attributes, measures or their placeholders signatures.
|
|
76
76
|
*
|
|
77
77
|
* @public
|
|
78
78
|
*/
|
|
79
|
-
export
|
|
79
|
+
export type AttributesMeasuresOrPlaceholders = Array<ValueOrMultiValuePlaceholder<IAttribute | AnyMeasure> | ValueOrMultiValuePlaceholder<IAttribute> | ValueOrMultiValuePlaceholder<AnyMeasure>>;
|
|
80
80
|
/**
|
|
81
81
|
* Alias for all possible sorts or their placeholders signatures.
|
|
82
82
|
*
|
|
83
83
|
* @public
|
|
84
84
|
*/
|
|
85
|
-
export
|
|
85
|
+
export type SortsOrPlaceholders = ValuesOrPlaceholders<ISortItem>;
|
|
86
86
|
/**
|
|
87
87
|
* Alias for all possible totals or their placeholders signatures.
|
|
88
88
|
*
|
|
89
89
|
* @public
|
|
90
90
|
*/
|
|
91
|
-
export
|
|
91
|
+
export type TotalsOrPlaceholders = ValuesOrPlaceholders<ITotal>;
|
|
92
92
|
//# sourceMappingURL=aliases.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../../../../src/base/react/placeholders/aliases.ts"],"names":[],"mappings":"AACA,OAAO,EACH,OAAO,EACP,gBAAgB,EAChB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,UAAU,EACV,SAAS,EACT,MAAM,EACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAY5G;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../../../../src/base/react/placeholders/aliases.ts"],"names":[],"mappings":"AACA,OAAO,EACH,OAAO,EACP,gBAAgB,EAChB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,UAAU,EACV,SAAS,EACT,MAAM,EACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAY5G;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GACzB,kBAAkB,CAAC,OAAO,CAAC,GAC3B,kBAAkB,CAAC,WAAW,CAAC,GAC/B,kBAAkB,CAAC,cAAc,CAAC,GAClC,kBAAkB,CAAC,gBAAgB,CAAC,GAEpC,kBAAkB,CAAC,mBAAmB,CAAC,GACvC,kBAAkB,CAAC,mBAAmB,CAAC,GACvC,kBAAkB,CAAC,wBAAwB,CAAC,GAC5C,kBAAkB,CAAC,wBAAwB,CAAC,GAC5C,kBAAkB,CAAC,mBAAmB,CAAC,GACvC,kBAAkB,CAAC,cAAc,CAAC,CAAC;AAIzC;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GACjC,mBAAmB,GACnB,kBAAkB,CAAC,eAAe,CAAC,GACnC,kBAAkB,CAAC,OAAO,GAAG,IAAI,CAAC,GAClC,kBAAkB,CAAC,WAAW,GAAG,IAAI,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G,oBAAoB,CAAC,SAAS,CAAC,CAAC;AAIlE;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { IMeasure, IMeasureDefinitionType } from "@gooddata/sdk-model";
|
|
|
4
4
|
* Any placeholder type - placeholder or composed placeholder.
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type AnyPlaceholder<T = any> = IPlaceholder<T> | IComposedPlaceholder<T, any, any>;
|
|
8
8
|
/**
|
|
9
9
|
* Type-guard testing whether the provided object is an instance of {@link AnyPlaceholder}.
|
|
10
10
|
* @public
|
|
@@ -41,7 +41,7 @@ export declare function isAnyPlaceholder<T>(obj: unknown): obj is AnyPlaceholder
|
|
|
41
41
|
*
|
|
42
42
|
* @public
|
|
43
43
|
*/
|
|
44
|
-
export
|
|
44
|
+
export type IPlaceholder<T> = {
|
|
45
45
|
type: "IPlaceholder";
|
|
46
46
|
id: string;
|
|
47
47
|
defaultValue?: T;
|
|
@@ -83,7 +83,7 @@ export declare function isComposedPlaceholder<TReturn, TValue extends any[], TCo
|
|
|
83
83
|
* React hook to obtain and set {@link IPlaceholder} value.
|
|
84
84
|
* @public
|
|
85
85
|
*/
|
|
86
|
-
export
|
|
86
|
+
export type IUsePlaceholderHook<T extends IPlaceholder<any>> = () => [
|
|
87
87
|
PlaceholderValue<T> | undefined,
|
|
88
88
|
(valueOrUpdateCallback: ValueOrUpdateCallback<PlaceholderValue<T> | undefined>) => void
|
|
89
89
|
];
|
|
@@ -91,7 +91,7 @@ export declare type IUsePlaceholderHook<T extends IPlaceholder<any>> = () => [
|
|
|
91
91
|
* React hook to obtain {@link IComposedPlaceholder} value.
|
|
92
92
|
* @public
|
|
93
93
|
*/
|
|
94
|
-
export
|
|
94
|
+
export type IUseComposedPlaceholderHook<T extends IComposedPlaceholder<any, any, any>> = (resolutionContext: ComposedPlaceholderResolutionContext<T>) => PlaceholderResolvedValue<T>;
|
|
95
95
|
/**
|
|
96
96
|
* Get composed placeholder resolution context type.
|
|
97
97
|
*
|
|
@@ -102,7 +102,7 @@ export declare type IUseComposedPlaceholderHook<T extends IComposedPlaceholder<a
|
|
|
102
102
|
*
|
|
103
103
|
* @public
|
|
104
104
|
*/
|
|
105
|
-
export
|
|
105
|
+
export type ComposedPlaceholderResolutionContext<T> = T extends IComposedPlaceholder<any, any, infer TContext> ? TContext : any;
|
|
106
106
|
/**
|
|
107
107
|
* Convert union type to intersection type.
|
|
108
108
|
*
|
|
@@ -114,7 +114,7 @@ export declare type ComposedPlaceholderResolutionContext<T> = T extends ICompose
|
|
|
114
114
|
*
|
|
115
115
|
* @public
|
|
116
116
|
*/
|
|
117
|
-
export
|
|
117
|
+
export type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never;
|
|
118
118
|
/**
|
|
119
119
|
* Flatten array type.
|
|
120
120
|
*
|
|
@@ -130,7 +130,7 @@ export declare type UnionToIntersection<T> = (T extends any ? (x: T) => any : ne
|
|
|
130
130
|
* ```
|
|
131
131
|
* @public
|
|
132
132
|
*/
|
|
133
|
-
export
|
|
133
|
+
export type Flatten<T> = T extends Array<infer A> ? A : T;
|
|
134
134
|
/**
|
|
135
135
|
* Get placeholder value type.
|
|
136
136
|
*
|
|
@@ -147,7 +147,7 @@ export declare type Flatten<T> = T extends Array<infer A> ? A : T;
|
|
|
147
147
|
*
|
|
148
148
|
* @public
|
|
149
149
|
*/
|
|
150
|
-
export
|
|
150
|
+
export type PlaceholderValue<T> = T extends IPlaceholder<infer A> ? A : T extends IComposedPlaceholder<infer B, any, any> ? B : T;
|
|
151
151
|
/**
|
|
152
152
|
* Convert tuple of placeholders to tuple of their respective value types.
|
|
153
153
|
*
|
|
@@ -160,7 +160,7 @@ export declare type PlaceholderValue<T> = T extends IPlaceholder<infer A> ? A :
|
|
|
160
160
|
*
|
|
161
161
|
* @public
|
|
162
162
|
*/
|
|
163
|
-
export
|
|
163
|
+
export type PlaceholdersValues<Tuple extends [...any[]]> = {
|
|
164
164
|
[Index in keyof Tuple]: PlaceholderValue<Tuple[Index]>;
|
|
165
165
|
};
|
|
166
166
|
/**
|
|
@@ -181,7 +181,7 @@ export declare type PlaceholdersValues<Tuple extends [...any[]]> = {
|
|
|
181
181
|
*
|
|
182
182
|
* @public
|
|
183
183
|
*/
|
|
184
|
-
export
|
|
184
|
+
export type PlaceholderResolvedValue<T> = T extends Array<infer A> ? Flatten<PlaceholderResolvedValue<A>>[] : T extends IPlaceholder<infer B> ? B : T extends IComposedPlaceholder<infer C, any, any> ? C : T;
|
|
185
185
|
/**
|
|
186
186
|
* Convert tuple of values that may contain placeholders to tuple of their respective resolved value types.
|
|
187
187
|
*
|
|
@@ -197,7 +197,7 @@ export declare type PlaceholderResolvedValue<T> = T extends Array<infer A> ? Fla
|
|
|
197
197
|
*
|
|
198
198
|
* @public
|
|
199
199
|
*/
|
|
200
|
-
export
|
|
200
|
+
export type PlaceholdersResolvedValues<Tuple extends any[]> = {
|
|
201
201
|
[Index in keyof Tuple]: PlaceholderResolvedValue<Tuple[Index]>;
|
|
202
202
|
};
|
|
203
203
|
/**
|
|
@@ -209,7 +209,7 @@ export declare type PlaceholdersResolvedValues<Tuple extends any[]> = {
|
|
|
209
209
|
* ```
|
|
210
210
|
* @public
|
|
211
211
|
*/
|
|
212
|
-
export
|
|
212
|
+
export type ArrayOf<T> = T extends any ? T[] : never;
|
|
213
213
|
/**
|
|
214
214
|
* Generate all possible combinations of arrays signatures for the union type.
|
|
215
215
|
*
|
|
@@ -220,7 +220,7 @@ export declare type ArrayOf<T> = T extends any ? T[] : never;
|
|
|
220
220
|
*
|
|
221
221
|
* @public
|
|
222
222
|
*/
|
|
223
|
-
export
|
|
223
|
+
export type AnyArrayOf<T> = T[] | ArrayOf<T>;
|
|
224
224
|
/**
|
|
225
225
|
* Wrap each member of the union type in AnyPlaceholder.
|
|
226
226
|
*
|
|
@@ -231,7 +231,7 @@ export declare type AnyArrayOf<T> = T[] | ArrayOf<T>;
|
|
|
231
231
|
*
|
|
232
232
|
* @public
|
|
233
233
|
*/
|
|
234
|
-
export
|
|
234
|
+
export type PlaceholderOf<T> = T extends any ? AnyPlaceholder<T> : never;
|
|
235
235
|
/**
|
|
236
236
|
* Generate all possible combinations of placeholder signatures for the union type.
|
|
237
237
|
*
|
|
@@ -243,19 +243,19 @@ export declare type PlaceholderOf<T> = T extends any ? AnyPlaceholder<T> : never
|
|
|
243
243
|
* ```
|
|
244
244
|
* @public
|
|
245
245
|
*/
|
|
246
|
-
export
|
|
246
|
+
export type AnyPlaceholderOf<T> = AnyPlaceholder<T> | PlaceholderOf<T>;
|
|
247
247
|
/**
|
|
248
248
|
* Represents value of type T or any placeholder that may hold value T.
|
|
249
249
|
*
|
|
250
250
|
* @public
|
|
251
251
|
*/
|
|
252
|
-
export
|
|
252
|
+
export type ValueOrPlaceholder<T> = T | AnyPlaceholderOf<T>;
|
|
253
253
|
/**
|
|
254
254
|
* Represents array of values T or placeholders that may hold value T.
|
|
255
255
|
*
|
|
256
256
|
* @public
|
|
257
257
|
*/
|
|
258
|
-
export
|
|
258
|
+
export type ValuesOrPlaceholders<T> = AnyArrayOf<ValueOrMultiValuePlaceholder<T>>;
|
|
259
259
|
/**
|
|
260
260
|
* Generate union of measures from union of measure definitions.
|
|
261
261
|
*
|
|
@@ -265,15 +265,15 @@ export declare type ValuesOrPlaceholders<T> = AnyArrayOf<ValueOrMultiValuePlaceh
|
|
|
265
265
|
*
|
|
266
266
|
* @public
|
|
267
267
|
*/
|
|
268
|
-
export
|
|
268
|
+
export type MeasureOf<T extends IMeasureDefinitionType> = T extends any ? IMeasure<T> : never;
|
|
269
269
|
/**
|
|
270
270
|
* Represents all possible measure signatures.
|
|
271
271
|
*
|
|
272
272
|
* @public
|
|
273
273
|
*/
|
|
274
|
-
export
|
|
274
|
+
export type AnyMeasure = IMeasure | MeasureOf<IMeasureDefinitionType>;
|
|
275
275
|
/**
|
|
276
276
|
* @public
|
|
277
277
|
*/
|
|
278
|
-
export
|
|
278
|
+
export type ValueOrMultiValuePlaceholder<T> = ValueOrPlaceholder<T> | AnyPlaceholderOf<T[]>;
|
|
279
279
|
//# sourceMappingURL=base.d.ts.map
|