@gooddata/sdk-ui-dashboard 10.9.0-alpha.9 → 10.9.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 +35 -3
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/_staging/drills/drillingUtils.d.ts +2 -14
- package/esm/_staging/drills/drillingUtils.d.ts.map +1 -1
- package/esm/_staging/drills/drillingUtils.js +2 -62
- package/esm/_staging/drills/drillingUtils.js.map +1 -1
- package/esm/assets/ellipsis-hover.svg +1 -0
- package/esm/assets/ellipsis.svg +1 -0
- package/esm/assets/filter.svg +1 -0
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +9 -0
- package/esm/locales.js.map +1 -1
- package/esm/model/commandHandlers/alerts/createAlertHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/alerts/createAlertHandler.js +2 -4
- package/esm/model/commandHandlers/alerts/createAlertHandler.js.map +1 -1
- package/esm/model/commandHandlers/alerts/saveAlertHandler.d.ts +6 -0
- package/esm/model/commandHandlers/alerts/saveAlertHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/alerts/saveAlertHandler.js +15 -0
- package/esm/model/commandHandlers/alerts/saveAlertHandler.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.d.ts +2 -2
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.js +4 -4
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomations.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +6 -5
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillDownHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillDownHandler.js +24 -2
- package/esm/model/commandHandlers/drill/drillDownHandler.js.map +1 -1
- package/esm/model/commandHandlers/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +2 -4
- package/esm/model/commandHandlers/index.js.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.js +3 -3
- package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.js.map +1 -1
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js +23 -2
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/common/drillDown.d.ts +6 -0
- package/esm/model/commandHandlers/widgets/common/drillDown.d.ts.map +1 -0
- package/esm/model/commandHandlers/widgets/common/drillDown.js +22 -0
- package/esm/model/commandHandlers/widgets/common/drillDown.js.map +1 -0
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js +23 -2
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js +15 -2
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js.map +1 -1
- package/esm/model/commands/alerts.d.ts +16 -45
- package/esm/model/commands/alerts.d.ts.map +1 -1
- package/esm/model/commands/alerts.js +6 -24
- package/esm/model/commands/alerts.js.map +1 -1
- package/esm/model/commands/base.d.ts +1 -1
- package/esm/model/commands/base.d.ts.map +1 -1
- package/esm/model/commands/index.d.ts +3 -3
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/commands/index.js +1 -1
- package/esm/model/commands/index.js.map +1 -1
- package/esm/model/commands/insight.d.ts +17 -3
- package/esm/model/commands/insight.d.ts.map +1 -1
- package/esm/model/commands/insight.js +7 -3
- package/esm/model/commands/insight.js.map +1 -1
- package/esm/model/events/alerts.d.ts +10 -48
- package/esm/model/events/alerts.d.ts.map +1 -1
- package/esm/model/events/alerts.js +4 -24
- package/esm/model/events/alerts.js.map +1 -1
- package/esm/model/events/base.d.ts +1 -1
- package/esm/model/events/base.d.ts.map +1 -1
- package/esm/model/events/base.js.map +1 -1
- package/esm/model/events/index.d.ts +3 -3
- package/esm/model/events/index.d.ts.map +1 -1
- package/esm/model/events/index.js +1 -1
- package/esm/model/events/index.js.map +1 -1
- package/esm/model/react/index.d.ts +1 -0
- package/esm/model/react/index.d.ts.map +1 -1
- package/esm/model/react/index.js +1 -0
- package/esm/model/react/index.js.map +1 -1
- package/esm/model/react/useDashboardAlerts.d.ts +33 -0
- package/esm/model/react/useDashboardAlerts.d.ts.map +1 -0
- package/esm/model/react/useDashboardAlerts.js +145 -0
- package/esm/model/react/useDashboardAlerts.js.map +1 -0
- package/esm/model/react/useDashboardCommand.d.ts +1 -2
- package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
- package/esm/model/react/useDashboardCommandProcessing.d.ts +2 -6
- package/esm/model/react/useDashboardCommandProcessing.d.ts.map +1 -1
- package/esm/model/react/useDashboardScheduledEmails.d.ts +3 -5
- package/esm/model/react/useDashboardScheduledEmails.d.ts.map +1 -1
- package/esm/model/react/useDashboardScheduledEmails.js +6 -29
- package/esm/model/react/useDashboardScheduledEmails.js.map +1 -1
- package/esm/model/store/automations/automationsReducers.d.ts +3 -2
- package/esm/model/store/automations/automationsReducers.d.ts.map +1 -1
- package/esm/model/store/automations/automationsReducers.js +2 -2
- package/esm/model/store/automations/automationsReducers.js.map +1 -1
- package/esm/model/store/automations/automationsSelectors.d.ts +31 -0
- package/esm/model/store/automations/automationsSelectors.d.ts.map +1 -1
- package/esm/model/store/automations/automationsSelectors.js +46 -1
- package/esm/model/store/automations/automationsSelectors.js.map +1 -1
- package/esm/model/store/automations/automationsState.d.ts +2 -1
- package/esm/model/store/automations/automationsState.d.ts.map +1 -1
- package/esm/model/store/automations/automationsState.js +1 -1
- package/esm/model/store/automations/automationsState.js.map +1 -1
- package/esm/model/store/automations/index.d.ts +2 -2
- package/esm/model/store/catalog/catalogSelectors.d.ts +23 -1
- package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.js +9 -3
- package/esm/model/store/catalog/catalogSelectors.js.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +10 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +14 -0
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/index.d.ts +4 -4
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +3 -3
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/layout/index.d.ts +4 -0
- package/esm/model/store/layout/index.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.d.ts +6 -1
- package/esm/model/store/layout/layoutReducers.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.js +10 -0
- package/esm/model/store/layout/layoutReducers.js.map +1 -1
- package/esm/model/store/ui/index.d.ts +17 -0
- package/esm/model/store/ui/index.d.ts.map +1 -1
- package/esm/model/store/ui/uiReducers.d.ts +18 -1
- package/esm/model/store/ui/uiReducers.d.ts.map +1 -1
- package/esm/model/store/ui/uiReducers.js +23 -0
- package/esm/model/store/ui/uiReducers.js.map +1 -1
- package/esm/model/store/ui/uiSelectors.d.ts +17 -0
- package/esm/model/store/ui/uiSelectors.d.ts.map +1 -1
- package/esm/model/store/ui/uiSelectors.js +16 -0
- package/esm/model/store/ui/uiSelectors.js.map +1 -1
- package/esm/model/store/ui/uiState.d.ts +14 -0
- package/esm/model/store/ui/uiState.d.ts.map +1 -1
- package/esm/model/store/ui/uiState.js +10 -0
- package/esm/model/store/ui/uiState.js.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +14 -11
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js.map +1 -1
- package/esm/model/types/commonTypes.d.ts +2 -2
- package/esm/model/types/commonTypes.d.ts.map +1 -1
- package/esm/presentation/alerting/AlertingDialog.d.ts +7 -0
- package/esm/presentation/alerting/AlertingDialog.d.ts.map +1 -0
- package/esm/presentation/alerting/AlertingDialog.js +11 -0
- package/esm/presentation/alerting/AlertingDialog.js.map +1 -0
- package/esm/presentation/alerting/AlertingManagementDialog.d.ts +7 -0
- package/esm/presentation/alerting/AlertingManagementDialog.d.ts.map +1 -0
- package/esm/presentation/alerting/AlertingManagementDialog.js +11 -0
- package/esm/presentation/alerting/AlertingManagementDialog.js.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +7 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +37 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/index.d.ts +2 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/index.d.ts.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/index.js +3 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/index.js.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/operator.d.ts +4 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/operator.d.ts.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/operator.js +31 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/operator.js.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/utils/responsive.d.ts +2 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/utils/responsive.d.ts.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/utils/responsive.js +5 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/utils/responsive.js.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialog.d.ts +7 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialog.d.ts.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialog.js +59 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialog.js.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.d.ts +12 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.d.ts.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js +80 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts +4 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.js +51 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.js.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsList.d.ts +14 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsList.d.ts.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsList.js +21 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertsList.js.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.d.ts +12 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.d.ts.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.js +29 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/DeleteAlertConfirmDialog.js.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts +12 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.d.ts.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.js +43 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/PauseAlertRunner.js.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/index.d.ts +2 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/index.d.ts.map +1 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/index.js +3 -0
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/index.js.map +1 -0
- package/esm/presentation/alerting/index.d.ts +6 -0
- package/esm/presentation/alerting/index.d.ts.map +1 -0
- package/esm/presentation/alerting/index.js +6 -0
- package/esm/presentation/alerting/index.js.map +1 -0
- package/esm/presentation/alerting/types.d.ts +107 -0
- package/esm/presentation/alerting/types.d.ts.map +1 -0
- package/esm/presentation/alerting/types.js +2 -0
- package/esm/presentation/alerting/types.js.map +1 -0
- package/esm/presentation/constants/index.d.ts +1 -0
- package/esm/presentation/constants/index.d.ts.map +1 -1
- package/esm/presentation/constants/index.js +2 -1
- package/esm/presentation/constants/index.js.map +1 -1
- package/esm/presentation/constants/zIndex.d.ts +1 -0
- package/esm/presentation/constants/zIndex.d.ts.map +1 -1
- package/esm/presentation/constants/zIndex.js +3 -1
- package/esm/presentation/constants/zIndex.js.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.d.ts +3 -0
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.d.ts.map +1 -0
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.js +11 -0
- package/esm/presentation/dashboard/DashboardHeader/AlertingDialogProvider.js.map +1 -0
- package/esm/presentation/dashboard/DashboardHeader/DashboardHeader.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/DashboardHeader.js +3 -1
- package/esm/presentation/dashboard/DashboardHeader/DashboardHeader.js.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js +2 -5
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +3 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js.map +1 -1
- package/esm/presentation/dashboard/types.d.ts +13 -0
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +3 -0
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +2 -0
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js.map +1 -1
- package/esm/presentation/drill/types.d.ts +1 -0
- package/esm/presentation/drill/types.d.ts.map +1 -1
- package/esm/presentation/drill/types.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +5 -8
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js +43 -12
- package/esm/presentation/filterBar/filterBar/filterViews/FilterViews.js.map +1 -1
- package/esm/presentation/index.d.ts +1 -0
- package/esm/presentation/index.d.ts.map +1 -1
- package/esm/presentation/index.js +2 -1
- package/esm/presentation/index.js.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.json +1 -1
- package/esm/presentation/localization/bundles/en-US.json +297 -2
- package/esm/presentation/localization/bundles/fi-FI.json +2 -2
- package/esm/presentation/localization/bundles/{zh-Yue.json → zh-HK.json} +7 -7
- package/esm/presentation/localization/bundles/zh-Hant.json +7 -7
- package/esm/presentation/localization/translations.js +2 -2
- package/esm/presentation/localization/translations.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.d.ts +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/types.d.ts +3 -3
- package/esm/presentation/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +166 -120
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js.map +1 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts +2 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js +3 -4
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js.map +1 -1
- package/esm/presentation/widget/common/useWidgetFilters.d.ts +1 -1
- package/esm/presentation/widget/common/useWidgetFilters.d.ts.map +1 -1
- package/esm/presentation/widget/common/useWidgetFilters.js +1 -1
- package/esm/presentation/widget/common/useWidgetFilters.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargets.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargets.js +1 -0
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargets.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.d.ts +3 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.js +20 -11
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js +5 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.d.ts +7 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.js +13 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDeleteDialog.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js +8 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js +8 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts +4 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js +22 -7
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +4 -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/CreateAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +28 -11
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +18 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts +5 -8
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js +12 -10
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.d.ts +11 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.js +27 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/{useEditAlert.js → hooks/useEditAlert.js} +7 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/{useInsightAlerting.d.ts → hooks/useInsightAlerting.d.ts} +6 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +179 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts +29 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js +51 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.d.ts +11 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.js +27 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useUpdateAlert.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.d.ts +57 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.js +59 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +8 -7
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js +5 -5
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js +23 -5
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.js +25 -3
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.js +5 -4
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useInsightDrillConfigPanel.js.map +1 -1
- package/esm/presentation/widget/insight/index.d.ts +1 -0
- package/esm/presentation/widget/insight/index.d.ts.map +1 -1
- package/esm/presentation/widget/insight/index.js +2 -1
- package/esm/presentation/widget/insight/index.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +1 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +9 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
- package/esm/presentation/widget/insightMenu/types.d.ts +3 -3
- package/esm/presentation/widget/insightMenu/types.d.ts.map +1 -1
- package/esm/presentation/widget/kpi/ViewModeDashboardKpi/useKpiAlertOperations.d.ts.map +1 -1
- package/esm/presentation/widget/kpi/ViewModeDashboardKpi/useKpiAlertOperations.js +9 -20
- package/esm/presentation/widget/kpi/ViewModeDashboardKpi/useKpiAlertOperations.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +4 -5
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +1 -0
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +12 -9
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +374 -146
- package/esm/types.d.ts +9 -0
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js.map +1 -1
- package/package.json +16 -15
- package/styles/css/alerting.css +88 -11
- package/styles/css/alerting.css.map +1 -1
- package/styles/css/configurationPanel.css +3 -0
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/dashboard.css +60 -5
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/icons.css +7 -0
- package/styles/css/icons.css.map +1 -1
- package/styles/css/main.css +158 -16
- package/styles/css/main.css.map +1 -1
- package/styles/css/scheduled_mail.css +60 -5
- package/styles/css/scheduled_mail.css.map +1 -1
- package/styles/scss/alerting.scss +54 -11
- package/styles/scss/configurationPanel.scss +5 -0
- package/styles/scss/icons.scss +9 -0
- package/styles/scss/scheduled_mail.scss +69 -3
- package/esm/model/commandHandlers/alerts/removeAlertsHandler.d.ts +0 -6
- package/esm/model/commandHandlers/alerts/removeAlertsHandler.d.ts.map +0 -1
- package/esm/model/commandHandlers/alerts/removeAlertsHandler.js +0 -20
- package/esm/model/commandHandlers/alerts/removeAlertsHandler.js.map +0 -1
- package/esm/model/commandHandlers/alerts/updateAlertHandler.d.ts +0 -6
- package/esm/model/commandHandlers/alerts/updateAlertHandler.d.ts.map +0 -1
- package/esm/model/commandHandlers/alerts/updateAlertHandler.js +0 -17
- package/esm/model/commandHandlers/alerts/updateAlertHandler.js.map +0 -1
- package/esm/model/commandHandlers/alerts/validation/alertsValidation.d.ts +0 -20
- package/esm/model/commandHandlers/alerts/validation/alertsValidation.d.ts.map +0 -1
- package/esm/model/commandHandlers/alerts/validation/alertsValidation.js +0 -22
- package/esm/model/commandHandlers/alerts/validation/alertsValidation.js.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useEditAlert.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useEditAlert.js.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.js +0 -127
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.js.map +0 -1
- /package/esm/presentation/widget/insight/configuration/InsightAlertConfig/{useEditAlert.d.ts → hooks/useEditAlert.d.ts} +0 -0
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
// (C) 2022-2024 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { AddButton, SeparatorLine } from "@gooddata/sdk-ui-kit";
|
|
4
4
|
import { AlertsListItem } from "./AlertsListItem.js";
|
|
5
5
|
import { DashboardInsightSubmenuContainer } from "../../../insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuContainer.js";
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
7
|
+
import Skeleton from "react-loading-skeleton";
|
|
8
|
+
export const AlertsList = ({ isLoading, alerts, onCreateAlert, onEditAlert, onPauseAlert, onResumeAlert, onDeleteAlert, onClose, onGoBack, measures, maxAutomationsReached, }) => {
|
|
9
|
+
const intl = useIntl();
|
|
10
|
+
return (React.createElement(DashboardInsightSubmenuContainer, { title: intl.formatMessage({ id: "insightAlert.config.alerts" }), onClose: onClose, onBack: onGoBack },
|
|
8
11
|
React.createElement("div", { className: "gd-alerts-list" },
|
|
9
|
-
React.createElement("div", { className: "gd-alerts-list__items" }, alerts.map((alert) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
React.createElement("div", { className: "gd-alerts-list__items" }, isLoading ? (React.createElement(LoadingSkeleton, null)) : (React.createElement(React.Fragment, null, alerts.map((alert) => {
|
|
13
|
+
const selectedMeasureIdentifier = alert.alert.condition.left;
|
|
14
|
+
const measureExists = measures.some((measure) => measure.measure.localIdentifier === selectedMeasureIdentifier);
|
|
15
|
+
return (React.createElement(AlertsListItem, { key: alert.id, alert: alert, onEditAlert: onEditAlert, onPauseAlert: onPauseAlert, onResumeAlert: onResumeAlert, onDeleteAlert: onDeleteAlert, isInvalid: !measureExists }));
|
|
16
|
+
})))),
|
|
12
17
|
React.createElement(SeparatorLine, { pL: 10, pR: 10 }),
|
|
13
18
|
React.createElement("div", { className: "gd-alerts-list__buttons" },
|
|
14
|
-
React.createElement(
|
|
19
|
+
React.createElement(AddButton, { onClick: onCreateAlert, title: React.createElement(FormattedMessage, { id: "insightAlert.config.addAlert" }), className: "gd-alerts-list__add-button", isDisabled: maxAutomationsReached || isLoading, tooltip: maxAutomationsReached ? (React.createElement(FormattedMessage, { id: "insightAlert.maxAlertsReached" })) : undefined })))));
|
|
20
|
+
};
|
|
21
|
+
const LoadingSkeletonItem = () => {
|
|
22
|
+
return (React.createElement("div", { className: "gd-react-loading-skeleton-wrapper" },
|
|
23
|
+
React.createElement(Skeleton, { className: "gd-react-loading-skeleton", circle: true, width: 27, height: 27 }),
|
|
24
|
+
React.createElement(Skeleton, { containerClassName: "skeleton-flex skeleton-margin", className: "gd-react-loading-skeleton", width: "83%", height: 14 })));
|
|
25
|
+
};
|
|
26
|
+
const LoadingSkeleton = () => {
|
|
27
|
+
return (React.createElement(React.Fragment, null,
|
|
28
|
+
React.createElement(LoadingSkeletonItem, null),
|
|
29
|
+
React.createElement(LoadingSkeletonItem, null)));
|
|
15
30
|
};
|
|
16
31
|
//# sourceMappingURL=AlertsList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertsList.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AlertsList.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2GAA2G,CAAC;AAC7J,OAAO,E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AE,EAAE,GAAI;YACjC,6BAAK,SAAS,EAAC,yBAAyB;gBACpC,oBAAC,SAAS,IACN,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAC,8BAA8B,GAAG,EAC7D,SAAS,EAAC,4BAA4B,EACtC,UAAU,EAAE,qBAAqB,IAAI,SAAS,EAC9C,OAAO,EACH,qBAAqB,CAAC,CAAC,CAAC,CACpB,oBAAC,gBAAgB,IAAC,EAAE,EAAC,+BAA+B,GAAG,CAC1D,CAAC,CAAC,CAAC,SAAS,GAEnB,CACA,CACJ,CACyB,CACtC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAC7B,OAAO,CACH,6BAAK,SAAS,EAAC,mCAAmC;QAC9C,oBAAC,QAAQ,IAAC,SAAS,EAAC,2BAA2B,EAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI;QACvF,oBAAC,QAAQ,IACL,kBAAkB,EAAC,+BAA+B,EAClD,SAAS,EAAC,2BAA2B,EACrC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,EAAE,GACZ,CACA,CACT,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,GAAG,EAAE;IACzB,OAAO,CACH;QACI,oBAAC,mBAAmB,OAAG;QACvB,oBAAC,mBAAmB,OAAG,CACxB,CACN,CAAC;AACN,CAAC,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ interface IAlertsListItemProps {
|
|
|
6
6
|
onPauseAlert: (alert: IAutomationMetadataObject) => void;
|
|
7
7
|
onDeleteAlert: (alert: IAutomationMetadataObject) => void;
|
|
8
8
|
onResumeAlert: (alert: IAutomationMetadataObject) => void;
|
|
9
|
+
isInvalid?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export declare const AlertsListItem: React.FC<IAlertsListItemProps>;
|
|
11
12
|
export {};
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertsListItem.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAIhE,UAAU,oBAAoB;IAC1B,KAAK,EAAE,yBAAyB,CAAC;IACjC,WAAW,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACxD,YAAY,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACzD,aAAa,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,aAAa,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertsListItem.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAIhE,UAAU,oBAAoB;IAC1B,KAAK,EAAE,yBAAyB,CAAC;IACjC,WAAW,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACxD,YAAY,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACzD,aAAa,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,aAAa,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgCzD,CAAC"}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Icon } from "@gooddata/sdk-ui-kit";
|
|
4
4
|
import { AlertActionsDropdown } from "./AlertActionsDropdown.js";
|
|
5
|
-
export const AlertsListItem = ({ alert, onEditAlert, onPauseAlert, onDeleteAlert, onResumeAlert, }) => {
|
|
5
|
+
export const AlertsListItem = ({ alert, onEditAlert, onPauseAlert, onDeleteAlert, onResumeAlert, isInvalid = false, }) => {
|
|
6
6
|
const isPaused = alert.alert?.trigger?.state === "PAUSED";
|
|
7
7
|
return (React.createElement("div", { className: "gd-alerts-list-item", key: alert.id, onClick: () => onEditAlert(alert) },
|
|
8
|
-
React.createElement("div", { className: "gd-alerts-list-item__content" },
|
|
9
|
-
React.createElement("div", { className: "gd-alerts-list-item__icon" }, isPaused ? React.createElement(Icon.AlertPaused, null) : React.createElement(Icon.Alert, null)),
|
|
8
|
+
React.createElement("div", { className: "gd-alerts-list-item__content s-alert-list-item" },
|
|
9
|
+
React.createElement("div", { className: "gd-alerts-list-item__icon" }, isInvalid ? React.createElement(Icon.Warning, null) : isPaused ? React.createElement(Icon.AlertPaused, null) : React.createElement(Icon.Alert, null)),
|
|
10
10
|
React.createElement("div", { className: "gd-alerts-list-item__details" },
|
|
11
11
|
React.createElement("div", { className: "gd-alerts-list-item__title" }, alert.title),
|
|
12
12
|
React.createElement("div", { className: "gd-alerts-list-item__description" }, alert.description))),
|
|
13
13
|
React.createElement("div", { className: "gd-alerts-list-item__actions" },
|
|
14
|
-
React.createElement(AlertActionsDropdown, { onEdit: () => onEditAlert(alert), onPause: () => onPauseAlert(alert), onDelete: () => onDeleteAlert(alert), onResume: () => onResumeAlert(alert), isPaused: isPaused }))));
|
|
14
|
+
React.createElement(AlertActionsDropdown, { alert: alert, onEdit: () => onEditAlert(alert), onPause: () => onPauseAlert(alert), onDelete: () => onDeleteAlert(alert), onResume: () => onResumeAlert(alert), isPaused: isPaused }))));
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=AlertsListItem.js.map
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertsListItem.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertsListItem.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAWjE,MAAM,CAAC,MAAM,cAAc,GAAmC,CAAC,EAC3D,KAAK,EACL,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,SAAS,GAAG,KAAK,GACpB,EAAE,EAAE;IACD,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,QAAQ,CAAC;IAC1D,OAAO,CACH,6BAAK,SAAS,EAAC,qBAAqB,EAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC;QACjF,6BAAK,SAAS,EAAC,gDAAgD;YAC3D,6BAAK,SAAS,EAAC,2BAA2B,IACrC,SAAS,CAAC,CAAC,CAAC,oBAAC,IAAI,CAAC,OAAO,OAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,oBAAC,IAAI,CAAC,WAAW,OAAG,CAAC,CAAC,CAAC,oBAAC,IAAI,CAAC,KAAK,OAAG,CAC9E;YACN,6BAAK,SAAS,EAAC,8BAA8B;gBACzC,6BAAK,SAAS,EAAC,4BAA4B,IAAE,KAAK,CAAC,KAAK,CAAO;gBAC/D,6BAAK,SAAS,EAAC,kCAAkC,IAAE,KAAK,CAAC,WAAW,CAAO,CACzE,CACJ;QACN,6BAAK,SAAS,EAAC,8BAA8B;YACzC,oBAAC,oBAAoB,IACjB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,EAChC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,EAClC,QAAQ,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EACpC,QAAQ,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EACpC,QAAQ,EAAE,QAAQ,GACpB,CACA,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IAutomationMetadataObjectDefinition, IMeasure } from "@gooddata/sdk-model";
|
|
3
|
-
import {
|
|
3
|
+
import { Webhooks } from "../../../../../model/index.js";
|
|
4
4
|
interface ICreateAlertProps {
|
|
5
|
-
alert: IAutomationMetadataObjectDefinition;
|
|
5
|
+
alert: IAutomationMetadataObjectDefinition | null;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
onCancel: () => void;
|
|
8
8
|
onCreate?: (alert: IAutomationMetadataObjectDefinition) => void;
|
|
9
|
-
destinations:
|
|
9
|
+
destinations: Webhooks;
|
|
10
10
|
hasAlerts: boolean;
|
|
11
11
|
measures: IMeasure[];
|
|
12
|
+
maxAutomationsReached: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const CreateAlert: React.FC<ICreateAlertProps>;
|
|
14
15
|
export {};
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEH,mCAAmC,EACnC,QAAQ,EACX,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CreateAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEH,mCAAmC,EACnC,QAAQ,EACX,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD,UAAU,iBAAiB;IACvB,KAAK,EAAE,mCAAmC,GAAG,IAAI,CAAC;IAClD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,IAAI,CAAC;IAChE,YAAY,EAAE,QAAQ,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,qBAAqB,EAAE,OAAO,CAAC;CAClC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuBnD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2022-2024 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { EditAlert } from "./EditAlert.js";
|
|
4
|
-
export const CreateAlert = ({ alert, onClose, onCancel, onCreate, destinations, hasAlerts, measures, }) => {
|
|
5
|
-
return (React.createElement(EditAlert, { alert: alert, onClose: onClose, onCancel: onCancel, onCreate: onCreate, isNewAlert: true, destinations: destinations, hasAlerts: hasAlerts, measures: measures }));
|
|
4
|
+
export const CreateAlert = ({ alert, onClose, onCancel, onCreate, destinations, hasAlerts, measures, maxAutomationsReached, }) => {
|
|
5
|
+
return (React.createElement(EditAlert, { alert: alert, onClose: onClose, onCancel: onCancel, onCreate: onCreate, isNewAlert: true, destinations: destinations, hasAlerts: hasAlerts, measures: measures, maxAutomationsReached: maxAutomationsReached }));
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=CreateAlert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateAlert.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateAlert.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAc3C,MAAM,CAAC,MAAM,WAAW,GAAgC,CAAC,EACrD,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,qBAAqB,GACxB,EAAE,EAAE;IACD,OAAO,CACH,oBAAC,SAAS,IACN,KAAK,EAAE,KAAkC,EACzC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,UAAU,QACV,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,qBAAqB,EAAE,qBAAqB,GAC9C,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IAutomationMetadataObject, IAutomationMetadataObjectDefinition, IMeasure } from "@gooddata/sdk-model";
|
|
3
|
-
import {
|
|
3
|
+
import { Webhooks } from "../../../../../model/index.js";
|
|
4
4
|
interface IEditAlertProps {
|
|
5
5
|
alert: IAutomationMetadataObject;
|
|
6
6
|
isNewAlert?: boolean;
|
|
7
7
|
hasAlerts: boolean;
|
|
8
|
-
destinations:
|
|
8
|
+
destinations: Webhooks;
|
|
9
9
|
measures: IMeasure[];
|
|
10
10
|
onClose: () => void;
|
|
11
11
|
onCancel: () => void;
|
|
12
12
|
onCreate?: (alert: IAutomationMetadataObjectDefinition) => void;
|
|
13
13
|
onUpdate?: (alert: IAutomationMetadataObject) => void;
|
|
14
|
+
maxAutomationsReached?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare const EditAlert: React.FC<IEditAlertProps>;
|
|
16
17
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACH,yBAAyB,EACzB,mCAAmC,EACnC,QAAQ,EACX,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACH,yBAAyB,EACzB,mCAAmC,EACnC,QAAQ,EACX,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAIzD,UAAU,eAAe;IACrB,KAAK,EAAE,yBAAyB,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,QAAQ,CAAC;IACvB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACtD,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyI/C,CAAC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
// (C) 2022-2024 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { Button, Input } from "@gooddata/sdk-ui-kit";
|
|
3
|
+
import { Bubble, BubbleHoverTrigger, Button, Input, Message } from "@gooddata/sdk-ui-kit";
|
|
4
4
|
import { DashboardInsightSubmenuContainer } from "../../../insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuContainer.js";
|
|
5
5
|
import { AlertMeasureSelect } from "./AlertMeasureSelect.js";
|
|
6
6
|
import { AlertComparisonOperatorSelect } from "./AlertComparisonOperatorSelect.js";
|
|
7
7
|
import { AlertDestinationSelect } from "./AlertDestinationSelect.js";
|
|
8
8
|
import { EditAlertConfiguration } from "./EditAlertConfiguration.js";
|
|
9
|
-
import { useEditAlert } from "./useEditAlert.js";
|
|
10
|
-
|
|
9
|
+
import { useEditAlert } from "./hooks/useEditAlert.js";
|
|
10
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
11
|
+
const TOOLTIP_ALIGN_POINTS = [{ align: "cl cr" }, { align: "cr cl" }];
|
|
12
|
+
export const EditAlert = ({ alert, isNewAlert, hasAlerts, destinations, measures, onClose, onCancel, onCreate, onUpdate, maxAutomationsReached = false, }) => {
|
|
11
13
|
const { viewMode, updatedAlert, canSubmit,
|
|
12
14
|
//
|
|
13
15
|
changeComparisonOperator, changeMeasure, changeValue, changeDestination,
|
|
@@ -19,22 +21,37 @@ export const EditAlert = ({ alert, isNewAlert, hasAlerts, destinations, measures
|
|
|
19
21
|
onCreate,
|
|
20
22
|
onUpdate,
|
|
21
23
|
});
|
|
22
|
-
|
|
24
|
+
const intl = useIntl();
|
|
25
|
+
const disableCreateButtonDueToLimits = isNewAlert && maxAutomationsReached;
|
|
26
|
+
const selectedMeasureIdentifier = updatedAlert.alert.condition.left;
|
|
27
|
+
const selectedMeasure = measures.find((measure) => measure.measure.localIdentifier === selectedMeasureIdentifier);
|
|
28
|
+
return viewMode === "edit" ? (React.createElement(DashboardInsightSubmenuContainer, { title: isNewAlert
|
|
29
|
+
? intl.formatMessage({ id: "insightAlert.config.createAlert" })
|
|
30
|
+
: intl.formatMessage({ id: "insightAlert.config.editAlert" }), onClose: onClose, onBack: hasAlerts ? onCancel : undefined },
|
|
23
31
|
React.createElement("div", { className: "gd-edit-alert" },
|
|
24
32
|
React.createElement("div", { className: "gd-edit-alert__form" },
|
|
25
33
|
React.createElement("div", { className: "gd-edit-alert__form-content" },
|
|
26
|
-
React.createElement("div", { className: "gd-edit-alert__measure-label" },
|
|
27
|
-
|
|
34
|
+
React.createElement("div", { className: "gd-edit-alert__measure-label" },
|
|
35
|
+
React.createElement(FormattedMessage, { id: "insightAlert.config.when" })),
|
|
36
|
+
React.createElement(AlertMeasureSelect, { selectedMeasure: selectedMeasure, onMeasureChange: changeMeasure, measures: measures }),
|
|
28
37
|
React.createElement(AlertComparisonOperatorSelect, { selectedComparisonOperator: updatedAlert.alert.condition.operator, onComparisonOperatorChange: changeComparisonOperator }),
|
|
29
|
-
React.createElement(Input, { className: "gd-edit-alert__value-input", isSmall: true, autofocus: true, value: updatedAlert.alert.condition.right, onChange: (e) => changeValue(e !== "" ? parseInt(e, 10) : undefined), type: "number" }),
|
|
30
|
-
destinations.length > 1 && (React.createElement(AlertDestinationSelect, { selectedDestination: updatedAlert.webhook, onDestinationChange: changeDestination, destinations: destinations })))
|
|
38
|
+
React.createElement(Input, { className: "gd-edit-alert__value-input s-alert-value-input", isSmall: true, autofocus: true, value: updatedAlert.alert.condition.right, onChange: (e) => changeValue(e !== "" ? parseInt(e, 10) : undefined), type: "number" }),
|
|
39
|
+
destinations.length > 1 && (React.createElement(AlertDestinationSelect, { selectedDestination: updatedAlert.webhook, onDestinationChange: changeDestination, destinations: destinations }))),
|
|
40
|
+
!selectedMeasure ? (React.createElement(Message, { type: "error" },
|
|
41
|
+
React.createElement(FormattedMessage, { id: "insightAlert.config.invalid" }))) : null),
|
|
31
42
|
React.createElement("div", { className: "gd-edit-alert__buttons" },
|
|
32
|
-
React.createElement(Button, { className: "gd-edit-alert__configuration-button gd-button-link gd-button-icon-only gd-icon-settings gd-button-small", onClick: configureAlert }),
|
|
43
|
+
React.createElement(Button, { className: "gd-edit-alert__configuration-button gd-button-link gd-button-icon-only gd-icon-settings gd-button-small s-alert-configuration", onClick: configureAlert }),
|
|
33
44
|
React.createElement("div", null,
|
|
34
45
|
React.createElement(Button, { variant: "secondary", size: "small", onClick: () => {
|
|
35
46
|
onCancel();
|
|
36
|
-
} },
|
|
37
|
-
|
|
47
|
+
} },
|
|
48
|
+
React.createElement(FormattedMessage, { id: "cancel" })),
|
|
49
|
+
React.createElement(BubbleHoverTrigger, { hideDelay: 0, showDelay: 0 },
|
|
50
|
+
React.createElement(Button, { intent: "action", size: "small", disabled: !canSubmit || disableCreateButtonDueToLimits, onClick: isNewAlert ? createAlert : updateAlert, className: "gd-button-left-margin" }, isNewAlert
|
|
51
|
+
? intl.formatMessage({ id: "create" })
|
|
52
|
+
: intl.formatMessage({ id: "save" })),
|
|
53
|
+
disableCreateButtonDueToLimits ? (React.createElement(Bubble, { alignPoints: TOOLTIP_ALIGN_POINTS },
|
|
54
|
+
React.createElement(FormattedMessage, { id: "insightAlert.maxAlertsReached" }))) : null)))))) : (React.createElement(DashboardInsightSubmenuContainer, { title: intl.formatMessage({ id: "insightAlert.config.title" }), onClose: onClose, onBack: cancelAlertConfiguration },
|
|
38
55
|
React.createElement(EditAlertConfiguration, { alert: updatedAlert, onUpdate: saveAlertConfiguration, onCancel: cancelAlertConfiguration })));
|
|
39
56
|
};
|
|
40
57
|
//# sourceMappingURL=EditAlert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditAlert.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditAlert.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,2GAA2G,CAAC;AAC7J,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGvD,MAAM,oBAAoB,GAAG,CAAC,EAAE,KAAK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,OAAO,EAAE,GAAG,EAAE;4BACV,QAAQ,EAAE,CAAC;wBACf,CAAC;wBAED,oBAAC,gBAAgB,IAAC,EAAE,EAAC,QAAQ,GAAG,CAC3B;oBACT,oBAAC,kBAAkB,IAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC;wBAC1C,oBAAC,MAAM,IACH,MAAM,EAAC,QAAQ,EACf,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,CAAC,SAAS,IAAI,8BAA8B,EACtD,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EAC/C,SAAS,EAAC,uBAAuB,IAEhC,UAAU;4BACP,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;4BACtC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CACnC;wBACR,8BAA8B,CAAC,CAAC,CAAC,CAC9B,oBAAC,MAAM,IAAC,WAAW,EAAE,oBAAoB;4BACrC,oBAAC,gBAAgB,IAAC,EAAE,EAAC,+BAA+B,GAAG,CAClD,CACZ,CAAC,CAAC,CAAC,IAAI,CACS,CACnB,CACJ,CACJ,CACyB,CACtC,CAAC,CAAC,CAAC,CACA,oBAAC,gCAAgC,IAC7B,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,2BAA2B,EAAE,CAAC,EAC9D,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,wBAAwB;QAEhC,oBAAC,sBAAsB,IACnB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,sBAAsB,EAChC,QAAQ,EAAE,wBAAwB,GACpC,CAC6B,CACtC,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditAlertConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditAlertConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAYhE,UAAU,4BAA4B;IAClC,KAAK,EAAE,yBAAyB,CAAC;IACjC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACxD;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAmEzE,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
// (C) 2022-2024 GoodData Corporation
|
|
2
2
|
import React, { useState } from "react";
|
|
3
|
-
import { Button, Icon } from "@gooddata/sdk-ui-kit";
|
|
3
|
+
import { Bubble, BubbleHoverTrigger, Button, Icon } from "@gooddata/sdk-ui-kit";
|
|
4
4
|
import { AlertTriggerModeSelect } from "./AlertTriggerModeSelect.js";
|
|
5
|
+
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
6
|
+
import { FormattedMessage } from "react-intl";
|
|
7
|
+
import { gdColorStateBlank } from "../../../../constants/index.js";
|
|
8
|
+
const TOOLTIP_ALIGN_POINTS = [
|
|
9
|
+
{ align: "cr cl", offset: { x: 0, y: -1 } },
|
|
10
|
+
{ align: "cl cr", offset: { x: 0, y: -1 } },
|
|
11
|
+
];
|
|
5
12
|
export const EditAlertConfiguration = ({ alert, onCancel, onUpdate, }) => {
|
|
6
13
|
const [updatedAlert, setUpdatedAlert] = useState(alert);
|
|
7
14
|
const canSubmit = updatedAlert.alert?.trigger.mode !== alert.alert?.trigger.mode;
|
|
15
|
+
const theme = useTheme();
|
|
8
16
|
return (React.createElement("div", { className: "gd-edit-alert-configuration" },
|
|
9
17
|
React.createElement("div", { className: "gd-edit-alert-configuration__form" },
|
|
10
18
|
React.createElement("div", { className: "gd-edit-alert-configuration__trigger-label" },
|
|
11
|
-
"
|
|
19
|
+
React.createElement(FormattedMessage, { id: "insightAlert.config.trigger" }),
|
|
12
20
|
" ",
|
|
13
|
-
React.createElement(
|
|
21
|
+
React.createElement(BubbleHoverTrigger, null,
|
|
22
|
+
React.createElement(Icon.QuestionMark, { className: "gd-edit-alert-configuration__trigger-label-icon", color: theme?.palette?.complementary?.c6 ?? gdColorStateBlank, width: 14, height: 14 }),
|
|
23
|
+
React.createElement(Bubble, { alignPoints: TOOLTIP_ALIGN_POINTS },
|
|
24
|
+
React.createElement(FormattedMessage, { id: "insightAlert.config.trigger.tooltip" })))),
|
|
14
25
|
React.createElement("div", { className: "gd-edit-alert-configuration__trigger-select" },
|
|
15
26
|
React.createElement(AlertTriggerModeSelect, { selectedTriggerMode: updatedAlert.alert?.trigger.mode ?? "ALWAYS", onTriggerModeChange: (triggerMode) => {
|
|
16
27
|
setUpdatedAlert({
|
|
@@ -28,7 +39,9 @@ export const EditAlertConfiguration = ({ alert, onCancel, onUpdate, }) => {
|
|
|
28
39
|
React.createElement("div", null,
|
|
29
40
|
React.createElement(Button, { variant: "secondary", size: "small", onClick: () => {
|
|
30
41
|
onCancel();
|
|
31
|
-
} },
|
|
32
|
-
|
|
42
|
+
} },
|
|
43
|
+
React.createElement(FormattedMessage, { id: "cancel" })),
|
|
44
|
+
React.createElement(Button, { intent: "action", size: "small", disabled: !canSubmit, onClick: () => onUpdate(updatedAlert) },
|
|
45
|
+
React.createElement(FormattedMessage, { id: "save" }))))));
|
|
33
46
|
};
|
|
34
47
|
//# sourceMappingURL=EditAlertConfiguration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditAlertConfiguration.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditAlertConfiguration.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,MAAM,oBAAoB,GAAG;IACzB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE;IAC3C,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE;CAC9C,CAAC;AAQF,MAAM,CAAC,MAAM,sBAAsB,GAA2C,CAAC,EAC3E,KAAK,EACL,QAAQ,EACR,QAAQ,GACX,EAAE,EAAE;IACD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAA4B,KAAK,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;wBACV,QAAQ,EAAE,CAAC;oBACf,CAAC;oBAED,oBAAC,gBAAgB,IAAC,EAAE,EAAC,QAAQ,GAAG,CAC3B;gBACT,oBAAC,MAAM,IACH,MAAM,EAAC,QAAQ,EACf,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,CAAC,SAAS,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;oBAErC,oBAAC,gBAAgB,IAAC,EAAE,EAAC,MAAM,GAAG,CACzB,CACP,CACJ,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { IAlertComparisonOperator } from "@gooddata/sdk-model";
|
|
2
|
+
export declare const LOADING_MASK_HEIGHT = 100;
|
|
2
3
|
export declare const COMPARISON_OPERATOR_LESS_THAN = "LESS_THAN";
|
|
3
|
-
export declare const
|
|
4
|
+
export declare const COMPARISON_OPERATOR_LESS_THAN_OR_EQUAL_TO = "LESS_THAN_OR_EQUAL_TO";
|
|
4
5
|
export declare const COMPARISON_OPERATOR_GREATER_THAN = "GREATER_THAN";
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const COMPARISON_OPERATOR_GREATER_THAN_OR_EQUAL_TO = "GREATER_THAN_OR_EQUAL_TO";
|
|
6
7
|
export declare const COMPARISON_OPERATORS: {
|
|
7
8
|
readonly COMPARISON_OPERATOR_LESS_THAN: "LESS_THAN";
|
|
8
|
-
readonly
|
|
9
|
+
readonly COMPARISON_OPERATOR_LESS_THAN_OR_EQUAL_TO: "LESS_THAN_OR_EQUAL_TO";
|
|
9
10
|
readonly COMPARISON_OPERATOR_GREATER_THAN: "GREATER_THAN";
|
|
10
|
-
readonly
|
|
11
|
+
readonly COMPARISON_OPERATOR_GREATER_THAN_OR_EQUAL_TO: "GREATER_THAN_OR_EQUAL_TO";
|
|
11
12
|
};
|
|
12
13
|
export declare const COMPARISON_OPERATOR_OPTIONS: {
|
|
13
14
|
title: string;
|
|
@@ -16,8 +17,4 @@ export declare const COMPARISON_OPERATOR_OPTIONS: {
|
|
|
16
17
|
}[];
|
|
17
18
|
export declare const DROPDOWN_ITEM_HEIGHT = 28;
|
|
18
19
|
export declare const DROPDOWN_SEPARATOR_ITEM_HEIGHT = 10;
|
|
19
|
-
export interface INotificationChannel {
|
|
20
|
-
id: string;
|
|
21
|
-
title: string;
|
|
22
|
-
}
|
|
23
20
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,eAAO,MAAM,6BAA6B,cAAc,CAAC;AACzD,eAAO,MAAM,yCAAyC,0BAA0B,CAAC;AACjF,eAAO,MAAM,gCAAgC,iBAAiB,CAAC;AAC/D,eAAO,MAAM,4CAA4C,6BAA6B,CAAC;AAEvF,eAAO,MAAM,oBAAoB;;;;;CAKvB,CAAC;AAEX,eAAO,MAAM,2BAA2B,EAAE;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,wBAAwB,CAAC;CAChC,EAqBA,CAAC;AAEF,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,8BAA8B,KAAK,CAAC"}
|
|
@@ -1,33 +1,35 @@
|
|
|
1
|
+
import { messages } from "./messages.js";
|
|
2
|
+
export const LOADING_MASK_HEIGHT = 100;
|
|
1
3
|
export const COMPARISON_OPERATOR_LESS_THAN = "LESS_THAN";
|
|
2
|
-
export const
|
|
4
|
+
export const COMPARISON_OPERATOR_LESS_THAN_OR_EQUAL_TO = "LESS_THAN_OR_EQUAL_TO";
|
|
3
5
|
export const COMPARISON_OPERATOR_GREATER_THAN = "GREATER_THAN";
|
|
4
|
-
export const
|
|
6
|
+
export const COMPARISON_OPERATOR_GREATER_THAN_OR_EQUAL_TO = "GREATER_THAN_OR_EQUAL_TO";
|
|
5
7
|
export const COMPARISON_OPERATORS = {
|
|
6
8
|
COMPARISON_OPERATOR_LESS_THAN,
|
|
7
|
-
|
|
9
|
+
COMPARISON_OPERATOR_LESS_THAN_OR_EQUAL_TO,
|
|
8
10
|
COMPARISON_OPERATOR_GREATER_THAN,
|
|
9
|
-
|
|
11
|
+
COMPARISON_OPERATOR_GREATER_THAN_OR_EQUAL_TO,
|
|
10
12
|
};
|
|
11
13
|
export const COMPARISON_OPERATOR_OPTIONS = [
|
|
12
14
|
{
|
|
13
|
-
title:
|
|
15
|
+
title: messages.comparisonOperatorGreaterThan.id,
|
|
14
16
|
icon: "gd-icon-greater-than",
|
|
15
17
|
id: COMPARISON_OPERATORS.COMPARISON_OPERATOR_GREATER_THAN,
|
|
16
18
|
},
|
|
17
19
|
{
|
|
18
|
-
title:
|
|
20
|
+
title: messages.comparisonOperatorGreaterThanOrEquals.id,
|
|
19
21
|
icon: "gd-icon-greater-than-equal-to",
|
|
20
|
-
id: COMPARISON_OPERATORS.
|
|
22
|
+
id: COMPARISON_OPERATORS.COMPARISON_OPERATOR_GREATER_THAN_OR_EQUAL_TO,
|
|
21
23
|
},
|
|
22
24
|
{
|
|
23
|
-
title:
|
|
25
|
+
title: messages.comparisonOperatorLessThan.id,
|
|
24
26
|
icon: "gd-icon-less-than",
|
|
25
27
|
id: COMPARISON_OPERATORS.COMPARISON_OPERATOR_LESS_THAN,
|
|
26
28
|
},
|
|
27
29
|
{
|
|
28
|
-
title:
|
|
30
|
+
title: messages.comparisonOperatorLessThanOrEquals.id,
|
|
29
31
|
icon: "gd-icon-less-than-equal-to",
|
|
30
|
-
id: COMPARISON_OPERATORS.
|
|
32
|
+
id: COMPARISON_OPERATORS.COMPARISON_OPERATOR_LESS_THAN_OR_EQUAL_TO,
|
|
31
33
|
},
|
|
32
34
|
];
|
|
33
35
|
export const DROPDOWN_ITEM_HEIGHT = 28;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEvC,MAAM,CAAC,MAAM,6BAA6B,GAAG,WAAW,CAAC;AACzD,MAAM,CAAC,MAAM,yCAAyC,GAAG,uBAAuB,CAAC;AACjF,MAAM,CAAC,MAAM,gCAAgC,GAAG,cAAc,CAAC;AAC/D,MAAM,CAAC,MAAM,4CAA4C,GAAG,0BAA0B,CAAC;AAEvF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,6BAA6B;IAC7B,yCAAyC;IACzC,gCAAgC;IAChC,4CAA4C;CACtC,CAAC;AAEX,MAAM,CAAC,MAAM,2BAA2B,GAIlC;IACF;QACI,KAAK,EAAE,QAAQ,CAAC,6BAA6B,CAAC,EAAE;QAChD,IAAI,EAAE,sBAAsB;QAC5B,EAAE,EAAE,oBAAoB,CAAC,gCAAgC;KAC5D;IACD;QACI,KAAK,EAAE,QAAQ,CAAC,qCAAqC,CAAC,EAAE;QACxD,IAAI,EAAE,+BAA+B;QACrC,EAAE,EAAE,oBAAoB,CAAC,4CAA4C;KACxE;IACD;QACI,KAAK,EAAE,QAAQ,CAAC,0BAA0B,CAAC,EAAE;QAC7C,IAAI,EAAE,mBAAmB;QACzB,EAAE,EAAE,oBAAoB,CAAC,6BAA6B;KACzD;IACD;QACI,KAAK,EAAE,QAAQ,CAAC,kCAAkC,CAAC,EAAE;QACrD,IAAI,EAAE,4BAA4B;QAClC,EAAE,EAAE,oBAAoB,CAAC,yCAAyC;KACrE;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AACvC,MAAM,CAAC,MAAM,8BAA8B,GAAG,EAAE,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IAutomationMetadataObject, IAutomationMetadataObjectDefinition } from "@gooddata/sdk-model";
|
|
2
|
+
import { CommandProcessingStatus } from "../../../../../../model/index.js";
|
|
3
|
+
export declare const useCreateAlert: ({ onBeforeRun, onSuccess, onError, }?: {
|
|
4
|
+
onBeforeRun?: ((alertToCreate: IAutomationMetadataObjectDefinition) => void) | undefined;
|
|
5
|
+
onSuccess?: ((alert: IAutomationMetadataObject) => void) | undefined;
|
|
6
|
+
onError?: ((error: any) => void) | undefined;
|
|
7
|
+
}) => {
|
|
8
|
+
create: (alertToCreate: IAutomationMetadataObjectDefinition) => void;
|
|
9
|
+
creationStatus?: CommandProcessingStatus | undefined;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useCreateAlert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateAlert.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AACrG,OAAO,EACH,uBAAuB,EAG1B,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,cAAc;mCAKO,mCAAmC,KAAK,IAAI;yBACtD,yBAAyB,KAAK,IAAI;uBACpC,GAAG,KAAK,IAAI;;4BAEN,mCAAmC,KAAK,IAAI;;CA6BvE,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// (C) 2020-2024 GoodData Corporation
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { createAlert, useDashboardCommandProcessing, } from "../../../../../../model/index.js";
|
|
4
|
+
export const useCreateAlert = ({ onBeforeRun, onSuccess, onError, } = {}) => {
|
|
5
|
+
const alertCommandProcessing = useDashboardCommandProcessing({
|
|
6
|
+
commandCreator: createAlert,
|
|
7
|
+
errorEvent: "GDC.DASH/EVT.COMMAND.FAILED",
|
|
8
|
+
successEvent: "GDC.DASH/EVT.ALERT.CREATED",
|
|
9
|
+
onError: (event) => {
|
|
10
|
+
onError?.(event.payload.error);
|
|
11
|
+
},
|
|
12
|
+
onSuccess: (event) => {
|
|
13
|
+
onSuccess?.(event.payload.alert);
|
|
14
|
+
},
|
|
15
|
+
onBeforeRun: (cmd) => {
|
|
16
|
+
onBeforeRun?.(cmd.payload.alert);
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
const create = useCallback((alertToCreate) => {
|
|
20
|
+
alertCommandProcessing.run(alertToCreate);
|
|
21
|
+
}, [alertCommandProcessing]);
|
|
22
|
+
return {
|
|
23
|
+
create,
|
|
24
|
+
creationStatus: alertCommandProcessing.status,
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=useCreateAlert.js.map
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateAlert.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useCreateAlert.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAEH,WAAW,EACX,6BAA6B,GAChC,MAAM,kCAAkC,CAAC;AAE1C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC3B,WAAW,EACX,SAAS,EACT,OAAO,MAKP,EAAE,EAGJ,EAAE;IACA,MAAM,sBAAsB,GAAG,6BAA6B,CAAC;QACzD,cAAc,EAAE,WAAW;QAC3B,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,4BAA4B;QAC1C,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACf,OAAO,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC;QACD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,SAAS,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC;QACD,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE;YACjB,WAAW,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC;KACJ,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,WAAW,CACtB,CAAC,aAAkD,EAAE,EAAE;QACnD,sBAAsB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAC9C,CAAC,EACD,CAAC,sBAAsB,CAAC,CAC3B,CAAC;IAEF,OAAO;QACH,MAAM;QACN,cAAc,EAAE,sBAAsB,CAAC,MAAM;KAChD,CAAC;AACN,CAAC,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEditAlert.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,wBAAwB,EACxB,yBAAyB,EACzB,mCAAmC,EACnC,QAAQ,EACX,MAAM,qBAAqB,CAAC;AAK7B,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,yBAAyB,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACzD;AAED,eAAO,MAAM,YAAY,kCAAmC,kBAAkB;;;;mDA0BpB,wBAAwB;6BArB9C,QAAQ;yBAqCZ,MAAM;uCAgBQ,MAAM;;oCAWT,yBAAyB;;;;CAsCnE,CAAC"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
// (C) 2022-2024 GoodData Corporation
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import isEqual from "lodash/isEqual.js";
|
|
4
|
-
import { getComparisonOperatorTitle, getMeasureTitle } from "
|
|
4
|
+
import { getComparisonOperatorTitle, getMeasureTitle } from "../utils.js";
|
|
5
|
+
import { useIntl } from "react-intl";
|
|
5
6
|
export const useEditAlert = ({ alert, onCreate, onUpdate }) => {
|
|
6
7
|
const [viewMode, setViewMode] = useState("edit");
|
|
7
8
|
const [updatedAlert, setUpdatedAlert] = useState(alert);
|
|
9
|
+
const intl = useIntl();
|
|
8
10
|
const changeMeasure = (measure) => {
|
|
9
11
|
setUpdatedAlert((alert) => ({
|
|
10
12
|
...alert,
|
|
11
13
|
title: getMeasureTitle(measure) ?? "",
|
|
12
|
-
description: `${getComparisonOperatorTitle(updatedAlert.alert.condition.operator)} ${alert.alert.condition.right}`,
|
|
14
|
+
description: `${getComparisonOperatorTitle(updatedAlert.alert.condition.operator, intl)} ${alert.alert.condition.right}`,
|
|
13
15
|
alert: {
|
|
14
16
|
...alert.alert,
|
|
15
17
|
condition: {
|
|
16
18
|
...alert.alert.condition,
|
|
17
|
-
left: measure,
|
|
19
|
+
left: measure.measure.localIdentifier,
|
|
18
20
|
},
|
|
19
21
|
execution: {
|
|
20
22
|
...alert.alert.execution,
|
|
@@ -26,7 +28,7 @@ export const useEditAlert = ({ alert, onCreate, onUpdate }) => {
|
|
|
26
28
|
const changeComparisonOperator = (comparisonOperator) => {
|
|
27
29
|
setUpdatedAlert((alert) => ({
|
|
28
30
|
...alert,
|
|
29
|
-
description: `${getComparisonOperatorTitle(comparisonOperator)} ${updatedAlert.alert.condition.right}`,
|
|
31
|
+
description: `${getComparisonOperatorTitle(comparisonOperator, intl)} ${updatedAlert.alert.condition.right}`,
|
|
30
32
|
alert: {
|
|
31
33
|
...alert.alert,
|
|
32
34
|
condition: {
|
|
@@ -39,7 +41,7 @@ export const useEditAlert = ({ alert, onCreate, onUpdate }) => {
|
|
|
39
41
|
const changeValue = (value) => {
|
|
40
42
|
setUpdatedAlert((alert) => ({
|
|
41
43
|
...alert,
|
|
42
|
-
description: `${getComparisonOperatorTitle(updatedAlert.alert.condition.operator)} ${alert.alert.condition.right}`,
|
|
44
|
+
description: `${getComparisonOperatorTitle(updatedAlert.alert.condition.operator, intl)} ${alert.alert.condition.right}`,
|
|
43
45
|
alert: {
|
|
44
46
|
...alert.alert,
|
|
45
47
|
condition: {
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEditAlert.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAQrC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC9E,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC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AAS,CAAC,KAAK,KAAK,WAAW,CAAC;IAClF,MAAM,cAAc,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACrD,MAAM,SAAS,GAAG,cAAc,IAAI,cAAc,CAAC;IAEnD,OAAO;QACH,QAAQ;QACR,YAAY;QACZ,SAAS;QACT,EAAE;QACF,wBAAwB;QACxB,aAAa;QACb,WAAW;QACX,iBAAiB;QACjB,EAAE;QACF,cAAc;QACd,sBAAsB;QACtB,wBAAwB;QACxB,EAAE;QACF,WAAW;QACX,WAAW;KACd,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { IAutomationMetadataObject, IAutomationMetadataObjectDefinition, IInsightWidget } from "@gooddata/sdk-model";
|
|
2
|
-
import { INotificationChannel } from "./constants.js";
|
|
3
2
|
type InsightWidgetAlertingViewMode = "list" | "edit" | "create";
|
|
4
3
|
export interface IInsightWidgetAlertingProps {
|
|
5
|
-
widget
|
|
4
|
+
widget?: IInsightWidget | undefined;
|
|
6
5
|
closeInsightWidgetMenu: () => void;
|
|
7
6
|
}
|
|
8
7
|
export declare const useInsightWidgetAlerting: ({ widget, closeInsightWidgetMenu }: IInsightWidgetAlertingProps) => {
|
|
9
|
-
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
destinations: import("../../../../../../model/index.js").Webhooks;
|
|
10
10
|
alerts: IAutomationMetadataObject[];
|
|
11
11
|
viewMode: InsightWidgetAlertingViewMode;
|
|
12
12
|
editingAlert: IAutomationMetadataObject | null;
|
|
13
|
-
creatingAlert: IAutomationMetadataObjectDefinition;
|
|
13
|
+
creatingAlert: IAutomationMetadataObject | IAutomationMetadataObjectDefinition | null;
|
|
14
14
|
initiateAlertCreation: () => void;
|
|
15
15
|
initiateAlertEditing: (alert: IAutomationMetadataObject) => void;
|
|
16
16
|
updateExistingAlert: (alert: IAutomationMetadataObject) => void;
|
|
17
17
|
saveNewAlert: (alert: IAutomationMetadataObjectDefinition) => void;
|
|
18
18
|
pauseExistingAlert: (alert: IAutomationMetadataObject) => void;
|
|
19
19
|
resumeExistingAlert: (alert: IAutomationMetadataObject) => void;
|
|
20
|
-
deleteExistingAlert: (alert: IAutomationMetadataObject) => void
|
|
20
|
+
deleteExistingAlert: (alert: IAutomationMetadataObject) => Promise<void>;
|
|
21
21
|
cancelAlertEditing: () => void;
|
|
22
22
|
cancelAlertCreation: () => void;
|
|
23
23
|
hasAlerts: boolean;
|
|
24
24
|
supportedMeasures: import("@gooddata/sdk-model").IMeasure<import("@gooddata/sdk-model").IMeasureDefinitionType>[];
|
|
25
|
+
maxAutomationsReached: boolean;
|
|
25
26
|
};
|
|
26
27
|
export {};
|
|
27
28
|
//# sourceMappingURL=useInsightAlerting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInsightAlerting.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.ts"],"names":[],"mappings":"AACA,OAAO,EACH,yBAAyB,EACzB,mCAAmC,EACnC,cAAc,EACjB,MAAM,qBAAqB,CAAC;AAwB7B,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,uCAAwC,2BAA2B;;;;;;;;kCAkG/D,yBAAyB;iCA0B1B,yBAAyB;0BAhBhC,mCAAmC;gCAqB7B,yBAAyB;iCAQxB,yBAAyB;iCAQnB,yBAAyB;;;;;;CAwCtE,CAAC"}
|