@gooddata/sdk-ui-dashboard 11.55.0-alpha.2 → 11.55.0-alpha.4

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 (204) hide show
  1. package/NOTICE +9 -9
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/_staging/automation/index.d.ts +19 -1
  5. package/esm/_staging/automation/index.d.ts.map +1 -1
  6. package/esm/_staging/automation/index.js +44 -8
  7. package/esm/_staging/dashboard/dashboardFilterConverter.d.ts +1 -18
  8. package/esm/_staging/dashboard/dashboardFilterConverter.d.ts.map +1 -1
  9. package/esm/_staging/dashboard/dashboardFilterConverter.js +1 -62
  10. package/esm/_staging/insight/insightWidgetProperties.d.ts +6 -0
  11. package/esm/_staging/insight/insightWidgetProperties.d.ts.map +1 -0
  12. package/esm/_staging/insight/insightWidgetProperties.js +32 -0
  13. package/esm/_staging/sharedHooks/useRichTextFilters.d.ts.map +1 -1
  14. package/esm/_staging/sharedHooks/useRichTextFilters.js +1 -2
  15. package/esm/index.d.ts +25 -7
  16. package/esm/index.d.ts.map +1 -1
  17. package/esm/index.js +22 -4
  18. package/esm/internal.d.ts +3 -3
  19. package/esm/internal.d.ts.map +1 -1
  20. package/esm/internal.js +3 -3
  21. package/esm/kdaDialog/dialog/hooks/useChangeAnalysis.d.ts.map +1 -1
  22. package/esm/kdaDialog/dialog/hooks/useChangeAnalysis.js +1 -2
  23. package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
  24. package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +1 -2
  25. package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
  26. package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +1 -2
  27. package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts +11 -5
  28. package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.d.ts.map +1 -1
  29. package/esm/model/commandHandlers/scheduledEmail/automationParametersRestore.js +24 -7
  30. package/esm/model/commandHandlers/scheduledEmail/csvRawExecutionDefinition.d.ts.map +1 -1
  31. package/esm/model/commandHandlers/scheduledEmail/csvRawExecutionDefinition.js +1 -2
  32. package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
  33. package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +5 -0
  34. package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.d.ts.map +1 -1
  35. package/esm/model/commandHandlers/widgets/exportInsightWidgetHandler.js +21 -3
  36. package/esm/model/commandHandlers/widgets/exportRawInsightWidgetHandler.js +1 -2
  37. package/esm/model/commands/filters.d.ts +1 -1
  38. package/esm/model/commands/filters.js +1 -1
  39. package/esm/model/events/filters.d.ts +6 -6
  40. package/esm/model/store/tabs/layout/layoutSelectors.d.ts.map +1 -1
  41. package/esm/model/store/tabs/layout/layoutSelectors.js +1 -2
  42. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +10 -22
  43. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
  44. package/esm/model/store/tabs/parameters/parametersHelpers.js +13 -42
  45. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +8 -10
  46. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
  47. package/esm/model/store/tabs/parameters/parametersSelectors.js +22 -32
  48. package/esm/presentation/automations/alerting/AlertingManagementDialog.d.ts +4 -0
  49. package/esm/presentation/automations/alerting/AlertingManagementDialog.d.ts.map +1 -1
  50. package/esm/presentation/automations/alerting/AlertingManagementDialog.js +6 -2
  51. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +16 -16
  52. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  53. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +34 -109
  54. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.d.ts +10 -0
  55. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.d.ts.map +1 -0
  56. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.js +12 -0
  57. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.d.ts +49 -0
  58. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.d.ts.map +1 -0
  59. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.js +128 -0
  60. package/esm/presentation/automations/alerting/blocks/DefaultLoadingAlertingDialog.d.ts.map +1 -0
  61. package/esm/presentation/automations/alerting/types.d.ts +109 -0
  62. package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
  63. package/esm/presentation/automations/connectors/AlertingConnector.d.ts +3 -3
  64. package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -1
  65. package/esm/presentation/automations/connectors/AlertingConnector.js +6 -4
  66. package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts +3 -3
  67. package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts.map +1 -1
  68. package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +6 -4
  69. package/esm/presentation/automations/connectors/hooks/useBuildAlertingManagementDialogContext.d.ts.map +1 -1
  70. package/esm/presentation/automations/connectors/hooks/useBuildAlertingManagementDialogContext.js +7 -0
  71. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts +22 -0
  72. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts.map +1 -1
  73. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.js +10 -0
  74. package/esm/presentation/automations/contexts/AutomationsContext.d.ts +10 -0
  75. package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
  76. package/esm/presentation/automations/contexts/AutomationsContext.js +10 -0
  77. package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.d.ts +10 -0
  78. package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.d.ts.map +1 -1
  79. package/esm/presentation/automations/contexts/ScheduledEmailManagementDialogContext.js +10 -0
  80. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +15 -10
  81. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
  82. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +45 -198
  83. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts +2 -18
  84. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts.map +1 -1
  85. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts +2 -23
  86. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts.map +1 -1
  87. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.d.ts +11 -0
  88. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.d.ts.map +1 -0
  89. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.js +12 -0
  90. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.d.ts +11 -0
  91. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.d.ts.map +1 -0
  92. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.js +12 -0
  93. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.d.ts +11 -0
  94. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.d.ts.map +1 -0
  95. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.js +12 -0
  96. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.d.ts +11 -0
  97. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.d.ts.map +1 -0
  98. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.js +12 -0
  99. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.d.ts +11 -0
  100. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.d.ts.map +1 -0
  101. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.js +12 -0
  102. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.d.ts +11 -0
  103. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.d.ts.map +1 -0
  104. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.js +12 -0
  105. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.d.ts +2 -17
  106. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.d.ts.map +1 -1
  107. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.js +0 -3
  108. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.d.ts +2 -6
  109. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.d.ts.map +1 -1
  110. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +1 -1
  111. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.d.ts +2 -10
  112. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.d.ts.map +1 -1
  113. package/esm/presentation/automations/scheduledEmail/ScheduledEmailManagementDialog.d.ts +4 -0
  114. package/esm/presentation/automations/scheduledEmail/ScheduledEmailManagementDialog.d.ts.map +1 -1
  115. package/esm/presentation/automations/scheduledEmail/ScheduledEmailManagementDialog.js +6 -2
  116. package/esm/presentation/automations/scheduledEmail/blocks/DefaultLoadingScheduledEmailDialog.d.ts.map +1 -0
  117. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.d.ts +16 -0
  118. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.d.ts.map +1 -0
  119. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.js +28 -0
  120. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.d.ts +16 -0
  121. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.d.ts.map +1 -0
  122. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.js +28 -0
  123. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.d.ts +15 -0
  124. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.d.ts.map +1 -0
  125. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.js +27 -0
  126. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.d.ts +16 -0
  127. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.d.ts.map +1 -0
  128. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.js +24 -0
  129. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.d.ts +59 -0
  130. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.d.ts.map +1 -0
  131. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.js +195 -0
  132. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.d.ts +16 -0
  133. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.d.ts.map +1 -0
  134. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.js +29 -0
  135. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.d.ts +16 -0
  136. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.d.ts.map +1 -0
  137. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.js +28 -0
  138. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.d.ts +6 -0
  139. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.d.ts.map +1 -0
  140. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.js +13 -0
  141. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.d.ts +73 -0
  142. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.d.ts.map +1 -0
  143. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.js +168 -0
  144. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.d.ts +30 -0
  145. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.d.ts.map +1 -0
  146. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.js +26 -0
  147. package/esm/presentation/automations/scheduledEmail/types.d.ts +351 -1
  148. package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
  149. package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts +8 -4
  150. package/esm/presentation/automations/shared/automationFilters/automationParameters.d.ts.map +1 -1
  151. package/esm/presentation/automations/shared/automationFilters/automationParameters.js +30 -13
  152. package/esm/presentation/automations/shared/automationFilters/components/AutomationParameter.d.ts.map +1 -1
  153. package/esm/presentation/automations/shared/automationFilters/components/AutomationParameter.js +1 -4
  154. package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts.map +1 -1
  155. package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.js +12 -7
  156. package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.d.ts.map +1 -1
  157. package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.js +3 -1
  158. package/esm/presentation/automations/shared/filters/conversions.d.ts.map +1 -1
  159. package/esm/presentation/automations/shared/filters/conversions.js +1 -2
  160. package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.d.ts +51 -0
  161. package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.d.ts.map +1 -0
  162. package/esm/presentation/automations/{scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect → shared/hooks}/useWorkspaceUsersSearch.js +13 -0
  163. package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
  164. package/esm/presentation/dashboard/components/DashboardRenderer.js +4 -1
  165. package/esm/presentation/dashboard/components/DashboardScreenSizeContext.js +1 -1
  166. package/esm/presentation/dashboard/types.d.ts +32 -2
  167. package/esm/presentation/dashboard/types.d.ts.map +1 -1
  168. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +6 -2
  169. package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
  170. package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +3 -0
  171. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.d.ts.map +1 -1
  172. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +1 -2
  173. package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.d.ts.map +1 -1
  174. package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.js +1 -2
  175. package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +1 -3
  176. package/esm/presentation/filterBar/attributeFilter/useParentFilters.d.ts.map +1 -1
  177. package/esm/presentation/filterBar/attributeFilter/useParentFilters.js +1 -2
  178. package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.d.ts.map +1 -1
  179. package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.js +12 -8
  180. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +91 -91
  181. package/esm/presentation/widget/insight/ViewModeDashboardInsight/useResolveDashboardInsightProperties.d.ts.map +1 -1
  182. package/esm/presentation/widget/insight/ViewModeDashboardInsight/useResolveDashboardInsightProperties.js +3 -35
  183. package/esm/presentation/widget/insightMenu/types.js +1 -1
  184. package/esm/presentation/widget/richTextMenu/types.d.ts.map +1 -1
  185. package/esm/presentation/widget/richTextMenu/types.js +2 -1
  186. package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts +2 -1
  187. package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts.map +1 -1
  188. package/esm/sdk-ui-dashboard.d.ts +1118 -161
  189. package/esm/types.d.ts +59 -3
  190. package/esm/types.d.ts.map +1 -1
  191. package/esm/types.js +2 -4
  192. package/package.json +23 -24
  193. package/styles/scss/dashboard.scss +4 -4
  194. package/esm/converters/filterConverters.d.ts +0 -93
  195. package/esm/converters/filterConverters.d.ts.map +0 -1
  196. package/esm/converters/filterConverters.js +0 -199
  197. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts.map +0 -1
  198. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultLoadingScheduledEmailDialog.d.ts.map +0 -1
  199. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts +0 -13
  200. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts.map +0 -1
  201. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog → blocks}/DefaultLoadingAlertingDialog.d.ts +0 -0
  202. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog → blocks}/DefaultLoadingAlertingDialog.js +0 -0
  203. /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog → blocks}/DefaultLoadingScheduledEmailDialog.d.ts +0 -0
  204. /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog → blocks}/DefaultLoadingScheduledEmailDialog.js +0 -0
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
3
+ import { DefaultScheduledEmailDialogWidgetAttachments } from "../DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.js";
4
+ import { useScheduledEmailDialogWidgetAttachmentsProps } from "../state/useScheduledEmailDialogFieldProps.js";
5
+ import { WhenScheduledEmailDialogLoaded } from "./WhenScheduledEmailDialogLoaded.js";
6
+ /**
7
+ * The scheduled-export dialog's widget-attachments field, connected to the dialog's state.
8
+ *
9
+ * Renders {@link DefaultScheduledEmailDialogWidgetAttachments} with the props of
10
+ * {@link useScheduledEmailDialogWidgetAttachmentsProps}; every prop passed here replaces the hook's
11
+ * value for that prop wholesale. Renders nothing while `useScheduledEmailDialogContext().isLoading`
12
+ * is true and when the dialog context has no `widget` (a dashboard schedule renders
13
+ * {@link ScheduledEmailDialogDashboardAttachments} instead), the same visibility the default dialog
14
+ * gives the field.
15
+ *
16
+ * @alpha
17
+ */
18
+ export function ScheduledEmailDialogWidgetAttachments(props) {
19
+ return (_jsx(WhenScheduledEmailDialogLoaded, { children: _jsx(ConnectedScheduledEmailDialogWidgetAttachments, { ...props }) }));
20
+ }
21
+ function ConnectedScheduledEmailDialogWidgetAttachments(overrides) {
22
+ const defaultProps = useScheduledEmailDialogWidgetAttachmentsProps();
23
+ const { widget } = useScheduledEmailDialogContext();
24
+ if (!widget) {
25
+ return null;
26
+ }
27
+ return _jsx(DefaultScheduledEmailDialogWidgetAttachments, { ...defaultProps, ...overrides });
28
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Whether the draft's selected notification channel delivers in-platform only.
3
+ * The subject and message fields hide for such a channel.
4
+ */
5
+ export declare function useIsInPlatformChannel(): boolean;
6
+ //# sourceMappingURL=useIsInPlatformChannel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsInPlatformChannel.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAOhD"}
@@ -0,0 +1,13 @@
1
+ // (C) 2026 GoodData Corporation
2
+ import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
3
+ import { useScheduledExportDraft } from "./ScheduledExportDraftContext.js";
4
+ /**
5
+ * Whether the draft's selected notification channel delivers in-platform only.
6
+ * The subject and message fields hide for such a channel.
7
+ */
8
+ export function useIsInPlatformChannel() {
9
+ const { notificationChannels } = useScheduledEmailDialogContext();
10
+ const { editedAutomation } = useScheduledExportDraft();
11
+ const selectedChannel = notificationChannels.find((channel) => channel.id === editedAutomation.notificationChannel);
12
+ return selectedChannel?.destinationType === "inPlatform";
13
+ }
@@ -0,0 +1,73 @@
1
+ import { type KeyboardEvent } from "react";
2
+ import { type IScheduledEmailDialogDashboardAttachmentsProps, type IScheduledEmailDialogEvaluationModeProps, type IScheduledEmailDialogMessageProps, type IScheduledEmailDialogRecurrenceProps, type IScheduledEmailDialogSubjectProps, type IScheduledEmailDialogWidgetAttachmentsProps } from "../types.js";
3
+ /**
4
+ * Inputs of {@link useScheduledEmailDialogRecurrenceProps} that come from the dialog rather than its state.
5
+ *
6
+ * @alpha
7
+ */
8
+ export interface IUseScheduledEmailDialogRecurrencePropsInput {
9
+ /**
10
+ * Key-down handler of the recurrence inputs; the dialog submits on Enter through it.
11
+ */
12
+ onKeyDownSubmit: (event: KeyboardEvent) => void;
13
+ }
14
+ /**
15
+ * The exact props the default scheduled-email dialog renders its recurrence field with.
16
+ *
17
+ * Throws outside the scheduled-export dialog's state providers.
18
+ *
19
+ * @alpha
20
+ */
21
+ export declare function useScheduledEmailDialogRecurrenceProps({ onKeyDownSubmit }: IUseScheduledEmailDialogRecurrencePropsInput): IScheduledEmailDialogRecurrenceProps;
22
+ /**
23
+ * Inputs of {@link useScheduledEmailDialogSubjectProps} that come from the dialog rather than its state.
24
+ *
25
+ * @alpha
26
+ */
27
+ export interface IUseScheduledEmailDialogSubjectPropsInput {
28
+ /**
29
+ * Called on Enter in the subject input when submit is not disabled.
30
+ */
31
+ onKeyDownSubmit: () => void;
32
+ }
33
+ /**
34
+ * The exact props the default scheduled-email dialog renders its subject field with.
35
+ *
36
+ * Throws outside the scheduled-export dialog's state providers.
37
+ *
38
+ * @alpha
39
+ */
40
+ export declare function useScheduledEmailDialogSubjectProps({ onKeyDownSubmit }: IUseScheduledEmailDialogSubjectPropsInput): IScheduledEmailDialogSubjectProps;
41
+ /**
42
+ * The exact props the default scheduled-email dialog renders its message field with.
43
+ *
44
+ * Throws outside the scheduled-export dialog's state providers.
45
+ *
46
+ * @alpha
47
+ */
48
+ export declare function useScheduledEmailDialogMessageProps(): IScheduledEmailDialogMessageProps;
49
+ /**
50
+ * The exact props the default scheduled-email dialog renders its widget-attachments field with.
51
+ *
52
+ * Throws outside the scheduled-export dialog's state providers.
53
+ *
54
+ * @alpha
55
+ */
56
+ export declare function useScheduledEmailDialogWidgetAttachmentsProps(): IScheduledEmailDialogWidgetAttachmentsProps;
57
+ /**
58
+ * The exact props the default scheduled-email dialog renders its dashboard-attachments field with.
59
+ *
60
+ * Throws outside the scheduled-export dialog's state providers.
61
+ *
62
+ * @alpha
63
+ */
64
+ export declare function useScheduledEmailDialogDashboardAttachmentsProps(): IScheduledEmailDialogDashboardAttachmentsProps;
65
+ /**
66
+ * The exact props the default scheduled-email dialog renders its evaluation-mode checkbox with.
67
+ *
68
+ * Throws outside the scheduled-export dialog's state providers.
69
+ *
70
+ * @alpha
71
+ */
72
+ export declare function useScheduledEmailDialogEvaluationModeProps(): IScheduledEmailDialogEvaluationModeProps;
73
+ //# sourceMappingURL=useScheduledEmailDialogFieldProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScheduledEmailDialogFieldProps.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAO3C,OAAO,EACH,KAAK,8CAA8C,EACnD,KAAK,wCAAwC,EAC7C,KAAK,iCAAiC,EACtC,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACtC,KAAK,2CAA2C,EACnD,MAAM,aAAa,CAAC;AAkCrB;;;;GAIG;AACH,MAAM,WAAW,4CAA4C;IACzD;;OAEG;IACH,eAAe,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;CACnD;AAED;;;;;;GAMG;AACH,wBAAgB,sCAAsC,CAAC,EACnD,eAAe,EAClB,EAAE,4CAA4C,GAAG,oCAAoC,CAwBrF;AAED;;;;GAIG;AACH,MAAM,WAAW,yCAAyC;IACtD;;OAEG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,mCAAmC,CAAC,EAChD,eAAe,EAClB,EAAE,yCAAyC,GAAG,iCAAiC,CAa/E;AAED;;;;;;GAMG;AACH,wBAAgB,mCAAmC,IAAI,iCAAiC,CAQvF;AAED;;;;;;GAMG;AACH,wBAAgB,6CAA6C,IAAI,2CAA2C,CAoC3G;AAED;;;;;;GAMG;AACH,wBAAgB,gDAAgD,IAAI,8CAA8C,CAuBjH;AAED;;;;;;GAMG;AACH,wBAAgB,0CAA0C,IAAI,wCAAwC,CAQrG"}
@@ -0,0 +1,168 @@
1
+ // (C) 2026 GoodData Corporation
2
+ import { getTimezoneDisplayLabel } from "@gooddata/sdk-ui-kit";
3
+ import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
4
+ import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
5
+ import { getDefaultCronExpression } from "../utils/cron.js";
6
+ import { TIMEZONE_DEFAULT } from "../utils/timezone.js";
7
+ import { useScheduledExportActions } from "./ScheduledExportActionsContext.js";
8
+ import { useScheduledExportDraft } from "./ScheduledExportDraftContext.js";
9
+ import { useScheduledExportAttachments } from "./useScheduledExportAttachments.js";
10
+ import { useScheduledExportDialogValidity } from "./useScheduledExportDialogValidity.js";
11
+ const CLOSE_ON_PARENT_SCROLL = true;
12
+ // Exhaustive by construction: a WidgetAttachmentType member missing here is a type error, so a
13
+ // future union widening fails the build instead of silently narrowing a saved format away.
14
+ const WIDGET_ATTACHMENT_TYPE_FLAGS = {
15
+ CSV: true,
16
+ CSV_RAW: true,
17
+ XLSX: true,
18
+ PNG: true,
19
+ PPTX: true,
20
+ PDF: true,
21
+ PDF_TABULAR: true,
22
+ HTML: true,
23
+ };
24
+ const WIDGET_ATTACHMENT_TYPES = new Set(Object.keys(WIDGET_ATTACHMENT_TYPE_FLAGS));
25
+ // Exhaustive by construction: a DashboardAttachmentType member missing here is a type error.
26
+ const DASHBOARD_ATTACHMENT_TYPE_FLAGS = {
27
+ PDF: true,
28
+ PDF_SLIDES: true,
29
+ PPTX: true,
30
+ XLSX: true,
31
+ };
32
+ const DASHBOARD_ATTACHMENT_TYPES = new Set(Object.keys(DASHBOARD_ATTACHMENT_TYPE_FLAGS));
33
+ /**
34
+ * The exact props the default scheduled-email dialog renders its recurrence field with.
35
+ *
36
+ * Throws outside the scheduled-export dialog's state providers.
37
+ *
38
+ * @alpha
39
+ */
40
+ export function useScheduledEmailDialogRecurrenceProps({ onKeyDownSubmit, }) {
41
+ const { locale, weekStart, allowHourlyRecurrence, isWhiteLabeled } = useAutomationsContext();
42
+ const { dateFormat } = useScheduledEmailDialogContext();
43
+ const { editedAutomation, startDate, isTimezoneFeatureEnabled } = useScheduledExportDraft();
44
+ const { onRecurrenceChange } = useScheduledExportActions();
45
+ return {
46
+ startDate,
47
+ cronExpression: editedAutomation.schedule?.cron ?? getDefaultCronExpression(startDate),
48
+ cronDescription: editedAutomation.schedule?.cronDescription,
49
+ // display-only value; with the timezone feature on, show the friendly label used
50
+ // by the time zone picker instead of the raw IANA ID
51
+ timezone: isTimezoneFeatureEnabled
52
+ ? getTimezoneDisplayLabel(editedAutomation.schedule?.timezone ?? TIMEZONE_DEFAULT.identifier)
53
+ : (editedAutomation.schedule?.timezone ?? TIMEZONE_DEFAULT.identifier),
54
+ dateFormat: dateFormat ?? "MM/dd/yyyy",
55
+ locale,
56
+ weekStart,
57
+ allowHourlyRecurrence,
58
+ isWhiteLabeled,
59
+ closeDropdownsOnParentScroll: CLOSE_ON_PARENT_SCROLL,
60
+ onChange: onRecurrenceChange,
61
+ onKeyDownSubmit,
62
+ };
63
+ }
64
+ /**
65
+ * The exact props the default scheduled-email dialog renders its subject field with.
66
+ *
67
+ * Throws outside the scheduled-export dialog's state providers.
68
+ *
69
+ * @alpha
70
+ */
71
+ export function useScheduledEmailDialogSubjectProps({ onKeyDownSubmit, }) {
72
+ const { dashboardTitle } = useScheduledEmailDialogContext();
73
+ const { editedAutomation } = useScheduledExportDraft();
74
+ const { onSubjectChange } = useScheduledExportActions();
75
+ const { isSubmitDisabled } = useScheduledExportDialogValidity();
76
+ return {
77
+ dashboardTitle,
78
+ editedAutomation,
79
+ isSubmitDisabled,
80
+ onChange: onSubjectChange,
81
+ onKeyDownSubmit,
82
+ };
83
+ }
84
+ /**
85
+ * The exact props the default scheduled-email dialog renders its message field with.
86
+ *
87
+ * Throws outside the scheduled-export dialog's state providers.
88
+ *
89
+ * @alpha
90
+ */
91
+ export function useScheduledEmailDialogMessageProps() {
92
+ const { editedAutomation } = useScheduledExportDraft();
93
+ const { onMessageChange } = useScheduledExportActions();
94
+ return {
95
+ value: editedAutomation.details?.message ?? "",
96
+ onChange: onMessageChange,
97
+ };
98
+ }
99
+ /**
100
+ * The exact props the default scheduled-email dialog renders its widget-attachments field with.
101
+ *
102
+ * Throws outside the scheduled-export dialog's state providers.
103
+ *
104
+ * @alpha
105
+ */
106
+ export function useScheduledEmailDialogWidgetAttachmentsProps() {
107
+ const { settings, features: { enableSlideshowExports }, } = useAutomationsContext();
108
+ const { exportTemplates } = useScheduledEmailDialogContext();
109
+ const { selectedAttachments, xlsxSettings, pdfSettings, csvSettings, csvRawSettings, slidesTemplateIds } = useScheduledExportAttachments();
110
+ const { onWidgetAttachmentsChange, onXlsxSettingsChange, onPdfSettingsChange, onCsvSettingsChange, onCsvRawSettingsChange, onSlidesTemplateIdChange, } = useScheduledExportActions();
111
+ return {
112
+ selectedAttachments: selectedAttachments.filter((attachment) => WIDGET_ATTACHMENT_TYPES.has(attachment)),
113
+ onWidgetAttachmentsChange,
114
+ xlsxSettings,
115
+ onXlsxSettingsChange,
116
+ pdfSettings,
117
+ onPdfSettingsChange,
118
+ csvSettings,
119
+ onCsvSettingsChange,
120
+ csvRawSettings,
121
+ onCsvRawSettingsChange,
122
+ isSlidesExportEnabled: enableSlideshowExports,
123
+ isAccessibilityModeEnabled: settings?.enableAccessibilityMode === true,
124
+ exportTemplates,
125
+ slidesTemplateIds,
126
+ onSlidesTemplateIdChange,
127
+ };
128
+ }
129
+ /**
130
+ * The exact props the default scheduled-email dialog renders its dashboard-attachments field with.
131
+ *
132
+ * Throws outside the scheduled-export dialog's state providers.
133
+ *
134
+ * @alpha
135
+ */
136
+ export function useScheduledEmailDialogDashboardAttachmentsProps() {
137
+ const { features: { enableSlideshowExports }, } = useAutomationsContext();
138
+ const { exportTemplates, dashboardFilters, isCrossFiltering } = useScheduledEmailDialogContext();
139
+ const { selectedAttachments, xlsxSettings, slidesTemplateIds } = useScheduledExportAttachments();
140
+ const { onDashboardAttachmentsChange, onXlsxSettingsChange, onSlidesTemplateIdChange } = useScheduledExportActions();
141
+ return {
142
+ selectedAttachments: selectedAttachments.filter((attachment) => DASHBOARD_ATTACHMENT_TYPES.has(attachment)),
143
+ dashboardFilters,
144
+ isCrossFiltering,
145
+ onDashboardAttachmentsChange,
146
+ xlsxSettings,
147
+ onXlsxSettingsChange,
148
+ isSlidesExportEnabled: enableSlideshowExports,
149
+ exportTemplates,
150
+ slidesTemplateIds,
151
+ onSlidesTemplateIdChange,
152
+ };
153
+ }
154
+ /**
155
+ * The exact props the default scheduled-email dialog renders its evaluation-mode checkbox with.
156
+ *
157
+ * Throws outside the scheduled-export dialog's state providers.
158
+ *
159
+ * @alpha
160
+ */
161
+ export function useScheduledEmailDialogEvaluationModeProps() {
162
+ const { editedAutomation } = useScheduledExportDraft();
163
+ const { onEvaluationModeChange } = useScheduledExportActions();
164
+ return {
165
+ isShared: editedAutomation.evaluationMode === "SHARED",
166
+ onChange: onEvaluationModeChange,
167
+ };
168
+ }
@@ -0,0 +1,30 @@
1
+ import { type KeyboardEvent } from "react";
2
+ /**
3
+ * Inputs of {@link useScheduledEmailSubmitOnEnter} — the dialog's single save, from one
4
+ * {@link useSaveScheduledEmailToBackend} instance.
5
+ *
6
+ * @alpha
7
+ */
8
+ export interface IUseScheduledEmailSubmitOnEnterInput {
9
+ /**
10
+ * `handleSaveScheduledEmail` of the dialog's {@link useSaveScheduledEmailToBackend} instance.
11
+ */
12
+ onSubmit: () => void;
13
+ /**
14
+ * `isSavingScheduledEmail` of the same instance; Enter does nothing while a save is in flight.
15
+ */
16
+ isSaving: boolean;
17
+ }
18
+ /**
19
+ * The Enter-to-submit key handler the default scheduled-export dialog attaches to its title, recipients
20
+ * and recurrence inputs: calls `onSubmit` on Enter unless the submit button would be disabled — the same
21
+ * guard {@link useScheduledEmailDialogActionBarProps} puts on the button (form validity, a save in
22
+ * flight, execution-timestamp mode). Pass the result as `onTitleKeyDown` / `onKeyDownSubmit` to the
23
+ * header and recipients blocks so every Enter path shares the dialog's one save.
24
+ *
25
+ * Throws outside the scheduled-export dialog's state providers.
26
+ *
27
+ * @alpha
28
+ */
29
+ export declare function useScheduledEmailSubmitOnEnter({ onSubmit, isSaving }: IUseScheduledEmailSubmitOnEnterInput): (event: KeyboardEvent) => void;
30
+ //# sourceMappingURL=useScheduledEmailSubmitOnEnter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScheduledEmailSubmitOnEnter.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,OAAO,CAAC;AAQxD;;;;;GAKG;AACH,MAAM,WAAW,oCAAoC;IACjD;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAAC,EAC3C,QAAQ,EACR,QAAQ,EACX,EAAE,oCAAoC,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAavE"}
@@ -0,0 +1,26 @@
1
+ // (C) 2026 GoodData Corporation
2
+ import { useCallback } from "react";
3
+ import { isEnterKey } from "@gooddata/sdk-ui-kit";
4
+ import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
5
+ import { useScheduledExportDialogValidity } from "./useScheduledExportDialogValidity.js";
6
+ /**
7
+ * The Enter-to-submit key handler the default scheduled-export dialog attaches to its title, recipients
8
+ * and recurrence inputs: calls `onSubmit` on Enter unless the submit button would be disabled — the same
9
+ * guard {@link useScheduledEmailDialogActionBarProps} puts on the button (form validity, a save in
10
+ * flight, execution-timestamp mode). Pass the result as `onTitleKeyDown` / `onKeyDownSubmit` to the
11
+ * header and recipients blocks so every Enter path shares the dialog's one save.
12
+ *
13
+ * Throws outside the scheduled-export dialog's state providers.
14
+ *
15
+ * @alpha
16
+ */
17
+ export function useScheduledEmailSubmitOnEnter({ onSubmit, isSaving, }) {
18
+ const { isExecutionTimestampMode } = useAutomationsContext();
19
+ const { isSubmitDisabled } = useScheduledExportDialogValidity();
20
+ const disabled = isSubmitDisabled || isSaving || isExecutionTimestampMode;
21
+ return useCallback((event) => {
22
+ if (isEnterKey(event) && !disabled) {
23
+ onSubmit();
24
+ }
25
+ }, [disabled, onSubmit]);
26
+ }