@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
|
@@ -6,6 +6,7 @@ import { enrichMapboxToken, useMapboxToken } from "@gooddata/sdk-ui-geo";
|
|
|
6
6
|
import { enrichAgGridToken, useAgGridToken } from "@gooddata/sdk-ui-pivot/next";
|
|
7
7
|
import { shallowEqualObjects } from "@gooddata/util";
|
|
8
8
|
import { newDashboardSummaryWorkflowWorker } from "../commandHandlers/dashboard/dashboardSummaryWorkflowWorker.js";
|
|
9
|
+
import { newCustomUrlDrillParametersWorker } from "../commandHandlers/parameters/customUrlDrillParametersWorker.js";
|
|
9
10
|
import { newParameterDependenciesWorker } from "../commandHandlers/parameters/parameterDependenciesWorker.js";
|
|
10
11
|
import { newRenderingWorker } from "../commandHandlers/render/renderingWorker.js";
|
|
11
12
|
import { InitialLoadCorrelationId, initializeDashboardWithPersistedDashboard, } from "../commands/dashboard.js";
|
|
@@ -34,8 +35,13 @@ function useNotifyDeinitializedOnUnmount(dashboardStore, initProps) {
|
|
|
34
35
|
initPropsRef.current = initProps;
|
|
35
36
|
});
|
|
36
37
|
useEffect(() => {
|
|
38
|
+
// Restart saga listeners when effects reconnect.
|
|
39
|
+
// This does not resume initialization cancelled during cleanup.
|
|
40
|
+
dashboardStoreRef.current?.startRootSaga();
|
|
37
41
|
return () => {
|
|
38
42
|
dispatchDeinitialized(dashboardStoreRef.current, initPropsRef.current);
|
|
43
|
+
// A disconnected store must not finish initialization and notify shared event handlers.
|
|
44
|
+
dashboardStoreRef.current?.rootSagaTask.cancel();
|
|
39
45
|
};
|
|
40
46
|
}, []);
|
|
41
47
|
}
|
|
@@ -108,6 +114,7 @@ export const useInitializeDashboardStore = (props) => {
|
|
|
108
114
|
}),
|
|
109
115
|
newDashboardSummaryWorkflowWorker(),
|
|
110
116
|
newParameterDependenciesWorker(),
|
|
117
|
+
newCustomUrlDrillParametersWorker(),
|
|
111
118
|
];
|
|
112
119
|
// Create new store and fire load dashboard command.
|
|
113
120
|
const newDashboardStore = createDashboardStore({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWidgetFilters.d.ts","sourceRoot":"","sources":["../../../src/model/react/useWidgetFilters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWidgetFilters.d.ts","sourceRoot":"","sources":["../../../src/model/react/useWidgetFilters.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,OAAO,EACZ,KAAK,kBAAkB,EAY1B,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,OAAO,EACH,KAAK,oBAAoB,EAG5B,MAAM,kCAAkC,CAAC;AA0N1C;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAC5B,MAAM,EAAE,yBAAyB,GAAG,SAAS,GAAG,IAAI,EACpD,OAAO,CAAC,EAAE,kBAAkB,GAC7B,oBAAoB,CAAC,OAAO,EAAE,CAAC,CAsBjC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
3
|
import stringify from "json-stable-stringify";
|
|
4
|
-
import { isEqual } from "lodash-es";
|
|
5
4
|
import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardAttributeFilterItemLocalIdentifier, filterObjRef, isAllTimeDashboardDateFilter, isAllValuesDashboardAttributeFilter, isDashboardAttributeFilterItem, isDashboardDateFilter, isDashboardDateFilterWithDimension, isDashboardMeasureValueFilter, } from "@gooddata/sdk-model";
|
|
6
5
|
import { usePrevious } from "@gooddata/sdk-ui";
|
|
6
|
+
import { _isEqual } from "@gooddata/util";
|
|
7
7
|
import { safeSerializeObjRef } from "../../_staging/metadata/safeSerializeObjRef.js";
|
|
8
8
|
import { queryWidgetFilters } from "../queries/widgets.js";
|
|
9
9
|
import { selectCrossFilteringFiltersLocalIdentifiersByWidgetRef } from "../store/drill/drillSelectors.js";
|
|
@@ -116,7 +116,7 @@ function useNonIgnoredFilters(widget) {
|
|
|
116
116
|
const getNewRefs = () => {
|
|
117
117
|
// only set state if the values really changed
|
|
118
118
|
// this prevents the full query from running unnecessarily
|
|
119
|
-
if (!
|
|
119
|
+
if (!_isEqual(prevValue.nonIgnoredFilterRefs, result)) {
|
|
120
120
|
return result.map(filterObjRef);
|
|
121
121
|
}
|
|
122
122
|
return prevValue.nonIgnoredFilterRefs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryProcessing.d.ts","sourceRoot":"","sources":["../../../../src/model/store/_infra/queryProcessing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,KAAK,OAAO,EAAmB,MAAM,kBAAkB,CAAC;AAE9E,OAAO,EAAE,KAAK,IAAI,EAAqB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"queryProcessing.d.ts","sourceRoot":"","sources":["../../../../src/model/store/_infra/queryProcessing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,KAAK,OAAO,EAAmB,MAAM,kBAAkB,CAAC;AAE9E,OAAO,EAAE,KAAK,IAAI,EAAqB,MAAM,YAAY,CAAC;AAY1D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAK7D,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAEhC;;OAEG;IACH,kBAAkB,EAAE,IAAI,CAAC;CAC5B;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAE/C,KAAK,0BAA0B,CAAC,MAAM,SAAS,eAAe,EAAE,YAAY,IAAI;IAC5E,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,SAAS,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC1C,OAAO,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,KAAK,aAAa,CAAC,MAAM,SAAS,eAAe,EAAE,YAAY,IAAI,QAAQ,CACvE,0BAA0B,CAAC,MAAM,EAAE,YAAY,CAAC,CACnD,GAAG;IACA,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAMF;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,SAAS,eAAe,EAAE,YAAY,EACtE,KAAK,EAAE,MAAM,EACb,aAAa,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,EACzE,OAAO,GAAE,OAAe,GACzB,aAAa,CAAC,MAAM,EAAE,YAAY,CAAC,CASrC;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,SAAS,eAAe,EAAE,YAAY,EACjF,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,OAAe,GACzB;IACC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,QAAQ,EAAE,aAAa,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CACjD,CAcA;AAsED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACvC,aAAa,EAAE,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAClD,sBAAsB,CA4CxB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { combineReducers } from "@reduxjs/toolkit";
|
|
3
|
-
import {
|
|
3
|
+
import { keyBy } from "lodash-es";
|
|
4
4
|
import { actionChannel, call, spawn, take } from "redux-saga/effects";
|
|
5
|
+
import { _compact } from "@gooddata/util";
|
|
5
6
|
import { internalQueryErrorOccurred, isDashboardQueryFailed, queryCompleted, queryRejected, queryStarted, } from "../../events/general.js";
|
|
6
7
|
import { getDashboardContext } from "./contexts.js";
|
|
7
8
|
import { dispatchDashboardEvent } from "./eventDispatcher.js";
|
|
@@ -85,7 +86,7 @@ function ensureQueryWrappedInEnvelope(action) {
|
|
|
85
86
|
*/
|
|
86
87
|
export function createQueryProcessingModule(queryServices) {
|
|
87
88
|
const servicesByType = keyBy(queryServices, (service) => service.name);
|
|
88
|
-
const queryToReducers = Object.fromEntries(
|
|
89
|
+
const queryToReducers = Object.fromEntries(_compact(queryServices.map((service) => {
|
|
89
90
|
if (!service.cache) {
|
|
90
91
|
return null;
|
|
91
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryService.d.ts","sourceRoot":"","sources":["../../../../src/model/store/_infra/queryService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"queryService.d.ts","sourceRoot":"","sources":["../../../../src/model/store/_infra/queryService.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,QAAQ,EACb,KAAK,WAAW,EAEhB,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,QAAQ,EAIhB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAM/C,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAalD;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,CAAC,OAAO,IAAI;IACzC;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;C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AM,KAAK,YAAY,CAAC,OAAO,CAAC,GAC3E,sBAAsB,CAAC,MAAM,EAAE,OAAO,CAAC,CAKzC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
// (C) 2021-
|
|
1
|
+
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { createEntityAdapter, createSelector, createSlice, } from "@reduxjs/toolkit";
|
|
3
|
-
import { capitalize
|
|
3
|
+
import { capitalize } from "lodash-es";
|
|
4
4
|
import { call, put, select } from "redux-saga/effects";
|
|
5
5
|
import { invariant } from "ts-invariant";
|
|
6
|
+
import { _memoize } from "@gooddata/util";
|
|
6
7
|
/**
|
|
7
8
|
* Given query name, this function will create name to use for the slice that will hold the cache with query results.
|
|
8
9
|
*
|
|
@@ -40,7 +41,7 @@ function createQueryCacheSlice(queryName, selectId) {
|
|
|
40
41
|
return cacheSelectors.selectById(state, id);
|
|
41
42
|
});
|
|
42
43
|
};
|
|
43
|
-
const selectQueryResult =
|
|
44
|
+
const selectQueryResult = _memoize((query) => {
|
|
44
45
|
const id = selectId(query);
|
|
45
46
|
return createSelector((state) => state, (state) => {
|
|
46
47
|
return cacheSelectors.selectById(state, id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/_infra/selectors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/_infra/selectors.ts"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,GAAI,gBAAgB,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,YACzE,gBAAgB,KAC3B,gBAAkF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2021-
|
|
1
|
+
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import stringify from "json-stable-stringify";
|
|
3
|
-
import {
|
|
3
|
+
import { _memoize } from "@gooddata/util";
|
|
4
4
|
/**
|
|
5
5
|
* Memoizes selector factory by its arguments.
|
|
6
6
|
* This avoids recreating & recomputing selector on each render (and thus changing reference of the result), if the factory arguments are the same.
|
|
@@ -11,4 +11,4 @@ import { memoize } from "lodash-es";
|
|
|
11
11
|
* @param selector - selector factory
|
|
12
12
|
* @returns selector factory that will be memoized by its stringified arguments
|
|
13
13
|
*/
|
|
14
|
-
export const createMemoizedSelector = (selector) =>
|
|
14
|
+
export const createMemoizedSelector = (selector) => _memoize(selector, (...args) => stringify(args, { space: 0 }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/catalog/catalogSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,MAAM,EAMd,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"catalogSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/catalog/catalogSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,MAAM,EAMd,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EACH,KAAK,+BAA+B,EAEvC,MAAM,0DAA0D,CAA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2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
|
-
import {
|
|
3
|
+
import { negate } from "lodash-es";
|
|
4
4
|
import { areObjRefsEqual, getHierarchyAttributes, getHierarchyRef, idRef, objRefToString, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
6
|
import { mergeAttributesWithComputed } from "../../../_staging/catalog/computedAttributes.js";
|
|
6
7
|
import { newCatalogDateAttributeWithDatasetMap, } from "../../../_staging/catalog/dateAttributeWithDatasetMap.js";
|
|
7
8
|
import { createDisplayFormMap } from "../../../_staging/catalog/displayFormMap.js";
|
|
@@ -86,7 +87,7 @@ export const selectCatalogRequestedParameterRoots = createSelector(selectSelf, (
|
|
|
86
87
|
/**
|
|
87
88
|
* @alpha
|
|
88
89
|
*/
|
|
89
|
-
export const selectHasCatalogAttributes = createSelector(selectCatalogAttributes, negate(
|
|
90
|
+
export const selectHasCatalogAttributes = createSelector(selectCatalogAttributes, negate(_isEmpty));
|
|
90
91
|
/**
|
|
91
92
|
* @public
|
|
92
93
|
*/
|
|
@@ -114,7 +115,7 @@ export const selectCatalogMeasures = createSelector(selectSelf, (state) => {
|
|
|
114
115
|
/**
|
|
115
116
|
* @alpha
|
|
116
117
|
*/
|
|
117
|
-
export const selectHasCatalogMeasures = createSelector(selectCatalogMeasures, negate(
|
|
118
|
+
export const selectHasCatalogMeasures = createSelector(selectCatalogMeasures, negate(_isEmpty));
|
|
118
119
|
/**
|
|
119
120
|
* @public
|
|
120
121
|
*/
|
|
@@ -124,7 +125,7 @@ export const selectCatalogFacts = createSelector(selectSelf, (state) => {
|
|
|
124
125
|
/**
|
|
125
126
|
* @alpha
|
|
126
127
|
*/
|
|
127
|
-
export const selectHasCatalogFacts = createSelector(selectCatalogFacts, negate(
|
|
128
|
+
export const selectHasCatalogFacts = createSelector(selectCatalogFacts, negate(_isEmpty));
|
|
128
129
|
/**
|
|
129
130
|
* @public
|
|
130
131
|
*/
|
|
@@ -134,7 +135,7 @@ export const selectCatalogDateDatasets = createSelector(selectSelf, (state) => {
|
|
|
134
135
|
/**
|
|
135
136
|
* @alpha
|
|
136
137
|
*/
|
|
137
|
-
export const selectHasCatalogDateDatasets = createSelector(selectCatalogDateDatasets, negate(
|
|
138
|
+
export const selectHasCatalogDateDatasets = createSelector(selectCatalogDateDatasets, negate(_isEmpty));
|
|
138
139
|
/**
|
|
139
140
|
* @alpha
|
|
140
141
|
*/
|
|
@@ -314,7 +315,7 @@ function buildDateHierarchy(dateDataset, dateTemplate) {
|
|
|
314
315
|
dateAttributesInHierarchy.push(dateAttribute.attribute.ref);
|
|
315
316
|
}
|
|
316
317
|
});
|
|
317
|
-
if (!
|
|
318
|
+
if (!_isEmpty(dateAttributesInHierarchy)) {
|
|
318
319
|
return {
|
|
319
320
|
type: "dateAttributeHierarchy",
|
|
320
321
|
// create ref of adhoc date hierarchy by combining date dataset id and date template id
|
|
@@ -281,12 +281,6 @@ export declare const selectIsDisableUserFilterReset: DashboardSelector<boolean>;
|
|
|
281
281
|
* @internal
|
|
282
282
|
*/
|
|
283
283
|
export declare const selectEnableUnavailableItemsVisibility: DashboardSelector<boolean>;
|
|
284
|
-
/**
|
|
285
|
-
* Returns whether kda is enabled
|
|
286
|
-
*
|
|
287
|
-
* @internal
|
|
288
|
-
*/
|
|
289
|
-
export declare const selectEnableKda: DashboardSelector<boolean>;
|
|
290
284
|
/**
|
|
291
285
|
* Returns whether attribute filter displays duplicated values when filter uses secondary label value.
|
|
292
286
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/config/configSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,qBAAqB,CAAC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AGzD,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,iBAAiB,CAAC,OAAO,CAKrE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,EAAE,iBAAiB,CAAC,OAAO,CAK7E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"configSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/config/configSelectors.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,SAAS,EAEjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,KAAK,qCAAqC,EAAE,MAAM,0BAA0B,CAAC;AAEtF,OAAO,EACH,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,aAAa,CAAC;AAO1E;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,uBAAuB,CAOnE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,CAAC,iBAAiB,CAKvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,iBAAiB,CAAC,SAAS,CAEtD,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,OAAO,CAElD,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,iBAAiB,CAAC,MAAM,GAAG,SAAS,CAE/D,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAA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;AAEF;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,EAAE,iBAAiB,CAAC,OAAO,CAK1E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,iBAAiB,CAAC,OAAO,CAKjE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gDAAgD,EAAE,iBAAiB,CAAC,OAAO,CAKvF,CAAC"}
|
|
@@ -358,14 +358,6 @@ export const selectIsDisableUserFilterReset = createSelector(selectConfig, (stat
|
|
|
358
358
|
export const selectEnableUnavailableItemsVisibility = createSelector(selectConfig, (state) => {
|
|
359
359
|
return state.settings?.showHiddenCatalogItems ?? false;
|
|
360
360
|
});
|
|
361
|
-
/**
|
|
362
|
-
* Returns whether kda is enabled
|
|
363
|
-
*
|
|
364
|
-
* @internal
|
|
365
|
-
*/
|
|
366
|
-
export const selectEnableKda = createSelector(selectConfig, (state) => {
|
|
367
|
-
return state.settings?.enableChangeAnalysis ?? false;
|
|
368
|
-
});
|
|
369
361
|
/**
|
|
370
362
|
* Returns whether attribute filter displays duplicated values when filter uses secondary label value.
|
|
371
363
|
*
|
|
@@ -100,6 +100,10 @@ export interface IReduxedDashboardStore {
|
|
|
100
100
|
registerEventHandler: (handler: DashboardEventHandler) => void;
|
|
101
101
|
unregisterEventHandler: (handler: DashboardEventHandler) => void;
|
|
102
102
|
rootSagaTask: Task;
|
|
103
|
+
/**
|
|
104
|
+
* Starts the root saga if it is no longer running, preserving the existing store and event handlers.
|
|
105
|
+
*/
|
|
106
|
+
startRootSaga: () => void;
|
|
103
107
|
}
|
|
104
108
|
export declare function createDashboardRootReducer({ queryCache, }?: {
|
|
105
109
|
queryCache?: Reducer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardStore.d.ts","sourceRoot":"","sources":["../../../src/model/store/dashboardStore.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,OAAO,EAGf,MAAM,k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;;;;;;OASG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAC;IAEzC;;OAEG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,EAAE,uBAAuB,CAAC;IAEnC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;IAEnD;;;;;;;OAOG;IACH,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE,gBAAgB,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;IAEzE;;;;;;;OAOG;IACH,iBAAiB,EAAE,UAAU,CAAC;IAE9B;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAsBD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,cAAc,CAAC;IACtB,oBAAoB,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC/D,sBAAsB,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjE,YAAY,EAAE,IAAI,CAAC;IACnB;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;CAC7B;AA2CD,wBAAgB,0BAA0B,CAAC,EACvC,UAAkC,GACrC,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgC/B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,qBAAqB,GAAG,sBAAsB,CA8F1F"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { combineReducers, configureStore, } from "@reduxjs/toolkit";
|
|
3
3
|
import { defaultImport } from "default-import";
|
|
4
|
-
import { keyBy
|
|
4
|
+
import { keyBy } from "lodash-es";
|
|
5
5
|
import { enableBatching } from "redux-batched-actions";
|
|
6
6
|
import defaultReduxSaga from "redux-saga";
|
|
7
7
|
import { call, fork } from "redux-saga/effects";
|
|
8
8
|
import { v4 as uuidv4 } from "uuid";
|
|
9
9
|
import { objRefToString } from "@gooddata/sdk-model";
|
|
10
|
+
import { _merge } from "@gooddata/util";
|
|
10
11
|
import { AllQueryServices } from "../queryServices/index.js";
|
|
11
12
|
import { getDashboardContext } from "./_infra/contexts.js";
|
|
12
13
|
import { createQueryProcessingModule } from "./_infra/queryProcessing.js";
|
|
@@ -136,7 +137,7 @@ const actionMetaFillingMiddleware = () => (next) => (action) => {
|
|
|
136
137
|
return next(action);
|
|
137
138
|
};
|
|
138
139
|
function mergeQueryServices(original, extras = []) {
|
|
139
|
-
return Object.values(
|
|
140
|
+
return Object.values(_merge({}, keyBy(original, (service) => service.name), keyBy(extras, (service) => service.name)));
|
|
140
141
|
}
|
|
141
142
|
export function createDashboardRootReducer({ queryCache = (state = {}) => state, } = {}) {
|
|
142
143
|
return combineReducers({
|
|
@@ -237,11 +238,17 @@ export function createDashboardStore(config) {
|
|
|
237
238
|
}
|
|
238
239
|
const rootEventEmitter = createRootEventEmitter(eventing.initialEventHandlers, store.dispatch);
|
|
239
240
|
eventing.onEventingInitialized?.(rootEventEmitter.registerHandler, rootEventEmitter.unregisterHandler);
|
|
240
|
-
const
|
|
241
|
-
|
|
241
|
+
const runRootSaga = () => sagaMiddleware.run(rootSaga, rootEventEmitter.eventEmitterSaga, rootCommandHandler, queryProcessing.rootQueryProcessor, config.backgroundWorkers);
|
|
242
|
+
const dashboardStore = {
|
|
242
243
|
store,
|
|
243
244
|
registerEventHandler: rootEventEmitter.registerHandler,
|
|
244
245
|
unregisterEventHandler: rootEventEmitter.unregisterHandler,
|
|
245
|
-
rootSagaTask,
|
|
246
|
+
rootSagaTask: runRootSaga(),
|
|
247
|
+
startRootSaga: () => {
|
|
248
|
+
if (!dashboardStore.rootSagaTask.isRunning()) {
|
|
249
|
+
dashboardStore.rootSagaTask = runRootSaga();
|
|
250
|
+
}
|
|
251
|
+
},
|
|
246
252
|
};
|
|
253
|
+
return dashboardStore;
|
|
247
254
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drillTargetsSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/drillTargets/drillTargetsSelectors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"drillTargetsSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/drillTargets/drillTargetsSelectors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AAGnE,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,yCAAyC,CAAC;AACtG,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,aAAa,CAAC;AAG1E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAM5D;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,CAAC,SAAS,CAAC,aAAa,CAAC,CAK1E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,iBAAiB,CAAC,aAAa,GAAG,SAAS,CAKjF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
|
-
import { memoize } from "lodash-es";
|
|
4
3
|
import { serializeObjRef } from "@gooddata/sdk-model";
|
|
4
|
+
import { _memoize } from "@gooddata/util";
|
|
5
5
|
import { newMapForObjectWithIdentity } from "../../../_staging/metadata/objRefMap.js";
|
|
6
6
|
import { drillTargetsAdapter } from "./drillTargetsEntityAdapter.js";
|
|
7
7
|
const entitySelectors = drillTargetsAdapter.getSelectors((state) => state.drillTargets);
|
|
@@ -18,7 +18,7 @@ export const selectDrillTargets = createSelector(selectDrillTargetsInternal, (dr
|
|
|
18
18
|
*
|
|
19
19
|
* @alpha
|
|
20
20
|
*/
|
|
21
|
-
export const selectDrillTargetsByWidgetRef =
|
|
21
|
+
export const selectDrillTargetsByWidgetRef = _memoize((ref) => {
|
|
22
22
|
return createSelector(selectDrillTargets, (drillTargets) => {
|
|
23
23
|
return drillTargets.get(ref);
|
|
24
24
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IAccessControlAware, type IDashboard, type IDashboardAttributeFilterConfig, type IDashboardDateFilterConfig, type IDashboardDateFilterConfigItem, type IDashboardDefinition, type IDashboardMeasureValueFilterConfig, type IDashboardTab, type IDashboardTimezoneConfig, type IDashboardWidget, type IFilterContext, type IFilterContextDefinition, type ITempFilterContext, type IdentifierRef, type ObjRef, type ShareStatus, type UriRef } from "@gooddata/sdk-model";
|
|
1
|
+
import { type IAccessControlAware, type IDashboard, type IDashboardAttributeFilterConfig, type IDashboardDateFilterConfig, type IDashboardDateFilterConfigItem, type IDashboardDefinition, type IDashboardMeasureValueFilterConfig, type IDashboardTab, type IDashboardTimezoneConfig, type IDashboardWidget, type IFilterContext, type IFilterContextDefinition, type IGenAIDashboardLiveFilters, type ITempFilterContext, type IdentifierRef, type ObjRef, type ShareStatus, type UriRef } from "@gooddata/sdk-model";
|
|
2
2
|
import { type DashboardSelector, type DashboardState } from "../types.js";
|
|
3
3
|
import { type DashboardDescriptor } from "./metaState.js";
|
|
4
4
|
/**
|
|
@@ -438,4 +438,19 @@ export declare const selectIsDashboardDirty: DashboardSelector<boolean>;
|
|
|
438
438
|
* @internal
|
|
439
439
|
*/
|
|
440
440
|
export declare const selectDashboardWorkingDefinition: DashboardSelector<IDashboardDefinition<IDashboardWidget>>;
|
|
441
|
+
/**
|
|
442
|
+
* The dashboard definition the AI assistant edits: the working definition, except that outside edit
|
|
443
|
+
* mode every filter context carries the persisted filters, as manual Edit does.
|
|
444
|
+
*
|
|
445
|
+
* @internal
|
|
446
|
+
*/
|
|
447
|
+
export declare const selectDashboardAiDefinition: DashboardSelector<IDashboardDefinition<IDashboardWidget>>;
|
|
448
|
+
/**
|
|
449
|
+
* The filters on screen outside edit mode, for the root filter context and each tab, so the AI assistant can
|
|
450
|
+
* tell which of them differ from {@link selectDashboardAiDefinition}. They are the only part of the working
|
|
451
|
+
* definition that one replaces. Undefined in edit mode, where the two are the same.
|
|
452
|
+
*
|
|
453
|
+
* @internal
|
|
454
|
+
*/
|
|
455
|
+
export declare const selectDashboardAiLiveFilters: DashboardSelector<IGenAIDashboardLiveFilters | undefined>;
|
|
441
456
|
//# sourceMappingURL=metaSelectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metaSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/meta/metaSelectors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metaSelectors.d.ts","sourceRoot":"","sources":["../../../../src/model/store/meta/metaSelectors.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,UAAU,EAEf,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EAEzB,KAAK,kCAAkC,EAEvC,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,MAAM,EAYd,MAAM,qBAAqB,CAAC;AAgC7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAG1E,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAO1D;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,iBAAiB,CAAC,mBAAmB,CAO5E,CAAC;AAEF;;;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,6BAA6B,EAAE,iBAAiB,CAAC,OAAO,CAWpE,CAAC;AAqCF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,CAAC,OAAO,CAM3D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,CAAC,OAAO,CAa5D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,CAAC,OAAO,CAwD7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAiElG,CAAC;AAEN;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAqC7F,CAAC;AAEN;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,0BAA0B,GAAG,SAAS,CAY9F,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
|
-
import { isEqual } from "lodash-es";
|
|
4
3
|
import { invariant } from "ts-invariant";
|
|
5
4
|
import { isDashboardLayoutEmpty } from "@gooddata/sdk-backend-spi";
|
|
6
5
|
import { idRef, isBrowserDetectedTimezone, isDashboardAttributeFilter, isDashboardCommonDateFilter, isDashboardDateFilterWithDimension, isDashboardMeasureValueFilter, isDashboardTextAttributeFilter, isTempFilterContext, normalizeDashboardTimezoneConfig, resolveTimezoneId, uriRef, } from "@gooddata/sdk-model";
|
|
6
|
+
import { _isEqual } from "@gooddata/util";
|
|
7
7
|
import { selectEnableDashboardPersistentFiltersAcrossTabs, selectEnableTimezoneChange, } from "../config/configSelectors.js";
|
|
8
|
+
import { selectIsInEditMode } from "../renderMode/renderModeSelectors.js";
|
|
8
9
|
import { selectAttributeFilterConfigsOverridesByTab } from "../tabs/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
9
10
|
import { selectDateFilterConfigOverrides, selectDateFilterConfigOverridesByTab, } from "../tabs/dateFilterConfig/dateFilterConfigSelectors.js";
|
|
10
11
|
import { selectDateFilterConfigsOverridesByTab } from "../tabs/dateFilterConfigs/dateFilterConfigsSelectors.js";
|
|
11
12
|
import { selectFilterContextDefinition, selectFilterContextDefinitionsByTab, selectFilterContextIdentity, } from "../tabs/filterContext/filterContextSelectors.js";
|
|
13
|
+
import { initializeFilterContextDefinition } from "../tabs/filterContext/filterContextUtils.js";
|
|
12
14
|
import { filterOutCustomWidgets, selectBasicLayout, selectBasicLayoutByTab, } from "../tabs/layout/layoutSelectors.js";
|
|
13
15
|
import { selectMeasureValueFilterConfigsOverridesByTab } from "../tabs/measureValueFilterConfigs/measureValueFilterConfigsSelectors.js";
|
|
14
16
|
import { selectIsParametersChanged, selectSmartPersistedTabsParameters, } from "../tabs/parameters/parametersSelectors.js";
|
|
@@ -625,7 +627,7 @@ export const selectIsAttributeFilterConfigsChanged = createSelector(selectPersis
|
|
|
625
627
|
return tabIdentifiers.some((tabId) => {
|
|
626
628
|
const persistedConfigs = persistedAttributeFilterConfigsByTab[tabId] ?? [];
|
|
627
629
|
const currentConfigs = currentAttributeFilterConfigsByTab[tabId] ?? [];
|
|
628
|
-
return !
|
|
630
|
+
return !_isEqual(persistedConfigs, currentConfigs);
|
|
629
631
|
});
|
|
630
632
|
});
|
|
631
633
|
/**
|
|
@@ -652,7 +654,7 @@ export const selectIsDateFilterConfigsChanged = createSelector(selectPersistedDa
|
|
|
652
654
|
return tabIdentifiers.some((tabId) => {
|
|
653
655
|
const persistedConfigs = persistedDateFilterConfigsByTab[tabId] ?? [];
|
|
654
656
|
const currentConfigs = currentDateFilterConfigsByTab[tabId] ?? [];
|
|
655
|
-
return !
|
|
657
|
+
return !_isEqual(persistedConfigs, currentConfigs);
|
|
656
658
|
});
|
|
657
659
|
});
|
|
658
660
|
/**
|
|
@@ -664,7 +666,7 @@ export const selectIsMeasureValueFilterConfigsChanged = createSelector(selectPer
|
|
|
664
666
|
return tabIdentifiers.some((tabId) => {
|
|
665
667
|
const persistedConfigs = persistedMeasureValueFilterConfigsByTab[tabId] ?? [];
|
|
666
668
|
const currentConfigs = currentMeasureValueFilterConfigsByTab[tabId] ?? [];
|
|
667
|
-
return !
|
|
669
|
+
return !_isEqual(persistedConfigs, currentConfigs);
|
|
668
670
|
});
|
|
669
671
|
});
|
|
670
672
|
/**
|
|
@@ -679,7 +681,7 @@ export const selectIsDateFilterChanged = createSelector(selectPersistedDashboard
|
|
|
679
681
|
const workingFilters = workingFiltersByTab[tabId] ?? [];
|
|
680
682
|
const persistedDateFilter = persistedFilters.find(isDashboardCommonDateFilter);
|
|
681
683
|
const workingDateFilter = workingFilters.find(isDashboardCommonDateFilter);
|
|
682
|
-
return !
|
|
684
|
+
return !_isEqual(persistedDateFilter, workingDateFilter);
|
|
683
685
|
});
|
|
684
686
|
});
|
|
685
687
|
export const selectIsDateFilterConfigChanged = createSelector(selectPersistedDashboardDateFilterConfigByTab, selectDateFilterConfigOverridesByTab, (persistedDateFilterConfigByTab, currentDateFilterConfigByTab) => {
|
|
@@ -687,7 +689,7 @@ export const selectIsDateFilterConfigChanged = createSelector(selectPersistedDas
|
|
|
687
689
|
return tabIdentifiers.some((tabId) => {
|
|
688
690
|
const persistedConfig = persistedDateFilterConfigByTab[tabId];
|
|
689
691
|
const currentConfig = currentDateFilterConfigByTab[tabId];
|
|
690
|
-
return !
|
|
692
|
+
return !_isEqual(persistedConfig, currentConfig);
|
|
691
693
|
});
|
|
692
694
|
});
|
|
693
695
|
/**
|
|
@@ -700,7 +702,7 @@ export const selectIsAttributeFiltersChanged = createSelector(selectPersistedDas
|
|
|
700
702
|
return tabIdentifiers.some((tabId) => {
|
|
701
703
|
const persistedFilters = persistedAttributeFiltersByTab[tabId] ?? [];
|
|
702
704
|
const workingFilters = workingAttributeFiltersByTab[tabId] ?? [];
|
|
703
|
-
return !
|
|
705
|
+
return !_isEqual(persistedFilters, workingFilters);
|
|
704
706
|
});
|
|
705
707
|
});
|
|
706
708
|
/**
|
|
@@ -713,7 +715,7 @@ export const selectIsOtherFiltersChanged = createSelector(selectPersistedDashboa
|
|
|
713
715
|
return tabIdentifiers.some((tabId) => {
|
|
714
716
|
const persistedFilters = persistedDraggableFiltersByTab[tabId] ?? [];
|
|
715
717
|
const workingFilters = workingDraggableFiltersByTab[tabId] ?? [];
|
|
716
|
-
return !
|
|
718
|
+
return !_isEqual(persistedFilters, workingFilters);
|
|
717
719
|
});
|
|
718
720
|
});
|
|
719
721
|
/**
|
|
@@ -774,7 +776,7 @@ export const selectEvaluationFrequencyChanged = createSelector(selectPersistedDa
|
|
|
774
776
|
* @internal
|
|
775
777
|
*/
|
|
776
778
|
export const selectIsSectionHeadersDateDataSetChanged = createSelector(selectPersistedDashboardSectionHeadersDateDataSet, selectSectionHeadersDateDataSet, (persistedDateDataSet, currentDateDataSet) => {
|
|
777
|
-
return !
|
|
779
|
+
return !_isEqual(persistedDateDataSet, currentDateDataSet);
|
|
778
780
|
});
|
|
779
781
|
/**
|
|
780
782
|
* Selects a boolean indication if the dashboard has any changes to the timezone configuration compared to the persisted version (if any)
|
|
@@ -784,7 +786,7 @@ export const selectIsSectionHeadersDateDataSetChanged = createSelector(selectPer
|
|
|
784
786
|
export const selectIsTimezoneConfigChanged = createSelector(selectPersistedDashboardTimezoneConfig, selectDashboardTimezoneConfig, (persistedTimezoneConfig, currentTimezoneConfig) => {
|
|
785
787
|
// normalize both sides so that a persisted config carrying explicit default (false)
|
|
786
788
|
// values compares equal to an absent configuration
|
|
787
|
-
return !
|
|
789
|
+
return !_isEqual(normalizeDashboardTimezoneConfig(persistedTimezoneConfig), normalizeDashboardTimezoneConfig(currentTimezoneConfig));
|
|
788
790
|
});
|
|
789
791
|
/**
|
|
790
792
|
* Selects a boolean indication if the dashboard has any changes to the tabs compared to the persisted version (if any)
|
|
@@ -810,7 +812,7 @@ const selectIsTabsChanged = createSelector(selectPersistedDashboardTabs, selectT
|
|
|
810
812
|
const normalizedPersistedTabs = normalizeTabsForComparison(persistedTabs);
|
|
811
813
|
const normalizedCurrentTabs = normalizeTabsForComparison(currentTabs);
|
|
812
814
|
// Compare normalized tabs arrays
|
|
813
|
-
return !
|
|
815
|
+
return !_isEqual(normalizedPersistedTabs, normalizedCurrentTabs);
|
|
814
816
|
});
|
|
815
817
|
/**
|
|
816
818
|
* Selects a boolean indication if he dashboard has any changes to the title compared to the persisted version (if any)
|
|
@@ -833,7 +835,7 @@ export const selectIsLayoutChanged = createSelector(selectPersistedDashboardLayo
|
|
|
833
835
|
return tabIdentifiers.some((tabId) => {
|
|
834
836
|
const persistedLayout = persistedLayoutByTab[tabId] ?? [];
|
|
835
837
|
const currentLayout = currentLayoutByTab[tabId] ?? [];
|
|
836
|
-
return !
|
|
838
|
+
return !_isEqual(persistedLayout, currentLayout);
|
|
837
839
|
});
|
|
838
840
|
});
|
|
839
841
|
/**
|
|
@@ -908,3 +910,52 @@ export const selectDashboardWorkingDefinition = createSelector(selectPersistedDa
|
|
|
908
910
|
...pluginsProp,
|
|
909
911
|
};
|
|
910
912
|
});
|
|
913
|
+
/**
|
|
914
|
+
* The dashboard definition the AI assistant edits: the working definition, except that outside edit
|
|
915
|
+
* mode every filter context carries the persisted filters, as manual Edit does.
|
|
916
|
+
*
|
|
917
|
+
* @internal
|
|
918
|
+
*/
|
|
919
|
+
export const selectDashboardAiDefinition = createSelector(selectDashboardWorkingDefinition, selectIsInEditMode, selectPersistedDashboardFilterContextAsFilterContextDefinition, selectPersistedDashboardFilterContextDefinitionsByTab, (working, isEditMode, persistedRoot, persistedByTab) => {
|
|
920
|
+
if (isEditMode) {
|
|
921
|
+
return working;
|
|
922
|
+
}
|
|
923
|
+
// Live filters got positional ids on load and the persisted snapshot did not. Both must carry
|
|
924
|
+
// the same ids, or the AAC convertor cannot match filter configs and groups to them.
|
|
925
|
+
const savedFilters = (persisted) => initializeFilterContextDefinition(persisted).filters;
|
|
926
|
+
return {
|
|
927
|
+
...working,
|
|
928
|
+
...(working.filterContext && persistedRoot
|
|
929
|
+
? { filterContext: { ...working.filterContext, filters: savedFilters(persistedRoot) } }
|
|
930
|
+
: {}),
|
|
931
|
+
...(working.tabs
|
|
932
|
+
? {
|
|
933
|
+
tabs: working.tabs.map((tab) => {
|
|
934
|
+
const persisted = persistedByTab[tab.localIdentifier];
|
|
935
|
+
return tab.filterContext && persisted
|
|
936
|
+
? {
|
|
937
|
+
...tab,
|
|
938
|
+
filterContext: {
|
|
939
|
+
...tab.filterContext,
|
|
940
|
+
filters: savedFilters(persisted),
|
|
941
|
+
},
|
|
942
|
+
}
|
|
943
|
+
: tab;
|
|
944
|
+
}),
|
|
945
|
+
}
|
|
946
|
+
: {}),
|
|
947
|
+
};
|
|
948
|
+
});
|
|
949
|
+
/**
|
|
950
|
+
* The filters on screen outside edit mode, for the root filter context and each tab, so the AI assistant can
|
|
951
|
+
* tell which of them differ from {@link selectDashboardAiDefinition}. They are the only part of the working
|
|
952
|
+
* definition that one replaces. Undefined in edit mode, where the two are the same.
|
|
953
|
+
*
|
|
954
|
+
* @internal
|
|
955
|
+
*/
|
|
956
|
+
export const selectDashboardAiLiveFilters = createSelector(selectDashboardWorkingDefinition, selectIsInEditMode, (working, isEditMode) => isEditMode
|
|
957
|
+
? undefined
|
|
958
|
+
: {
|
|
959
|
+
filters: working.filterContext?.filters,
|
|
960
|
+
tabs: Object.fromEntries((working.tabs ?? []).flatMap((tab) => tab.filterContext ? [[tab.localIdentifier, tab.filterContext.filters]] : [])),
|
|
961
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateFilterConfigReducers.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/dateFilterConfig/dateFilterConfigReducers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAsB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"dateFilterConfigReducers.d.ts","sourceRoot":"","sources":["../../../../../src/model/store/tabs/dateFilterConfig/dateFilterConfigReducers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AAErF,OAAO,EACH,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACzB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,KAAK,UAAU,EAAgB,MAAM,iBAAiB,CAAC;AAIhE,KAAK,uBAAuB,CAAC,CAAC,SAAS,MAAM,IAAI,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;AAE5E,KAAK,0BAA0B,GAAG;IAC9B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,0BAA0B,CAAC;IAE9C;;;OAGG;IACH,yBAAyB,EAAE,iBAAiB,CAAC;IAE7C;;OAEG;IACH,yBAAyB,EAAE,OAAO,CAAC;CACtC,CAAC;AA0IF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;CAOpC,CAAC"}
|