@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.
Files changed (218) hide show
  1. package/NOTICE +248 -49
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/_staging/automation/index.d.ts +2 -2
  5. package/esm/_staging/automation/index.d.ts.map +1 -1
  6. package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
  7. package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +4 -5
  8. package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts +4 -4
  9. package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts.map +1 -1
  10. package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts +3 -3
  11. package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
  12. package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +3 -0
  13. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts +2 -2
  14. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts.map +1 -1
  15. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.js +4 -3
  16. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts.map +1 -1
  17. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js +8 -1
  18. package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts.map +1 -1
  19. package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.js +12 -1
  20. package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.d.ts.map +1 -1
  21. package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.js +1 -10
  22. package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts +2 -2
  23. package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts.map +1 -1
  24. package/esm/model/store/_infra/unbatched.d.ts +6 -0
  25. package/esm/model/store/_infra/unbatched.d.ts.map +1 -0
  26. package/esm/model/store/_infra/unbatched.js +14 -0
  27. package/esm/model/store/catalog/catalogSelectors.d.ts +3 -3
  28. package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
  29. package/esm/model/store/catalog/catalogState.d.ts +2 -2
  30. package/esm/model/store/catalog/catalogState.d.ts.map +1 -1
  31. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +27 -15
  32. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
  33. package/esm/model/store/tabs/parameters/parametersHelpers.js +34 -0
  34. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +8 -7
  35. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
  36. package/esm/model/store/tabs/parameters/parametersSelectors.js +14 -16
  37. package/esm/model/types/commonTypes.d.ts +7 -0
  38. package/esm/model/types/commonTypes.d.ts.map +1 -1
  39. package/esm/presentation/automations/contexts/AutomationsContext.d.ts +2 -2
  40. package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
  41. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.d.ts.map +1 -1
  42. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.js +29 -6
  43. package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts +7 -7
  44. package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts.map +1 -1
  45. package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts +2 -2
  46. package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts.map +1 -1
  47. package/esm/presentation/dashboard/components/DashboardContentScrollContainer.d.ts +17 -0
  48. package/esm/presentation/dashboard/components/DashboardContentScrollContainer.d.ts.map +1 -0
  49. package/esm/presentation/dashboard/components/DashboardContentScrollContainer.js +97 -0
  50. package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
  51. package/esm/presentation/dashboard/components/DashboardInner.js +22 -5
  52. package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts +5 -1
  53. package/esm/presentation/dashboardContexts/ExportCsvDialogContext.d.ts.map +1 -1
  54. package/esm/presentation/dashboardContexts/ExportCsvDialogContext.js +5 -2
  55. package/esm/presentation/dashboardContexts/ExportTabularPdfDialogContext.d.ts +5 -1
  56. package/esm/presentation/dashboardContexts/ExportTabularPdfDialogContext.d.ts.map +1 -1
  57. package/esm/presentation/dashboardContexts/ExportTabularPdfDialogContext.js +5 -2
  58. package/esm/presentation/dashboardContexts/ExportTemplateDialogContext.d.ts +4 -0
  59. package/esm/presentation/dashboardContexts/ExportTemplateDialogContext.d.ts.map +1 -1
  60. package/esm/presentation/dashboardContexts/ExportXlsxDialogContext.d.ts +5 -1
  61. package/esm/presentation/dashboardContexts/ExportXlsxDialogContext.d.ts.map +1 -1
  62. package/esm/presentation/dashboardContexts/ExportXlsxDialogContext.js +6 -3
  63. package/esm/presentation/dialogs/ExportCsvDialogProvider.d.ts.map +1 -1
  64. package/esm/presentation/dialogs/ExportCsvDialogProvider.js +6 -5
  65. package/esm/presentation/dialogs/ExportTabularPdfDialogProvider.d.ts.map +1 -1
  66. package/esm/presentation/dialogs/ExportTabularPdfDialogProvider.js +3 -3
  67. package/esm/presentation/dialogs/ExportTemplateDialogProvider.d.ts.map +1 -1
  68. package/esm/presentation/dialogs/ExportTemplateDialogProvider.js +8 -7
  69. package/esm/presentation/dialogs/ExportXlsxDialogProvider.d.ts.map +1 -1
  70. package/esm/presentation/dialogs/ExportXlsxDialogProvider.js +3 -3
  71. package/esm/presentation/dragAndDrop/useDashboardDragScroll.d.ts +1 -1
  72. package/esm/presentation/dragAndDrop/useDashboardDragScroll.d.ts.map +1 -1
  73. package/esm/presentation/dragAndDrop/useDashboardDragScroll.js +72 -12
  74. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +12 -12
  75. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts +1 -1
  76. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts.map +1 -1
  77. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.js +2 -2
  78. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts +2 -2
  79. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts.map +1 -1
  80. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.js +2 -2
  81. package/esm/presentation/drill/DrillSelect/WithDrillSelect.d.ts.map +1 -1
  82. package/esm/presentation/drill/DrillSelect/WithDrillSelect.js +12 -2
  83. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
  84. package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +49 -11
  85. package/esm/presentation/filterBar/filterBar/ResetFiltersButton.d.ts +7 -0
  86. package/esm/presentation/filterBar/filterBar/ResetFiltersButton.d.ts.map +1 -1
  87. package/esm/presentation/filterBar/filterBar/ResetFiltersButton.js +10 -1
  88. package/esm/presentation/flexibleLayout/dragAndDrop/DragLayer.d.ts +10 -1
  89. package/esm/presentation/flexibleLayout/dragAndDrop/DragLayer.d.ts.map +1 -1
  90. package/esm/presentation/flexibleLayout/dragAndDrop/DragLayer.js +20 -8
  91. package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar.d.ts.map +1 -1
  92. package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar.js +5 -1
  93. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +1 -0
  94. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
  95. package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +1 -0
  96. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +1 -0
  97. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
  98. package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +1 -0
  99. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +1 -0
  100. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
  101. package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +1 -0
  102. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +8 -0
  103. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  104. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +8 -0
  105. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +1 -0
  106. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
  107. package/esm/presentation/localization/bundles/es-419.localization-bundle.js +1 -0
  108. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +1 -0
  109. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
  110. package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +1 -0
  111. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +1 -0
  112. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
  113. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +1 -0
  114. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +1 -0
  115. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
  116. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +1 -0
  117. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +1 -0
  118. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
  119. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +1 -0
  120. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +1 -0
  121. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
  122. package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +1 -0
  123. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +1 -0
  124. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
  125. package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +1 -0
  126. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +1 -0
  127. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
  128. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +1 -0
  129. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +1 -0
  130. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
  131. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +1 -0
  132. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +1 -0
  133. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
  134. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +1 -0
  135. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +1 -0
  136. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
  137. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +1 -0
  138. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +1 -0
  139. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
  140. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +1 -0
  141. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +1 -0
  142. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
  143. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +1 -0
  144. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +1 -0
  145. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
  146. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +1 -0
  147. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +1 -0
  148. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
  149. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +1 -0
  150. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +1 -0
  151. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
  152. package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +1 -0
  153. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +1 -0
  154. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
  155. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +1 -0
  156. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +1 -0
  157. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
  158. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +1 -0
  159. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +1 -0
  160. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
  161. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +1 -0
  162. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +1 -0
  163. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
  164. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +1 -0
  165. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +1 -0
  166. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
  167. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +1 -0
  168. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +1 -0
  169. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
  170. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +1 -0
  171. package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.d.ts +6 -2
  172. package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.d.ts.map +1 -1
  173. package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.js +28 -3
  174. package/esm/presentation/saveAs/DefaultSaveAsDialog/index.d.ts.map +1 -1
  175. package/esm/presentation/saveAs/DefaultSaveAsDialog/index.js +19 -5
  176. package/esm/presentation/saveAs/DefaultSaveAsDialog/useSaveAs.d.ts +1 -1
  177. package/esm/presentation/saveAs/DefaultSaveAsDialog/useSaveAs.d.ts.map +1 -1
  178. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
  179. package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +8 -3
  180. package/esm/presentation/topBar/menuButton/useExportWithTemplateSelection.d.ts +3 -1
  181. package/esm/presentation/topBar/menuButton/useExportWithTemplateSelection.d.ts.map +1 -1
  182. package/esm/presentation/topBar/menuButton/useExportWithTemplateSelection.js +4 -2
  183. package/esm/presentation/widget/common/useInsightExport.d.ts +4 -0
  184. package/esm/presentation/widget/common/useInsightExport.d.ts.map +1 -1
  185. package/esm/presentation/widget/common/useInsightExport.js +12 -8
  186. package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.d.ts.map +1 -1
  187. package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js +3 -1
  188. package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts +1 -1
  189. package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts.map +1 -1
  190. package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js +3 -3
  191. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.d.ts +4 -0
  192. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.d.ts.map +1 -1
  193. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.js +2 -2
  194. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.d.ts +5 -0
  195. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.d.ts.map +1 -1
  196. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js +4 -4
  197. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts.map +1 -1
  198. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js +17 -5
  199. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenuButton.d.ts.map +1 -1
  200. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenuButton.js +7 -2
  201. package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
  202. package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +3 -1
  203. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
  204. package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +3 -1
  205. package/esm/sdk-ui-dashboard.d.ts +13 -6
  206. package/package.json +24 -25
  207. package/styles/css/dashboard.css +40 -4
  208. package/styles/css/dashboard.css.map +1 -1
  209. package/styles/css/filterBar.css +6 -1
  210. package/styles/css/filterBar.css.map +1 -1
  211. package/styles/css/main.css +84 -9
  212. package/styles/css/main.css.map +1 -1
  213. package/styles/css/resizing.css +16 -0
  214. package/styles/css/resizing.css.map +1 -1
  215. package/styles/scss/_zIndexes.scss +3 -0
  216. package/styles/scss/dashboard.scss +50 -2
  217. package/styles/scss/filterBar.scss +6 -1
  218. 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;CACzB;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"}
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
- openDialog: (config?: ExportXlsxDialogConfig) => 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;
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;IACtD,WAAW,EAAE,MAAM,IAAI,CAAC;CAC3B;AASD;;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,2CAqBrF"}
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-2025 GoodData Corporation
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 openDialog = useCallback((config = {}) => {
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":"AAMA;;GAEG;AACH,wBAAgB,uBAAuB,mDAYtC"}
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
- closeDialog();
12
- dialogConfig.onSubmit(data);
13
- } })) : null;
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,mDAY7C"}
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":"AAMA;;GAEG;AACH,wBAAgB,4BAA4B,mDAoB3C"}
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
- closeDialog();
15
- dialogConfig.onConfirm(templateId);
16
- }, onCancel: () => {
17
- closeDialog();
18
- dialogConfig.onCancel?.();
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,mDAiBvC"}
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>): void;
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,EAAuB,MAAM,OAAO,CAAC;AAgC5D,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,QAkEpD"}
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 ((itemType && !SCROLLING_ITEM_TYPES.includes(itemType)) ||
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
- // we want to subscribe only once
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 && element.scrollHeight >= element.clientHeight) {
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 = (dashboardParameterIdentifiers) => {
134
- if (dashboardParameterIdentifiers.length === 0) {
133
+ const buildValidParametersFormattingRule = (widgetParameterIdentifiers) => {
134
+ if (widgetParameterIdentifiers.length === 0) {
135
135
  return undefined;
136
136
  }
137
- const validParameterPlaceholders = dashboardParameterIdentifiers
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, dashboardParameterIdentifiers, attributeFilterConfigs) => {
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(dashboardParameterIdentifiers);
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, dashboardParameterIdentifiers, }) {
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, dashboardParameterIdentifiers, attributeFilterConfigs), [
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
- dashboardParameterIdentifiers,
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 dashboardParameters = useDashboardSelector(selectWidgetParameterValues(widgetRef));
265
- const dashboardParameterIdentifiers = useMemo(() => dashboardParameters.map(({ identifier }) => identifier), [dashboardParameters]);
266
- const invalidFilteringParametersIdentifiers = useInvalidFilteringParametersIdentifiers(urlDrillTarget, insightFilters, dashboardFilters, dashboardMeasureValueFilters, enableInsightMeasureValueFilters ? insightMeasureValueFilters : undefined, enableInsightMeasureValueFilters, attributeFilterConfigs, dashboardParameterIdentifiers);
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, dashboardParameterIdentifiers: dashboardParameterIdentifiers, intl: intl }), _jsx(ParametersPanel, { insightFilters: insightFilters, dashboardFilters: dashboardFilters, dashboardMeasureValueFilters: dashboardMeasureValueFilters, insightMeasureValueFilters: insightMeasureValueFilters, attributeFilterConfigs: attributeFilterConfigs, dashboardParameters: dashboardParameters, attributeDisplayForms: attributeDisplayForms, loadingAttributeDisplayForms: loadingAttributeDisplayForms, enableClientIdParameter: enableClientIdParameter, enableDataProductIdParameter: enableDataProductIdParameter, enableWidgetIdParameter: enableWidgetIdParameter, onAdd: handleOnAdd, intl: intl, widgetRef: widgetRef })] }));
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, dashboardParameters, insightFilters, widgetRef, }: IParametersPanelProps): import("react/jsx-runtime").JSX.Element;
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
@@ -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,mBAAmB,EACnB,cAAc,EACd,SAAS,GACZ,EAAE,qBAAqB,2CA6CvB"}
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, dashboardParameters, 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, { dashboardParameters: dashboardParameters, onAdd: onAdd, intl: intl }), _jsx(IdentifierParametersSection, { enableClientIdParameter: enableClientIdParameter, enableDataProductIdParameter: enableDataProductIdParameter, enableWidgetIdParameter: enableWidgetIdParameter, onAdd: onAdd, intl: intl, widgetRef: widgetRef })] })] }));
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
- dashboardParameters: IWidgetParameterValue[];
4
+ widgetParameters: IWidgetParameterValue[];
5
5
  }
6
- export declare function ParameterParametersSection({ dashboardParameters, onAdd, intl, }: IParameterParametersSectionProps): import("react/jsx-runtime").JSX.Element | null;
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,mBAAmB,EAAE,qBAAqB,EAAE,CAAC;CAChD;AAOD,wBAAgB,0BAA0B,CAAC,EACvC,mBAAmB,EACnB,KAAK,EACL,IAAI,GACP,EAAE,gCAAgC,kDAqClC"}
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({ dashboardParameters, onAdd, intl, }) {
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" }) }), dashboardParameters.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" }) })) : (dashboardParameters.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))))] }));
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,EAA0C,MAAM,OAAO,CAAC;AAKlF,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,MAAM,EAQd,MAAM,qBAAqB,CAAC;AAgC7B,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,CAmNtC"}
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;AA2cf;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAQ/E"}
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"}