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

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 (175) 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/dashboard/saveDashboardHandler.js +1 -1
  13. package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.d.ts.map +1 -1
  14. package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.js +2 -1
  15. package/esm/model/commandHandlers/filterContext/removeRestrictedFiltersHandler.d.ts +9 -0
  16. package/esm/model/commandHandlers/filterContext/removeRestrictedFiltersHandler.d.ts.map +1 -0
  17. package/esm/model/commandHandlers/filterContext/removeRestrictedFiltersHandler.js +39 -0
  18. package/esm/model/commandHandlers/index.d.ts.map +1 -1
  19. package/esm/model/commandHandlers/index.js +2 -0
  20. package/esm/model/commands/base.d.ts +1 -1
  21. package/esm/model/commands/base.d.ts.map +1 -1
  22. package/esm/model/commands/filters.d.ts +20 -0
  23. package/esm/model/commands/filters.d.ts.map +1 -1
  24. package/esm/model/commands/filters.js +13 -0
  25. package/esm/model/commands/index.d.ts +2 -2
  26. package/esm/model/commands/index.d.ts.map +1 -1
  27. package/esm/model/store/filtering/dashboardFilterSelectors.d.ts +6 -0
  28. package/esm/model/store/filtering/dashboardFilterSelectors.d.ts.map +1 -1
  29. package/esm/model/store/filtering/dashboardFilterSelectors.js +11 -6
  30. package/esm/plugins/customizationApis/customizationLogging.js +2 -2
  31. package/esm/plugins/engine.js +1 -1
  32. package/esm/presentation/automations/alerting/types.d.ts +23 -0
  33. package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
  34. package/esm/presentation/automations/alerting/types.js +7 -0
  35. package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts +13 -0
  36. package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts.map +1 -1
  37. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts +25 -0
  38. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts.map +1 -1
  39. package/esm/presentation/automations/contexts/AutomationsContext.d.ts +71 -0
  40. package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
  41. package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.d.ts +9 -0
  42. package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.d.ts.map +1 -1
  43. package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.d.ts +3 -2
  44. package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.d.ts.map +1 -1
  45. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts +3 -0
  46. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
  47. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +3 -0
  48. package/esm/presentation/automations/scheduledEmail/types.d.ts +15 -0
  49. package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
  50. package/esm/presentation/automations/shared/dateFilterConfig/dateFilterConfigConverters.js +1 -1
  51. package/esm/presentation/automations/shared/dateFilterConfig/dateFilterOptionMapping.js +1 -1
  52. package/esm/presentation/automations/shared/dateFilterConfig/defaultConfig.js +1 -1
  53. package/esm/presentation/automations/shared/filters/index.js +1 -1
  54. package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
  55. package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +5 -2
  56. package/esm/presentation/filterBar/filterBar/RestrictedFiltersPlaceholder.d.ts +3 -1
  57. package/esm/presentation/filterBar/filterBar/RestrictedFiltersPlaceholder.d.ts.map +1 -1
  58. package/esm/presentation/filterBar/filterBar/RestrictedFiltersPlaceholder.js +35 -4
  59. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +14 -0
  60. package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
  61. package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +14 -0
  62. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +14 -0
  63. package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
  64. package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +14 -0
  65. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +14 -0
  66. package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
  67. package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +14 -0
  68. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +12 -0
  69. package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  70. package/esm/presentation/localization/bundles/en-US.localization-bundle.js +12 -0
  71. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +14 -0
  72. package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
  73. package/esm/presentation/localization/bundles/es-419.localization-bundle.js +14 -0
  74. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +14 -0
  75. package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
  76. package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +14 -0
  77. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +14 -0
  78. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
  79. package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +14 -0
  80. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +14 -0
  81. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
  82. package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +14 -0
  83. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +14 -0
  84. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
  85. package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +14 -0
  86. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +14 -0
  87. package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
  88. package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +14 -0
  89. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +14 -0
  90. package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
  91. package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +14 -0
  92. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +14 -0
  93. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
  94. package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +14 -0
  95. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +14 -0
  96. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
  97. package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +14 -0
  98. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +14 -0
  99. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
  100. package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +14 -0
  101. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +14 -0
  102. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
  103. package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +14 -0
  104. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +14 -0
  105. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
  106. package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +14 -0
  107. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +14 -0
  108. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
  109. package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +14 -0
  110. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +14 -0
  111. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
  112. package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +16 -2
  113. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +14 -0
  114. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
  115. package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +14 -0
  116. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +14 -0
  117. package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
  118. package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +14 -0
  119. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +14 -0
  120. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
  121. package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +14 -0
  122. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +14 -0
  123. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
  124. package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +14 -0
  125. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +14 -0
  126. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
  127. package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +14 -0
  128. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +14 -0
  129. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
  130. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +107 -93
  131. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +14 -0
  132. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
  133. package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +14 -0
  134. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +14 -0
  135. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
  136. package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +14 -0
  137. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.d.ts +5 -0
  138. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.d.ts.map +1 -1
  139. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/CustomUiMenuComponents.js +12 -0
  140. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuContainer.d.ts +2 -0
  141. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuContainer.d.ts.map +1 -1
  142. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuContainer.js +1 -1
  143. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts +6 -1
  144. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts.map +1 -1
  145. package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js +11 -6
  146. package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.d.ts +6 -0
  147. package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.d.ts.map +1 -1
  148. package/esm/presentation/widget/widget/InsightWidget/DashboardWidgetInsightGuard.js +4 -4
  149. package/esm/presentation/widget/widget/InsightWidget/EditableDashboardInsightWidget.d.ts.map +1 -1
  150. package/esm/presentation/widget/widget/InsightWidget/EditableDashboardInsightWidget.js +2 -1
  151. package/esm/presentation/widget/widget/InsightWidget/EditableRestrictedInsightWidget.d.ts +13 -0
  152. package/esm/presentation/widget/widget/InsightWidget/EditableRestrictedInsightWidget.d.ts.map +1 -0
  153. package/esm/presentation/widget/widget/InsightWidget/EditableRestrictedInsightWidget.js +32 -0
  154. package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.d.ts +1 -1
  155. package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.d.ts.map +1 -1
  156. package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.js +8 -2
  157. package/esm/presentation/widgetDeleteDialog/types.d.ts +5 -0
  158. package/esm/presentation/widgetDeleteDialog/types.d.ts.map +1 -1
  159. package/esm/sdk-ui-dashboard.d.ts +188 -4
  160. package/package.json +24 -23
  161. package/styles/css/alerting.css +2 -2
  162. package/styles/css/attributeFilterConfig.css +1 -1
  163. package/styles/css/dashboard.css +2 -2
  164. package/styles/css/dashboardNestedLayoutWidget.css +1 -1
  165. package/styles/css/dragAndDrop.css +2 -2
  166. package/styles/css/drillConfigPanel.css +4 -4
  167. package/styles/css/filterBar.css +15 -6
  168. package/styles/css/filterBar.css.map +1 -1
  169. package/styles/css/icons.css +2 -2
  170. package/styles/css/main.css +180 -171
  171. package/styles/css/main.css.map +1 -1
  172. package/styles/css/notifications_channels_dialog.css +2 -2
  173. package/styles/css/resizing.css +4 -4
  174. package/styles/css/visualizationSwitcherToolbar.css +4 -4
  175. package/styles/scss/filterBar.scss +14 -5
