@gooddata/sdk-ui-dashboard 11.57.0-alpha.1 → 11.57.0-alpha.3

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 (237) hide show
  1. package/NOTICE +5 -5
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/_staging/dateFilterConfig/dateFilterConfigConverters.js +1 -1
  5. package/esm/_staging/dateFilterConfig/dateFilterOptionMapping.js +1 -1
  6. package/esm/_staging/dateFilterConfig/defaultConfig.js +1 -1
  7. package/esm/_staging/metadata/objRefMap.js +1 -1
  8. package/esm/index.d.ts +1 -1
  9. package/esm/index.d.ts.map +1 -1
  10. package/esm/index.js +1 -1
  11. package/esm/internal.js +1 -1
  12. package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
  13. package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +6 -5
  14. package/esm/model/commandHandlers/dashboard/saveDashboardHandler.d.ts +1 -1
  15. package/esm/model/commandHandlers/dashboard/saveDashboardHandler.d.ts.map +1 -1
  16. package/esm/model/commandHandlers/dashboard/saveDashboardHandler.js +64 -4
  17. package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.d.ts +2 -3
  18. package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.d.ts.map +1 -1
  19. package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.js +23 -17
  20. package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.d.ts.map +1 -1
  21. package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.js +2 -1
  22. package/esm/model/commandHandlers/filterContext/removeRestrictedFiltersHandler.d.ts +9 -0
  23. package/esm/model/commandHandlers/filterContext/removeRestrictedFiltersHandler.d.ts.map +1 -0
  24. package/esm/model/commandHandlers/filterContext/removeRestrictedFiltersHandler.js +39 -0
  25. package/esm/model/commandHandlers/index.d.ts.map +1 -1
  26. package/esm/model/commandHandlers/index.js +2 -0
  27. package/esm/model/commandHandlers/widgets/validation/insightDrillDefinitionUtils.d.ts.map +1 -1
  28. package/esm/model/commandHandlers/widgets/validation/insightDrillDefinitionUtils.js +5 -9
  29. package/esm/model/commands/base.d.ts +1 -1
  30. package/esm/model/commands/base.d.ts.map +1 -1
  31. package/esm/model/commands/filters.d.ts +20 -0
  32. package/esm/model/commands/filters.d.ts.map +1 -1
  33. package/esm/model/commands/filters.js +13 -0
  34. package/esm/model/commands/index.d.ts +2 -2
  35. package/esm/model/commands/index.d.ts.map +1 -1
  36. package/esm/model/store/filtering/dashboardFilterSelectors.d.ts +6 -0
  37. package/esm/model/store/filtering/dashboardFilterSelectors.d.ts.map +1 -1
  38. package/esm/model/store/filtering/dashboardFilterSelectors.js +11 -6
  39. package/esm/model/store/insights/insightsSelectors.d.ts +18 -0
  40. package/esm/model/store/insights/insightsSelectors.d.ts.map +1 -1
  41. package/esm/model/store/insights/insightsSelectors.js +51 -2
  42. package/esm/model/store/tabs/index.d.ts +12 -0
  43. package/esm/model/store/tabs/index.d.ts.map +1 -1
  44. package/esm/model/store/tabs/layout/layoutReducers.d.ts +36 -30
  45. package/esm/model/store/tabs/layout/layoutReducers.d.ts.map +1 -1
  46. package/esm/model/store/tabs/layout/layoutReducers.js +19 -0
  47. package/esm/model/store/tabs/layout/layoutSelectors.d.ts +17 -0
  48. package/esm/model/store/tabs/layout/layoutSelectors.d.ts.map +1 -1
  49. package/esm/model/store/tabs/layout/layoutSelectors.js +30 -1
  50. package/esm/model/store/ui/index.d.ts +3 -0
  51. package/esm/model/store/ui/index.d.ts.map +1 -1
  52. package/esm/model/store/ui/uiReducers.d.ts +3 -0
  53. package/esm/model/store/ui/uiReducers.d.ts.map +1 -1
  54. package/esm/model/store/ui/uiReducers.js +13 -0
  55. package/esm/model/store/ui/uiSelectors.d.ts +8 -0
  56. package/esm/model/store/ui/uiSelectors.d.ts.map +1 -1
  57. package/esm/model/store/ui/uiSelectors.js +8 -0
  58. package/esm/model/store/ui/uiState.d.ts +4 -0
  59. package/esm/model/store/ui/uiState.d.ts.map +1 -1
  60. package/esm/model/store/ui/uiState.js +4 -0
  61. package/esm/plugins/customizationApis/customizationLogging.js +2 -2
  62. package/esm/plugins/engine.js +1 -1
  63. package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.d.ts.map +1 -1
  64. package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.js +1 -1
  65. package/esm/presentation/automations/alerting/types.d.ts +23 -0
  66. package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
  67. package/esm/presentation/automations/alerting/types.js +7 -0
  68. package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts +13 -0
  69. package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts.map +1 -1
  70. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts +25 -0
  71. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts.map +1 -1
  72. package/esm/presentation/automations/contexts/AutomationsContext.d.ts +71 -0
  73. package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
  74. package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.d.ts +9 -0
  75. package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.d.ts.map +1 -1
  76. package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.d.ts +3 -2
  77. package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.d.ts.map +1 -1
  78. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts +3 -0
  79. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
  80. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +3 -0
  81. package/esm/presentation/automations/scheduledEmail/types.d.ts +15 -0
  82. package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
  83. package/esm/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.d.ts.map +1 -1
  84. package/esm/presentation/automations/shared/automationFilters/components/AutomationFiltersSelect.js +1 -1
  85. package/esm/presentation/automations/shared/dateFilterConfig/dateFilterConfigConverters.js +1 -1
  86. package/esm/presentation/automations/shared/dateFilterConfig/dateFilterOptionMapping.js +1 -1
  87. package/esm/presentation/automations/shared/dateFilterConfig/defaultConfig.js +1 -1
  88. package/esm/presentation/automations/shared/filters/index.js +1 -1
  89. package/esm/presentation/dashboard/DashboardHeader/DashboardHeader.d.ts.map +1 -1
  90. package/esm/presentation/dashboard/DashboardHeader/DashboardHeader.js +5 -1
  91. package/esm/presentation/dashboardSettingsDialog/DefaultDashboardSettingsDialog.d.ts.map +1 -1
  92. package/esm/presentation/dashboardSettingsDialog/DefaultDashboardSettingsDialog.js +4 -3
  93. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.d.ts.map +1 -1
  94. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +16 -23
  95. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/DashboardParametersSection.d.ts.map +1 -1
  96. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/DashboardParametersSection.js +3 -2
  97. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/DisplayFormParam.d.ts.map +1 -1
  98. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/DisplayFormParam.js +2 -1
  99. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/InsightParametersSection.d.ts.map +1 -1
  100. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/InsightParametersSection.js +2 -1
  101. package/esm/presentation/drill/utils/drillToCustomUrlUtils.d.ts.map +1 -1
  102. package/esm/presentation/drill/utils/drillToCustomUrlUtils.js +5 -3
  103. package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
  104. package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +5 -2
  105. package/esm/presentation/filterBar/filterBar/RestrictedFiltersPlaceholder.d.ts +3 -1
  106. package/esm/presentation/filterBar/filterBar/RestrictedFiltersPlaceholder.d.ts.map +1 -1
  107. package/esm/presentation/filterBar/filterBar/RestrictedFiltersPlaceholder.js +35 -4
  108. package/esm/presentation/insightNotSavedDialog/InsightNotSavedDialog.d.ts +5 -0
  109. package/esm/presentation/insightNotSavedDialog/InsightNotSavedDialog.d.ts.map +1 -0
  110. package/esm/presentation/insightNotSavedDialog/InsightNotSavedDialog.js +29 -0
  111. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +15 -0
  112. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
  113. package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +15 -0
  114. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +15 -0
  115. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
  116. package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +15 -0
  117. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +15 -0
  118. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
  119. package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +15 -0
  120. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +32 -0
  121. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  122. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +34 -2
  123. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +15 -0
  124. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
  125. package/esm/presentation/localization/bundles/es-419.localization-bundle.js +15 -0
  126. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +15 -0
  127. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
  128. package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +15 -0
  129. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +15 -0
  130. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
  131. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +15 -0
  132. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +15 -0
  133. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
  134. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +15 -0
  135. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +15 -0
  136. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
  137. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +15 -0
  138. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +15 -0
  139. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
  140. package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +15 -0
  141. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +15 -0
  142. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
  143. package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +15 -0
  144. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +15 -0
  145. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
  146. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +15 -0
  147. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +15 -0
  148. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
  149. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +15 -0
  150. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +15 -0
  151. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
  152. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +15 -0
  153. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +15 -0
  154. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
  155. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +15 -0
  156. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +15 -0
  157. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
  158. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +15 -0
  159. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +15 -0
  160. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
  161. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +15 -0
  162. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +15 -0
  163. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
  164. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +18 -3
  165. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +15 -0
  166. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
  167. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +15 -0
  168. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +15 -0
  169. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
  170. package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +15 -0
  171. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +15 -0
  172. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
  173. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +15 -0
  174. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +15 -0
  175. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
  176. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +15 -0
  177. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +15 -0
  178. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
  179. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +15 -0
  180. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +15 -0
  181. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
  182. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +108 -93
  183. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +15 -0
  184. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
  185. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +15 -0
  186. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +15 -0
  187. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
  188. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +15 -0
  189. package/esm/presentation/topBar/buttonBar/button/settingButton/DefaultSettingButton.d.ts.map +1 -1
  190. package/esm/presentation/topBar/buttonBar/button/settingButton/DefaultSettingButton.js +1 -1
  191. package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidAttributeDisplayFormIdentifier.d.ts.map +1 -1
  192. package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidAttributeDisplayFormIdentifier.js +7 -6
  193. package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts.map +1 -1
  194. package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js +16 -12
  195. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.d.ts +5 -0
  196. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.d.ts.map +1 -1
  197. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.js +12 -0
  198. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuContainer.d.ts +2 -0
  199. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuContainer.d.ts.map +1 -1
  200. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuContainer.js +1 -1
  201. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts +6 -1
  202. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts.map +1 -1
  203. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js +11 -6
  204. package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.d.ts +6 -0
  205. package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.d.ts.map +1 -1
  206. package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.js +4 -4
  207. package/esm/presentation/widget/widget/InsightWidget/EditableDashboardInsightWidget.d.ts.map +1 -1
  208. package/esm/presentation/widget/widget/InsightWidget/EditableDashboardInsightWidget.js +2 -1
  209. package/esm/presentation/widget/widget/InsightWidget/EditableRestrictedInsightWidget.d.ts +13 -0
  210. package/esm/presentation/widget/widget/InsightWidget/EditableRestrictedInsightWidget.d.ts.map +1 -0
  211. package/esm/presentation/widget/widget/InsightWidget/EditableRestrictedInsightWidget.js +32 -0
  212. package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.d.ts +1 -1
  213. package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.d.ts.map +1 -1
  214. package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.js +8 -2
  215. package/esm/presentation/widgetDeleteDialog/types.d.ts +5 -0
  216. package/esm/presentation/widgetDeleteDialog/types.d.ts.map +1 -1
  217. package/esm/sdk-ui-dashboard.d.ts +207 -4
  218. package/package.json +25 -24
  219. package/styles/css/alerting.css +2 -2
  220. package/styles/css/attributeFilterConfig.css +1 -1
  221. package/styles/css/dashboard.css +2 -2
  222. package/styles/css/dashboardNestedLayoutWidget.css +1 -1
  223. package/styles/css/dragAndDrop.css +2 -2
  224. package/styles/css/drillConfigPanel.css +4 -4
  225. package/styles/css/filterBar.css +15 -6
  226. package/styles/css/filterBar.css.map +1 -1
  227. package/styles/css/icons.css +2 -2
  228. package/styles/css/insightsNotSavedDialog.css +26 -0
  229. package/styles/css/insightsNotSavedDialog.css.map +1 -0
  230. package/styles/css/main.css +206 -173
  231. package/styles/css/main.css.map +1 -1
  232. package/styles/css/notifications_channels_dialog.css +2 -2
  233. package/styles/css/resizing.css +4 -4
  234. package/styles/css/visualizationSwitcherToolbar.css +4 -4
  235. package/styles/scss/filterBar.scss +14 -5
  236. package/styles/scss/insightsNotSavedDialog.scss +26 -0
  237. package/styles/scss/main.scss +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,QAAQ,EAGb,KAAK,cAAc,EAItB,MAAM,OAAO,CAAC;AAaf,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACH,KAAK,0BAA0B,EAE/B,KAAK,mBAAmB,EAE3B,MAAM,gBAAgB,CAAC;AA6HxB,wBAAgB,wBAAwB,CAAC,EACrC,KAAK,EACL,MAAM,EACN,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,GACb,EAAE,0BAA0B,GAAG;IAC5B,UAAU,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC,CAAC;IAClE,UAAU,EAAE,UAAU,CAAC;CAC1B,2CA6EA;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,0BAA0B,2CAcrE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,QAAQ,EAGb,KAAK,cAAc,EAItB,MAAM,OAAO,CAAC;AAef,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACH,KAAK,0BAA0B,EAE/B,KAAK,mBAAmB,EAE3B,MAAM,gBAAgB,CAAC;AA8HxB,wBAAgB,wBAAwB,CAAC,EACrC,KAAK,EACL,MAAM,EACN,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACV,SAAgB,GACnB,EAAE,0BAA0B,GAAG;IAC5B,UAAU,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC,CAAC;IAClE,UAAU,EAAE,UAAU,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,2CAwFA;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,0BAA0B,2CAcrE"}
