@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
|
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { debounce } from "lodash-es";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
7
6
|
import { isCatalogAttribute, isCatalogMeasure, } from "@gooddata/sdk-model";
|
|
8
7
|
import { Dropdown, DropdownList, SingleSelectListItem, UiIcon, useIdPrefixed, } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _debounce } from "@gooddata/util";
|
|
9
9
|
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
|
|
10
10
|
import { selectSupportsMultipleDateFilters } from "../../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
|
|
11
11
|
import { selectEnableMeasureValueFilterKD } from "../../../../model/store/config/configSelectors.js";
|
|
@@ -107,7 +107,7 @@ export function AttributesDropdown({ id, className, bodyClassName, onClose, onOp
|
|
|
107
107
|
const insightWidgets = useDashboardSelector(selectAllInsightWidgets);
|
|
108
108
|
const shouldDisplayLocationIcon = useMemo(() => isLocationIconEnabled(insightWidgets, insightsMap), [insightWidgets, insightsMap]);
|
|
109
109
|
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
110
|
-
const onSearch = useCallback(
|
|
110
|
+
const onSearch = useCallback(_debounce((query) => {
|
|
111
111
|
setSearchQuery(query);
|
|
112
112
|
}, 250), []);
|
|
113
113
|
const onDropdownStateChange = useCallback((isOpen) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDependentDateFiltersConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDependentDateFiltersConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,yBAAyB,EAE9B,KAAK,oBAAoB,EAE5B,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AAOtG,wBAAgB,oCAAoC,CAChD,mBAAmB,EAAE,oBAAoB,EAAE,EAC3C,aAAa,EAAE,yBAAyB,EACxC,gBAAgB,CAAC,EAAE,oBAAoB;;;yCA6B7B,6BAA6B,cACvB,OAAO,gBACL,OAAO;;;;EAmG5B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useMemo, useState } from "react";
|
|
3
|
-
import { isEqual } from "lodash-es";
|
|
4
3
|
import { invariant } from "ts-invariant";
|
|
5
4
|
import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
|
|
6
5
|
import { isUriRef, } from "@gooddata/sdk-model";
|
|
6
|
+
import { _isEqual } from "@gooddata/util";
|
|
7
7
|
import { setAttributeFilterDependentDateFilters } from "../../../../../../model/commands/filters.js";
|
|
8
8
|
import { useDispatchDashboardCommand } from "../../../../../../model/react/useDispatchDashboardCommand.js";
|
|
9
9
|
import { useDependentCommonDateFilterConfigurationState, useDependentDateFilterConfigurationState, } from "./useDependentDateFilterConfigurationState.js";
|
|
@@ -38,7 +38,7 @@ export function useDependentDateFiltersConfiguration(neighborDateFilters, curren
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
const onDependentDateFiltersConfigurationChanged = useMemo(() => {
|
|
41
|
-
return !
|
|
41
|
+
return !_isEqual(dependentDateFilters, originalState);
|
|
42
42
|
}, [dependentDateFilters, originalState]);
|
|
43
43
|
const onConfigurationClose = useCallback(() => {
|
|
44
44
|
setDependentDateFilters(originalState);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLimitingItemsConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLimitingItemsConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQlF,eAAO,MAAM,6BAA6B,kBAAmB,yBAAyB;;;mCAoBhC,MAAM,EAAE;;;CAqB7D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useMemo, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _isEqual } from "@gooddata/util";
|
|
4
4
|
import { setAttributeFilterLimitingItems } from "../../../../../../model/commands/dashboard.js";
|
|
5
5
|
import { useDashboardSelector } from "../../../../../../model/react/DashboardStoreProvider.js";
|
|
6
6
|
import { useDashboardCommandProcessing } from "../../../../../../model/react/useDashboardCommandProcessing.js";
|
|
@@ -15,12 +15,12 @@ export const useLimitingItemsConfiguration = (currentFilter) => {
|
|
|
15
15
|
const currentFilterLocalId = currentFilterConfig?.localIdentifier || currentFilter?.attributeFilter.localIdentifier;
|
|
16
16
|
const originalLimitingItems = useMemo(() => currentFilter.attributeFilter.validateElementsBy ?? [], [currentFilter]);
|
|
17
17
|
const [limitingItems, setLimitingItems] = useState(originalLimitingItems ?? []);
|
|
18
|
-
const limitingItemsChanged = !
|
|
18
|
+
const limitingItemsChanged = !_isEqual(originalLimitingItems, limitingItems);
|
|
19
19
|
const onLimitingItemsUpdate = useCallback((value) => {
|
|
20
20
|
setLimitingItems(value);
|
|
21
21
|
}, []);
|
|
22
22
|
const onLimitingItemsChange = useCallback(() => {
|
|
23
|
-
if (!
|
|
23
|
+
if (!_isEqual(originalLimitingItems, limitingItems)) {
|
|
24
24
|
changeAttributeFilterLimitingItems(currentFilterLocalId, limitingItems);
|
|
25
25
|
}
|
|
26
26
|
}, [currentFilterLocalId, originalLimitingItems, changeAttributeFilterLimitingItems, limitingItems]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useParentsConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useParentsConfiguration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useParentsConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useParentsConfiguration.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAE9B,KAAK,MAAM,EACd,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,uDAAuD,CAAC;AAIjH,wBAAgB,uBAAuB,CACnC,eAAe,EAAE,4BAA4B,EAAE,EAC/C,aAAa,EAAE,yBAAyB;;;sCAkBnB,MAAM,cACX,OAAO,kBACH,MAAM,EAAE,GAAG,SAAS;oDAuBe,MAAM,qBAAqB,MAAM;;;EAsE3F"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useMemo, useState } from "react";
|
|
3
|
-
import { isEqual } from "lodash-es";
|
|
4
3
|
import { invariant } from "ts-invariant";
|
|
5
4
|
import { useBackend } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _isEqual } from "@gooddata/util";
|
|
6
6
|
import { setAttributeFilterParents } from "../../../../../../model/commands/filters.js";
|
|
7
7
|
import { useDispatchDashboardCommand } from "../../../../../../model/react/useDispatchDashboardCommand.js";
|
|
8
8
|
import { useOriginalConfigurationState } from "./useOriginalConfigurationState.js";
|
|
@@ -41,7 +41,7 @@ export function useParentsConfiguration(neighborFilters, currentFilter) {
|
|
|
41
41
|
setParents(changedParentItems);
|
|
42
42
|
}
|
|
43
43
|
const configurationChanged = useMemo(() => {
|
|
44
|
-
return !
|
|
44
|
+
return !_isEqual(parents, originalState);
|
|
45
45
|
}, [parents, originalState]);
|
|
46
46
|
const onParentFiltersChange = useCallback(() => {
|
|
47
47
|
// dispatch the command only if the configuration changed
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2021-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
-
import { isEmpty } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
5
|
import { DashboardAttributeFilterConfigModeValues, dashboardAttributeFilterItemFilterElementsBy, dashboardAttributeFilterItemFilterElementsByDate, dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, getSelectedElementsCount, isAllDashboardMeasureValueFilter, isDashboardArbitraryAttributeFilter, isDashboardAttributeFilter, isDashboardMatchAttributeFilter, isDashboardMeasureValueFilter, } from "@gooddata/sdk-model";
|
|
7
6
|
import { AttributeFilterDependencyTooltip, FilterGroup, useDeepEqualRefStablizer, } from "@gooddata/sdk-ui-filters";
|
|
7
|
+
import { _isEmpty } from "@gooddata/util";
|
|
8
8
|
import { convertDashboardAttributeFilterElementsUrisToValues } from "../../../_staging/dashboard/legacyFilterConvertors.js";
|
|
9
9
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
10
10
|
import { selectBackendCapabilities, selectSupportsElementUris, } from "../../../model/store/backendCapabilities/backendCapabilitiesSelectors.js";
|
|
@@ -134,7 +134,7 @@ export function DefaultDashboardFilterGroup(props) {
|
|
|
134
134
|
}
|
|
135
135
|
const filterElementsBy = dashboardAttributeFilterItemFilterElementsBy(filter.filter);
|
|
136
136
|
const filterElementsByDate = dashboardAttributeFilterItemFilterElementsByDate(filter.filter);
|
|
137
|
-
const isDependent = !
|
|
137
|
+
const isDependent = !_isEmpty(filterElementsBy) || !_isEmpty(filterElementsByDate);
|
|
138
138
|
return [localId, isDependent];
|
|
139
139
|
}));
|
|
140
140
|
}, [itemFilters]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResetFiltersButton.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/filterBar/filterBar/hooks/useResetFiltersButton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useResetFiltersButton.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/filterBar/filterBar/hooks/useResetFiltersButton.ts"],"names":[],"mappings":"AAsLA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,QAAO;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,KAAK,GAAG,aAAa,CAAC;IACjC,YAAY,EAAE,MAAM,IAAI,CAAC;CAoK5B,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
|
-
import { difference
|
|
3
|
+
import { difference } from "lodash-es";
|
|
4
4
|
import { generateDateFilterLocalIdentifier } from "@gooddata/sdk-backend-base";
|
|
5
5
|
import { dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilter, isDashboardMeasureValueFilter, isNoopAllTimeDashboardDateFilter, newAllTimeDashboardDateFilter, } from "@gooddata/sdk-model";
|
|
6
6
|
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _isEqual, _partition } from "@gooddata/util";
|
|
7
8
|
import { messages } from "../../../../locales.js";
|
|
8
9
|
import { changeFilterContextSelectionByParams, removeAttributeFilters, resetFilterContextWorkingSelection, } from "../../../../model/commands/filters.js";
|
|
9
10
|
import { changeParameterValues } from "../../../../model/commands/parameters.js";
|
|
@@ -91,7 +92,7 @@ const computeResetEligibility = (isEditMode, normalizedCurrentFilters, normalize
|
|
|
91
92
|
if (isEditMode) {
|
|
92
93
|
return { canResetFilters: false, canResetWorkingContext: false, canResetParameters: false };
|
|
93
94
|
}
|
|
94
|
-
const filtersChanged = !
|
|
95
|
+
const filtersChanged = !_isEqual(normalizedCurrentFilters, normalizedOriginalFilters);
|
|
95
96
|
const hasCrossFilterAddedFilters = newlyAddedFiltersCount > 0;
|
|
96
97
|
// If the cross filter add some filters, we should allow the reset
|
|
97
98
|
return {
|
|
@@ -155,7 +156,7 @@ export const useResetFiltersButton = () => {
|
|
|
155
156
|
// keep user-modified filters; only the cross-filter cleanup branch runs below.
|
|
156
157
|
if (willResetFilterContext && userFilterResetAllowed) {
|
|
157
158
|
// Normalize filters to include "All time" date filter
|
|
158
|
-
const [[commonDateFilter], otherFilters] =
|
|
159
|
+
const [[commonDateFilter], otherFilters] = _partition(originalFilters, isDashboardCommonDateFilter);
|
|
159
160
|
if (isApplyAllAtOnceEnabledAndSet) {
|
|
160
161
|
dispatch(resetFilterContextWorkingSelection());
|
|
161
162
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFiltersWithAddedPlaceholder.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFiltersWithAddedPlaceholder.d.ts","sourceRoot":"","sources":["../../../../src/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,MAAM,EASd,MAAM,qBAAqB,CAAC;AAiB7B,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,0BAA0B,CAE9F;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC1C,MAAM,EAAE,4BAA4B,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,4BAA4B,CAAC;CAChD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,GAAG,+BAA+B,CAAC;AAClG,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,+BAA+B,CAEjG;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,EAAE,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACxC,CAAC;AAEF;;GAEG;AACH,wBAAgB,kCAAkC,CAC9C,MAAM,EAAE,aAAa,GACtB,MAAM,IAAI,0BAA0B,CAUtC;AAED;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC7C,MAAM,EAAE,4BAA4B,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,wBAAgB,6BAA6B,CACzC,MAAM,EAAE,aAAa,GACtB,MAAM,IAAI,kCAAkC,CAK9C;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,qBAAqB,CAAC;IACnC,OAAO,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,CAAC,EAAE,aAAa,uCAEhE;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GACnB,0BAA0B,GAC1B,+BAA+B,GAC/B,0BAA0B,GAC1B,kCAAkC,GAClC,yBAAyB,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,aAAa,EAAE,CAAC;AAYtD;;GAEG;AACH,wBAAgB,8BAA8B,CAC1C,OAAO,EAAE,iBAAiB,EAAE,EAC5B,cAAc,CAAC,EAAE,iBAAiB,EAAE,GACrC;IACC;QACI,gBAAgB,EAAE,oBAAoB,CAAC;QACvC,uBAAuB,CAAC,EAAE,oBAAoB,CAAC;QAC/C,+BAA+B,EAAE,uBAAuB,CAAC;QACzD,qBAAqB,EAAE,MAAM,CAAC;QAC9B,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;KACtC;IACD;QACI,6BAA6B,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACvD,qBAAqB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,4BAA4B,KAAK,IAAI,CAAC;QAC3F,uBAAuB,EAAE,MAAM,IAAI,CAAC;QACpC,sBAAsB,EAAE,MAAM,IAAI,CAAC;KACtC;CACJ,CA2OA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useMemo, useState } from "react";
|
|
3
|
-
import { partition } from "lodash-es";
|
|
4
3
|
import { areObjRefsEqual, dashboardAttributeFilterItemDisplayForm, dashboardFilterObjRef, isDashboardAttributeFilterItem, isDashboardCommonDateFilter, isDashboardDateFilter, isDashboardDateFilterWithDimension, isDashboardMeasureValueFilter, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _partition } from "@gooddata/util";
|
|
5
5
|
import { addAttributeFilter as addAttributeFilterAction, addDateFilter as addDateFilterAction, addMeasureValueFilter as addMeasureValueFilterAction, } from "../../../model/commands/filters.js";
|
|
6
6
|
import { useDashboardDispatch, useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
7
7
|
import { dispatchAndWaitFor } from "../../../model/store/_infra/dispatchAndWaitFor.js";
|
|
@@ -59,11 +59,11 @@ export function useFiltersWithAddedPlaceholder(filters, workingFilters) {
|
|
|
59
59
|
const allAttributes = useDashboardSelector(selectCatalogAttributesWithComputed);
|
|
60
60
|
const dateDatasetsMap = useDashboardSelector(selectAllCatalogDateDatasetsMap);
|
|
61
61
|
const commonWorkingDateFilter = workingFilters?.find(isDashboardCommonDateFilter);
|
|
62
|
-
const [draggableFilters, nonDraggableFilters] =
|
|
62
|
+
const [draggableFilters, nonDraggableFilters] = _partition(filters, isNotDashboardCommonDateFilter);
|
|
63
63
|
// nonDraggableFilters may contain new filter types (arbitrary, match) alongside the common date filter.
|
|
64
64
|
// Use a cast since TypeScript cannot narrow FilterContextItem exclusions through .find().
|
|
65
65
|
const commonDateFilter = nonDraggableFilters.find((f) => isDashboardCommonDateFilter(f));
|
|
66
|
-
const [dateFiltersWithDimensions, attributeFilters] =
|
|
66
|
+
const [dateFiltersWithDimensions, attributeFilters] = _partition(draggableFilters, isDashboardDateFilterWithDimension);
|
|
67
67
|
const [selectedDisplayForm, setSelectedDisplayForm] = useState();
|
|
68
68
|
const [autoOpenFilter, setAutoOpenFilter] = useState();
|
|
69
69
|
const addedAttributeFilter = useMemo(() => {
|
package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayout.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAgC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DashboardLayout.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAgC,MAAM,OAAO,CAAC;AAoBxE,OAAO,EACH,KAAK,2BAA2B,EAInC,MAAM,iBAAiB,CAAC;AAMzB;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,EACrC,MAAM,EACN,gBAA0C,EAC1C,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,eAAe,EACf,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,UAAmB,EACnB,WAAW,GACd,EAAE,2BAA2B,CAAC,OAAO,CAAC,GAAG,YAAY,CA6HrD"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo, useRef } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import {
|
|
5
|
+
import { _isEqual } from "@gooddata/util";
|
|
6
6
|
import { DashboardLayoutFacade } from "../../../_staging/dashboard/flexibleLayout/facade/layout.js";
|
|
7
7
|
import { getItemIndex, serializeLayoutSectionPath } from "../../../_staging/layout/coordinates.js";
|
|
8
8
|
import { layoutTransformer } from "../../../_staging/slideshow/layoutTransformer.js";
|
|
@@ -46,7 +46,7 @@ export function DashboardLayout({ layout, sectionKeyGetter = defaultSectionKeyGe
|
|
|
46
46
|
return layoutRef?.current ? layoutRef.current.getBoundingClientRect() : emptyDOMRect;
|
|
47
47
|
}, []);
|
|
48
48
|
const widgetRendererWrapped = useCallback((renderProps) => {
|
|
49
|
-
const isResizedByLayoutSizingStrategy = resizedItemPositions.some((position) =>
|
|
49
|
+
const isResizedByLayoutSizingStrategy = resizedItemPositions.some((position) => _isEqual(position, [
|
|
50
50
|
renderProps.item.section().index().sectionIndex,
|
|
51
51
|
getItemIndex(renderProps.item.index()),
|
|
52
52
|
]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { useMemo, useState } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { determineWidthForScreen } from "../../../_staging/layout/sizing.js";
|
|
6
6
|
import { useScreenSize } from "../../dashboard/components/DashboardScreenSizeContext.js";
|
|
7
7
|
import { useSectionDescriptionExportData } from "../../export/useExportData.js";
|
|
@@ -20,11 +20,11 @@ export function DashboardLayoutExportSectionHeaderRenderer(props) {
|
|
|
20
20
|
const [error, setError] = useState(false);
|
|
21
21
|
const exportData = useSectionDescriptionExportData(props.exportData, loading, error);
|
|
22
22
|
//remove empty section headers; avoid in nested containers as this would delete the first child in some cases
|
|
23
|
-
if (
|
|
23
|
+
if (_isEmpty(sectionHeader) && !section.index()?.parent) {
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
26
|
return (_jsx(DashboardLayoutItemViewRenderer, { DefaultItemRenderer: DashboardLayoutItemViewRenderer, item: emptyItem,
|
|
27
27
|
// header is always at the top, this information is not usable by it but required by
|
|
28
28
|
// the shared interface with widget
|
|
29
|
-
rowIndex: -1, children:
|
|
29
|
+
rowIndex: -1, children: _isEmpty(sectionHeader) ? null : (_jsx(DashboardLayoutViewSectionHeader, { section: section, exportData: exportData, onLoadingChanged: (loading) => setLoading(loading.isLoading), onError: (error) => setError(!!error) })) }));
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayoutSection.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DashboardLayoutSection.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAG5E,OAAO,EAEH,KAAK,6BAA6B,EACrC,MAAM,iEAAiE,CAAC;AAGzE,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAS1E,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACtC,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,WAAW,4BAA4B,CAAC,OAAO;IACjD,OAAO,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAChD,gBAAgB,CAAC,EAAE,gCAAgC,CAAC,OAAO,CAAC,CAAC;IAC7D,eAAe,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAC3D,qBAAqB,CAAC,EAAE,qCAAqC,CAAC,OAAO,CAAC,CAAC;IACvE,aAAa,CAAC,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,4BAA4B,CAAC,OAAO,CAAC,CAAC;IACrD,cAAc,EAAE,8BAA8B,CAAC,OAAO,CAAC,CAAC;IACxD,eAAe,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAC3D,mBAAmB,EAAE,MAAM,OAAO,CAAC;IACnC,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,gCAAgC,CAAC;IACxD,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAC;CACjD;AA2BD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,EAC5C,OAAO,EACP,eAAwC,EACxC,qBAA6C,EAC7C,aAAoC,EACpC,eAAe,EACf,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,oBAAoB,EACpB,gBAAgB,GACnB,EAAE,4BAA4B,CAAC,OAAO,CAAC,GAAG,YAAY,CAwGtD"}
|
package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { getLayoutConfiguration } from "../../../_staging/dashboard/flexibleLayout/layoutConfiguration.js";
|
|
6
6
|
import { getItemIndex, serializeLayoutItemPath } from "../../../_staging/layout/coordinates.js";
|
|
7
7
|
import { useScreenSize } from "../../dashboard/components/DashboardScreenSizeContext.js";
|
|
@@ -25,7 +25,7 @@ const defaultItemKeyGetter = ({ item }) => serializeLayoutItemPath(item.index())
|
|
|
25
25
|
*/
|
|
26
26
|
function hasVisibleSectionHeader(section) {
|
|
27
27
|
const { sections } = getLayoutConfiguration(section.layout().raw());
|
|
28
|
-
return sections.areHeadersEnabled && (!
|
|
28
|
+
return sections.areHeadersEnabled && (!_isEmpty(section.title()) || !_isEmpty(section.description()));
|
|
29
29
|
}
|
|
30
30
|
export function DashboardLayoutSection({ section, sectionRenderer = defaultSectionRenderer, sectionHeaderRenderer = defaultHeaderRenderer, itemKeyGetter = defaultItemKeyGetter, gridRowRenderer, itemRenderer, widgetRenderer, getLayoutDimensions, renderMode, parentLayoutItemSize, parentLayoutPath, }) {
|
|
31
31
|
const showBorders = parentLayoutPath === undefined || parentLayoutPath.length === 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayoutViewSectionHeaderRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DashboardLayoutViewSectionHeaderRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAIvE,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,iEAAiE,CAAC;AAQrH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAI9D,MAAM,WAAW,kCAAkC;IAC/C,OAAO,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,gCAAgC,CAAC,EAC7C,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,OAAO,GACV,EAAE,kCAAkC,kDAoDpC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import cx from "classnames";
|
|
4
|
-
import { isEmpty } from "lodash-es";
|
|
5
4
|
import { Typography } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { getLayoutConfiguration } from "../../../_staging/dashboard/flexibleLayout/layoutConfiguration.js";
|
|
7
7
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
8
8
|
import { selectEnableSnapshotExportAccessibility, selectIsExport, } from "../../../model/store/config/configSelectors.js";
|
|
@@ -16,7 +16,7 @@ export function DashboardLayoutViewSectionHeader({ section, exportData, onLoadin
|
|
|
16
16
|
const useAccessibilityExportClasses = isSnapshotAccessibilityEnabled && isExport;
|
|
17
17
|
const title = section.title();
|
|
18
18
|
const description = section.description();
|
|
19
|
-
if (!sections.areHeadersEnabled || (
|
|
19
|
+
if (!sections.areHeadersEnabled || (_isEmpty(title) && _isEmpty(description))) {
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
22
|
const isNestedLayout = section.layout().path() !== undefined;
|
package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sizing.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAEzB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,QAAQ,EAEb,KAAK,SAAS,EACd,KAAK,UAAU,EAMlB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"sizing.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAEzB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,QAAQ,EAEb,KAAK,SAAS,EACd,KAAK,UAAU,EAMlB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,oEAAoE,CAAC;AAGrH,OAAO,EACH,KAAK,uBAAuB,EAS/B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAW5D;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EACnD,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,EACjC,gBAAgB,EAAE,gCAAgC,GAAG,SAAS,EAC9D,gBAAgB,EAAE,eAAe,GAAG,SAAS,GAC9C,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAC7B,wBAAgB,+BAA+B,CAAC,OAAO,EACnD,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,EAAE,EACtC,gBAAgB,EAAE,gCAAgC,GAAG,SAAS,EAC9D,gBAAgB,EAAE,eAAe,GAAG,SAAS,GAC9C,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;AAmJnC;;;;;GAKG;AACH,KAAK,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAAI,OAAO,kBAC3B,gBAAgB,CAAC,OAAO,CAAC,iBAC1B,gBAAgB,CAAC,OAAO,CAAC,aAC7B,YAAY,EAAE,gCACP,eAAe,GAAG,SAAS,KAC9C,YAAY,EAiCd,CAAC;AAYF;;;GAGG;AACH,wBAAgB,2BAA2B,CACvC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,EAAE,uBAAuB,EAC/B,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,GAC9B,aAAa,CAAC,WAAW,CAAC,CAU5B;AAED,eAAO,MAAM,6CAA6C,SAChD,oBAAoB,UAClB,UAAU,KACnB,MAOF,CAAC;AAEF,wBAAgB,kCAAkC,CAC9C,IAAI,EAAE,0BAA0B,CAAC,GAAG,CAAC,EACrC,MAAM,EAAE,UAAU,GACnB,MAAM,CAyBR;AAED,wBAAgB,wCAAwC,CACpD,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,oBAAoB,EAChC,aAAa,CAAC,EAAE,uBAAuB,GACxC,MAAM,CAGR;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAC/C,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAClC,gBAAgB,CAAC,OAAO,CAAC,CAgB3B;AAiBD;;GAEG;AACH,wBAAgB,iCAAiC,CAC7C,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,UAAU,EAAE,oBAAoB,EAChC,aAAa,EAAE,uBAAuB,EACtC,QAAQ,EAAE,SAAS,GACpB;IACC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAYA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { clamp,
|
|
2
|
+
import { clamp, round } from "lodash-es";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
4
|
import { insightVisualizationType, isDashboardLayout, isInsightWidget, isWidget, isWidgetDefinition, } from "@gooddata/sdk-model";
|
|
5
5
|
import { fluidLayoutDescriptor } from "@gooddata/sdk-ui-ext";
|
|
6
|
+
import { _isEqual } from "@gooddata/util";
|
|
6
7
|
import { DashboardLayoutBuilder } from "../../../../_staging/dashboard/flexibleLayout/builder/layout.js";
|
|
7
8
|
import { DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT } from "../../../../_staging/dashboard/flexibleLayout/config.js";
|
|
8
9
|
import { DashboardLayoutFacade } from "../../../../_staging/dashboard/flexibleLayout/facade/layout.js";
|
|
@@ -135,7 +136,7 @@ export const getResizedItemPositions = (originalLayout, resizedLayout, positions
|
|
|
135
136
|
if (isDashboardLayout(originalContent) && isDashboardLayout(updatedContent)) {
|
|
136
137
|
return getResizedItemPositions(originalContent, updatedContent, positions, item.index());
|
|
137
138
|
}
|
|
138
|
-
if (!
|
|
139
|
+
if (!_isEqual(originalColumn.size(), item.size()) &&
|
|
139
140
|
(isWidget(updatedContent) || isWidgetDefinition(updatedContent))) {
|
|
140
141
|
acc.push([item.section().index().sectionIndex, getItemIndex(item.index())]);
|
|
141
142
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeightResizerHotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeightResizerHotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAgB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAInG,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EACrC,MAAM,oEAAoE,CAAC;AAQ5E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAS5E,OAAO,EAAE,KAAK,uBAAuB,EAAsB,MAAM,wCAAwC,CAAC;AAU1G,MAAM,MAAM,yBAAyB,GAAG;IACpC,OAAO,EAAE,6BAA6B,CAAC,uBAAuB,CAAC,CAAC;IAChE,KAAK,EAAE,0BAA0B,CAAC,uBAAuB,CAAC,EAAE,CAAC;IAC7D,mBAAmB,EAAE,MAAM,OAAO,CAAC;CACtC,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,EAAE,yBAAyB,kDA+HtG;AAED,wBAAgB,YAAY,CACxB,KAAK,EAAE,0BAA0B,CAAC,uBAAuB,CAAC,EAAE,EAC5D,UAAU,EAAE,SAAS,CAAC,QAAQ,CAAC,EAC/B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,SAAS,YAWtB;AAED,wBAAgB,cAAc,CAC1B,aAAa,EAAE,MAAM,EAAE,EACvB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACjB,MAAM,CAKR"}
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2021-2026 GoodData Corporation
|
|
3
3
|
import { useEffect, useMemo, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { isEmpty, isEqual } from "lodash-es";
|
|
6
5
|
import { INSIGHT_WIDGET_SIZE_INFO_DEFAULT, fluidLayoutDescriptor } from "@gooddata/sdk-ui-ext";
|
|
6
|
+
import { _isEmpty, _isEqual } from "@gooddata/util";
|
|
7
7
|
import { getItemIndex } from "../../../../_staging/layout/coordinates.js";
|
|
8
8
|
import { calculateWidgetMinHeight, determineWidthForScreen, getMaxHeight, getMinHeight, } from "../../../../_staging/layout/sizing.js";
|
|
9
9
|
import { resizeNestedLayoutItemsHeight } from "../../../../model/commands/layout.js";
|
|
@@ -69,7 +69,7 @@ export function HeightResizerHotspot({ section, items, getLayoutDimensions }) {
|
|
|
69
69
|
}, [isDragging]);
|
|
70
70
|
const areWidgetsResizing = resizeDirection !== "none";
|
|
71
71
|
const isColumnResizing = resizeDirection === "width";
|
|
72
|
-
const isOtherRowResizing = !
|
|
72
|
+
const isOtherRowResizing = !_isEmpty(resizeItemIdentifiers) && !_isEqual(resizeItemIdentifiers, widgetIdentifiers);
|
|
73
73
|
const [isResizerVisible, setResizerVisibility] = useState(false);
|
|
74
74
|
const onMouseEnter = () => setResizerVisibility(true);
|
|
75
75
|
const onMouseLeave = () => setResizerVisibility(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributeFilters.d.ts","sourceRoot":"","sources":["../../../../src/presentation/insightEditor/filterContext/attributeFilters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"attributeFilters.d.ts","sourceRoot":"","sources":["../../../../src/presentation/insightEditor/filterContext/attributeFilters.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mBAAmB,EAI3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGH,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,MAAM,EAWd,MAAM,qBAAqB,CAAC;AA0B7B,wBAAgB,uBAAuB,CACnC,cAAc,EAAE,OAAO,EAAE,EACzB,OAAO,EAAE,QAAQ,EACjB,mBAAmB,EAAE,iBAAiB,EAAE,EACxC,uCAAuC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EACxE,mBAAmB,EAAE,OAAO,GAC7B,mBAAmB,EAAE,CAQvB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { isPositiveAttributeFilter, } from "@gooddata/sdk-embedding";
|
|
4
3
|
import { areObjRefsEqual, filterAttributeElements, filterLocalIdentifier, filterObjRef, insightFilters, isArbitraryAttributeFilter, isAttributeElementsByValue, isAttributeFilter, isMatchAttributeFilter, isNegativeAttributeFilter, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _compact } from "@gooddata/util";
|
|
5
5
|
import { areFiltersWithSameElements, intersectFilters } from "./filterIntersection.js";
|
|
6
6
|
import { toObjIdentifierQualifier } from "./objQualifiers.js";
|
|
7
7
|
function getValidAppliedAttributeFilters(appliedFilters, availableAttributes) {
|
|
@@ -91,7 +91,7 @@ function getAttributeFilterItemsFromAppliedFilters(appliedFilters, insightAttrFi
|
|
|
91
91
|
? getIntersectedAttrFilterContext(insightAttrFilter, attrFilterContext)
|
|
92
92
|
: attrFilterContext;
|
|
93
93
|
});
|
|
94
|
-
return
|
|
94
|
+
return _compact(processedFilters);
|
|
95
95
|
}
|
|
96
96
|
function getInsightAttrFilter(insightAttrFilters, attrFilter, availableAttributes) {
|
|
97
97
|
const targetDisplayForm = filterObjRef(attrFilter);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterIntersection.d.ts","sourceRoot":"","sources":["../../../../src/presentation/insightEditor/filterContext/filterIntersection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filterIntersection.d.ts","sourceRoot":"","sources":["../../../../src/presentation/insightEditor/filterContext/filterIntersection.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,wBAAwB,IAAI,6BAA6B,EAC9D,KAAK,wBAAwB,IAAI,6BAA6B,EAGjE,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEH,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAUhC,MAAM,qBAAqB,CAAC;AAS7B,wBAAgB,wCAAwC,CACpD,kBAAkB,EAAE,wBAAwB,EAC5C,kBAAkB,EAAE,6BAA6B,GAClD,6BAA6B,CAiC/B;AAED,wBAAgB,yCAAyC,CACrD,kBAAkB,EAAE,6BAA6B,EACjD,kBAAkB,EAAE,wBAAwB,GAC7C,6BAA6B,CA0B/B;AACD,wBAAgB,gBAAgB,CAC5B,iBAAiB,EAAE,6BAA6B,EAChD,iBAAiB,EAAE,6BAA6B,GAAG,6BAA6B,GACjF,6BAA6B,GAAG,6BAA6B,CA+D/D;AAED,wBAAgB,0BAA0B,CACtC,iBAAiB,EAAE,6BAA6B,EAChD,iBAAiB,EAAE,6BAA6B,GAAG,6BAA6B,GACjF,OAAO,CAsDT"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { uniq } from "lodash-es";
|
|
3
2
|
import { isNegativeAttributeFilter as isEmbedNegativeAttributeFilter, isPositiveAttributeFilter as isEmbedPositiveAttributeFilter, } from "@gooddata/sdk-embedding";
|
|
4
3
|
import { filterAttributeElements, filterIsEmpty, isAttributeElementsByRef, isAttributeElementsByValue, isNegativeAttributeFilter, isObjRef, isPositiveAttributeFilter, newNegativeAttributeFilter, newPositiveAttributeFilter, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _uniq } from "@gooddata/util";
|
|
5
5
|
// The embedding API types the element lists as strings. The null element (an empty value) passes
|
|
6
6
|
// through as it is.
|
|
7
7
|
function elementIds(elements) {
|
|
@@ -68,7 +68,7 @@ export function intersectFilters(insightAttrFilter, attrFilterContext) {
|
|
|
68
68
|
return {
|
|
69
69
|
negativeAttributeFilter: {
|
|
70
70
|
displayForm: attrFilterContext.negativeAttributeFilter.displayForm,
|
|
71
|
-
notIn:
|
|
71
|
+
notIn: _uniq(elementIds(attributeElements).concat(attrFilterContext.negativeAttributeFilter.notIn)),
|
|
72
72
|
},
|
|
73
73
|
};
|
|
74
74
|
}
|
|
@@ -91,7 +91,7 @@ export function intersectFilters(insightAttrFilter, attrFilterContext) {
|
|
|
91
91
|
return {
|
|
92
92
|
negativeAttributeFilter: {
|
|
93
93
|
displayForm: attrFilterContext.negativeAttributeFilter.displayForm,
|
|
94
|
-
notIn:
|
|
94
|
+
notIn: _uniq(elementIds(attributeElements).concat(attrFilterContext.negativeAttributeFilter.notIn)),
|
|
95
95
|
},
|
|
96
96
|
};
|
|
97
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightFilterContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/insightEditor/filterContext/insightFilterContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"insightFilterContext.d.ts","sourceRoot":"","sources":["../../../../src/presentation/insightEditor/filterContext/insightFilterContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,mBAAmB,IAAI,4BAA4B,EAC3D,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,OAAO,EACZ,KAAK,QAAQ,EAEb,KAAK,cAAc,EACnB,KAAK,MAAM,EAEd,MAAM,qBAAqB,CAAC;AAS7B,MAAM,MAAM,uBAAuB,GAAG,cAAc,GAAG,mBAAmB,GAAG,4BAA4B,CAAC;AAE1G,MAAM,WAAW,gCAAgC;IAC7C,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,QAAQ,CAAC;IAClB,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,mBAAmB,EAAE,iBAAiB,EAAE,CAAC;IACzC,uCAAuC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IACzE,YAAY,EAAE,oBAAoB,CAAC;IACnC,UAAU,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC7C,2BAA2B,EAAE,OAAO,CAAC;IACrC,mBAAmB,EAAE,4BAA4B,EAAE,CAAC;CACvD;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,gCAAgC,GACxC,uBAAuB,EAAE,CAoB3B;AAKD;;;GAGG;AACH,wBAAsB,8BAA8B,CAChD,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,QAAQ,EACjB,wBAAwB,EAAE,OAAO,GAClC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAa9B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { catalogComputedAttributeAsCatalogAttribute, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _compact } from "@gooddata/util";
|
|
4
4
|
import { isComputedAttributesUnavailableError } from "../../../_staging/catalog/computedAttributes.js";
|
|
5
5
|
import { getAttributeFilterItems } from "./attributeFilters.js";
|
|
6
6
|
import { getDateFilterItems, getWidgetDateFilterItem } from "./dateFilters.js";
|
|
@@ -17,7 +17,7 @@ export function buildInsightEditorFilterContext(input) {
|
|
|
17
17
|
: [];
|
|
18
18
|
const dateFilters = capabilities.supportsMultipleDateFilters
|
|
19
19
|
? getDateFilterItems(appliedFilters, insight)
|
|
20
|
-
:
|
|
20
|
+
: _compact([getWidgetDateFilterItem(widget, input.dateFilter)]);
|
|
21
21
|
return [...dateFilters, ...attributeFilters, ...measureValueFilters];
|
|
22
22
|
}
|
|
23
23
|
// The production dataset needs no ref. Its presence is represented by undefined.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightList.d.ts","sourceRoot":"","sources":["../../../src/presentation/insightList/InsightList.tsx"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,QAAQ,EAUhB,MAAM,qBAAqB,CAAC;AAmC7B,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightList.d.ts","sourceRoot":"","sources":["../../../src/presentation/insightList/InsightList.tsx"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,QAAQ,EAUhB,MAAM,qBAAqB,CAAC;AAmC7B,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,YAAY,CAAC;AAMzE,UAAU,gBAAgB;IACtB,OAAO,EAAE,QAAQ,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,QAAQ,GAAG,gBAAgB,CAO5E;AAsCD;;GAEG;AACH,wBAAgB,WAAW,CAAC,EACxB,MAAM,EACN,KAAkB,EAClB,eAAe,EACf,UAAU,EACV,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,WAAW,GACd,EAAE,iBAAiB,2CA0OnB"}
|
|
@@ -24,6 +24,7 @@ import { useDashboardComponentsContext } from "../dashboardContexts/DashboardCom
|
|
|
24
24
|
import { DIVIDER, InsightListDivider } from "./InsightListDivider.js";
|
|
25
25
|
import { InsightListNoData } from "./InsightListNoData.js";
|
|
26
26
|
const ITEM_HEIGHT = 40;
|
|
27
|
+
const LIST_PADDING = 10;
|
|
27
28
|
const LIST_WIDTH = 229;
|
|
28
29
|
export function getInsightListSourceItem(insight) {
|
|
29
30
|
const insightType = insightVisualizationType(insight);
|
|
@@ -128,14 +129,6 @@ export function InsightList({ height, width = LIST_WIDTH, searchAutofocus, rende
|
|
|
128
129
|
}
|
|
129
130
|
prevInsightListLastUpdateRequestedRef.current = insightListLastUpdateRequested;
|
|
130
131
|
}, [insightListLastUpdateRequested, refreshItems]);
|
|
131
|
-
const itemHeightGetter = (index) => {
|
|
132
|
-
// Modify item heights for first/last item so that their hover states don't overlap.
|
|
133
|
-
// Also @see styles and keep this value in sync with what's in css styles
|
|
134
|
-
// for is-first and is-last in visualization items in the list
|
|
135
|
-
const firstLastItemMargin = 10;
|
|
136
|
-
const isFirstOrLast = totalInsightsCount ? index === 0 || index === totalInsightsCount - 1 : false;
|
|
137
|
-
return isFirstOrLast ? ITEM_HEIGHT + firstLastItemMargin : ITEM_HEIGHT;
|
|
138
|
-
};
|
|
139
132
|
const eventDispatch = useDashboardEventDispatch();
|
|
140
133
|
const dispatch = useDashboardDispatch();
|
|
141
134
|
const isInsightEditingEnabled = useDashboardSelector(selectEnableInsightEditing);
|
|
@@ -155,7 +148,7 @@ export function InsightList({ height, width = LIST_WIDTH, searchAutofocus, rende
|
|
|
155
148
|
const dropdownListLoading = isLoading && pagedInsights.length === 0;
|
|
156
149
|
const showDropdownListTabs = initialLoadCompleted && !search;
|
|
157
150
|
const showNoDataCreateButton = (allowCreateInsightRequest || isInsightEditingEnabled) && canCreateVisualization;
|
|
158
|
-
return (_jsx(DropdownList, { width: width, height: dropdownListHeight, isMobile: false, isLoading: dropdownListLoading, showSearch: initialLoadCompleted, searchString: search, searchFieldSize: "small", searchPlaceholder: intl.formatMessage({ id: "search_insights" }), onSearch: onSearch, disableAutofocus: !searchAutofocus, showTabs: showDropdownListTabs, tabs: backend.capabilities.supportsOwners && author ? dropdownTabsTranslationIds : undefined, selectedTabId: selectedTabId, onTabSelect: onTabSelect, itemHeight: ITEM_HEIGHT,
|
|
151
|
+
return (_jsx(DropdownList, { width: width, height: dropdownListHeight, isMobile: false, isLoading: dropdownListLoading, showSearch: initialLoadCompleted, searchString: search, searchFieldSize: "small", searchPlaceholder: intl.formatMessage({ id: "search_insights" }), onSearch: onSearch, disableAutofocus: !searchAutofocus, showTabs: showDropdownListTabs, tabs: backend.capabilities.supportsOwners && author ? dropdownTabsTranslationIds : undefined, selectedTabId: selectedTabId, onTabSelect: onTabSelect, itemHeight: ITEM_HEIGHT, listPadding: LIST_PADDING, items: insights, itemsCount: totalItems, body: () => {
|
|
159
152
|
if (!isLoading && pagedInsights.length === 0 && searchRelatedItems.length > 0) {
|
|
160
153
|
return (_jsx(InsightListNoData, { isUserInsights: selectedTabId === messages.tabsMy.id, hasNoMatchingData: true, showNoDataCreateButton: showNoDataCreateButton, onCreateButtonClick: createInsightRequestedEvent }));
|
|
161
154
|
}
|
|
@@ -472,6 +472,10 @@ export declare const de_DE: {
|
|
|
472
472
|
"deleteInsightDialog.checking": string;
|
|
473
473
|
"deleteInsightDialog.checkFailed": string;
|
|
474
474
|
"deleteInsightDialog.usedOnDashboards": string;
|
|
475
|
+
"deleteInsightDialog.usedInDocumentsAndDashboards": string;
|
|
476
|
+
"deleteInsightDialog.usedInDocumentsAndThisDashboard": string;
|
|
477
|
+
"deleteInsightDialog.usedInDocuments": string;
|
|
478
|
+
"deleteInsightDialog.documentsUsage": string;
|
|
475
479
|
"deleteInsightDialog.usage": string;
|
|
476
480
|
"deleteInsightDialog.usage.showMore": string;
|
|
477
481
|
"deleteInsightDialog.usage.showLess": string;
|
|
@@ -590,6 +594,7 @@ export declare const de_DE: {
|
|
|
590
594
|
"configurationPanel.drillIntoUrl.editor.addParameterButtonLabel": string;
|
|
591
595
|
"configurationPanel.drillIntoUrl.editor.parameterDetailType": string;
|
|
592
596
|
"configurationPanel.drillIntoUrl.editor.parameterDetailLabel": string;
|
|
597
|
+
"configurationPanel.drillIntoUrl.editor.parameterDetailIdentifier": string;
|
|
593
598
|
"configurationPanel.drillIntoUrl.editor.parameterDetailValues": string;
|
|
594
599
|
"configurationPanel.drillIntoUrl.editor.parameterDetailMoreValues": string;
|
|
595
600
|
"configurationPanel.drillIntoUrl.editor.insightIdParameterLabel": string;
|
|
@@ -600,9 +605,13 @@ export declare const de_DE: {
|
|
|
600
605
|
"configurationPanel.drillIntoUrl.editor.widgetIdParameterLabel": string;
|
|
601
606
|
"configurationPanel.drillIntoUrl.editor.dashboardIdParameterLabel": string;
|
|
602
607
|
"configurationPanel.drillIntoUrl.editor.identifierTypeLabel": string;
|
|
608
|
+
"configurationPanel.drillIntoUrl.editor.numberParameterTypeLabel": string;
|
|
609
|
+
"configurationPanel.drillIntoUrl.editor.stringParameterTypeLabel": string;
|
|
603
610
|
"configurationPanel.drillIntoUrl.editor.insightParametersSectionLabel": string;
|
|
604
611
|
"configurationPanel.drillIntoUrl.editor.identifierParametersSectionLabel": string;
|
|
605
612
|
"configurationPanel.drillIntoUrl.editor.dashboardParametersSectionLabel": string;
|
|
613
|
+
"configurationPanel.drillIntoUrl.editor.parameterParametersSectionLabel": string;
|
|
614
|
+
"configurationPanel.drillIntoUrl.editor.parameterParametersSectionEmpty": string;
|
|
606
615
|
"configurationPanel.drillIntoUrl.editor.applyButtonLabel": string;
|
|
607
616
|
"configurationPanel.drillIntoUrl.editor.cancelButtonLabel": string;
|
|
608
617
|
"configurationPanel.drillIntoUrl.editor.textAreaPlaceholder": string;
|