@gooddata/sdk-ui-dashboard 11.68.0-alpha.0 → 11.68.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/NOTICE +11781 -60390
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/automation/index.d.ts.map +1 -1
- package/esm/_staging/automation/index.js +6 -5
- package/esm/_staging/catalog/computedAttributes.d.ts.map +1 -1
- package/esm/_staging/catalog/computedAttributes.js +2 -2
- package/esm/_staging/dashboard/dashboardLayout.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardLayout.js +3 -2
- package/esm/_staging/dashboard/flexibleLayout/facade/item.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/facade/item.js +2 -2
- package/esm/_staging/dashboard/flexibleLayout/facade/section.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/facade/section.js +4 -4
- package/esm/_staging/dateFilterConfig/merge.d.ts.map +1 -1
- package/esm/_staging/dateFilterConfig/merge.js +2 -2
- package/esm/_staging/dateFilterConfig/validation.d.ts.map +1 -1
- package/esm/_staging/dateFilterConfig/validation.js +3 -3
- package/esm/_staging/drills/drillingUtils.d.ts.map +1 -1
- package/esm/_staging/drills/drillingUtils.js +2 -2
- package/esm/_staging/objectUtils/setOrDelete.d.ts.map +1 -1
- package/esm/_staging/objectUtils/setOrDelete.js +3 -3
- package/esm/_staging/sharedHooks/useEventToastMessage.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useEventToastMessage.js +3 -3
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.d.ts.map +1 -1
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.js +2 -2
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/kdaDialog/components/KdaKeyDriverChart.d.ts.map +1 -1
- package/esm/kdaDialog/components/KdaKeyDriverChart.js +1 -2
- package/esm/kdaDialog/components/bars/AttributeBar.d.ts.map +1 -1
- package/esm/kdaDialog/components/bars/AttributeBar.js +11 -6
- package/esm/kdaDialog/composition/AddFilterButton.d.ts +3 -1
- package/esm/kdaDialog/composition/AddFilterButton.d.ts.map +1 -1
- package/esm/kdaDialog/composition/AddFilterButton.js +4 -4
- package/esm/kdaDialog/composition/FiltersBar.d.ts.map +1 -1
- package/esm/kdaDialog/composition/FiltersBar.js +23 -1
- package/esm/kdaDialog/composition/KeyDriversFooter.d.ts.map +1 -1
- package/esm/kdaDialog/composition/KeyDriversFooter.js +8 -5
- package/esm/kdaDialog/composition/hooks/usePeriodChangeHandler.js +11 -9
- package/esm/kdaDialog/types.d.ts +5 -0
- package/esm/kdaDialog/types.d.ts.map +1 -1
- package/esm/kdaDialog/utils.d.ts.map +1 -1
- package/esm/kdaDialog/utils.js +4 -1
- package/esm/model/DashboardTester.d.ts.map +1 -1
- package/esm/model/DashboardTester.js +2 -0
- package/esm/model/commandHandlers/common/drillRevalidationUtils.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/drillRevalidationUtils.js +3 -3
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +23 -6
- package/esm/model/commandHandlers/common/validateDrills.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrills.js +2 -2
- package/esm/model/commandHandlers/dashboard/changeSharingHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeSharingHandler.js +2 -2
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +7 -7
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +5 -4
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +2 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadInaccessibleDashboards.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadInaccessibleDashboards.js +3 -3
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.js +2 -2
- package/esm/model/commandHandlers/dashboard/saveDashboardHandler.js +1 -1
- package/esm/model/commandHandlers/drill/assertSafeDrillUrl.d.ts +4 -0
- package/esm/model/commandHandlers/drill/assertSafeDrillUrl.d.ts.map +1 -0
- package/esm/model/commandHandlers/drill/assertSafeDrillUrl.js +8 -0
- package/esm/model/commandHandlers/drill/common/filterValuesResolver.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/common/filterValuesResolver.js +2 -2
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js +2 -2
- package/esm/model/commandHandlers/drill/drillToAttributeUrlHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToAttributeUrlHandler.js +2 -0
- package/esm/model/commandHandlers/drill/drillToCustomUrlHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToCustomUrlHandler.js +2 -0
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +4 -4
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.js +33 -4
- package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.js +3 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/replaceAttributeFilterItemSelectionHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/setAttributeFilterParentHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/setAttributeFilterParentHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/computedAttributesEnabledValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/computedAttributesEnabledValidation.js +2 -2
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +8 -8
- package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.js +4 -4
- package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.js +3 -2
- package/esm/model/commandHandlers/layout/addLayoutSectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/addLayoutSectionHandler.js +2 -2
- package/esm/model/commandHandlers/layout/addSectionItemsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/addSectionItemsHandler.js +3 -3
- package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.js +2 -2
- package/esm/model/commandHandlers/layout/replaceSectionItemHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/replaceSectionItemHandler.js +3 -3
- package/esm/model/commandHandlers/layout/validation/itemValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/validation/itemValidation.js +2 -2
- package/esm/model/commandHandlers/layout/validation/layoutValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/validation/layoutValidation.js +6 -6
- package/esm/model/commandHandlers/parameters/changeParameterValuesHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/changeParameterValuesHandler.js +2 -2
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts +3 -0
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts.map +1 -0
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.js +15 -0
- package/esm/model/commandHandlers/parameters/dashboardParameterRoots.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/dashboardParameterRoots.js +3 -3
- package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.js +2 -2
- package/esm/model/commandHandlers/render/renderingWorker.d.ts.map +1 -1
- package/esm/model/commandHandlers/render/renderingWorker.js +2 -2
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +9 -9
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/changeKpiWidgetMeasureHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/changeKpiWidgetMeasureHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/validation/filterValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.js +6 -6
- package/esm/model/commandHandlers/widgets/validation/insightDrillDefinitionUtils.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/insightDrillDefinitionUtils.js +5 -6
- package/esm/model/commands/filters.d.ts +16 -0
- package/esm/model/commands/filters.d.ts.map +1 -1
- package/esm/model/commands/filters.js +21 -0
- package/esm/model/events/base.js +3 -3
- package/esm/model/events/dashboard.d.ts +11 -4
- package/esm/model/events/dashboard.d.ts.map +1 -1
- package/esm/model/events/util.d.ts.map +1 -1
- package/esm/model/events/util.js +3 -3
- package/esm/model/queryServices/queryConnectingAttributes.js +2 -2
- package/esm/model/queryServices/queryInsightAttributesMeta.js +3 -3
- package/esm/model/queryServices/queryInsightDateDatasets.js +4 -4
- package/esm/model/react/useInitializeDashboardStore.d.ts.map +1 -1
- package/esm/model/react/useInitializeDashboardStore.js +7 -0
- package/esm/model/react/useWidgetFilters.d.ts.map +1 -1
- package/esm/model/react/useWidgetFilters.js +2 -2
- package/esm/model/store/_infra/queryProcessing.d.ts.map +1 -1
- package/esm/model/store/_infra/queryProcessing.js +3 -2
- package/esm/model/store/_infra/queryService.d.ts.map +1 -1
- package/esm/model/store/_infra/queryService.js +4 -3
- package/esm/model/store/_infra/selectors.d.ts.map +1 -1
- package/esm/model/store/_infra/selectors.js +3 -3
- package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.js +7 -6
- package/esm/model/store/config/configSelectors.d.ts +0 -6
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +0 -8
- package/esm/model/store/dashboardStore.d.ts +4 -0
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +9 -3
- package/esm/model/store/drillTargets/drillTargetsSelectors.d.ts.map +1 -1
- package/esm/model/store/drillTargets/drillTargetsSelectors.js +2 -2
- package/esm/model/store/meta/metaSelectors.d.ts +16 -1
- package/esm/model/store/meta/metaSelectors.d.ts.map +1 -1
- package/esm/model/store/meta/metaSelectors.js +63 -12
- package/esm/model/store/tabs/dateFilterConfig/dateFilterConfigReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/dateFilterConfig/dateFilterConfigReducers.js +3 -3
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +5 -5
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js +11 -10
- package/esm/model/store/tabs/filterContext/filterContextUtils.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextUtils.js +2 -2
- package/esm/model/store/tabs/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/layout/layoutSelectors.js +3 -3
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +7 -0
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +31 -9
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +21 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +29 -4
- package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +11 -12
- package/esm/model/types/dateFilterTypes.d.ts.map +1 -1
- package/esm/model/types/dateFilterTypes.js +3 -3
- package/esm/model/types/layoutTypes.d.ts.map +1 -1
- package/esm/model/types/layoutTypes.js +8 -8
- package/esm/model/types/widgetTypes.d.ts.map +1 -1
- package/esm/model/types/widgetTypes.js +2 -2
- package/esm/model/utils/alertsUtils.d.ts.map +1 -1
- package/esm/model/utils/alertsUtils.js +2 -2
- package/esm/model/utils/filterResolver.d.ts.map +1 -1
- package/esm/model/utils/filterResolver.js +2 -2
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.js +5 -5
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.js +1 -1
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.js +9 -5
- package/esm/presentation/automations/alerting/state/useAlertFormValidation.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertFormValidation.js +2 -2
- package/esm/presentation/automations/alerting/utils/items.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/utils/items.js +20 -23
- package/esm/presentation/automations/alerting/utils/transformation.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/utils/transformation.js +2 -2
- package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.js +2 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js +2 -2
- package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.js +2 -2
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js +14 -14
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts +1 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.js +10 -4
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.js +2 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.js +3 -3
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.js +4 -3
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.js +2 -2
- package/esm/presentation/automations/shared/automationFilters/utils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/utils.js +6 -6
- package/esm/presentation/automations/shared/filters/conversions.d.ts.map +1 -1
- package/esm/presentation/automations/shared/filters/conversions.js +2 -2
- package/esm/presentation/automations/shared/utils/automationUtils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/utils/automationUtils.js +6 -5
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +3 -2
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js +2 -7
- package/esm/presentation/dashboard/components/useDrillValidationMessages.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/useDrillValidationMessages.js +5 -5
- package/esm/presentation/dashboard/defaultDashboardThemeModifier.d.ts.map +1 -1
- package/esm/presentation/dashboard/defaultDashboardThemeModifier.js +4 -4
- package/esm/presentation/dashboard/types.d.ts +2 -0
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/useDialogData.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/useDialogData.js +2 -2
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.js +2 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +34 -9
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts +3 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.js +3 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts +7 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts.map +1 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.js +20 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.d.ts +2 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.js +7 -4
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +4 -4
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.d.ts.map +1 -1
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.js +2 -2
- package/esm/presentation/drill/types.d.ts.map +1 -1
- package/esm/presentation/drill/types.js +10 -9
- package/esm/presentation/drill/utils/drillDownUtils.d.ts.map +1 -1
- package/esm/presentation/drill/utils/drillDownUtils.js +4 -3
- package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributeListItem.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributeListItem.js +2 -3
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.js +3 -3
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useParentsConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useParentsConfiguration.js +2 -2
- package/esm/presentation/filterBar/filterBar/DefaultDashboardFilterGroup.js +2 -2
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +4 -3
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js +3 -2
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.js +2 -2
- package/esm/presentation/insightEditor/filterContext/attributeFilters.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/attributeFilters.js +2 -2
- package/esm/presentation/insightEditor/filterContext/filterIntersection.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/filterIntersection.js +3 -3
- package/esm/presentation/insightEditor/filterContext/insightFilterContext.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/insightFilterContext.js +2 -2
- package/esm/presentation/insightList/InsightList.d.ts.map +1 -1
- package/esm/presentation/insightList/InsightList.js +2 -9
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +24 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +24 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +14 -5
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +23 -14
- package/esm/presentation/localization/translations.d.ts.map +1 -1
- package/esm/presentation/localization/translations.js +2 -3
- package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.js +2 -2
- package/esm/presentation/widget/common/configuration/DateDatasetDropdown.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/DateDatasetDropdown.js +2 -2
- package/esm/presentation/widget/common/configuration/utils.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/utils.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/useDashboardInsightDrills.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/useDashboardInsightDrills.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getTitleWithBreadcrumbs.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getTitleWithBreadcrumbs.js +3 -3
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogInsightDrills.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogInsightDrills.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogSyncInsightProperties.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogSyncInsightProperties.js +3 -2
- package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillFiltersConfig.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillFiltersConfig.js +5 -5
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetAttributeHierarchyItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetAttributeHierarchyItem.js +2 -2
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js +7 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js +2 -3
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useDrillConfigIncompleteItems.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useDrillConfigIncompleteItems.js +3 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.js +2 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +4 -4
- package/esm/presentation/widget/richText/RestrictedReferencesDialog.js +1 -1
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.js +2 -2
- package/esm/presentation/widget/widget/warningPartialResult/InsightWidgetWarningPartialResult.d.ts.map +1 -1
- package/esm/presentation/widget/widget/warningPartialResult/InsightWidgetWarningPartialResult.js +1 -2
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.js +2 -2
- package/esm/sdk-ui-dashboard.d.ts +41 -4
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js +5 -5
- package/esm/widgets/placeholders/types.js +4 -4
- package/package.json +25 -23
- package/styles/css/configurationPanel.css +2 -14
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/dashboard.css +8 -3
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/drillConfigPanel.css +5 -0
- package/styles/css/drillConfigPanel.css.map +1 -1
- package/styles/css/filterBar.css +0 -20
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +17 -38
- package/styles/css/main.css.map +1 -1
- package/styles/css/scheduled_mail_recipients.css +8 -3
- package/styles/css/scheduled_mail_recipients.css.map +1 -1
- package/styles/scss/configurationPanel.scss +2 -20
- package/styles/scss/drillConfigPanel.scss +6 -0
- package/styles/scss/filterBar.scss +0 -25
- package/styles/scss/scheduled_mail_recipients.scss +15 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
|
-
import { isEqual, uniq } from "lodash-es";
|
|
4
3
|
import { areObjRefsEqual, insightRef, isInsightWidget, isWidget, objRefToString, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEqual, _uniq } from "@gooddata/util";
|
|
5
5
|
import { createMemoizedSelector } from "../../_infra/selectors.js";
|
|
6
6
|
import { selectCatalogParameterByRef, selectCatalogParameterDependencies, selectCatalogParameters, selectCatalogParametersIsLoaded, } from "../../catalog/catalogSelectors.js";
|
|
7
7
|
import { selectEnableParameters, selectEnableStringParameters } from "../../config/configSelectors.js";
|
|
@@ -10,11 +10,12 @@ import { selectIsInEditMode } from "../../renderMode/renderModeSelectors.js";
|
|
|
10
10
|
import { selectAllTabsInsightWidgetContexts, selectAllTabsWidgetContexts, } from "../layout/layoutSelectors.js";
|
|
11
11
|
import { selectActiveOrDefaultTabLocalIdentifier, selectActiveTab, selectTabs } from "../tabsSelectors.js";
|
|
12
12
|
import { DEFAULT_TAB_ID } from "../tabsState.js";
|
|
13
|
-
import { EMPTY_EXPORT_PARAMETERS_BY_TAB, applyDisplayOverride, applyRuntimeOverride, buildPersistedByTabAndRef, buildWorkspaceParametersByRef, classifyParameterReconciliation, collectAppliedParameterValues, collectExportOverrides, collectParameterReconciliations, collectRootParameterRefs, collectWidgetFilterParameterRoots, computeParameterResetTargets, computeParameterResetValue, displayOverride, hydrateParameterEntry, isGatedStringEntry, resolveEffectiveParameterValuesForRefs, smartPersistResolvedEntry, ungatedInsightParameterValues, ungatedTabEntries, } from "./parametersHelpers.js";
|
|
13
|
+
import { EMPTY_EXPORT_PARAMETERS_BY_TAB, applyDisplayOverride, applyRuntimeOverride, buildPersistedByTabAndRef, buildWorkspaceParametersByRef, classifyParameterReconciliation, collectAppliedParameterValues, collectExportOverrides, collectParameterReconciliations, collectRootParameterRefs, collectWidgetFilterParameterRoots, computeParameterResetTargets, computeParameterResetValue, displayOverride, hydrateParameterEntry, isGatedStringEntry, resolveEffectiveParameterValuesForRefs, resolveParameterTitle, resolveParameterValues, smartPersistResolvedEntry, ungatedInsightParameterValues, ungatedTabEntries, } from "./parametersHelpers.js";
|
|
14
14
|
import { parametersInitialState, pickTabParametersSource, } from "./parametersState.js";
|
|
15
15
|
const EMPTY_PARAMETERS = [];
|
|
16
16
|
const EMPTY_EXPORT_PARAMETERS = [];
|
|
17
17
|
const EMPTY_PARAMETER_VALUES = [];
|
|
18
|
+
const EMPTY_WIDGET_PARAMETER_VALUES = [];
|
|
18
19
|
const EMPTY_TABS = [];
|
|
19
20
|
const EMPTY_RESET_TARGETS = [];
|
|
20
21
|
const EMPTY_RECONCILIATIONS = [];
|
|
@@ -220,7 +221,7 @@ export const selectIsParametersChanged = createSelector(selectSmartPersistedTabs
|
|
|
220
221
|
for (const tabId of allTabIds) {
|
|
221
222
|
const smart = smartPersistedByTab[tabId] ?? EMPTY_PARAMETERS;
|
|
222
223
|
const persisted = persistedByTab[tabId] ?? EMPTY_PARAMETERS;
|
|
223
|
-
if (!
|
|
224
|
+
if (!_isEqual(smart, persisted)) {
|
|
224
225
|
return true;
|
|
225
226
|
}
|
|
226
227
|
}
|
|
@@ -366,6 +367,30 @@ export const selectReferencedInsightParameterValuesForWidget = createMemoizedSel
|
|
|
366
367
|
const { insightParameterValues, referencedRefs, workspaceParameterByRef } = resolved;
|
|
367
368
|
return resolveEffectiveParameterValuesForRefs([], referencedRefs, insightParameterValues, workspaceParameterByRef);
|
|
368
369
|
}));
|
|
370
|
+
/**
|
|
371
|
+
* Every ungated parameter of the widget's tab, all modes, with its drill to URL value: the dashboard
|
|
372
|
+
* `runtimeOverride`, else the insight value, else the workspace default. Returns `[]` when
|
|
373
|
+
* `enableParameters` is off.
|
|
374
|
+
*
|
|
375
|
+
* @internal
|
|
376
|
+
*/
|
|
377
|
+
export const selectWidgetParameterValues = createMemoizedSelector((ref) => createSelector(selectWidgetParameterContext(ref), selectInsightsMap, (context, insights) => {
|
|
378
|
+
if (!context) {
|
|
379
|
+
return EMPTY_WIDGET_PARAMETER_VALUES;
|
|
380
|
+
}
|
|
381
|
+
const { entries, workspaceParameterByRef, widgetInsightRef } = context;
|
|
382
|
+
const insight = widgetInsightRef ? insights.get(widgetInsightRef) : undefined;
|
|
383
|
+
const values = resolveParameterValues(context, entries.map((entry) => entry.parameter.ref), insight);
|
|
384
|
+
return entries.map(({ parameter }) => {
|
|
385
|
+
const { identifier } = parameter.ref;
|
|
386
|
+
return {
|
|
387
|
+
identifier,
|
|
388
|
+
parameterType: parameter.parameterType,
|
|
389
|
+
title: resolveParameterTitle(parameter, workspaceParameterByRef.get(identifier)),
|
|
390
|
+
value: values.get(identifier),
|
|
391
|
+
};
|
|
392
|
+
});
|
|
393
|
+
}));
|
|
369
394
|
/**
|
|
370
395
|
* Returns the effective dashboard parameters (persisted shape with any `runtimeOverride` folded
|
|
371
396
|
* into `value`) held by the widget's owning tab.
|
|
@@ -407,7 +432,7 @@ export const selectExportEffectiveParameters = createMemoizedSelector((widgetIds
|
|
|
407
432
|
return EMPTY_EXPORT_PARAMETERS_BY_TAB;
|
|
408
433
|
}
|
|
409
434
|
const scopedTabs = widgetIds?.length
|
|
410
|
-
?
|
|
435
|
+
? _uniq(widgetContexts
|
|
411
436
|
.filter((ctx) => widgetIds.includes(ctx.widget.identifier))
|
|
412
437
|
.map((ctx) => ctx.tab))
|
|
413
438
|
: (tabs ?? []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgetDrillSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/widgetDrills/widgetDrillSelectors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"widgetDrillSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/widgetDrills/widgetDrillSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,KAAK,oBAAoB,EAEzB,KAAK,iBAAiB,EAEtB,KAAK,qBAAqB,EAE1B,KAAK,mBAAmB,EAExB,KAAK,QAAQ,EACb,KAAK,MAAM,EAcd,MAAM,qBAAqB,CAAC;A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,CAAC,gBAAgB,EAAE,CA6BxC,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAIxG"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
|
-
import { compact } from "lodash-es";
|
|
4
3
|
import { UnexpectedError } from "@gooddata/sdk-backend-spi";
|
|
5
4
|
import { areObjRefsEqual, getHierarchyAttributes, getHierarchyRef, isAttributeHierarchyReference, isCatalogAttribute, isDrillFromAttribute, isDrillFromMeasure, isIdentifierRef, isLocalIdRef, isUriRef, localIdRef, objRefToString, } from "@gooddata/sdk-model";
|
|
6
5
|
import { HeaderPredicates, } from "@gooddata/sdk-ui";
|
|
7
6
|
import { isInsightKeyDriverAnalysisEnabled } from "@gooddata/sdk-ui-ext";
|
|
7
|
+
import { _compact } from "@gooddata/util";
|
|
8
8
|
import { existBlacklistHierarchyPredicate } from "../../utils/attributeHierarchyUtils.js";
|
|
9
9
|
import { createMemoizedSelector } from "../_infra/selectors.js";
|
|
10
10
|
import { selectAccessibleDashboardsLoaded, selectAccessibleDashboardsMap, } from "../accessibleDashboards/accessibleDashboardsSelectors.js";
|
|
11
11
|
import { selectBackendCapabilities, selectSupportsAttributeHierarchies, selectSupportsCrossFiltering, } from "../backendCapabilities/backendCapabilitiesSelectors.js";
|
|
12
12
|
import { selectAllCatalogAttributesMap, selectAllCatalogDisplayFormsMap, selectAttributesWithDisplayFormLink, selectAttributesWithHierarchyDescendants, selectCatalogDateAttributes, selectCatalogIsLoaded, selectDrillableAttributeHierarchies, } from "../catalog/catalogSelectors.js";
|
|
13
|
-
import { selectDisableDefaultDrills, selectEnableDashboardPartialRendering, selectEnableDrillToUrlByDefault,
|
|
13
|
+
import { selectDisableDefaultDrills, selectEnableDashboardPartialRendering, selectEnableDrillToUrlByDefault, selectEnableSecondGranularities, selectIsDisabledCrossFiltering, selectIsDisabledKda, selectIsEmbedded, } from "../config/configSelectors.js";
|
|
14
14
|
import { selectDrillableItems } from "../drill/drillSelectors.js";
|
|
15
15
|
import { selectDrillTargetsByWidgetRef } from "../drillTargets/drillTargetsSelectors.js";
|
|
16
16
|
import { selectInsightByWidgetRef, selectInsightsMap } from "../insights/insightsSelectors.js";
|
|
@@ -31,7 +31,7 @@ function drillDefinitionToPredicates(drill) {
|
|
|
31
31
|
throw new UnexpectedError("Unknown drill origin!");
|
|
32
32
|
}
|
|
33
33
|
// add drillable items for all three types of objRefs that the origin measure can be
|
|
34
|
-
return
|
|
34
|
+
return _compact([
|
|
35
35
|
isLocalIdRef(origin) && HeaderPredicates.localIdentifierMatch(origin.localIdentifier),
|
|
36
36
|
isIdentifierRef(origin) && HeaderPredicates.identifierMatch(origin.identifier),
|
|
37
37
|
isUriRef(origin) && HeaderPredicates.uriMatch(origin.uri),
|
|
@@ -103,7 +103,7 @@ function findDescendantForAttribute(hierarchy, attributeRef, ignoredDrillDownHie
|
|
|
103
103
|
}
|
|
104
104
|
function getDescendantsForDrillAttribute(drill, allCatalogAttributeHierarchies, ignoredDrillDownHierarchies, allCatalogAttributesMap, supportsAttributeHierarchies) {
|
|
105
105
|
const attributeRef = drill.attribute.attributeHeader.formOf.ref;
|
|
106
|
-
return
|
|
106
|
+
return _compact(allCatalogAttributeHierarchies.map((hierarchy) => findDescendantForAttribute(hierarchy, attributeRef, ignoredDrillDownHierarchies, allCatalogAttributesMap, supportsAttributeHierarchies)));
|
|
107
107
|
}
|
|
108
108
|
function getDrillDownDefinitionsWithPredicates(availableDrillAttributes, attributesWithHierarchyDescendants, allCatalogAttributesMap, allCatalogAttributeHierarchies, ignoredDrillDownHierarchies, supportsAttributeHierarchies) {
|
|
109
109
|
// generate targets on the fly if ignored hierarchies are present
|
|
@@ -265,7 +265,7 @@ const selectCrossFilteringByWidgetRef = createMemoizedSelector((ref) => createSe
|
|
|
265
265
|
}
|
|
266
266
|
// construct predicates for all available attributes and measures
|
|
267
267
|
const attributePredicates = availableDrillAttributesWithoutDates.map((drillAttribute) => HeaderPredicates.localIdentifierMatch(drillAttribute.attribute.attributeHeader.localIdentifier));
|
|
268
|
-
const measurePredicates =
|
|
268
|
+
const measurePredicates = _compact(availableDrillTargets?.availableDrillTargets?.measures?.map((drillMeasure) => HeaderPredicates.localIdentifierMatch(drillMeasure.measure.measureHeaderItem.localIdentifier)));
|
|
269
269
|
return {
|
|
270
270
|
drillDefinition: {
|
|
271
271
|
type: "crossFiltering",
|
|
@@ -275,9 +275,8 @@ const selectCrossFilteringByWidgetRef = createMemoizedSelector((ref) => createSe
|
|
|
275
275
|
predicates: [...attributePredicates, ...measurePredicates],
|
|
276
276
|
};
|
|
277
277
|
}));
|
|
278
|
-
const selectKdaByWidgetRef = createMemoizedSelector((ref) => createSelector(selectCanUseAiAssistant,
|
|
279
|
-
if (!
|
|
280
|
-
!canUseAiAssistant ||
|
|
278
|
+
const selectKdaByWidgetRef = createMemoizedSelector((ref) => createSelector(selectCanUseAiAssistant, selectEnableSecondGranularities, selectDrillTargetsByWidgetRef(ref), selectDisableDashboardKda, selectIsDisabledKda, selectDrillableItems, selectCatalogDateAttributes, selectInsightByWidgetRef(ref), (canUseAiAssistant, enableSecondGranularities, availableDrillTargets, disableKda, disableKdaByConfig, drillableItems, dateAttributes, widgetInsight) => {
|
|
279
|
+
if (!canUseAiAssistant ||
|
|
281
280
|
disableKda ||
|
|
282
281
|
disableKdaByConfig ||
|
|
283
282
|
// When some drillable items are present, we need to disable
|
|
@@ -302,7 +301,7 @@ const selectKdaByWidgetRef = createMemoizedSelector((ref) => createSelector(sele
|
|
|
302
301
|
return undefined;
|
|
303
302
|
}
|
|
304
303
|
// construct predicates for all available attributes and measures
|
|
305
|
-
const measurePredicates =
|
|
304
|
+
const measurePredicates = _compact(availableDrillTargets?.availableDrillTargets?.measures?.map((drillMeasure) => {
|
|
306
305
|
const isMetricDisabled = getMetricDisabled(widgetInsight, drillMeasure.measure.measureHeaderItem.localIdentifier);
|
|
307
306
|
if (isMetricDisabled) {
|
|
308
307
|
return undefined;
|
|
@@ -376,7 +375,7 @@ export const selectImplicitDrillsToUrlByWidgetRef = createMemoizedSelector((ref)
|
|
|
376
375
|
/**
|
|
377
376
|
* @internal
|
|
378
377
|
*/
|
|
379
|
-
export const selectConfiguredDrillsByWidgetRef = createMemoizedSelector((ref) => createSelector(selectWidgetDrills(ref), selectDisableDefaultDrills, selectIsEmbedded, selectDisableDashboardCrossFiltering, selectIsDisabledCrossFiltering, selectCanUseAiAssistant,
|
|
378
|
+
export const selectConfiguredDrillsByWidgetRef = createMemoizedSelector((ref) => createSelector(selectWidgetDrills(ref), selectDisableDefaultDrills, selectIsEmbedded, selectDisableDashboardCrossFiltering, selectIsDisabledCrossFiltering, selectCanUseAiAssistant, selectDisableDashboardKda, selectIsDisabledKda, (drills = [], disableDefaultDrills, isEmbedded, disableCrossFiltering, disableCrossFilteringByConfig, canUseAiAssistant, disableKda, disableKdaByConfig) => {
|
|
380
379
|
if (disableDefaultDrills) {
|
|
381
380
|
return [];
|
|
382
381
|
}
|
|
@@ -395,7 +394,7 @@ export const selectConfiguredDrillsByWidgetRef = createMemoizedSelector((ref) =>
|
|
|
395
394
|
return !disableCrossFiltering && !disableCrossFilteringByConfig;
|
|
396
395
|
}
|
|
397
396
|
else if (drillType === "keyDriveAnalysis") {
|
|
398
|
-
return
|
|
397
|
+
return canUseAiAssistant && !disableKda && !disableKdaByConfig;
|
|
399
398
|
}
|
|
400
399
|
else {
|
|
401
400
|
const unhandledType = drillType;
|
|
@@ -471,7 +470,7 @@ export const selectConfiguredAndImplicitDrillsByWidgetRef = createMemoizedSelect
|
|
|
471
470
|
// disable drilling until all necessary items are loaded (catalog, dash list, ...)
|
|
472
471
|
const drillActive = catalogIsLoaded && accessibleDashboardsLoaded;
|
|
473
472
|
return drillActive
|
|
474
|
-
?
|
|
473
|
+
? _compact([
|
|
475
474
|
...configuredDrills,
|
|
476
475
|
...implicitDrillDownDrills,
|
|
477
476
|
...(isDrillToUrlDisabled ? [] : implicitDrillToUrlDrills),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateFilterTypes.d.ts","sourceRoot":"","sources":["../../../src/model/types/dateFilterTypes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dateFilterTypes.d.ts","sourceRoot":"","sources":["../../../src/model/types/dateFilterTypes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,UAAU,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG/F;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC3B,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,6BAA6B,CAIjG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// (C) 2024-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2024-2026 GoodData Corporation
|
|
2
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
3
|
/**
|
|
4
4
|
* Type-guard that tests whether an object is an instance of {@link IDashboardDependentDateFilter}.
|
|
5
5
|
*
|
|
@@ -8,5 +8,5 @@ import { isEmpty } from "lodash-es";
|
|
|
8
8
|
*/
|
|
9
9
|
export function isDashboardDependentDateFilter(obj) {
|
|
10
10
|
const w = obj;
|
|
11
|
-
return (!
|
|
11
|
+
return (!_isEmpty(w) && w.type === "relative") || w.type === "absolute";
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layoutTypes.d.ts","sourceRoot":"","sources":["../../../src/model/types/layoutTypes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layoutTypes.d.ts","sourceRoot":"","sources":["../../../src/model/types/layoutTypes.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAIzB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IAClD,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,aACb,SAAQ,iBAAiB,EAAE,wBAAwB,EAAE,OAAO,CAAC,iBAAiB,CAAC;CAAG;AAEtF;;;;;GAKG;AACH,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB,EAAE,OAAO,CAAC,wBAAwB,CAAC;CAAG;AAExG;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAG,IAAI,EACzC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,GAC7C,MAAM,GAAG,aAAa,CAWxB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,E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"@gooddata/sdk-model";
|
|
3
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new custom widget.
|
|
6
6
|
*
|
|
@@ -12,7 +12,7 @@ import { idRef, isDashboardLayout, isWidget, } from "@gooddata/sdk-model";
|
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
14
|
export function newCustomWidget(identifier, customType, extras) {
|
|
15
|
-
const extrasCopy = extras ?
|
|
15
|
+
const extrasCopy = extras ? _cloneDeep(extras) : {};
|
|
16
16
|
return {
|
|
17
17
|
type: "customWidget",
|
|
18
18
|
customType,
|
|
@@ -30,7 +30,7 @@ export function newCustomWidget(identifier, customType, extras) {
|
|
|
30
30
|
*/
|
|
31
31
|
export function isCustomWidget(obj) {
|
|
32
32
|
const w = obj;
|
|
33
|
-
return !
|
|
33
|
+
return !_isEmpty(w) && w.type === "customWidget" && w.customType !== undefined && w.ref !== undefined;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Type-guard that tests whether an object is an instance of {@link ICustomWidgetDefinition}.
|
|
@@ -40,7 +40,7 @@ export function isCustomWidget(obj) {
|
|
|
40
40
|
*/
|
|
41
41
|
export function isCustomWidgetDefinition(obj) {
|
|
42
42
|
const w = obj;
|
|
43
|
-
return !
|
|
43
|
+
return !_isEmpty(w) && w.type === "customWidget" && w.customType !== undefined && w.ref === undefined;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Type-guard that tests whether an object is an instance of {@link ICustomWidgetBase}.
|
|
@@ -50,7 +50,7 @@ export function isCustomWidgetDefinition(obj) {
|
|
|
50
50
|
*/
|
|
51
51
|
export function isCustomWidgetBase(obj) {
|
|
52
52
|
const w = obj;
|
|
53
|
-
return !
|
|
53
|
+
return !_isEmpty(w) && w.type === "customWidget" && w.customType !== undefined;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Dumps debug information about a widget into a string.
|
|
@@ -89,7 +89,7 @@ export function newDashboardItem(widget, sizeOrColSize) {
|
|
|
89
89
|
return {
|
|
90
90
|
type: "IDashboardLayoutItem",
|
|
91
91
|
size,
|
|
92
|
-
widget:
|
|
92
|
+
widget: _cloneDeep(widget),
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
function getOrCreateSectionHeader(titleOrHeader) {
|
|
@@ -97,7 +97,7 @@ function getOrCreateSectionHeader(titleOrHeader) {
|
|
|
97
97
|
return undefined;
|
|
98
98
|
}
|
|
99
99
|
if (typeof titleOrHeader === "string") {
|
|
100
|
-
if (
|
|
100
|
+
if (_isEmpty(titleOrHeader)) {
|
|
101
101
|
return undefined;
|
|
102
102
|
}
|
|
103
103
|
return {
|
|
@@ -117,7 +117,7 @@ function getOrCreateSectionHeader(titleOrHeader) {
|
|
|
117
117
|
*/
|
|
118
118
|
export function newDashboardSection(titleOrHeader, ...items) {
|
|
119
119
|
const header = getOrCreateSectionHeader(titleOrHeader);
|
|
120
|
-
const itemsClone =
|
|
120
|
+
const itemsClone = _cloneDeep(items);
|
|
121
121
|
return {
|
|
122
122
|
type: "IDashboardLayoutSection",
|
|
123
123
|
items: itemsClone,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgetTypes.d.ts","sourceRoot":"","sources":["../../../src/model/types/widgetTypes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"widgetTypes.d.ts","sourceRoot":"","sources":["../../../src/model/types/widgetTypes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,aA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AQ,CAAC,yBAAyB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE9C;;;;OAIG;IACH,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAC7C;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IACxD,IAAI,EAAE,kBAAkB,CAAC;IAEzB;;;;;;OAMG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA4B,SAAQ,SAAS;IAC1D,IAAI,EAAE,oBAAoB,CAAC;IAE3B;;;;;;OAMG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,WAAW,iCAAkC,SAAQ,SAAS;IAChE,IAAI,EAAE,0BAA0B,CAAC;IAEjC;;;OAGG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,mCAAoC,SAAQ,SAAS;IAClE,IAAI,EAAE,4BAA4B,CAAC;IAEnC;;;OAGG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAC5B,yBAAyB,GACzB,0BAA0B,GAC1B,gCAAgC,GAChC,8BAA8B,GAC9B,gCAAgC,GAChC,yBAAyB,GACzB,2BAA2B,GAC3B,iCAAiC,GACjC,mCAAmC,GACnC,mBAAmB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export function isWidgetHeader(obj) {
|
|
7
|
-
return !
|
|
7
|
+
return !_isEmpty(obj) && obj.title !== undefined;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertsUtils.d.ts","sourceRoot":"","sources":["../../../src/model/utils/alertsUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alertsUtils.d.ts","sourceRoot":"","sources":["../../../src/model/utils/alertsUtils.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,OAAO,EACZ,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,MAAM,EAQd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAE1E;;;;;;;;;;;GAWG;AACH,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,sBAAsB,GAAG,SAAS,EACzC,GAAG,EAAE,iBAAiB,EACtB,cAAc,EAAE,OAAO,EAAE,EACzB,eAAe,EAAE,SAAS,CAAC,mCAAmC,CAAC,EAC/D,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACvC,2BAA2B,EAAE,CAqE/B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { partition } from "lodash-es";
|
|
3
2
|
import { invariant } from "ts-invariant";
|
|
4
3
|
import { areObjRefsEqual, filterObjRef, isAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterReference, isDashboardDateFilter, isDashboardDateFilterReference, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _partition } from "@gooddata/util";
|
|
5
5
|
/**
|
|
6
6
|
* Gets the information about the so called broken alert filters. These are filters that are set up on the alert,
|
|
7
7
|
* but the currently applied filters either do not contain them, or the KPI has started ignoring them
|
|
@@ -21,7 +21,7 @@ export function getBrokenAlertFiltersBasicInfo(alert, kpi, appliedFilters, displ
|
|
|
21
21
|
return [];
|
|
22
22
|
}
|
|
23
23
|
const result = [];
|
|
24
|
-
const [alertDateFilters, alertNonDateFilters] =
|
|
24
|
+
const [alertDateFilters, alertNonDateFilters] = _partition(alertFilters, isDashboardDateFilter);
|
|
25
25
|
const alertAttributeFilters = alertNonDateFilters.filter(isDashboardAttributeFilter);
|
|
26
26
|
// attribute filters
|
|
27
27
|
const appliedAttributeFilters = appliedFilters.filter(isAttributeFilter);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterResolver.d.ts","sourceRoot":"","sources":["../../../src/model/utils/filterResolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filterResolver.d.ts","sourceRoot":"","sources":["../../../src/model/utils/filterResolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAIhE;;;;;;;;;;GAUG;AACH,wBAAiB,yBAAyB,CACtC,GAAG,EAAE,gBAAgB,EACrB,OAAO,EAAE,iBAAiB,EAAE,EAC5B,eAAe,EAAE,MAAM,EAAE,EACzB,YAAY,CAAC,EAAE,SAAS,CAAC,mCAAmC,CAAC,GAC9D,YAAY,CAAC,mCAAmC,EAAE,CAAC,CAsBrD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { call } from "redux-saga/effects";
|
|
4
3
|
import { invariant } from "ts-invariant";
|
|
5
4
|
import { dashboardAttributeFilterItemDisplayForm, isDashboardAttributeFilterItem, objRefToString, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { resolveDisplayFormMetadata } from "./displayFormResolver.js";
|
|
7
7
|
/**
|
|
8
8
|
* This generator function resolves display form metadata objects for all attribute filters in the provided `filters`
|
|
@@ -22,7 +22,7 @@ export function* resolveFilterDisplayForms(ctx, filters, displayAsLabels, displa
|
|
|
22
22
|
const resolvedDisplayForms = yield call(resolveDisplayFormMetadata, ctx, [...displayFormRefs, ...displayAsLabels], displayForms);
|
|
23
23
|
// TODO: this is too strict; instead of exploding, the resolver should communicate that some filters are invalid so
|
|
24
24
|
// that the upstream code can remove the filter from the filter context
|
|
25
|
-
invariant(
|
|
25
|
+
invariant(_isEmpty(resolvedDisplayForms.missing), `Unable to resolve display forms used in filter context filters: ${resolvedDisplayForms.missing
|
|
26
26
|
.map((m) => objRefToString(m))
|
|
27
27
|
.join(", ")}.`);
|
|
28
28
|
return Array.from(resolvedDisplayForms.resolved.values());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluidLayoutCustomizer.d.ts","sourceRoot":"","sources":["../../../src/plugins/customizationApis/fluidLayoutCustomizer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fluidLayoutCustomizer.d.ts","sourceRoot":"","sources":["../../../src/plugins/customizationApis/fluidLayoutCustomizer.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAE/B,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACpG,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAY7D,qBAAa,qBAAsB,YAAW,sBAAsB;IAK5D,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,eAAe;IALpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsB;IAEpD,YACqB,MAAM,EAAE,6BAA6B,EACrC,eAAe,EAAE,0BAA0B,EAC5D;IAEG,OAAO,CACV,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,oBAAoB,CAAC,aAAa,CAAC,GAC1C,sBAAsB,CAExB;IAEM,aAAa,CAChB,QAAQ,EAAE,eAAe,EACzB,IAAI,EAAE,oBAAoB,CAAC,aAAa,CAAC,GAC1C,sBAAsB,CAgBxB;IAEM,UAAU,CACb,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,uBAAuB,CAAC,aAAa,CAAC,GAChD,sBAAsB,CAExB;IAEM,gBAAgB,CACnB,WAAW,EAAE,kBAAkB,EAC/B,OAAO,EAAE,uBAAuB,CAAC,aAAa,CAAC,GAChD,sBAAsB,CA0BxB;IAEM,oBAAoB,WACf,gBAAgB,CAAC,uBAAuB,CAAC,KAClD,gBAAgB,CAAC,uBAAuB,CAAC,CAqD1C;CACL"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep, isEmpty } from "lodash-es";
|
|
3
2
|
import { objRefToString, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
4
4
|
import { DashboardLayoutBuilder } from "../../_staging/dashboard/flexibleLayout/builder/layout.js";
|
|
5
5
|
export class FluidLayoutCustomizer {
|
|
6
6
|
logger;
|
|
@@ -21,7 +21,7 @@ export class FluidLayoutCustomizer {
|
|
|
21
21
|
}
|
|
22
22
|
this.addItemOps.push({
|
|
23
23
|
itemPath,
|
|
24
|
-
item:
|
|
24
|
+
item: _cloneDeep(item),
|
|
25
25
|
});
|
|
26
26
|
return this;
|
|
27
27
|
}
|
|
@@ -29,18 +29,18 @@ export class FluidLayoutCustomizer {
|
|
|
29
29
|
return this.addSectionToPath({ sectionIndex: sectionIdx }, section);
|
|
30
30
|
}
|
|
31
31
|
addSectionToPath(sectionPath, section) {
|
|
32
|
-
if (
|
|
32
|
+
if (_isEmpty(section.items)) {
|
|
33
33
|
this.logger.warn(`Section to add at path ${sectionPath} contains no items. The section will not be added at all.`, section);
|
|
34
34
|
return this;
|
|
35
35
|
}
|
|
36
36
|
const itemsWithoutWidget = section.items.filter((item) => item.widget === undefined);
|
|
37
|
-
if (!
|
|
37
|
+
if (!_isEmpty(itemsWithoutWidget)) {
|
|
38
38
|
this.logger.warn(`Section to add at path ${sectionPath} contains items that do not specify any widgets. The section will not be added at all.`, section);
|
|
39
39
|
return this;
|
|
40
40
|
}
|
|
41
41
|
this.addSectionOps.push({
|
|
42
42
|
sectionPath,
|
|
43
|
-
section:
|
|
43
|
+
section: _cloneDeep(section),
|
|
44
44
|
});
|
|
45
45
|
return this;
|
|
46
46
|
}
|
package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertingDialogFieldLabelWithTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,iBAAiB,EAAW,MAAM,YAAY,CAAC;AAI/E;;;;GAIG;AACH,wBAAgB,mCAAmC,CAAC,EAChD,KAAK,EACL,OAAO,GACV,EAAE;IACC,KAAK,EAAE,iBAAiB,CAAC;IACzB,OAAO,EAAE,iBAAiB,CAAC;CAC9B,
|
|
1
|
+
{"version":3,"file":"AlertingDialogFieldLabelWithTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,iBAAiB,EAAW,MAAM,YAAY,CAAC;AAI/E;;;;GAIG;AACH,wBAAgB,mCAAmC,CAAC,EAChD,KAAK,EACL,OAAO,GACV,EAAE;IACC,KAAK,EAAE,iBAAiB,CAAC;IACzB,OAAO,EAAE,iBAAiB,CAAC;CAC9B,2CA0BA"}
|
|
@@ -9,5 +9,5 @@ import { UiIconButton, UiTooltip } from "@gooddata/sdk-ui-kit";
|
|
|
9
9
|
*/
|
|
10
10
|
export function AlertingDialogFieldLabelWithTooltip({ label, tooltip, }) {
|
|
11
11
|
const intl = useIntl();
|
|
12
|
-
return (_jsxs("
|
|
12
|
+
return (_jsxs("span", { className: "gd-dashboard-alerting-dialog-form-field__content-container-tooltip", children: [_jsx(FormattedMessage, { ...label }), _jsx("span", { className: "gd-dashboard-alerting-dialog-form-field__label-tooltip-icon", children: _jsx(UiTooltip, { component: "span", inlineAnchor: true, anchor: _jsx(UiIconButton, { icon: "question", variant: "tertiary", size: "xxsmall", accessibilityConfig: { ariaLabel: intl.formatMessage(label) } }), content: _jsx(FormattedMessage, { ...tooltip }), arrowPlacement: "left", optimalPlacement: true, offset: 10, triggerBy: ["hover", "click"] }) })] }));
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAlertDraftFilterWrites.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertDraftFilterWrites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAwB,MAAM,OAAO,CAAC;AAEjF,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,SAAS,EACjB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC5C,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,GAAG,SAAS,CAAC,CAAC,CAAC;IAC/F,6FAA6F;IAC7F,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,eAAe,EAAE,WAAW,GAAG,SAAS,CAAC;IACzC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EACtC,mBAAmB,EACnB,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,gCAAgC,EAChC,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,QAAQ,GACX,EAAE,+BAA+B,GAAG;IAAE,mBAAmB,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"useAlertDraftFilterWrites.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertDraftFilterWrites.ts"],"names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,EACN,OAAO,EACP,gCAAgC,EAChC,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,QAAQ,GACX,EAAE,+BAA+B,GAAG;IAAE,mBAAmB,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAA;CAAE,CAmGnG"}
|
|
@@ -37,11 +37,15 @@ export function useAlertDraftFilterWrites({ setEditedAutomation, alertToEdit, da
|
|
|
37
37
|
visibleFilters,
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
|
-
const updatedAutomationWithAttribute = transformAlertByAttribute(supportedAttributes, updatedAutomationWithFilters, selectedAttribute,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
const updatedAutomationWithAttribute = transformAlertByAttribute(supportedAttributes, updatedAutomationWithFilters, selectedAttribute,
|
|
41
|
+
// No value means All; "" would filter to an empty value.
|
|
42
|
+
selectedValue === undefined
|
|
43
|
+
? undefined
|
|
44
|
+
: {
|
|
45
|
+
name: selectedValue ?? "",
|
|
46
|
+
title: "",
|
|
47
|
+
value: "",
|
|
48
|
+
});
|
|
45
49
|
return selectedMeasure
|
|
46
50
|
? transformAlertByMetric(supportedMeasures, updatedAutomationWithAttribute, selectedMeasure, measureFormatMap, weekStart, timezone)
|
|
47
51
|
: updatedAutomationWithAttribute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAlertFormValidation.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertFormValidation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAlertFormValidation.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/state/useAlertFormValidation.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EAIf,MAAM,qBAAqB,CAAC;AAO7B,MAAM,WAAW,4BAA4B;IACzC,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,CAAC;IAClE,kBAAkB,EAAE,mCAAmC,GAAG,SAAS,CAAC;IACpE,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;IAC3C,4BAA4B,EAAE,OAAO,CAAC;IACtC,2BAA2B,EACrB,8BAA8B,GAC9B,kCAAkC,GAClC,SAAS,CAAC;IAChB,uBAAuB,EAAE,OAAO,CAAC;IACjC,6BAA6B,EAAE,OAAO,CAAC;IACvC,wBAAwB,EAAE,MAAM,CAAC;IACjC,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,4BAA4B,GAAG;IACzE,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,aAAa,EAAE,OAAO,CAAC;CAC1B,CA4EA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { useIntl } from "react-intl";
|
|
4
3
|
import { isAutomationExternalUserRecipient, isAutomationUnknownUserRecipient, isAutomationUserRecipient, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { isEmail } from "../../scheduledEmail/utils/validate.js";
|
|
6
6
|
import { useAlertValidation } from "../hooks/useAlertValidation.js";
|
|
7
7
|
import { isAlertValueDefined } from "../utils/guards.js";
|
|
@@ -38,7 +38,7 @@ export function useAlertFormValidation(props) {
|
|
|
38
38
|
hasFilledEmails &&
|
|
39
39
|
hasValidThreshold &&
|
|
40
40
|
isTitleValid;
|
|
41
|
-
const isSubmitDisabled = !!(!isValid || (alertToEdit &&
|
|
41
|
+
const isSubmitDisabled = !!(!isValid || (alertToEdit && _isEqual(originalAutomation, editedAutomation)));
|
|
42
42
|
return {
|
|
43
43
|
isSubmitDisabled,
|
|
44
44
|
validationErrorMessage,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/utils/items.ts"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,yBAAyB,EAE9B,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,EAExB,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/utils/items.ts"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,yBAAyB,EAE9B,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,EAExB,KAAK,QAAQ,EAuBhB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAA6B,MAAM,aAAa,CAAC;AAgE/F;;;;;GAKG;AACH,wBAAgB,oCAAoC,CAChD,OAAO,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,EACpC,YAAY,GAAE,mBAAmB,EAAO,EACxC,KAAK,CAAC,EAAE,yBAAyB,GAClC,WAAW,EAAE,CAoCf;AA4BD;;;;;;GAMG;AACH,wBAAgB,sCAAsC,CAClD,OAAO,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,EACpC,UAAU,EAAE,iBAAiB,EAAE,EAC/B,YAAY,GAAE,mBAAmB,EAAO,EACxC,KAAK,CAAC,EAAE,yBAAyB,GAClC,cAAc,EAAE,CAMlB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { DateGranularity, areObjRefsEqual, bucketAttributes, bucketMeasures, insightBucket, insightFilters, insightVisualizationType, isArithmeticMeasure, isPoPMeasure, isPoPMeasureDefinition, isPreviousPeriodMeasure, isPreviousPeriodMeasureDefinition, isRelativeDateFilter, isSimpleMeasure, newAttribute, newMeasure, newPopMeasure, newPreviousPeriodMeasure, } from "@gooddata/sdk-model";
|
|
2
|
+
import { DateGranularity, areObjRefsEqual, bucketAttributes, bucketMeasures, insightBucket, insightFilters, insightVisualizationType, isArithmeticMeasure, isPoPMeasure, isPoPMeasureDefinition, isPreviousPeriodMeasure, isPreviousPeriodMeasureDefinition, isRelativeDateFilter, isSimpleMeasure, measureLocalId, modifyMeasure, newAttribute, newMeasure, newPopMeasure, newPreviousPeriodMeasure, } from "@gooddata/sdk-model";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
4
|
import { AlertMetricComparatorType } from "../types.js";
|
|
5
5
|
import { getCatalogAttribute, getFiltersAttribute } from "./getters.js";
|
|
@@ -198,41 +198,26 @@ function collectAllMetric(insight, alert) {
|
|
|
198
198
|
}
|
|
199
199
|
if (alert) {
|
|
200
200
|
if (alert.alert?.condition.type === "relative") {
|
|
201
|
-
const left = alert.alert
|
|
202
|
-
const right = alert.alert?.condition.measure.right;
|
|
201
|
+
const { left, right } = alert.alert.condition.measure;
|
|
203
202
|
return {
|
|
204
203
|
primaries: [
|
|
205
|
-
...(left
|
|
206
|
-
|
|
207
|
-
newMeasure(left.id, (a) => a.format(left.format).title(left.title).localId(left.id)),
|
|
208
|
-
]
|
|
209
|
-
: []),
|
|
210
|
-
...(right
|
|
211
|
-
? [
|
|
212
|
-
newMeasure(right.id, (a) => a.format(right.format).title(right.title).localId(right.id)),
|
|
213
|
-
]
|
|
214
|
-
: []),
|
|
204
|
+
...(left ? [alertOperandMeasure(alert, left)] : []),
|
|
205
|
+
...(right ? [alertOperandMeasure(alert, right)] : []),
|
|
215
206
|
],
|
|
216
207
|
others: [],
|
|
217
208
|
};
|
|
218
209
|
}
|
|
219
210
|
if (alert.alert?.condition.type === "comparison") {
|
|
220
|
-
const left = alert.alert
|
|
211
|
+
const left = alert.alert.condition.left;
|
|
221
212
|
return {
|
|
222
|
-
primaries: left
|
|
223
|
-
? [newMeasure(left.id, (a) => a.format(left.format).title(left.title).localId(left.id))]
|
|
224
|
-
: [],
|
|
213
|
+
primaries: left ? [alertOperandMeasure(alert, left)] : [],
|
|
225
214
|
others: [],
|
|
226
215
|
};
|
|
227
216
|
}
|
|
228
217
|
if (alert.alert?.condition.type === "anomalyDetection") {
|
|
229
|
-
const measure = alert.alert
|
|
218
|
+
const measure = alert.alert.condition.measure;
|
|
230
219
|
return {
|
|
231
|
-
primaries: measure
|
|
232
|
-
? [
|
|
233
|
-
newMeasure(measure.id, (a) => a.format(measure.format).title(measure.title).localId(measure.id)),
|
|
234
|
-
]
|
|
235
|
-
: [],
|
|
220
|
+
primaries: measure ? [alertOperandMeasure(alert, measure)] : [],
|
|
236
221
|
others: [],
|
|
237
222
|
};
|
|
238
223
|
}
|
|
@@ -242,6 +227,18 @@ function collectAllMetric(insight, alert) {
|
|
|
242
227
|
others: [],
|
|
243
228
|
};
|
|
244
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* The alert's stored measure for a condition operand. A measure made from the operand's local identifier
|
|
232
|
+
* alone would be sent as a fact that does not exist.
|
|
233
|
+
*/
|
|
234
|
+
function alertOperandMeasure(alert, operand) {
|
|
235
|
+
const execution = alert.alert?.execution;
|
|
236
|
+
const stored = [...(execution?.measures ?? []), ...(execution?.auxMeasures ?? [])].find((measure) => measureLocalId(measure) === operand.id);
|
|
237
|
+
if (stored) {
|
|
238
|
+
return modifyMeasure(stored, (m) => m.format(operand.format).title(operand.title));
|
|
239
|
+
}
|
|
240
|
+
return newMeasure(operand.id, (m) => m.format(operand.format).title(operand.title).localId(operand.id));
|
|
241
|
+
}
|
|
245
242
|
function collectAllAttributes(insight, attributes, alert) {
|
|
246
243
|
if (insight) {
|
|
247
244
|
const insightType = insight ? insightVisualizationType(insight) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformation.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/utils/transformation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transformation.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/utils/transformation.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAG3B,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EAGxC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EAKzB,KAAK,SAAS,EAOjB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,yBAAyB,EAC5B,MAAM,aAAa,CAAC;AAGrB,OAAO,EACH,KAAK,iBAAiB,EAKzB,MAAM,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAClC,OAAO,EAAE,WAAW,EAAE,EACtB,KAAK,EAAE,yBAAyB,EAChC,OAAO,EAAE,WAAW,EACpB,gBAAgB,CAAC,EAAE,iBAAiB,EACpC,SAAS,CAAC,EAAE,SAAS,EACrB,QAAQ,CAAC,EAAE,MAAM,GAClB,yBAAyB,CAwG3B;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACrC,UAAU,EAAE,cAAc,EAAE,EAC5B,KAAK,EAAE,yBAAyB,EAChC,IAAI,EAAE,cAAc,GAAG,SAAS,EAChC,KAAK,EACC;IACI,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB,GACD,SAAS,GAChB,yBAAyB,CAiD3B;AAaD;;;;;;GAMG;AACH,w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AAa,EAAE,qBAAqB,GAAG,SAAS,GACjD;IAAE,SAAS,EAAE,mCAAmC,CAAC;IAAC,QAAQ,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAA;CAAE,CA+ErG;AAmKD,wBAAgB,2BAA2B,CACvC,KAAK,EAAE,yBAAyB,EAChC,WAAW,EAAE,iCAAiC,GAC/C,yBAAyB,CAc3B;AAED,wBAAgB,2BAA2B,CACvC,OAAO,EAAE,WAAW,EAAE,EACtB,KAAK,EAAE,yBAAyB,EAChC,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,iCAAiC,EAC9C,SAAS,CAAC,EAAE,SAAS,GACtB,yBAAyB,CAiC3B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { invariant } from "ts-invariant";
|
|
4
3
|
import { isArithmeticMeasure, isLocalIdRef, isMeasureValueFilter, isRankingFilter, isRelativeDateFilter, objRefToString, } from "@gooddata/sdk-model";
|
|
5
4
|
import { ARITHMETIC_OPERATORS, COMPARISON_OPERATORS, RELATIVE_OPERATORS } from "@gooddata/sdk-ui-ext";
|
|
5
|
+
import { _isEqual } from "@gooddata/util";
|
|
6
6
|
import { AlertMetricComparatorType, } from "../types.js";
|
|
7
7
|
import { createCronFromGranularity } from "./cron.js";
|
|
8
8
|
import { getAlertComparison, getAttributeRelatedFilterInfo, getMeasureFormat, getMeasureTitle, } from "./getters.js";
|
|
@@ -101,7 +101,7 @@ export function transformAlertByMetric(metrics, alert, measure, measureFormatMap
|
|
|
101
101
|
*/
|
|
102
102
|
export function transformAlertByAttribute(attributes, alert, attr, value) {
|
|
103
103
|
const { filterDefinition } = getAttributeRelatedFilterInfo(attributes, alert, alert.alert?.execution.attributes[0]);
|
|
104
|
-
const originalFilters = alert.alert?.execution.filters.filter((f) => !
|
|
104
|
+
const originalFilters = alert.alert?.execution.filters.filter((f) => !_isEqual(f, filterDefinition)) ?? [];
|
|
105
105
|
const customFilters = [];
|
|
106
106
|
if (attr) {
|
|
107
107
|
if (value === undefined) {
|