@@ -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"}
@@ -962,7 +962,14 @@ export declare type AlertMetricComparator = {
962
962
  * @beta
963
963
  */
964
964
  export declare enum AlertMetricComparatorType {
965
+ /**
966
+ * Compares against the immediately preceding period at the alert's selected granularity
967
+ * (e.g. previous week, previous month).
968
+ */
965
969
  PreviousPeriod = 0,
970
+ /**
971
+ * Compares against the same period one year earlier.
972
+ */
966
973
  SamePeriodPreviousYear = 1
967
974
  }
968
975
 
@@ -2280,6 +2287,9 @@ export declare function createScheduledEmail(scheduledEmail: IAutomationMetadata
2280
2287
  export declare function crossFiltering(insight: IInsight, drillDefinition: ICrossFiltering_2, drillEvent: IDashboardDrillEvent, correlationId?: string): ICrossFiltering;
2281
2288
 
2282
2289
  /**
2290
+ * Type of a replacement for the alerting create/edit dialog — the shape expected by the
2291
+ * `AlertingDialogComponent` dashboard prop.
2292
+ *
2283
2293
  * @beta
2284
2294
  */
2285
2295
  export declare type CustomAlertingDialogComponent = ComponentType<IAlertingDialogProps>;
@@ -2321,6 +2331,9 @@ export declare type CustomAlertingDialogContextDecoratorComponent = ComponentTyp
2321
2331
  }>;
2322
2332
 
2323
2333
  /**
2334
+ * Type of a replacement for the alerting management dialog — the shape expected by the
2335
+ * `AlertingManagementDialogComponent` dashboard prop.
2336
+ *
2324
2337
  * @beta
2325
2338
  */
2326
2339
  export declare type CustomAlertingManagementDialogComponent = ComponentType<IAlertingManagementDialogProps>;
@@ -2642,6 +2655,9 @@ export declare type CustomSaveAsNewButtonComponent = ComponentType<ISaveAsNewBut
2642
2655
  export declare type CustomSaveButtonComponent = ComponentType<ISaveButtonProps>;
2643
2656
 
2644
2657
  /**
2658
+ * Type of a replacement for the scheduled-email create/edit dialog — the shape expected by the
2659
+ * `ScheduledEmailDialogComponent` dashboard prop.
2660
+ *
2645
2661
  * @beta
2646
2662
  */
2647
2663
  export declare type CustomScheduledEmailDialogComponent = ComponentType<IScheduledEmailDialogProps>;
@@ -2688,6 +2704,9 @@ export declare type CustomScheduledEmailDialogContextDecoratorComponent = Compon
2688
2704
  }>;
2689
2705
 
2690
2706
  /**
2707
+ * Type of a replacement for the scheduled-email management dialog — the shape expected by the
2708
+ * `ScheduledEmailManagementDialogComponent` dashboard prop.
2709
+ *
2691
2710
  * @beta
2692
2711
  */
2693
2712
  export declare type CustomScheduledEmailManagementDialogComponent = ComponentType<IScheduledEmailManagementDialogProps>;
@@ -2943,7 +2962,7 @@ export { dashboardAttributeFilterToAttributeFilter }
2943
2962
  *
2944
2963
  * @public
2945
2964
  */
2946
- export declare type DashboardCommands = InitializeDashboard | SaveDashboardAs | RequestAsyncRender | ResolveAsyncRender | ChangeFilterContextSelection | ChangeDateFilterSelection | ChangeAttributeFilterSelection | ReplaceAttributeFilterItemSelection | IChangeRenderMode | IChangeDashboardDensity | IRequestOpenDensityDialog | IChangeDashboardTimezoneOverride | ISaveDashboard | IRenameDashboard | IResetDashboard | IExportDashboardToPdf | IExportDashboardToExcel | IExportDashboardToPdfPresentation | IExportDashboardToPptPresentation | IDeleteDashboard | ITriggerEvent | IUpsertExecutionResult | IAddAttributeFilter | IAddTextAttributeFilter | IRemoveAttributeFilters | IMoveAttributeFilter | ISetAttributeFilterParents | ISetAttributeFilterDependentDateFilters | IAddLayoutSection | IMoveLayoutSection | IRemoveLayoutSection | ChangeLayoutSectionHeader | IResizeHeight | IResizeWidth | IAddSectionItems | IReplaceSectionItem | IMoveSectionItem | IMoveSectionItemToNewSection | IRemoveSectionItem | IRemoveSectionItemByWidgetRef | IUndoLayoutChanges | IChangeKpiWidgetHeader | IChangeKpiWidgetDescription | IChangeKpiWidgetConfiguration | IChangeKpiWidgetMeasure | IChangeKpiWidgetFilterSettings | IChangeKpiWidgetComparison | IRefreshKpiWidget | ISetDrillForKpiWidget | IRemoveDrillForKpiWidget | IChangeInsightWidgetHeader | IChangeInsightWidgetDescription | IChangeInsightWidgetIgnoreCrossFiltering | IChangeInsightWidgetFilterSettings | IChangeInsightWidgetVisProperties | ChangeInsightWidgetVisConfiguration | IChangeInsightWidgetInsight | IModifyDrillsForInsightWidget | IRemoveDrillsForInsightWidget | IRefreshInsightWidget | IExportInsightWidget | ICreateAlert | ISaveAlert | ICreateScheduledEmail | ISaveScheduledEmail | IChangeSharing | ISetAttributeFilterDisplayForm | ISetAttributeFilterTitle | ISetMeasureValueFilterTitle | ISetMeasureValueFilterDimensionality | ISetAttributeFilterSelectionMode | IChangeRichTextWidgetContent | IChangeRichTextWidgetFilterSettings | IAddVisualizationToVisualizationSwitcherWidgetContent | IUpdateVisualizationsFromVisualizationSwitcherWidgetContent | IChangeVisualizationSwitcherActiveVisualization | IDrill | IDrillDown | IDrillToAttributeUrl | IDrillToCustomUrl | IDrillToDashboard | IDrillToInsight | IDrillToLegacyDashboard | IChangeDrillableItems | IAddDrillTargets | ISetDashboardDateFilterConfigMode | ISetDashboardAttributeFilterConfigMode | ISetDashboardMeasureValueFilterConfigMode | ISetDashboardAttributeFilterSelectionType | ISetDashboardAttributeFilterConfigDisplayAsLabel | IRemoveDrillDownForInsightWidget | IRemoveDrillToUrlForInsightWidget | IAddDrillDownForInsightWidget | IModifyDrillDownForInsightWidget | ICrossFiltering | IKeyDriverAnalysis | IAttributeHierarchyModified | IAddDateFilter | IAddMeasureValueFilter | IRemoveMeasureValueFilters | IRemoveDateFilters | IMoveDateFilter | IChangeMeasureValueFilterCondition | IMoveMeasureValueFilter | ISetDashboardDateFilterWithDimensionConfigMode | ISetDateFilterConfigTitle | IInitializeAutomations | IRefreshAutomations | ISetAttributeFilterLimitingItems | ISaveFilterView | IDeleteFilterView | IApplyFilterView | ISetFilterViewAsDefault | IReloadFilterViews | IToggleLayoutSectionHeaders | IToggleLayoutDirection | IApplyFilterContextWorkingSelection | IResetFilterContextWorkingSelection | IChangeIgnoreExecutionTimestamp | ISwitchDashboardTab | ICreateDashboardTab | IRepositionDashboardTab | IDeleteDashboardTab | IStartRenamingDashboardTab | ICancelRenamingDashboardTab | IRenameDashboardTab | ISetScreenSize | IExportRawInsightWidget | IExportSlidesInsightWidget | IExportImageInsightWidget | ISetShowWidgetAsTable | IChangeParameterValues;
2965
+ export declare type DashboardCommands = InitializeDashboard | SaveDashboardAs | RequestAsyncRender | ResolveAsyncRender | ChangeFilterContextSelection | ChangeDateFilterSelection | ChangeAttributeFilterSelection | ReplaceAttributeFilterItemSelection | IChangeRenderMode | IChangeDashboardDensity | IRequestOpenDensityDialog | IChangeDashboardTimezoneOverride | ISaveDashboard | IRenameDashboard | IResetDashboard | IExportDashboardToPdf | IExportDashboardToExcel | IExportDashboardToPdfPresentation | IExportDashboardToPptPresentation | IDeleteDashboard | ITriggerEvent | IUpsertExecutionResult | IAddAttributeFilter | IAddTextAttributeFilter | IRemoveAttributeFilters | IMoveAttributeFilter | ISetAttributeFilterParents | ISetAttributeFilterDependentDateFilters | IAddLayoutSection | IMoveLayoutSection | IRemoveLayoutSection | ChangeLayoutSectionHeader | IResizeHeight | IResizeWidth | IAddSectionItems | IReplaceSectionItem | IMoveSectionItem | IMoveSectionItemToNewSection | IRemoveSectionItem | IRemoveSectionItemByWidgetRef | IUndoLayoutChanges | IChangeKpiWidgetHeader | IChangeKpiWidgetDescription | IChangeKpiWidgetConfiguration | IChangeKpiWidgetMeasure | IChangeKpiWidgetFilterSettings | IChangeKpiWidgetComparison | IRefreshKpiWidget | ISetDrillForKpiWidget | IRemoveDrillForKpiWidget | IChangeInsightWidgetHeader | IChangeInsightWidgetDescription | IChangeInsightWidgetIgnoreCrossFiltering | IChangeInsightWidgetFilterSettings | IChangeInsightWidgetVisProperties | ChangeInsightWidgetVisConfiguration | IChangeInsightWidgetInsight | IModifyDrillsForInsightWidget | IRemoveDrillsForInsightWidget | IRefreshInsightWidget | IExportInsightWidget | ICreateAlert | ISaveAlert | ICreateScheduledEmail | ISaveScheduledEmail | IChangeSharing | ISetAttributeFilterDisplayForm | ISetAttributeFilterTitle | ISetMeasureValueFilterTitle | ISetMeasureValueFilterDimensionality | ISetAttributeFilterSelectionMode | IChangeRichTextWidgetContent | IChangeRichTextWidgetFilterSettings | IAddVisualizationToVisualizationSwitcherWidgetContent | IUpdateVisualizationsFromVisualizationSwitcherWidgetContent | IChangeVisualizationSwitcherActiveVisualization | IDrill | IDrillDown | IDrillToAttributeUrl | IDrillToCustomUrl | IDrillToDashboard | IDrillToInsight | IDrillToLegacyDashboard | IChangeDrillableItems | IAddDrillTargets | ISetDashboardDateFilterConfigMode | ISetDashboardAttributeFilterConfigMode | ISetDashboardMeasureValueFilterConfigMode | ISetDashboardAttributeFilterSelectionType | ISetDashboardAttributeFilterConfigDisplayAsLabel | IRemoveDrillDownForInsightWidget | IRemoveDrillToUrlForInsightWidget | IAddDrillDownForInsightWidget | IModifyDrillDownForInsightWidget | ICrossFiltering | IKeyDriverAnalysis | IAttributeHierarchyModified | IAddDateFilter | IAddMeasureValueFilter | IRemoveMeasureValueFilters | IRemoveRestrictedFilters | IRemoveDateFilters | IMoveDateFilter | IChangeMeasureValueFilterCondition | IMoveMeasureValueFilter | ISetDashboardDateFilterWithDimensionConfigMode | ISetDateFilterConfigTitle | IInitializeAutomations | IRefreshAutomations | ISetAttributeFilterLimitingItems | ISaveFilterView | IDeleteFilterView | IApplyFilterView | ISetFilterViewAsDefault | IReloadFilterViews | IToggleLayoutSectionHeaders | IToggleLayoutDirection | IApplyFilterContextWorkingSelection | IResetFilterContextWorkingSelection | IChangeIgnoreExecutionTimestamp | ISwitchDashboardTab | ICreateDashboardTab | IRepositionDashboardTab | IDeleteDashboardTab | IStartRenamingDashboardTab | ICancelRenamingDashboardTab | IRenameDashboardTab | ISetScreenSize | IExportRawInsightWidget | IExportSlidesInsightWidget | IExportImageInsightWidget | ISetShowWidgetAsTable | IChangeParameterValues;
2947
2966
 
