@gooddata/sdk-ui-dashboard 11.37.0-alpha.3 → 11.37.0-alpha.5
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 +12 -11
- package/esm/index.js +10 -9
- package/esm/internal.d.ts +6 -6
- package/esm/internal.js +5 -5
- package/esm/model/events/base.d.ts +1 -1
- package/esm/model/events/index.d.ts +2 -1
- package/esm/model/events/parameters.d.ts +21 -0
- package/esm/model/events/parameters.js +19 -0
- package/esm/model/events/userInteraction.d.ts +1 -1
- package/esm/model/react/useDashboardCommand.d.ts +1 -0
- package/esm/model/react/useDashboardCommandProcessing.d.ts +4 -0
- package/esm/model/react/useDashboardUserInteraction.d.ts +1 -0
- package/esm/model/react/useDashboardUserInteraction.js +4 -0
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +37 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +69 -13
- package/esm/presentation/{alerting → automations/alerting}/AlertingDialog.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/AlertingManagementDialog.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/AlertingDialogHeader.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/DefaultAlertingDialog.js +13 -13
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/DefaultLoadingAlertingDialog.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/constants.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useAlertValidation.js +4 -4
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.d.ts +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useCreateAlert.d.ts +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useCreateAlert.js +2 -2
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useEditAlert.d.ts +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useEditAlert.js +12 -12
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useOperators.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useThresholdValue.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useUpdateAlert.d.ts +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useUpdateAlert.js +2 -2
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/cron.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/granularity.js +1 -0
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/guards.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/responsive.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/threshold.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentBasic.js +5 -5
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentEnhanced.js +10 -10
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.js +3 -3
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/components/Alert.js +6 -6
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/components/AlertDropdown.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/components/AlertsList.js +1 -1
- package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.js +3 -3
- package/esm/presentation/{alerting → automations/alerting}/hooks/useAlertingDialogAccessibility.js +3 -3
- package/esm/presentation/{alerting → automations/alerting}/hooks/useGetSupportedMeasures.js +3 -3
- package/esm/presentation/{alerting → automations/alerting}/types.d.ts +1 -1
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +9 -0
- package/esm/presentation/automations/contexts/AutomationsContext.js +11 -0
- package/esm/presentation/automations/contexts/AutomationsContext.test.d.ts +1 -0
- package/esm/presentation/automations/contexts/AutomationsContext.test.js +9 -0
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/DefaultLoadingScheduledEmailDialog.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +15 -15
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/AttachmentSettings.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/AttachmentsSelect.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/AttachmentsWrapper.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Header/ScheduleEmailDialogHeader.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Textarea.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useCreateScheduledEmail.d.ts +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useCreateScheduledEmail.js +2 -2
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts +2 -2
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +10 -10
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.d.ts +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useFiltersForDashboardScheduledExportInfo.js +5 -5
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useScheduleValidation.js +2 -2
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useUpdateScheduledEmail.d.ts +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useUpdateScheduledEmail.js +2 -2
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +3 -3
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentBasic.js +9 -9
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentEnhanced.js +10 -10
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/components/DeleteScheduleConfirmDialog.js +3 -3
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +5 -5
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/ScheduledEmailDialog.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/ScheduledEmailManagementDialog.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/hooks/useScheduleEmailDialogAccessibility.js +3 -3
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/hooks/useWidgetAutomationFilters.d.ts +2 -2
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/hooks/useWidgetAutomationFilters.js +3 -3
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/types.d.ts +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/cron.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/date.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/filters.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/responsive.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/timezone.js +1 -1
- package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/users.js +1 -1
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationAttributeFilter.js +1 -1
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationDateFilter.js +4 -4
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationDateFilterContext.js +1 -1
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationFiltersSelect.d.ts +1 -1
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationFiltersSelect.js +2 -2
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationMeasureValueFilter.js +1 -1
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/hooks/useAutomationVisibleFilters.js +2 -2
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/hooks/useDefaultSelectedFiltersForExistingAutomation.d.ts +1 -1
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/hooks/useDefaultSelectedFiltersForExistingAutomation.js +6 -6
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/hooks/useDefaultSelectedFiltersForNewAutomation.d.ts +1 -1
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/hooks/useDefaultSelectedFiltersForNewAutomation.js +3 -3
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/hooks/useValidateExistingAutomationFilters.d.ts +1 -1
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/hooks/useValidateExistingAutomationFilters.js +6 -6
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/useAutomationFilters.d.ts +1 -1
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/useAutomationFilters.js +9 -9
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/useAutomationFiltersSelect.d.ts +2 -2
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/useAutomationFiltersSelect.js +3 -3
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/utils.d.ts +1 -1
- package/esm/presentation/{automationFilters → automations/shared/automationFilters}/utils.js +2 -2
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProviderNew.js +2 -2
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js +4 -4
- package/esm/presentation/dashboard/components/DashboardRenderer.js +4 -4
- package/esm/presentation/dashboard/types.d.ts +2 -2
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +2 -2
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +3 -1
- package/esm/presentation/filterBar/filterBar/ResetFiltersButton.js +0 -3
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +46 -18
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +3 -3
- package/esm/presentation/widget/common/useInsightExport.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTitle.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +14 -14
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.d.ts +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.js +6 -6
- package/esm/presentation/widget/insight/configuration/InsightAlertsNew.js +4 -4
- package/esm/sdk-ui-dashboard.d.ts +39 -3
- package/package.json +20 -20
- package/styles/css/filterBar.css +3 -0
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +3 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/filterBar.scss +4 -0
- /package/esm/presentation/{alerting → automations/alerting}/AlertingDialog.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/AlertingManagementDialog.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/AlertingDialogHeader.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertAttributeSelect.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertDeleteDialog.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertDeleteDialog.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertDestinationSelect.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertDestinationSelect.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertGranularitySelect.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertGranularitySelect.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertMeasureSelect.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertMeasureSelect.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertSensitivitySelect.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertSensitivitySelect.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertThresholdInput.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertThresholdInput.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertTriggerModeSelect.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/components/AlertTriggerModeSelect.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/constants.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useAlertValidation.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useOperators.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useSaveAlertToBackend.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useSaveAlertToBackend.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/hooks/useThresholdValue.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/messages.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/messages.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/convertors.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/convertors.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/cron.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/getters.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/getters.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/granularity.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/guards.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/items.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/items.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/responsive.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/threshold.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/transformation.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingDialog/utils/transformation.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentBasic.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentEnhanced.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/components/Alert.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/components/AlertsList.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/DefaultAlertingManagementDialog/components/PauseAlertRunner.js +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/hooks/useAlertingDialogAccessibility.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/hooks/useGetSupportedMeasures.d.ts +0 -0
- /package/esm/presentation/{alerting → automations/alerting}/types.js +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/DefaultLoadingScheduledEmailDialog.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/AttachmentSettings.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/AttachmentsList.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/AttachmentsList.js +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/AttachmentsSelect.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/AttachmentsWrapper.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/SlidesTemplateSettings.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/SlidesTemplateSettings.js +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/ErrorWrapper/ErrorWrapper.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/ErrorWrapper/ErrorWrapper.js +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Header/ScheduleEmailDialogHeader.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/components/Textarea.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/constants.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/constants.js +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useSaveScheduledEmailToBackend.js +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailDialog/hooks/useScheduleValidation.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentBasic.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentEnhanced.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/components/DeleteScheduleConfirmDialog.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/ScheduledEmailDialog.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/ScheduledEmailManagementDialog.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/hooks/useScheduleEmailDialogAccessibility.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/types.js +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/cron.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/date.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/filters.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/pdfPageSize.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/pdfPageSize.js +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/responsive.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/timezone.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/users.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/validate.d.ts +0 -0
- /package/esm/presentation/{scheduledEmail → automations/scheduledEmail}/utils/validate.js +0 -0
- /package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/ApplyLatestFiltersConfirmDialog.d.ts +0 -0
- /package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/ApplyLatestFiltersConfirmDialog.js +0 -0
- /package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationAttributeFilter.d.ts +0 -0
- /package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationAttributeFilterContext.d.ts +0 -0
- /package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationAttributeFilterContext.js +0 -0
- /package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationDateFilter.d.ts +0 -0
- /package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationDateFilterContext.d.ts +0 -0
- /package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationMeasureValueFilter.d.ts +0 -0
- /package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationMeasureValueFilterContext.d.ts +0 -0
- /package/esm/presentation/{automationFilters → automations/shared/automationFilters}/components/AutomationMeasureValueFilterContext.js +0 -0
- /package/esm/presentation/{automationFilters → automations/shared/automationFilters}/hooks/useAutomationVisibleFilters.d.ts +0 -0
|
@@ -2,8 +2,8 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { useDashboardAlerts } from "../../../model/react/useDashboardAlerting/useDashboardAlerts.js";
|
|
4
4
|
import { useWorkspaceUsers } from "../../../model/react/useWorkspaceUsers.js";
|
|
5
|
-
import { AlertingDialog } from "../../alerting/AlertingDialog.js";
|
|
6
|
-
import { AlertingManagementDialog } from "../../alerting/AlertingManagementDialog.js";
|
|
5
|
+
import { AlertingDialog } from "../../automations/alerting/AlertingDialog.js";
|
|
6
|
+
import { AlertingManagementDialog } from "../../automations/alerting/AlertingManagementDialog.js";
|
|
7
7
|
export function AlertingDialogProviderNew() {
|
|
8
8
|
const {
|
|
9
9
|
// Shared Local State
|
|
@@ -5,10 +5,10 @@ import { useDashboardSelector } from "../../../model/react/DashboardStoreProvide
|
|
|
5
5
|
import { useDashboardScheduledEmails } from "../../../model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.js";
|
|
6
6
|
import { useWorkspaceUsers } from "../../../model/react/useWorkspaceUsers.js";
|
|
7
7
|
import { selectAutomationDefaultSelectedFilters, selectDashboardHiddenFilters, } from "../../../model/store/filtering/dashboardFilterSelectors.js";
|
|
8
|
-
import { useWidgetAutomationFilters } from "../../scheduledEmail/hooks/useWidgetAutomationFilters.js";
|
|
9
|
-
import { ScheduledEmailDialog } from "../../scheduledEmail/ScheduledEmailDialog.js";
|
|
10
|
-
import { ScheduledEmailManagementDialog } from "../../scheduledEmail/ScheduledEmailManagementDialog.js";
|
|
11
|
-
import { getAppliedDashboardFilters } from "../../scheduledEmail/utils/filters.js";
|
|
8
|
+
import { useWidgetAutomationFilters } from "../../automations/scheduledEmail/hooks/useWidgetAutomationFilters.js";
|
|
9
|
+
import { ScheduledEmailDialog } from "../../automations/scheduledEmail/ScheduledEmailDialog.js";
|
|
10
|
+
import { ScheduledEmailManagementDialog } from "../../automations/scheduledEmail/ScheduledEmailManagementDialog.js";
|
|
11
|
+
import { getAppliedDashboardFilters } from "../../automations/scheduledEmail/utils/filters.js";
|
|
12
12
|
export function ScheduledEmailDialogProvider() {
|
|
13
13
|
const {
|
|
14
14
|
// Shared Local State
|
|
@@ -6,8 +6,10 @@ import { BackendProvider, ErrorComponent as DefaultError, LoadingComponent as De
|
|
|
6
6
|
import { OverlayController, OverlayControllerProvider } from "@gooddata/sdk-ui-kit";
|
|
7
7
|
import { ThemeProvider } from "@gooddata/sdk-ui-theme-provider";
|
|
8
8
|
import { DashboardStoreProvider } from "../../../model/react/DashboardStoreProvider.js";
|
|
9
|
-
import { DefaultAlertingDialog } from "../../alerting/DefaultAlertingDialog/DefaultAlertingDialog.js";
|
|
10
|
-
import { DefaultAlertingManagementDialogNew } from "../../alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.js";
|
|
9
|
+
import { DefaultAlertingDialog } from "../../automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js";
|
|
10
|
+
import { DefaultAlertingManagementDialogNew } from "../../automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.js";
|
|
11
|
+
import { DefaultScheduledEmailDialog } from "../../automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js";
|
|
12
|
+
import { ScheduledEmailManagementDialog as DefaultScheduledEmailManagementDialog } from "../../automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js";
|
|
11
13
|
import { DASHBOARD_OVERLAYS_Z_INDEX } from "../../constants/zIndex.js";
|
|
12
14
|
import { DashboardComponentsProvider } from "../../dashboardContexts/DashboardComponentsContext.js";
|
|
13
15
|
import { DashboardConfigProvider } from "../../dashboardContexts/DashboardConfigContext.js";
|
|
@@ -23,8 +25,6 @@ import { LayoutResizeStateProvider } from "../../dragAndDrop/LayoutResizeContext
|
|
|
23
25
|
import { RenderModeAwareFilterBar } from "../../filterBar/filterBar/RenderModeAwareFilterBar.js";
|
|
24
26
|
import { DefaultDashboardLayout } from "../../flexibleLayout/DefaultDashboardLayout.js";
|
|
25
27
|
import { DefaultSaveAsDialog } from "../../saveAs/DefaultSaveAsDialog/index.js";
|
|
26
|
-
import { DefaultScheduledEmailDialog } from "../../scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js";
|
|
27
|
-
import { ScheduledEmailManagementDialog as DefaultScheduledEmailManagementDialog } from "../../scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js";
|
|
28
28
|
import { DefaultShareDialog } from "../../shareDialog/DefaultShareDialog.js";
|
|
29
29
|
import { HiddenToolbar } from "../../toolbar/HiddenToolbar.js";
|
|
30
30
|
import { DefaultSaveButton } from "../../topBar/buttonBar/button/saveButton/DefaultSaveButton.js";
|
|
@@ -6,14 +6,14 @@ 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 "../alerting/types.js";
|
|
9
|
+
import { type CustomAlertingDialogComponent, type CustomAlertingManagementDialogComponent } from "../automations/alerting/types.js";
|
|
10
|
+
import { type CustomScheduledEmailDialogComponent, type CustomScheduledEmailManagementDialogComponent } from "../automations/scheduledEmail/types.js";
|
|
10
11
|
import { type InsightComponentSetProvider } from "../componentDefinition/types.js";
|
|
11
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";
|
|
12
13
|
import { type CustomDashboardSettingsDialogComponent } from "../dashboardSettingsDialog/types.js";
|
|
13
14
|
import { type CustomFilterBarComponent } from "../filterBar/filterBar/types.js";
|
|
14
15
|
import { type CustomEmptyLayoutDropZoneBodyComponent } from "../flexibleLayout/types.js";
|
|
15
16
|
import { type CustomSaveAsDialogComponent } from "../saveAs/types.js";
|
|
16
|
-
import { type CustomScheduledEmailDialogComponent, type CustomScheduledEmailManagementDialogComponent } from "../scheduledEmail/types.js";
|
|
17
17
|
import { type CustomShareDialogComponent } from "../shareDialog/types.js";
|
|
18
18
|
import { type CustomToolbarComponent } from "../toolbar/types.js";
|
|
19
19
|
import { type CustomSaveButtonComponent } from "../topBar/buttonBar/button/saveButton/types.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
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 "../alerting/types.js";
|
|
3
|
+
import { type CustomAlertingDialogComponent, type CustomAlertingManagementDialogComponent } from "../automations/alerting/types.js";
|
|
4
|
+
import { type CustomScheduledEmailDialogComponent, type CustomScheduledEmailManagementDialogComponent } from "../automations/scheduledEmail/types.js";
|
|
4
5
|
import { type AttributeFilterComponentSet, type DashboardLayoutWidgetComponentSet, type DateFilterComponentSet, type InsightWidgetComponentSet, type RichTextWidgetComponentSet, type VisualizationSwitcherWidgetComponentSet } from "../componentDefinition/types.js";
|
|
5
6
|
import { type CustomSidebarComponent } from "../dashboard/DashboardSidebar/types.js";
|
|
6
7
|
import { type CustomDashboardSettingsDialogComponent } from "../dashboardSettingsDialog/types.js";
|
|
7
8
|
import { type CustomFilterBarComponent } from "../filterBar/filterBar/types.js";
|
|
8
9
|
import { type CustomEmptyLayoutDropZoneBodyComponent } from "../flexibleLayout/types.js";
|
|
9
10
|
import { type CustomSaveAsDialogComponent } from "../saveAs/types.js";
|
|
10
|
-
import { type CustomScheduledEmailDialogComponent, type CustomScheduledEmailManagementDialogComponent } from "../scheduledEmail/types.js";
|
|
11
11
|
import { type CustomShareDialogComponent } from "../shareDialog/types.js";
|
|
12
12
|
import { type CustomToolbarComponent } from "../toolbar/types.js";
|
|
13
13
|
import { type CustomSaveButtonComponent } from "../topBar/buttonBar/button/saveButton/types.js";
|
|
@@ -9,6 +9,7 @@ import DefaultMeasure from "react-measure";
|
|
|
9
9
|
import { Bubble, BubbleHoverTrigger, Message, UiButton, UiTooltip, makeHorizontalKeyboardNavigation, } from "@gooddata/sdk-ui-kit";
|
|
10
10
|
import { applyFilterContextWorkingSelection } from "../../../model/commands/filters.js";
|
|
11
11
|
import { isDashboardFilterContextSelectionReset, isDashboardFilterContextWorkingSelectionApplied, } from "../../../model/events/filters.js";
|
|
12
|
+
import { isDashboardParametersSelectionReset } from "../../../model/events/parameters.js";
|
|
12
13
|
import { useDashboardEventsContext } from "../../../model/react/DashboardEventsContext.js";
|
|
13
14
|
import { useDashboardDispatch, useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
14
15
|
import { selectEnableFilterViews, selectIsApplyFiltersAllAtOnceEnabledAndSet, selectLocale, } from "../../../model/store/config/configSelectors.js";
|
|
@@ -118,7 +119,8 @@ function MeasuredDiv({ measureRef, isAutoExpanded, children, }) {
|
|
|
118
119
|
useEffect(() => {
|
|
119
120
|
const handler = {
|
|
120
121
|
eval: (event) => isDashboardFilterContextSelectionReset(event) ||
|
|
121
|
-
isDashboardFilterContextWorkingSelectionApplied(event)
|
|
122
|
+
isDashboardFilterContextWorkingSelectionApplied(event) ||
|
|
123
|
+
isDashboardParametersSelectionReset(event),
|
|
122
124
|
handler: () => {
|
|
123
125
|
moveToFilterRegion();
|
|
124
126
|
},
|
|
@@ -3,9 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { IconReset, UiTooltip } from "@gooddata/sdk-ui-kit";
|
|
6
|
-
import { useEventToastMessage } from "../../../_staging/sharedHooks/useEventToastMessage.js";
|
|
7
6
|
import { messages } from "../../../locales.js";
|
|
8
|
-
import { isDashboardFilterContextSelectionReset } from "../../../model/events/filters.js";
|
|
9
7
|
import { useResetFiltersButton } from "./hooks/useResetFiltersButton.js";
|
|
10
8
|
/**
|
|
11
9
|
* @internal
|
|
@@ -23,7 +21,6 @@ export function ResetFiltersButton() {
|
|
|
23
21
|
}
|
|
24
22
|
};
|
|
25
23
|
}, []);
|
|
26
|
-
useEventToastMessage("success", isDashboardFilterContextSelectionReset, messages.filterResetButtonSuccess);
|
|
27
24
|
// Custom focus handling with delay support
|
|
28
25
|
const customFocusHandlers = useMemo(() => {
|
|
29
26
|
return {
|
|
@@ -3,8 +3,11 @@ import { useCallback, useMemo } from "react";
|
|
|
3
3
|
import { difference, isEqual, partition } from "lodash-es";
|
|
4
4
|
import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
|
|
5
5
|
import { dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilter, isDashboardMeasureValueFilter, isNoopAllTimeDashboardDateFilter, newAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
6
|
+
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { messages } from "../../../../locales.js";
|
|
6
8
|
import { changeFilterContextSelection, removeAttributeFilters, resetFilterContextWorkingSelection, } from "../../../../model/commands/filters.js";
|
|
7
9
|
import { filterContextSelectionReset } from "../../../../model/events/filters.js";
|
|
10
|
+
import { parametersSelectionReset } from "../../../../model/events/parameters.js";
|
|
8
11
|
import { useDashboardDispatch, useDashboardSelector, } from "../../../../model/react/DashboardStoreProvider.js";
|
|
9
12
|
import { useDashboardEventDispatch } from "../../../../model/react/useDashboardEventDispatch.js";
|
|
10
13
|
import { useDashboardUserInteraction } from "../../../../model/react/useDashboardUserInteraction.js";
|
|
@@ -14,6 +17,8 @@ import { drillActions } from "../../../../model/store/drill/index.js";
|
|
|
14
17
|
import { selectDisableDashboardCrossFiltering, selectDisableDashboardUserFilterReset, } from "../../../../model/store/meta/metaSelectors.js";
|
|
15
18
|
import { selectIsInEditMode } from "../../../../model/store/renderMode/renderModeSelectors.js";
|
|
16
19
|
import { selectFilterContextFilters, selectIsWorkingFilterContextChanged, selectOriginalFilterContextFilters, } from "../../../../model/store/tabs/filterContext/filterContextSelectors.js";
|
|
20
|
+
import { tabsActions } from "../../../../model/store/tabs/index.js";
|
|
21
|
+
import { selectActiveTabParameterResetTargets } from "../../../../model/store/tabs/parameters/parametersSelectors.js";
|
|
17
22
|
import { selectActiveTabLocalIdentifier } from "../../../../model/store/tabs/tabsSelectors.js";
|
|
18
23
|
const isNoopAllTimeCommonDateFilter = (filter) => {
|
|
19
24
|
return isDashboardCommonDateFilter(filter) && isNoopAllTimeDashboardDateFilter(filter);
|
|
@@ -83,17 +88,18 @@ const getNewlyAddedFilterLocalIds = (currentFilters, originalFilters) => {
|
|
|
83
88
|
.map((filter) => dashboardAttributeFilterItemLocalIdentifier(filter));
|
|
84
89
|
return difference(currentFiltersLocalIds, originalAttributeFiltersLocalIds);
|
|
85
90
|
};
|
|
86
|
-
const
|
|
91
|
+
const computeResetEligibility = (isEditMode, normalizedCurrentFilters, normalizedOriginalFilters, userFilterResetAllowed, newlyAddedFiltersCount, isWorkingFilterContextChanged, isApplyAllAtOnceEnabledAndSet, hasResettableParameter) => {
|
|
87
92
|
if (isEditMode) {
|
|
88
|
-
return false;
|
|
93
|
+
return { canResetFilters: false, canResetWorkingContext: false, canResetParameters: false };
|
|
89
94
|
}
|
|
90
95
|
const filtersChanged = !isEqual(normalizedCurrentFilters, normalizedOriginalFilters);
|
|
91
|
-
const userFilterResetAllowed = !disableUserFilterReset && !disableUserFilterResetByConfig;
|
|
92
96
|
const hasCrossFilterAddedFilters = newlyAddedFiltersCount > 0;
|
|
93
97
|
// If the cross filter add some filters, we should allow the reset
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
return {
|
|
99
|
+
canResetFilters: filtersChanged && (userFilterResetAllowed || hasCrossFilterAddedFilters),
|
|
100
|
+
canResetWorkingContext: !!isWorkingFilterContextChanged && isApplyAllAtOnceEnabledAndSet,
|
|
101
|
+
canResetParameters: hasResettableParameter && userFilterResetAllowed,
|
|
102
|
+
};
|
|
97
103
|
};
|
|
98
104
|
const isCrossFilteringEnabled = (enableKDCrossFiltering, supportsCrossFiltering, disableCrossFiltering, disableCrossFilteringByConfig) => {
|
|
99
105
|
return (enableKDCrossFiltering &&
|
|
@@ -122,31 +128,38 @@ export const useResetFiltersButton = () => {
|
|
|
122
128
|
const isApplyAllAtOnceEnabledAndSet = useDashboardSelector(selectIsApplyFiltersAllAtOnceEnabledAndSet);
|
|
123
129
|
const enableDateFilterIdentifiers = useDashboardSelector(selectEnableDateFilterIdentifiers);
|
|
124
130
|
const activeTabId = useDashboardSelector(selectActiveTabLocalIdentifier);
|
|
131
|
+
const parameterResetTargets = useDashboardSelector(selectActiveTabParameterResetTargets);
|
|
132
|
+
const hasResettableParameter = parameterResetTargets.length > 0;
|
|
133
|
+
const userFilterResetAllowed = !disableUserFilterReset && !disableUserFilterResetByConfig;
|
|
125
134
|
const dispatch = useDashboardDispatch();
|
|
126
135
|
const dispatchEvent = useDashboardEventDispatch();
|
|
127
|
-
const { filterContextStateReset } = useDashboardUserInteraction();
|
|
136
|
+
const { filterContextStateReset, parametersStateReset } = useDashboardUserInteraction();
|
|
137
|
+
const { addSuccess } = useToastMessage();
|
|
128
138
|
const newlyAddedFiltersLocalIds = useMemo(() => getNewlyAddedFilterLocalIds(currentFilters, originalFilters), [currentFilters, originalFilters]);
|
|
129
139
|
const sanitizedCurrentFilters = useMemo(() => sanitizeFilters(currentFilters, originalFilters, enableDateFilterIdentifiers), [enableDateFilterIdentifiers, originalFilters, currentFilters]);
|
|
130
140
|
// Normalize filters for comparison to handle "all time" common date filters consistently
|
|
131
141
|
const normalizedCurrentFilters = useMemo(() => normalizeFiltersForComparison(sanitizedCurrentFilters), [sanitizedCurrentFilters]);
|
|
132
142
|
const normalizedOriginalFilters = useMemo(() => normalizeFiltersForComparison(originalFilters), [originalFilters]);
|
|
133
|
-
const
|
|
143
|
+
const { canResetFilters, canResetWorkingContext, canResetParameters } = useMemo(() => computeResetEligibility(isEditMode, normalizedCurrentFilters, normalizedOriginalFilters, userFilterResetAllowed, newlyAddedFiltersLocalIds.length, isWorkingFilterContextChanged, isApplyAllAtOnceEnabledAndSet, hasResettableParameter), [
|
|
134
144
|
isEditMode,
|
|
135
145
|
normalizedCurrentFilters,
|
|
136
146
|
normalizedOriginalFilters,
|
|
137
|
-
|
|
138
|
-
disableUserFilterResetByConfig,
|
|
147
|
+
userFilterResetAllowed,
|
|
139
148
|
newlyAddedFiltersLocalIds.length,
|
|
140
149
|
isWorkingFilterContextChanged,
|
|
141
150
|
isApplyAllAtOnceEnabledAndSet,
|
|
151
|
+
hasResettableParameter,
|
|
142
152
|
]);
|
|
153
|
+
const canReset = canResetFilters || canResetWorkingContext || canResetParameters;
|
|
143
154
|
const crossFilteringEnabled = isCrossFilteringEnabled(enableKDCrossFiltering, supportsCrossFiltering, disableCrossFiltering, disableCrossFilteringByConfig);
|
|
144
155
|
const resetFilters = useCallback(() => {
|
|
145
156
|
if (!canReset) {
|
|
146
157
|
return;
|
|
147
158
|
}
|
|
148
|
-
|
|
149
|
-
|
|
159
|
+
const willResetFilterContext = canResetFilters || canResetWorkingContext;
|
|
160
|
+
// If the user filter reset is disabled (by dashboard prop OR workspace config),
|
|
161
|
+
// keep user-modified filters; only the cross-filter cleanup branch runs below.
|
|
162
|
+
if (willResetFilterContext && userFilterResetAllowed) {
|
|
150
163
|
// Normalize filters to include "All time" date filter
|
|
151
164
|
const [[commonDateFilter], otherFilters] = partition(originalFilters, isDashboardCommonDateFilter);
|
|
152
165
|
if (isApplyAllAtOnceEnabledAndSet) {
|
|
@@ -162,28 +175,43 @@ export const useResetFiltersButton = () => {
|
|
|
162
175
|
]));
|
|
163
176
|
}
|
|
164
177
|
// If cross filtering is enabled, we need to remove all attribute filters that were added by cross filtering
|
|
165
|
-
if (crossFilteringEnabled) {
|
|
178
|
+
if (willResetFilterContext && crossFilteringEnabled) {
|
|
166
179
|
dispatch(removeAttributeFilters(newlyAddedFiltersLocalIds));
|
|
167
180
|
dispatch(drillActions.resetCrossFiltering(activeTabId));
|
|
168
181
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
182
|
+
if (canResetParameters) {
|
|
183
|
+
dispatch(tabsActions.setParameterRuntimeValues({ values: parameterResetTargets }));
|
|
184
|
+
dispatchEvent(parametersSelectionReset());
|
|
185
|
+
parametersStateReset();
|
|
186
|
+
}
|
|
187
|
+
// Filter-context event and telemetry must only fire when filter-side work actually ran,
|
|
188
|
+
// so plugins/analytics don't observe a filter reset on a parameter-only click.
|
|
189
|
+
if (willResetFilterContext) {
|
|
190
|
+
dispatchEvent(filterContextSelectionReset());
|
|
191
|
+
filterContextStateReset();
|
|
192
|
+
}
|
|
193
|
+
addSuccess(messages.filterResetButtonSuccess);
|
|
172
194
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
173
195
|
}, [
|
|
174
196
|
canReset,
|
|
197
|
+
canResetFilters,
|
|
198
|
+
canResetWorkingContext,
|
|
199
|
+
canResetParameters,
|
|
200
|
+
parameterResetTargets,
|
|
175
201
|
originalFilters,
|
|
176
202
|
dispatch,
|
|
177
203
|
crossFilteringEnabled,
|
|
178
204
|
filterContextStateReset,
|
|
205
|
+
parametersStateReset,
|
|
179
206
|
newlyAddedFiltersLocalIds,
|
|
180
|
-
|
|
207
|
+
userFilterResetAllowed,
|
|
181
208
|
enableDateFilterIdentifiers,
|
|
182
209
|
isApplyAllAtOnceEnabledAndSet,
|
|
210
|
+
addSuccess,
|
|
183
211
|
]);
|
|
184
212
|
return {
|
|
185
213
|
canReset,
|
|
186
|
-
resetType:
|
|
214
|
+
resetType: userFilterResetAllowed ? "all" : "crossFilter",
|
|
187
215
|
resetFilters,
|
|
188
216
|
};
|
|
189
217
|
};
|
|
@@ -2238,15 +2238,15 @@ export const en_US = {
|
|
|
2238
2238
|
"crowdinContext": "The tooltip helps users understand why they cannot change its value."
|
|
2239
2239
|
},
|
|
2240
2240
|
"filter.resetButton.tooltip": {
|
|
2241
|
-
"text": "Reset all
|
|
2241
|
+
"text": "Reset all to defaults",
|
|
2242
2242
|
"crowdinContext": "The tooltip of the reset button in the filter bar"
|
|
2243
2243
|
},
|
|
2244
2244
|
"filter.resetButton.success": {
|
|
2245
|
-
"text": "Success:
|
|
2245
|
+
"text": "Success: Reset to default values.",
|
|
2246
2246
|
"crowdinContext": "Text shown after reset button in the filter bar is used."
|
|
2247
2247
|
},
|
|
2248
2248
|
"filter.resetButton.ariaLabel": {
|
|
2249
|
-
"text": "Reset
|
|
2249
|
+
"text": "Reset all to defaults",
|
|
2250
2250
|
"crowdinContext": "The aria-label of the reset button in the filter bar"
|
|
2251
2251
|
},
|
|
2252
2252
|
"filter.crossFilterResetButton.tooltip": {
|
|
@@ -14,10 +14,10 @@ import { selectIsExecutionResultExportableToCsvByRef, selectIsExecutionResultExp
|
|
|
14
14
|
import { selectShowWidgetAsTable } from "../../../model/store/showWidgetAsTable/showWidgetAsTableSelectors.js";
|
|
15
15
|
import { selectSlideShowExportVisible } from "../../../model/store/topBar/topBarSelectors.js";
|
|
16
16
|
import { selectIsExportableToCSV, selectIsExportableToPdfTabular, selectIsExportableToPngImage, selectIsExportableToXLSX, } from "../../../model/store/widgetExports/widgetExportsSelectors.js";
|
|
17
|
+
import { getDefaultPdfPageSize } from "../../automations/scheduledEmail/utils/pdfPageSize.js";
|
|
17
18
|
import { useExportCsvDialogContext } from "../../dashboardContexts/ExportCsvDialogContext.js";
|
|
18
19
|
import { useExportTabularPdfDialogContext } from "../../dashboardContexts/ExportTabularPdfDialogContext.js";
|
|
19
20
|
import { useExportXlsxDialogContext } from "../../dashboardContexts/ExportXlsxDialogContext.js";
|
|
20
|
-
import { getDefaultPdfPageSize } from "../../scheduledEmail/utils/pdfPageSize.js";
|
|
21
21
|
import { useExportToTabular } from "../../topBar/menuButton/useExportToTabular.js";
|
|
22
22
|
import { useExportWithTemplateSelection } from "../../topBar/menuButton/useExportWithTemplateSelection.js";
|
|
23
23
|
import { useExportHandler } from "./useExportHandler.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type IAutomationMetadataObject, type ISeparators } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IInputPureProps } from "@gooddata/sdk-ui-kit";
|
|
3
|
-
import { type AlertMetric } from "../../../../alerting/types.js";
|
|
3
|
+
import { type AlertMetric } from "../../../../automations/alerting/types.js";
|
|
4
4
|
export interface IAlertTitleProps {
|
|
5
5
|
id?: string;
|
|
6
6
|
measures: AlertMetric[];
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2025-2026 GoodData Corporation
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { Input } from "@gooddata/sdk-ui-kit";
|
|
5
|
-
import { getDescription } from "../../../../alerting/DefaultAlertingDialog/utils/getters.js";
|
|
5
|
+
import { getDescription } from "../../../../automations/alerting/DefaultAlertingDialog/utils/getters.js";
|
|
6
6
|
export function AlertTitle({ id, alert, measures, separators, onChange }) {
|
|
7
7
|
const intl = useIntl();
|
|
8
8
|
const description = getDescription(intl, measures, alert, separators);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2022-
|
|
2
|
+
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useState } from "react";
|
|
4
4
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
5
5
|
import Skeleton from "react-loading-skeleton";
|
|
6
6
|
import { AddButton, SeparatorLine, UiAutofocus, useIdPrefixed, useListWithActionsKeyboardNavigation, } from "@gooddata/sdk-ui-kit";
|
|
7
|
-
import { Alert } from "../../../../alerting/DefaultAlertingManagementDialog/components/Alert.js";
|
|
7
|
+
import { Alert } from "../../../../automations/alerting/DefaultAlertingManagementDialog/components/Alert.js";
|
|
8
8
|
import { DashboardInsightSubmenuContainer } from "../../../insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuContainer.js";
|
|
9
9
|
const getItemAdditionalActions = () => {
|
|
10
10
|
return ["dropdown", "item"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type IAutomationMetadataObjectDefinition, type ICatalogAttribute, type ICatalogDateDataset, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type ISeparators, type IWorkspaceUser } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IExecutionResultEnvelope } from "../../../../../model/store/executionResults/types.js";
|
|
3
|
-
import { type IMeasureFormatMap } from "../../../../alerting/DefaultAlertingDialog/utils/getters.js";
|
|
4
|
-
import { type AlertAttribute, type AlertMetric } from "../../../../alerting/types.js";
|
|
3
|
+
import { type IMeasureFormatMap } from "../../../../automations/alerting/DefaultAlertingDialog/utils/getters.js";
|
|
4
|
+
import { type AlertAttribute, type AlertMetric } from "../../../../automations/alerting/types.js";
|
|
5
5
|
interface ICreateAlertProps {
|
|
6
6
|
canManageAttributes: boolean;
|
|
7
7
|
canManageComparison: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type ICatalogAttribute, type ICatalogDateDataset, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type ISeparators, type IWorkspaceUser } from "@gooddata/sdk-model";
|
|
2
2
|
import { type OverlayPositionType } from "@gooddata/sdk-ui-kit";
|
|
3
3
|
import { type IExecutionResultEnvelope } from "../../../../../model/store/executionResults/types.js";
|
|
4
|
-
import { type IMeasureFormatMap } from "../../../../alerting/DefaultAlertingDialog/utils/getters.js";
|
|
5
|
-
import { type AlertAttribute, type AlertMetric } from "../../../../alerting/types.js";
|
|
4
|
+
import { type IMeasureFormatMap } from "../../../../automations/alerting/DefaultAlertingDialog/utils/getters.js";
|
|
5
|
+
import { type AlertAttribute, type AlertMetric } from "../../../../automations/alerting/types.js";
|
|
6
6
|
interface IEditAlertProps {
|
|
7
7
|
canManageAttributes: boolean;
|
|
8
8
|
canManageComparison: boolean;
|
|
@@ -2,20 +2,20 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { FormattedMessage, defineMessages, useIntl } from "react-intl";
|
|
4
4
|
import { Bubble, BubbleHoverTrigger, Button, Input, Message, } from "@gooddata/sdk-ui-kit";
|
|
5
|
-
import { AlertAttributeSelect } from "../../../../alerting/DefaultAlertingDialog/components/AlertAttributeSelect.js";
|
|
6
|
-
import { AlertComparisonOperatorSelect } from "../../../../alerting/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.js";
|
|
7
|
-
import { AlertComparisonPeriodSelect } from "../../../../alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.js";
|
|
8
|
-
import { AlertDestinationSelect } from "../../../../alerting/DefaultAlertingDialog/components/AlertDestinationSelect.js";
|
|
9
|
-
import { AlertGranularitySelect } from "../../../../alerting/DefaultAlertingDialog/components/AlertGranularitySelect.js";
|
|
10
|
-
import { AlertMeasureSelect } from "../../../../alerting/DefaultAlertingDialog/components/AlertMeasureSelect.js";
|
|
11
|
-
import { AlertSensitivitySelect } from "../../../../alerting/DefaultAlertingDialog/components/AlertSensitivitySelect.js";
|
|
12
|
-
import { useAlertValidation, } from "../../../../alerting/DefaultAlertingDialog/hooks/useAlertValidation.js";
|
|
13
|
-
import { useAttributeValuesFromExecResults } from "../../../../alerting/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.js";
|
|
14
|
-
import { useThresholdValue } from "../../../../alerting/DefaultAlertingDialog/hooks/useThresholdValue.js";
|
|
15
|
-
import { getAlertAiOperator, getAlertAttribute, getAlertCompareOperator, getAlertComparison, getAlertFilters, getAlertGranularity, getAlertMeasure, getAlertRelativeOperator, getAlertSensitivity, getValueSuffix, } from "../../../../alerting/DefaultAlertingDialog/utils/getters.js";
|
|
16
|
-
import { translateGranularity } from "../../../../alerting/DefaultAlertingDialog/utils/granularity.js";
|
|
17
|
-
import { isAnomalyDetection, isChangeOrDifferenceOperator, } from "../../../../alerting/DefaultAlertingDialog/utils/guards.js";
|
|
18
|
-
import { RecipientsSelect } from "../../../../scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js";
|
|
5
|
+
import { AlertAttributeSelect } from "../../../../automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.js";
|
|
6
|
+
import { AlertComparisonOperatorSelect } from "../../../../automations/alerting/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.js";
|
|
7
|
+
import { AlertComparisonPeriodSelect } from "../../../../automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.js";
|
|
8
|
+
import { AlertDestinationSelect } from "../../../../automations/alerting/DefaultAlertingDialog/components/AlertDestinationSelect.js";
|
|
9
|
+
import { AlertGranularitySelect } from "../../../../automations/alerting/DefaultAlertingDialog/components/AlertGranularitySelect.js";
|
|
10
|
+
import { AlertMeasureSelect } from "../../../../automations/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.js";
|
|
11
|
+
import { AlertSensitivitySelect } from "../../../../automations/alerting/DefaultAlertingDialog/components/AlertSensitivitySelect.js";
|
|
12
|
+
import { useAlertValidation, } from "../../../../automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.js";
|
|
13
|
+
import { useAttributeValuesFromExecResults } from "../../../../automations/alerting/DefaultAlertingDialog/hooks/useAttributeValuesFromExecResults.js";
|
|
14
|
+
import { useThresholdValue } from "../../../../automations/alerting/DefaultAlertingDialog/hooks/useThresholdValue.js";
|
|
15
|
+
import { getAlertAiOperator, getAlertAttribute, getAlertCompareOperator, getAlertComparison, getAlertFilters, getAlertGranularity, getAlertMeasure, getAlertRelativeOperator, getAlertSensitivity, getValueSuffix, } from "../../../../automations/alerting/DefaultAlertingDialog/utils/getters.js";
|
|
16
|
+
import { translateGranularity } from "../../../../automations/alerting/DefaultAlertingDialog/utils/granularity.js";
|
|
17
|
+
import { isAnomalyDetection, isChangeOrDifferenceOperator, } from "../../../../automations/alerting/DefaultAlertingDialog/utils/guards.js";
|
|
18
|
+
import { RecipientsSelect } from "../../../../automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js";
|
|
19
19
|
import { DashboardInsightSubmenuContainer } from "../../../insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuContainer.js";
|
|
20
20
|
import { AlertTitle } from "./AlertTitle.js";
|
|
21
21
|
import { EditAlertConfiguration } from "./EditAlertConfiguration.js";
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useState } from "react";
|
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import { Bubble, BubbleHoverTrigger, Button, IconQuestionMark, } from "@gooddata/sdk-ui-kit";
|
|
6
6
|
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
7
|
-
import { AlertTriggerModeSelect } from "../../../../alerting/DefaultAlertingDialog/components/AlertTriggerModeSelect.js";
|
|
7
|
+
import { AlertTriggerModeSelect } from "../../../../automations/alerting/DefaultAlertingDialog/components/AlertTriggerModeSelect.js";
|
|
8
8
|
import { gdColorStateBlank } from "../../../../constants/colors.js";
|
|
9
9
|
const TOOLTIP_ALIGN_POINTS = [
|
|
10
10
|
{ align: "cr cl", offset: { x: 0, y: -1 } },
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type ICatalogAttribute, type ICatalogDateDataset, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type ISeparators } from "@gooddata/sdk-model";
|
|
2
|
-
import { type IMeasureFormatMap } from "../../../../../alerting/DefaultAlertingDialog/utils/getters.js";
|
|
3
|
-
import { type AlertAttribute, type AlertMetric, type AlertMetricComparatorType } from "../../../../../alerting/types.js";
|
|
2
|
+
import { type IMeasureFormatMap } from "../../../../../automations/alerting/DefaultAlertingDialog/utils/getters.js";
|
|
3
|
+
import { type AlertAttribute, type AlertMetric, type AlertMetricComparatorType } from "../../../../../automations/alerting/types.js";
|
|
4
4
|
export interface IUseEditAlertProps {
|
|
5
5
|
metrics: AlertMetric[];
|
|
6
6
|
attributes: AlertAttribute[];
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js
CHANGED
|
@@ -10,10 +10,10 @@ import { selectEntitlementMinimumRecurrenceMinutes } from "../../../../../../mod
|
|
|
10
10
|
import { selectCanUseAiAssistant } from "../../../../../../model/store/permissions/permissionsSelectors.js";
|
|
11
11
|
import { selectCurrentUser } from "../../../../../../model/store/user/userSelectors.js";
|
|
12
12
|
import { selectUsers } from "../../../../../../model/store/users/usersSelectors.js";
|
|
13
|
-
import { getDescription, } from "../../../../../alerting/DefaultAlertingDialog/utils/getters.js";
|
|
14
|
-
import { isAlertRecipientsValid, isAlertValueDefined, } from "../../../../../alerting/DefaultAlertingDialog/utils/guards.js";
|
|
15
|
-
import { transformAlertByAnomalyDetection, transformAlertByAttribute, transformAlertByComparisonOperator, transformAlertByDestination, transformAlertByGranularity, transformAlertByMetric, transformAlertByRelativeOperator, transformAlertBySensitivity, transformAlertByTitle, transformAlertByValue, } from "../../../../../alerting/DefaultAlertingDialog/utils/transformation.js";
|
|
16
|
-
import { isEmail } from "../../../../../scheduledEmail/utils/validate.js";
|
|
13
|
+
import { getDescription, } from "../../../../../automations/alerting/DefaultAlertingDialog/utils/getters.js";
|
|
14
|
+
import { isAlertRecipientsValid, isAlertValueDefined, } from "../../../../../automations/alerting/DefaultAlertingDialog/utils/guards.js";
|
|
15
|
+
import { transformAlertByAnomalyDetection, transformAlertByAttribute, transformAlertByComparisonOperator, transformAlertByDestination, transformAlertByGranularity, transformAlertByMetric, transformAlertByRelativeOperator, transformAlertBySensitivity, transformAlertByTitle, transformAlertByValue, } from "../../../../../automations/alerting/DefaultAlertingDialog/utils/transformation.js";
|
|
16
|
+
import { isEmail } from "../../../../../automations/scheduledEmail/utils/validate.js";
|
|
17
17
|
const DEFAULT_MIN_RECURRENCE_MINUTES = "60";
|
|
18
18
|
export const useEditAlert = ({ metrics, attributes, alert, onCreate, onUpdate, measureFormatMap, destinations, separators, }) => {
|
|
19
19
|
const [viewMode, setViewMode] = useState("edit");
|
|
@@ -27,14 +27,14 @@ export declare const useInsightWidgetAlerting: ({ widget, closeInsightWidgetMenu
|
|
|
27
27
|
hasAlerts: boolean;
|
|
28
28
|
execResult: import("../../../../../../index.js").IExecutionResultEnvelope | undefined;
|
|
29
29
|
separators: import("@gooddata/sdk-model").ISeparators;
|
|
30
|
-
supportedMeasures: import("../../../../../alerting/types.js").AlertMetric[];
|
|
31
|
-
supportedAttributes: import("../../../../../alerting/types.js").AlertAttribute[];
|
|
30
|
+
supportedMeasures: import("../../../../../automations/alerting/types.js").AlertMetric[];
|
|
31
|
+
supportedAttributes: import("../../../../../automations/alerting/types.js").AlertAttribute[];
|
|
32
32
|
maxAutomationsReached: boolean;
|
|
33
33
|
maxAutomationsRecipients: number;
|
|
34
34
|
canManageAttributes: boolean;
|
|
35
35
|
canManageComparison: boolean;
|
|
36
36
|
canCreateAutomation: boolean;
|
|
37
|
-
measureFormatMap: import("../../../../../alerting/DefaultAlertingDialog/utils/getters.js").IMeasureFormatMap;
|
|
37
|
+
measureFormatMap: import("../../../../../automations/alerting/DefaultAlertingDialog/utils/getters.js").IMeasureFormatMap;
|
|
38
38
|
catalogAttributes: import("@gooddata/sdk-model").ICatalogAttribute[];
|
|
39
39
|
catalogDateDatasets: import("@gooddata/sdk-model").ICatalogDateDataset[];
|
|
40
40
|
isExecutionTimestampMode: boolean;
|
|
@@ -21,12 +21,12 @@ import { selectNotificationChannels } from "../../../../../../model/store/notifi
|
|
|
21
21
|
import { selectCanCreateAutomation, selectCanManageWorkspace, } from "../../../../../../model/store/permissions/permissionsSelectors.js";
|
|
22
22
|
import { selectExecutionTimestamp } from "../../../../../../model/store/ui/uiSelectors.js";
|
|
23
23
|
import { selectCurrentUser } from "../../../../../../model/store/user/userSelectors.js";
|
|
24
|
-
import { useSaveAlertToBackend } from "../../../../../alerting/DefaultAlertingDialog/hooks/useSaveAlertToBackend.js";
|
|
25
|
-
import { messages } from "../../../../../alerting/DefaultAlertingDialog/messages.js";
|
|
26
|
-
import { createDefaultAlert } from "../../../../../alerting/DefaultAlertingDialog/utils/convertors.js";
|
|
27
|
-
import { getMeasureFormatsFromExecution } from "../../../../../alerting/DefaultAlertingDialog/utils/getters.js";
|
|
28
|
-
import { getSupportedInsightAttributesByInsight, getSupportedInsightMeasuresByInsight, } from "../../../../../alerting/DefaultAlertingDialog/utils/items.js";
|
|
29
|
-
import { useWidgetAutomationFilters } from "../../../../../scheduledEmail/hooks/useWidgetAutomationFilters.js";
|
|
24
|
+
import { useSaveAlertToBackend } from "../../../../../automations/alerting/DefaultAlertingDialog/hooks/useSaveAlertToBackend.js";
|
|
25
|
+
import { messages } from "../../../../../automations/alerting/DefaultAlertingDialog/messages.js";
|
|
26
|
+
import { createDefaultAlert } from "../../../../../automations/alerting/DefaultAlertingDialog/utils/convertors.js";
|
|
27
|
+
import { getMeasureFormatsFromExecution } from "../../../../../automations/alerting/DefaultAlertingDialog/utils/getters.js";
|
|
28
|
+
import { getSupportedInsightAttributesByInsight, getSupportedInsightMeasuresByInsight, } from "../../../../../automations/alerting/DefaultAlertingDialog/utils/items.js";
|
|
29
|
+
import { useWidgetAutomationFilters } from "../../../../../automations/scheduledEmail/hooks/useWidgetAutomationFilters.js";
|
|
30
30
|
export const useInsightWidgetAlerting = ({ widget, closeInsightWidgetMenu }) => {
|
|
31
31
|
const { addSuccess, addError } = useToastMessage();
|
|
32
32
|
const { automationInteraction } = useDashboardUserInteraction();
|
|
@@ -18,10 +18,10 @@ import { selectInsightByWidgetRef } from "../../../../model/store/insights/insig
|
|
|
18
18
|
import { selectCanCreateAutomation, selectCanManageWorkspace, } from "../../../../model/store/permissions/permissionsSelectors.js";
|
|
19
19
|
import { selectExecutionTimestamp } from "../../../../model/store/ui/uiSelectors.js";
|
|
20
20
|
import { selectCurrentUser } from "../../../../model/store/user/userSelectors.js";
|
|
21
|
-
import { AlertDeleteDialog } from "../../../alerting/DefaultAlertingDialog/components/AlertDeleteDialog.js";
|
|
22
|
-
import { useSaveAlertToBackend } from "../../../alerting/DefaultAlertingDialog/hooks/useSaveAlertToBackend.js";
|
|
23
|
-
import { messages } from "../../../alerting/DefaultAlertingDialog/messages.js";
|
|
24
|
-
import { getSupportedInsightMeasuresByInsight } from "../../../alerting/DefaultAlertingDialog/utils/items.js";
|
|
21
|
+
import { AlertDeleteDialog } from "../../../automations/alerting/DefaultAlertingDialog/components/AlertDeleteDialog.js";
|
|
22
|
+
import { useSaveAlertToBackend } from "../../../automations/alerting/DefaultAlertingDialog/hooks/useSaveAlertToBackend.js";
|
|
23
|
+
import { messages } from "../../../automations/alerting/DefaultAlertingDialog/messages.js";
|
|
24
|
+
import { getSupportedInsightMeasuresByInsight } from "../../../automations/alerting/DefaultAlertingDialog/utils/items.js";
|
|
25
25
|
import { DASHBOARD_HEADER_OVERLAYS_Z_INDEX } from "../../../constants/zIndex.js";
|
|
26
26
|
import { AlertsList } from "./InsightAlertConfig/AlertsList.js";
|
|
27
27
|
import { NoAvailableMeasures } from "./InsightAlertConfig/NoAvailableAlerts.js";
|