@gooddata/sdk-ui-dashboard 10.20.0-alpha.9 → 10.20.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 +3 -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/layout/sizing.d.ts +1 -1
- package/esm/_staging/layout/sizing.d.ts.map +1 -1
- package/esm/_staging/layout/sizing.js +4 -1
- package/esm/_staging/layout/sizing.js.map +1 -1
- package/esm/_staging/sharedHooks/useAttributes.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useAttributes.js +10 -4
- package/esm/_staging/sharedHooks/useAttributes.js.map +1 -1
- package/esm/_staging/slideshow/breakupSlideTransformer.d.ts +10 -0
- package/esm/_staging/slideshow/breakupSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/breakupSlideTransformer.js +20 -0
- package/esm/_staging/slideshow/breakupSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/containerSlideTransformer.d.ts +11 -0
- package/esm/_staging/slideshow/containerSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/containerSlideTransformer.js +49 -0
- package/esm/_staging/slideshow/containerSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.d.ts +8 -0
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.js +115 -0
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/index.d.ts +10 -0
- package/esm/_staging/slideshow/index.d.ts.map +1 -0
- package/esm/_staging/slideshow/index.js +11 -0
- package/esm/_staging/slideshow/index.js.map +1 -0
- package/esm/_staging/slideshow/itemsSlideTransformer.d.ts +9 -0
- package/esm/_staging/slideshow/itemsSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/itemsSlideTransformer.js +13 -0
- package/esm/_staging/slideshow/itemsSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/layoutTransformer.d.ts +9 -0
- package/esm/_staging/slideshow/layoutTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/layoutTransformer.js +24 -0
- package/esm/_staging/slideshow/layoutTransformer.js.map +1 -0
- package/esm/_staging/slideshow/sectionSlideTransformer.d.ts +4 -0
- package/esm/_staging/slideshow/sectionSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/sectionSlideTransformer.js +19 -0
- package/esm/_staging/slideshow/sectionSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/singleWidgetTransformer.d.ts +6 -0
- package/esm/_staging/slideshow/singleWidgetTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/singleWidgetTransformer.js +21 -0
- package/esm/_staging/slideshow/singleWidgetTransformer.js.map +1 -0
- package/esm/_staging/slideshow/switcherSlideTransformer.d.ts +9 -0
- package/esm/_staging/slideshow/switcherSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/switcherSlideTransformer.js +37 -0
- package/esm/_staging/slideshow/switcherSlideTransformer.js.map +1 -0
- package/esm/_staging/slideshow/utils/index.d.ts +16 -0
- package/esm/_staging/slideshow/utils/index.d.ts.map +1 -0
- package/esm/_staging/slideshow/utils/index.js +57 -0
- package/esm/_staging/slideshow/utils/index.js.map +1 -0
- package/esm/_staging/slideshow/widgetSlideTransformer.d.ts +3 -0
- package/esm/_staging/slideshow/widgetSlideTransformer.d.ts.map +1 -0
- package/esm/_staging/slideshow/widgetSlideTransformer.js +24 -0
- package/esm/_staging/slideshow/widgetSlideTransformer.js.map +1 -0
- package/esm/model/commandHandlers/common/validateDrills.d.ts +2 -2
- package/esm/model/commandHandlers/dashboard/common/loadAutomationsData.d.ts +7 -0
- package/esm/model/commandHandlers/dashboard/common/loadAutomationsData.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/loadAutomationsData.js +13 -0
- package/esm/model/commandHandlers/dashboard/common/loadAutomationsData.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +3 -3
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts +7 -3
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +30 -28
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUser.js +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadUser.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.d.ts +5 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.js +16 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts +10 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js +17 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/resolveDashboardConfig.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.js +8 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeFilterSelectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.d.ts +4 -0
- package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.js +10 -2
- package/esm/model/commandHandlers/filterContext/common.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js +6 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/changeDateFilterSelectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js +3 -8
- package/esm/model/commandHandlers/filterContext/filterViewHandler.js.map +1 -1
- package/esm/model/index.d.ts +1 -1
- package/esm/model/index.d.ts.map +1 -1
- package/esm/model/index.js.map +1 -1
- package/esm/model/queryServices/queryAttributeByDisplayForm.d.ts.map +1 -1
- package/esm/model/queryServices/queryAttributeByDisplayForm.js +16 -9
- package/esm/model/queryServices/queryAttributeByDisplayForm.js.map +1 -1
- package/esm/model/queryServices/queryAttributeDataset.d.ts +1 -1
- package/esm/model/queryServices/queryAttributeDataset.d.ts.map +1 -1
- package/esm/model/queryServices/queryAttributeDataset.js +14 -6
- package/esm/model/queryServices/queryAttributeDataset.js.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.d.ts +1 -1
- package/esm/model/queryServices/queryWidgetFilters.d.ts.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.js +12 -13
- package/esm/model/queryServices/queryWidgetFilters.js.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +4 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +6 -0
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +3 -2
- package/esm/model/store/dashboardStore.js.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts +4 -0
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.js +8 -1
- package/esm/model/store/executionResults/executionResultsSelectors.js.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.d.ts +5 -0
- package/esm/model/store/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.js +8 -1
- package/esm/model/store/filterContext/filterContextReducers.js.map +1 -1
- package/esm/model/store/filterContext/filterContextSelectors.d.ts +7 -0
- package/esm/model/store/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextSelectors.js +9 -1
- package/esm/model/store/filterContext/filterContextSelectors.js.map +1 -1
- package/esm/model/store/filterContext/filterContextState.d.ts +6 -0
- package/esm/model/store/filterContext/filterContextState.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextState.js +2 -1
- package/esm/model/store/filterContext/filterContextState.js.map +1 -1
- package/esm/model/store/filterContext/index.d.ts +4 -0
- package/esm/model/store/filterContext/index.d.ts.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 +4 -4
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/renderMode/index.d.ts +1 -0
- package/esm/model/store/renderMode/index.d.ts.map +1 -1
- package/esm/model/store/renderMode/renderModeReducers.d.ts +1 -0
- package/esm/model/store/renderMode/renderModeReducers.d.ts.map +1 -1
- package/esm/model/store/renderMode/renderModeReducers.js +4 -0
- package/esm/model/store/renderMode/renderModeReducers.js.map +1 -1
- package/esm/model/store/renderMode/renderModeSelectors.d.ts +6 -0
- package/esm/model/store/renderMode/renderModeSelectors.d.ts.map +1 -1
- package/esm/model/store/renderMode/renderModeSelectors.js +7 -1
- package/esm/model/store/renderMode/renderModeSelectors.js.map +1 -1
- package/esm/model/types/commonTypes.d.ts +48 -3
- package/esm/model/types/commonTypes.d.ts.map +1 -1
- package/esm/model/types/commonTypes.js.map +1 -1
- package/esm/plugins/customizationApis/customizationBuilder.d.ts.map +1 -1
- package/esm/plugins/customizationApis/customizationBuilder.js +1 -0
- package/esm/plugins/customizationApis/customizationBuilder.js.map +1 -1
- package/esm/plugins/customizationApis/exportLayoutCustomizer.d.ts +13 -0
- package/esm/plugins/customizationApis/exportLayoutCustomizer.d.ts.map +1 -0
- package/esm/plugins/customizationApis/exportLayoutCustomizer.js +47 -0
- package/esm/plugins/customizationApis/exportLayoutCustomizer.js.map +1 -0
- package/esm/plugins/customizationApis/filterBarCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/filterBarCustomizer.js +2 -2
- package/esm/plugins/customizationApis/filterBarCustomizer.js.map +1 -1
- package/esm/plugins/customizationApis/layoutCustomizer.d.ts +5 -1
- package/esm/plugins/customizationApis/layoutCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/layoutCustomizer.js +57 -0
- package/esm/plugins/customizationApis/layoutCustomizer.js.map +1 -1
- package/esm/plugins/customizationApis/titleCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/titleCustomizer.js +2 -2
- package/esm/plugins/customizationApis/titleCustomizer.js.map +1 -1
- package/esm/plugins/customizationApis/topBarCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/topBarCustomizer.js +2 -2
- package/esm/plugins/customizationApis/topBarCustomizer.js.map +1 -1
- package/esm/plugins/customizationApis/types.d.ts +2 -1
- package/esm/plugins/customizationApis/types.d.ts.map +1 -1
- package/esm/plugins/customizationApis/types.js +1 -0
- package/esm/plugins/customizationApis/types.js.map +1 -1
- package/esm/plugins/customizer.d.ts +113 -0
- package/esm/plugins/customizer.d.ts.map +1 -1
- package/esm/plugins/index.d.ts +1 -1
- package/esm/plugins/index.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +3 -3
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -1
- package/esm/presentation/componentDefinition/renderModeAware.d.ts.map +1 -1
- package/esm/presentation/componentDefinition/renderModeAware.js +5 -3
- package/esm/presentation/componentDefinition/renderModeAware.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardInner.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardInner.js +11 -2
- package/esm/presentation/dashboard/components/DashboardInner.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +6 -6
- package/esm/presentation/dashboard/components/DashboardRenderer.js.map +1 -1
- package/esm/presentation/dashboard/types.d.ts +42 -0
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboard/types.js +9 -1
- package/esm/presentation/dashboard/types.js.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardCustomizationsContext.d.ts +3 -0
- package/esm/presentation/dashboardContexts/DashboardCustomizationsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardCustomizationsContext.js +1 -1
- package/esm/presentation/dashboardContexts/DashboardCustomizationsContext.js.map +1 -1
- package/esm/presentation/dashboardContexts/index.d.ts +1 -0
- package/esm/presentation/dashboardContexts/index.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/index.js +2 -1
- package/esm/presentation/dashboardContexts/index.js.map +1 -1
- package/esm/presentation/dashboardContexts/useSlideData.d.ts +19 -0
- package/esm/presentation/dashboardContexts/useSlideData.d.ts.map +1 -0
- package/esm/presentation/dashboardContexts/useSlideData.js +39 -0
- package/esm/presentation/dashboardContexts/useSlideData.js.map +1 -0
- package/esm/presentation/export/index.d.ts +3 -0
- package/esm/presentation/export/index.d.ts.map +1 -0
- package/esm/presentation/export/index.js +4 -0
- package/esm/presentation/export/index.js.map +1 -0
- package/esm/presentation/export/types.d.ts +67 -0
- package/esm/presentation/export/types.d.ts.map +1 -0
- package/esm/presentation/export/types.js +3 -0
- package/esm/presentation/export/types.js.map +1 -0
- package/esm/presentation/export/useExportData.d.ts +15 -0
- package/esm/presentation/export/useExportData.d.ts.map +1 -0
- package/esm/presentation/export/useExportData.js +54 -0
- package/esm/presentation/export/useExportData.js.map +1 -0
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +8 -5
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useAttributeDataSet.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useAttributeDataSet.js +8 -4
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useAttributeDataSet.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/RenderModeAwareFilterBar.d.ts +6 -0
- package/esm/presentation/filterBar/filterBar/RenderModeAwareFilterBar.d.ts.map +1 -0
- package/esm/presentation/filterBar/filterBar/RenderModeAwareFilterBar.js +12 -0
- package/esm/presentation/filterBar/filterBar/RenderModeAwareFilterBar.js.map +1 -0
- package/esm/presentation/filterBar/filterBar/index.d.ts +1 -0
- package/esm/presentation/filterBar/filterBar/index.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/index.js +2 -1
- package/esm/presentation/filterBar/filterBar/index.js.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +6 -3
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js +24 -11
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.d.ts +4 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.js +25 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts +2 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +16 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +2 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.d.ts +2 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.d.ts +3 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.js +13 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts +9 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js +7 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js +3 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js +3 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts +27 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +5 -2
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js +0 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.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/layout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/layout/DashboardLayoutWidget.js +6 -3
- package/esm/presentation/layout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayout.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayout.js +6 -3
- package/esm/presentation/layout/DefaultDashboardLayout.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayout.js +16 -6
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayout.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.d.ts +4 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.d.ts.map +1 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.js +12 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.js.map +1 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +4 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts +2 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js +4 -4
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +2 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +3 -3
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.d.ts +3 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.d.ts.map +1 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.js +18 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/ExportableDashboardLayoutSectionRenderer.js.map +1 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js +3 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js +3 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/interfaces.d.ts +18 -0
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/interfaces.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.json +16 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.d.ts +3 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.js +2 -2
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.js.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.d.ts +4 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.js +3 -3
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemBase.js.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemContent.d.ts +1 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemContent.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemContent.js +3 -2
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemContent.js.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadline.d.ts +2 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadline.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadline.js +2 -2
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadline.js.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadlineContainer.d.ts +2 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadlineContainer.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadlineContainer.js +5 -5
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadlineContainer.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.d.ts +2 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.js +8 -8
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.js +4 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.js +4 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js +4 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Input.d.ts +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Input.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Input.js +4 -4
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Input.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js +6 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Textarea.d.ts +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Textarea.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Textarea.js +4 -4
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Textarea.js.map +1 -1
- package/esm/presentation/topBar/title/RenderModeAwareTitle.d.ts +2 -2
- package/esm/presentation/topBar/title/RenderModeAwareTitle.d.ts.map +1 -1
- package/esm/presentation/topBar/title/RenderModeAwareTitle.js +3 -1
- package/esm/presentation/topBar/title/RenderModeAwareTitle.js.map +1 -1
- package/esm/presentation/topBar/topBar/RenderModeAwareTopBar.d.ts +6 -0
- package/esm/presentation/topBar/topBar/RenderModeAwareTopBar.d.ts.map +1 -0
- package/esm/presentation/topBar/topBar/RenderModeAwareTopBar.js +12 -0
- package/esm/presentation/topBar/topBar/RenderModeAwareTopBar.js.map +1 -0
- package/esm/presentation/topBar/topBar/index.d.ts +1 -0
- package/esm/presentation/topBar/topBar/index.d.ts.map +1 -1
- package/esm/presentation/topBar/topBar/index.js +2 -1
- package/esm/presentation/topBar/topBar/index.js.map +1 -1
- package/esm/presentation/widget/common/useWidgetHighlighting.d.ts.map +1 -1
- package/esm/presentation/widget/common/useWidgetHighlighting.js +5 -2
- package/esm/presentation/widget/common/useWidgetHighlighting.js.map +1 -1
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.d.ts +9 -0
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.d.ts.map +1 -0
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.js +19 -0
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.js.map +1 -0
- package/esm/presentation/widget/description/InsightWidgetDescriptionComponentProvider.d.ts +12 -0
- package/esm/presentation/widget/description/InsightWidgetDescriptionComponentProvider.d.ts.map +1 -0
- package/esm/presentation/widget/description/InsightWidgetDescriptionComponentProvider.js +15 -0
- package/esm/presentation/widget/description/InsightWidgetDescriptionComponentProvider.js.map +1 -0
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.d.ts.map +1 -1
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.js +8 -12
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.js.map +1 -1
- package/esm/presentation/widget/description/types.d.ts +2 -0
- package/esm/presentation/widget/description/types.d.ts.map +1 -1
- package/esm/presentation/widget/description/useInsightWidgetDescription.d.ts +7 -0
- package/esm/presentation/widget/description/useInsightWidgetDescription.d.ts.map +1 -0
- package/esm/presentation/widget/description/useInsightWidgetDescription.js +21 -0
- package/esm/presentation/widget/description/useInsightWidgetDescription.js.map +1 -0
- package/esm/presentation/widget/insight/DefaultDashboardInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/DefaultDashboardInsight.js +3 -1
- package/esm/presentation/widget/insight/DefaultDashboardInsight.js.map +1 -1
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/ExportModeDashboardInsight.d.ts +4 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/ExportModeDashboardInsight.d.ts.map +1 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/ExportModeDashboardInsight.js +7 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/ExportModeDashboardInsight.js.map +1 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/index.d.ts +2 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/index.d.ts.map +1 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/index.js +3 -0
- package/esm/presentation/widget/insight/ExportModeDashboardInsight/index.js.map +1 -0
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js +35 -16
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js +4 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js +4 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.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 +3 -3
- 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 +6 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +4 -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 +7 -7
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +8 -17
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts +12 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js +26 -7
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts +6 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js +43 -18
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
- package/esm/presentation/widget/insight/types.d.ts +5 -0
- package/esm/presentation/widget/insight/types.d.ts.map +1 -1
- package/esm/presentation/widget/insight/types.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js +2 -2
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuItemButton.js.map +1 -1
- package/esm/presentation/widget/richText/DefaultDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/DefaultDashboardRichText.js +3 -1
- package/esm/presentation/widget/richText/DefaultDashboardRichText.js.map +1 -1
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.d.ts +4 -0
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.d.ts.map +1 -0
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.js +10 -0
- package/esm/presentation/widget/richText/ExportModeDashboardRichText.js.map +1 -0
- package/esm/presentation/widget/richText/types.d.ts +7 -0
- package/esm/presentation/widget/richText/types.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.d.ts +2 -0
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.js +3 -3
- package/esm/presentation/widget/visualizationSwitcher/AllVisualizationsDashInsights.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.js +3 -1
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ExportModeDashboardVisualizationSwitcher.d.ts +7 -0
- package/esm/presentation/widget/visualizationSwitcher/ExportModeDashboardVisualizationSwitcher.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/ExportModeDashboardVisualizationSwitcher.js +10 -0
- package/esm/presentation/widget/visualizationSwitcher/ExportModeDashboardVisualizationSwitcher.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +12 -7
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/types.d.ts +7 -0
- package/esm/presentation/widget/visualizationSwitcher/types.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/types.js +1 -1
- package/esm/presentation/widget/visualizationSwitcher/types.js.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js +6 -6
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +12 -6
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/ExportableDashboardInsightWidget.d.ts +10 -0
- package/esm/presentation/widget/widget/InsightWidget/ExportableDashboardInsightWidget.d.ts.map +1 -0
- package/esm/presentation/widget/widget/InsightWidget/ExportableDashboardInsightWidget.js +16 -0
- package/esm/presentation/widget/widget/InsightWidget/ExportableDashboardInsightWidget.js.map +1 -0
- package/esm/presentation/widget/widget/InsightWidget/RenderModeAwareDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/RenderModeAwareDashboardInsightWidget.js +3 -1
- package/esm/presentation/widget/widget/InsightWidget/RenderModeAwareDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/types.d.ts +2 -0
- package/esm/presentation/widget/widget/InsightWidget/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/ExportableDashboardRichTextWidget.d.ts +7 -0
- package/esm/presentation/widget/widget/RichTextWidget/ExportableDashboardRichTextWidget.d.ts.map +1 -0
- package/esm/presentation/widget/widget/RichTextWidget/ExportableDashboardRichTextWidget.js +13 -0
- package/esm/presentation/widget/widget/RichTextWidget/ExportableDashboardRichTextWidget.js.map +1 -0
- package/esm/presentation/widget/widget/RichTextWidget/RenderModeAwareDashboardRichTextWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/RenderModeAwareDashboardRichTextWidget.js +3 -1
- package/esm/presentation/widget/widget/RichTextWidget/RenderModeAwareDashboardRichTextWidget.js.map +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/types.d.ts +2 -0
- package/esm/presentation/widget/widget/RichTextWidget/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/ExportableDashboardVisualizationSwitcherWidget.d.ts +7 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/ExportableDashboardVisualizationSwitcherWidget.d.ts.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/ExportableDashboardVisualizationSwitcherWidget.js +13 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/ExportableDashboardVisualizationSwitcherWidget.js.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js +3 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts +2 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js +5 -5
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.d.ts +2 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.js +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.js.map +1 -1
- package/esm/presentation/widget/widget/types.d.ts +7 -0
- package/esm/presentation/widget/widget/types.d.ts.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +386 -6
- package/esm/types.d.ts +1 -1
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js +1 -1
- package/package.json +15 -15
- package/styles/css/dashboard.css +5 -2
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/kpi_alert_dialog.css.map +1 -1
- package/styles/css/layout.css +1 -1
- package/styles/css/layout.css.map +1 -1
- package/styles/css/main.css +21 -3
- package/styles/css/main.css.map +1 -1
- package/styles/css/remove.css +8 -0
- package/styles/css/remove.css.map +1 -0
- package/styles/css/resizing.css.map +1 -1
- package/styles/css/topBar.css.map +1 -1
- package/styles/scss/_zIndexes.scss +2 -2
- package/styles/scss/dashboard.scss +5 -1
- package/styles/scss/main.scss +2 -1
- package/styles/scss/remove.scss +9 -0
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js
CHANGED
|
@@ -4,11 +4,11 @@ import { useCallback, useEffect, useMemo, useState } from "react";
|
|
|
4
4
|
import { v4 as uuidv4 } from "uuid";
|
|
5
5
|
import { useDashboardSelector, selectInsightByWidgetRef, selectEntitlementMaxAutomations, selectEntitlementUnlimitedAutomations, DEFAULT_MAX_AUTOMATIONS, selectAllAutomationsCount, refreshAutomations, useDashboardDispatch, dispatchAndWaitFor, selectDashboardUserAutomationAlertsInContext, selectDashboardId, selectLocale, selectCanCreateAutomation, selectCurrentUser, useFiltersForWidgetScheduledExport, selectNotificationChannels, useDashboardUserInteraction, selectCanManageWorkspace, selectEntitlementMaxAutomationRecipients, selectExecutionResultByRef, selectEnableAlertAttributes, selectCatalogAttributes, selectCatalogDateDatasets, selectSeparators, selectEnableComparisonInAlerting, useWorkspaceUsers, } from "../../../../../../model/index.js";
|
|
6
6
|
import { convertCurrentUserToAutomationRecipient } from "../../../../../../_staging/automation/index.js";
|
|
7
|
-
import { useMetricsAndFacts } from "../../../../../../_staging/sharedHooks/useMetricsAndFacts.js";
|
|
8
7
|
import { DEFAULT_MAX_RECIPIENTS } from "../../../../../scheduledEmail/DefaultScheduledEmailDialog/constants.js";
|
|
9
8
|
import { messages } from "../messages.js";
|
|
10
9
|
import { getSupportedInsightAttributesByInsight, getSupportedInsightMeasuresByInsight, } from "../utils/items.js";
|
|
11
10
|
import { createDefaultAlert } from "../utils/convertors.js";
|
|
11
|
+
import { getMeasureFormatsFromExecution } from "../utils/getters.js";
|
|
12
12
|
import { useSaveAlertToBackend } from "./useSaveAlertToBackend.js";
|
|
13
13
|
export const useInsightWidgetAlerting = ({ widget, closeInsightWidgetMenu }) => {
|
|
14
14
|
const { addSuccess, addError } = useToastMessage();
|
|
@@ -84,8 +84,6 @@ export const useInsightWidgetAlerting = ({ widget, closeInsightWidgetMenu }) =>
|
|
|
84
84
|
widget,
|
|
85
85
|
insight,
|
|
86
86
|
});
|
|
87
|
-
const { metricsAndFacts, metricsAndFactsLoading, metricsAndFactsLoadingError } = useMetricsAndFacts();
|
|
88
|
-
const { metrics: catalogMetrics } = metricsAndFacts ?? { metrics: [] };
|
|
89
87
|
const locale = useDashboardSelector(selectLocale);
|
|
90
88
|
const supportedAttributes = useMemo(() => getSupportedInsightAttributesByInsight(insight, catalogDateDatasets), [insight, catalogDateDatasets]);
|
|
91
89
|
const supportedMeasures = useMemo(() => getSupportedInsightMeasuresByInsight(insight ? fillMissingTitles(insight, locale, 9999) : insight, catalogDateDatasets, canManageComparison), [insight, locale, catalogDateDatasets, canManageComparison]);
|
|
@@ -100,18 +98,19 @@ export const useInsightWidgetAlerting = ({ widget, closeInsightWidgetMenu }) =>
|
|
|
100
98
|
const [viewMode, setViewMode] = useState(alerts.length > 0 || !canCreateAutomation ? "list" : "create");
|
|
101
99
|
const [defaultAlert, setDefaultAlert] = useState(null);
|
|
102
100
|
const [editingAlert, setEditingAlert] = useState(null);
|
|
101
|
+
const measureFormatMap = useMemo(() => {
|
|
102
|
+
return getMeasureFormatsFromExecution(execResult?.executionResult);
|
|
103
|
+
}, [execResult?.executionResult]);
|
|
103
104
|
// Handle async widget filters and catalog state
|
|
104
105
|
useEffect(() => {
|
|
105
106
|
if (widgetFiltersStatus === "success" &&
|
|
106
107
|
usersStatus === "success" &&
|
|
107
108
|
defaultMeasure &&
|
|
108
109
|
defaultNotificationChannelId &&
|
|
109
|
-
!metricsAndFactsLoading &&
|
|
110
110
|
!defaultAlert) {
|
|
111
|
-
setDefaultAlert(createDefaultAlert(widgetFilters, supportedMeasures, defaultMeasure, defaultNotificationChannelId, convertCurrentUserToAutomationRecipient(users ?? [], currentUser),
|
|
111
|
+
setDefaultAlert(createDefaultAlert(widgetFilters, supportedMeasures, defaultMeasure, defaultNotificationChannelId, convertCurrentUserToAutomationRecipient(users ?? [], currentUser), measureFormatMap));
|
|
112
112
|
}
|
|
113
|
-
else if ((widgetFiltersStatus === "error" || usersStatus === "error"
|
|
114
|
-
!defaultAlert) {
|
|
113
|
+
else if ((widgetFiltersStatus === "error" || usersStatus === "error") && !defaultAlert) {
|
|
115
114
|
closeInsightWidgetMenu();
|
|
116
115
|
addError(messages.alertLoadingError);
|
|
117
116
|
}
|
|
@@ -123,9 +122,6 @@ export const useInsightWidgetAlerting = ({ widget, closeInsightWidgetMenu }) =>
|
|
|
123
122
|
supportedMeasures,
|
|
124
123
|
widgetFilters,
|
|
125
124
|
widgetFiltersStatus,
|
|
126
|
-
metricsAndFacts,
|
|
127
|
-
metricsAndFactsLoading,
|
|
128
|
-
metricsAndFactsLoadingError,
|
|
129
125
|
addError,
|
|
130
126
|
currentUser,
|
|
131
127
|
users,
|
|
@@ -229,12 +225,7 @@ export const useInsightWidgetAlerting = ({ widget, closeInsightWidgetMenu }) =>
|
|
|
229
225
|
.catch(() => setIsRefreshingAutomations(false));
|
|
230
226
|
}, [dispatch]);
|
|
231
227
|
return {
|
|
232
|
-
isLoading: isSavingAlert ||
|
|
233
|
-
isLoadingFilters ||
|
|
234
|
-
isRefreshingAutomations ||
|
|
235
|
-
isDeletingAlert ||
|
|
236
|
-
metricsAndFactsLoading ||
|
|
237
|
-
isLoadingUsers,
|
|
228
|
+
isLoading: isSavingAlert || isLoadingFilters || isRefreshingAutomations || isDeletingAlert || isLoadingUsers,
|
|
238
229
|
destinations,
|
|
239
230
|
users,
|
|
240
231
|
alerts,
|
|
@@ -260,7 +251,7 @@ export const useInsightWidgetAlerting = ({ widget, closeInsightWidgetMenu }) =>
|
|
|
260
251
|
canManageAttributes,
|
|
261
252
|
canManageComparison,
|
|
262
253
|
canCreateAutomation,
|
|
263
|
-
|
|
254
|
+
measureFormatMap,
|
|
264
255
|
catalogAttributes: catalogAttributes ?? [],
|
|
265
256
|
catalogDateDatasets: catalogDateDatasets ?? [],
|
|
266
257
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightAlerting.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACH,oBAAoB,EACpB,wBAAwB,EACxB,+BAA+B,EAC/B,qCAAqC,EACrC,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,4CAA4C,EAC5C,iBAAiB,EACjB,YAAY,EACZ,yBAAyB,EACzB,iBAAiB,EACjB,kCAAkC,EAClC,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,wCAAwC,EACxC,0BAA0B,EAC1B,2BAA2B,EAC3B,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,EAChB,gCAAgC,EAChC,iBAAiB,GACpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uCAAuC,EAAE,MAAM,gDAAgD,CAAC;AACzG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useInsightAlerting.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAA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gBAAgB,CAAC,CAAC;YACpC,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,wBAAwB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC9C,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACjC,kBAAkB,CAAC,QAAQ,EAAE,kBAAkB,EAAE,CAAC;aAC7C,IAAI,CAAC,GAAG,EAAE;YACP,0BAA0B,CAAC,KAAK,CAAC,CAAC;QACtC,CAAC,CAAC;aACD,KAAK,CAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC,CAAC;IACxD,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO;QACH,SAAS,EACL,aAAa,IAAI,gBAAgB,IAAI,uBAAuB,IAAI,eAAe,IAAI,cAAc;QACrG,YAAY;QACZ,KAAK;QACL,MAAM;QACN,QAAQ;QACR,YAAY;QACZ,aAAa,EAAE,YAAY;QAC3B,qBAAqB;QACrB,oBAAoB;QACpB,mBAAmB;QACnB,YAAY;QACZ,kBAAkB;QAClB,mBAAmB;QACnB,mBAAmB;QACnB,kBAAkB;QAClB,mBAAmB;QACnB,SAAS;QACT,UAAU;QACV,UAAU;QACV,iBAAiB;QACjB,mBAAmB;QACnB,qBAAqB;QACrB,wBAAwB;QACxB,mBAAmB;QACnB,mBAAmB;QACnB,mBAAmB;QACnB,gBAAgB;QAChB,iBAAiB,EAAE,iBAAiB,IAAI,EAAE;QAC1C,mBAAmB,EAAE,mBAAmB,IAAI,EAAE;KACjD,CAAC;AACN,CAAC,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IAlertComparisonOperator, IAutomationMetadataObjectDefinition, IAutomationRecipient,
|
|
1
|
+
import { IAlertComparisonOperator, IAutomationMetadataObjectDefinition, IAutomationRecipient, IFilter } from "@gooddata/sdk-model";
|
|
2
2
|
import { AlertMetric } from "../../../types.js";
|
|
3
|
+
import { IMeasureFormatMap } from "./getters.js";
|
|
3
4
|
/**
|
|
4
5
|
* @internal
|
|
5
6
|
*/
|
|
6
|
-
export declare function createDefaultAlert(filters: IFilter[], metrics: AlertMetric[], measure: AlertMetric, notificationChannelId: string, currentUser: IAutomationRecipient,
|
|
7
|
+
export declare function createDefaultAlert(filters: IFilter[], metrics: AlertMetric[], measure: AlertMetric, notificationChannelId: string, currentUser: IAutomationRecipient, measureFormatMap: IMeasureFormatMap, comparisonOperator?: IAlertComparisonOperator): IAutomationMetadataObjectDefinition;
|
|
7
8
|
//# sourceMappingURL=convertors.d.ts.map
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertors.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.ts"],"names":[],"mappings":"AACA,OAAO,EACH,wBAAwB,EAGxB,mCAAmC,EACnC,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"convertors.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.ts"],"names":[],"mappings":"AACA,OAAO,EACH,wBAAwB,EAGxB,mCAAmC,EACnC,oBAAoB,EACpB,OAAO,EACV,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAqC,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGpF;;GAEG;AACH,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,OAAO,EAAE,EAClB,OAAO,EAAE,WAAW,EAAE,EACtB,OAAO,EAAE,WAAW,EACpB,qBAAqB,EAAE,MAAM,EAC7B,WAAW,EAAE,oBAAoB,EACjC,gBAAgB,EAAE,iBAAiB,EACnC,kBAAkB,GAAE,wBAAyC,GAC9D,mCAAmC,CAwCrC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js
CHANGED
|
@@ -3,12 +3,12 @@ import { transformAlertExecutionByMetric } from "./transformation.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
|
-
export function createDefaultAlert(filters, metrics, measure, notificationChannelId, currentUser,
|
|
6
|
+
export function createDefaultAlert(filters, metrics, measure, notificationChannelId, currentUser, measureFormatMap, comparisonOperator = "GREATER_THAN") {
|
|
7
7
|
const condition = {
|
|
8
8
|
type: "comparison",
|
|
9
9
|
left: {
|
|
10
10
|
id: measure.measure.measure.localIdentifier,
|
|
11
|
-
format: getMeasureFormat(measure.measure,
|
|
11
|
+
format: getMeasureFormat(measure.measure, measureFormatMap),
|
|
12
12
|
title: getMeasureTitle(measure.measure),
|
|
13
13
|
},
|
|
14
14
|
operator: comparisonOperator,
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertors.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"convertors.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAqB,MAAM,cAAc,CAAC;AACpF,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAC9B,OAAkB,EAClB,OAAsB,EACtB,OAAoB,EACpB,qBAA6B,EAC7B,WAAiC,EACjC,gBAAmC,EACnC,qBAA+C,cAAc;IAE7D,MAAM,SAAS,GAA8B;QACzC,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACF,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe;YAC3C,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,gBAAgB,CAAC;YAC3D,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC;SAC1C;QACD,QAAQ,EAAE,kBAAkB;QAC5B,KAAK,EAAE,SAAU;KACpB,CAAC;IACF,MAAM,SAAS,GAAG;QACd,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;QAC3B,OAAO;KACV,CAAC;IACF,MAAM,OAAO,GAA4B;QACrC,KAAK,EAAE,QAAQ;KAClB,CAAC;IAEF,OAAO;QACH,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC;QACvC,mBAAmB,EAAE,qBAAqB;QAC1C,KAAK,EAAE;YACH,OAAO;YACP,SAAS;YACT,SAAS,EAAE;gBACP,GAAG,SAAS;gBACZ,GAAG,+BAA+B,CAC9B,OAAO,EACP,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAC5C,SAAS,EACT,OAAO,EACP,SAAS,CACZ;aACJ;SACJ;QACD,UAAU,EAAE,CAAC,WAAW,CAAC;KAC5B,CAAC;AACN,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { DateAttributeGranularity, IAlertComparisonOperator, IAlertRelativeArithmeticOperator, IAlertRelativeOperator, IAttribute, IAttributeMetadataObject, IAutomationAlert, IAutomationMetadataObject, ICatalogAttribute, ICatalogDateAttribute, ICatalogDateDataset,
|
|
1
|
+
import { DateAttributeGranularity, IAlertComparisonOperator, IAlertRelativeArithmeticOperator, IAlertRelativeOperator, IAttribute, IAttributeMetadataObject, IAutomationAlert, IAutomationMetadataObject, ICatalogAttribute, ICatalogDateAttribute, ICatalogDateDataset, IFilter, IMeasure, ObjRef } from "@gooddata/sdk-model";
|
|
2
|
+
import { IExecutionResult } from "@gooddata/sdk-backend-spi";
|
|
2
3
|
import { IntlShape } from "react-intl";
|
|
3
4
|
import { AlertAttribute, AlertMetric, AlertMetricComparator } from "../../../types.js";
|
|
5
|
+
export type IMeasureFormatMap = {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
4
8
|
/**
|
|
5
9
|
* @internal
|
|
6
10
|
*/
|
|
7
|
-
export declare function getMeasureFormat(measure: IMeasure | undefined,
|
|
11
|
+
export declare function getMeasureFormat(measure: IMeasure | undefined, measureFormatMap?: IMeasureFormatMap): string;
|
|
8
12
|
/**
|
|
9
13
|
* @internal
|
|
10
14
|
*/
|
|
@@ -92,4 +96,10 @@ export declare function getSelectedCatalogAttributeValue(attribute: IAttributeMe
|
|
|
92
96
|
*/
|
|
93
97
|
export declare function getCatalogAttribute<T extends ICatalogDateAttribute | ICatalogAttribute>(attributes: T[], attribute: IAttribute): T | undefined;
|
|
94
98
|
export declare function getFiltersAttribute(datasetsWithGranularity: [ObjRef, DateAttributeGranularity][], dataset: ICatalogDateDataset): ICatalogDateAttribute[];
|
|
99
|
+
/**
|
|
100
|
+
* Prepare a mapping between measure identifiers and measure formats.
|
|
101
|
+
* Obtain the information from the execution result measure group dimension headers.
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
export declare function getMeasureFormatsFromExecution(execResult: IExecutionResult | undefined): IMeasureFormatMap;
|
|
95
105
|
//# sourceMappingURL=getters.d.ts.map
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,wBAAwB,EACxB,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EACtB,UAAU,EACV,wBAAwB,EACxB,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,wBAAwB,EACxB,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EACtB,UAAU,EACV,wBAAwB,EACxB,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,OAAO,EACP,QAAQ,EASR,MAAM,EAGT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAWvF,MAAM,MAAM,iBAAiB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE1D;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,EAAE,gBAAgB,GAAE,iBAAsB,UAavG;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CACzC,UAAU,EAAE,cAAc,EAAE,EAC5B,KAAK,CAAC,EAAE,yBAAyB,EACjC,IAAI,CAAC,EAAE,UAAU,GAClB;IACC,SAAS,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CASA;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,QAAQ,sBAEhD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,UAAU,sBAEtD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SA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iB,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB,EAAE,EACH,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;WAJ7B,MAAM;WACN,MAAM;UACP,MAAM;cAanB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,qBAAqB,GAAG,iBAAiB,EACnF,UAAU,EAAE,CAAC,EAAE,EACf,SAAS,EAAE,UAAU,iBAUxB;AAED,wBAAgB,mBAAmB,CAC/B,uBAAuB,EAAE,CAAC,MAAM,EAAE,wBAAwB,CAAC,EAAE,EAC7D,OAAO,EAAE,mBAAmB,2BAW/B;AAgFD;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,UAAU,EAAE,gBAAgB,GAAG,SAAS,GAAG,iBAAiB,CAsB1G"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// (C) 2022-
|
|
2
|
-
import { areObjRefsEqual, attributeAlias, isAttributeElementsByValue, isLocalIdRef, isNegativeAttributeFilter, isPositiveAttributeFilter, isRelativeDateFilter, measureAlias, measureIdentifier, measureTitle, } from "@gooddata/sdk-model";
|
|
1
|
+
// (C) 2022-2025 GoodData Corporation
|
|
2
|
+
import { areObjRefsEqual, attributeAlias, isAttributeElementsByValue, isLocalIdRef, isNegativeAttributeFilter, isPositiveAttributeFilter, isRelativeDateFilter, measureAlias, measureIdentifier, measureTitle, isMeasureGroupDescriptor, } from "@gooddata/sdk-model";
|
|
3
3
|
import { messages } from "../messages.js";
|
|
4
4
|
import { ARITHMETIC_OPERATORS, COMPARISON_OPERATORS, DEFAULT_MEASURE_FORMAT, RELATIVE_OPERATORS, } from "../constants.js";
|
|
5
5
|
import { isChangeOperator, isDifferenceOperator } from "./guards.js";
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
|
-
export function getMeasureFormat(measure,
|
|
9
|
+
export function getMeasureFormat(measure, measureFormatMap = {}) {
|
|
10
10
|
if (!measure) {
|
|
11
11
|
return DEFAULT_MEASURE_FORMAT;
|
|
12
12
|
}
|
|
@@ -15,8 +15,8 @@ export function getMeasureFormat(measure, catalogMeasures) {
|
|
|
15
15
|
return measure.measure.format;
|
|
16
16
|
}
|
|
17
17
|
// measure format from the catalog
|
|
18
|
-
const
|
|
19
|
-
return
|
|
18
|
+
const resolvedIdentifier = measureIdentifier(measure);
|
|
19
|
+
return (resolvedIdentifier && measureFormatMap[resolvedIdentifier]) ?? DEFAULT_MEASURE_FORMAT;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* @internal
|
|
@@ -239,7 +239,26 @@ function getAttributeRelatedFilter(attr, alert) {
|
|
|
239
239
|
filterValue: undefined,
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
/**
|
|
243
|
+
* Prepare a mapping between measure identifiers and measure formats.
|
|
244
|
+
* Obtain the information from the execution result measure group dimension headers.
|
|
245
|
+
* @internal
|
|
246
|
+
*/
|
|
247
|
+
export function getMeasureFormatsFromExecution(execResult) {
|
|
248
|
+
const dimensions = execResult?.dimensions ?? [];
|
|
249
|
+
for (const dim of dimensions) {
|
|
250
|
+
const measureGroup = dim.headers.find(isMeasureGroupDescriptor);
|
|
251
|
+
if (measureGroup) {
|
|
252
|
+
return measureGroup.measureGroupHeader.items.reduce((acc, item) => {
|
|
253
|
+
const identifier = item.measureHeaderItem?.identifier;
|
|
254
|
+
const format = item.measureHeaderItem?.format;
|
|
255
|
+
if (identifier) {
|
|
256
|
+
acc[identifier] = format;
|
|
257
|
+
}
|
|
258
|
+
return acc;
|
|
259
|
+
}, {});
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return {};
|
|
244
263
|
}
|
|
245
264
|
//# sourceMappingURL=getters.js.map
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getters.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EACH,eAAe,EACf,cAAc,
|
|
1
|
+
{"version":3,"file":"getters.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EACH,eAAe,EACf,cAAc,EAcd,0BAA0B,EAC1B,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EAEZ,wBAAwB,GAE3B,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EACH,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,GACrB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAIrE;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAA6B,EAAE,mBAAsC,EAAE;IACpG,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,sBAAsB,CAAC;IAClC,CAAC;IAED,kCAAkC;IAClC,IAAI,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;QAC1B,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;IAClC,CAAC;IAED,kCAAkC;IAClC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACtD,OAAO,CAAC,kBAAkB,IAAI,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,IAAI,sBAAsB,CAAC;AAClG,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,6BAA6B,CACzC,UAA4B,EAC5B,KAAiC,EAC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AAsB,EAAE,IAAwB,EAAE,EAAE;gBACjD,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC;gBACtD,MAAM,MAAM,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC;gBAC9C,IAAI,UAAU,EAAE,CAAC;oBACb,GAAG,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC;gBAC7B,CAAC;gBAED,OAAO,GAAG,CAAC;YACf,CAAC,EACD,EAAE,CACL,CAAC;QACN,CAAC;IACL,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { IAlertComparisonOperator, IAlertRelativeArithmeticOperator, IAlertRelativeOperator, IAutomationAlertCondition, IAutomationAlertExecutionDefinition, IAutomationMetadataObject, IAutomationRecipient
|
|
1
|
+
import { IAlertComparisonOperator, IAlertRelativeArithmeticOperator, IAlertRelativeOperator, IAutomationAlertCondition, IAutomationAlertExecutionDefinition, IAutomationMetadataObject, IAutomationRecipient } from "@gooddata/sdk-model";
|
|
2
2
|
import { AlertAttribute, AlertMetric, AlertMetricComparator, AlertMetricComparatorType } from "../../../types.js";
|
|
3
|
+
import { IMeasureFormatMap } from "./getters.js";
|
|
3
4
|
/**
|
|
4
5
|
* This function transforms alert by metric. It changes title, condition and execution based on selected metric.
|
|
5
6
|
* @param metrics - all available metrics
|
|
6
7
|
* @param alert - alert to transform
|
|
7
8
|
* @param measure - selected metric
|
|
8
|
-
* @param
|
|
9
|
+
* @param measureFormatMap - all available measures from catalog
|
|
9
10
|
*/
|
|
10
|
-
export declare function transformAlertByMetric(metrics: AlertMetric[], alert: IAutomationMetadataObject, measure: AlertMetric,
|
|
11
|
+
export declare function transformAlertByMetric(metrics: AlertMetric[], alert: IAutomationMetadataObject, measure: AlertMetric, measureFormatMap?: IMeasureFormatMap): IAutomationMetadataObject;
|
|
11
12
|
/**
|
|
12
13
|
* This function get selected attributed and optionally value amd added this attribute to execution.
|
|
13
14
|
* If value is provided, it creates positive attribute filter with this value, otherwise it creates negative attribute filter
|
|
@@ -37,10 +38,10 @@ export declare function transformAlertByComparisonOperator(metrics: AlertMetric[
|
|
|
37
38
|
* @param measure - selected metric
|
|
38
39
|
* @param relativeOperator - selected relative operator
|
|
39
40
|
* @param arithmeticOperator - selected arithmetic operator
|
|
40
|
-
* @param
|
|
41
|
+
* @param measureFormatMap - all available measures from catalog
|
|
41
42
|
* @param comparatorType - selected comparator type
|
|
42
43
|
*/
|
|
43
|
-
export declare function transformAlertByRelativeOperator(metrics: AlertMetric[], alert: IAutomationMetadataObject, measure: AlertMetric, relativeOperator: IAlertRelativeOperator, arithmeticOperator: IAlertRelativeArithmeticOperator,
|
|
44
|
+
export declare function transformAlertByRelativeOperator(metrics: AlertMetric[], alert: IAutomationMetadataObject, measure: AlertMetric, relativeOperator: IAlertRelativeOperator, arithmeticOperator: IAlertRelativeArithmeticOperator, measureFormatMap?: IMeasureFormatMap, comparatorType?: AlertMetricComparatorType): IAutomationMetadataObject;
|
|
44
45
|
/**
|
|
45
46
|
* This function transforms alert by threshold value. It changes threshold in condition.
|
|
46
47
|
* @param alert - alert to transform
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformation.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.ts"],"names":[],"mappings":"AACA,OAAO,EACH,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EAEtB,yBAAyB,EACzB,mCAAmC,EAEnC,yBAAyB,EACzB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"transformation.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.ts"],"names":[],"mappings":"AACA,OAAO,EACH,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EAEtB,yBAAyB,EACzB,mCAAm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wBAAgB,2BAA2B,CACvC,KAAK,EAAE,yBAAyB,EAChC,mBAAmB,EAAE,MAAM,EAC3B,UAAU,CAAC,EAAE,oBAAoB,EAAE,GACpC,yBAAyB,CAM3B;AAED;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAC3C,OAAO,EAAE,WAAW,EAAE,EACtB,KAAK,EAAE,OAAO,CAAC,yBAAyB,CAAC,EACzC,SAAS,EAAE,yBAAyB,EACpC,OAAO,EAAE,WAAW,EACpB,aAAa,EAAE,qBAAqB,GAAG,SAAS,GACjD;IAAE,SAAS,EAAE,mCAAmC,CAAC;IAAC,QAAQ,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAA;CAAE,CA2ErG"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
// (C) 2022-
|
|
2
|
-
import { isArithmeticMeasure, isRelativeDateFilter, objRefToString, } from "@gooddata/sdk-model";
|
|
1
|
+
// (C) 2022-2025 GoodData Corporation
|
|
2
|
+
import { isArithmeticMeasure, isRelativeDateFilter, objRefToString, isRankingFilter, isMeasureValueFilter, isLocalIdRef, } from "@gooddata/sdk-model";
|
|
3
3
|
import { AlertMetricComparatorType, } from "../../../types.js";
|
|
4
4
|
import { ARITHMETIC_OPERATORS, COMPARISON_OPERATORS, RELATIVE_OPERATORS } from "../constants.js";
|
|
5
|
-
import { getAttributeRelatedFilterInfo, getMeasureFormat, getMeasureTitle } from "./getters.js";
|
|
5
|
+
import { getAttributeRelatedFilterInfo, getMeasureFormat, getMeasureTitle, } from "./getters.js";
|
|
6
6
|
//alerts transformations
|
|
7
7
|
/**
|
|
8
8
|
* This function transforms alert by metric. It changes title, condition and execution based on selected metric.
|
|
9
9
|
* @param metrics - all available metrics
|
|
10
10
|
* @param alert - alert to transform
|
|
11
11
|
* @param measure - selected metric
|
|
12
|
-
* @param
|
|
12
|
+
* @param measureFormatMap - all available measures from catalog
|
|
13
13
|
*/
|
|
14
|
-
export function transformAlertByMetric(metrics, alert, measure,
|
|
14
|
+
export function transformAlertByMetric(metrics, alert, measure, measureFormatMap) {
|
|
15
15
|
const periodMeasure = measure.comparators.find((c) => c.comparator === AlertMetricComparatorType.PreviousPeriod ||
|
|
16
16
|
c.comparator === AlertMetricComparatorType.SamePeriodPreviousYear);
|
|
17
17
|
if (alert.alert?.condition.type === "relative" && periodMeasure) {
|
|
@@ -20,7 +20,7 @@ export function transformAlertByMetric(metrics, alert, measure, catalogMeasures)
|
|
|
20
20
|
...cond,
|
|
21
21
|
measure: {
|
|
22
22
|
...cond.measure,
|
|
23
|
-
...transformRelativeCondition(measure, periodMeasure,
|
|
23
|
+
...transformRelativeCondition(measure, periodMeasure, measureFormatMap),
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
const { execution, metadata } = transformAlertExecutionByMetric(metrics, alert, condition, measure, periodMeasure);
|
|
@@ -40,7 +40,7 @@ export function transformAlertByMetric(metrics, alert, measure, catalogMeasures)
|
|
|
40
40
|
...cond,
|
|
41
41
|
left: {
|
|
42
42
|
id: measure.measure.measure.localIdentifier,
|
|
43
|
-
format: getMeasureFormat(measure.measure,
|
|
43
|
+
format: getMeasureFormat(measure.measure, measureFormatMap),
|
|
44
44
|
title: getMeasureTitle(measure.measure),
|
|
45
45
|
},
|
|
46
46
|
};
|
|
@@ -138,10 +138,10 @@ export function transformAlertByComparisonOperator(metrics, alert, measure, comp
|
|
|
138
138
|
* @param measure - selected metric
|
|
139
139
|
* @param relativeOperator - selected relative operator
|
|
140
140
|
* @param arithmeticOperator - selected arithmetic operator
|
|
141
|
-
* @param
|
|
141
|
+
* @param measureFormatMap - all available measures from catalog
|
|
142
142
|
* @param comparatorType - selected comparator type
|
|
143
143
|
*/
|
|
144
|
-
export function transformAlertByRelativeOperator(metrics, alert, measure, relativeOperator, arithmeticOperator,
|
|
144
|
+
export function transformAlertByRelativeOperator(metrics, alert, measure, relativeOperator, arithmeticOperator, measureFormatMap, comparatorType) {
|
|
145
145
|
const periodMeasure = measure.comparators.filter((c) => comparatorType !== undefined ? c.comparator === comparatorType : true);
|
|
146
146
|
const cond = transformToRelativeCondition(alert.alert.condition);
|
|
147
147
|
const condition = {
|
|
@@ -149,7 +149,7 @@ export function transformAlertByRelativeOperator(metrics, alert, measure, relati
|
|
|
149
149
|
measure: {
|
|
150
150
|
...cond.measure,
|
|
151
151
|
operator: arithmeticOperator,
|
|
152
|
-
...transformRelativeCondition(measure, periodMeasure[0],
|
|
152
|
+
...transformRelativeCondition(measure, periodMeasure[0], measureFormatMap),
|
|
153
153
|
},
|
|
154
154
|
operator: relativeOperator,
|
|
155
155
|
};
|
|
@@ -251,6 +251,7 @@ export function transformAlertExecutionByMetric(metrics, alert, condition, measu
|
|
|
251
251
|
auxMeasures: [
|
|
252
252
|
...collectAllRelatedMeasures(metrics, measure.measure),
|
|
253
253
|
...collectAllRelatedMeasures(metrics, periodMeasure.measure),
|
|
254
|
+
...collectAllRelatedMeasuresFromFilters(metrics, [measure.measure, periodMeasure.measure], originalFilters),
|
|
254
255
|
],
|
|
255
256
|
},
|
|
256
257
|
metadata: {
|
|
@@ -265,7 +266,10 @@ export function transformAlertExecutionByMetric(metrics, alert, condition, measu
|
|
|
265
266
|
...execution,
|
|
266
267
|
filters: [...originalFilters],
|
|
267
268
|
measures: [measure.measure],
|
|
268
|
-
auxMeasures:
|
|
269
|
+
auxMeasures: [
|
|
270
|
+
...collectAllRelatedMeasures(metrics, measure.measure),
|
|
271
|
+
...collectAllRelatedMeasuresFromFilters(metrics, [measure.measure], originalFilters),
|
|
272
|
+
],
|
|
269
273
|
},
|
|
270
274
|
metadata: {
|
|
271
275
|
...alert.metadata,
|
|
@@ -310,7 +314,7 @@ function transformToRelativeCondition(condition) {
|
|
|
310
314
|
threshold: condition.threshold,
|
|
311
315
|
};
|
|
312
316
|
}
|
|
313
|
-
function transformRelativeCondition(measure, periodMeasure,
|
|
317
|
+
function transformRelativeCondition(measure, periodMeasure, measureFormatMap) {
|
|
314
318
|
const isNormalSetup = measure.isPrimary && !periodMeasure?.isPrimary;
|
|
315
319
|
const isReverseSetup = !measure.isPrimary && periodMeasure?.isPrimary;
|
|
316
320
|
//NOTE: This is case primary for headline where normal measure is in secondary bucket
|
|
@@ -319,12 +323,12 @@ function transformRelativeCondition(measure, periodMeasure, catalogMeasures) {
|
|
|
319
323
|
return {
|
|
320
324
|
left: {
|
|
321
325
|
id: periodMeasure.measure.measure.localIdentifier,
|
|
322
|
-
format: getMeasureFormat(periodMeasure.measure,
|
|
326
|
+
format: getMeasureFormat(periodMeasure.measure, measureFormatMap),
|
|
323
327
|
title: getMeasureTitle(periodMeasure.measure),
|
|
324
328
|
},
|
|
325
329
|
right: {
|
|
326
330
|
id: measure.measure.measure.localIdentifier,
|
|
327
|
-
format: getMeasureFormat(measure.measure,
|
|
331
|
+
format: getMeasureFormat(measure.measure, measureFormatMap),
|
|
328
332
|
title: getMeasureTitle(measure.measure),
|
|
329
333
|
},
|
|
330
334
|
};
|
|
@@ -335,12 +339,12 @@ function transformRelativeCondition(measure, periodMeasure, catalogMeasures) {
|
|
|
335
339
|
return {
|
|
336
340
|
left: {
|
|
337
341
|
id: measure.measure.measure.localIdentifier,
|
|
338
|
-
format: getMeasureFormat(measure.measure,
|
|
342
|
+
format: getMeasureFormat(measure.measure, measureFormatMap),
|
|
339
343
|
title: getMeasureTitle(measure.measure),
|
|
340
344
|
},
|
|
341
345
|
right: {
|
|
342
346
|
id: periodMeasure?.measure.measure.localIdentifier,
|
|
343
|
-
format: getMeasureFormat(periodMeasure?.measure,
|
|
347
|
+
format: getMeasureFormat(periodMeasure?.measure, measureFormatMap),
|
|
344
348
|
title: periodMeasure?.measure ? getMeasureTitle(periodMeasure?.measure) : undefined,
|
|
345
349
|
},
|
|
346
350
|
};
|
|
@@ -350,12 +354,12 @@ function transformRelativeCondition(measure, periodMeasure, catalogMeasures) {
|
|
|
350
354
|
return {
|
|
351
355
|
left: {
|
|
352
356
|
id: measure.measure.measure.localIdentifier,
|
|
353
|
-
format: getMeasureFormat(measure.measure,
|
|
357
|
+
format: getMeasureFormat(measure.measure, measureFormatMap),
|
|
354
358
|
title: getMeasureTitle(measure.measure),
|
|
355
359
|
},
|
|
356
360
|
right: {
|
|
357
361
|
id: periodMeasure?.measure.measure.localIdentifier,
|
|
358
|
-
format: getMeasureFormat(periodMeasure?.measure,
|
|
362
|
+
format: getMeasureFormat(periodMeasure?.measure, measureFormatMap),
|
|
359
363
|
title: periodMeasure?.measure ? getMeasureTitle(periodMeasure?.measure) : undefined,
|
|
360
364
|
},
|
|
361
365
|
};
|
|
@@ -371,4 +375,25 @@ function collectAllRelatedMeasures(metrics, measure) {
|
|
|
371
375
|
}
|
|
372
376
|
return [];
|
|
373
377
|
}
|
|
378
|
+
function collectAllRelatedMeasuresFromFilters(metrics, alreadyUsed, filters) {
|
|
379
|
+
return filters.reduce((acc, filter) => {
|
|
380
|
+
if (isRankingFilter(filter)) {
|
|
381
|
+
const measure = filter.rankingFilter.measure;
|
|
382
|
+
collectMeasure(metrics, alreadyUsed, measure, acc);
|
|
383
|
+
}
|
|
384
|
+
if (isMeasureValueFilter(filter)) {
|
|
385
|
+
const measure = filter.measureValueFilter.measure;
|
|
386
|
+
collectMeasure(metrics, alreadyUsed, measure, acc);
|
|
387
|
+
}
|
|
388
|
+
return acc;
|
|
389
|
+
}, []);
|
|
390
|
+
}
|
|
391
|
+
function collectMeasure(metrics, alreadyUsed, measure, acc) {
|
|
392
|
+
if (isLocalIdRef(measure)) {
|
|
393
|
+
const related = metrics.find((m) => m.measure.measure.localIdentifier === measure.localIdentifier);
|
|
394
|
+
if (related && !alreadyUsed.includes(related.measure)) {
|
|
395
|
+
acc.push(related.measure);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
374
399
|
//# sourceMappingURL=transformation.js.map
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformation.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAaH,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,GACjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAIH,yBAAyB,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEjG,OAAO,EAAE,6BAA6B,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEhG,wBAAwB;AAExB;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAClC,OAAsB,EACtB,KAAgC,EAChC,OAAoB,EACpB,eAAmC;IAEnC,MAAM,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAC1C,CAAC,CAAC,EAAE,EAAE,CACF,CAAC,CAAC,UAAU,KAAK,yBAAyB,CAAC,cAAc;QACzD,CAAC,CAAC,UAAU,KAAK,yBAAyB,CAAC,sBAAsB,CACxE,CAAC;IAEF,IAAI,KAAK,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,KAAK,UAAU,IAAI,aAAa,EAAE,CAAC;QAC9D,MAAM,IAAI,GAAG,4BAA4B,CAAC,KAAK,CAAC,KAAM,CAAC,SAAS,CAAC,CAAC;QAClE,MAAM,SAAS,GAAG;YACd,GAAG,IAAI;YACP,OAAO,EAAE;gBACL,GAAG,IAAI,CAAC,OAAO;gBACf,GAAG,0BAA0B,CAAC,OAAO,EAAE,aAAa,EAAE,eAAe,CAAC;aACzE;SACiC,CAAC;QAEvC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,+BAA+B,CAC3D,OAAO,EACP,KAAK,EACL,SAAS,EACT,OAAO,EACP,aAAa,CAChB,CAAC;QAEF,OAAO;YACH,GAAG,KAAK;YAC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Root":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAcH,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,YAAY,GACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAIH,yBAAyB,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEjG,OAAO,EACH,6BAA6B,EAC7B,gBAAgB,EAChB,eAAe,GAElB,MAAM,cAAc,CAAC;AAEtB,wBAAwB;AAExB;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAClC,OAAsB,EACtB,KAAgC,EAChC,OAAoB,EACpB,gBAAoC;IAEpC,MAAM,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAC1C,CAAC,CAAC,EAAE,EAAE,CACF,CAAC,CAAC,UAAU,KAAK,yBAAyB,CAAC,cAAc;QACzD,CAAC,CAAC,UAAU,KAAK,yBAAyB,CAAC,sBAAsB,CACxE,CAAC;IAEF,IAAI,KAAK,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,KAAK,UAAU,IAAI,aAAa,EAAE,CAAC;QAC9D,MAAM,IAAI,GAAG,4BAA4B,CAAC,KAAK,CAAC,KAAM,CAAC,SAAS,CAAC,CAAC;QAClE,MAAM,SAAS,GAAG;YACd,GAAG,IAAI;YACP,OAAO,EAAE;gBACL,GAAG,IAAI,CAAC,OAAO;gBACf,GAAG,0BAA0B,CAAC,OAAO,EAAE,aAAa,EAAE,gBAAgB,CAAC;aAC1E;SACiC,CAAC;QAEvC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,+BAA+B,CAC3D,OAAO,EACP,KAAK,EACL,SAAS,EACT,OAAO,EACP,aAAa,CAChB,CAAC;QAEF,OAAO;YACH,GAAG,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B,CAAC;IACL,CAAC;AACL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// (C) 2022-
|
|
1
|
+
// (C) 2022-2025 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { isInsightWidget, objRefToString } from "@gooddata/sdk-model";
|
|
4
4
|
import { ScrollablePanel, OverlayControllerProvider, OverlayController } from "@gooddata/sdk-ui-kit";
|
|
@@ -16,7 +16,7 @@ export const InsightAlerts = ({ widget, onClose, onGoBack }) => {
|
|
|
16
16
|
? stringUtils.simplifyText(objRefToString(widget.ref))
|
|
17
17
|
: "";
|
|
18
18
|
const classes = cx("gd-alerts-configuration-panel", "configuration-scrollable-panel", "s-configuration-scrollable-panel", `s-visualization-${widgetRefSuffix}`);
|
|
19
|
-
const { isLoading, alerts, hasAlerts, destinations, users, viewMode, execResult, separators, supportedMeasures, supportedAttributes, maxAutomationsReached, maxAutomationsRecipients, canManageAttributes, canManageComparison, canCreateAutomation,
|
|
19
|
+
const { isLoading, alerts, hasAlerts, destinations, users, viewMode, execResult, separators, supportedMeasures, supportedAttributes, maxAutomationsReached, maxAutomationsRecipients, canManageAttributes, canManageComparison, canCreateAutomation, catalogAttributes, catalogDateDatasets, measureFormatMap,
|
|
20
20
|
//
|
|
21
21
|
creatingAlert, initiateAlertCreation, cancelAlertCreation,
|
|
22
22
|
//
|
|
@@ -28,10 +28,10 @@ export const InsightAlerts = ({ widget, onClose, onGoBack }) => {
|
|
|
28
28
|
content = (React.createElement(AlertsList, { isLoading: isLoading, alerts: alerts, separators: separators, onCreateAlert: initiateAlertCreation, onEditAlert: initiateAlertEditing, onPauseAlert: pauseExistingAlert, onResumeAlert: resumeExistingAlert, onDeleteAlert: deleteExistingAlert, onClose: onClose, onGoBack: onGoBack, maxAutomationsReached: maxAutomationsReached, canCreateAutomation: canCreateAutomation }));
|
|
29
29
|
}
|
|
30
30
|
else if (viewMode === "edit" && editingAlert) {
|
|
31
|
-
content = (React.createElement(EditAlert, { canManageAttributes: canManageAttributes, canManageComparison: canManageComparison, execResult: execResult, alert: editingAlert, hasAlerts: hasAlerts, destinations: destinations, users: users ?? [], measures: supportedMeasures, attributes: supportedAttributes, onUpdate: updateExistingAlert, onCancel: cancelAlertEditing, onClose: onClose,
|
|
31
|
+
content = (React.createElement(EditAlert, { canManageAttributes: canManageAttributes, canManageComparison: canManageComparison, execResult: execResult, alert: editingAlert, hasAlerts: hasAlerts, destinations: destinations, users: users ?? [], measures: supportedMeasures, attributes: supportedAttributes, onUpdate: updateExistingAlert, onCancel: cancelAlertEditing, onClose: onClose, measureFormatMap: measureFormatMap, catalogAttributes: catalogAttributes, catalogDateDatasets: catalogDateDatasets, maxAutomationsRecipients: maxAutomationsRecipients }));
|
|
32
32
|
}
|
|
33
33
|
else if (viewMode === "create" && creatingAlert) {
|
|
34
|
-
content = (React.createElement(CreateAlert, { canManageAttributes: canManageAttributes, canManageComparison: canManageComparison, execResult: execResult, alert: creatingAlert, measures: supportedMeasures, attributes: supportedAttributes, hasAlerts: hasAlerts, destinations: destinations, users: users ?? [], onCreate: saveNewAlert, onCancel: cancelAlertCreation, onClose: onClose, maxAutomationsReached: maxAutomationsReached, maxAutomationsRecipients: maxAutomationsRecipients,
|
|
34
|
+
content = (React.createElement(CreateAlert, { canManageAttributes: canManageAttributes, canManageComparison: canManageComparison, execResult: execResult, alert: creatingAlert, measures: supportedMeasures, attributes: supportedAttributes, hasAlerts: hasAlerts, destinations: destinations, users: users ?? [], onCreate: saveNewAlert, onCancel: cancelAlertCreation, onClose: onClose, maxAutomationsReached: maxAutomationsReached, maxAutomationsRecipients: maxAutomationsRecipients, measureFormatMap: measureFormatMap, catalogAttributes: catalogAttributes, catalogDateDatasets: catalogDateDatasets }));
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
37
|
content = React.createElement(NoAvailableMeasures, { onClose: onClose, onBack: onGoBack });
|