@@ -1,12 +1,13 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  // (C) 2021-2026 GoodData Corporation
3
3
  import { useMemo, useRef, useState, } from "react";
4
+ import { useIntl } from "react-intl";
4
5
  import { objRefToString, widgetRef } from "@gooddata/sdk-model";
5
6
  import { UiFocusManager, UiMenu, getSelectedMenuId, } from "@gooddata/sdk-ui-kit";
6
7
  import { useDashboardSelector } from "../../../../../model/react/DashboardStoreProvider.js";
7
8
  import { selectRenderMode } from "../../../../../model/store/renderMode/renderModeSelectors.js";
8
9
  import { isIInsightMenuSubmenu, } from "../../types.js";
9
- import { CustomUiMenuContentComponent, CustomUiMenuContentItemComponent, CustomUiMenuHeaderComponent, CustomUiMenuInteractiveItemComponent, } from "./CustomUiMenuComponents.js";
10
+ import { CustomUiMenuContentComponent, CustomUiMenuContentItemComponent, CustomUiMenuHeaderComponent, CustomUiMenuHeaderComponentWithoutTitle, CustomUiMenuInteractiveItemComponent, } from "./CustomUiMenuComponents.js";
10
11
  import { DashboardInsightEditMenuBubble } from "./DashboardInsightEditMenuBubble.js";
