@gooddata/sdk-ui-dashboard 11.69.0-alpha.4 → 11.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +248 -49
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +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/meta/metaSelectors.d.ts +4 -3
- package/esm/model/store/meta/metaSelectors.d.ts.map +1 -1
- package/esm/model/store/meta/metaSelectors.js +19 -14
- 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 +18 -7
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +15 -17
- package/esm/model/store/tabs/parameters/parametersState.d.ts +5 -1
- package/esm/model/store/tabs/parameters/parametersState.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersState.js +9 -0
- 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 +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/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/DrillFilters/TargetDashboardFiltersContext.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/TargetDashboardFiltersContext.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/TargetDashboardFiltersContext.js +3 -0
- package/esm/presentation/widget/insight/configuration/DrillFilters/messages.d.ts +3 -0
- package/esm/presentation/widget/insight/configuration/DrillFilters/messages.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/messages.js +3 -0
- package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillFiltersConfig.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillFiltersConfig.js +2 -2
- package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillParameterOptions.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillParameterOptions.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillParameterOptions.js +18 -20
- package/esm/presentation/widget/insight/configuration/DrillFilters/useFetchTargetDashboardFilters.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/useFetchTargetDashboardFilters.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/useFetchTargetDashboardFilters.js +7 -0
- 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 +17 -9
- 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
|
@@ -225,6 +225,40 @@ export function resolveParameterValues(context, refs, insight) {
|
|
|
225
225
|
}
|
|
226
226
|
return values;
|
|
227
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* The parameters of the widget's tab, then the parameters that `insight` saves, the tab does not have
|
|
230
|
+
* and the workspace catalog has.
|
|
231
|
+
*
|
|
232
|
+
* @internal
|
|
233
|
+
*/
|
|
234
|
+
export function collectWidgetParameters(context, insight) {
|
|
235
|
+
const { entries, workspaceParameterByRef, isStringEnabled } = context;
|
|
236
|
+
const parameters = [];
|
|
237
|
+
const identifiers = new Set();
|
|
238
|
+
for (const { parameter } of entries) {
|
|
239
|
+
identifiers.add(parameter.ref.identifier);
|
|
240
|
+
parameters.push({
|
|
241
|
+
ref: parameter.ref,
|
|
242
|
+
parameterType: parameter.parameterType,
|
|
243
|
+
title: resolveParameterTitle(parameter, workspaceParameterByRef.get(parameter.ref.identifier)),
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
const insightParameterValues = insight ? insightParameters(insight) : [];
|
|
247
|
+
for (const { ref } of insightParameterValues) {
|
|
248
|
+
const workspaceParameter = workspaceParameterByRef.get(ref.identifier);
|
|
249
|
+
if (workspaceParameter &&
|
|
250
|
+
!identifiers.has(ref.identifier) &&
|
|
251
|
+
(isStringEnabled || workspaceParameter.definition.type !== "STRING")) {
|
|
252
|
+
identifiers.add(ref.identifier);
|
|
253
|
+
parameters.push({
|
|
254
|
+
ref,
|
|
255
|
+
parameterType: workspaceParameter.definition.type,
|
|
256
|
+
title: workspaceParameter.title,
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return parameters;
|
|
261
|
+
}
|
|
228
262
|
/**
|
|
229
263
|
* The value hydration seeds into `runtimeOverride`: the dashboard parameter's `value`, else the
|
|
230
264
|
* workspace default when the workspace parameter is of the matching type, else `undefined`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IDashboardExportParameter, type IDashboardParameter, type IInsightParameterValue, type
|
|
1
|
+
import { type IDashboardExportParameter, type IDashboardParameter, type IInsightParameterValue, type IScalarParameterMetadataObject, type IdentifierRef, type ObjRef, type ParameterValue, type ScalarParameterType } from "@gooddata/sdk-model";
|
|
2
2
|
import { type DashboardSelector } from "../../types.js";
|
|
3
3
|
import { type IParameterReconciliationEntry, type ParameterReconciliation } from "./parametersHelpers.js";
|
|
4
4
|
import { type IDashboardParameterEntry } from "./parametersState.js";
|
|
@@ -107,6 +107,16 @@ export declare const selectParameterResetValueByRef: (ref: ObjRef) => DashboardS
|
|
|
107
107
|
* @internal
|
|
108
108
|
*/
|
|
109
109
|
export declare const selectSmartPersistedTabsParameters: DashboardSelector<Record<string, IDashboardParameter[]>>;
|
|
110
|
+
/**
|
|
111
|
+
* Returns persisted parameters from `meta.persistedDashboard`, keyed by tab `localIdentifier`.
|
|
112
|
+
* Honors V1 → per-tab migration: when no tab in the persisted dashboard carries `parameters`,
|
|
113
|
+
* the persisted root `parameters` is used as fallback for every tab. For legacy single-tab
|
|
114
|
+
* dashboards (no `tabs[]` in persistedDashboard), the synthetic `DEFAULT_TAB_ID` tab carries
|
|
115
|
+
* the persisted root parameters.
|
|
116
|
+
*
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
export declare const selectPersistedTabsParametersFromMeta: DashboardSelector<Record<string, IDashboardParameter[]>>;
|
|
110
120
|
/**
|
|
111
121
|
* Applied parameter values as last persisted, keyed by tab `localIdentifier`: the pinned persisted
|
|
112
122
|
* value, else the workspace default. A parameter that resolves to no value is skipped.
|
|
@@ -154,7 +164,7 @@ interface IWidgetParameterContext {
|
|
|
154
164
|
entries: IDashboardParameterEntry[];
|
|
155
165
|
dependenciesByRoot: Record<string, IdentifierRef[]>;
|
|
156
166
|
filterRoots: IdentifierRef[];
|
|
157
|
-
workspaceParameterByRef: Map<string,
|
|
167
|
+
workspaceParameterByRef: Map<string, IScalarParameterMetadataObject>;
|
|
158
168
|
widgetInsightRef: ObjRef | undefined;
|
|
159
169
|
isStringEnabled: boolean;
|
|
160
170
|
}
|
|
@@ -201,21 +211,22 @@ export declare const selectEffectiveParameterValuesForWidget: (ref: ObjRef | und
|
|
|
201
211
|
*/
|
|
202
212
|
export declare const selectReferencedInsightParameterValuesForWidget: (ref: ObjRef | undefined) => DashboardSelector<IInsightParameterValue[]>;
|
|
203
213
|
/**
|
|
204
|
-
* A parameter of the widget's tab and the value that a drill to URL puts in place of its
|
|
214
|
+
* A parameter of the widget's tab or insight and the value that a drill to URL puts in place of its
|
|
205
215
|
* `{parameter(id)}` placeholder.
|
|
206
216
|
*
|
|
207
217
|
* @internal
|
|
208
218
|
*/
|
|
209
219
|
export interface IWidgetParameterValue {
|
|
210
220
|
identifier: string;
|
|
211
|
-
parameterType:
|
|
221
|
+
parameterType: ScalarParameterType;
|
|
212
222
|
title: string;
|
|
213
223
|
value: ParameterValue | undefined;
|
|
214
224
|
}
|
|
215
225
|
/**
|
|
216
|
-
* Every ungated parameter of the widget's tab, all modes,
|
|
217
|
-
*
|
|
218
|
-
* `
|
|
226
|
+
* Every ungated parameter of the widget's tab, all modes, then every ungated parameter that the
|
|
227
|
+
* widget's insight saves, the tab does not have and the workspace catalog has. Each comes with its
|
|
228
|
+
* drill to URL value: the dashboard `runtimeOverride`, else the insight value, else the workspace
|
|
229
|
+
* default. Returns `[]` when `enableParameters` is off.
|
|
219
230
|
*
|
|
220
231
|
* @internal
|
|
221
232
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parametersSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersSelectors.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EAExB,KAAK,sBAAsB,EAC3B,KAAK,
|
|
1
|
+
{"version":3,"file":"parametersSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersSelectors.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EAExB,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAM3B,MAAM,qBAAqB,CAAC;AAa7B,O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EAAE,MAAM,EAAE,GAAG,SAAS,KAC9B,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,CAAC,CAuBjE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,iBAAiB,CAAC,yBAAyB,EAAE,CAI1F,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,EAAE,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,CAAC,CAoBpG,CAAC"}
|
|
@@ -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 = [];
|
|
@@ -184,7 +184,7 @@ export const selectSmartPersistedTabsParameters = createSelector(selectTabs, sel
|
|
|
184
184
|
*
|
|
185
185
|
* @internal
|
|
186
186
|
*/
|
|
187
|
-
const selectPersistedTabsParametersFromMeta = createSelector(selectPersistedDashboardTabsRaw, selectPersistedParametersFromMeta, (persistedTabs, rootPersistedParameters) => {
|
|
187
|
+
export const selectPersistedTabsParametersFromMeta = createSelector(selectPersistedDashboardTabsRaw, selectPersistedParametersFromMeta, (persistedTabs, rootPersistedParameters) => {
|
|
188
188
|
const result = {};
|
|
189
189
|
if (persistedTabs.length === 0) {
|
|
190
190
|
result[DEFAULT_TAB_ID] = rootPersistedParameters;
|
|
@@ -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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IDashboardParameter, type IDashboardTab, type ParameterValue } from "@gooddata/sdk-model";
|
|
1
|
+
import { type IDashboard, type IDashboardParameter, type IDashboardTab, type ParameterValue } from "@gooddata/sdk-model";
|
|
2
2
|
/**
|
|
3
3
|
* Per-parameter state tracked by the dashboard store.
|
|
4
4
|
*
|
|
@@ -33,6 +33,10 @@ export interface IParametersState {
|
|
|
33
33
|
parameters: IDashboardParameterEntry[];
|
|
34
34
|
}
|
|
35
35
|
export declare const parametersInitialState: IParametersState;
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export declare function pickDashboardTabParameters(dashboard: Pick<IDashboard, "tabs" | "parameters">, tab: IDashboardTab | undefined): IDashboardParameter[];
|
|
36
40
|
/**
|
|
37
41
|
* Picks a tab's persisted parameter source under the V1 → per-tab migration rule.
|
|
38
42
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parametersState.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersState.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"parametersState.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/parameters/parametersState.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,cAAc,EACtB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;GASG;AACH,MAAM,WAAW,wBAAwB;IACrC,SAAS,EAAE,mBAAmB,CAAC;IAC/B;;;;;OAKG;IACH,eAAe,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,cAAc,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,wBAAwB,EAAE,CAAC;CAC1C;AAED,eAAO,MAAM,sBAAsB,EAAE,gBAEpC,CAAC;AAEF;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY,CAAC,EAClD,GAAG,EAAE,aAAa,GAAG,SAAS,GAC/B,mBAAmB,EAAE,CAKvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACnC,GAAG,EAAE,aAAa,EAClB,OAAO,EAAE,aAAa,CAAC,aAAa,CAAC,EACrC,cAAc,EAAE,mBAAmB,EAAE,GAAG,SAAS,GAClD,mBAAmB,EAAE,GAAG,SAAS,CAMnC"}
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
export const parametersInitialState = {
|
|
3
3
|
parameters: [],
|
|
4
4
|
};
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export function pickDashboardTabParameters(dashboard, tab) {
|
|
9
|
+
if (!tab) {
|
|
10
|
+
return dashboard.parameters ?? [];
|
|
11
|
+
}
|
|
12
|
+
return pickTabParametersSource(tab, dashboard.tabs ?? [], dashboard.parameters) ?? [];
|
|
13
|
+
}
|
|
5
14
|
/**
|
|
6
15
|
* Picks a tab's persisted parameter source under the V1 → per-tab migration rule.
|
|
7
16
|
*
|
|
@@ -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,CAA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IG;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,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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AK,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,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;;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,sBAAsB,EAAE,EAChC,OAAO,EAAE,8BAA8B,EAAE,GAC1C,sBAAsB,EAAE,CAG1B;AAED;;;;;;GAMG;AACH,wBAAgB,sCAAsC,CAClD,UAAU,EAAE,oBAAoB,EAAE,GACnC,yBAAyB,EAAE,CAO7B;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACtC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC,EACvD,WAAW,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;I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CAAC;IACjC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,qCAAqC,GAAG,SAAS,CAAC,CAAC;CACrF,GAAG,2BAA2B,CAgE9B;AAED,MAAM,WAAW,4BAA4B;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;IACtC,aAAa,EAAE,iBAAiB,EAAE,CAAC;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
|