2948
2967
  /**
2949
2968
  * All available command types.
@@ -2956,7 +2975,7 @@ export declare type DashboardCommands = InitializeDashboard | SaveDashboardAs |
2956
2975
  *
2957
2976
  * @public
2958
2977
  */
2959
- export declare type DashboardCommandType = "GDC.DASH/CMD.INITIALIZE" | "GDC.DASH/CMD.SAVE" | "GDC.DASH/CMD.SAVEAS" | "GDC.DASH/CMD.RESET" | "GDC.DASH/CMD.RENAME" | "GDC.DASH/CMD.DELETE" | "GDC.DASH/CMD.CHANGE_RENDER_MODE" | "GDC.DASH/CMD.SHARING.CHANGE" | "GDC.DASH/CMD.EXPORT.PDF" | "GDC.DASH/CMD.EXPORT.EXCEL" | "GDC.DASH/CMD.EXPORT.PDF_PRESENTATION" | "GDC.DASH/CMD.EXPORT.PPT_PRESENTATION" | "GDC.DASH/CMD.EVENT.TRIGGER" | "GDC.DASH/CMD.EXECUTION_RESULT.UPSERT" | "GDC.DASH/CMD.FILTER_CONTEXT.CHANGE_SELECTION" | "GDC.DASH/CMD.FILTER_CONTEXT.DATE_FILTER.CHANGE_SELECTION" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.ADD" | "GDC.DASH/CMD.FILTER_CONTEXT.TEXT_ATTRIBUTE_FILTER.ADD" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.REMOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.MOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.CHANGE_SELECTION" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER_ITEM.REPLACE_SELECTION" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.SET_PARENTS" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.SET_DISPLAY_FORM" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.SET_TITLE" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.SET_SELECTION_MODE" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.SET_DEPENDENT_DATE_FILTERS" | "GDC.DASH/CMD.FILTER_CONTEXT.DATE_FILTER.ADD" | "GDC.DASH/CMD.FILTER_CONTEXT.DATE_FILTER.REMOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.DATE_FILTER.MOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.ADD" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.REMOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.MOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.CHANGE_CONDITION" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.SET_DIMENSIONALITY" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.SET_TITLE" | "GDC.DASH/CMD.ATTRIBUTE_FILTER_CONFIG.SET_MODE" | "GDC.DASH/CMD.MEASURE_VALUE_FILTER_CONFIG.SET_MODE" | "GDC.DASH/CMD.ATTRIBUTE_FILTER_CONFIG.SET_AVAILABLE_MODE" | "GDC.DASH/CMD.ATTRIBUTE_FILTER_CONFIG.SET_LIMITING_ITEMS" | "GDC.DASH/CMD.ATTRIBUTE_FILTER_CONFIG.SET_DISPLAY_AS_LABEL" | "GDC.DASH/CMD.DATE_FILTER_CONFIG.SET_MODE" | "GDC.DASH/CMD.DATE_FILTER_WITH_DIMENSION_CONFIG.SET_MODE" | "GDC.DASH/CMD.DATE_FILTER_CONFIG.SET_TITLE" | "GDC.DASH/CMD.FLUID_LAYOUT.ADD_SECTION" | "GDC.DASH/CMD.FLUID_LAYOUT.MOVE_SECTION" | "GDC.DASH/CMD.FLUID_LAYOUT.MOVE_ITEM_TO_NEW_SECTION" | "GDC.DASH/CMD.FLUID_LAYOUT.REMOVE_SECTION" | "GDC.DASH/CMD.FLUID_LAYOUT.CHANGE_SECTION_HEADER" | "GDC.DASH/CMD.FLUID_LAYOUT.ADD_ITEMS" | "GDC.DASH/CMD.FLUID_LAYOUT.REPLACE_ITEM" | "GDC.DASH/CMD.FLUID_LAYOUT.MOVE_ITEM" | "GDC.DASH/CMD.FLUID_LAYOUT.REMOVE_ITEM" | "GDC.DASH/CMD.FLUID_LAYOUT.REMOVE_ITEM_BY_WIDGET_REF" | "GDC.DASH/CMD.FLUID_LAYOUT.UNDO" | "GDC.DASH/CMD.FLUID_LAYOUT.RESIZE_HEIGHT" | "GDC.DASH/CMD.FLUID_LAYOUT.RESIZE_WIDTH" | "GDC.DASH/CMD.FLUID_LAYOUT.SET_SCREEN_SIZE" | "GDC.DASH/CMD.FLEXIBLE_LAYOUT.TOGGLE_LAYOUT_SECTION_HEADERS" | "GDC.DASH/CMD.FLEXIBLE_LAYOUT.TOGGLE_LAYOUT_DIRECTION" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_HEADER" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_MEASURE" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_FILTER_SETTINGS" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_COMPARISON" | "GDC.DASH/CMD.KPI_WIDGET.REFRESH" | "GDC.DASH/CMD.KPI_WIDGET.SET_DRILL" | "GDC.DASH/CMD.KPI_WIDGET.REMOVE_DRILL" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_DESCRIPTION" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_CONFIGURATION" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_HEADER" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_DESCRIPTION" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_FILTER_SETTINGS" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_PROPERTIES" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_CONFIGURATION" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_INSIGHT" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_IGNORE_CROSS_FILTERING" | "GDC.DASH/CMD.INSIGHT_WIDGET.EXPORT" | "GDC.DASH/CMD.INSIGHT_WIDGET.MODIFY_DRILLS" | "GDC.DASH/CMD.INSIGHT_WIDGET.REMOVE_DRILLS" | "GDC.DASH/CMD.INSIGHT_WIDGET.REMOVE_DRILL_DOWN" | "GDC.DASH/CMD.INSIGHT_WIDGET.REMOVE_DRILL_TO_URL" | "GDC.DASH/CMD.INSIGHT_WIDGET.ADD_DRILL_DOWN" | "GDC.DASH/CMD.INSIGHT_WIDGET.MODIFY_DRILL_DOWN" | "GDC.DASH/CMD.INSIGHT_WIDGET.REFRESH" | "GDC.DASH/CMD.RICH_TEXT_WIDGET.CHANGE_CONTENT" | "GDC.DASH/CMD.RICH_TEXT_WIDGET.CHANGE_FILTER_SETTINGS" | "GDC.DASH/CMD.VISUALIZATION_SWITCHER_WIDGET.ADD_VISUALIZATION" | "GDC.DASH/CMD.VISUALIZATION_SWITCHER_WIDGET.UPDATE_VISUALIZATIONS" | "GDC.DASH/CMD.VISUALIZATION_SWITCHER_WIDGET.CHANGE_ACTIVE_VISUALIZATION" | "GDC.DASH/CMD.ALERT.CREATE" | "GDC.DASH/CMD.ALERT.SAVE" | "GDC.DASH/CMD.SCHEDULED_EMAIL.CREATE" | "GDC.DASH/CMD.SCHEDULED_EMAIL.SAVE" | "GDC.DASH/CMD.DRILL" | "GDC.DASH/CMD.DRILL.DRILL_DOWN" | "GDC.DASH/CMD.DRILL.DRILL_TO_INSIGHT" | "GDC.DASH/CMD.DRILL.DRILL_TO_DASHBOARD" | "GDC.DASH/CMD.DRILL.DRILL_TO_ATTRIBUTE_URL" | "GDC.DASH/CMD.DRILL.DRILL_TO_CUSTOM_URL" | "GDC.DASH/CMD.DRILL.DRILL_TO_LEGACY_DASHBOARD" | "GDC.DASH/CMD.DRILL.DRILLABLE_ITEMS.CHANGE" | "GDC.DASH/CMD.DRILL.CROSS_FILTERING" | "GDC.DASH/CMD.DRILL.KEY_DRIVER_ANALYSIS" | "GDC.DASH/CMD.DRILL_TARGETS.ADD" | "GDC.DASH/CMD.RENDER.ASYNC.REQUEST" | "GDC.DASH/CMD.RENDER.ASYNC.RESOLVE" | "GDC.DASH/CMD.ATTRIBUTE_HIERARCHY_MODIFIED" | "GDC.DASH/CMD.AUTOMATIONS.INITIALIZE" | "GDC.DASH/CMD.AUTOMATIONS.REFRESH" | "GDC.DASH/CMD.FILTER_CONTEXT.FILTER_VIEW.SAVE" | "GDC.DASH/CMD.FILTER_CONTEXT.FILTER_VIEW.DELETE" | "GDC.DASH/CMD.FILTER_CONTEXT.FILTER_VIEW.APPLY" | "GDC.DASH/CMD.FILTER_CONTEXT.FILTER_VIEW.CHANGE_DEFAULT_STATUS" | "GDC.DASH/CMD.FILTER_CONTEXT.FILTER_VIEW.RELOAD" | "GDC.DASH/CMD.FILTER_CONTEXT.APPLY_WORKING_SELECTION" | "GDC.DASH/CMD.FILTER_CONTEXT.RESET_WORKING_SELECTION" | "GDC.DASH/CMD.CHANGE_IGNORE_EXECUTION_TIMESTAMP" | "GDC.DASH/CMD.TAB.SWITCH" | "GDC.DASH/CMD.TAB.REPOSITION" | "GDC.DASH/CMD.TAB.CREATE" | "GDC.DASH/CMD.TAB.DELETE" | "GDC.DASH/CMD.TAB.RENAME_MODE.START" | "GDC.DASH/CMD.TAB.RENAME_MODE.CANCEL" | "GDC.DASH/CMD.TAB.RENAME" | "GDC.DASH/CMD.INSIGHT_WIDGET.EXPORT_RAW" | "GDC.DASH/CMD.INSIGHT_WIDGET.EXPORT_SLIDES" | "GDC.DASH/CMD.INSIGHT_WIDGET.EXPORT_IMAGE" | "GDC.DASH/CMD.SHOW_WIDGET_AS_TABLE.SET" | "GDC.DASH/CMD.CHANGE_DENSITY" | "GDC.DASH/CMD.OPEN_DENSITY_DIALOG" | "GDC.DASH/CMD.CHANGE_TIMEZONE_OVERRIDE" | "GDC.DASH/CMD.PARAMETERS.CHANGE_VALUES";
2978
+ export declare type DashboardCommandType = "GDC.DASH/CMD.INITIALIZE" | "GDC.DASH/CMD.SAVE" | "GDC.DASH/CMD.SAVEAS" | "GDC.DASH/CMD.RESET" | "GDC.DASH/CMD.RENAME" | "GDC.DASH/CMD.DELETE" | "GDC.DASH/CMD.CHANGE_RENDER_MODE" | "GDC.DASH/CMD.SHARING.CHANGE" | "GDC.DASH/CMD.EXPORT.PDF" | "GDC.DASH/CMD.EXPORT.EXCEL" | "GDC.DASH/CMD.EXPORT.PDF_PRESENTATION" | "GDC.DASH/CMD.EXPORT.PPT_PRESENTATION" | "GDC.DASH/CMD.EVENT.TRIGGER" | "GDC.DASH/CMD.EXECUTION_RESULT.UPSERT" | "GDC.DASH/CMD.FILTER_CONTEXT.CHANGE_SELECTION" | "GDC.DASH/CMD.FILTER_CONTEXT.DATE_FILTER.CHANGE_SELECTION" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.ADD" | "GDC.DASH/CMD.FILTER_CONTEXT.TEXT_ATTRIBUTE_FILTER.ADD" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.REMOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.MOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.CHANGE_SELECTION" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER_ITEM.REPLACE_SELECTION" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.SET_PARENTS" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.SET_DISPLAY_FORM" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.SET_TITLE" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.SET_SELECTION_MODE" | "GDC.DASH/CMD.FILTER_CONTEXT.ATTRIBUTE_FILTER.SET_DEPENDENT_DATE_FILTERS" | "GDC.DASH/CMD.FILTER_CONTEXT.DATE_FILTER.ADD" | "GDC.DASH/CMD.FILTER_CONTEXT.DATE_FILTER.REMOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.DATE_FILTER.MOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.ADD" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.REMOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.RESTRICTED_FILTERS.REMOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.MOVE" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.CHANGE_CONDITION" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.SET_DIMENSIONALITY" | "GDC.DASH/CMD.FILTER_CONTEXT.MEASURE_VALUE_FILTER.SET_TITLE" | "GDC.DASH/CMD.ATTRIBUTE_FILTER_CONFIG.SET_MODE" | "GDC.DASH/CMD.MEASURE_VALUE_FILTER_CONFIG.SET_MODE" | "GDC.DASH/CMD.ATTRIBUTE_FILTER_CONFIG.SET_AVAILABLE_MODE" | "GDC.DASH/CMD.ATTRIBUTE_FILTER_CONFIG.SET_LIMITING_ITEMS" | "GDC.DASH/CMD.ATTRIBUTE_FILTER_CONFIG.SET_DISPLAY_AS_LABEL" | "GDC.DASH/CMD.DATE_FILTER_CONFIG.SET_MODE" | "GDC.DASH/CMD.DATE_FILTER_WITH_DIMENSION_CONFIG.SET_MODE" | "GDC.DASH/CMD.DATE_FILTER_CONFIG.SET_TITLE" | "GDC.DASH/CMD.FLUID_LAYOUT.ADD_SECTION" | "GDC.DASH/CMD.FLUID_LAYOUT.MOVE_SECTION" | "GDC.DASH/CMD.FLUID_LAYOUT.MOVE_ITEM_TO_NEW_SECTION" | "GDC.DASH/CMD.FLUID_LAYOUT.REMOVE_SECTION" | "GDC.DASH/CMD.FLUID_LAYOUT.CHANGE_SECTION_HEADER" | "GDC.DASH/CMD.FLUID_LAYOUT.ADD_ITEMS" | "GDC.DASH/CMD.FLUID_LAYOUT.REPLACE_ITEM" | "GDC.DASH/CMD.FLUID_LAYOUT.MOVE_ITEM" | "GDC.DASH/CMD.FLUID_LAYOUT.REMOVE_ITEM" | "GDC.DASH/CMD.FLUID_LAYOUT.REMOVE_ITEM_BY_WIDGET_REF" | "GDC.DASH/CMD.FLUID_LAYOUT.UNDO" | "GDC.DASH/CMD.FLUID_LAYOUT.RESIZE_HEIGHT" | "GDC.DASH/CMD.FLUID_LAYOUT.RESIZE_WIDTH" | "GDC.DASH/CMD.FLUID_LAYOUT.SET_SCREEN_SIZE" | "GDC.DASH/CMD.FLEXIBLE_LAYOUT.TOGGLE_LAYOUT_SECTION_HEADERS" | "GDC.DASH/CMD.FLEXIBLE_LAYOUT.TOGGLE_LAYOUT_DIRECTION" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_HEADER" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_MEASURE" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_FILTER_SETTINGS" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_COMPARISON" | "GDC.DASH/CMD.KPI_WIDGET.REFRESH" | "GDC.DASH/CMD.KPI_WIDGET.SET_DRILL" | "GDC.DASH/CMD.KPI_WIDGET.REMOVE_DRILL" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_DESCRIPTION" | "GDC.DASH/CMD.KPI_WIDGET.CHANGE_CONFIGURATION" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_HEADER" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_DESCRIPTION" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_FILTER_SETTINGS" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_PROPERTIES" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_CONFIGURATION" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_INSIGHT" | "GDC.DASH/CMD.INSIGHT_WIDGET.CHANGE_IGNORE_CROSS_FILTERING" | "GDC.DASH/CMD.INSIGHT_WIDGET.EXPORT" | "GDC.DASH/CMD.INSIGHT_WIDGET.MODIFY_DRILLS" | "GDC.DASH/CMD.INSIGHT_WIDGET.REMOVE_DRILLS" | "GDC.DASH/CMD.INSIGHT_WIDGET.REMOVE_DRILL_DOWN" | "GDC.DASH/CMD.INSIGHT_WIDGET.REMOVE_DRILL_TO_URL" | "GDC.DASH/CMD.INSIGHT_WIDGET.ADD_DRILL_DOWN" | "GDC.DASH/CMD.INSIGHT_WIDGET.MODIFY_DRILL_DOWN" | "GDC.DASH/CMD.INSIGHT_WIDGET.REFRESH" | "GDC.DASH/CMD.RICH_TEXT_WIDGET.CHANGE_CONTENT" | "GDC.DASH/CMD.RICH_TEXT_WIDGET.CHANGE_FILTER_SETTINGS" | "GDC.DASH/CMD.VISUALIZATION_SWITCHER_WIDGET.ADD_VISUALIZATION" | "GDC.DASH/CMD.VISUALIZATION_SWITCHER_WIDGET.UPDATE_VISUALIZATIONS" | "GDC.DASH/CMD.VISUALIZATION_SWITCHER_WIDGET.CHANGE_ACTIVE_VISUALIZATION" | "GDC.DASH/CMD.ALERT.CREATE" | "GDC.DASH/CMD.ALERT.SAVE" | "GDC.DASH/CMD.SCHEDULED_EMAIL.CREATE" | "GDC.DASH/CMD.SCHEDULED_EMAIL.SAVE" | "GDC.DASH/CMD.DRILL" | "GDC.DASH/CMD.DRILL.DRILL_DOWN" | "GDC.DASH/CMD.DRILL.DRILL_TO_INSIGHT" | "GDC.DASH/CMD.DRILL.DRILL_TO_DASHBOARD" | "GDC.DASH/CMD.DRILL.DRILL_TO_ATTRIBUTE_URL" | "GDC.DASH/CMD.DRILL.DRILL_TO_CUSTOM_URL" | "GDC.DASH/CMD.DRILL.DRILL_TO_LEGACY_DASHBOARD" | "GDC.DASH/CMD.DRILL.DRILLABLE_ITEMS.CHANGE" | "GDC.DASH/CMD.DRILL.CROSS_FILTERING" | "GDC.DASH/CMD.DRILL.KEY_DRIVER_ANALYSIS" | "GDC.DASH/CMD.DRILL_TARGETS.ADD" | "GDC.DASH/CMD.RENDER.ASYNC.REQUEST" | "GDC.DASH/CMD.RENDER.ASYNC.RESOLVE" | "GDC.DASH/CMD.ATTRIBUTE_HIERARCHY_MODIFIED" | "GDC.DASH/CMD.AUTOMATIONS.INITIALIZE" | "GDC.DASH/CMD.AUTOMATIONS.REFRESH" | "GDC.DASH/CMD.FILTER_CONTEXT.FILTER_VIEW.SAVE" | "GDC.DASH/CMD.FILTER_CONTEXT.FILTER_VIEW.DELETE" | "GDC.DASH/CMD.FILTER_CONTEXT.FILTER_VIEW.APPLY" | "GDC.DASH/CMD.FILTER_CONTEXT.FILTER_VIEW.CHANGE_DEFAULT_STATUS" | "GDC.DASH/CMD.FILTER_CONTEXT.FILTER_VIEW.RELOAD" | "GDC.DASH/CMD.FILTER_CONTEXT.APPLY_WORKING_SELECTION" | "GDC.DASH/CMD.FILTER_CONTEXT.RESET_WORKING_SELECTION" | "GDC.DASH/CMD.CHANGE_IGNORE_EXECUTION_TIMESTAMP" | "GDC.DASH/CMD.TAB.SWITCH" | "GDC.DASH/CMD.TAB.REPOSITION" | "GDC.DASH/CMD.TAB.CREATE" | "GDC.DASH/CMD.TAB.DELETE" | "GDC.DASH/CMD.TAB.RENAME_MODE.START" | "GDC.DASH/CMD.TAB.RENAME_MODE.CANCEL" | "GDC.DASH/CMD.TAB.RENAME" | "GDC.DASH/CMD.INSIGHT_WIDGET.EXPORT_RAW" | "GDC.DASH/CMD.INSIGHT_WIDGET.EXPORT_SLIDES" | "GDC.DASH/CMD.INSIGHT_WIDGET.EXPORT_IMAGE" | "GDC.DASH/CMD.SHOW_WIDGET_AS_TABLE.SET" | "GDC.DASH/CMD.CHANGE_DENSITY" | "GDC.DASH/CMD.OPEN_DENSITY_DIALOG" | "GDC.DASH/CMD.CHANGE_TIMEZONE_OVERRIDE" | "GDC.DASH/CMD.PARAMETERS.CHANGE_VALUES";
2960
2979
 
