@gooddata/sdk-ui-dashboard 11.69.0-alpha.3 → 11.69.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +248 -49
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/automation/index.d.ts +2 -2
- package/esm/_staging/automation/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +4 -5
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts +4 -4
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts +3 -3
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +3 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts +2 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.js +4 -3
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js +8 -1
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.js +12 -1
- package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.js +1 -10
- package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts +2 -2
- package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts.map +1 -1
- package/esm/model/store/_infra/unbatched.d.ts +6 -0
- package/esm/model/store/_infra/unbatched.d.ts.map +1 -0
- package/esm/model/store/_infra/unbatched.js +14 -0
- package/esm/model/store/catalog/catalogSelectors.d.ts +3 -3
- package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogState.d.ts +2 -2
- package/esm/model/store/catalog/catalogState.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +27 -15
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +34 -0
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +8 -7
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +14 -16
- package/esm/model/types/commonTypes.d.ts +7 -0
- package/esm/model/types/commonTypes.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +2 -2
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.js +29 -6
- package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts +7 -7
- package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts +2 -2
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardContentScrollContainer.d.ts +17 -0
- package/esm/presentation/dashboard/components/DashboardContentScrollContainer.d.ts.map +1 -0
- package/esm/presentation/dashboard/components/DashboardContentScrollContainer.js +97 -0
- package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardInner.js +22 -5
- package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts +5 -1
- package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/ExportCsvDialogContext.js +5 -2
- package/esm/presentation/dashboardContexts/ExportTabularPdfDialogContext.d.ts +5 -1
- package/esm/presentation/dashboardContexts/ExportTabularPdfDialogContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/ExportTabularPdfDialogContext.js +5 -2
- package/esm/presentation/dashboardContexts/ExportTemplateDialogContext.d.ts +4 -0
- package/esm/presentation/dashboardContexts/ExportTemplateDialogContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/ExportXlsxDialogContext.d.ts +5 -1
- package/esm/presentation/dashboardContexts/ExportXlsxDialogContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/ExportXlsxDialogContext.js +6 -3
- package/esm/presentation/dialogs/ExportCsvDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportCsvDialogProvider.js +6 -5
- package/esm/presentation/dialogs/ExportTabularPdfDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportTabularPdfDialogProvider.js +3 -3
- package/esm/presentation/dialogs/ExportTemplateDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportTemplateDialogProvider.js +8 -7
- package/esm/presentation/dialogs/ExportXlsxDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dialogs/ExportXlsxDialogProvider.js +3 -3
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.d.ts +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.js +72 -12
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +12 -12
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.js +2 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts +2 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.js +2 -2
- package/esm/presentation/drill/DrillSelect/WithDrillSelect.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/WithDrillSelect.js +12 -2
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +49 -11
- package/esm/presentation/filterBar/filterBar/ResetFiltersButton.d.ts +7 -0
- package/esm/presentation/filterBar/filterBar/ResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/ResetFiltersButton.js +10 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayer.d.ts +10 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayer.js +20 -8
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar.js +5 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +8 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +8 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +1 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +1 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +1 -0
- package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.d.ts +6 -2
- package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.d.ts.map +1 -1
- package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.js +28 -3
- package/esm/presentation/saveAs/DefaultSaveAsDialog/index.d.ts.map +1 -1
- package/esm/presentation/saveAs/DefaultSaveAsDialog/index.js +19 -5
- package/esm/presentation/saveAs/DefaultSaveAsDialog/useSaveAs.d.ts +1 -1
- package/esm/presentation/saveAs/DefaultSaveAsDialog/useSaveAs.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +8 -3
- package/esm/presentation/topBar/menuButton/useExportWithTemplateSelection.d.ts +3 -1
- package/esm/presentation/topBar/menuButton/useExportWithTemplateSelection.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useExportWithTemplateSelection.js +4 -2
- package/esm/presentation/widget/common/useInsightExport.d.ts +4 -0
- package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
- package/esm/presentation/widget/common/useInsightExport.js +12 -8
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js +3 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js +3 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.d.ts +4 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.js +2 -2
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.d.ts +5 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js +4 -4
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js +17 -5
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenuButton.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenuButton.js +7 -2
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +3 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +3 -1
- package/esm/sdk-ui-dashboard.d.ts +13 -6
- package/package.json +24 -25
- package/styles/css/dashboard.css +40 -4
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/filterBar.css +6 -1
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +84 -9
- package/styles/css/main.css.map +1 -1
- package/styles/css/resizing.css +16 -0
- package/styles/css/resizing.css.map +1 -1
- package/styles/scss/_zIndexes.scss +3 -0
- package/styles/scss/dashboard.scss +50 -2
- package/styles/scss/filterBar.scss +6 -1
- package/styles/scss/resizing.scss +18 -1
|
@@ -7,6 +7,10 @@ export interface IExportTemplateDialogConfig {
|
|
|
7
7
|
templates: IExportTemplate[];
|
|
8
8
|
onConfirm: (templateId: string) => void;
|
|
9
9
|
onCancel?: () => void;
|
|
10
|
+
/**
|
|
11
|
+
* Id of the element that receives focus when the dialog closes (typically the trigger of the export flow).
|
|
12
|
+
*/
|
|
13
|
+
returnFocusTo?: string;
|
|
10
14
|
}
|
|
11
15
|
/**
|
|
12
16
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportTemplateDialogContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/ExportTemplateDialogContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAuC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ExportTemplateDialogContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/ExportTemplateDialogContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAuC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,2BAA2B,GAAG,SAAS,CAAC;IACtD,UAAU,EAAE,CAAC,MAAM,EAAE,2BAA2B,KAAK,IAAI,CAAC;IAC1D,WAAW,EAAE,MAAM,IAAI,CAAC;CAC3B;AASD;;GAEG;AACH,eAAO,MAAM,8BAA8B,QAAO,4BAEjD,CAAC;AAEF;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAkBzF"}
|
|
@@ -7,7 +7,11 @@ export type ExportXlsxDialogConfig = Omit<IExportDialogBaseProps, "children">;
|
|
|
7
7
|
export interface IExportXlsxDialogContext {
|
|
8
8
|
isOpen: boolean;
|
|
9
9
|
dialogConfig: ExportXlsxDialogConfig;
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Id of the element that receives focus when the dialog closes (typically the trigger of the export flow).
|
|
12
|
+
*/
|
|
13
|
+
returnFocusTo?: string;
|
|
14
|
+
openDialog: (config?: ExportXlsxDialogConfig, returnFocusTo?: string) => void;
|
|
11
15
|
closeDialog: () => void;
|
|
12
16
|
}
|
|
13
17
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportXlsxDialogContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/ExportXlsxDialogContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA6D,MAAM,OAAO,CAAC;AAElG,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,sBAAsB,CAAC;IACrC,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE,sBAAsB,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ExportXlsxDialogContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/ExportXlsxDialogContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA6D,MAAM,OAAO,CAAC;AAElG,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,sBAAsB,CAAC;IACrC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9E,WAAW,EAAE,MAAM,IAAI,CAAC;CAC3B;AAUD;;GAEG;AACH,eAAO,MAAM,0BAA0B,QAAO,wBAE7C,CAAC;AAEF;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAuBrF"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2021-
|
|
2
|
+
// (C) 2021-2026 GoodData Corporation
|
|
3
3
|
import { createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
4
4
|
const ExportXlsxDialogContext = createContext({
|
|
5
5
|
isOpen: false,
|
|
6
6
|
dialogConfig: {},
|
|
7
|
+
returnFocusTo: undefined,
|
|
7
8
|
closeDialog: () => { },
|
|
8
9
|
openDialog: () => { },
|
|
9
10
|
});
|
|
@@ -19,13 +20,15 @@ export const useExportXlsxDialogContext = () => {
|
|
|
19
20
|
export function ExportXlsxDialogContextProvider({ children }) {
|
|
20
21
|
const [isOpen, setIsOpen] = useState(false);
|
|
21
22
|
const [dialogConfig, setDialogConfig] = useState({});
|
|
22
|
-
const
|
|
23
|
+
const [returnFocusTo, setReturnFocusTo] = useState();
|
|
24
|
+
const openDialog = useCallback((config = {}, focusTarget) => {
|
|
23
25
|
setIsOpen(true);
|
|
24
26
|
setDialogConfig(config);
|
|
27
|
+
setReturnFocusTo(focusTarget);
|
|
25
28
|
}, []);
|
|
26
29
|
const closeDialog = useCallback(() => {
|
|
27
30
|
setIsOpen(false);
|
|
28
31
|
}, []);
|
|
29
|
-
const contextValue = useMemo(() => ({ isOpen, dialogConfig, openDialog, closeDialog }), [isOpen, dialogConfig, openDialog, closeDialog]);
|
|
32
|
+
const contextValue = useMemo(() => ({ isOpen, dialogConfig, returnFocusTo, openDialog, closeDialog }), [isOpen, dialogConfig, returnFocusTo, openDialog, closeDialog]);
|
|
30
33
|
return (_jsx(ExportXlsxDialogContext.Provider, { value: contextValue, children: children }));
|
|
31
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportCsvDialogProvider.d.ts","sourceRoot":"","sources":["../../../src/presentation/dialogs/ExportCsvDialogProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExportCsvDialogProvider.d.ts","sourceRoot":"","sources":["../../../src/presentation/dialogs/ExportCsvDialogProvider.tsx"],"names":[],"mappings":"AAQA;;GAEG;AACH,wBAAgB,uBAAuB,mDActC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { UiReturnFocusOnUnmount } from "@gooddata/sdk-ui-kit";
|
|
3
4
|
import { useExportCsvDialogContext } from "../dashboardContexts/ExportCsvDialogContext.js";
|
|
4
5
|
import { ExportCsvDialog } from "./ExportCsvDialog.js";
|
|
5
6
|
/**
|
|
6
7
|
* @internal
|
|
7
8
|
*/
|
|
8
9
|
export function ExportCsvDialogProvider() {
|
|
9
|
-
const { closeDialog, dialogConfig, isOpen } = useExportCsvDialogContext();
|
|
10
|
-
return isOpen && dialogConfig ? (_jsx(ExportCsvDialog, { onCancel: closeDialog, onSubmit: (data) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const { closeDialog, dialogConfig, isOpen, returnFocusTo } = useExportCsvDialogContext();
|
|
11
|
+
return isOpen && dialogConfig ? (_jsx(UiReturnFocusOnUnmount, { returnFocusTo: returnFocusTo, children: _jsx(ExportCsvDialog, { onCancel: closeDialog, onSubmit: (data) => {
|
|
12
|
+
closeDialog();
|
|
13
|
+
dialogConfig.onSubmit(data);
|
|
14
|
+
} }) })) : null;
|
|
14
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportTabularPdfDialogProvider.d.ts","sourceRoot":"","sources":["../../../src/presentation/dialogs/ExportTabularPdfDialogProvider.tsx"],"names":[],"mappings":"AAQA;;GAEG;AACH,wBAAgB,8BAA8B,
|
|
1
|
+
{"version":3,"file":"ExportTabularPdfDialogProvider.d.ts","sourceRoot":"","sources":["../../../src/presentation/dialogs/ExportTabularPdfDialogProvider.tsx"],"names":[],"mappings":"AAQA;;GAEG;AACH,wBAAgB,8BAA8B,mDAc7C"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2021-2026 GoodData Corporation
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import { ExportTabularPdfDialog } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { ExportTabularPdfDialog, UiReturnFocusOnUnmount } from "@gooddata/sdk-ui-kit";
|
|
5
5
|
import { useExportTabularPdfDialogContext } from "../dashboardContexts/ExportTabularPdfDialogContext.js";
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
9
|
export function ExportTabularPdfDialogProvider() {
|
|
10
|
-
const { closeDialog, config, isOpen } = useExportTabularPdfDialogContext();
|
|
10
|
+
const { closeDialog, config, isOpen, returnFocusTo } = useExportTabularPdfDialogContext();
|
|
11
11
|
const intl = useIntl();
|
|
12
|
-
return isOpen ? (_jsx(ExportTabularPdfDialog, { ...config, cancelButtonText: intl.formatMessage({ id: "cancel" }), submitButtonText: intl.formatMessage({ id: "dialogs.export.submit" }), onCancel: closeDialog })) : null;
|
|
12
|
+
return isOpen ? (_jsx(UiReturnFocusOnUnmount, { returnFocusTo: returnFocusTo, children: _jsx(ExportTabularPdfDialog, { ...config, cancelButtonText: intl.formatMessage({ id: "cancel" }), submitButtonText: intl.formatMessage({ id: "dialogs.export.submit" }), onCancel: closeDialog }) })) : null;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportTemplateDialogProvider.d.ts","sourceRoot":"","sources":["../../../src/presentation/dialogs/ExportTemplateDialogProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExportTemplateDialogProvider.d.ts","sourceRoot":"","sources":["../../../src/presentation/dialogs/ExportTemplateDialogProvider.tsx"],"names":[],"mappings":"AAQA;;GAEG;AACH,wBAAgB,4BAA4B,mDAsB3C"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { UiReturnFocusOnUnmount } from "@gooddata/sdk-ui-kit";
|
|
3
4
|
import { useExportTemplateDialogContext } from "../dashboardContexts/ExportTemplateDialogContext.js";
|
|
4
5
|
import { ExportTemplateSelectionDialog } from "./ExportTemplateSelectionDialog/ExportTemplateSelectionDialog.js";
|
|
5
6
|
/**
|
|
@@ -10,11 +11,11 @@ export function ExportTemplateDialogProvider() {
|
|
|
10
11
|
if (!isOpen || !dialogConfig) {
|
|
11
12
|
return null;
|
|
12
13
|
}
|
|
13
|
-
return (_jsx(ExportTemplateSelectionDialog, { templates: dialogConfig.templates, onConfirm: (templateId) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
return (_jsx(UiReturnFocusOnUnmount, { returnFocusTo: dialogConfig.returnFocusTo, children: _jsx(ExportTemplateSelectionDialog, { templates: dialogConfig.templates, onConfirm: (templateId) => {
|
|
15
|
+
closeDialog();
|
|
16
|
+
dialogConfig.onConfirm(templateId);
|
|
17
|
+
}, onCancel: () => {
|
|
18
|
+
closeDialog();
|
|
19
|
+
dialogConfig.onCancel?.();
|
|
20
|
+
} }) }));
|
|
20
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportXlsxDialogProvider.d.ts","sourceRoot":"","sources":["../../../src/presentation/dialogs/ExportXlsxDialogProvider.tsx"],"names":[],"mappings":"AAQA;;GAEG;AACH,wBAAgB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"ExportXlsxDialogProvider.d.ts","sourceRoot":"","sources":["../../../src/presentation/dialogs/ExportXlsxDialogProvider.tsx"],"names":[],"mappings":"AAQA;;GAEG;AACH,wBAAgB,wBAAwB,mDAmBvC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2021-2026 GoodData Corporation
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import { ExportDialog } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { ExportDialog, UiReturnFocusOnUnmount } from "@gooddata/sdk-ui-kit";
|
|
5
5
|
import { useExportXlsxDialogContext } from "../dashboardContexts/ExportXlsxDialogContext.js";
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
9
|
export function ExportXlsxDialogProvider() {
|
|
10
|
-
const { closeDialog, dialogConfig, isOpen } = useExportXlsxDialogContext();
|
|
10
|
+
const { closeDialog, dialogConfig, isOpen, returnFocusTo } = useExportXlsxDialogContext();
|
|
11
11
|
const intl = useIntl();
|
|
12
|
-
return isOpen ? (_jsx(ExportDialog, { headline: intl.formatMessage({ id: "dialogs.export.headline" }), cancelButtonText: intl.formatMessage({ id: "cancel" }), submitButtonText: intl.formatMessage({ id: "dialogs.export.submit" }), filterContextText: intl.formatMessage({ id: "dialogs.export.includeFilters" }), filterContextTitle: intl.formatMessage({ id: "dialogs.export.filters" }), mergeHeadersText: intl.formatMessage({ id: "dialogs.export.mergeHeaders" }), mergeHeadersTitle: intl.formatMessage({ id: "dialogs.export.cells" }), onCancel: closeDialog, ...dialogConfig })) : null;
|
|
12
|
+
return isOpen ? (_jsx(UiReturnFocusOnUnmount, { returnFocusTo: returnFocusTo, children: _jsx(ExportDialog, { headline: intl.formatMessage({ id: "dialogs.export.headline" }), cancelButtonText: intl.formatMessage({ id: "cancel" }), submitButtonText: intl.formatMessage({ id: "dialogs.export.submit" }), filterContextText: intl.formatMessage({ id: "dialogs.export.includeFilters" }), filterContextTitle: intl.formatMessage({ id: "dialogs.export.filters" }), mergeHeadersText: intl.formatMessage({ id: "dialogs.export.mergeHeaders" }), mergeHeadersTitle: intl.formatMessage({ id: "dialogs.export.cells" }), onCancel: closeDialog, ...dialogConfig }) })) : null;
|
|
13
13
|
}
|
|
@@ -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
|
}
|
|
@@ -130,11 +130,11 @@ const buildValidInsightMvfFormattingRule = (measureIdentifiers) => {
|
|
|
130
130
|
token: customTags.filter.toString(),
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
|
-
const buildValidParametersFormattingRule = (
|
|
134
|
-
if (
|
|
133
|
+
const buildValidParametersFormattingRule = (widgetParameterIdentifiers) => {
|
|
134
|
+
if (widgetParameterIdentifiers.length === 0) {
|
|
135
135
|
return undefined;
|
|
136
136
|
}
|
|
137
|
-
const validParameterPlaceholders =
|
|
137
|
+
const validParameterPlaceholders = widgetParameterIdentifiers
|
|
138
138
|
.map((identifier) => escapeRegExp(parameterIdentifierToPlaceholder(identifier)))
|
|
139
139
|
.join("|");
|
|
140
140
|
return {
|
|
@@ -181,13 +181,13 @@ const DEFAULT_RULES = [
|
|
|
181
181
|
IDENTIFIER_RULE,
|
|
182
182
|
INVALID_IDENTIFIER_RULE,
|
|
183
183
|
];
|
|
184
|
-
const buildFormattingRules = (attributeDisplayForms, dashboardFilters, insightFilters, dashboardMeasureIdentifiers, insightMeasureIdentifiers,
|
|
184
|
+
const buildFormattingRules = (attributeDisplayForms, dashboardFilters, insightFilters, dashboardMeasureIdentifiers, insightMeasureIdentifiers, widgetParameterIdentifiers, attributeFilterConfigs) => {
|
|
185
185
|
const validDisplayFormsRule = buildValidDisplayFormsFormattingRule(attributeDisplayForms);
|
|
186
186
|
const validInsightFiltersRule = buildValidInsightFiltersFormattingRule(insightFilters);
|
|
187
187
|
const validDashboardFiltersRule = buildValidDashboardFiltersFormattingRule(dashboardFilters, attributeFilterConfigs);
|
|
188
188
|
const validDashboardMvfRule = buildValidDashboardMvfFormattingRule(dashboardMeasureIdentifiers);
|
|
189
189
|
const validInsightMvfRule = buildValidInsightMvfFormattingRule(insightMeasureIdentifiers);
|
|
190
|
-
const validParametersRule = buildValidParametersFormattingRule(
|
|
190
|
+
const validParametersRule = buildValidParametersFormattingRule(widgetParameterIdentifiers);
|
|
191
191
|
return _compact([
|
|
192
192
|
validDisplayFormsRule,
|
|
193
193
|
validDashboardFiltersRule,
|
|
@@ -198,7 +198,7 @@ const buildFormattingRules = (attributeDisplayForms, dashboardFilters, insightFi
|
|
|
198
198
|
...DEFAULT_RULES,
|
|
199
199
|
]);
|
|
200
200
|
};
|
|
201
|
-
function UrlInputPanel({ currentUrlValue, onChange, onCursor, documentationLink, attributeDisplayForms, intl, insightFilters, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, enableInsightMeasureValueFilters, attributeFilterConfigs,
|
|
201
|
+
function UrlInputPanel({ currentUrlValue, onChange, onCursor, documentationLink, attributeDisplayForms, intl, insightFilters, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, enableInsightMeasureValueFilters, attributeFilterConfigs, widgetParameterIdentifiers, }) {
|
|
202
202
|
const isWhiteLabeled = useDashboardSelector(selectIsWhiteLabeled);
|
|
203
203
|
const catalogMeasuresMap = useDashboardSelector(selectAllCatalogMeasuresMap);
|
|
204
204
|
const dashboardMeasureIdentifiers = useMemo(() => {
|
|
@@ -217,14 +217,14 @@ function UrlInputPanel({ currentUrlValue, onChange, onCursor, documentationLink,
|
|
|
217
217
|
insightFilters &&
|
|
218
218
|
dashboardFilters &&
|
|
219
219
|
dashboardMeasureValueFilters &&
|
|
220
|
-
buildFormattingRules(attributeDisplayForms, dashboardFilters, insightFilters, dashboardMeasureIdentifiers, insightMeasureIdentifiers,
|
|
220
|
+
buildFormattingRules(attributeDisplayForms, dashboardFilters, insightFilters, dashboardMeasureIdentifiers, insightMeasureIdentifiers, widgetParameterIdentifiers, attributeFilterConfigs), [
|
|
221
221
|
attributeDisplayForms,
|
|
222
222
|
insightFilters,
|
|
223
223
|
dashboardFilters,
|
|
224
224
|
dashboardMeasureValueFilters,
|
|
225
225
|
dashboardMeasureIdentifiers,
|
|
226
226
|
insightMeasureIdentifiers,
|
|
227
|
-
|
|
227
|
+
widgetParameterIdentifiers,
|
|
228
228
|
attributeFilterConfigs,
|
|
229
229
|
]);
|
|
230
230
|
return (_jsxs("div", { children: [_jsx("label", { className: "gd-label", children: _jsx(FormattedMessage, { id: "configurationPanel.drillIntoUrl.editor.textAreaLabel" }) }), _jsx(UrlInput, { onChange: onChange, onCursor: onCursor, currentUrlValue: currentUrlValue, syntaxHighlightingRules: syntaxHighlightingRules, intl: intl }), !isWhiteLabeled && documentationLink ? _jsx(HelpLink, { link: documentationLink }) : null] }));
|
|
@@ -261,9 +261,9 @@ function CustomUrlEditorDialog({ urlDrillTarget, documentationLink, onSelect, on
|
|
|
261
261
|
const dashboardFilters = useSanitizedDashboardFilters();
|
|
262
262
|
const dashboardMeasureValueFilters = useDashboardSelector(selectFilterContextMeasureValueFilters);
|
|
263
263
|
const attributeFilterConfigs = useDashboardSelector(selectAttributeFilterConfigsOverrides);
|
|
264
|
-
const
|
|
265
|
-
const
|
|
266
|
-
const invalidFilteringParametersIdentifiers = useInvalidFilteringParametersIdentifiers(urlDrillTarget, insightFilters, dashboardFilters, dashboardMeasureValueFilters, enableInsightMeasureValueFilters ? insightMeasureValueFilters : undefined, enableInsightMeasureValueFilters, attributeFilterConfigs,
|
|
264
|
+
const widgetParameters = useDashboardSelector(selectWidgetParameterValues(widgetRef));
|
|
265
|
+
const widgetParameterIdentifiers = useMemo(() => widgetParameters.map(({ identifier }) => identifier), [widgetParameters]);
|
|
266
|
+
const invalidFilteringParametersIdentifiers = useInvalidFilteringParametersIdentifiers(urlDrillTarget, insightFilters, dashboardFilters, dashboardMeasureValueFilters, enableInsightMeasureValueFilters ? insightMeasureValueFilters : undefined, enableInsightMeasureValueFilters, attributeFilterConfigs, widgetParameterIdentifiers);
|
|
267
267
|
const invalidParameters = useMemo(() => {
|
|
268
268
|
return [...invalidAttributeDisplayFormIdentifiers, ...invalidFilteringParametersIdentifiers];
|
|
269
269
|
}, [invalidAttributeDisplayFormIdentifiers, invalidFilteringParametersIdentifiers]);
|
|
@@ -284,7 +284,7 @@ function CustomUrlEditorDialog({ urlDrillTarget, documentationLink, onSelect, on
|
|
|
284
284
|
id: "configurationPanel.drillIntoUrl.editor.cancelButtonLabel",
|
|
285
285
|
}), submitButtonText: intl.formatMessage({
|
|
286
286
|
id: "configurationPanel.drillIntoUrl.editor.applyButtonLabel",
|
|
287
|
-
}), isSubmitDisabled: !isApplyEnabled, submitOnEnterKey: false, onCancel: onClose, onSubmit: apply, warning: editorWarningText, children: [_jsx(UrlInputPanel, { onChange: handleOnChange, onCursor: handleCursorPosition, documentationLink: documentationLink, currentUrlValue: currentValue, attributeDisplayForms: attributeDisplayForms, insightFilters: insightFilters, dashboardFilters: dashboardFilters, dashboardMeasureValueFilters: dashboardMeasureValueFilters, insightMeasureValueFilters: insightMeasureValueFilters, enableInsightMeasureValueFilters: enableInsightMeasureValueFilters, attributeFilterConfigs: attributeFilterConfigs,
|
|
287
|
+
}), isSubmitDisabled: !isApplyEnabled, submitOnEnterKey: false, onCancel: onClose, onSubmit: apply, warning: editorWarningText, children: [_jsx(UrlInputPanel, { onChange: handleOnChange, onCursor: handleCursorPosition, documentationLink: documentationLink, currentUrlValue: currentValue, attributeDisplayForms: attributeDisplayForms, insightFilters: insightFilters, dashboardFilters: dashboardFilters, dashboardMeasureValueFilters: dashboardMeasureValueFilters, insightMeasureValueFilters: insightMeasureValueFilters, enableInsightMeasureValueFilters: enableInsightMeasureValueFilters, attributeFilterConfigs: attributeFilterConfigs, widgetParameterIdentifiers: widgetParameterIdentifiers, intl: intl }), _jsx(ParametersPanel, { insightFilters: insightFilters, dashboardFilters: dashboardFilters, dashboardMeasureValueFilters: dashboardMeasureValueFilters, insightMeasureValueFilters: insightMeasureValueFilters, attributeFilterConfigs: attributeFilterConfigs, widgetParameters: widgetParameters, attributeDisplayForms: attributeDisplayForms, loadingAttributeDisplayForms: loadingAttributeDisplayForms, enableClientIdParameter: enableClientIdParameter, enableDataProductIdParameter: enableDataProductIdParameter, enableWidgetIdParameter: enableWidgetIdParameter, onAdd: handleOnAdd, intl: intl, widgetRef: widgetRef })] }));
|
|
288
288
|
}
|
|
289
289
|
const overlayController = OverlayController.getInstance(DASHBOARD_HEADER_OVERLAYS_Z_INDEX);
|
|
290
290
|
export function CustomUrlEditor(props) {
|
|
@@ -3,6 +3,6 @@ import { type IInsightParametersSectionProps } from "./CustomUrlEditorParameters
|
|
|
3
3
|
import { type IParameterParametersSectionProps } from "./CustomUrlEditorParametersSections/ParameterParametersSection.js";
|
|
4
4
|
import { type IIdentifierParametersSectionProps } from "./types.js";
|
|
5
5
|
type IParametersPanelProps = IInsightParametersSectionProps & IIdentifierParametersSectionProps & IDashboardParametersSectionProps & IParameterParametersSectionProps;
|
|
6
|
-
export declare function ParametersPanel({ attributeDisplayForms, loadingAttributeDisplayForms, enableClientIdParameter, enableDataProductIdParameter, enableWidgetIdParameter, onAdd, intl, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, attributeFilterConfigs,
|
|
6
|
+
export declare function ParametersPanel({ attributeDisplayForms, loadingAttributeDisplayForms, enableClientIdParameter, enableDataProductIdParameter, enableWidgetIdParameter, onAdd, intl, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, attributeFilterConfigs, widgetParameters, insightFilters, widgetRef, }: IParametersPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=CustomUrlEditorParameters.d.ts.map
|
package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomUrlEditorParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,gCAAgC,EACxC,MAAM,mEAAmE,CAAC;AAE3E,OAAO,EACH,KAAK,8BAA8B,EAEtC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EACH,KAAK,gCAAgC,EAExC,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAEpE,KAAK,qBAAqB,GAAG,8BAA8B,GACvD,iCAAiC,GACjC,gCAAgC,GAChC,gCAAgC,CAAC;AAErC,wBAAgB,eAAe,CAAC,EAC5B,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,KAAK,EACL,IAAI,EACJ,gBAAgB,EAChB,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,
|
|
1
|
+
{"version":3,"file":"CustomUrlEditorParameters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,gCAAgC,EACxC,MAAM,mEAAmE,CAAC;AAE3E,OAAO,EACH,KAAK,8BAA8B,EAEtC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EACH,KAAK,gCAAgC,EAExC,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAEpE,KAAK,qBAAqB,GAAG,8BAA8B,GACvD,iCAAiC,GACjC,gCAAgC,GAChC,gCAAgC,CAAC;AAErC,wBAAgB,eAAe,CAAC,EAC5B,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,KAAK,EACL,IAAI,EACJ,gBAAgB,EAChB,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,SAAS,GACZ,EAAE,qBAAqB,2CAyCvB"}
|
|
@@ -6,6 +6,6 @@ import { DashboardParametersSection, } from "./CustomUrlEditorParametersSections
|
|
|
6
6
|
import { IdentifierParametersSection } from "./CustomUrlEditorParametersSections/IdentifierParametersSection.js";
|
|
7
7
|
import { InsightParametersSection, } from "./CustomUrlEditorParametersSections/InsightParametersSection.js";
|
|
8
8
|
import { ParameterParametersSection, } from "./CustomUrlEditorParametersSections/ParameterParametersSection.js";
|
|
9
|
-
export function ParametersPanel({ attributeDisplayForms, loadingAttributeDisplayForms, enableClientIdParameter, enableDataProductIdParameter, enableWidgetIdParameter, onAdd, intl, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, attributeFilterConfigs,
|
|
10
|
-
return (_jsxs("div", { children: [_jsxs("label", { className: "gd-label", children: [_jsx(FormattedMessage, { id: "configurationPanel.drillIntoUrl.editor.parametersPanelLabel" }), _jsxs(BubbleHoverTrigger, { className: "gd-list-item-tooltip", showDelay: 0, hideDelay: 0, children: [_jsx("span", { className: "gd-icon-circle-question gd-list-item-tooltip-icon" }), _jsx(Bubble, { className: "bubble-primary", alignPoints: [{ align: "cr cl" }], children: _jsx(FormattedMessage, { id: "configurationPanel.drillIntoUrl.editor.parametersPanelTooltip" }) })] })] }), _jsxs("div", { className: "gd-drill-to-url-parameters gd-drill-to-url-list", children: [_jsx(InsightParametersSection, { attributeDisplayForms: attributeDisplayForms, loadingAttributeDisplayForms: loadingAttributeDisplayForms, onAdd: onAdd, intl: intl, insightFilters: insightFilters, insightMeasureValueFilters: insightMeasureValueFilters, widgetRef: widgetRef }), _jsx(DashboardParametersSection, { intl: intl, onAdd: onAdd, dashboardFilters: dashboardFilters, dashboardMeasureValueFilters: dashboardMeasureValueFilters, attributeFilterConfigs: attributeFilterConfigs }), _jsx(ParameterParametersSection, {
|
|
9
|
+
export function ParametersPanel({ attributeDisplayForms, loadingAttributeDisplayForms, enableClientIdParameter, enableDataProductIdParameter, enableWidgetIdParameter, onAdd, intl, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, attributeFilterConfigs, widgetParameters, insightFilters, widgetRef, }) {
|
|
10
|
+
return (_jsxs("div", { children: [_jsxs("label", { className: "gd-label", children: [_jsx(FormattedMessage, { id: "configurationPanel.drillIntoUrl.editor.parametersPanelLabel" }), _jsxs(BubbleHoverTrigger, { className: "gd-list-item-tooltip", showDelay: 0, hideDelay: 0, children: [_jsx("span", { className: "gd-icon-circle-question gd-list-item-tooltip-icon" }), _jsx(Bubble, { className: "bubble-primary", alignPoints: [{ align: "cr cl" }], children: _jsx(FormattedMessage, { id: "configurationPanel.drillIntoUrl.editor.parametersPanelTooltip" }) })] })] }), _jsxs("div", { className: "gd-drill-to-url-parameters gd-drill-to-url-list", children: [_jsx(InsightParametersSection, { attributeDisplayForms: attributeDisplayForms, loadingAttributeDisplayForms: loadingAttributeDisplayForms, onAdd: onAdd, intl: intl, insightFilters: insightFilters, insightMeasureValueFilters: insightMeasureValueFilters, widgetRef: widgetRef }), _jsx(DashboardParametersSection, { intl: intl, onAdd: onAdd, dashboardFilters: dashboardFilters, dashboardMeasureValueFilters: dashboardMeasureValueFilters, attributeFilterConfigs: attributeFilterConfigs }), _jsx(ParameterParametersSection, { widgetParameters: widgetParameters, onAdd: onAdd, intl: intl }), _jsx(IdentifierParametersSection, { enableClientIdParameter: enableClientIdParameter, enableDataProductIdParameter: enableDataProductIdParameter, enableWidgetIdParameter: enableWidgetIdParameter, onAdd: onAdd, intl: intl, widgetRef: widgetRef })] })] }));
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type IWidgetParameterValue } from "../../../../../model/store/tabs/parameters/parametersSelectors.js";
|
|
2
2
|
import { type IParametersPanelSectionsCommonProps } from "../types.js";
|
|
3
3
|
export interface IParameterParametersSectionProps extends IParametersPanelSectionsCommonProps {
|
|
4
|
-
|
|
4
|
+
widgetParameters: IWidgetParameterValue[];
|
|
5
5
|
}
|
|
6
|
-
export declare function ParameterParametersSection({
|
|
6
|
+
export declare function ParameterParametersSection({ widgetParameters, onAdd, intl, }: IParameterParametersSectionProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
7
|
//# sourceMappingURL=ParameterParametersSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterParametersSection.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,mEAAmE,CAAC;AAG/G,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,aAAa,CAAC;AAIvE,MAAM,WAAW,gCAAiC,SAAQ,mCAAmC;IACzF,
|
|
1
|
+
{"version":3,"file":"ParameterParametersSection.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,mEAAmE,CAAC;AAG/G,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,aAAa,CAAC;AAIvE,MAAM,WAAW,gCAAiC,SAAQ,mCAAmC;IACzF,gBAAgB,EAAE,qBAAqB,EAAE,CAAC;CAC7C;AAOD,wBAAgB,0BAA0B,CAAC,EACvC,gBAAgB,EAChB,KAAK,EACL,IAAI,GACP,EAAE,gCAAgC,kDAqClC"}
|
|
@@ -11,10 +11,10 @@ const parameterTypeMessages = defineMessages({
|
|
|
11
11
|
NUMBER: { id: "configurationPanel.drillIntoUrl.editor.numberParameterTypeLabel" },
|
|
12
12
|
STRING: { id: "configurationPanel.drillIntoUrl.editor.stringParameterTypeLabel" },
|
|
13
13
|
});
|
|
14
|
-
export function ParameterParametersSection({
|
|
14
|
+
export function ParameterParametersSection({ widgetParameters, onAdd, intl, }) {
|
|
15
15
|
const isEnabled = useDashboardSelector(selectEnableParameters);
|
|
16
16
|
if (!isEnabled) {
|
|
17
17
|
return null;
|
|
18
18
|
}
|
|
19
|
-
return (_jsxs(_Fragment, { children: [_jsx(DropdownSectionHeader, { children: _jsx(FormattedMessage, { id: "configurationPanel.drillIntoUrl.editor.parameterParametersSectionLabel" }) }),
|
|
19
|
+
return (_jsxs(_Fragment, { children: [_jsx(DropdownSectionHeader, { children: _jsx(FormattedMessage, { id: "configurationPanel.drillIntoUrl.editor.parameterParametersSectionLabel" }) }), widgetParameters.length === 0 ? (_jsx("div", { className: "gd-drill-to-url-section-empty s-drill-to-url-parameters-empty", children: _jsx(FormattedMessage, { id: "configurationPanel.drillIntoUrl.editor.parameterParametersSectionEmpty" }) })) : (widgetParameters.map(({ identifier, parameterType, title, value }) => (_jsx(Parameter, { name: title, detailContent: _jsx(ParameterDetail, { title: title, identifier: identifier, typeName: intl.formatMessage(parameterTypeMessages[parameterType]), values: value === undefined ? [] : [String(value)] }), iconClassName: "gd-icon-sharp", onAdd: () => onAdd(parameterIdentifierToPlaceholder(identifier)), intl: intl }, identifier))))] }));
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithDrillSelect.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/WithDrillSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"WithDrillSelect.d.ts","sourceRoot":"","sources":["../../../../src/presentation/drill/DrillSelect/WithDrillSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAqD,MAAM,OAAO,CAAC;AAK7F,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,MAAM,EAQd,MAAM,qBAAqB,CAAC;AAiC7B,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,aAAa,EACrB,MAAM,aAAa,CAAC;AAMrB;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,aAAa,CAAA;KAAE,KAAK,YAAY,CAAC;CACjE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,OAAO,GACV,EAAE,qBAAqB,GAAG,YAAY,CAgOtC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2020-2026 GoodData Corporation
|
|
3
|
-
import { useCallback, useMemo, useRef, useState } from "react";
|
|
3
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { v4 as uuid } from "uuid";
|
|
6
6
|
import { isAttributeDescriptor, isCrossFiltering, isDrillToAttributeUrl, isDrillToCustomUrl, isDrillToDashboard, isDrillToInsight, isKeyDriveAnalysis, } from "@gooddata/sdk-model";
|
|
7
7
|
import { useAutoupdateRef } from "@gooddata/sdk-ui";
|
|
8
|
+
import { DRILL_MENU_HOST_ATTRIBUTE, notifyDrillMenuExpandedChange } from "@gooddata/sdk-ui-charts";
|
|
8
9
|
import { OverlayController, OverlayControllerProvider } from "@gooddata/sdk-ui-kit";
|
|
9
10
|
import { getDrillSourceLocalIdentifierFromEvent } from "../../../_staging/drills/drillingUtils.js";
|
|
10
11
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
@@ -101,6 +102,15 @@ export function WithDrillSelect({ widgetRef, children, insight, returnFocusToIns
|
|
|
101
102
|
returnFocusToInsight?.();
|
|
102
103
|
handleClose();
|
|
103
104
|
}, [handleClose, returnFocusToInsight]);
|
|
105
|
+
const openDrillEvent = isOpen ? dropdownProps?.drillEvent : undefined;
|
|
106
|
+
useEffect(() => {
|
|
107
|
+
const target = openDrillEvent?.target;
|
|
108
|
+
if (!target) {
|
|
109
|
+
return undefined;
|
|
110
|
+
}
|
|
111
|
+
notifyDrillMenuExpandedChange(target, true);
|
|
112
|
+
return () => notifyDrillMenuExpandedChange(target, false);
|
|
113
|
+
}, [openDrillEvent]);
|
|
104
114
|
const onSelectDepsRef = useAutoupdateRef({
|
|
105
115
|
drills,
|
|
106
116
|
dropdownProps: { correlationId: dropdownProps?.correlationId, drillEvent: dropdownProps?.drillEvent },
|
|
@@ -161,7 +171,7 @@ export function WithDrillSelect({ widgetRef, children, insight, returnFocusToIns
|
|
|
161
171
|
return OverlayController.getInstance(DASHBOARD_DRILL_MENU_Z_INDEX);
|
|
162
172
|
}, []);
|
|
163
173
|
const drillDownDropdown = dropdownProps ? (_jsx(IntlWrapper, { locale: locale, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(DrillSelectDropdown, { ...dropdownProps, dropDownAnchorClass: dropDownAnchorClass, isOpen: isOpen, onClose: handleClose, onCloseReturnFocus: handleCloseReturnFocus, onSelect: onSelect }) }) })) : null;
|
|
164
|
-
return (_jsxs("div", { className: cx("gd-drill-modal-wrapper-mask", dropDownAnchorClass), children: [children({ onDrill: drills.drill.run }), drillDownDropdown] }));
|
|
174
|
+
return (_jsxs("div", { className: cx("gd-drill-modal-wrapper-mask", dropDownAnchorClass), [DRILL_MENU_HOST_ATTRIBUTE]: "true", children: [children({ onDrill: drills.drill.run }), drillDownDropdown] }));
|
|
165
175
|
}
|
|
166
176
|
function getDrillDefinitionType(validDrillDefinitions) {
|
|
167
177
|
if (validDrillDefinitions.length === 1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultFilterBarContainer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBarContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,SAAS,EAOjB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultFilterBarContainer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/DefaultFilterBarContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,SAAS,EAOjB,MAAM,OAAO,CAAC;AAiff;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAQ/E"}
|