@gooddata/sdk-ui-dashboard 11.69.0-alpha.3 → 11.69.0-alpha.5
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/NOTICE +248 -49
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/automation/index.d.ts +2 -2
- package/esm/_staging/automation/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +4 -5
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts +4 -4
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts +3 -3
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +3 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts +2 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.js +4 -3
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js +8 -1
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.js +12 -1
- package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.js +1 -10
- package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts +2 -2
- package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts.map +1 -1
- package/esm/model/store/_infra/unbatched.d.ts +6 -0
- package/esm/model/store/_infra/unbatched.d.ts.map +1 -0
- package/esm/model/store/_infra/unbatched.js +14 -0
- package/esm/model/store/catalog/catalogSelectors.d.ts +3 -3
- package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogState.d.ts +2 -2
- package/esm/model/store/catalog/catalogState.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +27 -15
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +34 -0
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +8 -7
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +14 -16
- package/esm/model/types/commonTypes.d.ts +7 -0
- package/esm/model/types/commonTypes.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +2 -2
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.js +29 -6
- package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts +7 -7
- package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts +2 -2
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardContentScrollContainer.d.ts +17 -0
- package/esm/presentation/dashboard/components/DashboardContentScrollContainer.d.ts.map +1 -0
- package/esm/presentation/dashboard/components/DashboardContentScrollContainer.js +97 -0
- package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardInner.js +22 -5
- package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts +5 -1
- package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/ExportCsvDialogContext.js +5 -2
- package/esm/presentation/dashboardContexts/ExportTabularPdfDialogContext.d.ts +5 -1
- package/esm/presentation/dashboardContexts/ExportTabularPdfDialogContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/ExportTabularPdfDialogContext.js +5 -2
- package/esm/presentation/dashboardContexts/ExportTemplateDialogContext.d.ts +4 -0
- package/esm/presentation/dashboardContexts/ExportTemplateDialogContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/ExportXlsxDialogContext.d.ts +5 -1
- package/esm/presentation/dashboardContexts/ExportXlsxDialogContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/ExportXlsxDialogContext.js +6 -3
- package/esm/presentation/dialogs/ExportCsvDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportCsvDialogProvider.js +6 -5
- package/esm/presentation/dialogs/ExportTabularPdfDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportTabularPdfDialogProvider.js +3 -3
- package/esm/presentation/dialogs/ExportTemplateDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportTemplateDialogProvider.js +8 -7
- package/esm/presentation/dialogs/ExportXlsxDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportXlsxDialogProvider.js +3 -3
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.d.ts +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.js +72 -12
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +12 -12
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.js +2 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts +2 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.js +2 -2
- package/esm/presentation/drill/DrillSelect/WithDrillSelect.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/WithDrillSelect.js +12 -2
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +49 -11
- package/esm/presentation/filterBar/filterBar/ResetFiltersButton.d.ts +7 -0
- package/esm/presentation/filterBar/filterBar/ResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/ResetFiltersButton.js +10 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayer.d.ts +10 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayer.js +20 -8
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar.js +5 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +8 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +8 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +1 -0
- package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.d.ts +6 -2
- package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.d.ts.map +1 -1
- package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.js +28 -3
- package/esm/presentation/saveAs/DefaultSaveAsDialog/index.d.ts.map +1 -1
- package/esm/presentation/saveAs/DefaultSaveAsDialog/index.js +19 -5
- package/esm/presentation/saveAs/DefaultSaveAsDialog/useSaveAs.d.ts +1 -1
- package/esm/presentation/saveAs/DefaultSaveAsDialog/useSaveAs.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +8 -3
- package/esm/presentation/topBar/menuButton/useExportWithTemplateSelection.d.ts +3 -1
- package/esm/presentation/topBar/menuButton/useExportWithTemplateSelection.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useExportWithTemplateSelection.js +4 -2
- package/esm/presentation/widget/common/useInsightExport.d.ts +4 -0
- package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.js +12 -8
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js +3 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js +3 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.d.ts +4 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.js +2 -2
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.d.ts +5 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js +4 -4
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js +17 -5
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenuButton.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenuButton.js +7 -2
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +3 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +3 -1
- package/esm/sdk-ui-dashboard.d.ts +13 -6
- package/package.json +24 -25
- package/styles/css/dashboard.css +40 -4
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/filterBar.css +6 -1
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +84 -9
- package/styles/css/main.css.map +1 -1
- package/styles/css/resizing.css +16 -0
- package/styles/css/resizing.css.map +1 -1
- package/styles/scss/_zIndexes.scss +3 -0
- package/styles/scss/dashboard.scss +50 -2
- package/styles/scss/filterBar.scss +6 -1
- package/styles/scss/resizing.scss +18 -1
|
@@ -10,7 +10,7 @@ import { selectIsInEditMode } from "../../renderMode/renderModeSelectors.js";
|
|
|
10
10
|
import { selectAllTabsInsightWidgetContexts, selectAllTabsWidgetContexts, } from "../layout/layoutSelectors.js";
|
|
11
11
|
import { selectActiveOrDefaultTabLocalIdentifier, selectActiveTab, selectTabs } from "../tabsSelectors.js";
|
|
12
12
|
import { DEFAULT_TAB_ID } from "../tabsState.js";
|
|
13
|
-
import { EMPTY_EXPORT_PARAMETERS_BY_TAB, applyDisplayOverride, applyRuntimeOverride, buildPersistedByTabAndRef, buildWorkspaceParametersByRef, classifyParameterReconciliation, collectAppliedParameterValues, collectExportOverrides, collectParameterReconciliations, collectRootParameterRefs, collectWidgetFilterParameterRoots, computeParameterResetTargets, computeParameterResetValue, displayOverride, hydrateParameterEntry, isGatedStringEntry, resolveEffectiveParameterValuesForRefs,
|
|
13
|
+
import { EMPTY_EXPORT_PARAMETERS_BY_TAB, applyDisplayOverride, applyRuntimeOverride, buildPersistedByTabAndRef, buildWorkspaceParametersByRef, classifyParameterReconciliation, collectAppliedParameterValues, collectExportOverrides, collectParameterReconciliations, collectRootParameterRefs, collectWidgetFilterParameterRoots, collectWidgetParameters, computeParameterResetTargets, computeParameterResetValue, displayOverride, hydrateParameterEntry, isGatedStringEntry, resolveEffectiveParameterValuesForRefs, resolveParameterValues, smartPersistResolvedEntry, ungatedInsightParameterValues, ungatedTabEntries, } from "./parametersHelpers.js";
|
|
14
14
|
import { parametersInitialState, pickTabParametersSource, } from "./parametersState.js";
|
|
15
15
|
const EMPTY_PARAMETERS = [];
|
|
16
16
|
const EMPTY_EXPORT_PARAMETERS = [];
|
|
@@ -368,9 +368,10 @@ export const selectReferencedInsightParameterValuesForWidget = createMemoizedSel
|
|
|
368
368
|
return resolveEffectiveParameterValuesForRefs([], referencedRefs, insightParameterValues, workspaceParameterByRef);
|
|
369
369
|
}));
|
|
370
370
|
/**
|
|
371
|
-
* Every ungated parameter of the widget's tab, all modes,
|
|
372
|
-
*
|
|
373
|
-
* `
|
|
371
|
+
* Every ungated parameter of the widget's tab, all modes, then every ungated parameter that the
|
|
372
|
+
* widget's insight saves, the tab does not have and the workspace catalog has. Each comes with its
|
|
373
|
+
* drill to URL value: the dashboard `runtimeOverride`, else the insight value, else the workspace
|
|
374
|
+
* default. Returns `[]` when `enableParameters` is off.
|
|
374
375
|
*
|
|
375
376
|
* @internal
|
|
376
377
|
*/
|
|
@@ -378,18 +379,15 @@ export const selectWidgetParameterValues = createMemoizedSelector((ref) => creat
|
|
|
378
379
|
if (!context) {
|
|
379
380
|
return EMPTY_WIDGET_PARAMETER_VALUES;
|
|
380
381
|
}
|
|
381
|
-
const
|
|
382
|
-
const
|
|
383
|
-
const values = resolveParameterValues(context,
|
|
384
|
-
return
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
value: values.get(identifier),
|
|
391
|
-
};
|
|
392
|
-
});
|
|
382
|
+
const insight = context.widgetInsightRef ? insights.get(context.widgetInsightRef) : undefined;
|
|
383
|
+
const parameters = collectWidgetParameters(context, insight);
|
|
384
|
+
const values = resolveParameterValues(context, parameters.map(({ ref }) => ref), insight);
|
|
385
|
+
return parameters.map(({ ref, parameterType, title }) => ({
|
|
386
|
+
identifier: ref.identifier,
|
|
387
|
+
parameterType,
|
|
388
|
+
title,
|
|
389
|
+
value: values.get(ref.identifier),
|
|
390
|
+
}));
|
|
393
391
|
}));
|
|
394
392
|
/**
|
|
395
393
|
* Returns the effective dashboard parameters (persisted shape with any `runtimeOverride` folded
|
|
@@ -85,6 +85,13 @@ export type DashboardConfig = {
|
|
|
85
85
|
separators?: ISeparators;
|
|
86
86
|
/**
|
|
87
87
|
* Settings may influence how the dashboard behaves or what features it exposes.
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* The settings are merged over the settings loaded from the backend: a key specified here overrides
|
|
91
|
+
* the backend value, every other key keeps the backend value.
|
|
92
|
+
*
|
|
93
|
+
* When `locale` and `separators` are specified as well, the dashboard does not load the settings
|
|
94
|
+
* from the backend and these settings replace them entirely.
|
|
88
95
|
*/
|
|
89
96
|
settings?: ISettings;
|
|
90
97
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonTypes.d.ts","sourceRoot":"","sources":["../../../src/model/types/commonTypes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EACH,KAAK,iBAAiB,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F;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAC3B,SAAS,EAAE,UAAU,CAAC,uBAAuB,CAAC,KAC7C,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAE,kBAAkB,GAAG,kBAAkB,CAAC;CAC1D;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,EAAE,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC,WAAW,EAAE,wBAAwB,CAAC;IACtC,gBAAgB,EAAE;QACd,CAAC,eAAe,EAAE,MAAM,GAAG,8BAA8B,CAAC;KAC7D,CAAC;CACL;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAC;AAE9E;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,oBAAoB,CAAC,EAAE,qBAAqB,CAAC;CAChD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DashboardAttributeFilterSelectionType, DateFilterGranularity, FilterContextItem, IAttributeDisplayFormMetadataObject, ICatalogAttribute, ICatalogDateAttribute, ICatalogDateDataset, ICatalogMeasure, IDashboardAttributeFilterConfig, IDashboardDateFilterConfig, IDashboardDateFilterConfigItem, IDashboardMeasureValueFilterConfig, IDashboardParameter,
|
|
1
|
+
import type { DashboardAttributeFilterSelectionType, DateFilterGranularity, FilterContextItem, IAttributeDisplayFormMetadataObject, ICatalogAttribute, ICatalogDateAttribute, ICatalogDateDataset, ICatalogMeasure, IDashboardAttributeFilterConfig, IDashboardDateFilterConfig, IDashboardDateFilterConfigItem, IDashboardMeasureValueFilterConfig, IDashboardParameter, IScalarParameterMetadataObject, ISeparators, ISettings, IUser, ObjRef, WeekStart } from "@gooddata/sdk-model";
|
|
2
2
|
import type { ILocale } from "@gooddata/sdk-ui";
|
|
3
3
|
import type { IDateFilterOptionsByType } from "@gooddata/sdk-ui-filters";
|
|
4
4
|
import type { IAutomationFiltersTab } from "../../../model/store/filtering/types.js";
|
|
@@ -40,7 +40,7 @@ export interface IAutomationsParameters {
|
|
|
40
40
|
/** Whether STRING-typed parameters are enabled; from selectEnableStringParameters. */
|
|
41
41
|
stringParametersEnabled: boolean;
|
|
42
42
|
/** The workspace parameter catalog; from selectCatalogParameters. */
|
|
43
|
-
catalog:
|
|
43
|
+
catalog: IScalarParameterMetadataObject[];
|
|
44
44
|
/**
|
|
45
45
|
* Whether the parameter catalog has finished loading. Before it has, every stored parameter
|
|
46
46
|
* ref looks removed, so staleness checks must treat loading as not-stale.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomationsContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/contexts/AutomationsContext.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,qCAAqC,EACrC,qBAAqB,EACrB,iBAAiB,EACjB,mCAAmC,EACnC,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"AutomationsContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/contexts/AutomationsContext.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR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E,QAAQ,EAAE;QACN,wIAAwI;QACxI,mBAAmB,EAAE,OAAO,CAAC;QAC7B,8GAA8G;QAC9G,0BAA0B,EAAE,OAAO,CAAC;QACpC,sGAAsG;QACtG,2BAA2B,EAAE,OAAO,CAAC;QACrC,6KAA6K;QAC7K,iBAAiB,EAAE,OAAO,CAAC;QAC3B,wFAAwF;QACxF,kBAAkB,EAAE,OAAO,CAAC;QAC5B,uGAAuG;QACvG,sBAAsB,EAAE,OAAO,CAAC;QAChC,4GAA4G;QAC5G,8BAA8B,EAAE,OAAO,CAAC;KAC3C,CAAC;IACF,gIAAgI;IAChI,UAAU,EAAE,sBAAsB,CAAC;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,sFAAsF;IACtF,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChD,2JAA2J;IAC3J,wBAAwB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,iBAAiB,GAAG,qBAAqB,GAAG,SAAS,CAAC;IACjG;;;;OAIG;IACH,6BAA6B,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,mCAAmC,GAAG,SAAS,CAAC;IACxG;;;;OAIG;IACH,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,OAAO,CAAC;CAC3D;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,gEAA8B,CAAC;AAEtE;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,wBAAwB,CAWhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultScheduledEmailManagementDialogContent.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAqBrE,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAO3E,UAAU,kDAAkD;IACxD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,CAAC,cAAc,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC5D,mBAAmB,CAAC,EAAE,6BAA6B,CAAC;CACvD;AAED,wBAAgB,4CAA4C,CAAC,EACzD,KAAK,EACL,OAAO,EACP,MAAM,EACN,mBAAmB,EAAE,yBAAyB,GACjD,EAAE,kDAAkD,
|
|
1
|
+
{"version":3,"file":"DefaultScheduledEmailManagementDialogContent.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAqBrE,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAO3E,UAAU,kDAAkD;IACxD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,CAAC,cAAc,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC5D,mBAAmB,CAAC,EAAE,6BAA6B,CAAC;CACvD;AAED,wBAAgB,4CAA4C,CAAC,EACzD,KAAK,EACL,OAAO,EACP,MAAM,EACN,mBAAmB,EAAE,yBAAyB,GACjD,EAAE,kDAAkD,2CAsLpD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
|
-
import { useCallback, useMemo } from "react";
|
|
3
|
+
import { useCallback, useMemo, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { defineMessage, useIntl } from "react-intl";
|
|
6
6
|
import { buildDashboardUrl, useBackend, useWorkspace } from "@gooddata/sdk-ui";
|
|
@@ -43,15 +43,31 @@ export function DefaultScheduledEmailManagementDialogContent({ onAdd, onClose, o
|
|
|
43
43
|
? { recipient: externalRecipientOverride }
|
|
44
44
|
: undefined,
|
|
45
45
|
}), [customDashboardUrlBuilder, isEmbedded, externalRecipientOverride]);
|
|
46
|
+
const createButtonId = useId();
|
|
47
|
+
// When the create dialog closes, focus goes back to the "Create new" button that opened it.
|
|
48
|
+
const [focusCreateButton, setFocusCreateButton] = useState(false);
|
|
49
|
+
// Do not forward the click event: `onAdd` accepts an optional target widget, and the event
|
|
50
|
+
// object would be mistaken for it.
|
|
51
|
+
const handleAdd = useCallback(() => {
|
|
52
|
+
setFocusCreateButton(true);
|
|
53
|
+
onAdd?.();
|
|
54
|
+
}, [onAdd]);
|
|
55
|
+
const handleEdit = useCallback((scheduledEmail) => {
|
|
56
|
+
setFocusCreateButton(false);
|
|
57
|
+
onEdit(scheduledEmail);
|
|
58
|
+
}, [onEdit]);
|
|
46
59
|
const titleElementId = useId();
|
|
47
|
-
return (_jsx(Dialog, { displayCloseButton: true, autofocusOnOpen: true, onCancel: onClose, className: cx("gd-notifications-channels-management-dialog s-scheduled-email-management-dialog", "gd-dialog--wide gd-notifications-channels-management-dialog--wide", "gd-dialog--no-padding"),
|
|
60
|
+
return (_jsx(Dialog, { displayCloseButton: true, autofocusOnOpen: true, onCancel: onClose, className: cx("gd-notifications-channels-management-dialog s-scheduled-email-management-dialog", "gd-dialog--wide gd-notifications-channels-management-dialog--wide", "gd-dialog--no-padding"),
|
|
61
|
+
// While the create/edit dialog is open on top of this one, this dialog must not stay
|
|
62
|
+
// the active modal: otherwise the create/edit dialog cannot take focus from it.
|
|
63
|
+
accessibilityConfig: { titleElementId, isModal: !isEditDialogOpen }, returnFocusAfterClose: true, returnFocusTo: returnFocusTo, refocusKey: isEditDialogOpen, initialFocus: focusCreateButton && !isEditDialogOpen ? createButtonId : undefined, children: _jsxs(OverlayControllerProvider, { overlayController: overlayController, children: [_jsx("div", { className: "gd-notifications-channels-management-dialog-title", children: _jsx(Typography, { tagName: "h3", className: "gd-dialog-header", id: titleElementId, children: intl.formatMessage({ id: "dialogs.schedule.management.title" }) }) }), _jsx(ContentDivider, { className: "gd-content-divider--no-spacing" }), _jsx("div", { className: "gd-notifications-channels-content", children: _jsx(Automations, { workspace: workspace, timezone: timezone, type: "schedule", backend: backend, scope: "workspace", maxHeight: AUTOMATIONS_MAX_HEIGHT, isMobileView: isMobile, tableVariant: "small", editAutomation: handleEdit, preselectedFilters: {
|
|
48
64
|
dashboard: dashboardId
|
|
49
65
|
? [{ value: dashboardId, label: dashboardTitle }]
|
|
50
66
|
: undefined,
|
|
51
67
|
externalRecipients: externalRecipientOverride
|
|
52
68
|
? [{ value: externalRecipientOverride }]
|
|
53
69
|
: undefined,
|
|
54
|
-
}, enableBulkActions: enableBulkActions, availableFilters: availableFilters, locale: locale, externalInvalidationId: automationsInvalidationId, renderToolbarCustomElement: () => canCreateAutomation ? (_jsx(CreateButton, { onClick:
|
|
70
|
+
}, enableBulkActions: enableBulkActions, availableFilters: availableFilters, locale: locale, externalInvalidationId: automationsInvalidationId, renderToolbarCustomElement: () => canCreateAutomation ? (_jsx(CreateButton, { id: createButtonId, onClick: handleAdd, isDisabled: isAddButtonDisabled, label: intl.formatMessage({
|
|
55
71
|
id: messages.scheduleManagementCreateNew.id,
|
|
56
72
|
}), tooltipContent: maxAutomationsReached
|
|
57
73
|
? intl.formatMessage({
|
|
@@ -66,6 +82,13 @@ export function DefaultScheduledEmailManagementDialogContent({ onAdd, onClose, o
|
|
|
66
82
|
ariaControls: SCHEDULED_EMAIL_DIALOG_ID,
|
|
67
83
|
} })) : null, selectedColumnDefinitions: AUTOMATIONS_COLUMN_CONFIG, dashboardUrlBuilder: dashboardUrlBuilder }) }), _jsx(ContentDivider, { className: "gd-content-divider--no-spacing" }), _jsxs("div", { className: `gd-buttons${isWhiteLabeled ? " gd-buttons--end" : ""}`, children: [isWhiteLabeled ? null : (_jsx(Hyperlink, { text: intl.formatMessage({ id: helpTextId }), href: "https://www.gooddata.com/docs/cloud/create-dashboards/automation/scheduled-exports/#ScheduleExportsinDashboards-ScheduleExport", iconClass: "gd-icon-circle-question" })), _jsx("div", { className: "gd-buttons-inner", children: _jsx(Button, { onClick: onClose, className: "gd-button-secondary s-close-button", value: intl.formatMessage({ id: "close" }) }) })] })] }) }));
|
|
68
84
|
}
|
|
69
|
-
function CreateButton({ onClick, isDisabled, label, tooltipContent, isTooltipDisabled, accessibilityConfig, }) {
|
|
70
|
-
|
|
85
|
+
function CreateButton({ id, onClick, isDisabled, label, tooltipContent, isTooltipDisabled, accessibilityConfig, }) {
|
|
86
|
+
const disabledReasonId = useId();
|
|
87
|
+
const disabledReason = isDisabled && tooltipContent ? tooltipContent : undefined;
|
|
88
|
+
return (_jsxs(_Fragment, { children: [_jsx(UiTooltip, { optimalPlacement: true, anchor: _jsx(Button, { id: id, onClick: onClick, disabled: isDisabled, value: label, size: "small", className: "gd-button-action", accessibilityConfig: {
|
|
89
|
+
...accessibilityConfig,
|
|
90
|
+
// a disabled button does not open the dialog, so it must not claim to control it
|
|
91
|
+
...(isDisabled ? { ariaHaspopup: undefined, ariaControls: undefined } : {}),
|
|
92
|
+
...(disabledReason ? { ariaDescribedBy: disabledReasonId } : {}),
|
|
93
|
+
} }), disabled: isTooltipDisabled, triggerBy: ["hover"], content: tooltipContent }), disabledReason ? (_jsx("span", { id: disabledReasonId, className: "sr-only", children: disabledReason })) : null] }));
|
|
71
94
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DashboardParameterMode, type IAutomationMetadataObjectDefinition, type IDashboardExportParameter, type IDashboardParameter, type IInsightParameterValue, type
|
|
1
|
+
import { type DashboardParameterMode, type IAutomationMetadataObjectDefinition, type IDashboardExportParameter, type IDashboardParameter, type IInsightParameterValue, type IScalarParameterDefinition, type IScalarParameterMetadataObject, type IdentifierRef, type ParameterValue } from "@gooddata/sdk-model";
|
|
2
2
|
/**
|
|
3
3
|
* A workspace parameter resolved for display and editing inside an automation (alert/schedule)
|
|
4
4
|
* dialog. The `value` is the current effective value the headless run will capture; `definition`
|
|
@@ -27,7 +27,7 @@ export interface IAutomationParameter {
|
|
|
27
27
|
/**
|
|
28
28
|
* Resolved definition of the parameter; determines which editing control the chip renders.
|
|
29
29
|
*/
|
|
30
|
-
definition:
|
|
30
|
+
definition: IScalarParameterDefinition;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Stored {@link IInsightParameterValue} overrides carry only `{ref, value}`; title, mode and
|
|
@@ -40,7 +40,7 @@ export interface IAutomationParameter {
|
|
|
40
40
|
*
|
|
41
41
|
* @internal
|
|
42
42
|
*/
|
|
43
|
-
export declare function reconstructAutomationParametersFromValues(stored: IInsightParameterValue[], dashboardParameters: IDashboardParameter[], catalog:
|
|
43
|
+
export declare function reconstructAutomationParametersFromValues(stored: IInsightParameterValue[], dashboardParameters: IDashboardParameter[], catalog: IScalarParameterMetadataObject[], isStringParametersEnabled: boolean, valuesAreUntypedWire?: boolean): IAutomationParameter[];
|
|
44
44
|
/**
|
|
45
45
|
* Stored export overrides ({@link IDashboardExportParameter}) carry the value as a string; it is
|
|
46
46
|
* decoded back by the row's own type tag (see `exportParametersToValues`). Title, mode and
|
|
@@ -49,7 +49,7 @@ export declare function reconstructAutomationParametersFromValues(stored: IInsig
|
|
|
49
49
|
*
|
|
50
50
|
* @internal
|
|
51
51
|
*/
|
|
52
|
-
export declare function reconstructAutomationParametersFromExportParameters(stored: IDashboardExportParameter[], dashboardParameters: IDashboardParameter[], catalog:
|
|
52
|
+
export declare function reconstructAutomationParametersFromExportParameters(stored: IDashboardExportParameter[], dashboardParameters: IDashboardParameter[], catalog: IScalarParameterMetadataObject[], isStringParametersEnabled: boolean): IAutomationParameter[];
|
|
53
53
|
/**
|
|
54
54
|
* A workspace parameter the "+" menu offers; `isFromDashboard` marks the ones with a control on
|
|
55
55
|
* the dashboard tab so the menu can list them first, `tags` drive the menu's tag groups.
|
|
@@ -67,7 +67,7 @@ export interface IAvailableAutomationParameter extends IAutomationParameter {
|
|
|
67
67
|
*
|
|
68
68
|
* @internal
|
|
69
69
|
*/
|
|
70
|
-
export declare function availableAutomationParameters(catalog:
|
|
70
|
+
export declare function availableAutomationParameters(catalog: IScalarParameterMetadataObject[], selected: IAutomationParameter[], dashboardParameters: IDashboardParameter[] | undefined, widgetParameterValues: IInsightParameterValue[] | undefined, isStringParametersEnabled: boolean): IAvailableAutomationParameter[];
|
|
71
71
|
/**
|
|
72
72
|
* Returns a copy of the automation with `alert.execution.parameters` replaced. No-op when the
|
|
73
73
|
* automation carries no alert.
|
|
@@ -82,13 +82,13 @@ export declare function setAlertExecutionParameters(automation: IAutomationMetad
|
|
|
82
82
|
*
|
|
83
83
|
* @internal
|
|
84
84
|
*/
|
|
85
|
-
export declare function hasStaleAlertParameters(stored: IInsightParameterValue[] | undefined, catalog:
|
|
85
|
+
export declare function hasStaleAlertParameters(stored: IInsightParameterValue[] | undefined, catalog: IScalarParameterMetadataObject[]): boolean;
|
|
86
86
|
/**
|
|
87
87
|
* Removes the parameters {@link hasStaleAlertParameters} flags as stale.
|
|
88
88
|
*
|
|
89
89
|
* @internal
|
|
90
90
|
*/
|
|
91
|
-
export declare function dropStaleAlertParameters(stored: IInsightParameterValue[], catalog:
|
|
91
|
+
export declare function dropStaleAlertParameters(stored: IInsightParameterValue[], catalog: IScalarParameterMetadataObject[]): IInsightParameterValue[];
|
|
92
92
|
/**
|
|
93
93
|
* Encodes the display-ready parameter set back to the neutral export wire shape
|
|
94
94
|
* (`{id, value:string, title, parameterType}`). The full per-tab execution set (including `hidden` entries) is converted, not just the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automationParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/automationFilters/automationParameters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,sBAAsB,EAE3B,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,
|
|
1
|
+
{"version":3,"file":"automationParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/automationFilters/automationParameters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,sBAAsB,EAE3B,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,aAAa,EAClB,KAAK,cAAc,EAItB,MAAM,qBAAqB,CAAC;AAQ7B;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC;IAEnB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,0BAA0B,CAAC;CAC1C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yCAAyC,CACrD,MAAM,EAAE,sBAAsB,EAAE,EAChC,mBAAmB,EAAE,mBAAmB,EAAE,EAC1C,OAAO,EAAE,8BAA8B,EAAE,EACzC,yBAAyB,EAAE,OAAO,EAClC,oBAAoB,UAAQ,GAC7B,oBAAoB,EAAE,CA8BxB;AAED;;;;;;;GAOG;AACH,wBAAgB,mDAAmD,CAC/D,MAAM,EAAE,yBAAyB,EAAE,EACnC,mBAAmB,EAAE,mBAAmB,EAAE,EAC1C,OAAO,EAAE,8BAA8B,EAAE,EACzC,yBAAyB,EAAE,OAAO,GACnC,oBAAoB,EAAE,CAOx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AutomationMetadataObject, type IAutomationVisibleFilter, type IDashboardExportParameter, type IDashboardParameter, type IFilter, type IInsight, type
|
|
1
|
+
import { type DashboardAttributeFilterSelectionType, type FilterContextItem, type IAutomationMetadataObject, type IAutomationVisibleFilter, type IDashboardExportParameter, type IDashboardParameter, type IFilter, type IInsight, type IScalarParameterMetadataObject } from "@gooddata/sdk-model";
|
|
2
2
|
import { type ExtendedDashboardWidget } from "../../../../../model/types/layoutTypes.js";
|
|
3
3
|
export interface IAutomationValidationResult {
|
|
4
4
|
isValid: boolean;
|
|
@@ -36,7 +36,7 @@ export declare function useValidateExistingAutomationFilters({ automationToEdit,
|
|
|
36
36
|
*/
|
|
37
37
|
export declare function validateExistingAutomationParameters({ storedParametersByTab, catalog, dashboardParametersByTab, existingTabIds, widgetTabId, }: {
|
|
38
38
|
storedParametersByTab: Record<string, IDashboardExportParameter[]> | undefined;
|
|
39
|
-
catalog:
|
|
39
|
+
catalog: IScalarParameterMetadataObject[];
|
|
40
40
|
dashboardParametersByTab: Record<string, IDashboardParameter[]>;
|
|
41
41
|
existingTabIds: Set<string>;
|
|
42
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useValidateExistingAutomationFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,qCAAqC,EAE1C,KAAK,iBAAiB,EAEtB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,OAAO,EAEZ,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"useValidateExistingAutomationFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,qCAAqC,EAE1C,KAAK,iBAAiB,EAEtB,KAAK,y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EAAE,CAAC,CAAC;IAChE,kCAAkC,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,CAAC,CAAC;IAC/E,sBAAsB,EAAE,4BAA4B,EAAE,CAAC;IACvD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,qCAAqC,GAAG,SAAS,CAAC,CAAC,CAAC;CAC1G,GAAG,2BAA2B,CAsE9B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ReactNode, type RefObject } from "react";
|
|
2
|
+
interface IDashboardContentScrollContainerProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
contentRef: RefObject<HTMLDivElement | null>;
|
|
5
|
+
isEditMode: boolean;
|
|
6
|
+
onScrollGeometryChange?: (width: number, scrollLeft: number) => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Scrolls the edit-mode canvas horizontally and renders a synchronized proxy scrollbar that sticks
|
|
10
|
+
* to the bottom of the viewport, so it stays reachable on tall dashboards.
|
|
11
|
+
*
|
|
12
|
+
* The proxy scrollbar is expected to be exactly as wide as the canvas viewport (both span the main
|
|
13
|
+
* content column); its inner spacer then mirrors the canvas scroll width one to one.
|
|
14
|
+
*/
|
|
15
|
+
export declare function DashboardContentScrollContainer({ children, contentRef, isEditMode, onScrollGeometryChange, }: IDashboardContentScrollContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=DashboardContentScrollContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardContentScrollContainer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/DashboardContentScrollContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAyD,MAAM,OAAO,CAAC;AAK9G,UAAU,qCAAqC;IAC3C,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC7C,UAAU,EAAE,OAAO,CAAC;IACpB,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACxE;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,QAAQ,EACR,UAAU,EACV,UAAU,EACV,sBAAsB,GACzB,EAAE,qCAAqC,2CA+GvC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { useCallback, useId, useLayoutEffect, useRef, useState } from "react";
|
|
4
|
+
import cx from "classnames";
|
|
5
|
+
import { useIntl } from "react-intl";
|
|
6
|
+
/**
|
|
7
|
+
* Scrolls the edit-mode canvas horizontally and renders a synchronized proxy scrollbar that sticks
|
|
8
|
+
* to the bottom of the viewport, so it stays reachable on tall dashboards.
|
|
9
|
+
*
|
|
10
|
+
* The proxy scrollbar is expected to be exactly as wide as the canvas viewport (both span the main
|
|
11
|
+
* content column); its inner spacer then mirrors the canvas scroll width one to one.
|
|
12
|
+
*/
|
|
13
|
+
export function DashboardContentScrollContainer({ children, contentRef, isEditMode, onScrollGeometryChange, }) {
|
|
14
|
+
const intl = useIntl();
|
|
15
|
+
const canvasId = useId();
|
|
16
|
+
const scrollContainerRef = useRef(null);
|
|
17
|
+
const scrollbarRef = useRef(null);
|
|
18
|
+
const contentWidthRef = useRef(0);
|
|
19
|
+
const reportedGeometryRef = useRef(null);
|
|
20
|
+
const [scrollWidth, setScrollWidth] = useState(0);
|
|
21
|
+
const reportScrollGeometry = useCallback(() => {
|
|
22
|
+
const container = scrollContainerRef.current;
|
|
23
|
+
if (!isEditMode || !container) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const width = contentWidthRef.current;
|
|
27
|
+
const { scrollLeft } = container;
|
|
28
|
+
const reported = reportedGeometryRef.current;
|
|
29
|
+
// Both synchronized elements fire a scroll event for a single user scroll; report it once.
|
|
30
|
+
if (reported?.width === width && reported.scrollLeft === scrollLeft) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
reportedGeometryRef.current = { width, scrollLeft };
|
|
34
|
+
onScrollGeometryChange?.(width, scrollLeft);
|
|
35
|
+
}, [isEditMode, onScrollGeometryChange]);
|
|
36
|
+
useLayoutEffect(() => {
|
|
37
|
+
const container = scrollContainerRef.current;
|
|
38
|
+
const content = contentRef.current;
|
|
39
|
+
if (!isEditMode || !container || !content) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const updateWidth = () => {
|
|
43
|
+
// Layout is read only on resize; scroll events reuse the cached content width.
|
|
44
|
+
contentWidthRef.current = content.getBoundingClientRect().width;
|
|
45
|
+
setScrollWidth(container.scrollWidth > container.clientWidth ? container.scrollWidth : 0);
|
|
46
|
+
reportScrollGeometry();
|
|
47
|
+
};
|
|
48
|
+
const observer = new ResizeObserver(updateWidth);
|
|
49
|
+
observer.observe(container);
|
|
50
|
+
observer.observe(content);
|
|
51
|
+
updateWidth();
|
|
52
|
+
return () => {
|
|
53
|
+
observer.disconnect();
|
|
54
|
+
reportedGeometryRef.current = null;
|
|
55
|
+
};
|
|
56
|
+
}, [contentRef, isEditMode, reportScrollGeometry]);
|
|
57
|
+
useLayoutEffect(() => {
|
|
58
|
+
const scrollbar = scrollbarRef.current;
|
|
59
|
+
const container = scrollContainerRef.current;
|
|
60
|
+
if (scrollbar && container) {
|
|
61
|
+
scrollbar.scrollLeft = container.scrollLeft;
|
|
62
|
+
updateScrollbarValue(scrollbar, container);
|
|
63
|
+
}
|
|
64
|
+
}, [scrollWidth, isEditMode]);
|
|
65
|
+
const isScrollable = isEditMode && scrollWidth > 0;
|
|
66
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { id: canvasId, className: cx("gd-dash-content-scroll-container", {
|
|
67
|
+
// Only clip the canvas while it actually overflows; a fitting canvas keeps
|
|
68
|
+
// overflowing hotspots, resize overlays and sticky children unclipped.
|
|
69
|
+
"gd-dash-content-scroll-container--scrollable": isScrollable,
|
|
70
|
+
}), ref: scrollContainerRef, onScroll: (event) => {
|
|
71
|
+
const scrollbar = scrollbarRef.current;
|
|
72
|
+
if (scrollbar && scrollbar.scrollLeft !== event.currentTarget.scrollLeft) {
|
|
73
|
+
scrollbar.scrollLeft = event.currentTarget.scrollLeft;
|
|
74
|
+
}
|
|
75
|
+
if (scrollbar) {
|
|
76
|
+
updateScrollbarValue(scrollbar, event.currentTarget);
|
|
77
|
+
}
|
|
78
|
+
reportScrollGeometry();
|
|
79
|
+
}, children: children }), _jsx("div", { className: "gd-dash-content-scrollbar", ref: scrollbarRef, hidden: !isScrollable, tabIndex: 0, role: "scrollbar", "aria-controls": canvasId, "aria-orientation": "horizontal", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": 0, "aria-label": intl.formatMessage({ id: "dashboard.content.horizontalScroll" }), onScroll: (event) => {
|
|
80
|
+
const container = scrollContainerRef.current;
|
|
81
|
+
if (container && container.scrollLeft !== event.currentTarget.scrollLeft) {
|
|
82
|
+
container.scrollLeft = event.currentTarget.scrollLeft;
|
|
83
|
+
}
|
|
84
|
+
if (container) {
|
|
85
|
+
updateScrollbarValue(event.currentTarget, container);
|
|
86
|
+
}
|
|
87
|
+
reportScrollGeometry();
|
|
88
|
+
}, children: _jsx("div", { style: { width: scrollWidth, height: 1 } }) })] }));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Updates the scrollbar value directly on the DOM so that scrolling does not re-render the dashboard.
|
|
92
|
+
*/
|
|
93
|
+
function updateScrollbarValue(scrollbar, container) {
|
|
94
|
+
const maxScrollLeft = container.scrollWidth - container.clientWidth;
|
|
95
|
+
const value = maxScrollLeft > 0 ? Math.round((container.scrollLeft / maxScrollLeft) * 100) : 0;
|
|
96
|
+
scrollbar.setAttribute("aria-valuenow", String(Math.min(100, Math.max(0, value))));
|
|
97
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardInner.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/DashboardInner.tsx"],"names":[],"mappings":"AAwCA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"DashboardInner.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/DashboardInner.tsx"],"names":[],"mappings":"AAwCA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AASnD,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,2CA4JpD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
|
-
import { useEffect, useRef } from "react";
|
|
3
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { OverlayController, OverlayControllerProvider, ToastsCenter, ToastsCenterContextProvider, UiResizableSidebarProvider, } from "@gooddata/sdk-ui-kit";
|
|
6
6
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
@@ -26,6 +26,7 @@ import { DashboardHeader } from "../DashboardHeader/DashboardHeader.js";
|
|
|
26
26
|
import { DashboardSidebar } from "../DashboardSidebar/DashboardSidebar.js";
|
|
27
27
|
import { RenderModeAwareDashboardSidebar } from "../DashboardSidebar/RenderModeAwareDashboardSidebar.js";
|
|
28
28
|
import { useResizableSidebarState } from "../DashboardSidebar/useResizableSidebarState.js";
|
|
29
|
+
import { DashboardContentScrollContainer } from "./DashboardContentScrollContainer.js";
|
|
29
30
|
import { DashboardInteractionLock } from "./DashboardInteractionLock.js";
|
|
30
31
|
import { DashboardScreenSizeProvider } from "./DashboardScreenSizeContext.js";
|
|
31
32
|
const overlayController = OverlayController.getInstance(DASHBOARD_HEADER_OVERLAYS_Z_INDEX);
|
|
@@ -39,10 +40,23 @@ export function DashboardInner(props) {
|
|
|
39
40
|
const isInsightEditorOpen = !!useDashboardSelector(selectInsightEditorTarget);
|
|
40
41
|
const settings = useDashboardSelector(selectSettings);
|
|
41
42
|
const enableEnhancedInsightPicker = settings?.enableEnhancedInsightPicker ?? false;
|
|
43
|
+
const enableCanvasScroll = isEditMode && (settings?.enableDashboardCanvasScroll ?? false);
|
|
42
44
|
const headerRef = useRef(null);
|
|
43
45
|
const layoutRef = useRef(null);
|
|
44
46
|
const bottomRef = useRef(null);
|
|
45
|
-
|
|
47
|
+
// State-backed so the drag layer re-renders once the resize layer is mounted.
|
|
48
|
+
const [resizeLayer, setResizeLayer] = useState(null);
|
|
49
|
+
const onContentScrollGeometryChange = useCallback((width, scrollLeft) => {
|
|
50
|
+
headerRef.current?.style.setProperty("--dgd-dashboard-content-width", `${width}px`);
|
|
51
|
+
headerRef.current?.style.setProperty("--dgd-dashboard-content-offset", `${-scrollLeft}px`);
|
|
52
|
+
}, []);
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
if (!enableCanvasScroll) {
|
|
55
|
+
headerRef.current?.style.removeProperty("--dgd-dashboard-content-width");
|
|
56
|
+
headerRef.current?.style.removeProperty("--dgd-dashboard-content-offset");
|
|
57
|
+
}
|
|
58
|
+
}, [enableCanvasScroll]);
|
|
59
|
+
useDashboardDragScroll(layoutRef, headerRef, bottomRef, enableCanvasScroll);
|
|
46
60
|
const { initializeAutomations } = useDashboardAutomations();
|
|
47
61
|
useEffect(() => {
|
|
48
62
|
initializeAutomations();
|
|
@@ -70,13 +84,16 @@ export function DashboardInner(props) {
|
|
|
70
84
|
"--gd-dashboard-sidebar-width": `${resizableSidebar.width}px`,
|
|
71
85
|
}
|
|
72
86
|
: undefined;
|
|
87
|
+
const bottomPosition = _jsx("div", { className: "gd-dash-bottom-position-pixel", ref: bottomRef });
|
|
88
|
+
const dashboardContent = (_jsxs(DashboardInteractionLock, { children: [_jsxs("div", { className: "gd-flex-item-stretch dash-section dash-section-kpis", ref: layoutRef, children: [_jsx(DashboardScreenSizeProvider, { children: _jsx(DashboardContent, { ...props }) }), enableEnhancedInsightPicker ? _jsx(FilterDeleteOverlay, {}) : null] }), enableCanvasScroll ? null : bottomPosition] }));
|
|
73
89
|
return (_jsx(IntlWrapper, { locale: locale, children: _jsxs(ToastsCenterContextProvider, { skipAutomaticMessageRendering: true, children: [_jsx(OverlayControllerProvider, { overlayController: toastsOverlayController, children: _jsx(ToastsCenter, {}) }), _jsx(InsightEditorOverlay, {}), _jsx(InsightEditorPermissionsProvider, { children: _jsx(UiResizableSidebarProvider, { value: resizableSidebar, children: _jsxs("div", { className: cx("component-root", {
|
|
74
90
|
"sdk-edit-mode-on": isEditMode,
|
|
75
91
|
"sdk-view-mode-on": !isEditMode,
|
|
76
92
|
"catalog-is-loaded": isCatalogLoaded,
|
|
77
93
|
"accessible-dashboards-loaded": accessibleDashboardsLoaded,
|
|
78
94
|
"is-insight-editor-open": isInsightEditorOpen,
|
|
79
|
-
}), children: [_jsx(DragLayerComponent, {}), _jsxs("div", { className: cx("gd-dashboards-root gd-flex-container", {
|
|
95
|
+
}), children: [_jsx(DragLayerComponent, { contentRef: layoutRef, resizeLayer: resizeLayer, enableCanvasScroll: enableCanvasScroll }), _jsxs("div", { className: cx("gd-dashboards-root gd-flex-container", {
|
|
80
96
|
"gd-dashboards-root--floating-toolbar": enableEnhancedInsightPicker,
|
|
81
|
-
|
|
97
|
+
"gd-dashboards-root--canvas-scroll": enableCanvasScroll,
|
|
98
|
+
}), style: dashboardsRootStyle, children: [_jsx(DashboardSidebar, { DefaultSidebar: RenderModeAwareDashboardSidebar, DeleteDropZoneComponent: DeleteDropZone, WrapCreatePanelItemWithDragComponent: WrapCreatePanelItemWithDrag, WrapInsightListItemWithDragComponent: WrapInsightListItemWithDrag }), _jsxs("main", { className: dashboardContentClassNames, ...mainContentNavigationProps, children: [_jsx("div", { className: "gd-dash-header-wrapper gd-dash-header-wrapper-sdk-8-12", ref: headerRef, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(DashboardHeader, {}) }) }), enableCanvasScroll ? (_jsxs(_Fragment, { children: [_jsx(DashboardContentScrollContainer, { contentRef: layoutRef, isEditMode: isEditMode, onScrollGeometryChange: onContentScrollGeometryChange, children: dashboardContent }), _jsx("div", { className: "gd-dash-content-resize-layer", ref: setResizeLayer }), bottomPosition] })) : (dashboardContent)] })] }), _jsx(Toolbar, {})] }) }) })] }) }));
|
|
82
99
|
}
|
|
@@ -11,7 +11,11 @@ export interface IExportCsvDialogConfig {
|
|
|
11
11
|
export interface IExportCsvDialogContext {
|
|
12
12
|
isOpen: boolean;
|
|
13
13
|
dialogConfig?: IExportCsvDialogConfig;
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Id of the element that receives focus when the dialog closes (typically the trigger of the export flow).
|
|
16
|
+
*/
|
|
17
|
+
returnFocusTo?: string;
|
|
18
|
+
openDialog: (config: IExportCsvDialogConfig, returnFocusTo?: string) => void;
|
|
15
19
|
closeDialog: () => void;
|
|
16
20
|
}
|
|
17
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportCsvDialogContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/ExportCsvDialogContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA6D,MAAM,OAAO,CAAC;AAElG,MAAM,WAAW,oBAAoB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAClD;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,UAAU,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ExportCsvDialogContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/ExportCsvDialogContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA6D,MAAM,OAAO,CAAC;AAElG,MAAM,WAAW,oBAAoB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAClD;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,CAAC,MAAM,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7E,WAAW,EAAE,MAAM,IAAI,CAAC;CAC3B;AAUD;;GAEG;AACH,eAAO,MAAM,yBAAyB,QAAO,uBAE5C,CAAC;AAEF;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAqBpF"}
|
|
@@ -4,6 +4,7 @@ import { createContext, useCallback, useContext, useMemo, useState } from "react
|
|
|
4
4
|
const ExportCsvDialogContext = createContext({
|
|
5
5
|
isOpen: false,
|
|
6
6
|
dialogConfig: undefined,
|
|
7
|
+
returnFocusTo: undefined,
|
|
7
8
|
closeDialog: () => { },
|
|
8
9
|
openDialog: () => { },
|
|
9
10
|
});
|
|
@@ -19,13 +20,15 @@ export const useExportCsvDialogContext = () => {
|
|
|
19
20
|
export function ExportCsvDialogContextProvider({ children }) {
|
|
20
21
|
const [isOpen, setIsOpen] = useState(false);
|
|
21
22
|
const [dialogConfig, setDialogConfig] = useState();
|
|
22
|
-
const
|
|
23
|
+
const [returnFocusTo, setReturnFocusTo] = useState();
|
|
24
|
+
const openDialog = useCallback((config, focusTarget) => {
|
|
23
25
|
setDialogConfig(config);
|
|
26
|
+
setReturnFocusTo(focusTarget);
|
|
24
27
|
setIsOpen(true);
|
|
25
28
|
}, []);
|
|
26
29
|
const closeDialog = useCallback(() => {
|
|
27
30
|
setIsOpen(false);
|
|
28
31
|
}, []);
|
|
29
|
-
const contextValue = useMemo(() => ({ isOpen, dialogConfig, openDialog, closeDialog }), [isOpen, dialogConfig, openDialog, closeDialog]);
|
|
32
|
+
const contextValue = useMemo(() => ({ isOpen, dialogConfig, returnFocusTo, openDialog, closeDialog }), [isOpen, dialogConfig, returnFocusTo, openDialog, closeDialog]);
|
|
30
33
|
return _jsx(ExportCsvDialogContext.Provider, { value: contextValue, children: children });
|
|
31
34
|
}
|
|
@@ -4,7 +4,11 @@ export type IExportTabularPdfDialogConfig = Omit<IExportTabularPdfDialogProps, "
|
|
|
4
4
|
interface IExportTabularPdfDialogContextValue {
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
config: IExportTabularPdfDialogConfig;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Id of the element that receives focus when the dialog closes (typically the trigger of the export flow).
|
|
9
|
+
*/
|
|
10
|
+
returnFocusTo?: string;
|
|
11
|
+
openDialog: (config: IExportTabularPdfDialogConfig, returnFocusTo?: string) => void;
|
|
8
12
|
closeDialog: () => void;
|
|
9
13
|
}
|
|
10
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportTabularPdfDialogContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/ExportTabularPdfDialogContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAuC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAEzE,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,4BAA4B,EAAE,UAAU,CAAC,CAAC;AAE3F,UAAU,mCAAmC;IACzC,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,6BAA6B,CAAC;IACtC,UAAU,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ExportTabularPdfDialogContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/ExportTabularPdfDialogContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAuC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAEzE,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,4BAA4B,EAAE,UAAU,CAAC,CAAC;AAE3F,UAAU,mCAAmC;IACzC,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,6BAA6B,CAAC;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,CAAC,MAAM,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpF,WAAW,EAAE,MAAM,IAAI,CAAC;CAC3B;AAMD;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CA6B1F;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC,QAAO,mCAQnD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2025 GoodData Corporation
|
|
2
|
+
// (C) 2025-2026 GoodData Corporation
|
|
3
3
|
import { createContext, useContext, useState } from "react";
|
|
4
4
|
const ExportTabularPdfDialogContext = createContext(undefined);
|
|
5
5
|
/**
|
|
@@ -8,8 +8,10 @@ const ExportTabularPdfDialogContext = createContext(undefined);
|
|
|
8
8
|
export function ExportTabularPdfDialogContextProvider({ children }) {
|
|
9
9
|
const [isOpen, setIsOpen] = useState(false);
|
|
10
10
|
const [config, setConfig] = useState({});
|
|
11
|
-
const
|
|
11
|
+
const [returnFocusTo, setReturnFocusTo] = useState();
|
|
12
|
+
const openDialog = (newConfig, focusTarget) => {
|
|
12
13
|
setConfig(newConfig);
|
|
14
|
+
setReturnFocusTo(focusTarget);
|
|
13
15
|
setIsOpen(true);
|
|
14
16
|
};
|
|
15
17
|
const closeDialog = () => {
|
|
@@ -19,6 +21,7 @@ export function ExportTabularPdfDialogContextProvider({ children }) {
|
|
|
19
21
|
const value = {
|
|
20
22
|
isOpen,
|
|
21
23
|
config,
|
|
24
|
+
returnFocusTo,
|
|
22
25
|
openDialog,
|
|
23
26
|
closeDialog,
|
|
24
27
|
};
|