@gooddata/sdk-ui-dashboard 10.15.0-alpha.0 → 10.15.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +9 -2
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
- package/esm/model/commandHandlers/drill/common/intersectionUtils.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/common/intersectionUtils.js +2 -2
- package/esm/model/commandHandlers/drill/common/intersectionUtils.js.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js +4 -2
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +4 -3
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js.map +1 -1
- package/esm/model/index.d.ts +2 -2
- package/esm/model/index.d.ts.map +1 -1
- package/esm/model/index.js +1 -1
- package/esm/model/index.js.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.d.ts.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.js +2 -2
- package/esm/model/queryServices/queryWidgetFilters.js.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.d.ts +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js +2 -2
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.d.ts +2 -2
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.d.ts +2 -2
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.d.ts.map +1 -1
- package/esm/model/react/useWidgetFilters.d.ts +2 -2
- package/esm/model/react/useWidgetFilters.d.ts.map +1 -1
- package/esm/model/react/useWidgetFilters.js.map +1 -1
- package/esm/model/store/_infra/generators.d.ts +3 -0
- package/esm/model/store/_infra/generators.d.ts.map +1 -0
- package/esm/model/store/_infra/generators.js +6 -0
- package/esm/model/store/_infra/generators.js.map +1 -0
- package/esm/model/store/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.js +5 -5
- package/esm/model/store/filterContext/filterContextReducers.js.map +1 -1
- package/esm/model/store/layout/layoutSelectors.d.ts +1 -1
- package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/layout/layoutSelectors.js +6 -3
- package/esm/model/store/layout/layoutSelectors.js.map +1 -1
- package/esm/model/store/layout/layoutUtils.d.ts +1 -1
- package/esm/model/store/layout/layoutUtils.d.ts.map +1 -1
- package/esm/model/types/layoutTypes.d.ts +22 -2
- package/esm/model/types/layoutTypes.d.ts.map +1 -1
- package/esm/model/types/layoutTypes.js +9 -2
- package/esm/model/types/layoutTypes.js.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +2 -2
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js +2 -2
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js.map +1 -1
- package/esm/presentation/componentDefinition/types.d.ts +28 -5
- package/esm/presentation/componentDefinition/types.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts +2 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +8 -2
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.js +2 -2
- package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.js +2 -2
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/types.d.ts +8 -1
- package/esm/presentation/dashboard/DashboardSidebar/types.d.ts.map +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.d.ts.map +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js +2 -0
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardMainContent.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardMainContent.js +2 -0
- package/esm/presentation/dashboard/components/DashboardMainContent.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +2 -2
- package/esm/presentation/dashboard/components/DashboardRenderer.js.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts +4 -2
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.js +11 -2
- package/esm/presentation/dashboard/hooks/useDashboard.js.map +1 -1
- package/esm/presentation/dashboard/types.d.ts +13 -1
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +2 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +1 -0
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js.map +1 -1
- package/esm/presentation/dashboardContexts/types.d.ts +11 -3
- package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.js +3 -1
- package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.d.ts +3 -0
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.js +25 -0
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/AddRichTextWidgetButton.js +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/AddRichTextWidgetButton.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.js +3 -3
- package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.d.ts +4 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.js +10 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.d.ts +16 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.js +21 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.d.ts +2 -2
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.js +11 -1
- package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.js +10 -1
- package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.js +9 -1
- package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js +11 -1
- package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/index.d.ts +3 -0
- package/esm/presentation/dragAndDrop/draggableWidget/index.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/index.js +3 -0
- package/esm/presentation/dragAndDrop/draggableWidget/index.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.d.ts +2 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.js +39 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.js +2 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.d.ts +2 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.js +46 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.js.map +1 -0
- package/esm/presentation/dragAndDrop/types.d.ts +25 -3
- package/esm/presentation/dragAndDrop/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/types.js +12 -0
- package/esm/presentation/dragAndDrop/types.js.map +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.js +2 -0
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.js.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +2 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilterComponentSetFactory.js +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilterComponentSetFactory.js.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +13 -2
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +2 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -1
- package/esm/presentation/flexibleLayout/index.d.ts +1 -1
- package/esm/presentation/flexibleLayout/index.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/index.js +1 -1
- package/esm/presentation/flexibleLayout/index.js.map +1 -1
- package/esm/presentation/flexibleLayout/types.d.ts +1 -20
- package/esm/presentation/flexibleLayout/types.d.ts.map +1 -1
- package/esm/presentation/layout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/layout/DashboardLayoutWidget.js +13 -2
- package/esm/presentation/layout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.json +27 -27
- package/esm/presentation/localization/bundles/en-GB.json +15 -15
- package/esm/presentation/localization/bundles/en-US.json +10 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +3 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
- package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.d.ts +7 -0
- package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.d.ts.map +1 -0
- package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.js +13 -0
- package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.js.map +1 -0
- package/esm/presentation/{flexibleLayout → widget/dashboardLayout}/DashboardLayout.d.ts +1 -1
- package/esm/presentation/widget/dashboardLayout/DashboardLayout.d.ts.map +1 -0
- package/esm/presentation/{flexibleLayout → widget/dashboardLayout}/DashboardLayout.js +1 -1
- package/esm/presentation/widget/dashboardLayout/DashboardLayout.js.map +1 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.d.ts +8 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.d.ts.map +1 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.js +13 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.js.map +1 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.d.ts +7 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.d.ts.map +1 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.js +24 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.js.map +1 -0
- package/esm/presentation/widget/dashboardLayout/index.d.ts +4 -0
- package/esm/presentation/widget/dashboardLayout/index.d.ts.map +1 -0
- package/esm/presentation/widget/dashboardLayout/index.js +4 -0
- package/esm/presentation/widget/dashboardLayout/index.js.map +1 -0
- package/esm/presentation/widget/dashboardLayout/types.d.ts +55 -0
- package/esm/presentation/widget/dashboardLayout/types.d.ts.map +1 -0
- package/esm/presentation/widget/dashboardLayout/types.js +3 -0
- package/esm/presentation/widget/dashboardLayout/types.js.map +1 -0
- package/esm/presentation/widget/index.d.ts +1 -0
- package/esm/presentation/widget/index.d.ts.map +1 -1
- package/esm/presentation/widget/index.js +1 -0
- package/esm/presentation/widget/index.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts +16 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js +133 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +3 -2
- 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 +10 -10
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.js +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +8 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +16 -18
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts +7 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js +43 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts +90 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js +220 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.d.ts +22 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.js +41 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.d.ts +14 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.js +202 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts +64 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js +303 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
- package/esm/presentation/widget/insight/types.d.ts +1 -0
- package/esm/presentation/widget/insight/types.d.ts.map +1 -1
- package/esm/presentation/widget/types.d.ts +1 -0
- package/esm/presentation/widget/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +179 -12
- package/package.json +15 -15
- package/styles/css/alerting.css +2 -0
- package/styles/css/alerting.css.map +1 -1
- package/styles/css/main.css +11 -14
- package/styles/css/main.css.map +1 -1
- package/styles/css/sidebar.css +9 -14
- package/styles/css/sidebar.css.map +1 -1
- package/styles/scss/alerting.scss +2 -0
- package/styles/scss/sidebar.scss +10 -18
- package/esm/presentation/flexibleLayout/DashboardLayout.d.ts.map +0 -1
- package/esm/presentation/flexibleLayout/DashboardLayout.js.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts +0 -14
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js +0 -139
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +0 -46
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +0 -712
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayout.js","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/DashboardLayout.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAG9E;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAA4B,EAAe,EAAE;IACzE,MAAM,EAAE,eAAe,EAAE,GAAG,6BAA6B,EAAE,CAAC;IAE5D,OAAO,oBAAC,eAAe,OAAK,KAAK,GAAI,CAAC;AAC1C,CAAC,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { IAttributeMetadataObject } from "@gooddata/sdk-model";
|
|
3
|
-
import { AlertAttribute } from "../../types.js";
|
|
4
|
-
import { IExecutionResultEnvelope } from "../../../../../model/index.js";
|
|
5
|
-
export interface IAlertAttributeSelectProps {
|
|
6
|
-
execResult: IExecutionResultEnvelope | undefined;
|
|
7
|
-
selectedAttribute: AlertAttribute | undefined;
|
|
8
|
-
selectedValue: string | null | undefined;
|
|
9
|
-
onAttributeChange: (attribute: AlertAttribute | undefined, value: string | undefined) => void;
|
|
10
|
-
attributes: AlertAttribute[];
|
|
11
|
-
catalogAttributes: IAttributeMetadataObject[];
|
|
12
|
-
}
|
|
13
|
-
export declare const AlertAttributeSelect: ({ execResult, selectedAttribute, selectedValue, onAttributeChange, attributes, catalogAttributes, }: IAlertAttributeSelectProps) => React.JSX.Element;
|
|
14
|
-
//# sourceMappingURL=AlertAttributeSelecxt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertAttributeSelecxt.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAYzD,OAAO,EAAmB,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAEhF,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAKhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAQzE,MAAM,WAAW,0BAA0B;IACvC,UAAU,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACjD,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,iBAAiB,EAAE,CAAC,SAAS,EAAE,cAAc,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC9F,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,iBAAiB,EAAE,wBAAwB,EAAE,CAAC;CACjD;AAED,eAAO,MAAM,oBAAoB,wGAO9B,0BAA0B,sBAyN5B,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
// (C) 2019-2024 GoodData Corporation
|
|
2
|
-
import React, { useMemo, useRef, useState } from "react";
|
|
3
|
-
import { Button, Menu, ItemsWrapper, Item, SubMenu, Separator, InvertableSelectSearchBar, } from "@gooddata/sdk-ui-kit";
|
|
4
|
-
import cx from "classnames";
|
|
5
|
-
import { useIntl } from "react-intl";
|
|
6
|
-
import { areObjRefsEqual } from "@gooddata/sdk-model";
|
|
7
|
-
import { DASHBOARD_DIALOG_OVERS_Z_INDEX, IGNORED_CONFIGURATION_MENU_CLICK_CLASS, } from "../../../../constants/index.js";
|
|
8
|
-
import { getAttributeTitle } from "./utils.js";
|
|
9
|
-
import { useAttributeValuesFromExecResults, } from "./hooks/useAttributeValuesFromExecResults.js";
|
|
10
|
-
export const AlertAttributeSelect = ({ execResult, selectedAttribute, selectedValue, onAttributeChange, attributes, catalogAttributes, }) => {
|
|
11
|
-
const intl = useIntl();
|
|
12
|
-
const ref = useRef(null);
|
|
13
|
-
const [searchString, setSearchString] = useState("");
|
|
14
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
15
|
-
const [isOpenAttribute, setIsOpenAttribute] = useState(null);
|
|
16
|
-
const { isResultLoading, getAttributeValues } = useAttributeValuesFromExecResults(execResult);
|
|
17
|
-
const selectedAttr = useMemo(() => selectedAttribute && getSelectedCatalogAttribute(catalogAttributes, selectedAttribute), [catalogAttributes, selectedAttribute]);
|
|
18
|
-
const selectedVal = useMemo(() => getSelectedCatalogAttributeValue(selectedAttr, getAttributeValues, selectedValue), [selectedAttr, getAttributeValues, selectedValue]);
|
|
19
|
-
const opened = Boolean(isOpen && !isResultLoading);
|
|
20
|
-
return (React.createElement("div", { className: "gd-alert-attribute-select" },
|
|
21
|
-
React.createElement(Menu, { toggler: React.createElement("div", { ref: (item) => {
|
|
22
|
-
ref.current = item;
|
|
23
|
-
} },
|
|
24
|
-
React.createElement(Button, { className: cx("gd-alert-attribute-select__button s-alert-attribute-select", {
|
|
25
|
-
"is-active": opened,
|
|
26
|
-
}), size: "small", disabled: isResultLoading, variant: "secondary", iconLeft: "gd-icon-attribute", iconRight: `gd-icon-navigate${opened ? "up" : "down"}`, onClick: () => {
|
|
27
|
-
if (isResultLoading) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
setIsOpen(!isOpen);
|
|
31
|
-
setIsOpenAttribute(null);
|
|
32
|
-
} }, selectedAttribute ? (React.createElement("span", null,
|
|
33
|
-
selectedAttr?.title,
|
|
34
|
-
React.createElement("span", null,
|
|
35
|
-
"\u00A0",
|
|
36
|
-
"/",
|
|
37
|
-
"\u00A0"),
|
|
38
|
-
selectedVal
|
|
39
|
-
? (selectedVal.title ?? selectedVal.name) ||
|
|
40
|
-
`(${intl.formatMessage({ id: "empty_value" })})`
|
|
41
|
-
: intl.formatMessage({ id: "insightAlert.config.selectAttribute" }))) : (React.createElement(React.Fragment, null, intl.formatMessage({ id: "insightAlert.config.selectAttribute" }))))), togglerWrapperClassName: "gd-alert-attribute-select__button_wrapper", opened: opened, onOpenedChange: ({ opened }) => {
|
|
42
|
-
setIsOpen(opened);
|
|
43
|
-
}, openAction: "click" },
|
|
44
|
-
React.createElement(ItemsWrapper, { style: {
|
|
45
|
-
width: ref.current?.offsetWidth ?? 0,
|
|
46
|
-
zIndex: DASHBOARD_DIALOG_OVERS_Z_INDEX,
|
|
47
|
-
}, className: IGNORED_CONFIGURATION_MENU_CLICK_CLASS },
|
|
48
|
-
React.createElement("div", { className: "gd-alert-attribute-select__submenu s-alert-attribute-menu-content" },
|
|
49
|
-
React.createElement(Item, { className: "gd-alert-attribute-select__menu-item_wrapper", checked: !selectedAttr, onClick: (e) => {
|
|
50
|
-
onAttributeChange(undefined, undefined);
|
|
51
|
-
setIsOpen(false);
|
|
52
|
-
setIsOpenAttribute(null);
|
|
53
|
-
e.preventDefault();
|
|
54
|
-
e.stopPropagation();
|
|
55
|
-
} },
|
|
56
|
-
React.createElement("div", { className: "gd-alert-attribute-select__menu-item s-menu-alert-attribute-item-value" }, intl.formatMessage({ id: "insightAlert.config.selectAttribute" }))),
|
|
57
|
-
React.createElement(Separator, null),
|
|
58
|
-
attributes.map((attribute, i) => {
|
|
59
|
-
const item = getSelectedCatalogAttribute(catalogAttributes, attribute);
|
|
60
|
-
if (!item) {
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
const isSelected = selectedAttr?.id === item.id;
|
|
64
|
-
const values = getAttributeValues(item);
|
|
65
|
-
return (React.createElement(SubMenu, { key: i, toggler: React.createElement(Item, { checked: isSelected, subMenu: true, className: "gd-alert-attribute-select__menu-item_wrapper" },
|
|
66
|
-
React.createElement("div", { className: "gd-alert-attribute-select__menu-item s-menu-alert-attribute-item" }, item.title ||
|
|
67
|
-
`(${intl.formatMessage({ id: "empty_value" })})`)), openAction: "click", opened: isOpenAttribute === attribute.attribute.attribute.localIdentifier, onOpenedChange: ({ opened }) => {
|
|
68
|
-
setIsOpenAttribute(opened ? attribute.attribute.attribute.localIdentifier : null);
|
|
69
|
-
setSearchString("");
|
|
70
|
-
} },
|
|
71
|
-
React.createElement(ItemsWrapper, { style: {
|
|
72
|
-
zIndex: DASHBOARD_DIALOG_OVERS_Z_INDEX + 1,
|
|
73
|
-
}, className: IGNORED_CONFIGURATION_MENU_CLICK_CLASS },
|
|
74
|
-
React.createElement("div", { className: cx("gd-alert-attribute-select__submenu-content", "s-alert-attribute-submenu-content") },
|
|
75
|
-
values.length > 5 && (React.createElement("div", null,
|
|
76
|
-
React.createElement(InvertableSelectSearchBar, { onSearch: setSearchString, searchString: searchString, searchPlaceholder: intl.formatMessage({
|
|
77
|
-
id: "attributesDropdown.placeholder",
|
|
78
|
-
}), className: "gd-alert-attribute-select__menu-item_search" }))),
|
|
79
|
-
React.createElement(Item, { className: "gd-alert-attribute-select__menu-item_wrapper", checked: Boolean(isSelected && !selectedVal), onClick: (e) => {
|
|
80
|
-
onAttributeChange(attribute, undefined);
|
|
81
|
-
setIsOpen(false);
|
|
82
|
-
setIsOpenAttribute(null);
|
|
83
|
-
e.preventDefault();
|
|
84
|
-
e.stopPropagation();
|
|
85
|
-
} },
|
|
86
|
-
React.createElement("div", { className: "gd-alert-attribute-select__menu-item s-menu-alert-attribute-item-value" },
|
|
87
|
-
intl.formatMessage({
|
|
88
|
-
id: "insightAlert.config.selectAttribute",
|
|
89
|
-
}),
|
|
90
|
-
" ",
|
|
91
|
-
"(",
|
|
92
|
-
values.length,
|
|
93
|
-
")")),
|
|
94
|
-
React.createElement(Separator, null),
|
|
95
|
-
React.createElement("div", { className: "gd-alert-attribute-select__menu-item__values" }, values
|
|
96
|
-
.filter((item) => {
|
|
97
|
-
if (searchString) {
|
|
98
|
-
return item.title
|
|
99
|
-
.toLowerCase()
|
|
100
|
-
.includes(searchString.toLowerCase());
|
|
101
|
-
}
|
|
102
|
-
return true;
|
|
103
|
-
})
|
|
104
|
-
.map((value, j) => (React.createElement(Item, { key: j, checked: Boolean(isSelected &&
|
|
105
|
-
value.value === selectedVal?.value), className: "gd-alert-attribute-select__menu-item_wrapper", onClick: (e) => {
|
|
106
|
-
onAttributeChange(attribute, value.value);
|
|
107
|
-
setIsOpen(false);
|
|
108
|
-
setIsOpenAttribute(null);
|
|
109
|
-
e.preventDefault();
|
|
110
|
-
e.stopPropagation();
|
|
111
|
-
} },
|
|
112
|
-
React.createElement("div", { className: "gd-alert-attribute-select__menu-item s-menu-alert-attribute-item-value" }, (value.title ?? value.name) ||
|
|
113
|
-
`(${intl.formatMessage({
|
|
114
|
-
id: "empty_value",
|
|
115
|
-
})})`)))))))));
|
|
116
|
-
}))))));
|
|
117
|
-
};
|
|
118
|
-
function getSelectedCatalogAttribute(catalogAttributes, attribute) {
|
|
119
|
-
const item = catalogAttributes.find((a) => {
|
|
120
|
-
const self = areObjRefsEqual(a.ref, attribute.attribute.attribute.displayForm);
|
|
121
|
-
const rf = a.displayForms.find((df) => areObjRefsEqual(df.ref, attribute.attribute.attribute.displayForm));
|
|
122
|
-
return self || rf;
|
|
123
|
-
});
|
|
124
|
-
if (!item) {
|
|
125
|
-
return undefined;
|
|
126
|
-
}
|
|
127
|
-
return {
|
|
128
|
-
...item,
|
|
129
|
-
title: getAttributeTitle(attribute.attribute) ?? item?.title,
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
function getSelectedCatalogAttributeValue(attribute, getAttributeValue, selectedValue) {
|
|
133
|
-
if (!attribute) {
|
|
134
|
-
return undefined;
|
|
135
|
-
}
|
|
136
|
-
const values = getAttributeValue(attribute);
|
|
137
|
-
return values.find((value) => value.value === selectedValue);
|
|
138
|
-
}
|
|
139
|
-
//# sourceMappingURL=AlertAttributeSelecxt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertAttributeSelecxt.js","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EACH,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,OAAO,EACP,SAAS,EACT,yBAAyB,GAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,eAAe,EAA4B,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EACH,8BAA8B,EAC9B,sCAAsC,GACzC,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAEH,iCAAiC,GACpC,MAAM,8CAA8C,CAAC;AAWtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACjC,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,iBAAiB,GACQ,EAAE,EAAE;IAC7B,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,GAAG,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAC;IAE7C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE5E,MAAM,EAAE,eAAe,EAAE,kBAAkB,EAAE,GAA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E,aAAwC;IAExC,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC5C,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,aAAa,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { IAlertComparisonOperator, IAlertRelativeArithmeticOperator, IAlertRelativeOperator, IAttribute, IAutomationAlert, IAutomationMetadataObject, IAutomationMetadataObjectDefinition, IAutomationRecipient, ICatalogMeasure, IFilter, IInsight, IMeasure } from "@gooddata/sdk-model";
|
|
2
|
-
import { IntlShape } from "react-intl";
|
|
3
|
-
import { AlertAttribute, AlertMetric } from "../../types.js";
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare const getMeasureTitle: (measure: IMeasure) => string | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export declare const getAttributeTitle: (attribute: IAttribute) => string | undefined;
|
|
12
|
-
export declare const getOperatorTitle: (intl: IntlShape, alert?: IAutomationAlert) => string;
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
export declare const createDefaultAlert: (filters: IFilter[], metrics: AlertMetric[], measure: AlertMetric, notificationChannelId: string, currentUser: IAutomationRecipient, catalogMeasures?: ICatalogMeasure[], comparisonOperator?: IAlertComparisonOperator) => IAutomationMetadataObjectDefinition;
|
|
17
|
-
export declare const getSupportedInsightMeasuresByInsight: (insight: IInsight | null | undefined) => AlertMetric[];
|
|
18
|
-
export declare const getSupportedInsightAttributesByInsight: (insight: IInsight | null | undefined) => AlertAttribute[];
|
|
19
|
-
export declare function getValueSuffix(alert?: IAutomationAlert): string | undefined;
|
|
20
|
-
export declare function isChangeOperator(alert?: IAutomationAlert): boolean;
|
|
21
|
-
export declare function isDifferenceOperator(alert?: IAutomationAlert): boolean;
|
|
22
|
-
export declare function isChangeOrDifferenceOperator(alert?: IAutomationAlert): boolean;
|
|
23
|
-
export declare function isAlertValueDefined(alert?: IAutomationAlert): boolean;
|
|
24
|
-
export declare function isAlertRecipientsValid(alert?: IAutomationMetadataObject): boolean;
|
|
25
|
-
export declare function getAlertThreshold(alert?: IAutomationAlert): number | undefined;
|
|
26
|
-
export declare function getAlertMeasure(measures: AlertMetric[], alert?: IAutomationAlert): AlertMetric | undefined;
|
|
27
|
-
export declare function getAlertAttribute(attributes: AlertAttribute[], alert?: IAutomationMetadataObject): [AlertAttribute | undefined, string | null | undefined];
|
|
28
|
-
export declare function getAlertFilters(alert?: IAutomationMetadataObject): IFilter[];
|
|
29
|
-
export declare function getAlertCompareOperator(alert?: IAutomationAlert): IAlertComparisonOperator | undefined;
|
|
30
|
-
export declare function getAlertRelativeOperator(alert?: IAutomationAlert): [IAlertRelativeOperator, IAlertRelativeArithmeticOperator] | undefined;
|
|
31
|
-
export declare function transformAlertByMetric(metrics: AlertMetric[], alert: IAutomationMetadataObject, measure: AlertMetric, catalogMeasures?: ICatalogMeasure[]): IAutomationMetadataObject;
|
|
32
|
-
/**
|
|
33
|
-
* This function get selected attributed and optionally value amd added this attribute to execution.
|
|
34
|
-
* If value is provided, it creates positive attribute filter with this value, otherwise it creates negative attribute filter
|
|
35
|
-
* that is empty for now.
|
|
36
|
-
* @param attributes - all available attributes
|
|
37
|
-
* @param alert - alert to transform
|
|
38
|
-
* @param attr - optionally selected attribute
|
|
39
|
-
* @param value - optionally selected value
|
|
40
|
-
*/
|
|
41
|
-
export declare function transformAlertByAttribute(attributes: AlertAttribute[], alert: IAutomationMetadataObject, attr: AlertAttribute | undefined, value: string | undefined): IAutomationMetadataObject;
|
|
42
|
-
export declare function transformAlertByComparisonOperator(metrics: AlertMetric[], alert: IAutomationMetadataObject, measure: AlertMetric, comparisonOperator: IAlertComparisonOperator): IAutomationMetadataObject;
|
|
43
|
-
export declare function transformAlertByRelativeOperator(metrics: AlertMetric[], alert: IAutomationMetadataObject, measure: AlertMetric, relativeOperator: IAlertRelativeOperator, arithmeticOperator: IAlertRelativeArithmeticOperator, catalogMeasures?: ICatalogMeasure[]): IAutomationMetadataObject;
|
|
44
|
-
export declare function transformAlertByValue(alert: IAutomationMetadataObject, value: number): IAutomationMetadataObject;
|
|
45
|
-
export declare function transformAlertByDestination(alert: IAutomationMetadataObject, notificationChannel: string, recipients?: IAutomationRecipient[]): IAutomationMetadataObject;
|
|
46
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAIH,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAKhB,yBAAyB,EACzB,mCAAmC,EACnC,oBAAoB,EAEpB,eAAe,EACf,OAAO,EACP,QAAQ,EACR,QAAQ,EAgBX,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EACH,cAAc,EACd,WAAW,EAGd,MAAM,gBAAgB,CAAC;AAUxB;;GAEG;AACH,eAAO,MAAM,eAAe,YAAa,QAAQ,uBAEhD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,cAAe,UAAU,uBAEtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAU,SAAS,UAAU,gBAAgB,WAQzE,CAAC;AA4CF;;GAEG;AACH,eAAO,MAAM,kBAAkB,YAClB,OAAO,EAAE,WACT,WAAW,EAAE,WACb,WAAW,yBACG,MAAM,eAChB,oBAAoB,oBAChB,eAAe,EAAE,uBACd,wBAAwB,KAC7C,mCA0CF,CAAC;AAyBF,eAAO,MAAM,oCAAoC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