@gooddata/sdk-ui-dashboard 10.9.0-alpha.8 → 10.9.0-beta.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/de-DE.json +1 -0
- package/esm/presentation/localization/bundles/en-AU.json +475 -0
- package/esm/presentation/localization/bundles/en-GB.json +1 -0
- package/esm/presentation/localization/bundles/en-US.json +302 -2
- package/esm/presentation/localization/bundles/es-419.json +1 -0
- package/esm/presentation/localization/bundles/es-ES.json +1 -0
- package/esm/presentation/localization/bundles/fi-FI.json +475 -0
- package/esm/presentation/localization/bundles/fr-CA.json +1 -0
- package/esm/presentation/localization/bundles/fr-FR.json +1 -0
- package/esm/presentation/localization/bundles/it-IT.json +1 -0
- package/esm/presentation/localization/bundles/ja-JP.json +1 -0
- package/esm/presentation/localization/bundles/nl-NL.json +1 -0
- package/esm/presentation/localization/bundles/pt-BR.json +1 -0
- package/esm/presentation/localization/bundles/pt-PT.json +1 -0
- package/esm/presentation/localization/bundles/zh-HK.json +475 -0
- package/esm/presentation/localization/bundles/zh-Hans.json +1 -0
- package/esm/presentation/localization/bundles/zh-Hant.json +475 -0
- package/esm/presentation/localization/translations.d.ts.map +1 -1
- package/esm/presentation/localization/translations.js +8 -0
- 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 +12 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.js +77 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertActionsDropdown.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts +8 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js +25 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js.map +1 -0
- 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 +9 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js +23 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts +9 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js +26 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts +8 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js +35 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts +18 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js +31 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts +13 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js +16 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +16 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +7 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +18 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +57 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts +10 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +47 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts +20 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js +37 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js.map +1 -0
- 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 +21 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +97 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +28 -0
- 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 +16 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +86 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts +4 -0
- package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js +38 -0
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -0
- 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/DashboardInsightMenu/DashboardInsightSubmenuContainer.d.ts +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuContainer.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuContainer.js +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuHeader.d.ts +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuHeader.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuHeader.js +4 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightSubmenuHeader.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js +3 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/index.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts +2 -0
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +28 -7
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js.map +1 -1
- package/esm/presentation/widget/insightMenu/index.d.ts +1 -1
- package/esm/presentation/widget/insightMenu/index.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/types.d.ts +28 -6
- 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 +8 -6
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts +2 -0
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +13 -8
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +401 -149
- 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 +286 -0
- package/styles/css/alerting.css.map +1 -0
- 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 +355 -5
- 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 +292 -0
- package/styles/scss/configurationPanel.scss +5 -0
- package/styles/scss/icons.scss +9 -0
- package/styles/scss/main.scss +1 -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
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
|
|
3
|
+
@use "@gooddata/sdk-ui-kit/styles/scss/variables" as kit-variables;
|
|
4
|
+
@use "react-loading-skeleton/dist/skeleton.css";
|
|
5
|
+
|
|
6
|
+
//
|
|
7
|
+
// Alerts list
|
|
8
|
+
//
|
|
9
|
+
.gd-alerts-list {
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.gd-alerts-list__items {
|
|
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
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.gd-alerts-list__buttons {
|
|
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
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
//
|
|
56
|
+
// Alerts list item
|
|
57
|
+
//
|
|
58
|
+
.gd-alerts-list-item {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
transition: background-color 100ms ease-in-out;
|
|
63
|
+
|
|
64
|
+
&:hover {
|
|
65
|
+
background-color: kit-variables.$is-focused-background;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.gd-alerts-list-item__content {
|
|
70
|
+
padding: 5px 0 5px 10px;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
width: 100%;
|
|
74
|
+
min-width: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.gd-alerts-list-item__icon {
|
|
78
|
+
background-color: kit-variables.$is-focused-background;
|
|
79
|
+
width: 26px;
|
|
80
|
+
height: 26px;
|
|
81
|
+
border-radius: 51%;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.gd-alerts-list-item__details {
|
|
89
|
+
margin-left: 10px;
|
|
90
|
+
margin-right: 10px;
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
line-height: normal;
|
|
93
|
+
width: 100%;
|
|
94
|
+
min-width: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.gd-alerts-list-item__title {
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
text-overflow: ellipsis;
|
|
100
|
+
color: kit-variables.$gd-color-text;
|
|
101
|
+
font-weight: 700;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.gd-alerts-list-item__description {
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
text-overflow: ellipsis;
|
|
107
|
+
color: kit-variables.$gd-color-state-blank;
|
|
108
|
+
font-weight: 400;
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
//
|
|
113
|
+
// Edit alert
|
|
114
|
+
//
|
|
115
|
+
.gd-edit-alert {
|
|
116
|
+
font-size: 12px;
|
|
117
|
+
line-height: 14px;
|
|
118
|
+
color: kit-variables.$gd-color-text;
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.gd-edit-alert__form {
|
|
123
|
+
padding: 10px 10px 0 10px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.gd-edit-alert__measure-label {
|
|
127
|
+
margin-bottom: 5px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.gd-edit-alert__value-input {
|
|
131
|
+
margin-bottom: 10px;
|
|
132
|
+
|
|
133
|
+
/* Removes number input arrows for Chrome, Safari, Edge, Opera */
|
|
134
|
+
input::-webkit-outer-spin-button,
|
|
135
|
+
input::-webkit-inner-spin-button {
|
|
136
|
+
-webkit-appearance: none;
|
|
137
|
+
margin: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Removes number input arrows for Firefox */
|
|
141
|
+
input[type="number"] {
|
|
142
|
+
appearance: textfield;
|
|
143
|
+
-moz-appearance: textfield;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.gd-edit-alert__buttons {
|
|
148
|
+
padding: 10px;
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: space-between;
|
|
152
|
+
border-top: 1px solid kit-variables.$gd-border-color;
|
|
153
|
+
|
|
154
|
+
.gd-button-left-margin {
|
|
155
|
+
margin-left: 10px;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.gd-edit-alert__configuration-button {
|
|
160
|
+
color: kit-variables.$gd-color-state-blank;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
//
|
|
164
|
+
// Edit alert configuration
|
|
165
|
+
//
|
|
166
|
+
.gd-edit-alert-configuration {
|
|
167
|
+
width: 100%;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.gd-edit-alert-configuration__form {
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
justify-content: space-between;
|
|
174
|
+
padding: 10px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.gd-edit-alert-configuration__trigger-label {
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
width: 50%;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.gd-edit-alert-configuration__trigger-label-icon {
|
|
184
|
+
margin-left: 5px;
|
|
185
|
+
position: relative;
|
|
186
|
+
top: 2px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.gd-edit-alert-configuration__trigger-select {
|
|
190
|
+
width: 50%;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.gd-edit-alert-configuration__buttons {
|
|
194
|
+
padding: 10px;
|
|
195
|
+
display: flex;
|
|
196
|
+
align-items: center;
|
|
197
|
+
justify-content: flex-end;
|
|
198
|
+
border-top: 1px solid kit-variables.$gd-border-color;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
//
|
|
202
|
+
// Measure select
|
|
203
|
+
//
|
|
204
|
+
.gd-alert-measure-select {
|
|
205
|
+
margin-bottom: 10px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.gd-alert-measure-select__button {
|
|
209
|
+
width: 100%;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.gd-alert-measure-select__list {
|
|
213
|
+
height: 100%;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.gd-alert-measure-select__icon {
|
|
217
|
+
height: 100%;
|
|
218
|
+
|
|
219
|
+
&::before {
|
|
220
|
+
height: 100%;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
//
|
|
225
|
+
// Comparison operator select
|
|
226
|
+
//
|
|
227
|
+
.gd-alert-comparison-operator-select {
|
|
228
|
+
margin-bottom: 10px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.gd-alert-comparison-operator-select__button {
|
|
232
|
+
width: 100%;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
//
|
|
236
|
+
// Alert destination select
|
|
237
|
+
//
|
|
238
|
+
.gd-alert-destination-select {
|
|
239
|
+
margin-bottom: 10px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// TODO: support "invisible" styling of the Button on sdk-ui-kit component level.
|
|
243
|
+
// For now overload because of clash with other config panel css
|
|
244
|
+
.gd-button.gd-alert-destination-select__button {
|
|
245
|
+
margin-top: 0;
|
|
246
|
+
width: 105px;
|
|
247
|
+
|
|
248
|
+
&:not(&--open, &:hover, &:active, &:focus) {
|
|
249
|
+
box-shadow: none;
|
|
250
|
+
border-color: transparent;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&:not(&--open, &:active, &:focus) {
|
|
254
|
+
background: transparent;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
//
|
|
259
|
+
// Trigger mode select
|
|
260
|
+
//
|
|
261
|
+
.gd-edit-alert-trigger-mode-select__button {
|
|
262
|
+
width: 100%;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
//
|
|
266
|
+
// Alert actions dropdown
|
|
267
|
+
//
|
|
268
|
+
.gd-button.gd-alert-actions-dropdown__button {
|
|
269
|
+
width: 42px;
|
|
270
|
+
height: 42px;
|
|
271
|
+
padding: 0;
|
|
272
|
+
|
|
273
|
+
&:hover,
|
|
274
|
+
&.gd-alert-actions-dropdown__button--open {
|
|
275
|
+
background-color: kit-variables.$gd-input-text-border;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.gd-button-text {
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
justify-content: center;
|
|
282
|
+
width: 100%;
|
|
283
|
+
height: 100%;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.gd-alert-actions-dropdown__list-item-delete {
|
|
288
|
+
&:hover {
|
|
289
|
+
color: kit-variables.$gd-color-negative;
|
|
290
|
+
background-color: kit-variables.$gd-palette-error-dimmed;
|
|
291
|
+
}
|
|
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 {
|
package/styles/scss/main.scss
CHANGED
|
@@ -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"}
|