@gooddata/sdk-ui-dashboard 11.45.0-alpha.1 → 11.45.0
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/NOTICE +3 -3
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/kdaDialog/composition/KeyDriversPanel.d.ts.map +1 -1
- package/esm/kdaDialog/composition/KeyDriversPanel.js +3 -1
- package/esm/model/commandHandlers/dashboard/common/loadAutomationsData.js +1 -1
- package/esm/model/commandHandlers/dashboard/common/loadNotificationChannelsCount.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/loadNotificationChannelsCount.js +19 -25
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomationsCount.d.ts +1 -2
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomationsCount.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomationsCount.js +18 -7
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +3 -6
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +2 -5
- package/esm/model/commandHandlers/scheduledEmail/loadNotificationChannels.d.ts +1 -1
- package/esm/model/commandHandlers/scheduledEmail/loadNotificationChannels.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/loadNotificationChannels.js +3 -5
- package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.js +4 -8
- package/esm/model/queryServices/queryWidgetFilters.d.ts.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.js +1 -5
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts +3 -3
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.js +2 -4
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.d.ts +3 -3
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.js +21 -27
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js +1 -4
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.d.ts +3 -4
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.js +13 -49
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.d.ts +1 -7
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.js +9 -42
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsCommands.d.ts +2 -2
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsCommands.d.ts.map +1 -1
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsCommands.js +20 -28
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsData.d.ts.map +1 -1
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsData.js +1 -4
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsDialog.d.ts.map +1 -1
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsDialog.js +3 -10
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsManagementDialog.d.ts.map +1 -1
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsManagementDialog.js +3 -10
- package/esm/model/react/useDashboardAutomations/useDashboardAutomations.d.ts.map +1 -1
- package/esm/model/react/useDashboardAutomations/useDashboardAutomations.js +5 -12
- package/esm/model/store/config/configSelectors.d.ts +6 -54
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +8 -76
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +1 -10
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +1 -25
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +7 -0
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +16 -0
- package/esm/model/store/topBar/topBarSelectors.d.ts +0 -4
- package/esm/model/store/topBar/topBarSelectors.d.ts.map +1 -1
- package/esm/model/store/topBar/topBarSelectors.js +5 -13
- package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +5 -6
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +21 -52
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts +1 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.js +2 -3
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts +18 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.js +48 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSupportedMetrics.d.ts +28 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSupportedMetrics.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSupportedMetrics.js +43 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.js +2 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts +0 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.js +7 -23
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/items.d.ts +1 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/items.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/items.js +2 -3
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContent.d.ts +12 -0
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContent.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/{DefaultAlertingManagementDialogContentEnhanced.js → DefaultAlertingManagementDialogContent.js} +3 -3
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.js +5 -33
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/Alert.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/Alert.js +2 -2
- package/esm/presentation/automations/alerting/hooks/useGetSupportedMeasures.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/hooks/useGetSupportedMeasures.js +2 -2
- package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/AlertingConnector.js +2 -40
- package/esm/presentation/automations/connectors/AlertingConnector.test.js +0 -1
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +2 -39
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.test.js +0 -1
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts +11 -0
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts.map +1 -0
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.js +40 -0
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +5 -14
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.test.js +1 -6
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +1 -3
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +7 -8
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts +2 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.js +8 -5
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts +2 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.js +8 -5
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/attachmentFormats.d.ts +15 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/attachmentFormats.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/attachmentFormats.js +16 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +5 -17
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/{DefaultScheduledEmailManagementDialogContentEnhanced.d.ts → DefaultScheduledEmailManagementDialogContent.d.ts} +3 -3
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/{DefaultScheduledEmailManagementDialogContentEnhanced.js → DefaultScheduledEmailManagementDialogContent.js} +3 -2
- package/esm/presentation/automations/shared/automationFilters/components/AutomationDateFilter.test.js +1 -3
- package/esm/presentation/automations/shared/utils/automationUtils.d.ts +2 -1
- package/esm/presentation/automations/shared/utils/automationUtils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/utils/automationUtils.js +1 -0
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +2 -3
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightList.d.ts +1 -2
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightList.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightList.js +2 -2
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.d.ts +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js +8 -5
- package/esm/presentation/dashboard/DashboardSidebar/InsightPickerPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/InsightPickerPanel.js +1 -1
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.d.ts +1 -1
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.d.ts.map +1 -1
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.js +3 -8
- package/esm/presentation/deleteDialog/types.d.ts +0 -2
- package/esm/presentation/deleteDialog/types.d.ts.map +1 -1
- package/esm/presentation/deleteDialog/types.js +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +4 -9
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +11 -20
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +2 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +2 -3
- package/esm/presentation/insightList/InsightList.d.ts.map +1 -1
- package/esm/presentation/insightList/InsightList.js +62 -9
- package/esm/presentation/insightList/InsightListDivider.d.ts +5 -0
- package/esm/presentation/insightList/InsightListDivider.d.ts.map +1 -0
- package/esm/presentation/insightList/InsightListDivider.js +12 -0
- package/esm/presentation/insightList/types.d.ts +3 -2
- package/esm/presentation/insightList/types.d.ts.map +1 -1
- package/esm/presentation/insightList/types.js +1 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +4 -12
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +4 -12
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +5 -28
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.d.ts.map +1 -1
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.js +2 -3
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.d.ts.map +1 -1
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.js +1 -3
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +2 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +1 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +1 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertsNew.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertsNew.js +2 -3
- package/esm/presentation/widget/insight/configuration/InsightConfiguration.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightConfiguration.js +3 -5
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.js +2 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +8 -21
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/types.d.ts +0 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/types.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/types.js +1 -1
- package/esm/presentation/widget/richText/EditModeDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/EditModeDashboardRichText.js +4 -13
- package/esm/presentation/widget/richText/ViewModeDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/ViewModeDashboardRichText.js +2 -3
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +7 -7
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +7 -5
- package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.js +2 -5
- package/esm/presentation/widget/widget/InsightWidget/useEditableInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useEditableInsightMenu.js +1 -5
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +0 -3
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.d.ts.map +1 -1
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.js +2 -5
- package/esm/sdk-ui-dashboard.d.ts +7 -77
- package/package.json +21 -20
- package/styles/css/main.css +12 -0
- package/styles/css/main.css.map +1 -1
- package/styles/css/sidebar.css +12 -0
- package/styles/css/sidebar.css.map +1 -1
- package/styles/scss/sidebar.scss +12 -0
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentBasic.d.ts +0 -15
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentBasic.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentBasic.js +0 -33
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentEnhanced.d.ts +0 -12
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentEnhanced.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertsList.d.ts +0 -12
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertsList.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertsList.js +0 -43
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentBasic.d.ts +0 -13
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentBasic.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentBasic.js +0 -33
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentEnhanced.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts +0 -13
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.js +0 -42
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.d.ts +0 -43
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.js +0 -303
package/styles/css/sidebar.css
CHANGED
|
@@ -155,6 +155,18 @@
|
|
|
155
155
|
flex: 1 1 auto;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
+
.gd-visualizations-related-header {
|
|
159
|
+
display: flex;
|
|
160
|
+
gap: 5px;
|
|
161
|
+
justify-content: flex-start;
|
|
162
|
+
align-items: flex-end;
|
|
163
|
+
height: 100%;
|
|
164
|
+
padding: 5px 0 5px 10px;
|
|
165
|
+
font-size: 12px;
|
|
166
|
+
line-height: 12px;
|
|
167
|
+
color: var(--gd-palette-complementary-6, #94a1ad);
|
|
168
|
+
}
|
|
169
|
+
|
|
158
170
|
.gd-container-tooltip {
|
|
159
171
|
display: flex;
|
|
160
172
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../node_modules/@gooddata/sdk-ui-kit/styles/scss/mixins.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Bubble/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Button/_variables.scss","../scss/sidebar.scss","../scss/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss"],"names":[],"mappings":"AA0HA;AA4DA;ACjLA;AAAA;AAAA;ACDA;AAAA;AAAA;ACGA;EACI;EACA;EACA;EACA;EACA,cCoES;;ADlET;EACI;EACA;;;AAIR;EACI;EACA;EACA;;AAIA;EAEI;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;;AAEA;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EAEI;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAEI;EACA;;AAGJ;EAEI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YEtFS;EFuFT;;;AAKZ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OE/EY;EFgFZ;;AAEA;EACI,OE5FY;EF6FZ;EACA;;AAGJ;EACI;EAIA,YACI;EAEJ;;AAMJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;;AAEA;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;;AAGJ;EACI;;AAIA;EACI;EACA;;AAIR;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;;AAIR;EACI;;;AAIR;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA","file":"sidebar.css"}
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../node_modules/@gooddata/sdk-ui-kit/styles/scss/mixins.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Bubble/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Button/_variables.scss","../scss/sidebar.scss","../scss/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss"],"names":[],"mappings":"AA0HA;AA4DA;ACjLA;AAAA;AAAA;ACDA;AAAA;AAAA;ACGA;EACI;EACA;EACA;EACA;EACA,cCoES;;ADlET;EACI;EACA;;;AAIR;EACI;EACA;EACA;;AAIA;EAEI;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;;AAEA;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EAEI;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAEI;EACA;;AAGJ;EAEI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YEtFS;EFuFT;;;AAKZ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OE/EY;EFgFZ;;AAEA;EACI,OE5FY;EF6FZ;EACA;;AAGJ;EACI;EAIA,YACI;EAEJ;;AAMJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;;AAEA;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;;AAGJ;EACI;;AAIA;EACI;EACA;;AAIR;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;;AAIR;EACI;;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OE/KmB;;;AFkLvB;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA","file":"sidebar.css"}
|
package/styles/scss/sidebar.scss
CHANGED
|
@@ -193,6 +193,18 @@
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
.gd-visualizations-related-header {
|
|
197
|
+
display: flex;
|
|
198
|
+
gap: 5px;
|
|
199
|
+
justify-content: flex-start;
|
|
200
|
+
align-items: flex-end;
|
|
201
|
+
height: 100%;
|
|
202
|
+
padding: 5px 0 5px 10px;
|
|
203
|
+
font-size: 12px;
|
|
204
|
+
line-height: 12px;
|
|
205
|
+
color: kit-variables.$gd-color-state-blank;
|
|
206
|
+
}
|
|
207
|
+
|
|
196
208
|
.gd-container-tooltip {
|
|
197
209
|
display: flex;
|
|
198
210
|
flex-direction: column;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type IAutomationMetadataObject } from "@gooddata/sdk-model";
|
|
2
|
-
interface IDefaultAlertingManagementDialogContentBasicProps {
|
|
3
|
-
onClose?: () => void;
|
|
4
|
-
onDelete: (alert: IAutomationMetadataObject) => void;
|
|
5
|
-
onEdit: (alert: IAutomationMetadataObject) => void;
|
|
6
|
-
onPause: (alert: IAutomationMetadataObject, pause: boolean) => void;
|
|
7
|
-
isLoadingAlertingData: boolean;
|
|
8
|
-
automations: IAutomationMetadataObject[];
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export declare function DefaultAlertingManagementDialogContentBasic({ onClose, onDelete, onEdit, onPause, isLoadingAlertingData, automations }: IDefaultAlertingManagementDialogContentBasicProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=DefaultAlertingManagementDialogContentBasic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultAlertingManagementDialogContentBasic.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentBasic.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAsBrE,UAAU,iDAAiD;IACvD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACrD,MAAM,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACnD,OAAO,EAAE,CAAC,KAAK,EAAE,yBAAyB,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpE,qBAAqB,EAAE,OAAO,CAAC;IAC/B,WAAW,EAAE,yBAAyB,EAAE,CAAC;CAC5C;AAED;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,EACxD,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,qBAAqB,EACrB,WAAW,EACd,EAAE,iDAAiD,2CAmEnD"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2022-2026 GoodData Corporation
|
|
3
|
-
import cx from "classnames";
|
|
4
|
-
import { FormattedMessage, defineMessage, useIntl } from "react-intl";
|
|
5
|
-
import { Button, Dialog, Hyperlink, OverlayController, OverlayControllerProvider, Typography, useId, } from "@gooddata/sdk-ui-kit";
|
|
6
|
-
import { messages } from "../../../../locales.js";
|
|
7
|
-
import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
|
|
8
|
-
import { useAlertingManagementDialogContext } from "../../contexts/AlertingManagementDialogContext.js";
|
|
9
|
-
import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
|
|
10
|
-
import { isMobileView } from "../DefaultAlertingDialog/utils/responsive.js";
|
|
11
|
-
import { useAlertingDialogAccessibility } from "../hooks/useAlertingDialogAccessibility.js";
|
|
12
|
-
import { Alerts } from "./components/AlertsList.js";
|
|
13
|
-
const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export function DefaultAlertingManagementDialogContentBasic({ onClose, onDelete, onEdit, onPause, isLoadingAlertingData, automations, }) {
|
|
18
|
-
const intl = useIntl();
|
|
19
|
-
const { isWhiteLabeled } = useAutomationsContext();
|
|
20
|
-
const { isAlertDialogOpen } = useAlertingManagementDialogContext();
|
|
21
|
-
const { returnFocusTo } = useAlertingDialogAccessibility();
|
|
22
|
-
const isMobile = isMobileView();
|
|
23
|
-
const helpTextId = isMobile
|
|
24
|
-
? defineMessage({ id: "dialogs.alerting.footer.title.short" }).id
|
|
25
|
-
: defineMessage({ id: "dialogs.alerting.footer.title" }).id;
|
|
26
|
-
const titleElementId = useId();
|
|
27
|
-
return (_jsx(Dialog, { displayCloseButton: true, onCancel: onClose, shouldCloseOnClick: () => false, autofocusOnOpen: true, className: cx("gd-notifications-channels-management-dialog s-alerting-management-dialog"), accessibilityConfig: { titleElementId, isModal: true }, returnFocusTo: returnFocusTo, returnFocusAfterClose: true, refocusKey: isAlertDialogOpen, children: _jsxs(OverlayControllerProvider, { overlayController: overlayController, children: [
|
|
28
|
-
_jsx("div", { className: "gd-notifications-channels-management-dialog-title", children: _jsx(Typography, { tagName: "h3", className: "gd-dialog-header", id: titleElementId, children: _jsx(FormattedMessage, { id: "dialogs.alerting.management.title" }) }) }), _jsxs("div", { className: "gd-notifications-channels-content", children: [
|
|
29
|
-
_jsx("div", { className: "gd-notifications-channels-content-header", children: _jsx(Typography, { tagName: "h3", children: _jsx(FormattedMessage, { id: messages.alertingManagementListTitle.id }) }) }), _jsx(Alerts, { onDelete: onDelete, onEdit: onEdit, onPause: onPause, isLoading: isLoadingAlertingData, alerts: automations, noAlertsMessageId: messages.alertingManagementNoAlerts.id })
|
|
30
|
-
] }), _jsx("div", { className: "gd-content-divider" }), _jsxs("div", { className: `gd-buttons${isWhiteLabeled ? " gd-buttons--end" : ""}`, children: [isWhiteLabeled ? null : (_jsx(Hyperlink, { text: intl.formatMessage({ id: helpTextId }), href: "https://www.gooddata.com/docs/cloud/create-dashboards/automation/alerts/", iconClass: "gd-icon-circle-question" })), _jsx("div", { className: "gd-buttons", children: _jsx(Button, { onClick: onClose, className: "gd-button-secondary s-close-button", value: intl.formatMessage({ id: "close" }) }) })
|
|
31
|
-
] })
|
|
32
|
-
] }) }));
|
|
33
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type IAutomationMetadataObject } from "@gooddata/sdk-model";
|
|
2
|
-
interface IDefaultAlertingManagementDialogContentEnhancedProps {
|
|
3
|
-
onAdd?: () => void;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
onEdit: (alert: IAutomationMetadataObject) => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export declare function DefaultAlertingManagementDialogContentEnhanced({ onAdd, onClose, onEdit }: IDefaultAlertingManagementDialogContentEnhancedProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=DefaultAlertingManagementDialogContentEnhanced.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultAlertingManagementDialogContentEnhanced.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentEnhanced.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA4BrE,UAAU,oDAAoD;IAC1D,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACtD;AAED;;GAEG;AACH,wBAAgB,8CAA8C,CAAC,EAC3D,KAAK,EACL,OAAO,EACP,MAAM,EACT,EAAE,oDAAoD,2CAqJtD"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type IAutomationMetadataObject } from "@gooddata/sdk-model";
|
|
2
|
-
interface IAlertsProps {
|
|
3
|
-
onDelete: (alert: IAutomationMetadataObject) => void;
|
|
4
|
-
onEdit: (alert: IAutomationMetadataObject) => void;
|
|
5
|
-
onPause: (alert: IAutomationMetadataObject, pause: boolean) => void;
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
alerts: IAutomationMetadataObject[];
|
|
8
|
-
noAlertsMessageId: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function Alerts({ isLoading, alerts, onDelete, onEdit, onPause, noAlertsMessageId }: IAlertsProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=AlertsList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertsList.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertsList.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAMrE,UAAU,YAAY;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACrD,MAAM,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACnD,OAAO,EAAE,CAAC,KAAK,EAAE,yBAAyB,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,yBAAyB,EAAE,CAAC;IACpC,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAMD,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,YAAY,2CAkFvG"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2022-2026 GoodData Corporation
|
|
3
|
-
import { useCallback, useState } from "react";
|
|
4
|
-
import { FormattedMessage } from "react-intl";
|
|
5
|
-
import { LoadingSpinner, useIdPrefixed, useListWithActionsKeyboardNavigation } from "@gooddata/sdk-ui-kit";
|
|
6
|
-
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
7
|
-
import { Alert } from "./Alert.js";
|
|
8
|
-
const getItemAdditionalActions = () => {
|
|
9
|
-
return ["dropdown", "item"];
|
|
10
|
-
};
|
|
11
|
-
export function Alerts({ isLoading, alerts, onDelete, onEdit, onPause, noAlertsMessageId }) {
|
|
12
|
-
const theme = useTheme();
|
|
13
|
-
const handleEdit = useCallback((alert) => () => onEdit(alert), [onEdit]);
|
|
14
|
-
const handleTogglePause = useCallback((alert) => () => onPause(alert, alert.alert?.trigger.state !== "PAUSED"), [onPause]);
|
|
15
|
-
const handleDelete = useCallback((alert) => () => onDelete(alert), [onDelete]);
|
|
16
|
-
const [dropdownOpenAlertId, setDropdownOpenAlertId] = useState(null);
|
|
17
|
-
const handleToggleDropdown = useCallback((alert) => (desiredState) => {
|
|
18
|
-
setDropdownOpenAlertId((prev) => {
|
|
19
|
-
const nextState = desiredState ?? !prev;
|
|
20
|
-
return nextState ? alert.id : null;
|
|
21
|
-
});
|
|
22
|
-
}, []);
|
|
23
|
-
const { focusedAction, focusedItem, onKeyboardNavigation } = useListWithActionsKeyboardNavigation({
|
|
24
|
-
items: alerts,
|
|
25
|
-
getItemAdditionalActions,
|
|
26
|
-
actionHandlers: {
|
|
27
|
-
selectItem: handleEdit,
|
|
28
|
-
item: handleEdit,
|
|
29
|
-
dropdown: (alert) => () => {
|
|
30
|
-
handleToggleDropdown(alert)(true);
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
isNestedList: true,
|
|
34
|
-
});
|
|
35
|
-
const listId = useIdPrefixed("AlertsList");
|
|
36
|
-
if (isLoading) {
|
|
37
|
-
return (_jsx("div", { className: "gd-loading-equalizer-wrap gd-notifications-channels-message", children: _jsx("div", { className: "gd-loading-equalizer gd-loading-equalizer-fade", children: _jsx(LoadingSpinner, { className: "large gd-loading-equalizer-spinner", color: theme?.palette?.complementary?.c9 }) }) }));
|
|
38
|
-
}
|
|
39
|
-
if (alerts.length === 0) {
|
|
40
|
-
return (_jsx("div", { className: "gd-notifications-channels-message s-no-alerts-message", children: _jsx(FormattedMessage, { id: noAlertsMessageId, values: { br: _jsx("br", {}) } }) }));
|
|
41
|
-
}
|
|
42
|
-
return (_jsx("div", { onKeyDown: onKeyboardNavigation, tabIndex: 0, className: "gd-alerts-list__items gd-alerts-list--dialog", id: listId, children: alerts.map((alert) => (_jsx(Alert, { alert: alert, focusedAction: alert === focusedItem ? focusedAction : undefined, onDelete: handleDelete(alert), onEdit: handleEdit(alert), onTogglePause: handleTogglePause(alert), listId: listId, isDropdownOpen: dropdownOpenAlertId === alert.id, onToggleDropdown: handleToggleDropdown(alert), isSubtitleVisible: true }, alert.id))) }));
|
|
43
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type IAutomationMetadataObject, type INotificationChannelIdentifier, type INotificationChannelMetadataObject } from "@gooddata/sdk-model";
|
|
2
|
-
interface IDefaultScheduledEmailManagementDialogContentBasicProps {
|
|
3
|
-
onAdd?: () => void;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
onDelete: (scheduledEmail: IAutomationMetadataObject) => void;
|
|
6
|
-
onEdit: (scheduledEmail: IAutomationMetadataObject) => void;
|
|
7
|
-
isLoadingScheduleData: boolean;
|
|
8
|
-
automations: IAutomationMetadataObject[];
|
|
9
|
-
notificationChannels: INotificationChannelIdentifier[] | INotificationChannelMetadataObject[];
|
|
10
|
-
}
|
|
11
|
-
export declare function DefaultScheduledEmailManagementDialogContentBasic({ onAdd, onClose, onDelete, onEdit, isLoadingScheduleData, automations, notificationChannels }: IDefaultScheduledEmailManagementDialogContentBasicProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=DefaultScheduledEmailManagementDialogContentBasic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultScheduledEmailManagementDialogContentBasic.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentBasic.tsx"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAC1C,MAAM,qBAAqB,CAAC;AAuB7B,UAAU,uDAAuD;IAC7D,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,cAAc,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC9D,MAAM,EAAE,CAAC,cAAc,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC5D,qBAAqB,EAAE,OAAO,CAAC;IAC/B,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACzC,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;CACjG;AAED,wBAAgB,iDAAiD,CAAC,EAC9D,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,EACN,qBAAqB,EACrB,WAAW,EACX,oBAAoB,EACvB,EAAE,uDAAuD,2CA+FzD"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2022-2026 GoodData Corporation
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
import { FormattedMessage, defineMessage, useIntl } from "react-intl";
|
|
5
|
-
import { AddButton, Button, Dialog, Hyperlink, OverlayController, OverlayControllerProvider, Typography, useId, } from "@gooddata/sdk-ui-kit";
|
|
6
|
-
import { messages } from "../../../../locales.js";
|
|
7
|
-
import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
|
|
8
|
-
import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
|
|
9
|
-
import { useScheduledEmailManagementDialogContext } from "../../contexts/ScheduledEmailManagementDialogContext.js";
|
|
10
|
-
import { useScheduleEmailDialogAccessibility } from "../hooks/useScheduleEmailDialogAccessibility.js";
|
|
11
|
-
import { isMobileView } from "../utils/responsive.js";
|
|
12
|
-
import { ScheduledEmails } from "./components/ScheduledEmailsList.js";
|
|
13
|
-
const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
|
|
14
|
-
export function DefaultScheduledEmailManagementDialogContentBasic({ onAdd, onClose, onDelete, onEdit, isLoadingScheduleData, automations, notificationChannels, }) {
|
|
15
|
-
const intl = useIntl();
|
|
16
|
-
const isMobile = isMobileView();
|
|
17
|
-
const { currentUser, isWhiteLabeled, isExecutionTimestampMode, features: { canCreateAutomation }, } = useAutomationsContext();
|
|
18
|
-
const { maxAutomations, unlimitedAutomations } = useScheduledEmailManagementDialogContext();
|
|
19
|
-
const { returnFocusTo } = useScheduleEmailDialogAccessibility();
|
|
20
|
-
const maxAutomationsReached = automations.length >= maxAutomations && !unlimitedAutomations;
|
|
21
|
-
const isAddButtonDisabled = useMemo(() => isLoadingScheduleData || maxAutomationsReached || isExecutionTimestampMode, [isLoadingScheduleData, maxAutomationsReached, isExecutionTimestampMode]);
|
|
22
|
-
const helpTextId = isMobile
|
|
23
|
-
? defineMessage({ id: "dialogs.schedule.email.footer.title.short" }).id
|
|
24
|
-
: defineMessage({ id: "dialogs.schedule.email.footer.title" }).id;
|
|
25
|
-
const titleElementId = useId();
|
|
26
|
-
return (_jsx(Dialog, { displayCloseButton: true, autofocusOnOpen: true, onCancel: onClose, className: "gd-notifications-channels-management-dialog s-scheduled-email-management-dialog", accessibilityConfig: { titleElementId, isModal: true }, returnFocusAfterClose: true, returnFocusTo: returnFocusTo, children: _jsxs(OverlayControllerProvider, { overlayController: overlayController, children: [
|
|
27
|
-
_jsx("div", { className: "gd-notifications-channels-management-dialog-title", children: _jsx(Typography, { tagName: "h3", className: "gd-dialog-header", id: titleElementId, children: intl.formatMessage({ id: "dialogs.schedule.management.title" }) }) }), _jsxs("div", { className: "gd-notifications-channels-content", children: [
|
|
28
|
-
_jsxs("div", { className: "gd-notifications-channels-content-header", children: [
|
|
29
|
-
_jsx(Typography, { tagName: "h3", children: intl.formatMessage({ id: messages.scheduleManagementListTitle.id }) }), canCreateAutomation ? (_jsx(AddButton, { onClick: onAdd, isDisabled: isAddButtonDisabled, title: _jsx(FormattedMessage, { id: messages.scheduleManagementCreate.id }), tooltip: maxAutomationsReached ? (_jsx(FormattedMessage, { id: messages.scheduleManagementCreateTooMany.id })) : isExecutionTimestampMode ? (_jsx(FormattedMessage, { id: messages.scheduleManagementExecutionTimestampMode.id })) : undefined })) : null] }), _jsx(ScheduledEmails, { onDelete: onDelete, onEdit: onEdit, isLoading: isLoadingScheduleData, scheduledEmails: automations, currentUserEmail: currentUser?.email, noSchedulesMessageId: messages.scheduleManagementNoSchedules.id, notificationChannels: notificationChannels })
|
|
30
|
-
] }), _jsx("div", { className: "gd-content-divider" }), _jsxs("div", { className: `gd-buttons${isWhiteLabeled ? " gd-buttons--end" : ""}`, children: [isWhiteLabeled ? null : (_jsx(Hyperlink, { text: intl.formatMessage({ id: helpTextId }), href: "https://www.gooddata.com/docs/cloud/create-dashboards/automation/scheduled-exports/#ScheduleExportsinDashboards-ScheduleExport", iconClass: "gd-icon-circle-question" })), _jsx("div", { className: "gd-buttons", children: _jsx(Button, { onClick: onClose, className: "gd-button-secondary s-close-button", value: intl.formatMessage({ id: "close" }) }) })
|
|
31
|
-
] })
|
|
32
|
-
] }) }));
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultScheduledEmailManagementDialogContentEnhanced.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentEnhanced.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA2BrE,UAAU,0DAA0D;IAChE,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,CAAC,cAAc,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC5D,qBAAqB,EAAE,OAAO,CAAC;IAC/B,WAAW,EAAE,yBAAyB,EAAE,CAAC;CAC5C;AAED,wBAAgB,oDAAoD,CAAC,EACjE,KAAK,EACL,OAAO,EACP,MAAM,EACN,qBAAqB,EACrB,WAAW,EACd,EAAE,0DAA0D,2CA6J5D"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type IAutomationMetadataObject, type INotificationChannelIdentifier, type INotificationChannelMetadataObject } from "@gooddata/sdk-model";
|
|
2
|
-
interface IScheduledEmailsProps {
|
|
3
|
-
onDelete: (scheduledEmail: IAutomationMetadataObject) => void;
|
|
4
|
-
onEdit: (scheduledEmail: IAutomationMetadataObject) => void;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
scheduledEmails: IAutomationMetadataObject[];
|
|
7
|
-
currentUserEmail?: string;
|
|
8
|
-
noSchedulesMessageId: string;
|
|
9
|
-
notificationChannels: INotificationChannelIdentifier[] | INotificationChannelMetadataObject[];
|
|
10
|
-
}
|
|
11
|
-
export declare function ScheduledEmails({ isLoading, scheduledEmails, onDelete, onEdit, noSchedulesMessageId, notificationChannels }: IScheduledEmailsProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=ScheduledEmailsList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledEmailsList.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.tsx"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAC1C,MAAM,qBAAqB,CAAC;AAW7B,UAAU,qBAAqB;IAC3B,QAAQ,EAAE,CAAC,cAAc,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC9D,MAAM,EAAE,CAAC,cAAc,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC5D,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,yBAAyB,EAAE,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;CACjG;AAED,wBAAgB,eAAe,CAAC,EAC5B,SAAS,EACT,eAAe,EACf,QAAQ,EACR,MAAM,EACN,oBAAoB,EACpB,oBAAoB,EACvB,EAAE,qBAAqB,2CAiFvB"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2022-2026 GoodData Corporation
|
|
3
|
-
import { useCallback } from "react";
|
|
4
|
-
import { FormattedMessage } from "react-intl";
|
|
5
|
-
import { LoadingSpinner, SELECT_ITEM_ACTION, UiAutofocus, useListWithActionsKeyboardNavigation, } from "@gooddata/sdk-ui-kit";
|
|
6
|
-
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
7
|
-
import { ScheduledEmail } from "./ScheduledEmail.js";
|
|
8
|
-
export function ScheduledEmails({ isLoading, scheduledEmails, onDelete, onEdit, noSchedulesMessageId, notificationChannels, }) {
|
|
9
|
-
const theme = useTheme();
|
|
10
|
-
const handleEdit = useCallback((scheduledEmail) => () => {
|
|
11
|
-
onEdit(scheduledEmail);
|
|
12
|
-
}, [onEdit]);
|
|
13
|
-
const handleDelete = useCallback((scheduledEmail) => () => {
|
|
14
|
-
onDelete(scheduledEmail);
|
|
15
|
-
}, [onDelete]);
|
|
16
|
-
const { onKeyboardNavigation, onBlur, focusedItem, focusedAction, setFocusedAction } = useListWithActionsKeyboardNavigation({
|
|
17
|
-
items: scheduledEmails,
|
|
18
|
-
getItemAdditionalActions: () => ["delete"],
|
|
19
|
-
actionHandlers: {
|
|
20
|
-
selectItem: handleEdit,
|
|
21
|
-
delete: handleDelete,
|
|
22
|
-
},
|
|
23
|
-
isNestedList: true,
|
|
24
|
-
});
|
|
25
|
-
const handleKeyDown = (event) => {
|
|
26
|
-
if (event.key === "ArrowRight" || event.key === "ArrowLeft")
|
|
27
|
-
if (focusedAction === "delete") {
|
|
28
|
-
setFocusedAction(SELECT_ITEM_ACTION);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
setFocusedAction("delete");
|
|
32
|
-
}
|
|
33
|
-
onKeyboardNavigation(event);
|
|
34
|
-
};
|
|
35
|
-
if (isLoading) {
|
|
36
|
-
return (_jsx("div", { className: "gd-loading-equalizer-wrap gd-notifications-channels-message", children: _jsx("div", { className: "gd-loading-equalizer gd-loading-equalizer-fade", children: _jsx(LoadingSpinner, { className: "large gd-loading-equalizer-spinner", color: theme?.palette?.complementary?.c9 }) }) }));
|
|
37
|
-
}
|
|
38
|
-
if (scheduledEmails.length === 0) {
|
|
39
|
-
return (_jsx("div", { className: "gd-notifications-channels-message s-no-schedules-message", children: _jsx(FormattedMessage, { id: noSchedulesMessageId, values: { br: _jsx("br", {}) } }) }));
|
|
40
|
-
}
|
|
41
|
-
return (_jsx(UiAutofocus, { children: _jsx("div", { className: "configuration-category gd-schedule-email__list", onKeyDown: handleKeyDown, onBlur: onBlur, tabIndex: scheduledEmails.length > 0 ? 0 : -1, children: scheduledEmails.map((scheduledEmail) => (_jsx(ScheduledEmail, { scheduledEmail: scheduledEmail, focusedAction: scheduledEmail === focusedItem ? focusedAction : undefined, onDelete: onDelete, onEdit: handleEdit(scheduledEmail), notificationChannels: notificationChannels }, scheduledEmail.id))) }) }));
|
|
42
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IInsightWidget } from "@gooddata/sdk-model";
|
|
2
|
-
type InsightWidgetAlertingViewMode = "list" | "edit" | "create";
|
|
3
|
-
export interface IInsightWidgetAlertingProps {
|
|
4
|
-
widget?: IInsightWidget | undefined;
|
|
5
|
-
closeInsightWidgetMenu: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const useInsightWidgetAlerting: ({ widget, closeInsightWidgetMenu }: IInsightWidgetAlertingProps) => {
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
destinations: import("@gooddata/sdk-model").INotificationChannelIdentifier[] | import("@gooddata/sdk-model").INotificationChannelMetadataObject[];
|
|
10
|
-
users: import("@gooddata/sdk-model").IWorkspaceUser[] | undefined;
|
|
11
|
-
alerts: IAutomationMetadataObject[];
|
|
12
|
-
viewMode: InsightWidgetAlertingViewMode;
|
|
13
|
-
editingAlert: IAutomationMetadataObject | null;
|
|
14
|
-
creatingAlert: IAutomationMetadataObject | IAutomationMetadataObjectDefinition | null;
|
|
15
|
-
initiateAlertCreation: () => void;
|
|
16
|
-
initiateAlertEditing: (alert: IAutomationMetadataObject) => void;
|
|
17
|
-
updateExistingAlert: (alert: IAutomationMetadataObject) => void;
|
|
18
|
-
saveNewAlert: (alert: IAutomationMetadataObjectDefinition) => void;
|
|
19
|
-
pauseExistingAlert: (alert: IAutomationMetadataObject) => void;
|
|
20
|
-
resumeExistingAlert: (alert: IAutomationMetadataObject) => void;
|
|
21
|
-
alertToDelete: IAutomationMetadataObject | null;
|
|
22
|
-
startDeletingAlert: (alert: IAutomationMetadataObject) => void;
|
|
23
|
-
cancelDeletingAlert: () => void;
|
|
24
|
-
deleteExistingAlert: (alert: IAutomationMetadataObject) => Promise<void>;
|
|
25
|
-
cancelAlertEditing: () => void;
|
|
26
|
-
cancelAlertCreation: () => void;
|
|
27
|
-
hasAlerts: boolean;
|
|
28
|
-
execResult: import("../../../../../../index.js").IExecutionResultEnvelope | undefined;
|
|
29
|
-
separators: import("@gooddata/sdk-model").ISeparators;
|
|
30
|
-
supportedMeasures: import("../../../../../automations/alerting/types.js").AlertMetric[];
|
|
31
|
-
supportedAttributes: import("../../../../../automations/alerting/types.js").AlertAttribute[];
|
|
32
|
-
maxAutomationsReached: boolean;
|
|
33
|
-
maxAutomationsRecipients: number;
|
|
34
|
-
canManageAttributes: boolean;
|
|
35
|
-
canManageComparison: boolean;
|
|
36
|
-
canCreateAutomation: boolean;
|
|
37
|
-
measureFormatMap: import("../../../../../automations/alerting/DefaultAlertingDialog/utils/getters.js").IMeasureFormatMap;
|
|
38
|
-
catalogAttributes: import("@gooddata/sdk-model").ICatalogAttribute[];
|
|
39
|
-
catalogDateDatasets: import("@gooddata/sdk-model").ICatalogDateDataset[];
|
|
40
|
-
isExecutionTimestampMode: boolean;
|
|
41
|
-
};
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=useInsightWidgetAlerting.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightWidgetAlerting.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EAExC,KAAK,cAAc,EACtB,MAAM,qBAAqB,CAAC;AAyD7B,KAAK,6BAA6B,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEhE,MAAM,WAAW,2BAA2B;IACxC,MAAM,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACpC,sBAAsB,EAAE,MAAM,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwUpC,CAAC"}
|