@gooddata/sdk-ui-dashboard 11.53.0-alpha.4 → 11.53.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/index.d.ts +4 -4
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/presentation/automations/alerting/AlertingDialog.d.ts +2 -1
- package/esm/presentation/automations/alerting/AlertingDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/AlertingDialog.js +4 -3
- package/esm/presentation/automations/alerting/types.d.ts +45 -7
- package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts +9 -0
- package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/AlertingDialogContext.js +9 -0
- package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.d.ts +10 -0
- package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.js +10 -0
- package/esm/presentation/automations/scheduledEmail/ScheduledEmailDialog.d.ts +3 -1
- package/esm/presentation/automations/scheduledEmail/ScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/ScheduledEmailDialog.js +5 -3
- package/esm/presentation/automations/scheduledEmail/types.d.ts +52 -8
- package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +4 -1
- package/esm/presentation/dashboard/types.d.ts +20 -2
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +4 -2
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +2 -0
- package/esm/presentation/dashboardContexts/DefaultDialogContextDecorator.d.ts +10 -0
- package/esm/presentation/dashboardContexts/DefaultDialogContextDecorator.d.ts.map +1 -0
- package/esm/presentation/dashboardContexts/DefaultDialogContextDecorator.js +9 -0
- package/esm/sdk-ui-dashboard.d.ts +144 -15
- package/package.json +21 -21
- package/styles/css/main.css +12 -0
- package/styles/css/main.css.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentType, type KeyboardEvent, type Ref } from "react";
|
|
1
|
+
import { type ComponentType, type KeyboardEvent, type ReactNode, type Ref } from "react";
|
|
2
2
|
import { type FilterContextItem, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IFilter, type IInsight, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget, type IdentifierRef, type ParameterValue } from "@gooddata/sdk-model";
|
|
3
3
|
import { type GoodDataSdkError } from "@gooddata/sdk-ui";
|
|
4
4
|
import { type IAutomationFiltersTab } from "../../../model/store/filtering/types.js";
|
|
@@ -11,14 +11,17 @@ export interface IScheduledEmailDialogProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* In case, we are not creating new schedule, but editing existing one, this is the active schedule to be edited.
|
|
13
13
|
*
|
|
14
|
-
* @deprecated
|
|
14
|
+
* @deprecated has no effect since 11.51 — the dialog reads `scheduledExportToEdit` from
|
|
15
|
+
* `useScheduledEmailDialogContext()`. To adjust what it reads, use the
|
|
16
|
+
* `ScheduledEmailDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
15
17
|
*/
|
|
16
18
|
scheduledExportToEdit?: IAutomationMetadataObject;
|
|
17
19
|
/**
|
|
18
20
|
* Notification channels in organization
|
|
19
21
|
*
|
|
20
|
-
* @deprecated
|
|
21
|
-
*
|
|
22
|
+
* @deprecated has no effect since 11.51 — the dialog reads `notificationChannels` from
|
|
23
|
+
* `useScheduledEmailDialogContext()`. To adjust what it reads, use the
|
|
24
|
+
* `ScheduledEmailDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
22
25
|
*/
|
|
23
26
|
notificationChannels?: INotificationChannelIdentifier[] | INotificationChannelMetadataObject[];
|
|
24
27
|
/**
|
|
@@ -29,7 +32,9 @@ export interface IScheduledEmailDialogProps {
|
|
|
29
32
|
* supports insight widgets; custom widgets and nested layouts are not valid
|
|
30
33
|
* export targets and were silently discarded at the connector boundary anyway.
|
|
31
34
|
*
|
|
32
|
-
* @deprecated
|
|
35
|
+
* @deprecated has no effect since 11.51 — the dialog reads `widget` from
|
|
36
|
+
* `useScheduledEmailDialogContext()`. To adjust what it reads, use the
|
|
37
|
+
* `ScheduledEmailDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
33
38
|
*/
|
|
34
39
|
widget?: IWidget;
|
|
35
40
|
/**
|
|
@@ -37,7 +42,9 @@ export interface IScheduledEmailDialogProps {
|
|
|
37
42
|
*
|
|
38
43
|
* Note: this is available only when scheduling export for widget, not dashboard.
|
|
39
44
|
*
|
|
40
|
-
* @deprecated
|
|
45
|
+
* @deprecated has no effect since 11.51 — the dialog reads `insight` from
|
|
46
|
+
* `useScheduledEmailDialogContext()`. To adjust what it reads, use the
|
|
47
|
+
* `ScheduledEmailDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
41
48
|
*/
|
|
42
49
|
insight?: IInsight;
|
|
43
50
|
/**
|
|
@@ -52,7 +59,9 @@ export interface IScheduledEmailDialogProps {
|
|
|
52
59
|
*
|
|
53
60
|
* - If we are editing an existing scheduled export, this will contain its filters, as changing saved filters is currently not allowed.
|
|
54
61
|
*
|
|
55
|
-
* @deprecated
|
|
62
|
+
* @deprecated has no effect since 11.51 — the dialog reads `dashboardFilters` from
|
|
63
|
+
* `useScheduledEmailDialogContext()`. To adjust what it reads, use the
|
|
64
|
+
* `ScheduledEmailDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
56
65
|
*/
|
|
57
66
|
dashboardFilters?: FilterContextItem[];
|
|
58
67
|
/**
|
|
@@ -73,7 +82,8 @@ export interface IScheduledEmailDialogProps {
|
|
|
73
82
|
/**
|
|
74
83
|
* Is scheduled email dialog loading initial data, before it can be rendered?
|
|
75
84
|
*
|
|
76
|
-
* @deprecated
|
|
85
|
+
* @deprecated has no effect since 11.51 — the dialog reads `isLoading` from
|
|
86
|
+
* `useScheduledEmailDialogContext()`. Prop will be removed.
|
|
77
87
|
*/
|
|
78
88
|
isLoading?: boolean;
|
|
79
89
|
/**
|
|
@@ -310,6 +320,40 @@ export interface IScheduledEmailManagementDialogProps {
|
|
|
310
320
|
* @alpha
|
|
311
321
|
*/
|
|
312
322
|
export type CustomScheduledEmailDialogComponent = ComponentType<IScheduledEmailDialogProps>;
|
|
323
|
+
/**
|
|
324
|
+
* Decorates the data the scheduled-email create/edit dialog reads.
|
|
325
|
+
*
|
|
326
|
+
* The dashboard mounts this component between the connector-provided dialog context and the
|
|
327
|
+
* dialog's state model, so the value it re-provides is what both the default dialog and the
|
|
328
|
+
* state seeding read — a wholesale `ScheduledEmailDialogComponent` replacement sees it too.
|
|
329
|
+
* Read the current value with `useScheduledEmailDialogContext()`, decorate the members to
|
|
330
|
+
* adjust, and re-provide via `ScheduledEmailDialogContextProvider`:
|
|
331
|
+
*
|
|
332
|
+
* @example
|
|
333
|
+
* ```tsx
|
|
334
|
+
* function ChannelsDecorator({ children }: { children?: ReactNode }) {
|
|
335
|
+
* const ctx = useScheduledEmailDialogContext();
|
|
336
|
+
* const notificationChannels = useMyFilteredChannels(ctx.notificationChannels);
|
|
337
|
+
* const decorated = useMemo(() => ({ ...ctx, notificationChannels }), [ctx, notificationChannels]);
|
|
338
|
+
* return (
|
|
339
|
+
* <ScheduledEmailDialogContextProvider value={decorated}>
|
|
340
|
+
* {children}
|
|
341
|
+
* </ScheduledEmailDialogContextProvider>
|
|
342
|
+
* );
|
|
343
|
+
* }
|
|
344
|
+
* // <Dashboard ScheduledEmailDialogContextDecoratorComponent={ChannelsDecorator} />
|
|
345
|
+
* ```
|
|
346
|
+
*
|
|
347
|
+
* Pass `isLoading` through untouched. On scheduled email the loading state is on the ordinary
|
|
348
|
+
* path — a widget export renders while its filters load — so a decorator that overrides it
|
|
349
|
+
* corrupts the draft seed on every such open, not in an edge case. Define the decorator outside
|
|
350
|
+
* render, or the dialog remounts (and reseeds) on every parent render.
|
|
351
|
+
*
|
|
352
|
+
* @alpha
|
|
353
|
+
*/
|
|
354
|
+
export type CustomScheduledEmailDialogContextDecoratorComponent = ComponentType<{
|
|
355
|
+
children?: ReactNode;
|
|
356
|
+
}>;
|
|
313
357
|
/**
|
|
314
358
|
* @alpha
|
|
315
359
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/scheduledEmail/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/scheduledEmail/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEzF,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,cAAc,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,EACH,KA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MAAM,IAAI,CAAC;IAE7B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACrD;AAMD;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,aAAa,CAAC,0BAA0B,CAAC,CAAC;AAE5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,MAAM,mDAAmD,GAAG,aAAa,CAAC;IAC5E,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,6CAA6C,GACrD,aAAa,CAAC,oCAAoC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/DashboardRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DashboardRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/DashboardRenderer.tsx"],"names":[],"mappings":"AA8CA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AA+DnD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,2CA6LvD"}
|
|
@@ -14,6 +14,7 @@ import { DASHBOARD_OVERLAYS_Z_INDEX } from "../../constants/zIndex.js";
|
|
|
14
14
|
import { DashboardComponentsProvider } from "../../dashboardContexts/DashboardComponentsContext.js";
|
|
15
15
|
import { DashboardConfigProvider } from "../../dashboardContexts/DashboardConfigContext.js";
|
|
16
16
|
import { DashboardCustomizationsProvider } from "../../dashboardContexts/DashboardCustomizationsContext.js";
|
|
17
|
+
import { DefaultDialogContextDecorator } from "../../dashboardContexts/DefaultDialogContextDecorator.js";
|
|
17
18
|
import { ExportCsvDialogContextProvider } from "../../dashboardContexts/ExportCsvDialogContext.js";
|
|
18
19
|
import { ExportTabularPdfDialogContextProvider } from "../../dashboardContexts/ExportTabularPdfDialogContext.js";
|
|
19
20
|
import { ExportTemplateDialogContextProvider } from "../../dashboardContexts/ExportTemplateDialogContext.js";
|
|
@@ -55,10 +56,12 @@ function resolveCoreComponents(props) {
|
|
|
55
56
|
function resolveDialogComponents(props) {
|
|
56
57
|
return {
|
|
57
58
|
ScheduledEmailDialogComponent: props.ScheduledEmailDialogComponent ?? DefaultScheduledEmailDialog,
|
|
59
|
+
ScheduledEmailDialogContextDecoratorComponent: props.ScheduledEmailDialogContextDecoratorComponent ?? DefaultDialogContextDecorator,
|
|
58
60
|
ScheduledEmailManagementDialogComponent: props.ScheduledEmailManagementDialogComponent ?? DefaultScheduledEmailManagementDialog,
|
|
59
61
|
ShareDialogComponent: props.ShareDialogComponent ?? DefaultShareDialog,
|
|
60
62
|
AlertingManagementDialogComponent: props.AlertingManagementDialogComponent ?? DefaultAlertingManagementDialogNew,
|
|
61
63
|
AlertingDialogComponent: props.AlertingDialogComponent ?? DefaultAlertingDialog,
|
|
64
|
+
AlertingDialogContextDecoratorComponent: props.AlertingDialogContextDecoratorComponent ?? DefaultDialogContextDecorator,
|
|
62
65
|
SaveAsDialogComponent: props.SaveAsDialogComponent ?? DefaultSaveAsDialog,
|
|
63
66
|
DashboardSettingsDialogComponent: props.DashboardSettingsDialogComponent ?? DefaultDashboardSettingsDialog,
|
|
64
67
|
};
|
|
@@ -88,7 +91,7 @@ function shouldUseThemeProvider(props, hasThemeProvider) {
|
|
|
88
91
|
export function DashboardRenderer(props) {
|
|
89
92
|
const { backend, workspace, hasThemeProvider, dashboardOrRef, attributeFilterProvider, dateFilterProvider, measureValueFilterProvider, filterGroupProvider, widgetProvider, insightProvider, insightBodyProvider, insightMenuButtonProvider, dashboardContentProvider, insightMenuProvider, richTextMenuProvider, richTextMenuTitleProvider, insightMenuTitleProvider, insightWidgetComponentSet, attributeFilterComponentSet, dateFilterComponentSet, richTextProvider, visualizationSwitcherProvider, richTextWidgetComponentSet, visualizationSwitcherWidgetComponentSet, visualizationSwitcherToolbarComponentProvider, dashboardLayoutWidgetComponentSet, showAsTableButtonComponentProvider, drillDialogExportDropdownProvider, } = useDashboard(props);
|
|
90
93
|
const components = resolveComponentsWithDefaults(props);
|
|
91
|
-
const dashboardRender = (_jsx(BackendProvider, { backend: backend, children: _jsx(WorkspaceProvider, { workspace: workspace, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(DashboardStoreProvider, { backend: props.backend, workspace: props.workspace, dashboard: dashboardOrRef, persistedDashboard: props.persistedDashboard, filterContextRef: props.filterContextRef, eventHandlers: props.eventHandlers, config: props.config, permissions: props.permissions, onStateChange: props.onStateChange, onEventingInitialized: props.onEventingInitialized, additionalReduxContext: props.additionalReduxContext, customizationFns: props.customizationFns, widgetsOverlayFn: props.widgetsOverlayFn, initialTabId: props.initialTabId, children: _jsx(ExportTemplateDialogContextProvider, { children: _jsx(ExportXlsxDialogContextProvider, { children: _jsx(ExportCsvDialogContextProvider, { children: _jsx(ExportTabularPdfDialogContextProvider, { children: _jsx(DashboardCustomizationsProvider, { insightMenuItemsProvider: props.insightMenuItemsProvider, richTextMenuItemsProvider: props.richTextMenuItemsProvider, existingExportTransformFn: props.customizationFns?.existingExportTransformFn, slideConfig: props.config?.slideConfig, children: _jsx(DashboardComponentsProvider, { ErrorComponent: components.ErrorComponent, LoadingComponent: components.LoadingComponent, LayoutComponent: components.LayoutComponent, InsightComponentProvider: insightProvider, InsightBodyComponentProvider: insightBodyProvider, InsightMenuButtonComponentProvider: insightMenuButtonProvider, InsightMenuTitleComponentProvider: insightMenuTitleProvider, InsightMenuComponentProvider: insightMenuProvider, VisualizationSwitcherToolbarComponentProvider: visualizationSwitcherToolbarComponentProvider, RichTextComponentProvider: richTextProvider, RichTextMenuComponentProvider: richTextMenuProvider, RichTextMenuTitleComponentProvider: richTextMenuTitleProvider, VisualizationSwitcherComponentProvider: visualizationSwitcherProvider, WidgetComponentProvider: widgetProvider, ButtonBarComponent: components.ButtonBarComponent, MenuButtonComponent: components.MenuButtonComponent, TopBarComponent: components.TopBarComponent, ToolbarComponent: components.ToolbarComponent, TitleComponent: components.TitleComponent, ScheduledEmailDialogComponent: components.ScheduledEmailDialogComponent, ScheduledEmailManagementDialogComponent: components.ScheduledEmailManagementDialogComponent, ShareDialogComponent: components.ShareDialogComponent, AlertingManagementDialogComponent: components.AlertingManagementDialogComponent, AlertingDialogComponent: components.AlertingDialogComponent, SaveAsDialogComponent: components.SaveAsDialogComponent, DashboardAttributeFilterComponentProvider: attributeFilterProvider, DashboardDateFilterComponentProvider: dateFilterProvider, DashboardMeasureValueFilterComponentProvider: measureValueFilterProvider, DashboardFilterGroupComponentProvider: filterGroupProvider, FilterBarComponent: components.FilterBarComponent, SidebarComponent: components.SidebarComponent, InsightWidgetComponentSet: insightWidgetComponentSet, RichTextWidgetComponentSet: richTextWidgetComponentSet, VisualizationSwitcherWidgetComponentSet: visualizationSwitcherWidgetComponentSet, DashboardLayoutWidgetComponentSet: dashboardLayoutWidgetComponentSet, AttributeFilterComponentSet: attributeFilterComponentSet, DateFilterComponentSet: dateFilterComponentSet, EmptyLayoutDropZoneBodyComponent: components.EmptyLayoutDropZoneBodyComponent, SaveButtonComponent: components.SaveButtonComponent, DashboardContentComponentProvider: dashboardContentProvider, SettingButtonComponent: components.SettingButtonComponent, DashboardSettingsDialogComponent: components.DashboardSettingsDialogComponent, ShowAsTableButtonComponentProvider: showAsTableButtonComponentProvider, DrillDialogExportDropdownComponentProvider: drillDialogExportDropdownProvider, children: _jsx(DashboardConfigProvider, { menuButtonConfig: props.menuButtonConfig, children: _jsx(DndProvider, { backend: HTML5Backend, children: _jsx(LayoutResizeStateProvider, { children: _jsx(DashboardItemPathAndSizeProvider, { children: _jsxs(HoveredWidgetProvider, { children: [
|
|
94
|
+
const dashboardRender = (_jsx(BackendProvider, { backend: backend, children: _jsx(WorkspaceProvider, { workspace: workspace, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(DashboardStoreProvider, { backend: props.backend, workspace: props.workspace, dashboard: dashboardOrRef, persistedDashboard: props.persistedDashboard, filterContextRef: props.filterContextRef, eventHandlers: props.eventHandlers, config: props.config, permissions: props.permissions, onStateChange: props.onStateChange, onEventingInitialized: props.onEventingInitialized, additionalReduxContext: props.additionalReduxContext, customizationFns: props.customizationFns, widgetsOverlayFn: props.widgetsOverlayFn, initialTabId: props.initialTabId, children: _jsx(ExportTemplateDialogContextProvider, { children: _jsx(ExportXlsxDialogContextProvider, { children: _jsx(ExportCsvDialogContextProvider, { children: _jsx(ExportTabularPdfDialogContextProvider, { children: _jsx(DashboardCustomizationsProvider, { insightMenuItemsProvider: props.insightMenuItemsProvider, richTextMenuItemsProvider: props.richTextMenuItemsProvider, existingExportTransformFn: props.customizationFns?.existingExportTransformFn, slideConfig: props.config?.slideConfig, children: _jsx(DashboardComponentsProvider, { ErrorComponent: components.ErrorComponent, LoadingComponent: components.LoadingComponent, LayoutComponent: components.LayoutComponent, InsightComponentProvider: insightProvider, InsightBodyComponentProvider: insightBodyProvider, InsightMenuButtonComponentProvider: insightMenuButtonProvider, InsightMenuTitleComponentProvider: insightMenuTitleProvider, InsightMenuComponentProvider: insightMenuProvider, VisualizationSwitcherToolbarComponentProvider: visualizationSwitcherToolbarComponentProvider, RichTextComponentProvider: richTextProvider, RichTextMenuComponentProvider: richTextMenuProvider, RichTextMenuTitleComponentProvider: richTextMenuTitleProvider, VisualizationSwitcherComponentProvider: visualizationSwitcherProvider, WidgetComponentProvider: widgetProvider, ButtonBarComponent: components.ButtonBarComponent, MenuButtonComponent: components.MenuButtonComponent, TopBarComponent: components.TopBarComponent, ToolbarComponent: components.ToolbarComponent, TitleComponent: components.TitleComponent, ScheduledEmailDialogComponent: components.ScheduledEmailDialogComponent, ScheduledEmailDialogContextDecoratorComponent: components.ScheduledEmailDialogContextDecoratorComponent, ScheduledEmailManagementDialogComponent: components.ScheduledEmailManagementDialogComponent, ShareDialogComponent: components.ShareDialogComponent, AlertingManagementDialogComponent: components.AlertingManagementDialogComponent, AlertingDialogComponent: components.AlertingDialogComponent, AlertingDialogContextDecoratorComponent: components.AlertingDialogContextDecoratorComponent, SaveAsDialogComponent: components.SaveAsDialogComponent, DashboardAttributeFilterComponentProvider: attributeFilterProvider, DashboardDateFilterComponentProvider: dateFilterProvider, DashboardMeasureValueFilterComponentProvider: measureValueFilterProvider, DashboardFilterGroupComponentProvider: filterGroupProvider, FilterBarComponent: components.FilterBarComponent, SidebarComponent: components.SidebarComponent, InsightWidgetComponentSet: insightWidgetComponentSet, RichTextWidgetComponentSet: richTextWidgetComponentSet, VisualizationSwitcherWidgetComponentSet: visualizationSwitcherWidgetComponentSet, DashboardLayoutWidgetComponentSet: dashboardLayoutWidgetComponentSet, AttributeFilterComponentSet: attributeFilterComponentSet, DateFilterComponentSet: dateFilterComponentSet, EmptyLayoutDropZoneBodyComponent: components.EmptyLayoutDropZoneBodyComponent, SaveButtonComponent: components.SaveButtonComponent, DashboardContentComponentProvider: dashboardContentProvider, SettingButtonComponent: components.SettingButtonComponent, DashboardSettingsDialogComponent: components.DashboardSettingsDialogComponent, ShowAsTableButtonComponentProvider: showAsTableButtonComponentProvider, DrillDialogExportDropdownComponentProvider: drillDialogExportDropdownProvider, children: _jsx(DashboardConfigProvider, { menuButtonConfig: props.menuButtonConfig, children: _jsx(DndProvider, { backend: HTML5Backend, children: _jsx(LayoutResizeStateProvider, { children: _jsx(DashboardItemPathAndSizeProvider, { children: _jsxs(HoveredWidgetProvider, { children: [
|
|
92
95
|
_jsx(DensityInitializer, {}), _jsx(DashboardLoading, { ...props })
|
|
93
96
|
] }) }) }) }) }) }) }) }) }) }) }) }) }) }) }));
|
|
94
97
|
if (shouldUseThemeProvider(props, hasThemeProvider)) {
|
|
@@ -6,8 +6,8 @@ import { type IErrorProps, type ILoadingProps } from "@gooddata/sdk-ui";
|
|
|
6
6
|
import { type DashboardEventHandler } from "../../model/eventHandlers/eventHandler.js";
|
|
7
7
|
import { type DashboardDispatch, type DashboardState } from "../../model/store/types.js";
|
|
8
8
|
import { type DashboardConfig, type DashboardModelCustomizationFns, type WidgetsOverlayFn } from "../../model/types/commonTypes.js";
|
|
9
|
-
import { type CustomAlertingDialogComponent, type CustomAlertingManagementDialogComponent } from "../automations/alerting/types.js";
|
|
10
|
-
import { type CustomScheduledEmailDialogComponent, type CustomScheduledEmailManagementDialogComponent } from "../automations/scheduledEmail/types.js";
|
|
9
|
+
import { type CustomAlertingDialogComponent, type CustomAlertingDialogContextDecoratorComponent, type CustomAlertingManagementDialogComponent } from "../automations/alerting/types.js";
|
|
10
|
+
import { type CustomScheduledEmailDialogComponent, type CustomScheduledEmailDialogContextDecoratorComponent, type CustomScheduledEmailManagementDialogComponent } from "../automations/scheduledEmail/types.js";
|
|
11
11
|
import { type InsightComponentSetProvider } from "../componentDefinition/types.js";
|
|
12
12
|
import { type InsightMenuItemsProvider, type OptionalAttributeFilterComponentProvider, type OptionalDashboardContentComponentProvider, type OptionalDashboardLayoutComponentProvider, type OptionalDateFilterComponentProvider, type OptionalDrillDialogExportDropdownComponentProvider, type OptionalFilterGroupComponentProvider, type OptionalInsightBodyComponentProvider, type OptionalInsightComponentProvider, type OptionalInsightMenuButtonComponentProvider, type OptionalInsightMenuComponentProvider, type OptionalInsightMenuTitleComponentProvider, type OptionalMeasureValueFilterComponentProvider, type OptionalRichTextComponentProvider, type OptionalRichTextMenuComponentProvider, type OptionalRichTextMenuTitleComponentProvider, type OptionalShowAsTableButtonComponentProvider, type OptionalVisualizationSwitcherComponentProvider, type OptionalVisualizationSwitcherToolbarComponentProvider, type OptionalWidgetComponentProvider, type RichTextMenuItemsProvider } from "../dashboardContexts/types.js";
|
|
13
13
|
import { type CustomDashboardSettingsDialogComponent } from "../dashboardSettingsDialog/types.js";
|
|
@@ -238,6 +238,15 @@ export interface IDashboardCustomComponentProps {
|
|
|
238
238
|
* @alpha
|
|
239
239
|
*/
|
|
240
240
|
ScheduledEmailDialogComponent?: CustomScheduledEmailDialogComponent;
|
|
241
|
+
/**
|
|
242
|
+
* Specify component to decorate the data the scheduled email dialog reads.
|
|
243
|
+
*
|
|
244
|
+
* Rendered between the dialog's data context and its state model; see
|
|
245
|
+
* `CustomScheduledEmailDialogContextDecoratorComponent` for the contract and an example.
|
|
246
|
+
*
|
|
247
|
+
* @alpha
|
|
248
|
+
*/
|
|
249
|
+
ScheduledEmailDialogContextDecoratorComponent?: CustomScheduledEmailDialogContextDecoratorComponent;
|
|
241
250
|
/**
|
|
242
251
|
* Specify component to use for rendering the scheduled email management dialog.
|
|
243
252
|
*
|
|
@@ -256,6 +265,15 @@ export interface IDashboardCustomComponentProps {
|
|
|
256
265
|
* @alpha
|
|
257
266
|
*/
|
|
258
267
|
AlertingDialogComponent?: CustomAlertingDialogComponent;
|
|
268
|
+
/**
|
|
269
|
+
* Specify component to decorate the data the alerting dialog reads.
|
|
270
|
+
*
|
|
271
|
+
* Rendered between the dialog's data context and its state model; see
|
|
272
|
+
* `CustomAlertingDialogContextDecoratorComponent` for the contract and an example.
|
|
273
|
+
*
|
|
274
|
+
* @alpha
|
|
275
|
+
*/
|
|
276
|
+
AlertingDialogContextDecoratorComponent?: CustomAlertingDialogContextDecoratorComponent;
|
|
259
277
|
/**
|
|
260
278
|
* Specify component to use for rendering the share dialog.
|
|
261
279
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboard/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,MAAM,EAAE,KAAK,qBAAqB,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC5G,OAAO,EAAE,KAAK,WAAW,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AC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,qBAAqB,CAAC;IAEpC;;OAEG;IACH,kBAAkB,CAAC,EAAE,wBAAwB,CAAC;CACjD;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,wBACb,SACI,kBAAkB,EAClB,4BAA4B,EAC5B,6BAA6B,EAC7B,sBAAsB;IAC1B;;;;;;;;;;;OAWG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAAC;CACnE;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,mBAAmB,EAAE,wBAAwB;IAClF,QAAQ,CAAC,EAAE,YAAY,GAAG,CAAC,CAAC,SAAS,EAAE,GAAG,KAAK,YAAY,CAAC,CAAC;IAC7D;;;OAGG;IACH,kBAAkB,CAAC,EAAE,UAAU,CAAC;CACnC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ComponentType, type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import { type IErrorProps, type ILoadingProps } from "@gooddata/sdk-ui";
|
|
3
|
-
import { type CustomAlertingDialogComponent, type CustomAlertingManagementDialogComponent } from "../automations/alerting/types.js";
|
|
4
|
-
import { type CustomScheduledEmailDialogComponent, type CustomScheduledEmailManagementDialogComponent } from "../automations/scheduledEmail/types.js";
|
|
3
|
+
import { type CustomAlertingDialogComponent, type CustomAlertingDialogContextDecoratorComponent, type CustomAlertingManagementDialogComponent } from "../automations/alerting/types.js";
|
|
4
|
+
import { type CustomScheduledEmailDialogComponent, type CustomScheduledEmailDialogContextDecoratorComponent, type CustomScheduledEmailManagementDialogComponent } from "../automations/scheduledEmail/types.js";
|
|
5
5
|
import { type AttributeFilterComponentSet, type DashboardLayoutWidgetComponentSet, type DateFilterComponentSet, type InsightWidgetComponentSet, type RichTextWidgetComponentSet, type VisualizationSwitcherWidgetComponentSet } from "../componentDefinition/types.js";
|
|
6
6
|
import { type CustomSidebarComponent } from "../dashboard/DashboardSidebar/types.js";
|
|
7
7
|
import { type CustomDashboardSettingsDialogComponent } from "../dashboardSettingsDialog/types.js";
|
|
@@ -42,9 +42,11 @@ interface IDashboardComponentsContext {
|
|
|
42
42
|
TopBarComponent: CustomTopBarComponent;
|
|
43
43
|
ToolbarComponent: CustomToolbarComponent;
|
|
44
44
|
ScheduledEmailDialogComponent: CustomScheduledEmailDialogComponent;
|
|
45
|
+
ScheduledEmailDialogContextDecoratorComponent: CustomScheduledEmailDialogContextDecoratorComponent;
|
|
45
46
|
ScheduledEmailManagementDialogComponent: CustomScheduledEmailManagementDialogComponent;
|
|
46
47
|
AlertingManagementDialogComponent: CustomAlertingManagementDialogComponent;
|
|
47
48
|
AlertingDialogComponent: CustomAlertingDialogComponent;
|
|
49
|
+
AlertingDialogContextDecoratorComponent: CustomAlertingDialogContextDecoratorComponent;
|
|
48
50
|
ShareDialogComponent: CustomShareDialogComponent;
|
|
49
51
|
SaveAsDialogComponent: CustomSaveAsDialogComponent;
|
|
50
52
|
DashboardAttributeFilterComponentProvider: AttributeFilterComponentProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardComponentsContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/DashboardComponentsContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAEzG,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,aAAa,EAGrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,KAAK,6BAA6B,EAClC,KAAK,uCAAuC,EAC/C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,6CAA6C,EACrD,MAAM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;IAClF,qCAAqC,EAAE,4BAA4B,CAAC;IACpE,kBAAkB,EAAE,wBAAwB,CAAC;IAC7C,gBAAgB,EAAE,sBAAsB,CAAC;IACzC,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,uCAAuC,EAAE,uCAAuC,CAAC;IACjF,iCAAiC,EAAE,iCAAiC,CAAC;IACrE,2BAA2B,EAAE,2BAA2B,CAAC;IACzD,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,gCAAgC,EAAE,sCAAsC,CAAC;IACzE,mBAAmB,EAAE,yBAAyB,CAAC;IAC/C,sBAAsB,EAAE,4BAA4B,CAAC;IACrD,iCAAiC,EAAE,iCAAiC,CAAC;IACrE,gCAAgC,EAAE,sCAAsC,CAAC;IACzE,kCAAkC,EAAE,kCAAkC,CAAC;IACvE,0CAA0C,EAAE,0CAA0C,CAAC;CAC1F;
|
|
1
|
+
{"version":3,"file":"DashboardComponentsContext.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/DashboardComponentsContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAEzG,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,aAAa,EAGrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,KAAK,6BAA6B,EAClC,KAAK,6CAA6C,EAClD,KAAK,uCAAuC,EAC/C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,mDAAmD,EACxD,KAAK,6CAA6C,EACrD,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,iCAAiC,EACtC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,EAC/C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EA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E,yBAAyB,CAAC;IACrD,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,uCAAuC,EAAE,uCAAuC,CAAC;IACjF,iCAAiC,EAAE,iCAAiC,CAAC;IACrE,2BAA2B,EAAE,2BAA2B,CAAC;IACzD,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,gCAAgC,EAAE,sCAAsC,CAAC;IACzE,mBAAmB,EAAE,yBAAyB,CAAC;IAC/C,sBAAsB,EAAE,4BAA4B,CAAC;IACrD,iCAAiC,EAAE,iCAAiC,CAAC;IACrE,gCAAgC,EAAE,sCAAsC,CAAC;IACzE,kCAAkC,EAAE,kCAAkC,CAAC;IACvE,0CAA0C,EAAE,0CAA0C,CAAC;CAC1F;AA+ED;;GAEG;AACH,eAAO,MAAM,6BAA6B,6GAYzC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,iCAAkC,SAAQ,2BAA2B;IAClF,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,EACxC,QAAQ,EACR,GAAG,UAAU,EAChB,EAAE,iCAAiC,GAAG,YAAY,CAMlD"}
|
|
@@ -28,9 +28,11 @@ const DashboardComponentsContext = createContext({
|
|
|
28
28
|
TopBarComponent: ThrowMissingComponentError("TopBarComponent"),
|
|
29
29
|
ToolbarComponent: ThrowMissingComponentError("ToolbarComponent"),
|
|
30
30
|
ScheduledEmailDialogComponent: ThrowMissingComponentError("ScheduledEmailDialogComponent"),
|
|
31
|
+
ScheduledEmailDialogContextDecoratorComponent: ThrowMissingComponentError("ScheduledEmailDialogContextDecoratorComponent"),
|
|
31
32
|
ScheduledEmailManagementDialogComponent: ThrowMissingComponentError("ScheduledEmailManagementDialogComponent"),
|
|
32
33
|
AlertingManagementDialogComponent: ThrowMissingComponentError("AlertingManagementDialogComponent"),
|
|
33
34
|
AlertingDialogComponent: ThrowMissingComponentError("AlertingDialogComponent"),
|
|
35
|
+
AlertingDialogContextDecoratorComponent: ThrowMissingComponentError("AlertingDialogContextDecoratorComponent"),
|
|
34
36
|
ShareDialogComponent: ThrowMissingComponentError("ShareDialogComponent"),
|
|
35
37
|
SaveAsDialogComponent: ThrowMissingComponentError("SaveAsDialogComponent"),
|
|
36
38
|
DashboardAttributeFilterComponentProvider: ThrowMissingComponentError("DashboardAttributeFilterComponentProvider"),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Default for the dialog context-decorator slots: renders children with the dialog context untouched.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare function DefaultDialogContextDecorator({ children }: {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}): ReactElement;
|
|
10
|
+
//# sourceMappingURL=DefaultDialogContextDecorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultDialogContextDecorator.d.ts","sourceRoot":"","sources":["../../../src/presentation/dashboardContexts/DefaultDialogContextDecorator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAElG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Default for the dialog context-decorator slots: renders children with the dialog context untouched.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export function DefaultDialogContextDecorator({ children }) {
|
|
8
|
+
return _jsx(_Fragment, { children: children });
|
|
9
|
+
}
|
|
@@ -216,6 +216,7 @@ import { ParameterValue } from '@gooddata/sdk-model';
|
|
|
216
216
|
import { Patch } from 'immer';
|
|
217
217
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
218
218
|
import { PlatformEdition } from '@gooddata/sdk-model';
|
|
219
|
+
import { Provider } from 'react';
|
|
219
220
|
import { ReactElement } from 'react';
|
|
220
221
|
import { ReactNode } from 'react';
|
|
221
222
|
import { ReactReduxContextValue } from 'react-redux';
|
|
@@ -511,12 +512,24 @@ export declare function addVisualizationToSwitcherWidgetContent(ref: ObjRef, vis
|
|
|
511
512
|
|
|
512
513
|
/**
|
|
513
514
|
* Resolves the dialog component from DashboardComponentsContext and mounts it under the
|
|
514
|
-
* alerting dialog's state contexts
|
|
515
|
+
* alerting dialog's state contexts, inside the resolved context decorator — so a decorated
|
|
516
|
+
* dialog context is what both the state seeding and the dialog (default or replacement) read.
|
|
515
517
|
*
|
|
516
518
|
* @internal
|
|
517
519
|
*/
|
|
518
520
|
export declare function AlertingDialog(props: IAlertingDialogProps): ReactElement;
|
|
519
521
|
|
|
522
|
+
/**
|
|
523
|
+
* Provides the alerting create/edit dialog context.
|
|
524
|
+
*
|
|
525
|
+
* The dashboard's connector mounts the original value. Exported so a context-decorator
|
|
526
|
+
* component (`CustomAlertingDialogContextDecoratorComponent`) can re-provide a decorated value
|
|
527
|
+
* read from `useAlertingDialogContext()`; it is not a way to run the dialog outside a dashboard.
|
|
528
|
+
*
|
|
529
|
+
* @alpha
|
|
530
|
+
*/
|
|
531
|
+
export declare const AlertingDialogContextProvider: Provider<IAlertingDialogContextValue | undefined>;
|
|
532
|
+
|
|
520
533
|
/**
|
|
521
534
|
* The exact props the default dialog renders its header with, including the dialog's
|
|
522
535
|
* initial-focus ref.
|
|
@@ -1782,6 +1795,36 @@ export declare function crossFiltering(insight: IInsight, drillDefinition: ICros
|
|
|
1782
1795
|
*/
|
|
1783
1796
|
export declare type CustomAlertingDialogComponent = ComponentType<IAlertingDialogProps>;
|
|
1784
1797
|
|
|
1798
|
+
/**
|
|
1799
|
+
* Decorates the data the alerting create/edit dialog reads.
|
|
1800
|
+
*
|
|
1801
|
+
* The dashboard mounts this component between the connector-provided dialog context and the
|
|
1802
|
+
* dialog's state model, so the value it re-provides is what both the default dialog and the
|
|
1803
|
+
* state seeding read — a wholesale `AlertingDialogComponent` replacement sees it too. Read the
|
|
1804
|
+
* current value with `useAlertingDialogContext()`, decorate the members to adjust, and
|
|
1805
|
+
* re-provide via `AlertingDialogContextProvider`:
|
|
1806
|
+
*
|
|
1807
|
+
* @example
|
|
1808
|
+
* ```tsx
|
|
1809
|
+
* function InsightDecorator({ children }: { children?: ReactNode }) {
|
|
1810
|
+
* const ctx = useAlertingDialogContext();
|
|
1811
|
+
* const insight = useMyDecoratedInsight(ctx.insight);
|
|
1812
|
+
* const decorated = useMemo(() => ({ ...ctx, insight }), [ctx, insight]);
|
|
1813
|
+
* return <AlertingDialogContextProvider value={decorated}>{children}</AlertingDialogContextProvider>;
|
|
1814
|
+
* }
|
|
1815
|
+
* // <Dashboard AlertingDialogContextDecoratorComponent={InsightDecorator} />
|
|
1816
|
+
* ```
|
|
1817
|
+
*
|
|
1818
|
+
* Pass `isLoading` through untouched: the dialog's state model defers seeding until it is
|
|
1819
|
+
* false, and a decorator that overrides it corrupts the draft seed. Define the decorator
|
|
1820
|
+
* outside render, or the dialog remounts (and reseeds) on every parent render.
|
|
1821
|
+
*
|
|
1822
|
+
* @alpha
|
|
1823
|
+
*/
|
|
1824
|
+
export declare type CustomAlertingDialogContextDecoratorComponent = ComponentType<{
|
|
1825
|
+
children?: ReactNode;
|
|
1826
|
+
}>;
|
|
1827
|
+
|
|
1785
1828
|
/**
|
|
1786
1829
|
* @alpha
|
|
1787
1830
|
*/
|
|
@@ -1991,6 +2034,41 @@ export declare type CustomSaveButtonComponent = ComponentType<ISaveButtonProps>;
|
|
|
1991
2034
|
*/
|
|
1992
2035
|
export declare type CustomScheduledEmailDialogComponent = ComponentType<IScheduledEmailDialogProps>;
|
|
1993
2036
|
|
|
2037
|
+
/**
|
|
2038
|
+
* Decorates the data the scheduled-email create/edit dialog reads.
|
|
2039
|
+
*
|
|
2040
|
+
* The dashboard mounts this component between the connector-provided dialog context and the
|
|
2041
|
+
* dialog's state model, so the value it re-provides is what both the default dialog and the
|
|
2042
|
+
* state seeding read — a wholesale `ScheduledEmailDialogComponent` replacement sees it too.
|
|
2043
|
+
* Read the current value with `useScheduledEmailDialogContext()`, decorate the members to
|
|
2044
|
+
* adjust, and re-provide via `ScheduledEmailDialogContextProvider`:
|
|
2045
|
+
*
|
|
2046
|
+
* @example
|
|
2047
|
+
* ```tsx
|
|
2048
|
+
* function ChannelsDecorator({ children }: { children?: ReactNode }) {
|
|
2049
|
+
* const ctx = useScheduledEmailDialogContext();
|
|
2050
|
+
* const notificationChannels = useMyFilteredChannels(ctx.notificationChannels);
|
|
2051
|
+
* const decorated = useMemo(() => ({ ...ctx, notificationChannels }), [ctx, notificationChannels]);
|
|
2052
|
+
* return (
|
|
2053
|
+
* <ScheduledEmailDialogContextProvider value={decorated}>
|
|
2054
|
+
* {children}
|
|
2055
|
+
* </ScheduledEmailDialogContextProvider>
|
|
2056
|
+
* );
|
|
2057
|
+
* }
|
|
2058
|
+
* // <Dashboard ScheduledEmailDialogContextDecoratorComponent={ChannelsDecorator} />
|
|
2059
|
+
* ```
|
|
2060
|
+
*
|
|
2061
|
+
* Pass `isLoading` through untouched. On scheduled email the loading state is on the ordinary
|
|
2062
|
+
* path — a widget export renders while its filters load — so a decorator that overrides it
|
|
2063
|
+
* corrupts the draft seed on every such open, not in an edge case. Define the decorator outside
|
|
2064
|
+
* render, or the dialog remounts (and reseeds) on every parent render.
|
|
2065
|
+
*
|
|
2066
|
+
* @alpha
|
|
2067
|
+
*/
|
|
2068
|
+
export declare type CustomScheduledEmailDialogContextDecoratorComponent = ComponentType<{
|
|
2069
|
+
children?: ReactNode;
|
|
2070
|
+
}>;
|
|
2071
|
+
|
|
1994
2072
|
/**
|
|
1995
2073
|
* @alpha
|
|
1996
2074
|
*/
|
|
@@ -5798,14 +5876,17 @@ export declare interface IAlertingDialogProps {
|
|
|
5798
5876
|
/**
|
|
5799
5877
|
* In case, we are not creating new alert, but editing existing one, this is the active alert to be edited.
|
|
5800
5878
|
*
|
|
5801
|
-
* @deprecated
|
|
5879
|
+
* @deprecated has no effect since 11.51 — the dialog reads `alertToEdit` from
|
|
5880
|
+
* `useAlertingDialogContext()`. To adjust what it reads, use the
|
|
5881
|
+
* `AlertingDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
5802
5882
|
*/
|
|
5803
5883
|
alertToEdit?: IAutomationMetadataObject;
|
|
5804
5884
|
/**
|
|
5805
5885
|
* Notification channels in organization
|
|
5806
5886
|
*
|
|
5807
|
-
* @deprecated
|
|
5808
|
-
*
|
|
5887
|
+
* @deprecated has no effect since 11.51 — the dialog reads `notificationChannels` from
|
|
5888
|
+
* `useAlertingDialogContext()`. To adjust what it reads, use the
|
|
5889
|
+
* `AlertingDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
5809
5890
|
*/
|
|
5810
5891
|
notificationChannels?: INotificationChannelIdentifier[] | INotificationChannelMetadataObject[];
|
|
5811
5892
|
/**
|
|
@@ -5816,7 +5897,9 @@ export declare interface IAlertingDialogProps {
|
|
|
5816
5897
|
* supports insight widgets; custom widgets and nested layouts are not valid
|
|
5817
5898
|
* alert targets and were silently discarded at the connector boundary anyway.
|
|
5818
5899
|
*
|
|
5819
|
-
* @deprecated
|
|
5900
|
+
* @deprecated has no effect since 11.51 — the dialog reads `widget` from
|
|
5901
|
+
* `useAlertingDialogContext()`. To adjust what it reads, use the
|
|
5902
|
+
* `AlertingDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
5820
5903
|
*/
|
|
5821
5904
|
widget?: IWidget;
|
|
5822
5905
|
/**
|
|
@@ -5824,13 +5907,17 @@ export declare interface IAlertingDialogProps {
|
|
|
5824
5907
|
*
|
|
5825
5908
|
* Note: this is available only when alerting for widget, not dashboard.
|
|
5826
5909
|
*
|
|
5827
|
-
* @deprecated
|
|
5910
|
+
* @deprecated has no effect since 11.51 — the dialog reads `insight` from
|
|
5911
|
+
* `useAlertingDialogContext()`. To adjust what it reads, use the
|
|
5912
|
+
* `AlertingDialogContextDecoratorComponent` dashboard prop (e.g. so an alert follows a
|
|
5913
|
+
* widget's date-granularity selection). Prop will be removed.
|
|
5828
5914
|
*/
|
|
5829
5915
|
insight?: IInsight;
|
|
5830
5916
|
/**
|
|
5831
5917
|
* Is alert dialog loading initial data, before it can be rendered?
|
|
5832
5918
|
*
|
|
5833
|
-
* @deprecated
|
|
5919
|
+
* @deprecated has no effect since 11.51 — the dialog reads `isLoading` from
|
|
5920
|
+
* `useAlertingDialogContext()`. Prop will be removed.
|
|
5834
5921
|
*/
|
|
5835
5922
|
isLoading?: boolean;
|
|
5836
5923
|
/**
|
|
@@ -8320,6 +8407,15 @@ export declare interface IDashboardCustomComponentProps {
|
|
|
8320
8407
|
* @alpha
|
|
8321
8408
|
*/
|
|
8322
8409
|
ScheduledEmailDialogComponent?: CustomScheduledEmailDialogComponent;
|
|
8410
|
+
/**
|
|
8411
|
+
* Specify component to decorate the data the scheduled email dialog reads.
|
|
8412
|
+
*
|
|
8413
|
+
* Rendered between the dialog's data context and its state model; see
|
|
8414
|
+
* `CustomScheduledEmailDialogContextDecoratorComponent` for the contract and an example.
|
|
8415
|
+
*
|
|
8416
|
+
* @alpha
|
|
8417
|
+
*/
|
|
8418
|
+
ScheduledEmailDialogContextDecoratorComponent?: CustomScheduledEmailDialogContextDecoratorComponent;
|
|
8323
8419
|
/**
|
|
8324
8420
|
* Specify component to use for rendering the scheduled email management dialog.
|
|
8325
8421
|
*
|
|
@@ -8338,6 +8434,15 @@ export declare interface IDashboardCustomComponentProps {
|
|
|
8338
8434
|
* @alpha
|
|
8339
8435
|
*/
|
|
8340
8436
|
AlertingDialogComponent?: CustomAlertingDialogComponent;
|
|
8437
|
+
/**
|
|
8438
|
+
* Specify component to decorate the data the alerting dialog reads.
|
|
8439
|
+
*
|
|
8440
|
+
* Rendered between the dialog's data context and its state model; see
|
|
8441
|
+
* `CustomAlertingDialogContextDecoratorComponent` for the contract and an example.
|
|
8442
|
+
*
|
|
8443
|
+
* @alpha
|
|
8444
|
+
*/
|
|
8445
|
+
AlertingDialogContextDecoratorComponent?: CustomAlertingDialogContextDecoratorComponent;
|
|
8341
8446
|
/**
|
|
8342
8447
|
* Specify component to use for rendering the share dialog.
|
|
8343
8448
|
*
|
|
@@ -17406,14 +17511,17 @@ export declare interface IScheduledEmailDialogProps {
|
|
|
17406
17511
|
/**
|
|
17407
17512
|
* In case, we are not creating new schedule, but editing existing one, this is the active schedule to be edited.
|
|
17408
17513
|
*
|
|
17409
|
-
* @deprecated
|
|
17514
|
+
* @deprecated has no effect since 11.51 — the dialog reads `scheduledExportToEdit` from
|
|
17515
|
+
* `useScheduledEmailDialogContext()`. To adjust what it reads, use the
|
|
17516
|
+
* `ScheduledEmailDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
17410
17517
|
*/
|
|
17411
17518
|
scheduledExportToEdit?: IAutomationMetadataObject;
|
|
17412
17519
|
/**
|
|
17413
17520
|
* Notification channels in organization
|
|
17414
17521
|
*
|
|
17415
|
-
* @deprecated
|
|
17416
|
-
*
|
|
17522
|
+
* @deprecated has no effect since 11.51 — the dialog reads `notificationChannels` from
|
|
17523
|
+
* `useScheduledEmailDialogContext()`. To adjust what it reads, use the
|
|
17524
|
+
* `ScheduledEmailDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
17417
17525
|
*/
|
|
17418
17526
|
notificationChannels?: INotificationChannelIdentifier[] | INotificationChannelMetadataObject[];
|
|
17419
17527
|
/**
|
|
@@ -17424,7 +17532,9 @@ export declare interface IScheduledEmailDialogProps {
|
|
|
17424
17532
|
* supports insight widgets; custom widgets and nested layouts are not valid
|
|
17425
17533
|
* export targets and were silently discarded at the connector boundary anyway.
|
|
17426
17534
|
*
|
|
17427
|
-
* @deprecated
|
|
17535
|
+
* @deprecated has no effect since 11.51 — the dialog reads `widget` from
|
|
17536
|
+
* `useScheduledEmailDialogContext()`. To adjust what it reads, use the
|
|
17537
|
+
* `ScheduledEmailDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
17428
17538
|
*/
|
|
17429
17539
|
widget?: IWidget;
|
|
17430
17540
|
/**
|
|
@@ -17432,7 +17542,9 @@ export declare interface IScheduledEmailDialogProps {
|
|
|
17432
17542
|
*
|
|
17433
17543
|
* Note: this is available only when scheduling export for widget, not dashboard.
|
|
17434
17544
|
*
|
|
17435
|
-
* @deprecated
|
|
17545
|
+
* @deprecated has no effect since 11.51 — the dialog reads `insight` from
|
|
17546
|
+
* `useScheduledEmailDialogContext()`. To adjust what it reads, use the
|
|
17547
|
+
* `ScheduledEmailDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
17436
17548
|
*/
|
|
17437
17549
|
insight?: IInsight;
|
|
17438
17550
|
/**
|
|
@@ -17447,7 +17559,9 @@ export declare interface IScheduledEmailDialogProps {
|
|
|
17447
17559
|
*
|
|
17448
17560
|
* - If we are editing an existing scheduled export, this will contain its filters, as changing saved filters is currently not allowed.
|
|
17449
17561
|
*
|
|
17450
|
-
* @deprecated
|
|
17562
|
+
* @deprecated has no effect since 11.51 — the dialog reads `dashboardFilters` from
|
|
17563
|
+
* `useScheduledEmailDialogContext()`. To adjust what it reads, use the
|
|
17564
|
+
* `ScheduledEmailDialogContextDecoratorComponent` dashboard prop. Prop will be removed.
|
|
17451
17565
|
*/
|
|
17452
17566
|
dashboardFilters?: FilterContextItem[];
|
|
17453
17567
|
/**
|
|
@@ -17468,7 +17582,8 @@ export declare interface IScheduledEmailDialogProps {
|
|
|
17468
17582
|
/**
|
|
17469
17583
|
* Is scheduled email dialog loading initial data, before it can be rendered?
|
|
17470
17584
|
*
|
|
17471
|
-
* @deprecated
|
|
17585
|
+
* @deprecated has no effect since 11.51 — the dialog reads `isLoading` from
|
|
17586
|
+
* `useScheduledEmailDialogContext()`. Prop will be removed.
|
|
17472
17587
|
*/
|
|
17473
17588
|
isLoading?: boolean;
|
|
17474
17589
|
/**
|
|
@@ -23333,12 +23448,26 @@ export declare type SavingState = {
|
|
|
23333
23448
|
|
|
23334
23449
|
/**
|
|
23335
23450
|
* Resolves the dialog component from DashboardComponentsContext and mounts it under the
|
|
23336
|
-
* scheduled-export dialog's state contexts
|
|
23451
|
+
* scheduled-export dialog's state contexts, inside the resolved context decorator — so a
|
|
23452
|
+
* decorated dialog context is what both the state seeding and the dialog (default or
|
|
23453
|
+
* replacement) read.
|
|
23337
23454
|
*
|
|
23338
23455
|
* @internal
|
|
23339
23456
|
*/
|
|
23340
23457
|
export declare function ScheduledEmailDialog(props: IScheduledEmailDialogProps): ReactElement;
|
|
23341
23458
|
|
|
23459
|
+
/**
|
|
23460
|
+
* Provides the scheduled-email create/edit dialog context.
|
|
23461
|
+
*
|
|
23462
|
+
* The dashboard's connector mounts the original value. Exported so a context-decorator
|
|
23463
|
+
* component (`CustomScheduledEmailDialogContextDecoratorComponent`) can re-provide a decorated
|
|
23464
|
+
* value read from `useScheduledEmailDialogContext()`; it is not a way to run the dialog outside
|
|
23465
|
+
* a dashboard.
|
|
23466
|
+
*
|
|
23467
|
+
* @alpha
|
|
23468
|
+
*/
|
|
23469
|
+
export declare const ScheduledEmailDialogContextProvider: Provider<IScheduledEmailDialogContextValue | undefined>;
|
|
23470
|
+
|
|
23342
23471
|
/**
|
|
23343
23472
|
* The exact props the default dialog renders its header with, including the dialog's
|
|
23344
23473
|
* initial-focus ref.
|