11
12
  import { DashboardInsightMenuBubble } from "./DashboardInsightMenuBubble.js";
12
13
  import { DashboardInsightMenuContainer } from "./DashboardInsightMenuContainer.js";
@@ -83,7 +84,8 @@ const convertToUiMenuItems = (items, latestWidgetRef, submenuComponentCache) =>
83
84
  };
84
85
  });
85
86
  };
86
- export function DashboardInsightMenuBody({ items, widget, insight, onClose, renderMode, setSubmenu, }) {
87
+ export function DashboardInsightMenuBody({ items, widget, insight, onClose, renderMode, setSubmenu, showTitle = true, }) {
88
+ const intl = useIntl();
87
89
  const widgetRefAsString = objRefToString(widgetRef(widget));
88
90
  const latestWidgetRef = useRef(widget);
89
91
  latestWidgetRef.current = widget;
@@ -109,16 +111,19 @@ export function DashboardInsightMenuBody({ items, widget, insight, onClose, rend
109
111
  };
110
112
  const menuId = `insight-menu-${widgetRefAsString}`;
111
113
  const menuLabelId = `${menuId}-label`;
114
+ // without the title there is no element carrying menuLabelId, so the name goes on the menu itself
115
+ const menuLabel = showTitle
116
+ ? undefined
117
+ : intl.formatMessage({ id: "insightMenu.restrictedWidget.options" });
112
118
  const getMaxHeight = (context) => {
113
119
  if (getSelectedMenuId(context) === "Alerts") {
114
120
  return 500;
115
121
  }
116
122
  return 350;
117
123
  };
118
- return (_jsx(UiFocusManager, { enableAutofocus: { initialFocus: menuId }, enableFocusTrap: true, enableReturnFocusOnUnmount: true, children: _jsx(DashboardInsightMenuContainer, { ariaLabelledBy: menuLabelId, children: _jsx(UiMenu, { maxHeight: getMaxHeight, containerBottomPadding: "small", items: uiMenuItems, onClose: onClose, InteractiveItem: CustomUiMenuInteractiveItemComponent, ContentItem: CustomUiMenuContentItemComponent, Content: CustomUiMenuContentComponent, MenuHeader: CustomUiMenuHeaderComponent, shouldCloseOnSelect: true, ariaAttributes: {
119
- id: menuId,
120
- "aria-labelledby": menuLabelId,
121
- }, onSelect: handleSelect, onLevelChange: handleSubmenuOpen, menuCtxData: {
124
+ return (_jsx(UiFocusManager, { enableAutofocus: { initialFocus: menuId }, enableFocusTrap: true, enableReturnFocusOnUnmount: true, children: _jsx(DashboardInsightMenuContainer, { ariaLabelledBy: menuLabel ? undefined : menuLabelId, ariaLabel: menuLabel, children: _jsx(UiMenu, { maxHeight: getMaxHeight, containerBottomPadding: "small", items: uiMenuItems, onClose: onClose, InteractiveItem: CustomUiMenuInteractiveItemComponent, ContentItem: CustomUiMenuContentItemComponent, Content: CustomUiMenuContentComponent, MenuHeader: showTitle ? CustomUiMenuHeaderComponent : CustomUiMenuHeaderComponentWithoutTitle, shouldCloseOnSelect: true, ariaAttributes: menuLabel
125
+ ? { id: menuId, "aria-label": menuLabel }
126
+ : { id: menuId, "aria-labelledby": menuLabelId }, onSelect: handleSelect, onLevelChange: handleSubmenuOpen, menuCtxData: {
122
127
  widget,
123
128
  insight,
124
129
  renderMode,
@@ -2,6 +2,12 @@ import { type ComponentType } from "react";
2
2
  import { type IDefaultDashboardInsightWidgetProps } from "./types.js";
3
3
  interface IDashboardWidgetInsightGuardProps extends Omit<IDefaultDashboardInsightWidgetProps, "insight"> {
4
4
  Component: ComponentType<IDefaultDashboardInsightWidgetProps>;
5
+ /**
6
+ * What stands in for a widget the user is not allowed to see. Defaults to the placeholder tile,
7
+ * which is all a viewer can be offered; edit mode passes a rendering that keeps the selection and
8
+ * the remove entry.
9
+ */
10
+ RestrictedComponent?: ComponentType<Omit<IDefaultDashboardInsightWidgetProps, "insight">>;
5
11
  }
6
12
  export declare function DashboardWidgetInsightGuard(props: IDashboardWidgetInsightGuardProps): import("react/jsx-runtime").JSX.Element;
7
13
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardWidgetInsightGuard.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAQ3C,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAEtE,UAAU,iCAAkC,SAAQ,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC;IACpG,SAAS,EAAE,aAAa,CAAC,mCAAmC,CAAC,CAAC;CACjE;AAKD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,iCAAiC,2CAsBnF"}
1
+ {"version":3,"file":"DashboardWidgetInsightGuard.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAQ3C,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAEtE,UAAU,iCAAkC,SAAQ,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC;IACpG,SAAS,EAAE,aAAa,CAAC,mCAAmC,CAAC,CAAC;IAE9D;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC,CAAC,CAAC;CAC7F;AAKD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,iCAAiC,2CAwBnF"}
@@ -8,14 +8,14 @@ import { RestrictedPlaceholder } from "../../common/RestrictedPlaceholder.js";
8
8
  // Since the behavior is nearly impossible to replicate reliably, let's be defensive here and not render
9
9
  // anything until the insights "catch up".
10
10
  export function DashboardWidgetInsightGuard(props) {
11
- const { widget, screen, dashboardItemClasses, exportData, Component } = props;
11
+ const { widget, screen, dashboardItemClasses, exportData, Component, RestrictedComponent } = props;
12
12
  const insights = useDashboardSelector(selectInsightsMap);
13
13
  const isRestricted = useIsWidgetRestricted(widget);
14
14
  const { RestrictedPlaceholderComponentProvider } = useDashboardComponentsContext();
15
- // view, edit and export modes all reach the widget through this guard, so short-circuiting here is
16
- // what strips the config panel, menu and selection from a restricted widget in edit mode
15
+ // view, edit and export modes all reach the widget through this guard, so this is the single
16
+ // short-circuit that keeps a restricted insight from reaching the widget in any of them
17
17
  if (isRestricted) {
18
- return (_jsx(RestrictedPlaceholder, { screen: screen, dashboardItemClasses: dashboardItemClasses, exportData: exportData, Content: RestrictedPlaceholderComponentProvider(widget) }));
18
+ return RestrictedComponent ? (_jsx(RestrictedComponent, { ...props })) : (_jsx(RestrictedPlaceholder, { screen: screen, dashboardItemClasses: dashboardItemClasses, exportData: exportData, Content: RestrictedPlaceholderComponentProvider(widget) }));
19
19
  }
20
20
  const insight = insights.get(widget.insight);
21
21
  return _jsx(Component, { ...props, insight: insight });
@@ -1 +1 @@
1
- {"version":3,"file":"EditableDashboardInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/EditableDashboardInsightWidget.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAItE,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC,2CAEzG"}
1
+ {"version":3,"file":"EditableDashboardInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/EditableDashboardInsightWidget.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAItE,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC,2CAQzG"}
@@ -15,10 +15,11 @@ import { DashboardInsight } from "../../insight/DashboardInsight.js";
15
15
  import { InsightWidgetWarningPartialResult } from "../warningPartialResult/InsightWidgetWarningPartialResult.js";
16
16
  import { DashboardWidgetInsightGuard } from "./DashboardWidgetInsightGuard.js";
17
17
  import { EditableDashboardInsightWidgetHeader } from "./EditableDashboardInsightWidgetHeader.js";
18
+ import { EditableRestrictedInsightWidget } from "./EditableRestrictedInsightWidget.js";
18
19
  import { useEditableInsightMenu } from "./useEditableInsightMenu.js";
19
20
  import { useInsightWarning } from "./useInsightWarning.js";
20
21
  export function EditableDashboardInsightWidget(props) {
21
- return _jsx(DashboardWidgetInsightGuard, { ...props, Component: EditableDashboardInsightWidgetCore });
22
+ return (_jsx(DashboardWidgetInsightGuard, { ...props, Component: EditableDashboardInsightWidgetCore, RestrictedComponent: EditableRestrictedInsightWidget }));
22
23
  }
23
24
  /**
24
25
  * @internal
@@ -0,0 +1,13 @@
1
+ import { type IDefaultDashboardInsightWidgetProps } from "./types.js";
2
+ /**
3
+ * Stands in for an insight widget the editor is not allowed to see. It keeps the selection and the
4
+ * context menu of an ordinary widget, because the editor may still want the widget gone; the menu is
5
+ * built by the standard builder for a widget with no readable insight, which leaves removal alone.
6
+ *
7
+ * It renders the standard menu body — keyboard handling, focus management and item rendering come
8
+ * with it — with its title suppressed, because the widget title can name the object the editor may
9
+ * not see. It does not go through `InsightMenuComponentProvider`: a replacement menu would have no
10
+ * reason to honour that.
11
+ */
12
+ export declare function EditableRestrictedInsightWidget({ widget, screen, dashboardItemClasses, }: Omit<IDefaultDashboardInsightWidgetProps, "insight">): import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=EditableRestrictedInsightWidget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableRestrictedInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/EditableRestrictedInsightWidget.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAGtE;;;;;;;;;GASG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,MAAM,EACN,MAAM,EACN,oBAAoB,GACvB,EAAE,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC,2CAkDtD"}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // (C) 2026 GoodData Corporation
3
+ import cx from "classnames";
4
+ import { widgetRef } from "@gooddata/sdk-model";
5
+ import { useWidgetSelection } from "../../../../model/react/useWidgetSelection.js";
6
+ import { useDashboardComponentsContext } from "../../../dashboardContexts/DashboardComponentsContext.js";
7
+ import { DashboardItem } from "../../../presentationComponents/DashboardItems/DashboardItem.js";
8
+ import { DashboardItemVisualization } from "../../../presentationComponents/DashboardItems/DashboardItemVisualization.js";
9
+ import { DashboardInsightEditMenuBubble } from "../../insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightEditMenuBubble.js";
10
+ import { DashboardInsightMenuBody } from "../../insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js";
11
+ import { useEditableInsightMenu } from "./useEditableInsightMenu.js";
12
+ /**
13
+ * Stands in for an insight widget the editor is not allowed to see. It keeps the selection and the
14
+ * context menu of an ordinary widget, because the editor may still want the widget gone; the menu is
15
+ * built by the standard builder for a widget with no readable insight, which leaves removal alone.
16
+ *
17
+ * It renders the standard menu body — keyboard handling, focus management and item rendering come
18
+ * with it — with its title suppressed, because the widget title can name the object the editor may
19
+ * not see. It does not go through `InsightMenuComponentProvider`: a replacement menu would have no
20
+ * reason to honour that.
21
+ */
22
+ export function EditableRestrictedInsightWidget({ widget, screen, dashboardItemClasses, }) {
23
+ const { isSelectable, isSelected, onSelected, closeConfigPanel, hasConfigPanelOpen } = useWidgetSelection(widgetRef(widget));
24
+ const { RestrictedPlaceholderComponentProvider } = useDashboardComponentsContext();
25
+ const Content = RestrictedPlaceholderComponentProvider(widget);
26
+ const { menuItems } = useEditableInsightMenu({
27
+ closeMenu: closeConfigPanel,
28
+ insight: undefined,
29
+ widget,
30
+ });
31
+ return (_jsx(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget", "is-edit-mode", { "is-selected": isSelected }), screen: screen, children: _jsx(DashboardItemVisualization, { isSelectable: isSelectable, isSelected: isSelected, onSelected: onSelected, renderAfterContent: () => hasConfigPanelOpen ? (_jsx(DashboardInsightEditMenuBubble, { onClose: closeConfigPanel, children: _jsx(DashboardInsightMenuBody, { items: menuItems, widget: widget, isOpen: hasConfigPanelOpen, onClose: closeConfigPanel, renderMode: "edit", showTitle: false }) })) : null, children: ({ clientHeight, clientWidth }) => (_jsx("div", { className: "visualization-content", children: _jsx(Content, { width: clientWidth, height: clientHeight }) })) }) }));
32
+ }
@@ -7,5 +7,5 @@ export declare function useWidgetDeleteDialogProps(): IWidgetDeleteDialogProps;
7
7
  /**
8
8
  * @internal
9
9
  */
10
- export declare function DefaultWidgetDeleteDialog({ isVisible, showAlertsMessage, showSchedulesMessage, onDelete, onCancel, widget, }: IWidgetDeleteDialogProps): ReactElement | null;
10
+ export declare function DefaultWidgetDeleteDialog({ isVisible, showAlertsMessage, showSchedulesMessage, onDelete, onCancel, widget, isRestricted, }: IWidgetDeleteDialogProps): ReactElement | null;
11
11
  //# sourceMappingURL=DefaultWidgetDeleteDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultWidgetDeleteDialog.d.ts","sourceRoot":"","sources":["../../../src/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,OAAO,CAAC;AAqBvD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAuB3D;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,wBAAwB,CA8BrE;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EACtC,SAAS,EACT,iBAAiB,EACjB,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACR,MAAM,GACT,EAAE,wBAAwB,GAAG,YAAY,GAAG,IAAI,CAmChD"}
1
+ {"version":3,"file":"DefaultWidgetDeleteDialog.d.ts","sourceRoot":"","sources":["../../../src/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,OAAO,CAAC;AAsBvD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AA0B3D;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,wBAAwB,CAgCrE;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EACtC,SAAS,EACT,iBAAiB,EACjB,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,YAAoB,GACvB,EAAE,wBAAwB,GAAG,YAAY,GAAG,IAAI,CAuChD"}
@@ -6,6 +6,7 @@ import { FormattedMessage, defineMessages, useIntl } from "react-intl";
6
6
  import { ConfirmDialog } from "@gooddata/sdk-ui-kit";
7
7
  import { eagerRemoveSectionItemByWidgetRef } from "../../model/commands/layout.js";
8
8
  import { useDashboardDispatch, useDashboardSelector } from "../../model/react/DashboardStoreProvider.js";
9
+ import { useIsWidgetRestricted } from "../../model/react/useIsWidgetRestricted.js";
9
10
  import { dispatchAndWaitFor } from "../../model/store/_infra/dispatchAndWaitFor.js";
10
11
  import { selectDashboardUserAutomationAlertsInContext, selectDashboardUserAutomationSchedulesInContext, } from "../../model/store/automations/automationsSelectors.js";
11
12
  import { selectAnalyticalWidgetByRef } from "../../model/store/tabs/layout/layoutSelectors.js";
@@ -18,6 +19,9 @@ const deleteMessages = defineMessages({
18
19
  objects: {
19
20
  id: "deleteWidgetDialog.objectsMessage",
20
21
  },
22
+ objectsRestricted: {
23
+ id: "deleteWidgetDialog.objectsMessage.restricted",
24
+ },
21
25
  alerts: {
22
26
  id: "deleteWidgetDialog.alerts",
23
27
  },
@@ -47,6 +51,7 @@ export function useWidgetDeleteDialogProps() {
47
51
  }
48
52
  }, [dispatch, widget]);
49
53
  const isVisible = useDashboardSelector(selectIsWidgetDeleteDialogOpen);
54
+ const isRestricted = useIsWidgetRestricted(widget);
50
55
  const alerts = useDashboardSelector(selectDashboardUserAutomationAlertsInContext(widget?.localIdentifier));
51
56
  const schedules = useDashboardSelector(selectDashboardUserAutomationSchedulesInContext(widget?.localIdentifier));
52
57
  return {
@@ -56,12 +61,13 @@ export function useWidgetDeleteDialogProps() {
56
61
  onCancel,
57
62
  onDelete,
58
63
  widget,
64
+ isRestricted,
59
65
  };
60
66
  }
61
67
  /**
62
68
  * @internal
63
69
  */
64
- export function DefaultWidgetDeleteDialog({ isVisible, showAlertsMessage, showSchedulesMessage, onDelete, onCancel, widget, }) {
70
+ export function DefaultWidgetDeleteDialog({ isVisible, showAlertsMessage, showSchedulesMessage, onDelete, onCancel, widget, isRestricted = false, }) {
65
71
  const intl = useIntl();
66
72
  if (!isVisible || !widget) {
67
73
  return null;
@@ -71,5 +77,5 @@ export function DefaultWidgetDeleteDialog({ isVisible, showAlertsMessage, showSc
71
77
  showAlertsMessage && deleteMessages.alerts,
72
78
  showSchedulesMessage && deleteMessages.schedules,
73
79
  ]);
74
- return (_jsx(ConfirmDialog, { onCancel: onCancel, onSubmit: onDelete, isPositive: false, className: "s-dialog s-delete_widget_dialog", headline: intl.formatMessage(deleteMessages.headline), cancelButtonText: intl.formatMessage(deleteMessages.cancel), submitButtonText: intl.formatMessage(deleteMessages.delete), children: _jsxs("div", { children: [_jsx(FormattedMessage, { id: deleteMessages.objects.id, values: { title: widgetTitle } }), _jsx("ul", { className: "gd-delete-dialog-objects-list", children: messages.map((message) => (_jsx("li", { children: _jsx(FormattedMessage, { ...message }) }, message.id))) })] }) }));
80
+ return (_jsx(ConfirmDialog, { onCancel: onCancel, onSubmit: onDelete, isPositive: false, className: "s-dialog s-delete_widget_dialog", headline: intl.formatMessage(deleteMessages.headline), cancelButtonText: intl.formatMessage(deleteMessages.cancel), submitButtonText: intl.formatMessage(deleteMessages.delete), children: _jsxs("div", { children: [isRestricted ? (_jsx(FormattedMessage, { id: deleteMessages.objectsRestricted.id })) : (_jsx(FormattedMessage, { id: deleteMessages.objects.id, values: { title: widgetTitle } })), _jsx("ul", { className: "gd-delete-dialog-objects-list", children: messages.map((message) => (_jsx("li", { children: _jsx(FormattedMessage, { ...message }) }, message.id))) })] }) }));
75
81
  }
@@ -10,6 +10,11 @@ export interface IWidgetDeleteDialogProps {
10
10
  onDelete: () => void;
11
11
  onCancel: () => void;
12
12
  widget: IWidget | undefined;
13
+ /**
14
+ * Whether the widget renders something the current user is not allowed to see. Such a widget must
15
+ * not be named: its stored title can be the name of the object they have no access to.
16
+ */
17
+ isRestricted?: boolean;
13
18
  }
14
19
  /**
15
20
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/widgetDeleteDialog/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,aAAa,CAAC,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/widgetDeleteDialog/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAE5B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,aAAa,CAAC,wBAAwB,CAAC,CAAC"}