@gooddata/sdk-ui-dashboard 11.68.0-alpha.7 → 11.68.0-alpha.9
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 +224 -162
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/automation/index.js +4 -4
- 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/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 +2 -3
- package/esm/kdaDialog/components/KdaKeyDriverChart.d.ts.map +1 -1
- package/esm/kdaDialog/components/KdaKeyDriverChart.js +1 -2
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +4 -5
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +3 -3
- 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/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/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 +2 -3
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.js +4 -3
- 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/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/dateFilter/removeDateFiltersHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.js +3 -2
- 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/validation/filterValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.js +2 -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/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/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/drillTargets/drillTargetsSelectors.d.ts.map +1 -1
- package/esm/model/store/drillTargets/drillTargetsSelectors.js +2 -2
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js +3 -3
- 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 +2 -3
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +2 -3
- package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +11 -12
- package/esm/model/utils/alertsUtils.d.ts.map +1 -1
- package/esm/model/utils/alertsUtils.js +2 -2
- 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/connectors/hooks/sanitizeAutomationForSave.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.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/filters/conversions.d.ts.map +1 -1
- package/esm/presentation/automations/shared/filters/conversions.js +2 -2
- package/esm/presentation/automations/shared/utils/automationUtils.js +4 -4
- 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/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 +4 -3
- 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/utils/drillDownUtils.js +3 -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/filterBar/hooks/useResetFiltersButton.js +3 -3
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +3 -3
- 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 +5 -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 +5 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +4 -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 +4 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +5 -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 +5 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +5 -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 +5 -0
- 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/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/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js +2 -2
- 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/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/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/package.json +24 -23
- package/styles/css/configurationPanel.css +2 -8
- 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/main.css +10 -11
- 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 -12
- package/styles/scss/scheduled_mail_recipients.scss +15 -4
|
@@ -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":"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"}
|
|
@@ -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":"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);
|
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":"sanitizeAutomationForSave.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/sanitizeAutomationForSave.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sanitizeAutomationForSave.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/connectors/hooks/sanitizeAutomationForSave.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EAG3C,MAAM,qBAAqB,CAAC;AAG7B;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,yBAAyB,GAAG,yBAAyB,CAAC;AAC5G,wBAAgB,yBAAyB,CACrC,UAAU,EAAE,mCAAmC,GAChD,mCAAmC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import { isAllValuesAttributeFilter, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _omit } from "@gooddata/util";
|
|
4
4
|
export function sanitizeAutomationForSave(automation) {
|
|
5
5
|
let sanitized = { ...automation };
|
|
6
6
|
if (sanitized.schedule) {
|
|
7
|
-
sanitized.schedule =
|
|
7
|
+
sanitized.schedule = _omit(sanitized.schedule, ["cronDescription"]);
|
|
8
8
|
}
|
|
9
9
|
if (sanitized.alert?.execution?.filters) {
|
|
10
10
|
sanitized = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useRef, useState } from "react";
|
|
3
|
-
import { omit } from "lodash-es";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { isAllValuesAttributeFilter, isAllValuesDashboardAttributeFilter, isExportDefinitionDashboardRequestPayload, isExportDefinitionVisualizationObjectRequestPayload, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _omit } from "@gooddata/util";
|
|
6
6
|
import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
|
|
7
7
|
import { useScheduledExportDraft } from "./ScheduledExportDraftContext.js";
|
|
8
8
|
/**
|
|
@@ -99,7 +99,7 @@ function sanitizeAutomation(automationToSave, intl) {
|
|
|
99
99
|
// We want to omit the cronDescription as it is a variable created on backend that cannot
|
|
100
100
|
// be overriden and BE has hard time handling it with each PUT
|
|
101
101
|
if (automation.schedule) {
|
|
102
|
-
automation.schedule =
|
|
102
|
+
automation.schedule = _omit(automation.schedule, ["cronDescription"]);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Remove noop filters from export definitions before saving to backend.
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScheduledEmailExportSettings.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useScheduledEmailExportSettings.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAuB,MAAM,OAAO,CAAC;AAEhF,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EAExC,KAAK,4CAA4C,EACjD,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,OAAO,EAIf,MAAM,qBAAqB,CAAC;AAc7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAEhE,MAAM,WAAW,qCAAqC;IAClD,gBAAgB,EAAE,mCAAmC,CAAC;IACtD,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,mCAAmC,CAAC,CAAC,CAAC;IACnF,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yBAAyB,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IAC3D,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,GAAG,SAAS,CAAC;IAChF,sBAAsB,EAAE,OAAO,EAAE,CAAC;IAClC,iCAAiC,EAAE,OAAO,EAAE,CAAC;IAC7C,kBAAkB,CAAC,EAAE,4CAA4C,CAAC,UAAU,CAAC,CAAC;IAC9E;;;OAGG;IACH,gBAAgB,CAAC,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CAC1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,gBAAgB,EAChB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,YAAY,EACZ,yBAAyB,EACzB,8BAA8B,EAC9B,sBAAsB,EACtB,iCAAiC,EACjC,kBAAkB,EAClB,gBAAgB,GACnB,EAAE,qCAAqC,GAAG,6BAA6B,CAySvE"}
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useRef } from "react";
|
|
3
|
-
import { invariant } from "ts-invariant";
|
|
4
3
|
import { isExportDefinitionDashboardRequestPayload, isExportDefinitionVisualizationObjectRequestPayload, } from "@gooddata/sdk-model";
|
|
5
4
|
import { getAutomationExportParametersByTab, setExportParametersByTab, } from "../../../../_staging/automation/index.js";
|
|
6
5
|
import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
|
|
@@ -34,7 +33,7 @@ export function useScheduledEmailExportSettings({ editedAutomation, setEditedAut
|
|
|
34
33
|
latestParametersWireRef.current = wire;
|
|
35
34
|
setEditedAutomation((automation) => setExportParametersByTab(automation, wire));
|
|
36
35
|
}, [setEditedAutomation]);
|
|
37
|
-
// Re-derived locally (not passed as a prop) so that `
|
|
36
|
+
// Re-derived locally (not passed as a prop) so that the `isWidget` check below narrows
|
|
38
37
|
// `widget`/`insight` via TS's aliased-condition control-flow analysis — this requires the boolean
|
|
39
38
|
// to be declared from those exact variables in this same scope, same as in the parent.
|
|
40
39
|
const isWidget = !!widget && !!insight;
|
|
@@ -67,7 +66,6 @@ export function useScheduledEmailExportSettings({ editedAutomation, setEditedAut
|
|
|
67
66
|
exportTimezoneId,
|
|
68
67
|
]);
|
|
69
68
|
const onWidgetAttachmentsChange = useCallback((formats) => {
|
|
70
|
-
invariant(isWidget, "Widget or insight is missing in scheduling dialog context.");
|
|
71
69
|
setEditedAutomation((s) => {
|
|
72
70
|
const currentExportDefinitions = s.exportDefinitions || [];
|
|
73
71
|
const currentWidgetExportDefinitions = currentExportDefinitions.filter((exportDefinition) => isExportDefinitionVisualizationObjectRequestPayload(exportDefinition.requestPayload));
|
|
@@ -75,17 +73,19 @@ export function useScheduledEmailExportSettings({ editedAutomation, setEditedAut
|
|
|
75
73
|
const formatsToKeep = currentFormats.filter((format) => formats.includes(format));
|
|
76
74
|
const formatsToAdd = formats.filter((format) => !currentFormats.includes(format));
|
|
77
75
|
const keptExportDefinitions = currentWidgetExportDefinitions.filter((exportDefinition) => formatsToKeep.includes(exportDefinition.requestPayload.format));
|
|
78
|
-
const newExportDefinitions =
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
76
|
+
const newExportDefinitions = isWidget
|
|
77
|
+
? formatsToAdd.map((format) => newWidgetExportDefinitionMetadataObjectDefinition({
|
|
78
|
+
insight,
|
|
79
|
+
widget,
|
|
80
|
+
dashboardId: dashboardId,
|
|
81
|
+
format,
|
|
82
|
+
widgetFilters: effectiveWidgetFilters,
|
|
83
|
+
widgetFiltersWithInsight: effectiveWidgetFiltersWithInsight,
|
|
84
|
+
dashboardFilters: effectiveDashboardFilters,
|
|
85
|
+
defaultPdfPageSize,
|
|
86
|
+
timezoneId: exportTimezoneId,
|
|
87
|
+
}))
|
|
88
|
+
: [];
|
|
89
89
|
const updatedExportDefinitions = [...keptExportDefinitions, ...newExportDefinitions];
|
|
90
90
|
return withRebuiltExportDefinitions(s, updatedExportDefinitions, latestParametersWireRef.current);
|
|
91
91
|
});
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface IUseScheduledEmailFormValidityProps {
|
|
|
11
11
|
isTitleValid: boolean;
|
|
12
12
|
isSubjectValid: boolean;
|
|
13
13
|
isOnMessageValid: boolean;
|
|
14
|
+
isWidgetInsightUnavailable: boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare function useScheduledEmailFormValidity(props: IUseScheduledEmailFormValidityProps): IScheduledExportDialogValidity;
|
|
16
17
|
//# sourceMappingURL=useScheduledEmailFormValidity.d.ts.map
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScheduledEmailFormValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAI1C,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"useScheduledEmailFormValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EAI1C,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAOjE,MAAM,WAAW,mCAAmC;IAChD,gBAAgB,EAAE,mCAAmC,CAAC;IACtD,kBAAkB,EAAE,mCAAmC,CAAC;IACxD,qBAAqB,CAAC,EAAE,yBAAyB,CAAC;IAClD,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,wBAAwB,EAAE,MAAM,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,0BAA0B,EAAE,OAAO,CAAC;CACvC;AAED,wBAAgB,6BAA6B,CACzC,KAAK,EAAE,mCAAmC,GAC3C,8BAA8B,CAyEhC"}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { useIntl } from "react-intl";
|
|
2
|
+
import { defineMessages, useIntl } from "react-intl";
|
|
3
3
|
import { isAutomationExternalUserRecipient, isAutomationUnknownUserRecipient, isAutomationUserRecipient, } from "@gooddata/sdk-model";
|
|
4
4
|
import { areAutomationsEqual } from "../../shared/utils/automationUtils.js";
|
|
5
5
|
import { useScheduleValidation } from "../hooks/useScheduleValidation.js";
|
|
6
6
|
import { isEmail } from "../utils/validate.js";
|
|
7
|
+
const messages = defineMessages({
|
|
8
|
+
widgetError: { id: "dialogs.schedule.email.widgetError" },
|
|
9
|
+
visualizationUnavailable: { id: "dialogs.schedule.email.visualizationUnavailable" },
|
|
10
|
+
});
|
|
7
11
|
export function useScheduledEmailFormValidity(props) {
|
|
8
|
-
const { editedAutomation, originalAutomation, scheduledExportToEdit, notificationChannels, defaultRecipient, maxAutomationsRecipients, isCronValid, isTitleValid, isSubjectValid, isOnMessageValid, } = props;
|
|
12
|
+
const { editedAutomation, originalAutomation, scheduledExportToEdit, notificationChannels, defaultRecipient, maxAutomationsRecipients, isCronValid, isTitleValid, isSubjectValid, isOnMessageValid, isWidgetInsightUnavailable, } = props;
|
|
9
13
|
const intl = useIntl();
|
|
10
14
|
const selectedNotificationChannel = notificationChannels.find((channel) => channel.id === editedAutomation.notificationChannel);
|
|
11
15
|
const allowExternalRecipients = selectedNotificationChannel?.allowedRecipients === "external";
|
|
12
16
|
const allowOnlyLoggedUserRecipients = selectedNotificationChannel?.allowedRecipients === "creator";
|
|
13
17
|
const { isValid: isParentValid } = useScheduleValidation(originalAutomation);
|
|
14
18
|
const validationErrorMessage = isParentValid
|
|
15
|
-
?
|
|
16
|
-
|
|
19
|
+
? isWidgetInsightUnavailable
|
|
20
|
+
? intl.formatMessage(messages.visualizationUnavailable)
|
|
21
|
+
: undefined
|
|
22
|
+
: intl.formatMessage(messages.widgetError);
|
|
17
23
|
const hasAttachments = !!editedAutomation.exportDefinitions?.length;
|
|
18
24
|
const hasRecipients = (editedAutomation.recipients?.length ?? 0) > 0;
|
|
19
25
|
const hasValidExternalRecipients = allowExternalRecipients
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScheduledExportDialogValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAGjE;;;;;;;;;GASG;AACH,wBAAgB,gCAAgC,IAAI,8BAA8B,
|
|
1
|
+
{"version":3,"file":"useScheduledExportDialogValidity.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAGjE;;;;;;;;;GASG;AACH,wBAAgB,gCAAgC,IAAI,8BAA8B,CA0BjF"}
|
package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.js
CHANGED
|
@@ -16,7 +16,7 @@ import { useScheduledEmailFormValidity } from "./useScheduledEmailFormValidity.j
|
|
|
16
16
|
*/
|
|
17
17
|
export function useScheduledExportDialogValidity() {
|
|
18
18
|
const { maxAutomationsRecipients } = useAutomationsContext();
|
|
19
|
-
const { scheduledExportToEdit, notificationChannels } = useScheduledEmailDialogContext();
|
|
19
|
+
const { scheduledExportToEdit, notificationChannels, widget, insight } = useScheduledEmailDialogContext();
|
|
20
20
|
const { editedAutomation, originalAutomation, isCronValid, isTitleValid, isSubjectValid, isOnMessageValid, } = useScheduledExportDraft();
|
|
21
21
|
const { defaultRecipient } = useScheduledExportData();
|
|
22
22
|
return useScheduledEmailFormValidity({
|
|
@@ -30,5 +30,6 @@ export function useScheduledExportDialogValidity() {
|
|
|
30
30
|
isTitleValid,
|
|
31
31
|
isSubjectValid,
|
|
32
32
|
isOnMessageValid,
|
|
33
|
+
isWidgetInsightUnavailable: !!widget && !insight,
|
|
33
34
|
});
|
|
34
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAutomationVisibleFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAutomationVisibleFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAW5F,eAAO,MAAM,2BAA2B,sBAClB,iBAAiB,EAAE,GAAG,SAAS,KAClD,wBAAwB,EAY1B,CAAC;AAEF,eAAO,MAAM,gCAAgC,sBACvB,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,GAAG,SAAS,KAClE,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,CAc3C,CAAC"}
|
package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _compact } from "@gooddata/util";
|
|
4
4
|
import { useFiltersByTabNamings, useFiltersNamings } from "../../hooks/useFiltersNamings.js";
|
|
5
5
|
// Module-level, not inline `= []` / `= {}` defaults: a default parameter is evaluated per call, so an
|
|
6
6
|
// inline default hands a fresh reference to the namings memos on every render of a caller that passes
|
|
@@ -10,7 +10,7 @@ const EMPTY_FILTERS_BY_TAB = {};
|
|
|
10
10
|
export const useAutomationVisibleFilters = (availableFilters = EMPTY_FILTERS) => {
|
|
11
11
|
const filterNamings = useFiltersNamings(availableFilters);
|
|
12
12
|
return useMemo(() => {
|
|
13
|
-
return
|
|
13
|
+
return _compact(filterNamings).map((filter) => {
|
|
14
14
|
return {
|
|
15
15
|
title: filter.title,
|
|
16
16
|
localIdentifier: filter.id,
|
|
@@ -24,7 +24,7 @@ export const useAutomationVisibleFiltersByTab = (availableFilters = EMPTY_FILTER
|
|
|
24
24
|
return useMemo(() => {
|
|
25
25
|
const result = {};
|
|
26
26
|
return Object.entries(filterNamings).reduce((acc, [tabId, namings]) => {
|
|
27
|
-
acc[tabId] =
|
|
27
|
+
acc[tabId] = _compact(namings).map((naming) => ({
|
|
28
28
|
title: naming.title,
|
|
29
29
|
localIdentifier: naming.id,
|
|
30
30
|
isAllTimeDateFilter: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useValidateExistingAutomationFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,qCAAqC,EAE1C,KAAK,iBAAiB,EAEtB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,OAAO,EAEZ,KAAK,QAAQ,EACb,KAAK,wBAAwB,EAmBhC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useValidateExistingAutomationFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
-
import { differenceBy
|
|
2
|
+
import { differenceBy } from "lodash-es";
|
|
3
3
|
import { DashboardParameterModeValues, dashboardFilterLocalIdentifier, filterContextItemsToDashboardFiltersByWidget, filterLocalIdentifier, isAllDashboardMeasureValueFilter, isAllValuesAttributeFilter, isAllValuesDashboardAttributeFilter, isAttributeFilter, isAttributeFilterWithSelection, isDashboardAttributeFilter, isDashboardCommonDateFilter, isDateFilter, isInsightWidget, isLocalIdRef, isNegativeAttributeFilter, isPositiveAttributeFilter, isRelativeDateFilter, isSingleSelectionFilter, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _omit } from "@gooddata/util";
|
|
4
5
|
import { decodeParameterWireValue, getAutomationAlertParameters, getAutomationExportParametersByTab, } from "../../../../../_staging/automation/index.js";
|
|
5
6
|
import { isFilterTypeCompatibleWithSelectionType } from "../../../../../model/utils/attributeFilterSelectionTypeCompatibility.js";
|
|
6
7
|
import { useAutomationsContext } from "../../../contexts/AutomationsContext.js";
|
|
@@ -12,8 +13,8 @@ function sanitizeCommonDateFilter(filter, commonDateFilterId) {
|
|
|
12
13
|
// Sanitize common date filters by removing date dataSet
|
|
13
14
|
if (isDateFilter(filter) && filterLocalIdentifier(filter) === commonDateFilterId) {
|
|
14
15
|
return isRelativeDateFilter(filter)
|
|
15
|
-
?
|
|
16
|
-
:
|
|
16
|
+
? _omit(filter, "relativeDateFilter.dataSet")
|
|
17
|
+
: _omit(filter, "absoluteDateFilter.dataSet");
|
|
17
18
|
}
|
|
18
19
|
return filter;
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAutomationFilters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/automationFilters/useAutomationFilters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAA0C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useAutomationFilters.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/automationFilters/useAutomationFilters.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
3
|
-
import { partition } from "lodash-es";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
4
|
+
import { _partition } from "@gooddata/util";
|
|
5
5
|
import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
|
|
6
6
|
import { applyFilterChange, getCatalogAttributesByFilters, getCatalogDateDatasetsByFilters, getCatalogMeasuresByFilters, getFilterTitle, getNonHiddenFilters, getNonSelectedFilters, removeFilterFrom, resolveFilterToAdd, resolveTabFilterToAdd, } from "./utils.js";
|
|
7
7
|
/**
|
|
@@ -10,7 +10,7 @@ import { applyFilterChange, getCatalogAttributesByFilters, getCatalogDateDataset
|
|
|
10
10
|
*/
|
|
11
11
|
function computeVisibleFilters(selectedFilters, context) {
|
|
12
12
|
const nonHiddenFilters = getNonHiddenFilters(selectedFilters, context.attributeConfigs, context.dateConfigs, context.mvfConfigs, context.isCommonDateFilterHidden, context.disableDateFilters);
|
|
13
|
-
const [restrictedFilters, visibleFilters] =
|
|
13
|
+
const [restrictedFilters, visibleFilters] = _partition(nonHiddenFilters, context.isFilterRestricted);
|
|
14
14
|
return { visibleFilters, restrictedFilters };
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversions.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/filters/conversions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversions.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/shared/filters/conversions.ts"],"names":[],"mappings":"AAGA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,OAAO,EACZ,KAAK,QAAQ,EAqChB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEtF,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,iCAAiC,CAAC,OAAO,GAAG,wBAAwB,EAAE;IACnF,oBAAoB,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1C,kBAAkB,EAAE,CAAC,MAAM,EAAE,iBAAiB,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;CAC9E;AASD,eAAO,MAAM,0BAA0B,oBAClB,iBAAiB,EAAE,GAAG,SAAS,0BACxB,wBAAwB,EAAE,GAAG,SAAS,iBAC/C,OAAO,uBACD,iCAAiC,KACvD,wBAAwB,EAAE,GAAG,SAmC/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,iBAC1B,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,GAAG,SAAS,0BACrC,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,CAAC,GAAG,SAAS,iBAC/D,OAAO,uBACD,iCAAiC,CAAC,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,CAAC,CAAC,KACnG,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,CAAC,GAAG,SAuB/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,8BACL,iBAAiB,EAAE,0BACtB,iBAAiB,EAAE,UACnC,uBAAuB,GAAG,SAAS,WAClC,QAAQ,GAAG,SAAS,sBACT,MAAM,GAAG,SAAS,wBACjB,OAAO,kBACb,OAAO,cA6BzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,8BACR,iBAAiB,EAAE,0BACtB,iBAAiB,EAAE,iBAC5B,OAAO,oCAWzB,CAAC;AAEF,wBAAgB,kCAAkC,CAC9C,MAAM,EAAE,gBAAgB,EACxB,YAAY,EAAE,OAAO,GACtB,iBAAiB,GAAG,SAAS,CAiF/B;AAED;;;;;;;GAOG;AACH,wBAAgB,oCAAoC,CAChD,OAAO,EAAE,OAAO,EAAE,EAClB,OAAO,EAAE,QAAQ,GAAG,SAAS,GAC9B,OAAO,EAAE,CAiDX;AAyBD,8GAA8G;AAC9G,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAW9D;AAED,mEAAmE;AACnE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAWxE;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,EAAE,OAAO,GAAG,OAAO,CA0BhE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { NotSupported } from "@gooddata/sdk-backend-spi";
|
|
4
3
|
import { attributeLocalId, dashboardFilterLocalIdentifier, filterAttributeElements, filterContextItemsToDashboardFiltersByWidget, filterLocalIdentifier, filterObjRef, hasMeasureValueFilterConditions, insightAttributes, isAbsoluteDateFilter, isAllDashboardMeasureValueFilter, isAllTimeDateFilter, isAllValuesAttributeFilter, isAllValuesDashboardAttributeFilter, isArbitraryAttributeFilter, isAttributeFilterWithSelection, isDashboardDateFilter, isDashboardMeasureValueFilter, isDateFilter, isDateFilterGranularity, isInsightWidget, isLocalIdRef, isMatchAttributeFilter, isMeasureValueFilter, isNegativeAttributeFilter, isNoopAllTimeDashboardDateFilter, isObjRef, isRankingFilter, isRelativeBoundedDateFilter, isRelativeDateFilter, measureValueFilterConditions, measureValueFilterMeasure, mergeFilters, newAbsoluteDashboardDateFilter, newAllTimeDashboardDateFilter, newRelativeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _compact } from "@gooddata/util";
|
|
5
5
|
import { removeIgnoredWidgetFilters } from "../../../../model/utils/widgetFilters.js";
|
|
6
6
|
function findVisibleFilter(localIdentifier, visibleFilters) {
|
|
7
7
|
return (visibleFilters ?? []).find((visibleFilter) => visibleFilter.localIdentifier === localIdentifier);
|
|
@@ -32,7 +32,7 @@ export const getVisibleFiltersByFilters = (selectedFilters, visibleFiltersMetada
|
|
|
32
32
|
}
|
|
33
33
|
return targetFilter;
|
|
34
34
|
});
|
|
35
|
-
return
|
|
35
|
+
return _compact(filters);
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
38
|
* Get visible filters metadata structured by tab.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { pick } from "lodash-es";
|
|
3
3
|
import { isExportDefinitionDashboardRequestPayload, isExportDefinitionVisualizationObjectRequestPayload, isFilter, isFilterContextItem, } from "@gooddata/sdk-model";
|
|
4
|
-
import { _isEqual } from "@gooddata/util";
|
|
4
|
+
import { _isEqual, _omit } from "@gooddata/util";
|
|
5
5
|
export const isDashboardAutomation = (automation) => {
|
|
6
6
|
if (!automation) {
|
|
7
7
|
return false;
|
|
@@ -87,8 +87,8 @@ export const getAutomationAlertFilters = (automation) => {
|
|
|
87
87
|
};
|
|
88
88
|
const sortByFormat = (a, b) => a.requestPayload.format.localeCompare(b.requestPayload.format);
|
|
89
89
|
export const areAutomationsEqual = (originalAutomation, updatedAutomation) => {
|
|
90
|
-
const automationWithoutExportDefinitions =
|
|
91
|
-
const origAutomationWithoutExportDefinitions =
|
|
90
|
+
const automationWithoutExportDefinitions = _omit(updatedAutomation, "exportDefinitions");
|
|
91
|
+
const origAutomationWithoutExportDefinitions = _omit(originalAutomation, "exportDefinitions");
|
|
92
92
|
// We only want to compare requestPayload and title of exportDefinitions, rest may be omitted as it is just arbitrary
|
|
93
93
|
// metadata that is not relevant for the comparison and causes false positive results when comparing new and old def.
|
|
94
94
|
// Sorting is done just to avoid false positive result of different order of export definitions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreationPanel.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardSidebar/CreationPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreationPanel.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/DashboardSidebar/CreationPanel.tsx"],"names":[],"mappings":"AAeA,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,EAC/C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEH,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC7C,MAAM,4BAA4B,CAAC;AAkBpC,UAAU,mBAAmB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC,CAAC,EAAE,qCAAqC,CAAC;IAC7E,oCAAoC,CAAC,EAAE,qCAAqC,CAAC;IAC7E,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;IAC1D,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;IACxD,uCAAuC,CAAC,EAAE,uCAAuC,CAAC;IAClF,iCAAiC,CAAC,EAAE,iCAAiC,CAAC;CACzE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,mBAAmB,2CAyIvD"}
|
|
@@ -2,9 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { Fragment, useMemo, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import {
|
|
5
|
+
import { sortBy } from "lodash-es";
|
|
6
6
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
7
7
|
import { Typography, UiIconButton, UiTooltip } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _compact } from "@gooddata/util";
|
|
8
9
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
9
10
|
import { selectSupportsRichTextWidgets } from "../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
|
|
10
11
|
import { selectIsAiLoading } from "../../../model/store/config/configSelectors.js";
|
|
@@ -44,7 +45,7 @@ export function CreationPanel(props) {
|
|
|
44
45
|
const creating = InsightWidgetComponentSet.creating;
|
|
45
46
|
const isInsightEditorItem = creating?.CreatePanelListItemComponent === InsightEditorCreatePanelItem ||
|
|
46
47
|
creating?.CreatingPlaceholderComponent === InsightEditorPlaceholder;
|
|
47
|
-
const items =
|
|
48
|
+
const items = _compact([
|
|
48
49
|
(!isInsightEditorItem || canCreateInsightInEditor) && InsightWidgetComponentSet.creating,
|
|
49
50
|
AttributeFilterComponentSet.creating,
|
|
50
51
|
DashboardLayoutWidgetComponentSet.creating,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableInsightListCore.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DraggableInsightListCore.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMvE,wBAAgB,wBAAwB,CAAC,EACrC,oCAAoC,EACpC,QAAQ,EACR,GAAG,cAAc,EACpB,EAAE,iBAAiB,2CA0EnB"}
|
package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
import cx from "classnames";
|
|
5
4
|
import { insightCreated, insightIsLocked, insightSummary, insightTitle, insightUpdated, insightVisualizationType, } from "@gooddata/sdk-model";
|
|
6
5
|
import { InsightListItem } from "@gooddata/sdk-ui-kit";
|
|
7
6
|
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
|
|
@@ -23,7 +22,7 @@ export function DraggableInsightListCore({ WrapInsightListItemWithDragComponent,
|
|
|
23
22
|
const { LoadingComponent } = useDashboardComponentsContext();
|
|
24
23
|
const [insightToDelete, setInsightToDelete] = useState(undefined);
|
|
25
24
|
const [deletedRefs, setDeletedRefs] = useState([]);
|
|
26
|
-
return (_jsxs(_Fragment, { children: [insightToDelete ? (_jsx(DeleteInsightDialog, { insight: insightToDelete, onClose: () => setInsightToDelete(undefined), onDeleted: (ref) => setDeletedRefs((refs) => [...refs, ref]) })) : null, _jsx(InsightList, { ...remainingProps, disabled: disabled, includePermissions: shouldLoadInsightPermissionsForDelete(settings, permissions), excludeRefs: deletedRefs, renderItem: ({ item: insight, width
|
|
25
|
+
return (_jsxs(_Fragment, { children: [insightToDelete ? (_jsx(DeleteInsightDialog, { insight: insightToDelete, onClose: () => setInsightToDelete(undefined), onDeleted: (ref) => setDeletedRefs((refs) => [...refs, ref]) })) : null, _jsx(InsightList, { ...remainingProps, disabled: disabled, includePermissions: shouldLoadInsightPermissionsForDelete(settings, permissions), excludeRefs: deletedRefs, renderItem: ({ item: insight, width }) => {
|
|
27
26
|
if (!insight) {
|
|
28
27
|
return _jsx(InsightListItem, { isLoading: true });
|
|
29
28
|
}
|
|
@@ -31,17 +30,13 @@ export function DraggableInsightListCore({ WrapInsightListItemWithDragComponent,
|
|
|
31
30
|
return _jsx(InsightListDivider, {});
|
|
32
31
|
}
|
|
33
32
|
const visualizationType = insightVisualizationType(insight);
|
|
34
|
-
const classNames = cx("gd-visualizations-list-item-wrap", {
|
|
35
|
-
"is-first": isFirst,
|
|
36
|
-
"is-last": isLast,
|
|
37
|
-
});
|
|
38
33
|
const description = insightSummary(insight)?.trim();
|
|
39
34
|
const eventPayload = {
|
|
40
35
|
from: "insight",
|
|
41
36
|
type: "inherit",
|
|
42
37
|
description,
|
|
43
38
|
};
|
|
44
|
-
return (_jsx(DraggableInsightListItemWrapper, { WrapInsightListItemWithDragComponent: WrapInsightListItemWithDragComponent, title: insightTitle(insight), description: description, showDescriptionPanel: true, type: visualizationType, width: width, className:
|
|
39
|
+
return (_jsx(DraggableInsightListItemWrapper, { WrapInsightListItemWithDragComponent: WrapInsightListItemWithDragComponent, title: insightTitle(insight), description: description, showDescriptionPanel: true, type: visualizationType, width: width, className: "gd-visualizations-list-item-wrap", updated: insightUpdated(insight) ?? insightCreated(insight), isLocked: insightIsLocked(insight), insight: insight, onDescriptionPanelOpen: () => {
|
|
45
40
|
userInteraction.descriptionTooltipOpened(eventPayload);
|
|
46
41
|
}, metadataTimeZone: settings?.metadataTimeZone, useReferences: true, restrictedReferences: restrictedReferences, LoadingComponent: LoadingComponent, disabled: disabled, onDelete: !disabled &&
|
|
47
42
|
!insight.isRelated &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrillValidationMessages.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/useDrillValidationMessages.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDrillValidationMessages.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dashboard/components/useDrillValidationMessages.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAiCrD,wBAAgB,0BAA0B;;wBA+E7B,MAAM;;EAyBlB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2021-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import { compact } from "lodash-es";
|
|
5
4
|
import { defineMessages, useIntl } from "react-intl";
|
|
6
5
|
import { isWidget, widgetTitle } from "@gooddata/sdk-model";
|
|
6
|
+
import { _compact } from "@gooddata/util";
|
|
7
7
|
import { useDashboardDispatch, useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
8
8
|
import { selectIsInEditMode } from "../../../model/store/renderMode/renderModeSelectors.js";
|
|
9
9
|
import { selectWidgetsMap } from "../../../model/store/tabs/layout/layoutSelectors.js";
|
|
@@ -38,10 +38,10 @@ export function useDrillValidationMessages() {
|
|
|
38
38
|
if (!isInEditMode) {
|
|
39
39
|
return [];
|
|
40
40
|
}
|
|
41
|
-
const invalidDrillWidgets =
|
|
42
|
-
const sanitizedDrillWidgets =
|
|
43
|
-
const invalidUrlDrillWidgets =
|
|
44
|
-
return
|
|
41
|
+
const invalidDrillWidgets = _compact(invalidDrillWidgetRefs.map((ref) => allWidgets.get(ref)).filter(isWidget));
|
|
42
|
+
const sanitizedDrillWidgets = _compact(sanitizedDrillWidgetRefs.map((ref) => allWidgets.get(ref)).filter(isWidget));
|
|
43
|
+
const invalidUrlDrillWidgets = _compact(invalidUrlDrillWidgetRefs.map((ref) => allWidgets.get(ref)).filter(isWidget));
|
|
44
|
+
return _compact([
|
|
45
45
|
invalidDrillWidgets.length > 0 &&
|
|
46
46
|
{
|
|
47
47
|
id: DRILL_MESSAGE_ID,
|