@gooddata/sdk-ui 8.13.0-alpha.5.fix.1 → 8.13.0-alpha.51
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 +24 -16
- package/dist/base/constants/bucketNames.d.ts.map +1 -1
- package/dist/base/constants/bucketNames.js +33 -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 +1 -1
- package/dist/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/dist/base/headerMatching/MappingHeader.js +16 -16
- 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 +1 -1
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.js +4 -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.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.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 +83 -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.js +22 -28
- 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 +2 -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/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 +2 -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.js +151 -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.js +28 -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 +5 -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 +11 -10
- package/dist/base/vis/visualizationTypes.d.ts.map +1 -1
- package/dist/base/vis/visualizationTypes.js +2 -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.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.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 +40 -31
- package/esm/base/constants/bucketNames.d.ts +24 -16
- package/esm/base/constants/bucketNames.d.ts.map +1 -1
- package/esm/base/constants/bucketNames.js +34 -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 +1 -1
- package/esm/base/headerMatching/MappingHeader.d.ts.map +1 -1
- package/esm/base/headerMatching/MappingHeader.js +2 -2
- package/esm/base/headerMatching/MappingHeader.js.map +1 -1
- package/esm/base/helpers/CatalogHelper.js +33 -35
- package/esm/base/helpers/CatalogHelper.js.map +1 -1
- package/esm/base/index.d.ts +1 -1
- package/esm/base/index.d.ts.map +1 -1
- package/esm/base/index.js +1 -1
- 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.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.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 +83 -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.js +12 -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 +2 -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/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 +2 -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.js +130 -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.js +23 -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 +5 -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 +11 -10
- package/esm/base/vis/visualizationTypes.d.ts.map +1 -1
- package/esm/base/vis/visualizationTypes.js +3 -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.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.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 +20 -24
- 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
|
@@ -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/B,+DAA+B;AAG/B,oEAIuC;AACvC,6CAAmF;AACnF,iDAAsD;AACtD,8DAA0D;AAC1D,gEAA6D;AAE7D,mEAAmE;AAmDnE;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAC9B,cAA+D;IAE/D,MAAM,iBAAkB,SAAQ,eAAK,CAAC,SAAwD;QAU1F,YAAY,KAAgC;YACxC,KAAK,CAAC,KAAK,CAAC,CAAC;YART,iBAAY,GAAY,KAAK,CAAC;YAEtC;;eAEG;YACK,+BAA0B,GAAkB,IAAI,CAAC;YA4KjD,mBAAc,GAAG,CAAC,KAAgC,EAA6B,EAAE;gBACrF,OAAO,IAAA,cAAI,EAAC,KAAK,EAAE,CAAC,WAAW,CAAC,CAAQ,CAAC;YAC7C,CAAC,CAAC;YAzKE,IAAI,CAAC,KAAK,GAAG;gBACT,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,IAAI;gBACX,eAAe,EAAE,IAAI;gBACrB,QAAQ,EAAE,IAAI;aACjB,CAA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der, 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,U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GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAIxE;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;AAElE;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAItE;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GACnC,kBAAkB,CAAC,UAAU,GAAG,UAAU,CAAC,GAC3C,kBAAkB,CAAC,UAAU,CAAC,GAC9B,kBAAkB,CAAC,UAAU,CAAC,CAAC;AAErC;;;;GAIG;AACH,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAC9C,4BAA4B,CAAC,UAAU,GAAG,UAAU,CAAC,GACrD,4BAA4B,CAAC,UAAU,CAAC,GACxC,4BAA4B,CAAC,UAAU,CAAC,CAC7C,CAAC;AAIF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/base/react/placeholders/base.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEvE;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/base/react/placeholders/base.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEv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C,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;AAEvE;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,UAAU,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC;AAElF;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,sBAAsB,IAAI,CAAC,SAAS,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;AAE9F;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC,sBAAsB,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,4BAA4B,CAAC,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isComposedPlaceholder = exports.isPlaceholder = exports.isAnyPlaceholder = void 0;
|
|
4
|
-
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
5
|
// (C) 2019-2022 GoodData Corporation
|
|
6
|
-
|
|
6
|
+
const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
|
|
7
7
|
/**
|
|
8
8
|
* Type-guard testing whether the provided object is an instance of {@link AnyPlaceholder}.
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
function isAnyPlaceholder(obj) {
|
|
12
|
-
|
|
13
|
-
return guards.some(
|
|
12
|
+
const guards = [isPlaceholder, isComposedPlaceholder];
|
|
13
|
+
return guards.some((pred) => pred(obj));
|
|
14
14
|
}
|
|
15
15
|
exports.isAnyPlaceholder = isAnyPlaceholder;
|
|
16
16
|
/**
|
|
@@ -18,7 +18,7 @@ exports.isAnyPlaceholder = isAnyPlaceholder;
|
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
20
|
function isPlaceholder(obj) {
|
|
21
|
-
return !isEmpty_1.default(obj) && obj.type === "IPlaceholder";
|
|
21
|
+
return !(0, isEmpty_1.default)(obj) && obj.type === "IPlaceholder";
|
|
22
22
|
}
|
|
23
23
|
exports.isPlaceholder = isPlaceholder;
|
|
24
24
|
/**
|
|
@@ -26,7 +26,7 @@ exports.isPlaceholder = isPlaceholder;
|
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
28
|
function isComposedPlaceholder(obj) {
|
|
29
|
-
return (!isEmpty_1.default(obj) &&
|
|
29
|
+
return (!(0, isEmpty_1.default)(obj) &&
|
|
30
30
|
obj.type === "IComposedPlaceholder");
|
|
31
31
|
}
|
|
32
32
|
exports.isComposedPlaceholder = isComposedPlaceholder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/base/react/placeholders/base.ts"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/base/react/placeholders/base.ts"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,qEAAqC;AAUrC;;;GAGG;AACH,SAAgB,gBAAgB,CAAI,GAAY;IAC5C,MAAM,MAAM,GAAkC,CAAC,aAAa,EAAE,qBAAqB,CAAC,CAAC;IAErF,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5C,CAAC;AAJD,4CAIC;AA0CD;;;GAGG;AACH,SAAgB,aAAa,CAAI,GAAY;IACzC,OAAO,CAAC,IAAA,iBAAO,EAAC,GAAG,CAAC,IAAK,GAAuB,CAAC,IAAI,KAAK,cAAc,CAAC;AAC7E,CAAC;AAFD,sCAEC;AAuBD;;;GAGG;AACH,SAAgB,qBAAqB,CACjC,GAAY;IAEZ,OAAO,CACH,CAAC,IAAA,iBAAO,EAAC,GAAG,CAAC;QACZ,GAAuD,CAAC,IAAI,KAAK,sBAAsB,CAC3F,CAAC;AACN,CAAC;AAPD,sDAOC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/base/react/placeholders/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/base/react/placeholders/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;CACnD,CAAC;AAEF;;GAEG;AACH,UAAU,yBAAyB;IAC/B,KAAK,EAAE,iBAAiB,CAAC;IACzB,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,iBAAiB,KAAK,IAAI,CAAC;CACpF;AAaD;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAO,yBAA4D,CAAC;AAEvG;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;CAC9C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,0BAA0B,GAAG,GAAG,CAAC,OAAO,CA2BnF"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlaceholdersProvider = exports.usePlaceholdersContext = void 0;
|
|
4
|
-
|
|
5
|
-
// (C) 2019 GoodData Corporation
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
// (C) 2019-2023 GoodData Corporation
|
|
6
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
7
|
+
const noop_1 = tslib_1.__importDefault(require("lodash/noop"));
|
|
8
8
|
/**
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
const PlaceholdersContext = (0, react_1.createContext)({
|
|
12
12
|
state: {
|
|
13
13
|
placeholders: {},
|
|
14
14
|
},
|
|
@@ -18,7 +18,8 @@ PlaceholdersContext.displayName = "PlaceholdersContext";
|
|
|
18
18
|
/**
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
const usePlaceholdersContext = () => (0, react_1.useContext)(PlaceholdersContext);
|
|
22
|
+
exports.usePlaceholdersContext = usePlaceholdersContext;
|
|
22
23
|
/**
|
|
23
24
|
* Wraps component into a PlaceholdersContext consumer enabling the children of this to access the current
|
|
24
25
|
* placeholders state.
|
|
@@ -27,19 +28,19 @@ exports.usePlaceholdersContext = function () { return react_1.useContext(Placeho
|
|
|
27
28
|
*/
|
|
28
29
|
function PlaceholdersProvider(props) {
|
|
29
30
|
var _a;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
acc[placeholder.id] =
|
|
31
|
+
const { children, initialValues } = props;
|
|
32
|
+
const accumulator = {};
|
|
33
|
+
const initialPlaceholdersState = (_a = initialValues === null || initialValues === void 0 ? void 0 : initialValues.reduce((acc, [placeholder, value]) => {
|
|
34
|
+
acc[placeholder.id] = Object.assign(Object.assign({}, placeholder), { value });
|
|
34
35
|
return acc;
|
|
35
|
-
},
|
|
36
|
-
|
|
36
|
+
}, accumulator)) !== null && _a !== void 0 ? _a : {};
|
|
37
|
+
const [state, updateState] = (0, react_1.useState)({
|
|
37
38
|
placeholders: initialPlaceholdersState,
|
|
38
|
-
})
|
|
39
|
-
react_1.useDebugValue(state);
|
|
39
|
+
});
|
|
40
|
+
(0, react_1.useDebugValue)(state);
|
|
40
41
|
return (react_1.default.createElement(PlaceholdersContext.Provider, { value: {
|
|
41
|
-
state
|
|
42
|
-
updateState
|
|
42
|
+
state,
|
|
43
|
+
updateState,
|
|
43
44
|
} }, children));
|
|
44
45
|
}
|
|
45
46
|
exports.PlaceholdersProvider = PlaceholdersProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/base/react/placeholders/context.tsx"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/base/react/placeholders/context.tsx"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,uDAAkF;AAClF,+DAA+B;AAkB/B;;GAEG;AACH,MAAM,mBAAmB,GAAG,IAAA,qBAAa,EAA4B;IACjE,KAAK,EAAE;QACH,YAAY,EAAE,EAAE;KACnB;IACD,WAAW,EAAE,cAAI;CACpB,CAAC,CAAC;AACH,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAExD;;GAEG;AACI,MAAM,sBAAsB,GAAG,GAA8B,EAAE,CAAC,IAAA,kBAAU,EAAC,mBAAmB,CAAC,CAAC;AAA1F,QAAA,sBAAsB,0BAAoE;AAWvG;;;;;GAKG;AACH,SAAgB,oBAAoB,CAAC,KAAiC;;IAClE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAC1C,MAAM,WAAW,GAAsC,EAAE,CAAC;IAC1D,MAAM,wBAAwB,GAC1B,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,EAAE;QAChD,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,mCACZ,WAAW,KACd,KAAK,GACR,CAAC;QACF,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,WAAW,CAAC,mCAAI,EAAE,CAAC;IAE1B,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAoB;QACrD,YAAY,EAAE,wBAAwB;KACzC,CAAC,CAAC;IACH,IAAA,qBAAa,EAAC,KAAK,CAAC,CAAC;IAErB,OAAO,CACH,8BAAC,mBAAmB,CAAC,QAAQ,IACzB,KAAK,EAAE;YACH,KAAK;YACL,WAAW;SACd,IAEA,QAAQ,CACkB,CAClC,CAAC;AACN,CAAC;AA3BD,oDA2BC"}
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.newComposedPlaceholder = exports.newPlaceholder = void 0;
|
|
4
|
-
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
5
|
// (C) 2019-2022 GoodData Corporation
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const uuid_1 = require("uuid");
|
|
7
|
+
const identity_1 = tslib_1.__importDefault(require("lodash/identity"));
|
|
8
|
+
const hooks_1 = require("./hooks");
|
|
9
9
|
/**
|
|
10
10
|
* Create a new placeholder.
|
|
11
11
|
* See {@link IPlaceholder}.
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
function newPlaceholder(defaultValue, options) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var placeholder = {
|
|
15
|
+
function newPlaceholder(defaultValue, options = {}) {
|
|
16
|
+
const { id, validate } = options;
|
|
17
|
+
const placeholder = {
|
|
19
18
|
type: "IPlaceholder",
|
|
20
|
-
id: id !== null && id !== void 0 ? id : uuid_1.v4(),
|
|
21
|
-
defaultValue
|
|
22
|
-
validate
|
|
19
|
+
id: id !== null && id !== void 0 ? id : (0, uuid_1.v4)(),
|
|
20
|
+
defaultValue,
|
|
21
|
+
validate,
|
|
23
22
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
24
|
-
use:
|
|
23
|
+
use: () => (0, hooks_1.usePlaceholder)(placeholder),
|
|
25
24
|
};
|
|
26
25
|
return placeholder;
|
|
27
26
|
}
|
|
@@ -32,14 +31,13 @@ exports.newPlaceholder = newPlaceholder;
|
|
|
32
31
|
*
|
|
33
32
|
* @public
|
|
34
33
|
*/
|
|
35
|
-
function newComposedPlaceholder(placeholders, computeValue) {
|
|
36
|
-
|
|
37
|
-
var placeholder = {
|
|
34
|
+
function newComposedPlaceholder(placeholders, computeValue = identity_1.default) {
|
|
35
|
+
const placeholder = {
|
|
38
36
|
type: "IComposedPlaceholder",
|
|
39
|
-
placeholders
|
|
40
|
-
computeValue
|
|
37
|
+
placeholders,
|
|
38
|
+
computeValue,
|
|
41
39
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
42
|
-
use:
|
|
40
|
+
use: (resolutionContext) => (0, hooks_1.useComposedPlaceholder)(placeholder, resolutionContext),
|
|
43
41
|
};
|
|
44
42
|
return placeholder;
|
|
45
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../../src/base/react/placeholders/factory.ts"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC
|
|
1
|
+
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../../src/base/react/placeholders/factory.ts"],"names":[],"mappings":";;;;AAAA,qCAAqC;AACrC,+BAAoC;AACpC,uEAAuC;AASvC,mCAAiE;AAqBjE;;;;;GAKG;AACH,SAAgB,cAAc,CAAI,YAAgB,EAAE,UAAkC,EAAE;IACpF,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IACjC,MAAM,WAAW,GAAoB;QACjC,IAAI,EAAE,cAAc;QACpB,EAAE,EAAE,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,IAAA,SAAM,GAAE;QAClB,YAAY;QACZ,QAAQ;QACR,sDAAsD;QACtD,GAAG,EAAE,GAAG,EAAE,CAAC,IAAA,sBAAc,EAAC,WAAW,CAAC;KACzC,CAAC;IAEF,OAAO,WAAW,CAAC;AACvB,CAAC;AAZD,wCAYC;AAED;;;;;GAKG;AACH,SAAgB,sBAAsB,CAOlC,YAAyB,EACzB,eAGe,kBAAQ;IAEvB,MAAM,WAAW,GAAoD;QACjE,IAAI,EAAE,sBAAsB;QAC5B,YAAY;QACZ,YAAY;QACZ,sDAAsD;QACtD,GAAG,EAAE,CAAC,iBAA2B,EAAE,EAAE,CAAC,IAAA,8BAAsB,EAAC,WAAW,EAAE,iBAAiB,CAAC;KAC/F,CAAC;IAEF,OAAO,WAAW,CAAC;AACvB,CAAC;AAtBD,wDAsBC"}
|