2961
2980
  /**
2962
2981
  * Dashboard configuration can influence the available features, look and feel and behavior of the dashboard.
@@ -5136,6 +5155,9 @@ export declare function DefaultScheduledEmailDialogTimezone({ isWidget, selectio
5136
5155
  export declare function DefaultScheduledEmailDialogWidgetAttachments(props: IScheduledEmailDialogWidgetAttachmentsProps): ReactElement;
5137
5156
 
5138
5157
  /**
5158
+ * Default implementation of the scheduled-email management dialog: the list of the dashboard's
5159
+ * scheduled exports, with actions to add, edit, or delete one.
5160
+ *
5139
5161
  * @beta
5140
5162
  */
5141
5163
  export declare function DefaultScheduledEmailManagementDialog({ onAdd, onEdit, onClose, }: IScheduledEmailManagementDialogProps): JSX.Element;
@@ -7101,13 +7123,21 @@ export declare interface IAlertingDialogComparisonPeriodProps {
7101
7123
  * @beta
7102
7124
  */
7103
7125
  export declare interface IAlertingDialogContextValue {
7126
+ /** Whether the dialog creates a new alert or edits an existing one. */
7104
7127
  mode: "create" | "edit";
7128
+ /** Widget the alert targets; undefined when alerting for a dashboard rather than a widget. */
7105
7129
  widget?: IWidget;
7130
+ /** Insight of {@link IAlertingDialogContextValue.widget}; undefined when alerting for a dashboard. */
7106
7131
  insight?: IInsight;
7132
+ /** Title of {@link IAlertingDialogContextValue.widget}; undefined when alerting for a dashboard. */
7107
7133
  widgetTitle?: string;
7134
+ /** Id of the dashboard the alert belongs to. */
7108
7135
  dashboardId?: string;
7136
+ /** The dashboard's applied filters available to the alert — cross-filtering, hidden, and empty filters excluded. */
7109
7137
  dashboardFilters: FilterContextItem[];
7138
+ /** Raw dashboard hidden filters (`selectDashboardHiddenFilters`); combined with the edited filters via `getAppliedWidgetFilters` inside the dialog. */
7110
7139
  hiddenFilters: FilterContextItem[];
7140
+ /** Looks up a widget's execution result by ref; used to resolve attribute values for the condition's "for" field. */
7111
7141
  executionResultByRef: (ref: ObjRef | undefined) => {
7112
7142
  executionResult?: IExecutionResult;
7113
7143
  } | undefined;
@@ -7119,10 +7149,15 @@ export declare interface IAlertingDialogContextValue {
7119
7149
  * read in useAutomationAlertParameters).
7120
7150
  */
7121
7151
  dashboardParameters: IDashboardParameter[];
7152
+ /** Local identifier of the dashboard's common (dashboard-level) date filter, when the automation-available filters include one. */
7122
7153
  commonDateFilterId?: string;
7154
+ /** The dashboard's configured evaluation frequency (cron expression); seeds the new alert's trigger interval when set. */
7123
7155
  dashboardEvaluationFrequency?: string;
7156
+ /** Creates a new alert on the backend. */
7124
7157
  createAlert(alert: IAutomationMetadataObjectDefinition): Promise<IAutomationMetadataObject>;
7158
+ /** Saves changes to an existing alert on the backend. */
7125
7159
  saveAlert(alert: IAutomationMetadataObject): Promise<IAutomationMetadataObject>;
7160
+ /** Deletes the alert from the backend. */
7126
7161
  deleteAlert(alert: IAutomationMetadataObject): Promise<void>;
7127
7162
  /** The alert being edited; undefined when creating a new one. */
7128
7163
  alertToEdit?: IAutomationMetadataObject;
@@ -7243,6 +7278,11 @@ export declare interface IAlertingDialogMeasureProps {
7243
7278
  }
7244
7279
 
7245
7280
  /**
7281
+ * Props of the alerting create/edit dialog, accepted by `AlertingDialogComponent`.
7282
+ *
7283
+ * Extends {@link IAutomationDialogCallbacks} with data props that are all deprecated — the dialog
7284
+ * reads its data from `useAlertingDialogContext()` instead.
7285
+ *
7246
7286
  * @beta
7247
7287
  */
7248
7288
  export declare interface IAlertingDialogProps extends IAutomationDialogCallbacks {
@@ -7530,17 +7570,38 @@ export declare interface IAlertingDialogTriggerModeProps {
7530
7570
  * @alpha
7531
7571
  */
7532
7572
  export declare interface IAlertingManagementDialogContextValue {
7573
+ /** The logged-in user; from selectCurrentUser. Used to decide whether the user may edit/delete an alert they didn't create. */
7533
7574
  currentUser?: IUser;
7575
+ /** Id of the dashboard the management dialog is rendered on. Used to preselect the dashboard filter in the enhanced automations list. */
7534
7576
  dashboardId?: string;
7577
+ /** Title of the dashboard the management dialog is rendered on. Used as the label of the preselected dashboard filter in the enhanced automations list. */
7535
7578
  dashboardTitle?: string;
7579
+ /** Whether the current user may manage the workspace; from selectCanManageWorkspace. Combined with alert ownership to gate edit/delete. */
7536
7580
  canManageWorkspace: boolean;
7581
+ /**
7582
+ * Whether the alert create/edit dialog is currently open (from store UI slice).
7583
+ * Used by the management dialog's focus-return logic (refocus when the edit dialog closes).
7584
+ */
7537
7585
  isAlertDialogOpen: boolean;
7586
+ /** Element ID to return focus to when the alerting dialog closes; from selectAlertingDialogReturnFocusTo, read via useAlertingDialogAccessibility. */
7538
7587
  alertingDialogReturnFocusTo?: string;
7588
+ /** Widget the management dialog is scoped to, when opened for a single widget rather than the whole dashboard; from selectIsAlertingManagementDialogContext. */
7539
7589
  managementDialogContext: {
7540
7590
  widgetRef?: ObjRef;
7541
7591
  };
7592
+ /**
7593
+ * Cache-bust counter for the automation list: reset to 0 when a management dialog opens,
7594
+ * incremented on invalidation. 0 means nothing has been invalidated since the dialog opened;
7595
+ * consumers reload when the value changes and is not 0.
7596
+ */
7542
7597
  automationsInvalidationId?: number;
7598
+ /**
7599
+ * Whether the dashboard is rendered in an embedded context.
7600
+ */
7543
7601
  isEmbedded: boolean;
7602
+ /**
7603
+ * Whether accessibility mode is active (for aria/keyboard focus management).
7604
+ */
7544
7605
  enableAccessibilityMode: boolean;
7545
7606
  /**
7546
7607
  * Alerts visible in the management dialog, scoped to the current dashboard context.
@@ -7554,13 +7615,22 @@ export declare interface IAlertingManagementDialogContextValue {
7554
7615
  * management list.
7555
7616
  */
7556
7617
  isLoading: boolean;
7618
+ /** Looks up a dashboard widget (KPI, insight, rich text, or visualization-switcher) by ref, filtering out non-widget layout containers; bridges identifier↔URI ref mismatches the same way as selectWidgetByRef. */
7557
7619
  getWidgetByRef: (ref: ObjRef | undefined) => IWidget | undefined;
7620
+ /** Looks up the insight of an insight widget by the widget's ref; undefined for a non-insight widget. */
7558
7621
  getInsightByWidgetRef: (ref: ObjRef | undefined) => IInsight | undefined;
7622
+ /** Persists the given alert via the alerts save command; resolves with the saved alert, rejects with the command's error. */
7559
7623
  pauseAlert(alert: IAutomationMetadataObject): Promise<IAutomationMetadataObject>;
7624
+ /** Persists the given alert via the alerts save command; resolves with the saved alert, rejects with the command's error. Functionally identical to {@link IAlertingManagementDialogContextValue.pauseAlert} — distinguished only by name for call-site clarity. */
7560
7625
  resumeAlert(alert: IAutomationMetadataObject): Promise<IAutomationMetadataObject>;
7561
7626
  }
7562
7627
 
7563
7628
  /**
7629
+ * Props of the alerting management dialog, accepted by `AlertingManagementDialogComponent`.
7630
+ *
7631
+ * Extends {@link IAutomationManagementDialogCallbacks} with data props that are all deprecated —
7632
+ * the dialog reads its data from `useAlertingManagementDialogContext()` instead.
7633
+ *
7564
7634
  * @beta
7565
7635
  */
7566
7636
  export declare interface IAlertingManagementDialogProps extends IAutomationManagementDialogCallbacks {
@@ -8165,34 +8235,73 @@ export declare interface IAutomationParameter {
8165
8235
  * @beta
8166
8236
  */
8167
8237
  export declare interface IAutomationsContextValue {
8238
+ /** Workspace locale for message formatting and number/date localization; from selectLocale. */
8168
8239
  locale: ILocale;
8240
+ /** Number formatting separators (decimal/thousands); from selectSeparators. */
8169
8241
  separators: ISeparators;
8242
+ /** Workspace/dashboard feature settings object; from selectSettings. */
8170
8243
  settings?: ISettings;
8244
+ /** Workspace attribute catalog, including computed attributes; from selectCatalogAttributesWithComputed. */
8171
8245
  catalogAttributes: ICatalogAttribute[];
8246
+ /** Workspace date dataset catalog; from selectCatalogDateDatasets. */
8172
8247
  catalogDateDatasets: ICatalogDateDataset[];
8248
+ /** Workspace measure catalog; from selectCatalogMeasures. */
8173
8249
  catalogMeasures: ICatalogMeasure[];
8250
+ /** Date filter granularities and presets for automation date filter chips; see {@link IAutomationsDateFilterConfig}. */
8174
8251
  dateFilterConfig: IAutomationsDateFilterConfig;
8252
+ /**
8253
+ * Persisted common date filter config for the active tab, used for its custom title;
8254
+ * from selectPersistedDashboardFilterContextDateFilterConfig.
8255
+ */
8175
8256
  dateFilterContextConfig: IDashboardDateFilterConfig_2 | undefined;
8257
+ /** Dashboard-level attribute filter config overrides for the active tab; from selectAttributeFilterConfigsOverrides. */
8176
8258
  attributeFilterConfigs: IDashboardAttributeFilterConfig[];
8259
+ /** Same as {@link IAutomationsContextValue.attributeFilterConfigs}, keyed by tab identifier; from selectAttributeFilterConfigsOverridesByTab. */
8177
8260
  attributeFilterConfigsByTab: Record<string, IDashboardAttributeFilterConfig[]>;
8261
+ /** Attribute filter selection type (single/multi) by local identifier for the active tab; from selectAttributeFilterConfigsSelectionTypeMap. */
8178
8262
  attributeFilterSelectionTypeMap: Map<string, DashboardAttributeFilterSelectionType | undefined>;
8263
+ /** Same as {@link IAutomationsContextValue.attributeFilterSelectionTypeMap}, keyed by tab identifier; from selectAttributeFilterConfigsSelectionTypeMapByTab. */
8179
8264
  attributeFilterSelectionTypeMapByTab: Record<string, Map<string, DashboardAttributeFilterSelectionType | undefined>>;
8265
+ /** Per-dataset (dimension) date filter config overrides for the active tab; from selectDateFilterConfigsOverrides. */
8180
8266
  dateFilterConfigs: IDashboardDateFilterConfigItem[];
8267
+ /** Same as {@link IAutomationsContextValue.dateFilterConfigs}, keyed by tab identifier; from selectDateFilterConfigsOverridesByTab. */
8181
8268
  dateFilterConfigsByTab: Record<string, IDashboardDateFilterConfigItem[]>;
8269
+ /** Dashboard-level common (whole-dashboard) date filter config override, keyed by tab identifier; from selectDateFilterConfigOverridesByTab. */
8182
8270
  dateFilterConfigOverridesByTab: Record<string, IDashboardDateFilterConfig_2 | undefined>;
8271
+ /** Dashboard-level measure value filter config overrides for the active tab; from selectMeasureValueFilterConfigsOverrides. */
8183
8272
  measureValueFilterConfigs: IDashboardMeasureValueFilterConfig[];
8273
+ /** Same as {@link IAutomationsContextValue.measureValueFilterConfigs}, keyed by tab identifier; from selectMeasureValueFilterConfigsOverridesByTab. */
8184
8274
  measureValueFilterConfigsByTab: Record<string, IDashboardMeasureValueFilterConfig[]>;
8275
+ /** Local identifier of the dashboard's common date filter, when the automation-available filters include one; from selectAutomationCommonDateFilterId. */
8185
8276
  commonDateFilterId: string | undefined;
8277
+ /** Dashboard filters configured as read-only (locked); from selectDashboardLockedFilters. */
8186
8278
  lockedFilters: FilterContextItem[];
8279
+ /** Dashboard filters configured as hidden; from selectDashboardHiddenFilters. */
8187
8280
  hiddenFilters: FilterContextItem[];
8281
+ /** Dashboard's applied filters with cross-filtering filters removed; from selectDashboardFiltersWithoutCrossFiltering. */
8188
8282
  availableFilters: FilterContextItem[];
8283
+ /** Automation-available filters structured per dashboard tab, for whole-dashboard automations on a tabbed dashboard; from selectAutomationFiltersByTab. */
8189
8284
  automationFiltersByTab: IAutomationFiltersTab[];
8285
+ /** Automation-available filters with empty (all-values) filters removed; preselects filters for a new automation. From selectAutomationDefaultSelectedFilters. */
8190
8286
  defaultSelectedFilters: FilterContextItem[];
8287
+ /** Dashboard filters available to an automation — hidden filters removed, common date filter included; from selectAutomationAvailableDashboardFilters. */
8191
8288
  automationAvailableFilters: FilterContextItem[];
8289
+ /**
8290
+ * Maximum number of recipients allowed on an automation, derived from the recipient-count
8291
+ * entitlement (`Infinity` when the unlimited-recipients entitlement is present); from
8292
+ * selectMaxAutomationRecipients.
8293
+ */
8192
8294
  maxAutomationsRecipients: number;
8295
+ /**
8296
+ * Whether the dashboard is opened at a past execution timestamp (a scheduled run's historical
8297
+ * snapshot); disables create/save actions in the dialogs. Derived from selectExecutionTimestamp.
8298
+ */
8193
8299
  isExecutionTimestampMode: boolean;
8300
+ /** Whether the workspace's minimum-recurrence entitlement permits hourly schedules; derived from selectEntitlementMinimumRecurrenceMinutes. */
8194
8301
  allowHourlyRecurrence: boolean;
8302
+ /** The logged-in user; from selectCurrentUser. */
8195
8303
  currentUser: IUser;
8304
+ /** The workspace's configured first day of the week; from selectWeekStart. */
8196
8305
  weekStart: WeekStart;
8197
8306
  /**
8198
8307
  * Automation timezone to display and compute schedule ("Starts on", alert crons, next-run):
@@ -8234,18 +8343,30 @@ export declare interface IAutomationsContextValue {
8234
8343
  */
8235
8344
  scheduledExportTimezone: string | undefined;
8236
8345
  };
8346
+ /** Whether the dashboard is white-labeled (hides GoodData branding and help links); from selectIsWhiteLabeled. */
8237
8347
  isWhiteLabeled: boolean;
8348
+ /** Whether the dialog header renders a secondary title row below the main title; always true in the current hydration. */
8238
8349
  isSecondaryTitleVisible: boolean;
8350
+ /** External (non-workspace) recipient the dialog is scoped to, when opened via an external share link; from selectExternalRecipient. */
8239
8351
  externalRecipient: string | undefined;
8352
+ /** Feature flags and permissions gating automation dialog behavior. */
8240
8353
  features: {
8354
+ /** Whether the current user may create new automations; gates the management dialogs' create button. From selectCanCreateAutomation. */
8241
8355
  canCreateAutomation: boolean;
8356
+ /** Whether the "once per interval" alert trigger option is offered; from selectEnableAlertOncePerInterval. */
8242
8357
  enableAlertOncePerInterval: boolean;
8358
+ /** Whether anomaly-detection alert conditions are offered; from selectEnableAnomalyDetectionAlert. */
8243
8359
  enableAnomalyDetectionAlert: boolean;
8360
+ /** Whether the current user may use the AI assistant; combined with enableAnomalyDetectionAlert to gate anomaly-detection alert conditions. From selectCanUseAiAssistant. */
8244
8361
  canUseAiAssistant: boolean;
8362
+ /** Whether the current user may manage the workspace; from selectCanManageWorkspace. */
8245
8363
  canManageWorkspace: boolean;
8364
+ /** Whether scheduled slideshow (PDF slides) exports are offered; from selectEnableSlideshowExports. */
8246
8365
  enableSlideshowExports: boolean;
8366
+ /** Whether the automation evaluation-mode setting is enabled; from selectEnableAutomationEvaluationMode. */
8247
8367
  enableAutomationEvaluationMode: boolean;
8248
8368
  };
8369
+ /** Workspace parameter catalog and effective dashboard parameter values for automations; see {@link IAutomationsParameters}. */
8249
8370
  parameters: IAutomationsParameters;
8250
8371
  /**
8251
8372
  * Local identifiers of the dashboard's tabs, in layout order; empty when the dashboard has none.
@@ -8255,7 +8376,13 @@ export declare interface IAutomationsContextValue {
8255
8376
  tabIds: string[];
8256
8377
  /** Maps a widget's localIdentifier to the localIdentifier of the tab that owns it. */
8257
8378
  widgetLocalIdToTabIdMap: Record<string, string>;
8379
+ /** Looks up a catalog attribute (or date attribute) by ref; backed by selectAllCatalogAttributesMap. Used to resolve attribute names for filter labels. */
8258
8380
  getCatalogAttributeByRef: (ref: ObjRef) => ICatalogAttribute | ICatalogDateAttribute | undefined;
8381
+ /**
8382
+ * Looks up an attribute filter's display form by ref, preferring the dashboard's own attribute
8383
+ * filter display forms before falling back to the workspace catalog; combines
8384
+ * selectAttributeFilterDisplayFormsMap and selectAllCatalogDisplayFormsMap.
8385
+ */
8259
8386
  getAttributeFilterDisplayForm: (displayForm: ObjRef) => IAttributeDisplayFormMetadataObject | undefined;
8260
8387
  /**
8261
8388
  * Element ID to return focus to when the scheduled-email dialog closes.
@@ -8278,9 +8405,23 @@ export declare interface IAutomationsContextValue {
8278
8405
  * @beta
8279
8406
  */
8280
8407
  export declare interface IAutomationsDateFilterConfig {
8408
+ /** Granularities from the dashboard's effective (resolved) date-filter configuration; the fallback when no tab-scoped value is available. */
8281
8409
  availableGranularities: DateFilterGranularity[];
8410
+ /** Date-filter options (presets) from the dashboard's effective (resolved) date-filter configuration; the fallback when no tab-scoped value is available. */
8282
8411
  dateFilterOptions: IDateFilterOptionsByType;
8412
+ /**
8413
+ * Granularities from the given dashboard tab's effective (resolved) date-filter configuration —
8414
+ * inherited settings included, not only tab-specific overrides. Empty when the tab has no
8415
+ * effective configuration, in which case the caller falls back to
8416
+ * {@link IAutomationsDateFilterConfig.availableGranularities}.
8417
+ */
8283
8418
  getGranularitiesForTab: (tabId: string) => DateFilterGranularity[];
8419
+ /**
8420
+ * Date-filter options from the given dashboard tab's effective (resolved) date-filter
8421
+ * configuration — inherited settings included, not only tab-specific overrides. Undefined when
8422
+ * the tab has no effective configuration, in which case the caller falls back to
8423
+ * {@link IAutomationsDateFilterConfig.dateFilterOptions}.
8424
+ */
8284
8425
  getOptionsForTab: (tabId: string) => IDateFilterOptionsByType | undefined;
8285
8426
  }
8286
8427
 
@@ -18613,6 +18754,19 @@ export declare interface IRemoveParameterPayload {
18613
18754
  ref: ObjRef;
18614
18755
  }
18615
18756
 
18757
+ /**
18758
+ * Removes the filters the active tab's filter bar reports as not applied.
18759
+ *
18760
+ * @remarks
18761
+ * Filters the author hid are kept: they are already left out of every execution. Saving the dashboard
18762
+ * makes the removal permanent, for everyone.
18763
+ *
18764
+ * @beta
18765
+ */
18766
+ export declare interface IRemoveRestrictedFilters extends IDashboardCommand {
18767
+ readonly type: "GDC.DASH/CMD.FILTER_CONTEXT.RESTRICTED_FILTERS.REMOVE";
18768
+ }
18769
+
18616
18770
  /**
18617
18771
  * @beta
18618
18772
  */
@@ -19081,6 +19235,8 @@ export declare interface IResolvedFilterValues {
19081
19235
  export declare interface IRestrictedFiltersPlaceholderProps {
19082
19236
  /** How many filters were left out of the dashboard. */
19083
19237
  count: number;
19238
+ /** Removes the filters from the dashboard for good; absent unless the dashboard is being edited. */
19239
+ onRemove?: () => void;
19084
19240
  }
19085
19241
 
19086
19242
  /**
@@ -19472,10 +19628,15 @@ export declare type IScheduledEmailDialogActionBarBlockProps = IUseScheduledEmai
19472
19628
  * @beta
19473
19629
  */
19474
19630
  export declare interface IScheduledEmailDialogContextValue {
19631
+ /** Widget the scheduled export targets; undefined when scheduling an export for a dashboard rather than a widget. */
19475
19632
  widget?: IWidget;
19633
+ /** Insight of {@link IScheduledEmailDialogContextValue.widget}; undefined when scheduling for a dashboard. */
19476
19634
  insight?: IInsight;
19635
+ /** Title of {@link IScheduledEmailDialogContextValue.widget}; undefined when scheduling for a dashboard. */
19477
19636
  widgetTitle?: string;
19637
+ /** Id of the dashboard the scheduled export belongs to. */
19478
19638
  dashboardId?: string;
19639
+ /** Dashboard title; used as the subject placeholder. */
19479
19640
  dashboardTitle: string;
19480
19641
  /**
19481
19642
  * Dashboard filters the export will use: the saved filters when editing, otherwise the currently
@@ -19487,6 +19648,7 @@ export declare interface IScheduledEmailDialogContextValue {
19487
19648
  * getAppliedDashboardFilters/getAppliedWidgetFilters inside the dialog, mirroring the alerting context.
19488
19649
  */
19489
19650
  hiddenFilters: FilterContextItem[];
19651
+ /** Local identifier of the dashboard's common (dashboard-level) date filter, when the automation-available filters include one. */
19490
19652
  commonDateFilterId?: string;
19491
19653
  /**
19492
19654
  * Effective export parameter overrides keyed by tab, scoped to the dialog's widget when present.
@@ -19508,8 +19670,11 @@ export declare interface IScheduledEmailDialogContextValue {
19508
19670
  dateFiltersModeMap: Map<string, DashboardDateFilterConfigMode>;
19509
19671
  /** Effective mode map for attribute filters (localIdentifier → mode). */
19510
19672
  attributeFiltersModeMap: Map<string, DashboardAttributeFilterConfigMode>;
19673
+ /** Creates a new scheduled export on the backend. */
19511
19674
  createScheduledEmail(se: IAutomationMetadataObjectDefinition): Promise<IAutomationMetadataObject>;
19675
+ /** Saves changes to an existing scheduled export on the backend. */
19512
19676
  saveScheduledEmail(se: IAutomationMetadataObject): Promise<IAutomationMetadataObject>;
19677
+ /** Deletes the scheduled export from the backend. */
19513
19678
  deleteScheduledEmail(se: IAutomationMetadataObject): Promise<void>;
19514
19679
  /** The scheduled export being edited; undefined when creating a new one. */
19515
19680
  scheduledExportToEdit?: IAutomationMetadataObject;
@@ -19693,6 +19858,11 @@ export declare interface IScheduledEmailDialogMessageProps {
19693
19858
  }
19694
19859
 
19695
19860
  /**
19861
+ * Props of the scheduled-email create/edit dialog, accepted by `ScheduledEmailDialogComponent`.
19862
+ *
19863
+ * Extends {@link IAutomationDialogCallbacks} with data props that are all deprecated — the dialog
19864
+ * reads its data from `useScheduledEmailDialogContext()` instead.
19865
+ *
19696
19866
  * @beta
19697
19867
  */
19698
19868
  export declare interface IScheduledEmailDialogProps extends IAutomationDialogCallbacks {
@@ -20126,8 +20296,9 @@ export declare interface IScheduledEmailManagementDialogContextValue {
20126
20296
  */
20127
20297
  isScheduleEmailDialogOpen: boolean;
20128
20298
  /**
20129
- * Monotonic counter that increments whenever the automation list is invalidated.
20130
- * Consumers can use this as a cache-bust key for re-fetching.
20299
+ * Cache-bust counter for the automation list: reset to 0 when a management dialog opens,
20300
+ * incremented on invalidation. 0 means nothing has been invalidated since the dialog opened;
20301
+ * consumers reload when the value changes and is not 0.
20131
20302
  */
20132
20303
  automationsInvalidationId?: number;
20133
20304
  /**
@@ -20168,6 +20339,10 @@ export declare interface IScheduledEmailManagementDialogContextValue {
20168
20339
  }
20169
20340
 
20170
20341
  /**
20342
+ * Props of the scheduled-email management dialog, accepted by `ScheduledEmailManagementDialogComponent`.
20343
+ *
20344
+ * Extends {@link IAutomationManagementDialogCallbacks} with data props that are all deprecated —
20345
+ * the dialog reads its data from `useScheduledEmailManagementDialogContext()` instead.
20171
20346
  *
20172
20347
  * @beta
20173
20348
  */
@@ -25689,6 +25864,15 @@ export declare function removeNestedLayoutSection(index: ILayoutSectionPath, sta
25689
25864
  */
25690
25865
  export declare function removeNestedLayoutSectionItem(itemPath: ILayoutItemPath, stashIdentifier?: StashedDashboardItemsId, correlationId?: string): IRemoveSectionItem;
25691
25866
 
25867
+ /**
25868
+ * Creates the {@link IRemoveRestrictedFilters} command.
25869
+ *
25870
+ * @param correlationId - specify correlation id to use for this command. this will be included in all
25871
+ * events that will be emitted during the command processing
25872
+ * @beta
25873
+ */
25874
+ export declare function removeRestrictedFilters(correlationId?: string): IRemoveRestrictedFilters;
25875
+
25692
25876
  /**
25693
25877
  * Creates the RemoveSectionItem command.
25694
25878
  *