@gooddata/sdk-ui-dashboard 11.68.0-alpha.0 → 11.68.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +11781 -60390
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/automation/index.d.ts.map +1 -1
- package/esm/_staging/automation/index.js +6 -5
- package/esm/_staging/catalog/computedAttributes.d.ts.map +1 -1
- package/esm/_staging/catalog/computedAttributes.js +2 -2
- package/esm/_staging/dashboard/dashboardLayout.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardLayout.js +3 -2
- package/esm/_staging/dashboard/flexibleLayout/facade/item.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/facade/item.js +2 -2
- package/esm/_staging/dashboard/flexibleLayout/facade/section.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/facade/section.js +4 -4
- package/esm/_staging/dateFilterConfig/merge.d.ts.map +1 -1
- package/esm/_staging/dateFilterConfig/merge.js +2 -2
- package/esm/_staging/dateFilterConfig/validation.d.ts.map +1 -1
- package/esm/_staging/dateFilterConfig/validation.js +3 -3
- package/esm/_staging/drills/drillingUtils.d.ts.map +1 -1
- package/esm/_staging/drills/drillingUtils.js +2 -2
- package/esm/_staging/objectUtils/setOrDelete.d.ts.map +1 -1
- package/esm/_staging/objectUtils/setOrDelete.js +3 -3
- package/esm/_staging/sharedHooks/useEventToastMessage.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useEventToastMessage.js +3 -3
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.d.ts.map +1 -1
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.js +2 -2
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/kdaDialog/components/KdaKeyDriverChart.d.ts.map +1 -1
- package/esm/kdaDialog/components/KdaKeyDriverChart.js +1 -2
- package/esm/kdaDialog/components/bars/AttributeBar.d.ts.map +1 -1
- package/esm/kdaDialog/components/bars/AttributeBar.js +11 -6
- package/esm/kdaDialog/composition/AddFilterButton.d.ts +3 -1
- package/esm/kdaDialog/composition/AddFilterButton.d.ts.map +1 -1
- package/esm/kdaDialog/composition/AddFilterButton.js +4 -4
- package/esm/kdaDialog/composition/FiltersBar.d.ts.map +1 -1
- package/esm/kdaDialog/composition/FiltersBar.js +23 -1
- package/esm/kdaDialog/composition/KeyDriversFooter.d.ts.map +1 -1
- package/esm/kdaDialog/composition/KeyDriversFooter.js +8 -5
- package/esm/kdaDialog/composition/hooks/usePeriodChangeHandler.js +11 -9
- package/esm/kdaDialog/types.d.ts +5 -0
- package/esm/kdaDialog/types.d.ts.map +1 -1
- package/esm/kdaDialog/utils.d.ts.map +1 -1
- package/esm/kdaDialog/utils.js +4 -1
- package/esm/model/DashboardTester.d.ts.map +1 -1
- package/esm/model/DashboardTester.js +2 -0
- package/esm/model/commandHandlers/common/drillRevalidationUtils.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/drillRevalidationUtils.js +3 -3
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +23 -6
- package/esm/model/commandHandlers/common/validateDrills.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrills.js +2 -2
- package/esm/model/commandHandlers/dashboard/changeSharingHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeSharingHandler.js +2 -2
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +7 -7
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +5 -4
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +2 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadInaccessibleDashboards.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadInaccessibleDashboards.js +3 -3
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.js +2 -2
- package/esm/model/commandHandlers/dashboard/saveDashboardHandler.js +1 -1
- package/esm/model/commandHandlers/drill/assertSafeDrillUrl.d.ts +4 -0
- package/esm/model/commandHandlers/drill/assertSafeDrillUrl.d.ts.map +1 -0
- package/esm/model/commandHandlers/drill/assertSafeDrillUrl.js +8 -0
- package/esm/model/commandHandlers/drill/common/filterValuesResolver.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/common/filterValuesResolver.js +2 -2
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js +2 -2
- package/esm/model/commandHandlers/drill/drillToAttributeUrlHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToAttributeUrlHandler.js +2 -0
- package/esm/model/commandHandlers/drill/drillToCustomUrlHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToCustomUrlHandler.js +2 -0
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +4 -4
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.js +33 -4
- package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.js +3 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/replaceAttributeFilterItemSelectionHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/setAttributeFilterParentHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/setAttributeFilterParentHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/computedAttributesEnabledValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/computedAttributesEnabledValidation.js +2 -2
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +8 -8
- package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.js +4 -4
- package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.js +3 -2
- package/esm/model/commandHandlers/layout/addLayoutSectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/addLayoutSectionHandler.js +2 -2
- package/esm/model/commandHandlers/layout/addSectionItemsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/addSectionItemsHandler.js +3 -3
- package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.js +2 -2
- package/esm/model/commandHandlers/layout/replaceSectionItemHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/replaceSectionItemHandler.js +3 -3
- package/esm/model/commandHandlers/layout/validation/itemValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/validation/itemValidation.js +2 -2
- package/esm/model/commandHandlers/layout/validation/layoutValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/validation/layoutValidation.js +6 -6
- package/esm/model/commandHandlers/parameters/changeParameterValuesHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/changeParameterValuesHandler.js +2 -2
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts +3 -0
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts.map +1 -0
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.js +15 -0
- package/esm/model/commandHandlers/parameters/dashboardParameterRoots.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/dashboardParameterRoots.js +3 -3
- package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.js +2 -2
- package/esm/model/commandHandlers/render/renderingWorker.d.ts.map +1 -1
- package/esm/model/commandHandlers/render/renderingWorker.js +2 -2
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +9 -9
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/changeKpiWidgetMeasureHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/changeKpiWidgetMeasureHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/validation/filterValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.js +6 -6
- package/esm/model/commandHandlers/widgets/validation/insightDrillDefinitionUtils.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/insightDrillDefinitionUtils.js +5 -6
- package/esm/model/commands/filters.d.ts +16 -0
- package/esm/model/commands/filters.d.ts.map +1 -1
- package/esm/model/commands/filters.js +21 -0
- package/esm/model/events/base.js +3 -3
- package/esm/model/events/dashboard.d.ts +11 -4
- package/esm/model/events/dashboard.d.ts.map +1 -1
- package/esm/model/events/util.d.ts.map +1 -1
- package/esm/model/events/util.js +3 -3
- package/esm/model/queryServices/queryConnectingAttributes.js +2 -2
- package/esm/model/queryServices/queryInsightAttributesMeta.js +3 -3
- package/esm/model/queryServices/queryInsightDateDatasets.js +4 -4
- package/esm/model/react/useInitializeDashboardStore.d.ts.map +1 -1
- package/esm/model/react/useInitializeDashboardStore.js +7 -0
- package/esm/model/react/useWidgetFilters.d.ts.map +1 -1
- package/esm/model/react/useWidgetFilters.js +2 -2
- package/esm/model/store/_infra/queryProcessing.d.ts.map +1 -1
- package/esm/model/store/_infra/queryProcessing.js +3 -2
- package/esm/model/store/_infra/queryService.d.ts.map +1 -1
- package/esm/model/store/_infra/queryService.js +4 -3
- package/esm/model/store/_infra/selectors.d.ts.map +1 -1
- package/esm/model/store/_infra/selectors.js +3 -3
- package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.js +7 -6
- package/esm/model/store/config/configSelectors.d.ts +0 -6
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +0 -8
- package/esm/model/store/dashboardStore.d.ts +4 -0
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +9 -3
- package/esm/model/store/drillTargets/drillTargetsSelectors.d.ts.map +1 -1
- package/esm/model/store/drillTargets/drillTargetsSelectors.js +2 -2
- package/esm/model/store/meta/metaSelectors.d.ts +16 -1
- package/esm/model/store/meta/metaSelectors.d.ts.map +1 -1
- package/esm/model/store/meta/metaSelectors.js +63 -12
- package/esm/model/store/tabs/dateFilterConfig/dateFilterConfigReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/dateFilterConfig/dateFilterConfigReducers.js +3 -3
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +5 -5
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js +11 -10
- package/esm/model/store/tabs/filterContext/filterContextUtils.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextUtils.js +2 -2
- package/esm/model/store/tabs/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/layout/layoutSelectors.js +3 -3
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +7 -0
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +31 -9
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +21 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +29 -4
- package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +11 -12
- package/esm/model/types/dateFilterTypes.d.ts.map +1 -1
- package/esm/model/types/dateFilterTypes.js +3 -3
- package/esm/model/types/layoutTypes.d.ts.map +1 -1
- package/esm/model/types/layoutTypes.js +8 -8
- package/esm/model/types/widgetTypes.d.ts.map +1 -1
- package/esm/model/types/widgetTypes.js +2 -2
- package/esm/model/utils/alertsUtils.d.ts.map +1 -1
- package/esm/model/utils/alertsUtils.js +2 -2
- package/esm/model/utils/filterResolver.d.ts.map +1 -1
- package/esm/model/utils/filterResolver.js +2 -2
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.js +5 -5
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.js +1 -1
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.js +9 -5
- package/esm/presentation/automations/alerting/state/useAlertFormValidation.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertFormValidation.js +2 -2
- package/esm/presentation/automations/alerting/utils/items.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/utils/items.js +20 -23
- package/esm/presentation/automations/alerting/utils/transformation.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/utils/transformation.js +2 -2
- package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.js +2 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js +2 -2
- package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.js +2 -2
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js +14 -14
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts +1 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.js +10 -4
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.js +2 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.js +3 -3
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.js +4 -3
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.js +2 -2
- package/esm/presentation/automations/shared/automationFilters/utils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/utils.js +6 -6
- package/esm/presentation/automations/shared/filters/conversions.d.ts.map +1 -1
- package/esm/presentation/automations/shared/filters/conversions.js +2 -2
- package/esm/presentation/automations/shared/utils/automationUtils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/utils/automationUtils.js +6 -5
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +3 -2
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js +2 -7
- package/esm/presentation/dashboard/components/useDrillValidationMessages.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/useDrillValidationMessages.js +5 -5
- package/esm/presentation/dashboard/defaultDashboardThemeModifier.d.ts.map +1 -1
- package/esm/presentation/dashboard/defaultDashboardThemeModifier.js +4 -4
- package/esm/presentation/dashboard/types.d.ts +2 -0
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/useDialogData.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/useDialogData.js +2 -2
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.js +2 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +34 -9
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts +3 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.js +3 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts +7 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts.map +1 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.js +20 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.d.ts +2 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.js +7 -4
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +4 -4
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.d.ts.map +1 -1
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.js +2 -2
- package/esm/presentation/drill/types.d.ts.map +1 -1
- package/esm/presentation/drill/types.js +10 -9
- package/esm/presentation/drill/utils/drillDownUtils.d.ts.map +1 -1
- package/esm/presentation/drill/utils/drillDownUtils.js +4 -3
- package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributeListItem.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributeListItem.js +2 -3
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.js +3 -3
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useParentsConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useParentsConfiguration.js +2 -2
- package/esm/presentation/filterBar/filterBar/DefaultDashboardFilterGroup.js +2 -2
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +4 -3
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js +3 -2
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.js +2 -2
- package/esm/presentation/insightEditor/filterContext/attributeFilters.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/attributeFilters.js +2 -2
- package/esm/presentation/insightEditor/filterContext/filterIntersection.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/filterIntersection.js +3 -3
- package/esm/presentation/insightEditor/filterContext/insightFilterContext.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/insightFilterContext.js +2 -2
- package/esm/presentation/insightList/InsightList.d.ts.map +1 -1
- package/esm/presentation/insightList/InsightList.js +2 -9
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +24 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +24 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +14 -5
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +23 -14
- package/esm/presentation/localization/translations.d.ts.map +1 -1
- package/esm/presentation/localization/translations.js +2 -3
- package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.js +2 -2
- package/esm/presentation/widget/common/configuration/DateDatasetDropdown.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/DateDatasetDropdown.js +2 -2
- package/esm/presentation/widget/common/configuration/utils.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/utils.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/useDashboardInsightDrills.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/useDashboardInsightDrills.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getTitleWithBreadcrumbs.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getTitleWithBreadcrumbs.js +3 -3
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogInsightDrills.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogInsightDrills.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogSyncInsightProperties.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogSyncInsightProperties.js +3 -2
- package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillFiltersConfig.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillFiltersConfig.js +5 -5
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetAttributeHierarchyItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetAttributeHierarchyItem.js +2 -2
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js +7 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js +2 -3
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useDrillConfigIncompleteItems.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useDrillConfigIncompleteItems.js +3 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.js +2 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +4 -4
- package/esm/presentation/widget/richText/RestrictedReferencesDialog.js +1 -1
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.js +2 -2
- package/esm/presentation/widget/widget/warningPartialResult/InsightWidgetWarningPartialResult.d.ts.map +1 -1
- package/esm/presentation/widget/widget/warningPartialResult/InsightWidgetWarningPartialResult.js +1 -2
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.js +2 -2
- package/esm/sdk-ui-dashboard.d.ts +41 -4
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js +5 -5
- package/esm/widgets/placeholders/types.js +4 -4
- package/package.json +25 -23
- package/styles/css/configurationPanel.css +2 -14
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/dashboard.css +8 -3
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/drillConfigPanel.css +5 -0
- package/styles/css/drillConfigPanel.css.map +1 -1
- package/styles/css/filterBar.css +0 -20
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +17 -38
- package/styles/css/main.css.map +1 -1
- package/styles/css/scheduled_mail_recipients.css +8 -3
- package/styles/css/scheduled_mail_recipients.css.map +1 -1
- package/styles/scss/configurationPanel.scss +2 -20
- package/styles/scss/drillConfigPanel.scss +6 -0
- package/styles/scss/filterBar.scss +0 -25
- package/styles/scss/scheduled_mail_recipients.scss +15 -4
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
2
|
import stringify from "json-stable-stringify";
|
|
3
|
-
import {
|
|
3
|
+
import { escapeRegExp } from "lodash-es";
|
|
4
4
|
import { all, call, select } from "redux-saga/effects";
|
|
5
5
|
import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, dashboardMeasureValueFilterLocalIdentifier, filterAttributeElements, filterObjRef, insightFilters as insightDefinitionFilters, insightId, isArbitraryAttributeFilter, isAttributeDescriptor, isAttributeElementsByValue, isAttributeFilter, isComparisonCondition, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardTextAttributeFilter, isIdentifierRef, isMeasureValueFilter, isNegativeAttributeFilter, isRangeCondition, isTextAttributeFilter, isUriRef, measureValueFilterConditions, measureValueFilterMeasure, } from "@gooddata/sdk-model";
|
|
6
|
-
import { DRILL_TO_URL_PLACEHOLDER, displayFormPlaceholderRef, getAttributeIdentifiersPlaceholdersFromUrl, getDashboardAttributeFilterPlaceholdersFromUrl, getDashboardMeasureValueFilterPlaceholdersFromUrl, getDrillUrlPlaceholderTypes, getInsightAttributeFilterPlaceholdersFromUrl, getInsightMeasureValueFilterPlaceholdersFromUrl, } from "@gooddata/sdk-model/internal";
|
|
6
|
+
import { DRILL_TO_URL_PLACEHOLDER, displayFormPlaceholderRef, getAttributeIdentifiersPlaceholdersFromUrl, getDashboardAttributeFilterPlaceholdersFromUrl, getDashboardMeasureValueFilterPlaceholdersFromUrl, getDrillUrlPlaceholderTypes, getInsightAttributeFilterPlaceholdersFromUrl, getInsightMeasureValueFilterPlaceholdersFromUrl, getParameterPlaceholdersFromUrl, } from "@gooddata/sdk-model/internal";
|
|
7
7
|
import { isDrillIntersectionAttributeItem, } from "@gooddata/sdk-ui";
|
|
8
|
+
import { _groupBy } from "@gooddata/util";
|
|
8
9
|
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
9
10
|
import { selectAllCatalogDisplayFormsMap, selectAllCatalogMeasuresMap, selectCatalogDateAttributes, } from "../../store/catalog/catalogSelectors.js";
|
|
10
11
|
import { selectEnableMeasureValueFilterKD } from "../../store/config/configSelectors.js";
|
|
@@ -14,6 +15,7 @@ import { selectDashboardId } from "../../store/meta/metaSelectors.js";
|
|
|
14
15
|
import { selectAttributeFilterConfigsOverrides } from "../../store/tabs/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
15
16
|
import { selectFilterContextAttributeFilterItems, selectFilterContextMeasureValueFilters, } from "../../store/tabs/filterContext/filterContextSelectors.js";
|
|
16
17
|
import { selectAnalyticalWidgetByRef } from "../../store/tabs/layout/layoutSelectors.js";
|
|
18
|
+
import { selectWidgetParameterValues, } from "../../store/tabs/parameters/parametersSelectors.js";
|
|
17
19
|
import { resolveDisplayFormMetadata } from "../../utils/displayFormResolver.js";
|
|
18
20
|
import { dashboardMeasureValueFilterMatchesIdentifier, insightMeasureValueFilterMatchesIdentifier, } from "../../utils/measureValueFilterUtils.js";
|
|
19
21
|
import { getElementTitle, getElementsSecondaryTitles } from "./getElementTitle.js";
|
|
@@ -112,7 +114,7 @@ export function* splitDFToLoadingAndMapping(attributesDisplayForms, ctx) {
|
|
|
112
114
|
// we can't call collectLabelElements for date attributes because there are no date "elements", but we can use this values directly.
|
|
113
115
|
const dateAttributes = yield select(selectCatalogDateAttributes);
|
|
114
116
|
const dateAttributeRefs = dateAttributes.map((da) => da.attribute.ref);
|
|
115
|
-
const { true: displayFormsWithKnownValues = [], false: displayFormForValueLoad = [] } =
|
|
117
|
+
const { true: displayFormsWithKnownValues = [], false: displayFormForValueLoad = [] } = _groupBy(attributesDisplayForms, (df) => isInRefList(dateAttributeRefs, df.attribute));
|
|
116
118
|
return {
|
|
117
119
|
displayFormsWithKnownValues,
|
|
118
120
|
displayFormForValueLoad,
|
|
@@ -316,6 +318,18 @@ export function* getInsightAttributeFilterReplacements(url, widgetRef) {
|
|
|
316
318
|
};
|
|
317
319
|
});
|
|
318
320
|
}
|
|
321
|
+
function* getParameterReplacements(url, widgetRef) {
|
|
322
|
+
const parameters = yield select(selectWidgetParameterValues(widgetRef));
|
|
323
|
+
const valueByIdentifier = new Map(parameters.map((parameter) => [parameter.identifier, parameter.value]));
|
|
324
|
+
return getParameterPlaceholdersFromUrl(url).map(({ placeholder: toBeReplaced, identifier, toBeEncoded }) => {
|
|
325
|
+
const value = valueByIdentifier.get(identifier);
|
|
326
|
+
if (value === undefined) {
|
|
327
|
+
return { toBeReplaced, replacement: undefined };
|
|
328
|
+
}
|
|
329
|
+
const text = String(value);
|
|
330
|
+
return { toBeReplaced, replacement: toBeEncoded ? encodeURIComponent(text) : text };
|
|
331
|
+
});
|
|
332
|
+
}
|
|
319
333
|
const createIdentifierReplacement = (toBeReplaced, replacement = "") => ({ toBeReplaced, replacement, replaceGlobally: true });
|
|
320
334
|
export function* getInsightIdentifiersReplacements(customUrl, widgetRef, ctx) {
|
|
321
335
|
const { workspace, clientId, dataProductId } = ctx;
|
|
@@ -338,7 +352,21 @@ export function* getInsightIdentifiersReplacements(customUrl, widgetRef, ctx) {
|
|
|
338
352
|
}
|
|
339
353
|
return replacements;
|
|
340
354
|
}
|
|
341
|
-
const applyReplacements = (url, replacements) =>
|
|
355
|
+
const applyReplacements = (url, replacements) => {
|
|
356
|
+
if (replacements.length === 0) {
|
|
357
|
+
return url;
|
|
358
|
+
}
|
|
359
|
+
const pending = _groupBy(replacements, ({ toBeReplaced }) => toBeReplaced);
|
|
360
|
+
const pattern = new RegExp(Object.keys(pending).map(escapeRegExp).join("|"), "g");
|
|
361
|
+
return url.replace(pattern, (placeholder) => {
|
|
362
|
+
const queue = pending[placeholder];
|
|
363
|
+
const next = queue[0];
|
|
364
|
+
if (!next.replaceGlobally) {
|
|
365
|
+
queue.shift();
|
|
366
|
+
}
|
|
367
|
+
return next.replacement;
|
|
368
|
+
});
|
|
369
|
+
};
|
|
342
370
|
export function* resolveDrillToCustomUrl(drillConfig, widgetRef, event, ctx, cmd) {
|
|
343
371
|
const customUrl = drillConfig.target.url;
|
|
344
372
|
const resolveContext = () => getInsightIdentifiersReplacements(customUrl, widgetRef, ctx);
|
|
@@ -356,6 +384,7 @@ export function* resolveDrillToCustomUrl(drillConfig, widgetRef, event, ctx, cmd
|
|
|
356
384
|
replacement: undefined,
|
|
357
385
|
}));
|
|
358
386
|
},
|
|
387
|
+
parameter: () => getParameterReplacements(customUrl, widgetRef),
|
|
359
388
|
[DRILL_TO_URL_PLACEHOLDER.DRILL_TO_URL_PLACEHOLDER_PROJECT_ID]: resolveContext,
|
|
360
389
|
[DRILL_TO_URL_PLACEHOLDER.DRILL_TO_URL_PLACEHOLDER_WORKSPACE_ID]: resolveContext,
|
|
361
390
|
[DRILL_TO_URL_PLACEHOLDER.DRILL_TO_URL_PLACEHOLDER_INSIGHT_ID]: resolveContext,
|
package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addAttributeFilterHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addAttributeFilterHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAEH,KAAK,yBAAyB,EAC9B,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAexE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAYtE,wBAAiB,yBAAyB,CACtC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,mBAAmB,EACxB,IAAI,GAAE,QAAQ,GAAG,aAAwB,GAC1C,YAAY,CAAC,IAAI,CAAC,CAyJpB;AAED,wBAAiB,uBAAuB,CACpC,GAAG,EAAE,gBAAgB,EACrB,oBAAoB,EAAE,MAAM,EAC5B,cAAc,EAAE,yBAAyB;;;;;;sLAqC5C"}
|
package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } 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 { invariant } from "ts-invariant";
|
|
6
5
|
import { DashboardAttributeFilterSelectionTypeValues, areObjRefsEqual, isInsightWidget, objRefToString, } from "@gooddata/sdk-model";
|
|
6
|
+
import { _isEmpty } from "@gooddata/util";
|
|
7
7
|
import { attributeFilterAdded } from "../../../events/filters.js";
|
|
8
8
|
import { invalidArgumentsProvided } from "../../../events/general.js";
|
|
9
9
|
import { dispatchDashboardEvent } from "../../../store/_infra/eventDispatcher.js";
|
|
@@ -31,7 +31,7 @@ export function* addAttributeFilterHandler(ctx, cmd, type = "normal") {
|
|
|
31
31
|
}
|
|
32
32
|
const allFilters = yield select(selectFilterContextAttributeFilterItems);
|
|
33
33
|
const resolvedDisplayForm = yield call(resolveDisplayFormMetadata, ctx, [usedDisplayForm]);
|
|
34
|
-
if (!
|
|
34
|
+
if (!_isEmpty(resolvedDisplayForm.missing)) {
|
|
35
35
|
throw invalidArgumentsProvided(ctx, cmd, `Attempting to add filter for a non-existing display form ${objRefToString(usedDisplayForm)}.`);
|
|
36
36
|
}
|
|
37
37
|
const displayFormMetadata = resolvedDisplayForm.resolved.get(usedDisplayForm);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addTextAttributeFilterHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addTextAttributeFilterHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAa/C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAW5E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAYtE,wBAAiB,6BAA6B,CAC1C,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,uBAAuB,GAC7B,YAAY,CAAC,IAAI,CAAC,CA2GpB"}
|
package/esm/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 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 { invariant } from "ts-invariant";
|
|
6
5
|
import { DashboardAttributeFilterSelectionTypeValues, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, isInsightWidget, objRefToString, } from "@gooddata/sdk-model";
|
|
6
|
+
import { _isEmpty } from "@gooddata/util";
|
|
7
7
|
import { invalidArgumentsProvided } from "../../../events/general.js";
|
|
8
8
|
import { selectBackendCapabilities } from "../../../store/backendCapabilities/backendCapabilitiesSelectors.js";
|
|
9
9
|
import { selectCanAddMoreFilters, selectFilterContextAttributeFilterItemByDisplayForm, selectFilterContextAttributeFilterItemByLocalId, selectFilterContextAttributeFilterItems, } from "../../../store/tabs/filterContext/filterContextSelectors.js";
|
|
@@ -61,7 +61,7 @@ export function* addTextAttributeFilterHandler(ctx, cmd) {
|
|
|
61
61
|
localIdentifier: addedFilterLocalIdentifier,
|
|
62
62
|
selectionType: DashboardAttributeFilterSelectionTypeValues.LIST_OR_TEXT,
|
|
63
63
|
}));
|
|
64
|
-
if (!
|
|
64
|
+
if (!_isEmpty(configActions)) {
|
|
65
65
|
yield put(batchActions(configActions));
|
|
66
66
|
}
|
|
67
67
|
yield call(dispatchFilterContextChanged, ctx, cmd);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeAttributeFiltersHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"removeAttributeFiltersHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAY/C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAO5E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAItE,wBAAiB,6BAA6B,CAC1C,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,uBAAuB,GAC7B,YAAY,CAAC,IAAI,CAAC,CAmFpB"}
|
package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { difference
|
|
2
|
+
import { difference } from "lodash-es";
|
|
3
3
|
import { batchActions } from "redux-batched-actions";
|
|
4
4
|
import { call, put, select } from "redux-saga/effects";
|
|
5
5
|
import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemFilterElementsBy, dashboardAttributeFilterItemLocalIdentifier, isInsightWidget, } from "@gooddata/sdk-model";
|
|
6
|
+
import { _partition } from "@gooddata/util";
|
|
6
7
|
import { attributeFilterRemoved } from "../../../events/filters.js";
|
|
7
8
|
import { invalidArgumentsProvided } from "../../../events/general.js";
|
|
8
9
|
import { dispatchDashboardEvent } from "../../../store/_infra/eventDispatcher.js";
|
|
@@ -14,7 +15,7 @@ import { dispatchFilterContextChanged } from "../common.js";
|
|
|
14
15
|
export function* removeAttributeFiltersHandler(ctx, cmd) {
|
|
15
16
|
const { filterLocalIds } = cmd.payload;
|
|
16
17
|
const allFilters = yield select(selectFilterContextAttributeFilterItems);
|
|
17
|
-
const [removedFilters, survivingFilters] =
|
|
18
|
+
const [removedFilters, survivingFilters] = _partition(allFilters, (item) => filterLocalIds.includes(dashboardAttributeFilterItemLocalIdentifier(item)));
|
|
18
19
|
const invalidLocalIds = difference(filterLocalIds, allFilters.map((filter) => dashboardAttributeFilterItemLocalIdentifier(filter)));
|
|
19
20
|
if (invalidLocalIds.length) {
|
|
20
21
|
throw invalidArgumentsProvided(ctx, cmd, `Invalid filterLocalIds provided. These ids were not found: ${invalidLocalIds.join(", ")}.`);
|
|
@@ -12,14 +12,14 @@ import { resetCrossFiltering } from "../common.js";
|
|
|
12
12
|
import { beginTabSync, endTabSync, putTabSynced } from "../tabSync/tabSyncSaga.js";
|
|
13
13
|
import { resolveAndRegisterDisplayFormMetadata } from "./resolveDisplayFormMetadata.js";
|
|
14
14
|
export function* replaceAttributeFilterItemSelectionHandler(ctx, cmd) {
|
|
15
|
-
const { filterLocalId, filter, isWorkingSelectionChange, isSelectionInvalid } = cmd.payload;
|
|
15
|
+
const { filterLocalId, filter, isWorkingSelectionChange, isSelectionInvalid, skipSync } = cmd.payload;
|
|
16
16
|
// Validate that the filter exists using the wide selector
|
|
17
17
|
const affectedFilter = yield select(selectFilterContextAttributeFilterItemByLocalId(filterLocalId));
|
|
18
18
|
if (!affectedFilter) {
|
|
19
19
|
throw invalidArgumentsProvided(ctx, cmd, `Filter with filterLocalId ${filterLocalId} not found.`);
|
|
20
20
|
}
|
|
21
21
|
const isApplyAllAtOnceEnabledAndSet = yield select(selectIsApplyFiltersAllAtOnceEnabledAndSet);
|
|
22
|
-
const session = yield call(beginTabSync);
|
|
22
|
+
const session = yield call(beginTabSync, { enabled: !skipSync });
|
|
23
23
|
yield call(putTabSynced, session, [
|
|
24
24
|
tabsActions.replaceAttributeFilterItem({
|
|
25
25
|
filterLocalId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setAttributeFilterParentHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/setAttributeFilterParentHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setAttributeFilterParentHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/attributeFilter/setAttributeFilterParentHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAU/C,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAW/E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAKtE,wBAAiB,gCAAgC,CAC7C,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,0BAA0B,GAChC,YAAY,CAAC,IAAI,CAAC,CAiEpB"}
|
package/esm/model/commandHandlers/filterContext/attributeFilter/setAttributeFilterParentHandler.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { call, put, select } from "redux-saga/effects";
|
|
4
3
|
import { invariant } from "ts-invariant";
|
|
5
4
|
import { dashboardAttributeFilterItemFilterElementsBy, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _isEqual } from "@gooddata/util";
|
|
6
6
|
import { attributeFilterParentChanged } from "../../../events/filters.js";
|
|
7
7
|
import { invalidArgumentsProvided } from "../../../events/general.js";
|
|
8
8
|
import { dispatchDashboardEvent } from "../../../store/_infra/eventDispatcher.js";
|
|
@@ -25,7 +25,7 @@ export function* setAttributeFilterParentsHandler(ctx, cmd) {
|
|
|
25
25
|
// reject the whole command. Anything new or edited is validated, which is what refuses a
|
|
26
26
|
// dependency on a filter the caller may not read.
|
|
27
27
|
const isCarriedOverRestrictedParent = (parent) => restrictedFilterLocalIdentifiers.has(parent.filterLocalIdentifier) &&
|
|
28
|
-
storedParents.some((stored) =>
|
|
28
|
+
storedParents.some((stored) => _isEqual(stored, parent));
|
|
29
29
|
const validationResult = yield call(validateAttributeFilterParents, ctx, affectedFilter, parentFilters.filter((parent) => !isCarriedOverRestrictedParent(parent)), allFilters, displayFormsMap);
|
|
30
30
|
if (validationResult !== "VALID") {
|
|
31
31
|
const message = validationResult === "EXTRANEOUS_PARENT"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computedAttributesEnabledValidation.d.ts","sourceRoot":"","sources":["../../../../../../src/model/commandHandlers/filterContext/attributeFilter/validation/computedAttributesEnabledValidation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"computedAttributesEnabledValidation.d.ts","sourceRoot":"","sources":["../../../../../../src/model/commandHandlers/filterContext/attributeFilter/validation/computedAttributesEnabledValidation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,KAAK,MAAM,EAA0C,MAAM,qBAAqB,CAAC;AAK1F;;;;;;;;;;GAUG;AACH,wBAAiB,gCAAgC,CAC7C,IAAI,EAAE,aAAa,CAAC,MAAM,GAAG,SAAS,CAAC,GACxC,YAAY,CAAC,MAAM,GAAG,SAAS,CAAC,CAWlC;AAED,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { select } from "redux-saga/effects";
|
|
4
3
|
import { isComputedAttributeRef, objRefToString } from "@gooddata/sdk-model";
|
|
4
|
+
import { _compact } from "@gooddata/util";
|
|
5
5
|
import { selectEnableComputedAttributes } from "../../../../store/config/configSelectors.js";
|
|
6
6
|
/**
|
|
7
7
|
* Finds a reference to a computed attribute that the command must not accept because computed attributes
|
|
@@ -15,7 +15,7 @@ import { selectEnableComputedAttributes } from "../../../../store/config/configS
|
|
|
15
15
|
* @returns the first offending reference, or undefined when the command may proceed
|
|
16
16
|
*/
|
|
17
17
|
export function* findDisabledComputedAttributeRef(refs) {
|
|
18
|
-
const computedAttributeRef =
|
|
18
|
+
const computedAttributeRef = _compact(refs).find(isComputedAttributeRef);
|
|
19
19
|
if (!computedAttributeRef) {
|
|
20
20
|
return undefined;
|
|
21
21
|
}
|
package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeFilterContextSelectionHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"changeFilterContextSelectionHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AA0C/C,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAuC9E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAiOnE,wBAAiB,mCAAmC,CAChD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,4BAA4B,GAClC,YAAY,CAAC,IAAI,CAAC,CA6OpB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { compact, partition, uniqBy } from "lodash-es";
|
|
3
2
|
import { all, call, put, select } from "redux-saga/effects";
|
|
4
3
|
import { NotSupported } from "@gooddata/sdk-backend-spi";
|
|
5
4
|
import { areObjRefsEqual, attributeElementsIsEmpty, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemFilterElementsBy, dashboardAttributeFilterItemFilterElementsByDate, dashboardAttributeFilterItemLocalIdentifier, dashboardAttributeFilterItemValidateElementsBy, dashboardFilterLocalIdentifier, dashboardFilterObjRef, dashboardMeasureValueFilterLocalIdentifier, getAttributeElementsItems, isAllTimeDashboardDateFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilter, isDashboardMeasureValueFilter, isDashboardTextAttributeFilter, isSingleSelectionFilter, isUriRef, objRefToString, serializeObjRef, updateAttributeElementsItems, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _compact, _partition, _uniqBy } from "@gooddata/util";
|
|
6
6
|
import { dashboardFilterToFilterContextItem } from "../../../_staging/dashboard/dashboardFilterContext.js";
|
|
7
7
|
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
8
8
|
import { dispatchDashboardEvent } from "../../store/_infra/eventDispatcher.js";
|
|
@@ -161,7 +161,7 @@ export function* changeFilterContextSelectionHandler(ctx, cmd) {
|
|
|
161
161
|
}
|
|
162
162
|
return isDashboardMeasureValueFilter(entry) && isDashboardMeasureValueFilter(target);
|
|
163
163
|
};
|
|
164
|
-
const normalizedFilters =
|
|
164
|
+
const normalizedFilters = _compact(filters.map((filter) => {
|
|
165
165
|
if (isDashboardAttributeFilterItem(filter) ||
|
|
166
166
|
isDashboardDateFilter(filter) ||
|
|
167
167
|
isDashboardMeasureValueFilter(filter)) {
|
|
@@ -183,15 +183,15 @@ export function* changeFilterContextSelectionHandler(ctx, cmd) {
|
|
|
183
183
|
// Separate text filter types (arbitrary, match) — they use whole-filter replacement
|
|
184
184
|
const textAttributeFiltersRaw = normalizedFilters.filter((filter) => isDashboardAttributeFilterItem(filter) && !isDashboardAttributeFilter(filter));
|
|
185
185
|
// Deduplicate text filters by localIdentifier (last occurrence wins, matching batch behavior)
|
|
186
|
-
const textAttributeFilters =
|
|
186
|
+
const textAttributeFilters = _uniqBy(textAttributeFiltersRaw
|
|
187
187
|
.filter((f) => dashboardAttributeFilterItemLocalIdentifier(f))
|
|
188
188
|
.slice()
|
|
189
189
|
.reverse(), (f) => dashboardAttributeFilterItemLocalIdentifier(f)).reverse();
|
|
190
190
|
const supportedFilters = normalizedFilters.filter((filter) => isDashboardAttributeFilter(filter) || isDashboardDateFilter(filter));
|
|
191
191
|
// Measure value filters use whole-condition replacement keyed by localIdentifier; deduplicate
|
|
192
192
|
// by localIdentifier (last occurrence wins, mirroring text attribute filter handling).
|
|
193
|
-
const measureValueFilters =
|
|
194
|
-
const uniqueFilters =
|
|
193
|
+
const measureValueFilters = _uniqBy(normalizedFilters.filter(isDashboardMeasureValueFilter).slice().reverse(), (f) => dashboardMeasureValueFilterLocalIdentifier(f)).reverse();
|
|
194
|
+
const uniqueFilters = _uniqBy(supportedFilters, (filter) => {
|
|
195
195
|
if (matchByLocalIdentifier && isDashboardAttributeFilter(filter)) {
|
|
196
196
|
const localIdentifier = dashboardAttributeFilterItemLocalIdentifier(filter);
|
|
197
197
|
if (localIdentifier) {
|
|
@@ -213,8 +213,8 @@ export function* changeFilterContextSelectionHandler(ctx, cmd) {
|
|
|
213
213
|
? objRefToString(identification) + secondaryIdentification
|
|
214
214
|
: identification + secondaryIdentification;
|
|
215
215
|
});
|
|
216
|
-
const [dateFilters, attributeFilters] =
|
|
217
|
-
const [[commonDateFilter], dateFiltersWithDimension] =
|
|
216
|
+
const [dateFilters, attributeFilters] = _partition(uniqueFilters, isDashboardDateFilter);
|
|
217
|
+
const [[commonDateFilter], dateFiltersWithDimension] = _partition(dateFilters, isDashboardCommonDateFilter);
|
|
218
218
|
const selectionTypeMap = yield call(selectAttributeFilterConfigsSelectionTypeMapTabAware, tabLocalIdentifier);
|
|
219
219
|
const [attributeFilterResult, commonDateFilterUpdateActions, dateFiltersUpdateActions, measureValueFilterUpdateActions,] = yield all([
|
|
220
220
|
call(getAttributeFiltersUpdateActions, [...attributeFilters].reverse(), textAttributeFilters, attributeFilterConfigs, resetOthers, ctx, tabLocalIdentifier, selectionTypeMap, matchByLocalIdentifier),
|
|
@@ -252,7 +252,7 @@ function* getDashboardFilterByAttributeMatching(filterRef, resolvedDisplayForms,
|
|
|
252
252
|
throw new NotSupported("Unsupported filter ObjRef! Please provide IdentifierRef instead of UriRef.");
|
|
253
253
|
}
|
|
254
254
|
const filterDF = resolvedDisplayForms.resolved.get(filterRef);
|
|
255
|
-
const resolvedAttribute = yield call(resolveAttributeMetadata, ctx,
|
|
255
|
+
const resolvedAttribute = yield call(resolveAttributeMetadata, ctx, _compact([filterDF?.attribute]));
|
|
256
256
|
const attribute = filterDF?.attribute && resolvedAttribute.resolved.get(filterDF?.attribute);
|
|
257
257
|
for (const displayForm of attribute?.displayForms ?? []) {
|
|
258
258
|
const dashboardFilter = yield call(selectFilterContextAttributeFilterByDisplayFormTabAware, displayForm.ref, tabLocalIdentifier);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/filterContext/common.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAChC,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAqBhE,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AAI5G,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAE,KAAK,eAAe,EAA0C,MAAM,0BAA0B,CAAC;AAExG;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IACxC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,GAAG,SAAS,CAAC,CAAC;IAC9E,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,+BAA+B,GAAG,SAAS,CAAC,CAAC;IAC5F,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,+BAA+B,EAAE,CAAC,CAAC;CACtF;AAED,wBAAiB,iCAAiC,IAAI,YAAY,CAAC,2BAA2B,CAAC,CAU9F;AAED;;GAEG;AACH,wBAAiB,0CAA0C,CACvD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,EACtB,QAAQ,EAAE,2BAA2B,EACrC,YAAY,CAAC,EAAE,MAAM,GACtB,YAAY,CAAC,IAAI,CAAC,CAwBpB;AAED,wBAAiB,4BAA4B,CACzC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,EACtB,kBAAkB,CAAC,EAAE,MAAM,GAC5B,YAAY,CAAC,IAAI,CAAC,CAkCpB;AAED,wBAAiB,kBAAkB,CAAC,UAAU,EAAE,oBAAoB,GAAG,YAAY,CAAC,OAAO,CAAC,CAuB3F;AAED,wBAAiB,mBAAmB,CAAC,GAAG,EAAE,iBAAiB;;;yEAU1D;AAED,wBAAiB,4BAA4B,CAAC,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,iBAAiB,8YA4B1F;AAED,wBAAiB,4BAA4B;;;mBAE5C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { call, put, select } from "redux-saga/effects";
|
|
4
3
|
import { invariant } from "ts-invariant";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { findDateFilterOptionByValue } from "../../../_staging/dateFilterConfig/dateFilterOptionMapping.js";
|
|
6
6
|
import { removeAttributeFilters } from "../../commands/filters.js";
|
|
7
7
|
import { filterContextChanged, filterContextWorkingSelectionApplied } from "../../events/filters.js";
|
|
@@ -35,9 +35,9 @@ export function* dispatchFilterContextChangedForMutatedTabs(ctx, cmd, snapshot,
|
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
37
|
const configs = attributeFilterConfigs[tabId] ?? [];
|
|
38
|
-
if (
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
if (_isEqual(snapshot.filterContexts[tabId], filterContexts[tabId]) &&
|
|
39
|
+
_isEqual(snapshot.workingFilterContexts[tabId], workingFilterContexts[tabId]) &&
|
|
40
|
+
_isEqual(snapshot.attributeFilterConfigs[tabId] ?? [], configs)) {
|
|
41
41
|
continue;
|
|
42
42
|
}
|
|
43
43
|
yield call(dispatchFilterContextChanged, ctx, cmd, tabId);
|
package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeDateFiltersHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"removeDateFiltersHandler.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAO/C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AASvE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGtE,wBAAiB,wBAAwB,CACrC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,kBAAkB,GACxB,YAAY,CAAC,IAAI,CAAC,CAsFpB"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { difference
|
|
2
|
+
import { difference } from "lodash-es";
|
|
3
3
|
import { batchActions } from "redux-batched-actions";
|
|
4
4
|
import { call, put, select } from "redux-saga/effects";
|
|
5
5
|
import { invariant } from "ts-invariant";
|
|
6
6
|
import { areObjRefsEqual, isUriRef, serializeObjRef } from "@gooddata/sdk-model";
|
|
7
|
+
import { _partition } from "@gooddata/util";
|
|
7
8
|
import { dateFilterRemoved } from "../../../events/filters.js";
|
|
8
9
|
import { invalidArgumentsProvided } from "../../../events/general.js";
|
|
9
10
|
import { dispatchDashboardEvent } from "../../../store/_infra/eventDispatcher.js";
|
|
@@ -14,7 +15,7 @@ export function* removeDateFiltersHandler(ctx, cmd) {
|
|
|
14
15
|
const { dataSets } = cmd.payload;
|
|
15
16
|
const allDateFiltersWithDimension = yield select(selectFilterContextDateFiltersWithDimension);
|
|
16
17
|
const allAttributeFilters = yield select(selectFilterContextAttributeFilters);
|
|
17
|
-
const [removedFilters, _survivingFilters] =
|
|
18
|
+
const [removedFilters, _survivingFilters] = _partition(allDateFiltersWithDimension, (item) => dataSets.some((ds) => areObjRefsEqual(ds, item.dateFilter.dataSet)));
|
|
18
19
|
const invalidDataSets = difference(dataSets.map(serializeObjRef), allDateFiltersWithDimension.map((filter) => serializeObjRef(filter.dateFilter.dataSet)));
|
|
19
20
|
if (invalidDataSets.length) {
|
|
20
21
|
throw invalidArgumentsProvided(ctx, cmd, `Invalid dataSet provided. These ids were not found: ${invalidDataSets.join(", ")}.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addLayoutSectionHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/layout/addLayoutSectionHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addLayoutSectionHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/layout/addLayoutSectionHandler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAY/C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,KAAK,4BAA4B,EAAsB,MAAM,wBAAwB,CAAC;AAM/F,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AA4DnE,wBAAiB,uBAAuB,CACpC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,GACvB,YAAY,CAAC,4BAA4B,CAAC,CAwF5C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
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";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { asLayoutItemPath, findSections, getParentPath, updateSectionIndex, } from "../../../_staging/layout/coordinates.js";
|
|
6
6
|
import { normalizeItemSizeToParent } from "../../../_staging/layout/sizing.js";
|
|
7
7
|
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
@@ -24,7 +24,7 @@ function validateAndResolveItems(commandCtx) {
|
|
|
24
24
|
throw invalidArgumentsProvided(ctx, commandCtx.cmd, `Attempting to insert new section at wrong index ${index}. There are currently ${layout.sections.length} sections.`);
|
|
25
25
|
}
|
|
26
26
|
const stashValidationResult = validateAndResolveStashedItems(stash, initialItems);
|
|
27
|
-
if (!
|
|
27
|
+
if (!_isEmpty(stashValidationResult.missing)) {
|
|
28
28
|
throw invalidArgumentsProvided(ctx, commandCtx.cmd, `Attempting to use non-existing stashes. Identifiers of missing stashes: ${stashValidationResult.missing.join(", ")}`);
|
|
29
29
|
}
|
|
30
30
|
return stashValidationResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addSectionItemsHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/layout/addSectionItemsHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addSectionItemsHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/layout/addSectionItemsHandler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAc/C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,KAAK,iCAAiC,EAA2B,MAAM,wBAAwB,CAAC;AAMzG,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAgHnE,wBAAiB,sBAAsB,CACnC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,gBAAgB,GACtB,YAAY,CAAC,iCAAiC,CAAC,CAiFjD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
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";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { findSection, getItemIndex, getParentPath, getSectionIndex, serializeLayoutItemPath, updateItemIndex, } from "../../../_staging/layout/coordinates.js";
|
|
6
6
|
import { normalizeItemSizeToParent } from "../../../_staging/layout/sizing.js";
|
|
7
7
|
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
@@ -28,7 +28,7 @@ function validateAndResolveItems(commandCtx) {
|
|
|
28
28
|
throw invalidArgumentsProvided(ctx, commandCtx.cmd, `Attempting to insert new item at wrong index ${itemIndex}. There are currently ${section.items.length} items.`);
|
|
29
29
|
}
|
|
30
30
|
const stashValidationResult = validateAndResolveStashedItems(stash, items);
|
|
31
|
-
if (!
|
|
31
|
+
if (!_isEmpty(stashValidationResult.missing)) {
|
|
32
32
|
throw invalidArgumentsProvided(ctx, commandCtx.cmd, `Attempting to use non-existing stashes. Identifiers of missing stashes: ${stashValidationResult.missing.join(", ")}`);
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
@@ -45,7 +45,7 @@ function validateAndResolveItems(commandCtx) {
|
|
|
45
45
|
throw invalidArgumentsProvided(ctx, commandCtx.cmd, `Attempting to insert new item at wrong index ${serializeLayoutItemPath(itemPath)}. There are currently ${section.items.length} items.`);
|
|
46
46
|
}
|
|
47
47
|
const stashValidationResult = validateAndResolveStashedItems(stash, items);
|
|
48
|
-
if (!
|
|
48
|
+
if (!_isEmpty(stashValidationResult.missing)) {
|
|
49
49
|
throw invalidArgumentsProvided(ctx, commandCtx.cmd, `Attempting to use non-existing stashes. Identifiers of missing stashes: ${stashValidationResult.missing.join(", ")}`);
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeLayoutSectionHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/layout/removeLayoutSectionHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"removeLayoutSectionHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/layout/removeLayoutSectionHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAW/C,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,KAAK,8BAA8B,EAAwB,MAAM,wBAAwB,CAAC;AAGnG,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAMnE,wBAAiB,0BAA0B,CACvC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,oBAAoB,GAC1B,YAAY,CAAC,8BAA8B,CAAC,CA4D9C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { call, put, select } from "redux-saga/effects";
|
|
3
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
4
|
import { findSections, getParentPath, serializeLayoutSectionPath, updateSectionIndex, } from "../../../_staging/layout/coordinates.js";
|
|
5
5
|
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
6
6
|
import { layoutSectionRemoved } from "../../events/layout.js";
|
|
@@ -14,7 +14,7 @@ export function* removeLayoutSectionHandler(ctx, cmd) {
|
|
|
14
14
|
const { index, stashIdentifier } = cmd.payload;
|
|
15
15
|
const isLegacyCommand = typeof index === "number";
|
|
16
16
|
const sections = isLegacyCommand ? layout.sections : findSections(layout, index);
|
|
17
|
-
if (
|
|
17
|
+
if (_isEmpty(sections)) {
|
|
18
18
|
throw invalidArgumentsProvided(ctx, cmd, `Attempting to remove a section from an empty layout.`);
|
|
19
19
|
}
|
|
20
20
|
if (isLegacyCommand) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replaceSectionItemHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/layout/replaceSectionItemHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"replaceSectionItemHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/layout/replaceSectionItemHandler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAc/C,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,OAAO,EAAE,KAAK,mCAAmC,EAA6B,MAAM,wBAAwB,CAAC;AAK7G,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AA4GnE,wBAAiB,yBAAyB,CACtC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,mBAAmB,GACzB,YAAY,CAAC,mCAAmC,CAAC,CAsEnD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
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";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { findItem, findSection, getItemIndex, getParentPath, getSectionIndex, serializeLayoutItemPath, } from "../../../_staging/layout/coordinates.js";
|
|
6
6
|
import { normalizeItemSizeToParent } from "../../../_staging/layout/sizing.js";
|
|
7
7
|
import { invalidArgumentsProvided } from "../../events/general.js";
|
|
@@ -26,7 +26,7 @@ function validateAndResolve(commandCtx) {
|
|
|
26
26
|
throw invalidArgumentsProvided(ctx, commandCtx.cmd, `Attempting to replace non-existent item from index ${itemIndex} in section ${sectionIndex}. There are only ${fromSection.items.length} items in this section.`);
|
|
27
27
|
}
|
|
28
28
|
const stashValidationResult = validateAndResolveStashedItems(stash, items);
|
|
29
|
-
if (!
|
|
29
|
+
if (!_isEmpty(stashValidationResult.missing)) {
|
|
30
30
|
throw invalidArgumentsProvided(ctx, commandCtx.cmd, `Attempting to use non-existing stashes. Identifiers of missing stashes: ${stashValidationResult.missing.join(", ")}`);
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
@@ -43,7 +43,7 @@ function validateAndResolve(commandCtx) {
|
|
|
43
43
|
throw invalidArgumentsProvided(ctx, commandCtx.cmd, `Attempting to replace non-existent item from index ${serializeLayoutItemPath(itemPath)}. There are only ${fromSection.items.length} items in this section.`);
|
|
44
44
|
}
|
|
45
45
|
const stashValidationResult = validateAndResolveStashedItems(stash, items);
|
|
46
|
-
if (!
|
|
46
|
+
if (!_isEmpty(stashValidationResult.missing)) {
|
|
47
47
|
throw invalidArgumentsProvided(ctx, commandCtx.cmd, `Attempting to use non-existing stashes. Identifiers of missing stashes: ${stashValidationResult.missing.join(", ")}`);
|
|
48
48
|
}
|
|
49
49
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemValidation.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/layout/validation/itemValidation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"itemValidation.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/layout/validation/itemValidation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AA8B/C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAcnE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAE3E,OAAO,EAAE,KAAK,wBAAwB,EAAmB,MAAM,mCAAmC,CAAC;AAQnG,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAyBlE,KAAK,oBAAoB,GAAG;IACxB,eAAe,EAAE,qBAAqB,CAAC;IACvC,gBAAgB,EAAE,wBAAwB,CAAC;CAC9C,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAiB,+BAA+B,CAC5C,GAAG,EAAE,gBAAgB,EACrB,KAAK,EAAE,qBAAqB,EAC5B,GAAG,EAAE,iBAAiB,GACvB,YAAY,CAAC,oBAAoB,CAAC,CAyBpC;AAyKD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAiB,oCAAoC,CACjD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,EACtB,KAAK,EAAE,oBAAoB,EAC3B,eAAe,GAAE,OAAe,GACjC,YAAY,CAAC,qBAAqB,EAAE,CAAC,CAsIvC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { call, select } from "redux-saga/effects";
|
|
4
3
|
import { invariant } from "ts-invariant";
|
|
5
4
|
import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterObjRef, insightMeasures, insightRef, isDashboardAttributeFilterReference, isDashboardMeasureValueFilterReference, isInsightWidget, isKpiWidget, isRichTextWidget, measureItem, objRefToString, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { newInsight } from "../../../../_staging/insight/insightBuilder.js";
|
|
7
7
|
import { invalidArgumentsProvided } from "../../../events/general.js";
|
|
8
8
|
import { insightSelectDateDataset, queryDateDatasetsForInsight, } from "../../../queries/insights.js";
|
|
@@ -43,7 +43,7 @@ function normalizeItems(items, insights) {
|
|
|
43
43
|
export function* validateAndNormalizeWidgetItems(ctx, items, cmd) {
|
|
44
44
|
const insightRefs = extractInsightRefsFromItems(items.resolved);
|
|
45
45
|
const resolvedInsights = yield call(resolveInsights, ctx, insightRefs);
|
|
46
|
-
if (!
|
|
46
|
+
if (!_isEmpty(resolvedInsights.missing)) {
|
|
47
47
|
throw invalidArgumentsProvided(ctx, cmd, `Attempting to add dashboard items that reference missing insights: ${resolvedInsights.missing
|
|
48
48
|
.map(objRefToString)
|
|
49
49
|
.join(", ")}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layoutValidation.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/layout/validation/layoutValidation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layoutValidation.d.ts","sourceRoot":"","sources":["../../../../../src/model/commandHandlers/layout/validation/layoutValidation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAS5D,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrF,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC/B,MAAM,+BAA+B,CAAC;AAEvC,wBAAgB,wBAAwB,CACpC,MAAM,EAAE,gBAAgB,CAAC,uBAAuB,CAAC,EACjD,KAAK,EAAE,kBAAkB,GAAG,eAAe,GAAG,MAAM,GACrD,OAAO,CA4BT;AAED,wBAAgB,qBAAqB,CACjC,MAAM,EAAE,gBAAgB,CAAC,uBAAuB,CAAC,EACjD,UAAU,EAAE,eAAe,GAAG,kBAAkB,GAAG,MAAM,GAC1D,OAAO,CAOT;AAED,wBAAgB,qBAAqB,CACjC,OAAO,EAAE,8BAA8B,EACvC,KAAK,EAAE,eAAe,GAAG,MAAM,GAChC,OAAO,CAyBT;AAED,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,8BAA8B,EACvC,KAAK,EAAE,eAAe,GAAG,MAAM,GAChC,OAAO,CAOT"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// (C) 2021-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2021-2026 GoodData Corporation
|
|
2
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
3
|
import { findSection, findSections, getItemIndex, getSectionIndex, } from "../../../../_staging/layout/coordinates.js";
|
|
4
4
|
export function validateSectionPlacement(layout, index) {
|
|
5
5
|
if (typeof index === "number") {
|
|
6
6
|
if (index === -1) {
|
|
7
7
|
return true;
|
|
8
8
|
}
|
|
9
|
-
if (
|
|
9
|
+
if (_isEmpty(layout.sections) && !index) {
|
|
10
10
|
return true;
|
|
11
11
|
}
|
|
12
12
|
// using <= here so that we can add to the last place not only by using -1 by also by using (lastIndex+1)
|
|
@@ -18,7 +18,7 @@ export function validateSectionPlacement(layout, index) {
|
|
|
18
18
|
return true;
|
|
19
19
|
}
|
|
20
20
|
const sections = findSections(layout, index);
|
|
21
|
-
if (
|
|
21
|
+
if (_isEmpty(sections) && !sectionIndex) {
|
|
22
22
|
return true;
|
|
23
23
|
}
|
|
24
24
|
// using <= here so that we can add to the last place not only by using -1 by also by using (lastIndex+1)
|
|
@@ -39,7 +39,7 @@ export function validateItemPlacement(section, index) {
|
|
|
39
39
|
if (index === -1) {
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
|
-
if (
|
|
42
|
+
if (_isEmpty(section.items) && !index) {
|
|
43
43
|
return true;
|
|
44
44
|
}
|
|
45
45
|
// using <= here so that we can add to the last place not only by using -1 by also by using (lastIndex+1)
|
|
@@ -50,7 +50,7 @@ export function validateItemPlacement(section, index) {
|
|
|
50
50
|
if (itemIndex === -1) {
|
|
51
51
|
return true;
|
|
52
52
|
}
|
|
53
|
-
if (
|
|
53
|
+
if (_isEmpty(section.items) && !itemIndex) {
|
|
54
54
|
return true;
|
|
55
55
|
}
|
|
56
56
|
// using <= here so that we can add to the last place not only by using -1 by also by using (lastIndex+1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeParameterValuesHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/parameters/changeParameterValuesHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"changeParameterValuesHandler.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/parameters/changeParameterValuesHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,KAAK,sBAAsB,EAAmB,MAAM,qBAAqB,CAAC;AAGnF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAY3E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAInE;;;;;;;GAOG;AACH,wBAAiB,4BAA4B,CACzC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,sBAAsB,GAC5B,YAAY,CAAC,IAAI,CAAC,CA2BpB;AAoCD;;;;;GAKG;AACH,wBAAiB,wCAAwC,CACrD,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,GAAG,SAAS,CAAC,EAClE,WAAW,EAAE,MAAM,GACpB,YAAY,CAAC,IAAI,CAAC,CAOpB;AAED;;;;;GAKG;AACH,wBAAiB,yBAAyB,CACtC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,iBAAiB,EACtB,kBAAkB,EAAE,MAAM,EAC1B,YAAY,EAAE,sBAAsB,EAAE,GAAG,SAAS,GACnD,YAAY,CAAC,IAAI,CAAC,CASpB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { call, put, select } from "redux-saga/effects";
|
|
4
3
|
import { areObjRefsEqual } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { parametersChanged } from "../../events/parameters.js";
|
|
6
6
|
import { dispatchDashboardEvent } from "../../store/_infra/eventDispatcher.js";
|
|
7
7
|
import { selectEnableParameters } from "../../store/config/configSelectors.js";
|
|
@@ -87,7 +87,7 @@ export function* dispatchParametersChangedForAffectedTabs(ctx, cmd, valuesBefore
|
|
|
87
87
|
export function* dispatchParametersChanged(ctx, cmd, tabLocalIdentifier, valuesBefore) {
|
|
88
88
|
const valuesByTab = yield select(selectParameterValuesByTab);
|
|
89
89
|
const values = valuesByTab[tabLocalIdentifier];
|
|
90
|
-
if (values === undefined ||
|
|
90
|
+
if (values === undefined || _isEqual(valuesBefore, values)) {
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
yield dispatchDashboardEvent(parametersChanged(ctx, values, tabLocalIdentifier, cmd.correlationId));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customUrlDrillParametersWorker.d.ts","sourceRoot":"","sources":["../../../../src/model/commandHandlers/parameters/customUrlDrillParametersWorker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAS/C,wBAAgB,iCAAiC,UACM,YAAY,CAAC,IAAI,CAAC,CAMxE"}
|