@gooddata/sdk-ui-dashboard 11.68.0-alpha.1 → 11.68.0-alpha.11
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 +11779 -60424
- 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/changeDashboardDefinitionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeDashboardDefinitionHandler.js +13 -3
- 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/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/changeLayoutSectionHeaderHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/changeLayoutSectionHeaderHandler.js +2 -2
- 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/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 +12 -5
- 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/RecipientsSelect.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.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.js +3 -3
- 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/dashboardList/DashboardList.js +2 -2
- 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/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 +36 -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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { call, select, takeLatest } from "redux-saga/effects";
|
|
3
|
+
import { isInsightWidget } from "@gooddata/sdk-model";
|
|
4
|
+
import { tabsActions } from "../../store/tabs/index.js";
|
|
5
|
+
import { selectAllAnalyticalWidgets } from "../../store/tabs/layout/layoutSelectors.js";
|
|
6
|
+
import { validateDrillToCustomUrlParams } from "../common/validateDrillToCustomUrlParams.js";
|
|
7
|
+
export function newCustomUrlDrillParametersWorker() {
|
|
8
|
+
return function* customUrlDrillParametersWorker() {
|
|
9
|
+
yield takeLatest([tabsActions.addParameter.type, tabsActions.removeParameter.type], revalidateCustomUrlDrills);
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function* revalidateCustomUrlDrills() {
|
|
13
|
+
const widgets = yield select(selectAllAnalyticalWidgets);
|
|
14
|
+
yield call(validateDrillToCustomUrlParams, widgets.filter(isInsightWidget));
|
|
15
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardParameterRoots.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/parameters/dashboardParameterRoots.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dashboardParameterRoots.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/parameters/dashboardParameterRoots.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,QAAQ,EACb,KAAK,aAAa,EAKrB,MAAM,qBAAqB,CAAC;AAU7B;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,UAAU,GAAG,SAAS,EACjC,QAAQ,EAAE,QAAQ,EAAE,GACrB,aAAa,EAAE,CA+BjB;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,EAAE,CAM1E"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { uniqBy } from "lodash-es";
|
|
3
2
|
import { walkLayout } from "@gooddata/sdk-backend-spi";
|
|
4
3
|
import { isIdentifierRef, isInsightWidget, isRichTextWidget, serializeObjRef, } from "@gooddata/sdk-model";
|
|
5
4
|
import { collectReferences } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
import { _uniqBy } from "@gooddata/util";
|
|
6
6
|
import { insightWidgetDescription } from "../../../_staging/insight/insightWidgetDescription.js";
|
|
7
7
|
import { newInsightMap } from "../../../_staging/metadata/objRefMap.js";
|
|
8
8
|
import { collectFilterParameterRoots } from "../../store/tabs/parameters/parametersHelpers.js";
|
|
@@ -43,7 +43,7 @@ export function collectDashboardParameterRoots(dashboard, insights) {
|
|
|
43
43
|
...(dashboard?.filterContext?.filters ?? []),
|
|
44
44
|
];
|
|
45
45
|
roots.push(...collectFilterParameterRoots(filters));
|
|
46
|
-
return
|
|
46
|
+
return _uniqBy(roots, serializeObjRef);
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* The dependency roots of a text: the metrics and computed attributes it references, which the
|
|
@@ -57,5 +57,5 @@ export function collectTextReferenceRoots(content) {
|
|
|
57
57
|
.filter(({ type }) => type === "measure" || type === "computedAttribute")
|
|
58
58
|
.map(({ ref }) => ref)
|
|
59
59
|
.filter(isIdentifierRef);
|
|
60
|
-
return
|
|
60
|
+
return _uniqBy(roots, serializeObjRef);
|
|
61
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameterDependenciesWorker.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/parameters/parameterDependenciesWorker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parameterDependenciesWorker.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/parameters/parameterDependenciesWorker.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAiB,KAAK,aAAa,EAAmB,MAAM,qBAAqB,CAAC;AAazF,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAOnE,eAAO,MAAM,4BAA4B,8EAAiE,CAAC;AAM3G,wBAAgB,8BAA8B,UACQ,gBAAgB,KAAG,YAAY,CAAC,IAAI,CAAC,CAM1F"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { createAction } from "@reduxjs/toolkit";
|
|
3
|
-
import { uniqBy } from "lodash-es";
|
|
4
3
|
import { batchActions } from "redux-batched-actions";
|
|
5
4
|
import { call, put, select, takeEvery } from "redux-saga/effects";
|
|
6
5
|
import { serializeObjRef } from "@gooddata/sdk-model";
|
|
6
|
+
import { _uniqBy } from "@gooddata/util";
|
|
7
7
|
import { selectCatalogParameterDependencies, selectCatalogParameterDependenciesStatus, selectCatalogRequestedParameterRoots, } from "../../store/catalog/catalogSelectors.js";
|
|
8
8
|
import { catalogActions } from "../../store/catalog/index.js";
|
|
9
9
|
import { insightsActions } from "../../store/insights/index.js";
|
|
@@ -49,7 +49,7 @@ function* updateParameterDependencies(ctx, generation, action) {
|
|
|
49
49
|
const key = serializeObjRef(root);
|
|
50
50
|
return !(key in known) && !(key in requested);
|
|
51
51
|
});
|
|
52
|
-
const roots =
|
|
52
|
+
const roots = _uniqBy([...refreshRoots, ...unknownRoots], serializeObjRef);
|
|
53
53
|
yield call(loadAndMergeParameterDependencies, ctx, generation, roots);
|
|
54
54
|
}
|
|
55
55
|
function* loadAndMergeParameterDependencies(ctx, generation, roots) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderingWorker.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/render/renderingWorker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderingWorker.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/render/renderingWorker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAa,MAAM,YAAY,CAAC;AAS1D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,YAAY,CAAC;AA2BhE,wBAAgB,kBAAkB,CAAC,qBAAqB,EAAE,OAAO,CAAC,6BAA6B,CAAC,SACtD,gBAAgB,KAAG,YAAY,CAAC,IAAI,CAAC,CA8B9E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import { actionChannel, all, call, cancel, delay, join, put, race, spawn, take } from "redux-saga/effects";
|
|
4
3
|
import { v4 as uuidv4 } from "uuid";
|
|
4
|
+
import { _omit } from "@gooddata/util";
|
|
5
5
|
import { newDashboardEventPredicate } from "../../events/index.js";
|
|
6
6
|
import { renderRequested, renderResolvedWithDetails } from "../../events/render.js";
|
|
7
7
|
import { executedActions } from "../../store/executed/index.js";
|
|
@@ -37,7 +37,7 @@ export function newRenderingWorker(renderingWorkerConfig) {
|
|
|
37
37
|
// set flag
|
|
38
38
|
yield put(executedActions.setDashboardExecutionDone());
|
|
39
39
|
// Notify that the dashboard is fully rendered.
|
|
40
|
-
yield put(renderResolvedWithDetails(ctx,
|
|
40
|
+
yield put(renderResolvedWithDetails(ctx, _omit(config, "correlationIdGenerator"), correlationId));
|
|
41
41
|
}
|
|
42
42
|
catch (err) {
|
|
43
43
|
console.error("Rendering worker failed", err);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initializeAutomationsHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"initializeAutomationsHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAkD/C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AA8C/E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAWnE,wBAAiB,4BAA4B,CACzC,GAAG,EAAE,gBAAgB,EACrB,IAAI,EAAE,sBAAsB,GAC7B,YAAY,CAkTd"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { compact, omit } from "lodash-es";
|
|
3
2
|
import { batchActions } from "redux-batched-actions";
|
|
4
3
|
import { all, call, put, select } from "redux-saga/effects";
|
|
5
4
|
import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
|
|
6
5
|
import { dashboardFilterLocalIdentifier, filterLocalIdentifier, filterObjRef, idRef, insightFilters, isAbsoluteDateFilter, isAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilter, isDateFilter, isExportDefinitionDashboardRequestPayload, isExportDefinitionVisualizationObjectRequestPayload, isFilterContextItem, isInsightWidget, isMeasureValueFilter, isRankingFilter, isRelativeDateFilter, isSingleSelectionFilter, } from "@gooddata/sdk-model";
|
|
7
6
|
import { convertError } from "@gooddata/sdk-ui";
|
|
8
7
|
import { isAutomationRestricted } from "@gooddata/sdk-ui-ext";
|
|
8
|
+
import { _compact, _omit } from "@gooddata/util";
|
|
9
9
|
import { getAutomationAlertParameters, getAutomationExportParametersByTab, } from "../../../_staging/automation/index.js";
|
|
10
10
|
import { dashboardFilterToFilterContextItem } from "../../../_staging/dashboard/dashboardFilterContext.js";
|
|
11
11
|
import { isDashboardFilter } from "../../../types.js";
|
|
@@ -105,7 +105,7 @@ export function* initializeAutomationsHandler(ctx, _cmd) {
|
|
|
105
105
|
? getDashboardFiltersOnly(targetAlertFilters, commonDateFilterLocalId, insight, widget)
|
|
106
106
|
: targetAlertFilters;
|
|
107
107
|
const keepDateFilterDataSets = !!ctx.backend.capabilities.supportsMultipleDateFilters;
|
|
108
|
-
const filtersToSetAsFilterContextItems =
|
|
108
|
+
const filtersToSetAsFilterContextItems = _compact(filtersToSet.map((filter) => dashboardFilterToFilterContextItem(filter, keepDateFilterDataSets)));
|
|
109
109
|
const compatibleFiltersToSet = filtersToSetAsFilterContextItems.filter((filter) => isFilterContextItemCompatibleWithSelectionType(filter, effectiveActiveTabSelectionTypeMap, filterContextFilters));
|
|
110
110
|
// Empty alert execution filters = reset all filters (set them to all).
|
|
111
111
|
// Empty sanitized filters = keep filters as they are, do not reset them (all alert execution filters are insight specific / ignored).
|
|
@@ -129,7 +129,7 @@ export function* initializeAutomationsHandler(ctx, _cmd) {
|
|
|
129
129
|
const tabCommonDateFilterLocalId = tabCommonDateFilter?.dateFilter.localIdentifier ??
|
|
130
130
|
generateDateFilterLocalIdentifier(0);
|
|
131
131
|
const tabVisibleFilters = extractVisibleFiltersForTab(targetAutomation, tabId);
|
|
132
|
-
const compactedTabFilters =
|
|
132
|
+
const compactedTabFilters = _compact(tabFilters);
|
|
133
133
|
const filtersToSet = compactedTabFilters.filter((filter) => {
|
|
134
134
|
if (tabVisibleFilters) {
|
|
135
135
|
return tabVisibleFilters.some((f) => f.localIdentifier === dashboardFilterLocalIdentifier(filter));
|
|
@@ -277,16 +277,16 @@ function extractExportDefinitionFilters(content, activeTabLocalIdentifier) {
|
|
|
277
277
|
// Check if per-tab filters are provided and use the active tab's filters
|
|
278
278
|
if (content.content.filtersByTab && activeTabLocalIdentifier) {
|
|
279
279
|
const tabFilters = content.content.filtersByTab[activeTabLocalIdentifier];
|
|
280
|
-
return tabFilters ?
|
|
280
|
+
return tabFilters ? _compact(tabFilters) : undefined;
|
|
281
281
|
}
|
|
282
282
|
// The filters in dashboard case may be undefined or an array depending
|
|
283
283
|
// on whether they should override filter context or use live filter context.
|
|
284
|
-
return content.content.filters ?
|
|
284
|
+
return content.content.filters ? _compact(content.content.filters) : undefined;
|
|
285
285
|
}
|
|
286
286
|
if (isExportDefinitionVisualizationObjectRequestPayload(content)) {
|
|
287
287
|
// There can either be execution filters or filter context items,
|
|
288
288
|
// so we need to make sure we convert them to filter context items.
|
|
289
|
-
return
|
|
289
|
+
return _compact((content.content.filters ?? []).map((filter) => {
|
|
290
290
|
if (isFilterContextItem(filter)) {
|
|
291
291
|
return filter;
|
|
292
292
|
}
|
|
@@ -324,7 +324,7 @@ function sanitizeDateFilters(filters, commonDateFilterLocalId) {
|
|
|
324
324
|
return {
|
|
325
325
|
...filter,
|
|
326
326
|
dateFilter: {
|
|
327
|
-
...
|
|
327
|
+
..._omit(filter.dateFilter, "dataSet"),
|
|
328
328
|
},
|
|
329
329
|
};
|
|
330
330
|
}
|
|
@@ -367,10 +367,10 @@ function getDashboardFiltersOnly(filters, commonDateFilterLocalId, insight, widg
|
|
|
367
367
|
return withoutInsightDateFilters.map((f) => {
|
|
368
368
|
if (f === foundCommonFilter) {
|
|
369
369
|
if (isRelativeDateFilter(f)) {
|
|
370
|
-
return
|
|
370
|
+
return _omit(f, "relativeDateFilter.dataSet");
|
|
371
371
|
}
|
|
372
372
|
else if (isAbsoluteDateFilter(f)) {
|
|
373
|
-
return
|
|
373
|
+
return _omit(f, "absoluteDateFilter.dataSet");
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
return f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addDrillDownForInsightWidgetHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addDrillDownForInsightWidgetHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAM/C,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACH,KAAK,qCAAqC,EAE7C,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAMnE,wBAAiB,mCAAmC,CAChD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,6BAA6B,GACnC,YAAY,CAAC,qCAAqC,CAAC,CAyFrD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { put, select } from "redux-saga/effects";
|
|
4
3
|
import { getHierarchyRef } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { insightWidgetDrillDownAdded, } from "../../events/insight.js";
|
|
6
6
|
import { selectAllCatalogAttributeHierarchies } from "../../store/catalog/catalogSelectors.js";
|
|
7
7
|
import { tabsActions } from "../../store/tabs/index.js";
|
|
@@ -39,7 +39,7 @@ export function* addDrillDownForInsightWidgetHandler(ctx, cmd) {
|
|
|
39
39
|
}));
|
|
40
40
|
if (hierarchy && intersectionIgnoredAttributes) {
|
|
41
41
|
const drillDownReference = hierarchyToDrillDownReference(hierarchy, attributeIdentifier);
|
|
42
|
-
const existingIgnoredAttributesWithoutChangedItem = currentDrillDownIntersectionIgnoredAttributes?.filter((item) =>
|
|
42
|
+
const existingIgnoredAttributesWithoutChangedItem = currentDrillDownIntersectionIgnoredAttributes?.filter((item) => _isEqual(item.drillDownReference, drillDownReference)) ?? [];
|
|
43
43
|
yield put(tabsActions.replaceWidgetDrillDownIntersectionIgnoredAttributes({
|
|
44
44
|
ref: widgetRef,
|
|
45
45
|
ignoredDrillDownIntersectionIgnoredAttributes: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeKpiWidgetMeasureHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/widgets/changeKpiWidgetMeasureHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"changeKpiWidgetMeasureHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/widgets/changeKpiWidgetMeasureHandler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAY/C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAErE,OAAO,EAAE,KAAK,iCAAiC,EAA2B,MAAM,qBAAqB,CAAC;AAMtG,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AA2EnE;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAiB,6BAA6B,CAC1C,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,uBAAuB,GAC7B,YAAY,CAAC,iCAAiC,CAAC,CAsDjD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { batchActions } from "redux-batched-actions";
|
|
4
3
|
import { call, put, select } from "redux-saga/effects";
|
|
5
4
|
import { objRefToString, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { newCatalogDateDatasetMap } from "../../../_staging/metadata/objRefMap.js";
|
|
7
7
|
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
8
8
|
import { kpiWidgetMeasureChanged } from "../../events/kpi.js";
|
|
@@ -41,7 +41,7 @@ function* determineDateDatasetToUse(widget, measure) {
|
|
|
41
41
|
const measureDateDatasets = yield call(query, queryDateDatasetsForMeasure(measure.measure.ref));
|
|
42
42
|
const catalogDataSet = newCatalogDateDatasetMap(measureDateDatasets.dateDatasets).get(widget.dateDataSet);
|
|
43
43
|
if (!catalogDataSet) {
|
|
44
|
-
if (!
|
|
44
|
+
if (!_isEmpty(measureDateDatasets.dateDatasetsOrdered)) {
|
|
45
45
|
return measureDateDatasets.dateDatasetsOrdered[0];
|
|
46
46
|
}
|
|
47
47
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modifyDrillDownForInsightWidgetHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modifyDrillDownForInsightWidgetHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAM/C,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAClF,OAAO,EACH,KAAK,wCAAwC,EAEhD,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAMnE,wBAAiB,sCAAsC,CACnD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,gCAAgC,GACtC,YAAY,CAAC,wCAAwC,CAAC,CAuExD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { put, select } from "redux-saga/effects";
|
|
4
3
|
import { getHierarchyRef } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { insightWidgetDrillDownModified, } from "../../events/insight.js";
|
|
6
6
|
import { selectAllCatalogAttributeHierarchies } from "../../store/catalog/catalogSelectors.js";
|
|
7
7
|
import { tabsActions } from "../../store/tabs/index.js";
|
|
@@ -32,7 +32,7 @@ export function* modifyDrillDownForInsightWidgetHandler(ctx, cmd) {
|
|
|
32
32
|
}));
|
|
33
33
|
if (hierarchy && intersectionIgnoredAttributes) {
|
|
34
34
|
const drillDownReference = hierarchyToDrillDownReference(hierarchy, attributeIdentifier);
|
|
35
|
-
const existingIgnoredAttributesWithoutChangedItem = currentDrillDownIntersectionIgnoredAttributes?.filter((item) => !
|
|
35
|
+
const existingIgnoredAttributesWithoutChangedItem = currentDrillDownIntersectionIgnoredAttributes?.filter((item) => !_isEqual(item.drillDownReference, drillDownReference)) ?? [];
|
|
36
36
|
yield put(tabsActions.replaceWidgetDrillDownIntersectionIgnoredAttributes({
|
|
37
37
|
ref: widgetRef,
|
|
38
38
|
ignoredDrillDownIntersectionIgnoredAttributes: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeDrillDownForInsightWidgetHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"removeDrillDownForInsightWidgetHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAClF,OAAO,EACH,KAAK,uCAAuC,EAE/C,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAInE,wBAAiB,sCAAsC,CACnD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,gCAAgC,GACtC,YAAY,CAAC,uCAAuC,CAAC,CA6CvD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { put, select } from "redux-saga/effects";
|
|
3
|
+
import { _isEqual } from "@gooddata/util";
|
|
4
4
|
import { insightWidgetDrillDownRemoved, } from "../../events/insight.js";
|
|
5
5
|
import { tabsActions } from "../../store/tabs/index.js";
|
|
6
6
|
import { selectWidgetsMap } from "../../store/tabs/layout/layoutSelectors.js";
|
|
@@ -18,7 +18,7 @@ export function* removeDrillDownForInsightWidgetHandler(ctx, cmd) {
|
|
|
18
18
|
cmd,
|
|
19
19
|
},
|
|
20
20
|
}));
|
|
21
|
-
const drillIntersectionIgnoredAttributesWithoutBlacklistedHierarchies = currentDrillDownIntersectionIgnoredAttributes?.filter((ignoredIntersectionAttributes) => !newBlacklistHierarchies.some((hierarchy) =>
|
|
21
|
+
const drillIntersectionIgnoredAttributesWithoutBlacklistedHierarchies = currentDrillDownIntersectionIgnoredAttributes?.filter((ignoredIntersectionAttributes) => !newBlacklistHierarchies.some((hierarchy) => _isEqual(hierarchy, ignoredIntersectionAttributes.drillDownReference)));
|
|
22
22
|
yield put(tabsActions.replaceWidgetDrillDownIntersectionIgnoredAttributes({
|
|
23
23
|
ref: widgetRef,
|
|
24
24
|
ignoredDrillDownIntersectionIgnoredAttributes: drillIntersectionIgnoredAttributesWithoutBlacklistedHierarchies ?? [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterValidation.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/widgets/validation/filterValidation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filterValidation.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/widgets/validation/filterValidation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,MAAM,EAKd,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAenE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGtE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAiB,yCAAyC,CACtD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,EACtB,MAAM,EAAE,cAAc,EACtB,WAAW,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,QAAQ,GAC3B,YAAY,CAAC,mBAAmB,CAAC,CAsBnC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAiB,0CAA0C,CACvD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,EACtB,MAAM,EAAE,eAAe,EACvB,WAAW,EAAE,MAAM,GACpB,YAAY,CAAC,mBAAmB,CAAC,CAsBnC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAiB,qCAAqC,CAClD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,EACtB,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,MAAM,GACpB,YAAY,CAAC,mBAAmB,CAAC,CAkBnC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAiB,gCAAgC,CAC7C,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,EACtB,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,MAAM,EAAE,GACnB,YAAY,CAAC,4BAA4B,EAAE,CAAC,CAuD9C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAiB,2BAA2B,CACxC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,EACtB,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,MAAM,EAAE,GACnB,YAAY,CAAC,oBAAoB,EAAE,CAAC,CA6CtC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty, partition } from "lodash-es";
|
|
3
2
|
import { call, select } from "redux-saga/effects";
|
|
4
3
|
import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, objRefToString, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEmpty, _partition } from "@gooddata/util";
|
|
5
5
|
import { newInsight } from "../../../../_staging/insight/insightBuilder.js";
|
|
6
6
|
import { newCatalogDateDatasetMap } from "../../../../_staging/metadata/objRefMap.js";
|
|
7
7
|
import { invalidArgumentsProvided } from "../../../events/general.js";
|
|
@@ -132,7 +132,7 @@ export function* validateDatasetForKpiWidgetDateFilter(ctx, cmd, widget, dateDat
|
|
|
132
132
|
export function* validateAttributeFiltersToIgnore(ctx, cmd, _widget, toIgnore) {
|
|
133
133
|
const resolvedDisplayForms = yield call(resolveDisplayFormMetadata, ctx, toIgnore);
|
|
134
134
|
const { missing, resolved } = resolvedDisplayForms;
|
|
135
|
-
if (!
|
|
135
|
+
if (!_isEmpty(missing)) {
|
|
136
136
|
throw invalidArgumentsProvided(ctx, cmd, `Attempting to disable attribute filters but some of the display form refs to disable filters by do not exist: ${missing
|
|
137
137
|
.map(objRefToString)
|
|
138
138
|
.join(", ")}`);
|
|
@@ -155,7 +155,7 @@ export function* validateAttributeFiltersToIgnore(ctx, cmd, _widget, toIgnore) {
|
|
|
155
155
|
badIgnores.push(toIgnore.ref);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
if (!
|
|
158
|
+
if (!_isEmpty(badIgnores)) {
|
|
159
159
|
throw invalidArgumentsProvided(ctx, cmd, `Attempting to disable attribute filters but some of the display form refs to disable filters by are not used for filtering at all: ${badIgnores
|
|
160
160
|
.map(objRefToString)
|
|
161
161
|
.join(", ")}`);
|
|
@@ -180,8 +180,8 @@ export function* validateAttributeFiltersToIgnore(ctx, cmd, _widget, toIgnore) {
|
|
|
180
180
|
*/
|
|
181
181
|
export function* validateDateFiltersToIgnore(ctx, cmd, _widget, toIgnore) {
|
|
182
182
|
const allAvailableDateDatasetsMap = yield select(selectAllCatalogDateDatasetsMap);
|
|
183
|
-
const [resolved, missing] =
|
|
184
|
-
if (!
|
|
183
|
+
const [resolved, missing] = _partition(toIgnore, (ref) => allAvailableDateDatasetsMap.has(ref));
|
|
184
|
+
if (!_isEmpty(missing)) {
|
|
185
185
|
throw invalidArgumentsProvided(ctx, cmd, `Attempting to disable date filters but some of the date data set refs to disable filters by do not exist: ${missing
|
|
186
186
|
.map(objRefToString)
|
|
187
187
|
.join(", ")}`);
|
|
@@ -198,7 +198,7 @@ export function* validateDateFiltersToIgnore(ctx, cmd, _widget, toIgnore) {
|
|
|
198
198
|
badIgnores.push(toIgnore);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
if (!
|
|
201
|
+
if (!_isEmpty(badIgnores)) {
|
|
202
202
|
throw invalidArgumentsProvided(ctx, cmd, `Attempting to disable date filters but some of the date data set refs to disable filters by are not used for filtering at all: ${badIgnores
|
|
203
203
|
.map(objRefToString)
|
|
204
204
|
.join(", ")}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightDrillDefinitionUtils.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/widgets/validation/insightDrillDefinitionUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"insightDrillDefinitionUtils.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/widgets/validation/insightDrillDefinitionUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,mCAAmC,EACxC,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EAGtB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,MAAM,EAYd,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAQ/D,OAAO,EAAE,KAAK,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ACjC,eAAe,EAAE,SAAS,CAAC,mCAAmC,CAAC,CAAC;IAChE,qBAAqB,EAAE,sBAAsB,CAAC;IAC9C,yBAAyB,EAAE,SAAS,CAAC,sBAAsB,CAAC,CAAC;IAC7D,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,oBAAoB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;CACrD;AAED,wBAAgB,8BAA8B,CAC1C,eAAe,EAAE,sBAAsB,EACvC,iBAAiB,EAAE,qCAAqC,GACzD,sBAAsB,CAkBxB;AAyMD,wBAAgB,kCAAkC,CAC9C,eAAe,EAAE,iBAAiB,EAClC,iBAAiB,EAAE,qCAAqC,GACzD,iBAAiB,CAenB;AAED,wBAAgB,qCAAqC,CACjD,eAAe,EAAE,oBAAoB,EACrC,iBAAiB,EAAE,qCAAqC,GACzD,oBAAoB,CAwCtB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { areObjRefsEqual, dashboardFilterLocalIdentifier, idRef, isDrillFromAttribute, isDrillFromMeasure, isDrillToAttributeUrl, isDrillToCustomUrl, isDrillToDashboard, isDrillToInsight, isListedDashboard, objRefToString, } from "@gooddata/sdk-model";
|
|
4
3
|
import { getAttributeIdentifiersPlaceholdersFromUrl, getDashboardAttributeFilterPlaceholdersFromUrl, getInsightAttributeFilterPlaceholdersFromUrl, } from "@gooddata/sdk-model/internal";
|
|
5
|
-
import { combineGuards } from "@gooddata/util";
|
|
4
|
+
import { _isEqual, combineGuards } from "@gooddata/util";
|
|
6
5
|
import { getDrillOriginLocalIdentifier, getSourceMeasureFiltersForDrillDefinition, isMatchingSourceInsightFilter, } from "../../../../_staging/drills/drillingUtils.js";
|
|
7
6
|
import { isDisplayFormRelevantToDrill } from "../../common/isDisplayFormRelevantToDrill.js";
|
|
8
7
|
export function validateDrillDefinitionOrigin(drillDefinition, drillTargets) {
|
|
@@ -45,14 +44,14 @@ export function validateDrillDefinitionByLocalIdentifier(ref, drillDefinitionArr
|
|
|
45
44
|
return result;
|
|
46
45
|
}
|
|
47
46
|
export function wasDrillFilterConfigurationSanitized(originalDrillDefinition, validatedDrillDefinition) {
|
|
48
|
-
if (!
|
|
47
|
+
if (!_isEqual(originalDrillDefinition.drillIntersectionIgnoredAttributes ?? [], validatedDrillDefinition.drillIntersectionIgnoredAttributes ?? [])) {
|
|
49
48
|
return true;
|
|
50
49
|
}
|
|
51
50
|
if ((isDrillToInsight(originalDrillDefinition) && isDrillToInsight(validatedDrillDefinition)) ||
|
|
52
51
|
(isDrillToDashboard(originalDrillDefinition) && isDrillToDashboard(validatedDrillDefinition))) {
|
|
53
|
-
return (!
|
|
54
|
-
!
|
|
55
|
-
!
|
|
52
|
+
return (!_isEqual(originalDrillDefinition.includedSourceInsightFiltersObjRefs ?? [], validatedDrillDefinition.includedSourceInsightFiltersObjRefs ?? []) ||
|
|
53
|
+
!_isEqual(originalDrillDefinition.includedSourceMeasureFiltersObjRefs ?? [], validatedDrillDefinition.includedSourceMeasureFiltersObjRefs ?? []) ||
|
|
54
|
+
!_isEqual(originalDrillDefinition.ignoredDashboardFilters ?? [], validatedDrillDefinition.ignoredDashboardFilters ?? []));
|
|
56
55
|
}
|
|
57
56
|
return false;
|
|
58
57
|
}
|
package/esm/model/events/base.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
3
|
/**
|
|
4
4
|
* Tests whether object is an instance of {@link IDashboardEvent}.
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@ import { isEmpty } from "lodash-es";
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export function isDashboardEvent(obj) {
|
|
10
|
-
return !
|
|
10
|
+
return !_isEmpty(obj) && obj.type?.startsWith("GDC.DASH/EVT");
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Tests whether object is an instance of {@link ICustomDashboardEvent}.
|
|
@@ -16,7 +16,7 @@ export function isDashboardEvent(obj) {
|
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
18
|
export function isCustomDashboardEvent(obj) {
|
|
19
|
-
return !
|
|
19
|
+
return !_isEmpty(obj) && obj.type?.startsWith("CUSTOM/EVT");
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Tests whether object is an instance of {@link IDashboardEvent} or {@link ICustomDashboardEvent}.
|
|
@@ -109,16 +109,23 @@ export type DashboardSavedPayload = {
|
|
|
109
109
|
*/
|
|
110
110
|
readonly newDashboard: boolean;
|
|
111
111
|
/**
|
|
112
|
-
* Identifier of the dashboard definition before it was persisted. This is present when
|
|
113
|
-
* dashboard draft was saved and can differ from the identifier of dashboard
|
|
112
|
+
* Identifier of the dashboard definition before it was persisted. This is present when a
|
|
113
|
+
* dashboard draft was saved and can differ from the identifier of `dashboard`.
|
|
114
114
|
*
|
|
115
|
-
* @
|
|
115
|
+
* @remarks
|
|
116
|
+
* Use this identifier to associate a Copilot proposal with `dashboard.identifier` after saving.
|
|
117
|
+
*
|
|
118
|
+
* @alpha
|
|
116
119
|
*/
|
|
117
120
|
readonly originalDashboardId?: string;
|
|
118
121
|
/**
|
|
119
122
|
* Draft insights persisted as part of the dashboard save.
|
|
120
123
|
*
|
|
121
|
-
* @
|
|
124
|
+
* @remarks
|
|
125
|
+
* Each mapping associates an original draft insight identifier with the saved insight identifier.
|
|
126
|
+
* Only insights created by this save are included. Empty when none were created.
|
|
127
|
+
*
|
|
128
|
+
* @alpha
|
|
122
129
|
*/
|
|
123
130
|
readonly savedInsights?: ReadonlyArray<{
|
|
124
131
|
readonly originalInsightId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../src/model/events/dashboard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,K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BAAwB,EAAE,OAAO,CAAC;CACrC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,yCAA0C,SAAQ,eAAe;IAC9E,QAAQ,CAAC,IAAI,EAAE,iDAAiD,CAAC;IACjE,QAAQ,CAAC,OAAO,EAAE,gDAAgD,CAAC;CACtE;AAED,wBAAgB,wCAAwC,CACpD,GAAG,EAAE,gBAAgB,EACrB,wBAAwB,EAAE,OAAO,EACjC,aAAa,CAAC,EAAE,MAAM,GACvB,yCAAyC,CAS3C;AAED;;;;;GAKG;AACH,eAAO,MAAM,0CAA0C,oEACqD,CAAC;AAE7G;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEpD;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;CAC9C;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,eAAe;IAChE,QAAQ,CAAC,IAAI,EAAE,iCAAiC,CAAC;IACjD,QAAQ,CAAC,OAAO,EAAE,kCAAkC,CAAC;CACxD;AAED,wBAAgB,0BAA0B,CACtC,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAE,UAAU,EACrB,UAAU,EAAE,OAAO,CAAC,oBAAoB,CAAC,GAAG,aAAa,CAAC,QAAQ,CAAC,EACnE,aAAa,CAAC,EAAE,MAAM,GACvB,2BAA2B,CAe7B;AAED;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,sDAExC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/model/events/util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/model/events/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAClB,MAAM,SAAS,eAAe,QAAQ,MAAM,CAAC,MAAM,CAAC,WAC/C,OAAO,KAAG,GAAG,IAAI,MAEtB,CAAC"}
|
package/esm/model/events/util.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// (C) 2021 GoodData Corporation
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2021-2026 GoodData Corporation
|
|
2
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a type guard for a given {@link IDashboardEvent} subtype.
|
|
5
5
|
*
|
|
@@ -7,5 +7,5 @@ import { isEmpty } from "lodash-es";
|
|
|
7
7
|
* @typeParam TEvent - type of the event to check
|
|
8
8
|
*/
|
|
9
9
|
export const eventGuard = (type) => (obj) => {
|
|
10
|
-
return !
|
|
10
|
+
return !_isEmpty(obj) && obj.type === type;
|
|
11
11
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { call, select } from "redux-saga/effects";
|
|
4
3
|
import { serializeObjRef } from "@gooddata/sdk-model";
|
|
4
|
+
import { _compact } from "@gooddata/util";
|
|
5
5
|
import { invalidQueryArguments } from "../events/general.js";
|
|
6
6
|
import { createCachedQueryService } from "../store/_infra/queryService.js";
|
|
7
7
|
import { selectAttributeFilterDisplayFormsMap } from "../store/tabs/filterContext/filterContextSelectors.js";
|
|
@@ -33,7 +33,7 @@ function* mapDisplayFormsToAttributes(refs) {
|
|
|
33
33
|
function* queryService(ctx, query) {
|
|
34
34
|
const { payload: { refs }, correlationId, } = query;
|
|
35
35
|
const attributeRefs = yield call(mapDisplayFormsToAttributes, refs);
|
|
36
|
-
const nonEmptyAttributesRef =
|
|
36
|
+
const nonEmptyAttributesRef = _compact(attributeRefs.map((refsEntry) => _compact(refsEntry)));
|
|
37
37
|
if (refs.length !== nonEmptyAttributesRef.length) {
|
|
38
38
|
throw invalidQueryArguments(ctx, `Cannot find attributes for given displayForms`, correlationId);
|
|
39
39
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { uniqBy } from "lodash-es";
|
|
3
2
|
import { call, select } from "redux-saga/effects";
|
|
4
3
|
import { invariant } from "ts-invariant";
|
|
5
4
|
import { computedAttributeAsAttributeMetadataObject, insightDisplayFormUsage, insightRef, isObjRef, objRefToString, serializeObjRef, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _uniqBy } from "@gooddata/util";
|
|
6
6
|
import { loadComputedAttributesByRefs, partitionComputedAttributeRefs, } from "../../_staging/catalog/computedAttributes.js";
|
|
7
7
|
import { invalidQueryArguments } from "../events/general.js";
|
|
8
8
|
import { createCachedQueryService } from "../store/_infra/queryService.js";
|
|
@@ -84,8 +84,8 @@ async function createInsightAttributesMeta(ctx, usage, catalogDisplayForms, cata
|
|
|
84
84
|
const { loadedDisplayForms, loadedAttributes } = await loadDisplayFormsAndAttributes(ctx, missingDisplayForms);
|
|
85
85
|
return {
|
|
86
86
|
usage,
|
|
87
|
-
attributes:
|
|
88
|
-
displayForms:
|
|
87
|
+
attributes: _uniqBy([...attributesFromCatalog, ...loadedAttributes], (a) => serializeObjRef(a.ref)),
|
|
88
|
+
displayForms: _uniqBy([...displayFormsFromCatalog, ...loadedDisplayForms], (df) => serializeObjRef(df.ref)),
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
function* queryService(ctx, query) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { compact, uniqBy } from "lodash-es";
|
|
3
2
|
import { call, select } from "redux-saga/effects";
|
|
4
3
|
import { invariant } from "ts-invariant";
|
|
5
4
|
import { filterObjRef, insightFilters, insightRef, isCatalogDateDataset, isDateFilter, isObjRef, objRefToString, serializeObjRef, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _compact, _uniqBy } from "@gooddata/util";
|
|
6
6
|
import { sanitizeDateDatasetTitle, sortByRelevanceAndTitle, } from "../../_staging/catalog/dateDatasetOrdering.js";
|
|
7
7
|
import { newDisplayFormMap } from "../../_staging/metadata/objRefMap.js";
|
|
8
8
|
import { invalidQueryArguments } from "../events/general.js";
|
|
@@ -75,8 +75,8 @@ function* lookupDatasetsUsedInAttributesAndFilters(insight, attributeToDataset)
|
|
|
75
75
|
return attributeToDataset.get(attributeRef)?.dataset;
|
|
76
76
|
};
|
|
77
77
|
return {
|
|
78
|
-
usedInAttributes:
|
|
79
|
-
usedInAttributeFilters:
|
|
78
|
+
usedInAttributes: _compact(inAttributes.map(datasetLookup)),
|
|
79
|
+
usedInAttributeFilters: _compact(inFilters.map(datasetLookup)),
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
function* lookupDatasetsInInsight(insight) {
|
|
@@ -122,7 +122,7 @@ function* queryService(ctx, query) {
|
|
|
122
122
|
const usedInInsight = yield call(lookupDatasetsInInsight, insight);
|
|
123
123
|
const { usedInDateFilters, usedInAttributes, usedInAttributeFilters } = usedInInsight;
|
|
124
124
|
const mostImportantFromInsight = usedInDateFilters[0] ?? usedInAttributes[0] ?? usedInAttributeFilters[0];
|
|
125
|
-
const allAvailableDateDatasets =
|
|
125
|
+
const allAvailableDateDatasets = _uniqBy([...dateDatasets, ...usedInDateFilters, ...usedInAttributes, ...usedInAttributeFilters].filter(isCatalogDateDataset), (d) => serializeObjRef(d.dataSet.ref));
|
|
126
126
|
const dateDatasetDisplayNames = Object.fromEntries(allAvailableDateDatasets.map((d) => [d.dataSet.title, sanitizeDateDatasetTitle(d)]));
|
|
127
127
|
return {
|
|
128
128
|
dateDatasets,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInitializeDashboardStore.d.ts","sourceRoot":"","sources":["../../../src/model/react/useInitializeDashboardStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInitializeDashboardStore.d.ts","sourceRoot":"","sources":["../../../src/model/react/useInitializeDashboardStore.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,KAAK,sBAAsB,EAAwB,MAAM,4BAA4B,CAAC;AAI/F,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAkE/D;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,UAC7B,4BAA4B,KACpC,sBAAsB,GAAG,IAsG3B,CAAC"}
|