@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,5 +1,8 @@
|
|
|
1
1
|
// (C) 2024 GoodData Corporation
|
|
2
2
|
|
|
3
|
+
@use "@gooddata/sdk-ui-kit/styles/scss/variables" as kit-variables;
|
|
4
|
+
@use "react-loading-skeleton/dist/skeleton.css";
|
|
5
|
+
|
|
3
6
|
//
|
|
4
7
|
// Alerts list
|
|
5
8
|
//
|
|
@@ -9,10 +12,44 @@
|
|
|
9
12
|
|
|
10
13
|
.gd-alerts-list__items {
|
|
11
14
|
padding: 10px 0 10px 0;
|
|
15
|
+
|
|
16
|
+
.skeleton-flex {
|
|
17
|
+
flex: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.skeleton-margin {
|
|
21
|
+
margin-left: 10px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.gd-react-loading-skeleton-wrapper {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
padding: 10px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.gd-react-loading-skeleton.react-loading-skeleton {
|
|
32
|
+
--base-color: var(--gd-dashboards-title-borderColor, var(--gd-palette-complementary-2, #ebeff4));
|
|
33
|
+
--highlight-color: var(
|
|
34
|
+
--gd-dashboards-content-backgroundColor,
|
|
35
|
+
var(--gd-palette-complementary-0, #fff)
|
|
36
|
+
);
|
|
37
|
+
}
|
|
12
38
|
}
|
|
13
39
|
|
|
14
40
|
.gd-alerts-list__buttons {
|
|
15
41
|
padding: 10px 0;
|
|
42
|
+
|
|
43
|
+
.gd-alerts-list__add-button {
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
line-height: 18px;
|
|
47
|
+
padding-left: 28px;
|
|
48
|
+
|
|
49
|
+
&::before {
|
|
50
|
+
font-size: 15px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
16
53
|
}
|
|
17
54
|
|
|
18
55
|
//
|
|
@@ -25,7 +62,7 @@
|
|
|
25
62
|
transition: background-color 100ms ease-in-out;
|
|
26
63
|
|
|
27
64
|
&:hover {
|
|
28
|
-
background-color:
|
|
65
|
+
background-color: kit-variables.$is-focused-background;
|
|
29
66
|
}
|
|
30
67
|
}
|
|
31
68
|
|
|
@@ -38,7 +75,7 @@
|
|
|
38
75
|
}
|
|
39
76
|
|
|
40
77
|
.gd-alerts-list-item__icon {
|
|
41
|
-
background-color:
|
|
78
|
+
background-color: kit-variables.$is-focused-background;
|
|
42
79
|
width: 26px;
|
|
43
80
|
height: 26px;
|
|
44
81
|
border-radius: 51%;
|
|
@@ -60,14 +97,14 @@
|
|
|
60
97
|
.gd-alerts-list-item__title {
|
|
61
98
|
overflow: hidden;
|
|
62
99
|
text-overflow: ellipsis;
|
|
63
|
-
color:
|
|
100
|
+
color: kit-variables.$gd-color-text;
|
|
64
101
|
font-weight: 700;
|
|
65
102
|
}
|
|
66
103
|
|
|
67
104
|
.gd-alerts-list-item__description {
|
|
68
105
|
overflow: hidden;
|
|
69
106
|
text-overflow: ellipsis;
|
|
70
|
-
color:
|
|
107
|
+
color: kit-variables.$gd-color-state-blank;
|
|
71
108
|
font-weight: 400;
|
|
72
109
|
white-space: nowrap;
|
|
73
110
|
}
|
|
@@ -78,7 +115,7 @@
|
|
|
78
115
|
.gd-edit-alert {
|
|
79
116
|
font-size: 12px;
|
|
80
117
|
line-height: 14px;
|
|
81
|
-
color:
|
|
118
|
+
color: kit-variables.$gd-color-text;
|
|
82
119
|
width: 100%;
|
|
83
120
|
}
|
|
84
121
|
|
|
@@ -112,11 +149,15 @@
|
|
|
112
149
|
display: flex;
|
|
113
150
|
align-items: center;
|
|
114
151
|
justify-content: space-between;
|
|
115
|
-
border-top: 1px solid
|
|
152
|
+
border-top: 1px solid kit-variables.$gd-border-color;
|
|
153
|
+
|
|
154
|
+
.gd-button-left-margin {
|
|
155
|
+
margin-left: 10px;
|
|
156
|
+
}
|
|
116
157
|
}
|
|
117
158
|
|
|
118
159
|
.gd-edit-alert__configuration-button {
|
|
119
|
-
color:
|
|
160
|
+
color: kit-variables.$gd-color-state-blank;
|
|
120
161
|
}
|
|
121
162
|
|
|
122
163
|
//
|
|
@@ -141,6 +182,8 @@
|
|
|
141
182
|
|
|
142
183
|
.gd-edit-alert-configuration__trigger-label-icon {
|
|
143
184
|
margin-left: 5px;
|
|
185
|
+
position: relative;
|
|
186
|
+
top: 2px;
|
|
144
187
|
}
|
|
145
188
|
|
|
146
189
|
.gd-edit-alert-configuration__trigger-select {
|
|
@@ -152,7 +195,7 @@
|
|
|
152
195
|
display: flex;
|
|
153
196
|
align-items: center;
|
|
154
197
|
justify-content: flex-end;
|
|
155
|
-
border-top: 1px solid
|
|
198
|
+
border-top: 1px solid kit-variables.$gd-border-color;
|
|
156
199
|
}
|
|
157
200
|
|
|
158
201
|
//
|
|
@@ -229,7 +272,7 @@
|
|
|
229
272
|
|
|
230
273
|
&:hover,
|
|
231
274
|
&.gd-alert-actions-dropdown__button--open {
|
|
232
|
-
background-color:
|
|
275
|
+
background-color: kit-variables.$gd-input-text-border;
|
|
233
276
|
}
|
|
234
277
|
|
|
235
278
|
.gd-button-text {
|
|
@@ -243,7 +286,7 @@
|
|
|
243
286
|
|
|
244
287
|
.gd-alert-actions-dropdown__list-item-delete {
|
|
245
288
|
&:hover {
|
|
246
|
-
color:
|
|
247
|
-
background-color:
|
|
289
|
+
color: kit-variables.$gd-color-negative;
|
|
290
|
+
background-color: kit-variables.$gd-palette-error-dimmed;
|
|
248
291
|
}
|
|
249
292
|
}
|
|
@@ -132,6 +132,11 @@
|
|
|
132
132
|
.input-label-text {
|
|
133
133
|
display: flex;
|
|
134
134
|
}
|
|
135
|
+
|
|
136
|
+
// Same selector and rule as in KD to have consistent look in Dashboard component and in KD.
|
|
137
|
+
label .gd-bubble-trigger {
|
|
138
|
+
margin: 0 5px;
|
|
139
|
+
}
|
|
135
140
|
}
|
|
136
141
|
|
|
137
142
|
.configuration-panel-header-title {
|
package/styles/scss/icons.scss
CHANGED
|
@@ -117,6 +117,15 @@
|
|
|
117
117
|
display: inline-block;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
+
.gd-icon-filter {
|
|
121
|
+
&::before {
|
|
122
|
+
content: "";
|
|
123
|
+
background: url("~@gooddata/sdk-ui-dashboard/esm/assets/filter.svg") no-repeat center;
|
|
124
|
+
width: 16px;
|
|
125
|
+
height: 16px;
|
|
126
|
+
display: inline-block;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
120
129
|
}
|
|
121
130
|
|
|
122
131
|
.dropdown-body .gd-list-item {
|
|
@@ -384,7 +384,8 @@ $min-content-height: 110px;
|
|
|
384
384
|
height: 50px;
|
|
385
385
|
cursor: default;
|
|
386
386
|
|
|
387
|
-
&:hover
|
|
387
|
+
&:hover,
|
|
388
|
+
&.hover {
|
|
388
389
|
background: kit-variables.$is-focused-background;
|
|
389
390
|
|
|
390
391
|
.gd-scheduled-email-icon {
|
|
@@ -395,9 +396,14 @@ $min-content-height: 110px;
|
|
|
395
396
|
display: block;
|
|
396
397
|
}
|
|
397
398
|
}
|
|
398
|
-
&.editable:hover
|
|
399
|
+
&.editable:hover,
|
|
400
|
+
&.editable.hover {
|
|
399
401
|
cursor: pointer;
|
|
400
402
|
}
|
|
403
|
+
|
|
404
|
+
.gd-scheduled-email-menu-icon {
|
|
405
|
+
display: block;
|
|
406
|
+
}
|
|
401
407
|
}
|
|
402
408
|
|
|
403
409
|
.gd-scheduled-email-icon {
|
|
@@ -463,6 +469,10 @@ $min-content-height: 110px;
|
|
|
463
469
|
.gd-scheduled-email-delete-icon::after {
|
|
464
470
|
color: kit-variables.$gd-palette-error-base;
|
|
465
471
|
}
|
|
472
|
+
|
|
473
|
+
.gd-scheduled-email-menu-icon::after {
|
|
474
|
+
color: kit-variables.$default-gd-medium-gray;
|
|
475
|
+
}
|
|
466
476
|
}
|
|
467
477
|
|
|
468
478
|
.gd-scheduled-email-delete-icon {
|
|
@@ -483,6 +493,46 @@ $min-content-height: 110px;
|
|
|
483
493
|
}
|
|
484
494
|
}
|
|
485
495
|
|
|
496
|
+
.gd-scheduled-email-menu {
|
|
497
|
+
display: flex;
|
|
498
|
+
justify-content: center;
|
|
499
|
+
align-items: center;
|
|
500
|
+
width: 50px;
|
|
501
|
+
height: 100%;
|
|
502
|
+
cursor: pointer;
|
|
503
|
+
flex-shrink: 0;
|
|
504
|
+
position: relative;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.gd-scheduled-email-menu:hover {
|
|
508
|
+
background-color: kit-variables.$gd-input-text-border;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.gd-scheduled-email-menu-icon {
|
|
512
|
+
display: block;
|
|
513
|
+
margin: auto;
|
|
514
|
+
position: absolute;
|
|
515
|
+
top: 0;
|
|
516
|
+
right: 0;
|
|
517
|
+
left: 0;
|
|
518
|
+
bottom: 0;
|
|
519
|
+
|
|
520
|
+
&::after {
|
|
521
|
+
content: "";
|
|
522
|
+
background-image: url("~@gooddata/sdk-ui-dashboard/esm/assets/ellipsis.svg");
|
|
523
|
+
background-color: transparent;
|
|
524
|
+
background-position: center center;
|
|
525
|
+
border: none;
|
|
526
|
+
box-shadow: none;
|
|
527
|
+
position: absolute;
|
|
528
|
+
font-family: kit-variables.$gd-font-indigo;
|
|
529
|
+
top: 0;
|
|
530
|
+
right: 0;
|
|
531
|
+
left: 0;
|
|
532
|
+
bottom: 0;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
486
536
|
.gd-content-divider {
|
|
487
537
|
border-top: 1px solid kit-variables.$gd-border-color;
|
|
488
538
|
height: 0;
|
|
@@ -537,7 +587,6 @@ $min-content-height: 110px;
|
|
|
537
587
|
|
|
538
588
|
@media #{kit-variables.$small-only} {
|
|
539
589
|
> strong {
|
|
540
|
-
display: block;
|
|
541
590
|
overflow: hidden;
|
|
542
591
|
line-height: 20px;
|
|
543
592
|
white-space: nowrap;
|
|
@@ -645,6 +694,13 @@ $min-content-height: 110px;
|
|
|
645
694
|
display: flex;
|
|
646
695
|
flex: 1;
|
|
647
696
|
padding-bottom: $vertical-space;
|
|
697
|
+
overflow: hidden;
|
|
698
|
+
|
|
699
|
+
.gd-editable-label-inner {
|
|
700
|
+
overflow: hidden;
|
|
701
|
+
text-overflow: ellipsis;
|
|
702
|
+
white-space: nowrap;
|
|
703
|
+
}
|
|
648
704
|
}
|
|
649
705
|
|
|
650
706
|
.gd-schedule-email-dialog-title {
|
|
@@ -690,3 +746,13 @@ $min-content-height: 110px;
|
|
|
690
746
|
padding: 0 10px;
|
|
691
747
|
}
|
|
692
748
|
}
|
|
749
|
+
|
|
750
|
+
.gd-schedule-email-dialog-menu {
|
|
751
|
+
min-width: 100px;
|
|
752
|
+
.deleteItem {
|
|
753
|
+
&:hover {
|
|
754
|
+
background-color: kit-variables.$gd-palette-error-dimmed;
|
|
755
|
+
color: kit-variables.$gd-palette-error-base;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SagaIterator } from "redux-saga";
|
|
2
|
-
import { DashboardContext } from "../../types/commonTypes.js";
|
|
3
|
-
import { RemoveAlerts } from "../../commands/alerts.js";
|
|
4
|
-
import { DashboardAlertsRemoved } from "../../events/alerts.js";
|
|
5
|
-
export declare function removeAlertsHandler(ctx: DashboardContext, cmd: RemoveAlerts): SagaIterator<DashboardAlertsRemoved>;
|
|
6
|
-
//# sourceMappingURL=removeAlertsHandler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"removeAlertsHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/alerts/removeAlertsHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAiB,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAU/E,wBAAiB,mBAAmB,CAChC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,YAAY,GAClB,YAAY,CAAC,sBAAsB,CAAC,CAatC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { call, select, put } from "redux-saga/effects";
|
|
2
|
-
import { objRefToString } from "@gooddata/sdk-model";
|
|
3
|
-
import { alertsRemoved } from "../../events/alerts.js";
|
|
4
|
-
import { alertsActions } from "../../store/alerts/index.js";
|
|
5
|
-
import { selectAlertsMap } from "../../store/alerts/alertsSelectors.js";
|
|
6
|
-
import { validateExistingAlerts } from "./validation/alertsValidation.js";
|
|
7
|
-
function removeAlerts(ctx, alertRefs) {
|
|
8
|
-
const { backend, workspace } = ctx;
|
|
9
|
-
return backend.workspace(workspace).dashboards().deleteWidgetAlerts(alertRefs);
|
|
10
|
-
}
|
|
11
|
-
export function* removeAlertsHandler(ctx, cmd) {
|
|
12
|
-
const alertsMap = yield select(selectAlertsMap);
|
|
13
|
-
const alerts = validateExistingAlerts(alertsMap, cmd, ctx);
|
|
14
|
-
const refs = alerts.map((alert) => alert.ref);
|
|
15
|
-
yield call(removeAlerts, ctx, refs);
|
|
16
|
-
const ids = alerts.map((alert) => objRefToString(alert.ref));
|
|
17
|
-
yield put(alertsActions.removeAlerts(ids));
|
|
18
|
-
return alertsRemoved(ctx, alerts, cmd.correlationId);
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=removeAlertsHandler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"removeAlertsHandler.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/alerts/removeAlertsHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAU,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG7D,OAAO,EAAE,aAAa,EAA0B,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,SAAS,YAAY,CAAC,GAAqB,EAAE,SAAmB;IAC5D,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC;IACnC,OAAO,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;AACnF,CAAC;AAED,MAAM,SAAS,CAAC,CAAC,mBAAmB,CAChC,GAAqB,EACrB,GAAiB;IAEjB,MAAM,SAAS,GAAuC,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC;IACpF,MAAM,MAAM,GAAG,sBAAsB,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAE3D,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE9C,MAAM,IAAI,CAAC,YAAY,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAEpC,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAE7D,MAAM,GAAG,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAE3C,OAAO,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SagaIterator } from "redux-saga";
|
|
2
|
-
import { DashboardContext } from "../../types/commonTypes.js";
|
|
3
|
-
import { UpdateAlert } from "../../commands/alerts.js";
|
|
4
|
-
import { DashboardAlertUpdated } from "../../events/alerts.js";
|
|
5
|
-
export declare function updateAlertHandler(ctx: DashboardContext, cmd: UpdateAlert): SagaIterator<DashboardAlertUpdated>;
|
|
6
|
-
//# sourceMappingURL=updateAlertHandler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateAlertHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/alerts/updateAlertHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAgB,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAU7E,wBAAiB,kBAAkB,CAC/B,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,WAAW,GACjB,YAAY,CAAC,qBAAqB,CAAC,CAWrC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { call, put } from "redux-saga/effects";
|
|
2
|
-
import { objRefToString } from "@gooddata/sdk-model";
|
|
3
|
-
import { alertUpdated } from "../../events/alerts.js";
|
|
4
|
-
import { alertsActions } from "../../store/alerts/index.js";
|
|
5
|
-
function updateAlert(ctx, alert) {
|
|
6
|
-
const { backend, workspace } = ctx;
|
|
7
|
-
return backend.workspace(workspace).dashboards().updateWidgetAlert(alert);
|
|
8
|
-
}
|
|
9
|
-
export function* updateAlertHandler(ctx, cmd) {
|
|
10
|
-
const alert = yield call(updateAlert, ctx, cmd.payload.alert);
|
|
11
|
-
yield put(alertsActions.updateAlert({
|
|
12
|
-
changes: cmd.payload.alert,
|
|
13
|
-
id: objRefToString(cmd.payload.alert.ref),
|
|
14
|
-
}));
|
|
15
|
-
return alertUpdated(ctx, alert, cmd.correlationId);
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=updateAlertHandler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateAlertHandler.js","sourceRoot":"","sources":["../../../../src/model/commandHandlers/alerts/updateAlertHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAgB,MAAM,qBAAqB,CAAC;AAGnE,OAAO,EAAE,YAAY,EAAyB,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,SAAS,WAAW,CAAC,GAAqB,EAAE,KAAmB;IAC3D,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC;IAEnC,OAAO,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,SAAS,CAAC,CAAC,kBAAkB,CAC/B,GAAqB,EACrB,GAAgB;IAEhB,MAAM,KAAK,GAA4C,MAAM,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAEvG,MAAM,GAAG,CACL,aAAa,CAAC,WAAW,CAAC;QACtB,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK;QAC1B,EAAE,EAAE,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;KAC5C,CAAC,CACL,CAAC;IAEF,OAAO,YAAY,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ObjRef, IWidgetAlert } from "@gooddata/sdk-model";
|
|
2
|
-
import { ObjRefMap } from "../../../../_staging/metadata/objRefMap.js";
|
|
3
|
-
import { IDashboardCommand } from "../../../commands/index.js";
|
|
4
|
-
import { DashboardContext } from "../../../types/commonTypes.js";
|
|
5
|
-
type CommandWithRefs = IDashboardCommand & {
|
|
6
|
-
payload: {
|
|
7
|
-
refs: ObjRef[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Given list of all kpi alerts and a command that contains a refs array, this function tests that the `ref` are
|
|
12
|
-
* a reference to an existing kpi alerts.
|
|
13
|
-
*
|
|
14
|
-
* @param ctx - dashboard context, this will be included in the DashboardCommandFailed event
|
|
15
|
-
* @param alerts - map of alerts on the dashboard
|
|
16
|
-
* @param cmd - any command that has 'ref' in its payload
|
|
17
|
-
*/
|
|
18
|
-
export declare function validateExistingAlerts(alerts: ObjRefMap<IWidgetAlert>, cmd: CommandWithRefs, ctx: DashboardContext): IWidgetAlert[];
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=alertsValidation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alertsValidation.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/alerts/validation/alertsValidation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAmB,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,KAAK,eAAe,GAAG,iBAAiB,GAAG;IACvC,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACL,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,EAC/B,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,gBAAgB,GACtB,YAAY,EAAE,CAkBhB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// (C) 2021-2022 GoodData Corporation
|
|
2
|
-
import { serializeObjRef } from "@gooddata/sdk-model";
|
|
3
|
-
import { invalidArgumentsProvided } from "../../../events/general.js";
|
|
4
|
-
/**
|
|
5
|
-
* Given list of all kpi alerts and a command that contains a refs array, this function tests that the `ref` are
|
|
6
|
-
* a reference to an existing kpi alerts.
|
|
7
|
-
*
|
|
8
|
-
* @param ctx - dashboard context, this will be included in the DashboardCommandFailed event
|
|
9
|
-
* @param alerts - map of alerts on the dashboard
|
|
10
|
-
* @param cmd - any command that has 'ref' in its payload
|
|
11
|
-
*/
|
|
12
|
-
export function validateExistingAlerts(alerts, cmd, ctx) {
|
|
13
|
-
const { payload: { refs }, } = cmd;
|
|
14
|
-
return refs.map((ref) => {
|
|
15
|
-
const alert = alerts.get(ref);
|
|
16
|
-
if (!alert) {
|
|
17
|
-
throw invalidArgumentsProvided(ctx, cmd, `Cannot find Kpi alert with ref: ${serializeObjRef(ref)}.`);
|
|
18
|
-
}
|
|
19
|
-
return alert;
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=alertsValidation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alertsValidation.js","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/alerts/validation/alertsValidation.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAU,eAAe,EAAgB,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAWtE;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB,CAClC,MAA+B,EAC/B,GAAoB,EACpB,GAAqB;IAErB,MAAM,EACF,OAAO,EAAE,EAAE,IAAI,EAAE,GACpB,GAAG,GAAG,CAAC;IAER,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACpB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAE9B,IAAI,CAAC,KAAK,EAAE,CAAC;YACT,MAAM,wBAAwB,CAC1B,GAAG,EACH,GAAG,EACH,mCAAmC,eAAe,CAAC,GAAG,CAAC,GAAG,CAC7D,CAAC;QACN,CAAC;QAED,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useEditAlert.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEditAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/useEditAlert.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,wBAAwB,EACxB,yBAAyB,EACzB,mCAAmC,EACnC,QAAQ,EACX,MAAM,qBAAqB,CAAC;AAI7B,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;;;;mDAyBpB,wBAAwB;6BArB9C,QAAQ;yBAqCZ,MAAM;uCAgBQ,MAAM;;oCAWT,yBAAyB;;;;CAsCnE,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useEditAlert.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEditAlert.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/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,YAAY,CAAC;AAQzE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,Q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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"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightAlerting.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.ts"],"names":[],"mappings":"AACA,OAAO,EACH,yBAAyB,EACzB,mCAAmC,EAEnC,cAAc,EACjB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGtD,KAAK,6BAA6B,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEhE,MAAM,WAAW,2BAA2B;IACxC,MAAM,EAAE,cAAc,CAAC;IACvB,sBAAsB,EAAE,MAAM,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,wBAAwB,uCAAwC,2BAA2B;;;;;;;kCA8D/D,yBAAyB;iCAK1B,yBAAyB;0BAjChC,mCAAmC;gCA+C7B,yBAAyB;iCAexB,yBAAyB;iCAezB,yBAAyB;;;;;CA6BhE,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { v4 as uuidv4 } from "uuid";
|
|
4
|
-
import { useDashboardSelector, selectInsightByWidgetRef } from "../../../../../model/index.js";
|
|
5
|
-
import { createDefaultAlert, getSupportedInsightMeasuresByInsight } from "./utils.js";
|
|
6
|
-
export const useInsightWidgetAlerting = ({ widget, closeInsightWidgetMenu }) => {
|
|
7
|
-
const { addSuccess } = useToastMessage();
|
|
8
|
-
// TODO: load from backend
|
|
9
|
-
const [alerts, setAlerts] = useState([]);
|
|
10
|
-
const hasAlerts = alerts.length > 0;
|
|
11
|
-
// TODO: load from backend
|
|
12
|
-
const destinations = [
|
|
13
|
-
{ id: "email", title: "Email" },
|
|
14
|
-
{ id: "webhook", title: "Webhook" },
|
|
15
|
-
];
|
|
16
|
-
// TODO: load from backend
|
|
17
|
-
const widgetFilters = [];
|
|
18
|
-
// const widgetFilters = useWidgetFilters(widget, insight);
|
|
19
|
-
const insight = useDashboardSelector(selectInsightByWidgetRef(widget.ref));
|
|
20
|
-
const supportedMeasures = getSupportedInsightMeasuresByInsight(insight);
|
|
21
|
-
const defaultMeasure = supportedMeasures[0];
|
|
22
|
-
const defaultNotificationChannelId = destinations[0].id;
|
|
23
|
-
const defaultAlert = createDefaultAlert(widgetFilters, defaultMeasure, defaultNotificationChannelId);
|
|
24
|
-
const [viewMode, setViewMode] = useState(alerts.length > 0 ? "list" : "create");
|
|
25
|
-
const [editingAlert, setEditingAlert] = useState(null);
|
|
26
|
-
const [creatingAlert, setCreatingAlert] = useState(defaultAlert);
|
|
27
|
-
const initiateAlertCreation = () => {
|
|
28
|
-
setCreatingAlert(defaultAlert);
|
|
29
|
-
setViewMode("create");
|
|
30
|
-
};
|
|
31
|
-
const saveNewAlert = (alert) => {
|
|
32
|
-
const id = uuidv4();
|
|
33
|
-
setAlerts((alertsToUpdate) => {
|
|
34
|
-
const updatedAlerts = [
|
|
35
|
-
...alertsToUpdate,
|
|
36
|
-
{
|
|
37
|
-
...alert,
|
|
38
|
-
id,
|
|
39
|
-
ref: { identifier: id, type: "automation" },
|
|
40
|
-
uri: id,
|
|
41
|
-
},
|
|
42
|
-
];
|
|
43
|
-
addSuccess({ id: "Success. The alert has been added." });
|
|
44
|
-
return updatedAlerts;
|
|
45
|
-
});
|
|
46
|
-
setCreatingAlert(defaultAlert);
|
|
47
|
-
setViewMode("list");
|
|
48
|
-
};
|
|
49
|
-
const cancelAlertCreation = () => {
|
|
50
|
-
setCreatingAlert(defaultAlert);
|
|
51
|
-
if (hasAlerts) {
|
|
52
|
-
setViewMode("list");
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
closeInsightWidgetMenu();
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
const initiateAlertEditing = (alert) => {
|
|
59
|
-
setEditingAlert(alert);
|
|
60
|
-
setViewMode("edit");
|
|
61
|
-
};
|
|
62
|
-
const updateExistingAlert = (alert) => {
|
|
63
|
-
setAlerts((alertsToUpdate) => {
|
|
64
|
-
const updatedAlerts = alertsToUpdate.map((a) => (a.id === alert.id ? alert : a));
|
|
65
|
-
addSuccess({ id: "Success. The alert has been updated." });
|
|
66
|
-
return updatedAlerts;
|
|
67
|
-
});
|
|
68
|
-
cancelAlertEditing();
|
|
69
|
-
};
|
|
70
|
-
const cancelAlertEditing = () => {
|
|
71
|
-
setEditingAlert(null);
|
|
72
|
-
setViewMode("list");
|
|
73
|
-
};
|
|
74
|
-
const pauseExistingAlert = (alert) => {
|
|
75
|
-
setAlerts((alertsToUpdate) => {
|
|
76
|
-
const updatedAlerts = alertsToUpdate.map((a) => a.id === alert.id
|
|
77
|
-
? {
|
|
78
|
-
...a,
|
|
79
|
-
alert: { ...a.alert, trigger: { ...a.alert?.trigger, state: "PAUSED" } },
|
|
80
|
-
}
|
|
81
|
-
: a);
|
|
82
|
-
addSuccess({ id: "Success. The alert has been paused." });
|
|
83
|
-
return updatedAlerts;
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
const resumeExistingAlert = (alert) => {
|
|
87
|
-
setAlerts((alertsToUpdate) => {
|
|
88
|
-
const updatedAlerts = alertsToUpdate.map((a) => a.id === alert.id
|
|
89
|
-
? {
|
|
90
|
-
...a,
|
|
91
|
-
alert: { ...a.alert, trigger: { ...a.alert?.trigger, state: "ACTIVE" } },
|
|
92
|
-
}
|
|
93
|
-
: a);
|
|
94
|
-
addSuccess({ id: "Success. The alert has been resumed." });
|
|
95
|
-
return updatedAlerts;
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
const deleteExistingAlert = (alert) => {
|
|
99
|
-
setAlerts((alertsToUpdate) => {
|
|
100
|
-
const updatedAlerts = alertsToUpdate.filter((a) => a.id !== alert.id);
|
|
101
|
-
if (updatedAlerts.length === 0) {
|
|
102
|
-
closeInsightWidgetMenu();
|
|
103
|
-
}
|
|
104
|
-
addSuccess({ id: "Success. The alert has been deleted." });
|
|
105
|
-
return updatedAlerts;
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
return {
|
|
109
|
-
destinations,
|
|
110
|
-
alerts,
|
|
111
|
-
viewMode,
|
|
112
|
-
editingAlert,
|
|
113
|
-
creatingAlert,
|
|
114
|
-
initiateAlertCreation,
|
|
115
|
-
initiateAlertEditing,
|
|
116
|
-
updateExistingAlert,
|
|
117
|
-
saveNewAlert,
|
|
118
|
-
pauseExistingAlert,
|
|
119
|
-
resumeExistingAlert,
|
|
120
|
-
deleteExistingAlert,
|
|
121
|
-
cancelAlertEditing,
|
|
122
|
-
cancelAlertCreation,
|
|
123
|
-
hasAlerts,
|
|
124
|
-
supportedMeasures,
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
//# sourceMappingURL=useInsightAlerting.js.map
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightAlerting.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/useInsightAlerting.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,s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