@gooddata/sdk-ui-dashboard 11.69.0-alpha.4 → 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/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/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/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 +4 -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 +4 -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/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/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.map +1 -1
- package/styles/css/main.css +78 -8
- 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/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,EACtB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,0BAA0B,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEzG,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAElC;;;;;;;OAOG;IACH,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACrC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,0BAA0B,GAAG,iCAAiC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC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AM,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,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,8BAA8B,EAC9B,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,SAAS,EACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IACzC,6IAA6I;IAC7I,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,6JAA6J;IAC7J,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C;;;;;OAKG;IACH,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,qBAAqB,EAAE,CAAC;IACnE;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,wBAAwB,GAAG,SAAS,CAAC;CAC7E;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACnC,8EAA8E;IAC9E,OAAO,EAAE,OAAO,CAAC;IAC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D;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,gEAA8B,CAAC;AAEtE;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,wBAAwB,CAWhE"}
|
|
@@ -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,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AAW,EAAE,OAAO,GACrB,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,CAAC,GAAG,SAAS,CASzD;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,gBAAgB,EAAE,OAAO,EAAE,YAAY,UAAQ,GAAG,OAAO,CAEpG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DashboardAttributeFilterSelectionType, type FilterContextItem, type IAutomationMetadataObject, 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,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,OAAO,EAEZ,KAAK,QAAQ,EAEb,KAAK,8BAA8B,EAkBtC,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAoEzF,MAAM,WAAW,2BAA2B;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,mCAAmC,EAAE,OAAO,CAAC;IAC7C,0CAA0C,EAAE,OAAO,CAAC;IACpD,mCAAmC,EAAE,OAAO,CAAC;IAC7C,0CAA0C,EAAE,OAAO,CAAC;IACpD,oCAAoC,EAAE,OAAO,CAAC;IAC9C,oCAAoC,EAAE,OAAO,CAAC;IAC9C,8CAA8C,EAAE,OAAO,CAAC;IACxD,oCAAoC,EAAE,OAAO,CAAC;IAC9C,wBAAwB,EAAE,OAAO,CAAC;IAClC,gDAAgD,EAAE,OAAO,CAAC;IAC1D;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAiBD,wBAAgB,oCAAoC,CAAC,EACjD,gBAAgB,EAChB,MAAM,EACN,OAAO,GACV,EAAE;IACC,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IAC7C,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,OAAO,CAAC,EAAE,QAAQ,CAAC;CACtB,GAAG,2BAA2B,CAyD9B;AAoHD;;;;GAIG;AAC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AAC;IACnC,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,UAAU,EAAE,iBAAiB,EAAE,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAgB,uCAAuC,CAAC,EACpD,0BAA0B,EAC1B,kCAAkC,EAClC,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,GACxB,EAAE;IACC,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,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
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
|
-
export declare function useDashboardDragScroll(contentRef: RefObject<HTMLDivElement | null>, stickyHeaderRef: RefObject<HTMLDivElement | null>, stickyFooterRef: RefObject<HTMLDivElement | null
|
|
2
|
+
export declare function useDashboardDragScroll(contentRef: RefObject<HTMLDivElement | null>, stickyHeaderRef: RefObject<HTMLDivElement | null>, stickyFooterRef: RefObject<HTMLDivElement | null>, enableCanvasScroll?: boolean): void;
|
|
3
3
|
//# sourceMappingURL=useDashboardDragScroll.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardDragScroll.d.ts","sourceRoot":"","sources":["../../../src/presentation/dragAndDrop/useDashboardDragScroll.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"useDashboardDragScroll.d.ts","sourceRoot":"","sources":["../../../src/presentation/dragAndDrop/useDashboardDragScroll.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAiCpE,wBAAgB,sBAAsB,CAClC,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EAC5C,eAAe,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EACjD,eAAe,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EACjD,kBAAkB,UAAQ,QA8G7B"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
3
|
import { useDragDropManager } from "@evil-internetmann/react-dnd";
|
|
4
4
|
import { useInterval } from "./useInterval.js";
|
|
5
5
|
const SCROLLING_STEP = 3;
|
|
6
6
|
const SCROLLING_INTERVAL = 5;
|
|
7
7
|
const SCROLLING_ZONE_HEIGHT = 100;
|
|
8
|
+
const SCROLLING_ZONE_WIDTH = 100;
|
|
8
9
|
const SCROLLING_ITEM_TYPES = [
|
|
9
10
|
"insightListItem",
|
|
10
11
|
"insight",
|
|
@@ -25,10 +26,16 @@ var ScrollingDirection;
|
|
|
25
26
|
ScrollingDirection[ScrollingDirection["Down"] = 1] = "Down";
|
|
26
27
|
ScrollingDirection[ScrollingDirection["None"] = 0] = "None";
|
|
27
28
|
})(ScrollingDirection || (ScrollingDirection = {}));
|
|
28
|
-
export function useDashboardDragScroll(contentRef, stickyHeaderRef, stickyFooterRef) {
|
|
29
|
+
export function useDashboardDragScroll(contentRef, stickyHeaderRef, stickyFooterRef, enableCanvasScroll = false) {
|
|
29
30
|
const [scrollingDirection, setScrollingDirection] = useState(ScrollingDirection.None);
|
|
31
|
+
const [horizontalScrollingDirection, setHorizontalScrollingDirection] = useState(0);
|
|
32
|
+
// Resolved once per drag; `undefined` means it was not looked up yet for the current drag.
|
|
33
|
+
const horizontalScrollerRef = useRef(undefined);
|
|
30
34
|
const dragDropManager = useDragDropManager();
|
|
31
35
|
useEffect(() => {
|
|
36
|
+
setScrollingDirection(ScrollingDirection.None);
|
|
37
|
+
setHorizontalScrollingDirection(0);
|
|
38
|
+
horizontalScrollerRef.current = undefined;
|
|
32
39
|
return dragDropManager.getMonitor().subscribeToOffsetChange(() => {
|
|
33
40
|
const itemType = dragDropManager.getMonitor().getItemType();
|
|
34
41
|
const clientOffset = dragDropManager.getMonitor().getSourceClientOffset();
|
|
@@ -37,18 +44,33 @@ export function useDashboardDragScroll(contentRef, stickyHeaderRef, stickyFooter
|
|
|
37
44
|
const headerCoordinations = stickyHeaderRef.current?.getBoundingClientRect();
|
|
38
45
|
const footerCoordinations = stickyFooterRef.current?.getBoundingClientRect();
|
|
39
46
|
const contentCoordinations = contentRef.current?.getBoundingClientRect();
|
|
40
|
-
if (
|
|
47
|
+
if (!itemType ||
|
|
48
|
+
(!SCROLLING_ITEM_TYPES.includes(itemType) &&
|
|
49
|
+
!(enableCanvasScroll && itemType === "internal-width-resizer")) ||
|
|
41
50
|
!clientOffset ||
|
|
42
51
|
!headerCoordinations ||
|
|
43
52
|
!footerCoordinations ||
|
|
44
53
|
!contentCoordinations ||
|
|
45
54
|
!initialClientOffset ||
|
|
46
55
|
!initialSourceClientOffset) {
|
|
56
|
+
setScrollingDirection(ScrollingDirection.None);
|
|
57
|
+
setHorizontalScrollingDirection(0);
|
|
58
|
+
horizontalScrollerRef.current = undefined;
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (enableCanvasScroll && horizontalScrollerRef.current === undefined) {
|
|
62
|
+
horizontalScrollerRef.current = findHorizontalScrollable(contentRef.current);
|
|
63
|
+
}
|
|
64
|
+
const horizontalScroller = !enableCanvasScroll || itemType === "internal-height-resizer"
|
|
65
|
+
? null
|
|
66
|
+
: horizontalScrollerRef.current;
|
|
67
|
+
const normalizedClientOffsetX = clientOffset.x + initialClientOffset.x - initialSourceClientOffset.x;
|
|
68
|
+
const normalizedClientOffsetY = clientOffset.y + initialClientOffset.y - initialSourceClientOffset.y;
|
|
69
|
+
setHorizontalScrollingDirection(getHorizontalScrollingDirection(horizontalScroller?.getBoundingClientRect(), normalizedClientOffsetX, normalizedClientOffsetY));
|
|
70
|
+
if (itemType === "internal-width-resizer") {
|
|
47
71
|
setScrollingDirection(ScrollingDirection.None);
|
|
48
72
|
return;
|
|
49
73
|
}
|
|
50
|
-
const initialPointerOffsetY = initialClientOffset.y - initialSourceClientOffset.y;
|
|
51
|
-
const normalizedClientOffsetY = clientOffset.y + initialPointerOffsetY;
|
|
52
74
|
const shouldScrollUp = normalizedClientOffsetY <= headerCoordinations?.bottom + SCROLLING_ZONE_HEIGHT &&
|
|
53
75
|
headerCoordinations?.bottom > contentCoordinations?.top;
|
|
54
76
|
if (shouldScrollUp) {
|
|
@@ -63,29 +85,67 @@ export function useDashboardDragScroll(contentRef, stickyHeaderRef, stickyFooter
|
|
|
63
85
|
}
|
|
64
86
|
setScrollingDirection(ScrollingDirection.None);
|
|
65
87
|
});
|
|
66
|
-
|
|
67
|
-
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
68
|
-
}, []);
|
|
88
|
+
}, [contentRef, dragDropManager, enableCanvasScroll, stickyFooterRef, stickyHeaderRef]);
|
|
69
89
|
useInterval(() => {
|
|
70
90
|
const scrollingTop = scrollingDirection * SCROLLING_STEP;
|
|
71
|
-
findScrollable(contentRef.current)?.scrollBy({
|
|
91
|
+
findScrollable(contentRef.current, enableCanvasScroll)?.scrollBy({
|
|
72
92
|
top: scrollingTop,
|
|
73
93
|
});
|
|
74
94
|
}, scrollingDirection === ScrollingDirection.None ? null : SCROLLING_INTERVAL);
|
|
95
|
+
useInterval(() => {
|
|
96
|
+
const horizontalScroller = horizontalScrollerRef.current;
|
|
97
|
+
if (horizontalScroller &&
|
|
98
|
+
((horizontalScrollingDirection < 0 && horizontalScroller.scrollLeft > 0) ||
|
|
99
|
+
(horizontalScrollingDirection > 0 &&
|
|
100
|
+
horizontalScroller.scrollLeft + horizontalScroller.clientWidth <
|
|
101
|
+
horizontalScroller.scrollWidth))) {
|
|
102
|
+
horizontalScroller.scrollBy({ left: horizontalScrollingDirection * SCROLLING_STEP });
|
|
103
|
+
}
|
|
104
|
+
}, !enableCanvasScroll || horizontalScrollingDirection === 0 ? null : SCROLLING_INTERVAL);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Pans only while the pointer is over the horizontally scrollable canvas, so dragging from the sidebar,
|
|
108
|
+
* header or filter bar never scrolls the canvas back to its start.
|
|
109
|
+
*/
|
|
110
|
+
function getHorizontalScrollingDirection(bounds, x, y) {
|
|
111
|
+
if (!bounds || x < bounds.left || x > bounds.right || y < bounds.top || y > bounds.bottom) {
|
|
112
|
+
return 0;
|
|
113
|
+
}
|
|
114
|
+
if (x < bounds.left + SCROLLING_ZONE_WIDTH) {
|
|
115
|
+
return -1;
|
|
116
|
+
}
|
|
117
|
+
if (x > bounds.right - SCROLLING_ZONE_WIDTH) {
|
|
118
|
+
return 1;
|
|
119
|
+
}
|
|
120
|
+
return 0;
|
|
121
|
+
}
|
|
122
|
+
function findHorizontalScrollable(element) {
|
|
123
|
+
if (!element) {
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
const overflowX = window.getComputedStyle(element).overflowX;
|
|
127
|
+
if ((overflowX === "auto" || overflowX === "scroll") && element.scrollWidth > element.clientWidth) {
|
|
128
|
+
return element;
|
|
129
|
+
}
|
|
130
|
+
return findHorizontalScrollable(element.parentElement);
|
|
75
131
|
}
|
|
76
132
|
/**
|
|
77
133
|
* function goes from element to its parents and finds first scrollable element
|
|
134
|
+
* with actual overflow when canvas scrolling is enabled
|
|
78
135
|
*/
|
|
79
|
-
function findScrollable(element) {
|
|
136
|
+
function findScrollable(element, requireOverflow) {
|
|
80
137
|
if (!element) {
|
|
81
138
|
return document.documentElement;
|
|
82
139
|
}
|
|
83
140
|
if (element instanceof HTMLElement) {
|
|
84
141
|
const overflowY = window.getComputedStyle(element).overflowY;
|
|
85
142
|
const isScrollable = overflowY !== "visible" && overflowY !== "hidden";
|
|
86
|
-
if (isScrollable &&
|
|
143
|
+
if (isScrollable &&
|
|
144
|
+
(requireOverflow
|
|
145
|
+
? element.scrollHeight > element.clientHeight
|
|
146
|
+
: element.scrollHeight >= element.clientHeight)) {
|
|
87
147
|
return element;
|
|
88
148
|
}
|
|
89
149
|
}
|
|
90
|
-
return findScrollable(element.parentNode);
|
|
150
|
+
return findScrollable(element.parentNode, requireOverflow);
|
|
91
151
|
}
|